1 2010-03-21 Bruno Haible <bruno@clisp.org>
4 * lib/pt_chown.c: New file, from glibc with modifications.
5 * lib/pty-private.h: New file, from glibc with modifications.
6 * modules/pt_chown: New file.
7 * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
9 2010-03-21 Bruno Haible <bruno@clisp.org>
11 Tests for module 'ptsname'.
12 * modules/ptsname-tests: New file.
13 * tests/test-ptsname.c: New file.
16 * lib/ptsname.c: New file, from glibc with modifications.
17 * m4/ptsname.m4: New file.
18 * modules/ptsname: New file.
19 * lib/stdlib.in.h (ptsname): New declaration.
20 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22 * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24 * doc/posix-functions/ptsname.texi: Mention the new module.
25 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26 * config/srclist.txt: Add ptsname.c (commented).
28 2010-03-21 Bruno Haible <bruno@clisp.org>
30 Tests for module 'ttyname_r'.
31 * modules/ttyname_r-tests: New file.
32 * tests/test-ttyname_r.c: New file.
34 New module 'ttyname_r'.
35 * lib/ttyname_r.c: New file.
36 * m4/ttyname_r.m4: New file.
37 * modules/ttyname_r: New file.
38 * lib/unistd.in.h (ttyname_r): New declaration.
39 * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
40 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
41 * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
43 * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
44 * doc/posix-functions/ttyname_r.texi: Mention the new module.
46 2010-03-20 Bruno Haible <bruno@clisp.org>
48 signal: Undefine macro definitions in C++ mode.
49 * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
50 sigfillset): Undefine macro definitions from the system header in C++
52 Reported by John W. Eaton <jwe@gnu.org>.
54 2010-03-20 Bruno Haible <bruno@clisp.org>
56 Ensure no #include statements inside extern "C" { ... }.
57 * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
58 contain #include statements.
59 * lib/time.in.h: Likewise.
61 2010-03-20 Bruno Haible <bruno@clisp.org>
63 Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
64 * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
65 (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
66 Reported by John W. Eaton <jwe@gnu.org>.
68 2010-03-20 Bruno Haible <bruno@clisp.org>
70 * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
71 Reported by Jim Meyering.
73 2010-03-20 Bruno Haible <bruno@clisp.org>
75 pipe: Set errno upon failure.
76 * lib/pipe.h: Specify that when -1 is returned, errno is set.
77 * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
78 errno value in error message.
80 2010-03-20 Bruno Haible <bruno@clisp.org>
81 Jim Meyering <meyering@redhat.com>
83 lchown: Avoid "unused variable" warning.
84 * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
86 2010-03-20 Bruno Haible <bruno@clisp.org>
88 Work around unlink() bug on MacOS X 10.5.6.
89 * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
90 attempting to unlink a parent directory.
91 * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
92 MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
93 activate for the replacement function.
94 * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
96 2010-03-20 Bruno Haible <bruno@clisp.org>
98 Fix link errors on Solaris 8.
99 * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
100 * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
102 2010-03-19 Jim Meyering <meyering@redhat.com>
104 regcomp.c: make non-_LIBC implementation of build_range_exp consistent
105 The _LIBC implementation of build_range_exp correctly honors the
106 RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
107 However, the non-_LIBC implementation would ignore that syntax-bit
108 flag and return REG_ERANGE unconditionally.
109 This change makes it honor that flag.
110 * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
111 Make two pointer parameters "const".
112 Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
113 (parse_bracket_exp): Update caller.
115 regex.m4: correct the reversed range endpoint ([b-a]) test
116 * m4/regex.m4: When requiring that [b-a] evoke failure,
117 use RE_NO_EMPTY_RANGES. This makes this entire configure-time
118 test pass once again for x86-based systems.
120 2010-03-19 Bruno Haible <bruno@clisp.org>
122 scandir: Fix link error on Solaris 8.
123 * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
126 2010-03-19 Bruno Haible <bruno@clisp.org>
128 getusershell: Fix documentation.
129 * doc/glibc-functions/endusershell.texi: Refer to the getusershell
131 * doc/glibc-functions/setusershell.texi: Likewise.
133 getusershell: Provide declaration, missing on Solaris 9.
134 * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
135 also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
136 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
137 check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
138 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
139 HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
140 * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
142 * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
144 2010-03-19 Bruno Haible <bruno@clisp.org>
146 wctype: Provide iswblank function.
147 * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
149 * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
150 * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
151 * tests/test-wctype.c (main): Re-enable the iswblank tests.
152 * doc/posix-functions/iswblank.texi: Update.
154 2010-03-19 Bruno Haible <bruno@clisp.org>
156 Tests of module 'pty' in C++ mode.
157 * modules/pty-tests: New file.
158 * tests/test-pty-c++.cc: New file.
159 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
161 2010-03-19 Eric Blake <eblake@redhat.com>
163 logb: fix documentation
164 * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
167 forkpty, openpty: prefer glibc's const-safe prototype
168 * lib/forkpty.c (rpl_forkpty): New file.
169 * lib/openpty.c (rpl_openpty): Likewise.
170 * modules/forkpty (Files): Distribute it.
171 * modules/openpty (Files): Likewise.
172 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. Move decl
174 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here. Request
175 replacement for for non-const BSD signature.
176 * modules/pty (Makefile.am): Substitute witnesses.
177 * lib/pty.in.h (forkpty, openpty): Declare replacements.
178 * tests/test-forkpty.c: Update signature check.
179 * tests/test-openpty.c: Likewise.
180 * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
181 * doc/glibc-functions/openpty.texi (openpty): Likewise.
183 forkpty, openpty: split functions into new modules
184 * modules/pty (Makefile.am): Substitute new witnesses.
185 (Libraries): Move library detection...
186 * modules/forkpty: ...into new module.
187 * modules/openpty: Another new module.
188 * modules/pty-tests: Rename and split...
189 * modules/forkpty-tests: ...to this...
190 * modules/openpty-tests: ...and this.
191 * tests/test-pty.c: Rename and split...
192 * tests/test-forkpty.c: ...to this...
193 * tests/test-openpty.c: ...and this.
194 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
195 (gl_PTY): Split library searching...
196 * m4/pty.m4 (gl_PTY_LIB): ...into new file.
197 (gl_FORKPTY, gl_OPENPTY): New macros.
198 * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
199 * NEWS: Mention the split.
200 * MODULES.html.sh (Misc): Document the modules.
201 * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
202 * doc/glibc-functions/openpty.texi (openpty): Likewise.
204 pty: improve replacement header
205 * lib/pty.in.h: New file.
206 * modules/pty (Files): Ship it.
207 (Makefile.am): Always build replacement.
208 * m4/pty.m4: Rename...
209 * m4/pty_h.m4: ...to this.
210 (gl_PTY): Modernize setting of witness macros; update check of
211 forkpty to take proper advantage of cache.
212 (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
214 getopt: avoid compiler warning
215 * lib/getopt.c (attribute_hidden): Remove unused macro.
217 2010-03-18 Bruno Haible <bruno@clisp.org>
219 Fix link errors on Solaris 8.
220 * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
221 * modules/search-tests (test_search_c___LDADD): Likewise.
222 * modules/signal-tests (test_signal_c___LDADD): Likewise.
223 * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
224 * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
225 * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
226 * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
227 * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
228 * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
230 2010-03-18 Bruno Haible <bruno@clisp.org>
232 Fix bug introduced on 2010-03-14.
233 * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
234 (gl_SPAWN_H): Require it.
235 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
236 Reported by Simon Josefsson.
238 2010-03-18 Bruno Haible <bruno@clisp.org>
240 Fix typo introduced on 2009-12-31.
241 * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
242 posix_spawn_file_actions_adddup2.
244 2010-03-17 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
245 and Eric Blake <eblake@redhat.com>
247 test-vc-list-files-git: make more robust
248 * tests/test-vc-list-files-git.sh: Unset problematic environment
249 variables. Chain commands together.
251 2010-03-17 Ludovic Courtès <ludo@gnu.org> (tiny change)
253 * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
254 `AC_CHECK_DECL' invocation.
256 2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua>
258 * lib/inttostr.c (inttostr): Make sure the invocation of verify
259 appears before executable statements. Suggested by Petr Sumbera
260 <Petr.Sumbera@Sun.COM>.
262 2010-03-14 Bruno Haible <bruno@clisp.org>
264 * tests/test-flock.c (test_exclusive): Comment out a test that causes
265 portability problems. Instead use a simpler test.
266 (main): Check that invalid arguments are rejected only on Linux.
268 2010-03-14 Bruno Haible <bruno@clisp.org>
270 Fix bug introduced on 2009-12-31.
271 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
272 gl_PREREQ_SYS_H_WINSOCK2 always.
273 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
274 SYS_SOCKET_H variable.
275 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
277 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
278 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
279 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
280 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
281 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
283 2010-03-14 Bruno Haible <bruno@clisp.org>
285 Fix values returned by sinl, cosl.
286 * lib/trigl.h: Add specification comments.
287 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
288 that combines the values from the precomputed table with the values of
289 the Chebyshev polynomials.
291 2010-03-14 Bruno Haible <bruno@clisp.org>
293 Fix compilation error when modules 'posix_spawn[p]' are not used.
294 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
295 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
297 2010-03-14 Bruno Haible <bruno@clisp.org>
299 Fix compilation error on mingw when module 'time_r' is not used.
300 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
302 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
303 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
304 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
305 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
307 2010-03-14 Bruno Haible <bruno@clisp.org>
309 Fix compilation error with Sun C.
310 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
311 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
312 instead of GCC specific ULONG_LONG_MAX.
313 * lib/xstrtoll.c: Likewise.
314 * lib/xstrtoull.c: Likewise.
316 2010-03-13 Bruno Haible <bruno@clisp.org>
318 Allow the user to disable C++ code and tests.
319 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
320 (gl_PROG_ANSI_CXX): Require it.
322 2010-03-13 Bruno Haible <bruno@clisp.org>
324 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
327 2010-03-13 Bruno Haible <bruno@clisp.org>
329 Test that gnulib does not break the standard C++ headers.
330 * tests/test-locale-c++2.cc: New file.
331 * modules/locale-tests (Files): Add it.
332 (Makefile.am): Compile it for test-locale-c++.
333 * tests/test-math-c++2.cc: New file.
334 * modules/math-tests (Files): Add it.
335 (Makefile.am): Compile it for test-math-c++.
336 * tests/test-signal-c++2.cc: New file.
337 * modules/signal-tests (Files): Add it.
338 (Makefile.am): Compile it for test-signal-c++.
339 * tests/test-stdio-c++2.cc: New file.
340 * modules/stdio-tests (Files): Add it.
341 (Makefile.am): Compile it for test-stdio-c++.
342 * tests/test-stdlib-c++2.cc: New file.
343 * modules/stdlib-tests (Files): Add it.
344 (Makefile.am): Compile it for test-stdlib-c++.
345 * tests/test-string-c++2.cc: New file.
346 * modules/string-tests (Files): Add it.
347 (Makefile.am): Compile it for test-string-c++.
348 * tests/test-time-c++2.cc: New file.
349 * modules/time-tests (Files): Add it.
350 (Makefile.am): Compile it for test-time-c++.
351 Reported by John W. Eaton <jwe@gnu.org>.
353 2010-03-13 Bruno Haible <bruno@clisp.org>
355 * gnulib-tool (func_usage): Clarify which options are available for
356 --create-testdir and --create-megatestdir.
358 2010-03-13 Bruno Haible <bruno@clisp.org>
360 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
361 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
362 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
363 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
364 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
366 Reported by Jim Meyering.
368 2010-03-12 Simon Josefsson <simon@josefsson.org>
370 * gnulib-tool (func_import): Explain origin of code.
372 2010-03-12 Bruno Haible <bruno@clisp.org>
374 Fix problem with automake's definition of CXXLINK.
375 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
376 Reported by Simon Josefsson and Ludovic Courtès.
378 2010-03-12 Bruno Haible <bruno@clisp.org>
380 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
383 2010-03-11 Bruno Haible <bruno@clisp.org>
385 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
386 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
387 whether the system provides one variant or multiple variants of the
389 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
391 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
392 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
393 Reported by Jim Meyering.
395 2010-03-09 Simon Josefsson <simon@josefsson.org>
397 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
399 2010-03-08 Bruno Haible <bruno@clisp.org>
401 gnulib-tool: Add support for --libtool in --create-testdir.
402 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
403 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
405 2010-03-08 Eric Blake <eblake@redhat.com>
407 gnulib-tool.texi: mention possibility of git submodule
408 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
410 * doc/.gitignore: Ignore another generated file.
412 2010-03-08 Karl Berry <karl@gnu.org>
414 * doc/gnulib-tool.texi (VCS Issues): Mention third option
415 of committing gnulib files while skipping others.
417 2010-03-07 Bruno Haible <bruno@clisp.org>
419 Tests of module 'wctype' in C++ mode.
420 * tests/test-wctype-c++.cc: New file.
421 * modules/wctype-tests (Files): Add it and tests/signature.h.
422 (Depends-on): Add ansi-c++-opt.
423 (Makefile.am): Arrange to compile and run test-wctype-c++.
425 Tests of module 'wchar' in C++ mode.
426 * tests/test-wchar-c++.cc: New file.
427 * modules/wchar-tests (Files): Add it and tests/signature.h.
428 (Depends-on): Add ansi-c++-opt.
429 (Makefile.am): Arrange to compile and run test-wchar-c++.
430 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
433 Tests of module 'unistd' in C++ mode.
434 * tests/test-unistd-c++.cc: New file.
435 * modules/unistd-tests (Files): Add it and tests/signature.h.
436 (Depends-on): Add ansi-c++-opt.
437 (Makefile.am): Arrange to compile and run test-unistd-c++.
438 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
441 Tests of module 'time' in C++ mode.
442 * tests/test-time-c++.cc: New file.
443 * modules/time-tests (Files): Add it and tests/signature.h.
444 (Depends-on): Add ansi-c++-opt.
445 (Makefile.am): Arrange to compile and run test-time-c++.
446 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
448 Tests of module 'sys_time' in C++ mode.
449 * tests/test-sys_time-c++.cc: New file.
450 * modules/sys_time-tests (Files): Add it and tests/signature.h.
451 (Depends-on): Add ansi-c++-opt.
452 (Makefile.am): Arrange to compile and run test-sys_time-c++.
453 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
456 Tests of module 'sys_stat' in C++ mode.
457 * tests/test-sys_stat-c++.cc: New file.
458 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
459 (Depends-on): Add ansi-c++-opt.
460 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
461 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
464 Tests of module 'sys_socket' in C++ mode.
465 * tests/test-sys_socket-c++.cc: New file.
466 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
467 (Depends-on): Add ansi-c++-opt.
468 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
469 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
472 Tests of module 'sys_select' in C++ mode.
473 * tests/test-sys_select-c++.cc: New file.
474 * modules/sys_select-tests (Files): Add it and tests/signature.h.
475 (Depends-on): Add ansi-c++-opt.
476 (Makefile.am): Arrange to compile and run test-sys_select-c++.
477 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
480 Tests of module 'sys_ioctl' in C++ mode.
481 * tests/test-sys_ioctl-c++.cc: New file.
482 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
483 (Depends-on): Add ansi-c++-opt.
484 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
485 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
488 Tests of module 'string' in C++ mode.
489 * tests/test-string-c++.cc: New file.
490 * modules/string-tests (Files): Add it and tests/signature.h.
491 (Depends-on): Add ansi-c++-opt.
492 (Makefile.am): Arrange to compile and run test-string-c++.
493 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
496 Tests of module 'stdlib' in C++ mode.
497 * tests/test-stdlib-c++.cc: New file.
498 * modules/stdlib-tests (Files): Add it and tests/signature.h.
499 (Depends-on): Add ansi-c++-opt.
500 (Makefile.am): Arrange to compile and run test-stdlib-c++.
501 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
504 Tests of module 'stdio' in C++ mode.
505 * tests/test-stdio-c++.cc: New file.
506 * modules/stdio-tests (Files): Add it and tests/signature.h.
507 (Depends-on): Add ansi-c++-opt.
508 (Makefile.am): Arrange to compile and run test-stdio-c++.
509 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
512 Tests of module 'spawn' in C++ mode.
513 * tests/test-spawn-c++.cc: New file.
514 * modules/spawn-tests (Files): Add it and tests/signature.h.
515 (Depends-on): Add ansi-c++-opt.
516 (Makefile.am): Arrange to compile and run test-spawn-c++.
517 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
520 Tests of module 'signal' in C++ mode.
521 * tests/test-signal-c++.cc: New file.
522 * modules/signal-tests (Files): Add it and tests/signature.h.
523 (Depends-on): Add ansi-c++-opt.
524 (Makefile.am): Arrange to compile and run test-signal-c++.
525 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
528 Tests of module 'search' in C++ mode.
529 * tests/test-search-c++.cc: New file.
530 * modules/search-tests (Files): Add it and tests/signature.h.
531 (Depends-on): Add ansi-c++-opt.
532 (Makefile.am): Arrange to compile and run test-search-c++.
533 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
536 Tests of module 'math' in C++ mode.
537 * tests/test-math-c++.cc: New file.
538 * modules/math-tests (Files): Add it and tests/signature.h.
539 (Depends-on): Add ansi-c++-opt.
540 (Makefile.am): Arrange to compile and run test-math-c++.
541 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
543 Tests of module 'locale' in C++ mode.
544 * tests/test-locale-c++.cc: New file.
545 * modules/locale-tests (Files): Add it and tests/signature.h.
546 (Depends-on): Add ansi-c++-opt.
547 (Makefile.am): Arrange to compile and run test-locale-c++.
548 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
551 Tests of module 'langinfo' in C++ mode.
552 * tests/test-langinfo-c++.cc: New file.
553 * modules/langinfo-tests (Files): Add it and tests/signature.h.
554 (Depends-on): Add ansi-c++-opt.
555 (Makefile.am): Arrange to compile and run test-langinfo-c++.
556 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
559 Tests of module 'iconv-h' in C++ mode.
560 * tests/test-iconv-h-c++.cc: New file.
561 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
562 (Depends-on): Add ansi-c++-opt.
563 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
565 Tests of module 'glob' in C++ mode.
566 * tests/test-glob-c++.cc: New file.
567 * modules/glob-tests (Files): Add it.
568 (Depends-on): Add ansi-c++-opt.
569 (Makefile.am): Arrange to compile and run test-glob-c++.
571 Tests of module 'fcntl-h' in C++ mode.
572 * tests/test-fcntl-h-c++.cc: New file.
573 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
574 (Depends-on): Add ansi-c++-opt.
575 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
576 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
579 Tests of module 'dirent' in C++ mode.
580 * tests/test-dirent-c++.cc: New file.
581 * modules/dirent-tests (Files): Add it and tests/signature.h.
582 (Depends-on): Add ansi-c++-opt.
583 (Makefile.am): Arrange to compile and run test-dirent-c++.
584 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
587 New module 'ansi-c++-opt'.
588 * modules/ansi-c++-opt: New file.
589 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
591 Document C++ namespace mode.
592 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
594 wctype: Avoid #define replacements in C++ mode.
595 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
596 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
597 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
598 In C++, define a namespaced alias symbol.
599 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
600 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
601 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
604 wchar: Avoid #define replacements in C++ mode.
605 * lib/wchar.in.h: Include c++defs.h.
606 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
607 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
609 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
610 * modules/wchar (Depends-on): Add c++defs.
611 (Makefile.am): Update wchar.h rule.
613 unistd: Avoid #define replacements in C++ mode.
614 * lib/unistd.in.h: Include c++defs.h.
615 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
616 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
617 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
618 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
619 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
620 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
623 * modules/unistd (Depends-on): Add c++defs.
624 (Makefile.am): Update unistd.h rule.
626 time: Avoid #define replacements in C++ mode.
627 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
628 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
629 define a namespaced alias symbol.
630 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
631 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
632 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
633 * modules/time (Depends-on): Add c++defs, warn-on-use.
634 (Makefile.am): Update time.h rule.
635 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
636 * modules/nanosleep (configure.ac): Likewise.
637 * modules/strptime (configure.ac): Likewise.
638 * modules/timegm (configure.ac): Likewise.
640 sys_time: Avoid #define replacements in C++ mode.
641 * lib/sys_time.in.h: Include c++defs.h.
642 (gettimeofday): In C++, define a namespaced alias symbol.
643 * modules/sys_time (Depends-on): Add c++defs.
644 (Makefile.am): Update sys/time.h rule.
646 sys_stat: Avoid #define replacements in C++ mode.
647 * lib/sys_stat.in.h: Include c++defs.h.
648 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
649 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
650 namespaced alias symbol.
651 In C++, define a namespaced alias symbol.
652 * modules/sys_stat (Depends-on): Add c++defs.
653 (Makefile.am): Update sys/stat.h rule.
655 sys_socket: Avoid #define replacements in C++ mode.
656 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
657 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
658 definitions also when the system has a <sys/socket.h>.
659 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
660 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
661 In C++, define a namespaced alias symbol.
662 * modules/sys_socket (Depends-on): Add c++defs.
663 (Makefile.am): Update sys/socket.h rule.
665 sys_select: Avoid #define replacements in C++ mode.
666 * lib/sys_select.in.h: Include c++defs.h. Enable the function
667 definitions also when the system has a <sys/select.h>.
668 (select): In C++, define a namespaced alias symbol.
669 * modules/sys_select (Depends-on): Add c++defs.
670 (Makefile.am): Update sys/select.h rule.
672 sys_ioctl: Avoid #define replacements in C++ mode.
673 * lib/sys_ioctl.in.h: Include c++defs.h.
674 (ioctl): In C++, define a namespaced alias symbol.
675 * modules/sys_ioctl (Depends-on): Add c++defs.
676 (Makefile.am): Update sys/ioctl.h rule.
678 string: Avoid #define replacements in C++ mode.
679 * lib/string.in.h: Include c++defs.h.
680 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
681 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
682 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
683 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
684 strsignal, strverscmp): In C++, define a namespaced alias symbol.
685 * modules/string (Depends-on): Add c++defs.
686 (Makefile.am): Update string.h rule.
688 stdlib: Avoid #define replacements in C++ mode.
689 * lib/stdlib.in.h: Include c++defs.h.
690 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
691 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
692 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
693 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
695 * modules/stdlib (Depends-on): Add c++defs.
696 (Makefile.am): Update stdlib.h rule.
698 stdio: Avoid #define replacements in C++ mode.
699 * lib/stdio.in.h: Include c++defs.h.
700 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
701 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
702 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
703 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
704 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
705 namespaced alias symbol.
706 * modules/stdio (Depends-on): Add c++defs.
707 (Makefile.am): Update stdio.h rule.
709 spawn: Avoid #define replacements in C++ mode.
710 * lib/spawn.in.h: Include c++defs.h.
711 (posix_spawn, posix_spawnp, posix_spawnattr_init,
712 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
713 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
714 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
715 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
716 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
717 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
718 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
719 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
720 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
721 In C++, define a namespaced alias symbol.
722 * modules/spawn (Depends-on): Add c++defs.
723 (Makefile.am): Update spawn.h rule.
725 signal: Avoid #define replacements in C++ mode.
726 * lib/signal.in.h: Include c++defs.h.
727 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
728 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
729 namespaced alias symbol.
730 * modules/signal (Depends-on): Add c++defs.
731 (Makefile.am): Update signal.h rule.
733 search: Avoid #define replacements in C++ mode.
734 * lib/search.in.h: Include c++defs.h.
735 (_gl_search_compar_fn, _gl_search_action_fn): New types.
736 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
738 * modules/search (Depends-on): Add c++defs.
739 (Makefile.am): Update search.h rule.
741 math: Avoid #define replacements in C++ mode.
742 * lib/math.in.h: Include c++defs.h.
743 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
744 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
745 trunc, truncl): In C++, define a namespaced alias symbol.
746 * modules/math (Depends-on): Add c++defs.
747 (Makefile.am): Update math.h rule.
749 locale: Avoid #define replacements in C++ mode.
750 * lib/locale.in.h: Include c++defs.h.
751 (duplocale): In C++, define a namespaced alias symbol.
752 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
753 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
754 * modules/locale (Depends-on): Add c++defs.
755 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
757 langinfo: Avoid #define replacements in C++ mode.
758 * lib/langinfo.in.h: Include c++defs.h.
759 (nl_langinfo): In C++, define a namespaced alias symbol.
760 * modules/langinfo (Depends-on): Add c++defs.
761 (Makefile.am): Update langinfo.h rule.
763 iconv-h: Avoid #define replacements in C++ mode.
764 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
765 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
767 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
768 whenever iconv is present.
769 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
770 (Makefile.am): Update iconv.h rule.
772 glob: Avoid #define replacements in C++ mode.
773 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
774 (_gl_glob_errfunc_fn): New type.
775 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
777 * modules/glob (Depends-on): Add c++defs, warn-on-use.
778 (Makefile.am): Update glob.h rule.
780 fcntl-h: Avoid #define replacements in C++ mode.
781 * lib/fcntl.in.h: Include c++defs.h.
782 (fcntl, open, openat): In C++, define a namespaced alias symbol.
783 * modules/fcntl-h (Depends-on): Add c++defs.
784 (Makefile.am): Update fcntl.h rule.
786 dirent: Avoid #define replacements in C++ mode.
787 * lib/dirent.in.h: Include c++defs.h.
788 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
789 namespaced alias symbol.
790 (dirfd): Update declaration.
791 * modules/dirent (Depends-on): Add c++defs.
792 (Makefile.am): Update dirent.h rule.
794 ctype: Make it usable in C++ code.
795 * lib/ctype.in.h: Include c++defs.h.
796 (isblank): Declare as extern "C".
797 * modules/ctype (Depends-on): Add c++defs.
798 (Makefile.am): Update ctype.h rule.
800 New module 'c++defs'.
801 * modules/c++defs: New file.
802 * build-aux/c++defs.h: New file.
803 Reported by John W. Eaton <jwe@gnu.org>.
805 2010-03-07 Bruno Haible <bruno@clisp.org>
807 logb: Provide missing declaration for Cygwin.
808 * lib/math.in.h (logb): New declaration.
809 * m4/logb.m4: New file.
810 * modules/logb (Files): Add m4/logb.m4.
811 (Depends-on): Add math.
812 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
813 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
814 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
815 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
816 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
818 2010-03-07 Bruno Haible <bruno@clisp.org>
820 Fix test-cond link error.
821 * tests/test-cond.c: Include <stdio.h>.
823 2010-03-07 Bruno Haible <bruno@clisp.org>
825 Fix test-dirent-safer link error.
826 * modules/dirent-safer-tests (Makefile.am): Define
827 test_dirent_safer_LDADD.
829 2010-03-07 Bruno Haible <bruno@clisp.org>
831 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
832 among default module list.
834 2010-03-07 Bruno Haible <bruno@clisp.org>
836 Fix link error on platforms with GNU libiconv.
837 * modules/unistr/u8-strcoll-tests (Makefile): Define
838 test_u8_strcoll_LDADD.
839 * modules/unistr/u16-strcoll-tests (Makefile): Define
840 test_u16_strcoll_LDADD.
841 * modules/unistr/u32-strcoll-tests (Makefile): Define
842 test_u32_strcoll_LDADD.
844 2010-03-07 Bruno Haible <bruno@clisp.org>
846 Use POSIX declarations for socket functions.
847 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
848 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
849 rpl_sendto): Change declaration to match POSIX.
850 * lib/connect.c (rpl_connect): Likewise.
851 * lib/accept.c (rpl_accept): Likewise.
852 * lib/bind.c (rpl_bind): Likewise.
853 * lib/getpeername.c (rpl_getpeername): Likewise.
854 * lib/getsockname.c (rpl_getsockname): Likewise.
855 * lib/recv.c (rpl_recv): Likewise.
856 * lib/send.c (rpl_send): Likewise.
857 * lib/recvfrom.c (rpl_recvfrom): Likewise.
858 * lib/sendto.c (rpl_sendto): Likewise.
860 2010-03-06 Bruno Haible <bruno@clisp.org>
862 Clarify access, euidaccess, faccessat.
863 * doc/posix-functions/faccessat.texi: Mention security problem under
864 "Other problems", not "Portability problems".
865 * doc/posix-functions/access.texi: Likewise. Mention a related security
867 * doc/glibc-functions/euidaccess.texi: Mention security problems.
868 * lib/euidaccess.c: Add comments about platforms.
869 * lib/unistd.in.h (access, euidaccess): Add warnings.
871 2010-03-07 Bruno Haible <bruno@clisp.org>
873 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
874 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
875 (POSIX_SPAWN_SETSCHEDULER): Likewise.
876 (POSIX_SPAWN_USEVFORK): Define in a way that works when
877 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
878 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
879 declare when POSIX_SPAWN_SETSCHEDULER is zero.
880 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
881 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
882 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
883 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
884 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
885 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
886 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
887 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
888 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
889 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
890 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
891 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
892 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
894 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
895 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
896 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
898 * tests/test-spawn.c (main): Make it work when
899 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
901 2010-03-07 Bruno Haible <bruno@clisp.org>
903 Fix incorrect Makefile.am generation in German locale.
904 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
905 Execute sed command with character range in C locale.
907 2010-03-06 Bruno Haible <bruno@clisp.org>
909 Tests for module 'iconv-h'.
910 * modules/iconv-h-tests: New file.
911 * tests/test-iconv-h.c: New file.
913 New module 'iconv-h'.
914 * modules/iconv-h: New file.
915 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
916 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
917 (configure.ac): Remove gl_ICONV_H.
918 (Makefile.am): Remove rule for iconv.h.
920 2010-03-06 Bruno Haible <bruno@clisp.org>
922 More consistent naming of *.m4 files.
923 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
924 * modules/wctype (Files): Update.
926 More consistent naming of *.m4 files.
927 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
928 * modules/wchar (Files): Update.
930 2010-03-06 Jim Meyering <meyering@redhat.com>
932 euidaccess: relax license to LGPLv2+
933 * modules/euidaccess (License): Relax to LGPLv2+.
935 2010-03-06 Bruno Haible <bruno@clisp.org>
937 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
938 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
939 (Makefile.am): Augment lib_SOURCES instead.
941 2010-03-04 Jim Meyering <meyering@redhat.com>
943 utime: remove obsolete module
944 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
945 unnecessary for years, and has been marked as obsolete for 10 months.
946 * modules/utime: Remove file.
947 * lib/utime.c: Remove file.
948 * m4/utime.m4: Remove file.
949 * m4/utimes-null.m4: Remove file.
950 * doc/posix-functions/utime.texi (utime): Remove reference to
951 the module. Move the sole "fixed by gnulib" item into the
952 "problems not fixed by Gnulib" list.
953 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
955 2010-03-05 Simon Josefsson <simon@josefsson.org>
957 * modules/exit (License): Relax license to LGPLv2+.
958 (Status): Mark as obsolete.
959 * NEWS: Mention deprecated 'exit' module.
960 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
961 of now obsolete 'exit'.
963 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
965 fts-lgpl: remove unused module
966 * modules/fts-lgpl: Remove.
967 * MODULES.html.sh (func_all_modules): Adjust.
968 * check-module (find_included_lib_files): Adjust.
969 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
971 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
973 copy-acl: enhance Solaris ACL error handling
974 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
975 * lib/set-mode-acl.c (qset_acl): Likewise.
977 2010-03-02 Bruno Haible <bruno@clisp.org>
979 spawn: Don't override the system defined values on FreeBSD 8.
980 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
981 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
982 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
983 if HAVE_POSIX_SPAWN is 1.
984 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
986 2010-03-01 Bruno Haible <bruno@clisp.org>
988 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
991 2010-02-25 Bruno Haible <bruno@clisp.org>
993 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
994 * gnulib-tool: Define 'echo' as a function only before the ksh alias
995 setting, not afterwards.
996 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
998 2010-02-24 Eric Blake <eblake@redhat.com>
1000 bootstrap, git-version-gen: use timestamp
1001 * build-aux/git-version-gen (scriptversion): Force UTC.
1002 * build-aux/bootstrap (scriptversion): New variable.
1004 bootstrap: allow older git
1005 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1006 older than 1.6.4. Requested by the libvirt project.
1008 2010-02-23 Eric Blake <eblake@redhat.com>
1010 warn-on-use: work with old autoconf
1011 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1012 AS_VAR semantics of autoconf 2.60.
1013 Reported by Bruno Haible.
1015 bootstrap: improve some comments
1016 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
1017 clarification comments.
1019 gettimeofday: provide correct function
1020 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1021 when replacement is declared, otherwise provide gettimeofday.
1022 Reported by Michael Goffioul.
1024 2010-02-23 Jim Meyering <meyering@redhat.com>
1026 lib-ignore: relax license to "unlimited", not LGPLv2+
1027 * modules/lib-ignore (License): Relax to "unlimited".
1029 2010-02-23 Jim Meyering <meyering@redhat.com>
1031 lib-ignore: relax license to LGPLv2+
1032 * modules/lib-ignore (License): Relax to LGPLv2+.
1034 2010-02-22 Eric Blake <eblake@redhat.com>
1036 lseek: avoid bash 3.2 broken pipe bug
1037 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1038 warning from bash 3.2.
1039 Reported by Ben Pfaff, with analysis from Bruno Haible.
1041 bootstrap: support non-FSF copyright holder
1042 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1043 bootstrap.conf override of COPYRIGHT_HOLDER.
1044 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1046 bootstrap: interoperate with gettext 0.14.1
1047 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1049 bootstrap: allow for alternate submodule location
1050 * build-aux/bootstrap (gnulib_path): New variable; use instead of
1051 hardcoding submodule location.
1052 (gnulib_mk): Allow direct use of Makefile.am.
1054 bootstrap: use GNULIB_SRCDIR to reduce disk usage
1055 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1056 rather than reconfiguring where the submodule points.
1058 gettimeofday: restore support for platforms that lack function
1059 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1060 replacement if function is missing.
1061 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1062 * modules/sys_time (Makefile.am): Substitute it.
1063 * lib/sys_time.in.h (gettimeofday): Check it.
1064 Reported by Michael Goffioul.
1066 2010-02-21 Bruno Haible <bruno@clisp.org>
1068 * lib/stdio.in.h (obstack_printf): Fix typo.
1070 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
1072 vc-list-files: use bzr ls's -R option
1073 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1074 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1076 2010-02-21 Jim Meyering <meyering@redhat.com>
1078 init.sh: fix EXEEXT shims to work also for names like test-prog
1079 * tests/init.sh: Re-exec a better shell, when needed.
1080 If the current shell lacks support for posix $(...), an init.sh-using
1081 test will now try to find a shell that supports that. If EXEEXT is
1082 nonempty, we also require support for hyphen-in-alias-name and shell
1083 substitutions like ${var#glob}. Failure to find such a shell results
1086 2010-02-21 Bruno Haible <bruno@clisp.org>
1088 Really work around around "broken pipe" error message from bash 3.2.
1089 * gnulib-tool (func_reset_sigpipe): Remove function.
1090 (echo): In bash 3.2, define to a function that uses printf.
1091 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1093 2010-02-20 Bruno Haible <bruno@clisp.org>
1095 Restore support for automake 1.9.6 with autoconf 2.61.
1096 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1097 Reported by James Youngman <jay@gnu.org>.
1099 2010-02-20 Bruno Haible <bruno@clisp.org>
1101 Improve *printf warning condition.
1102 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1103 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1104 and the function is overridden due to SIGPIPE emulation.
1106 2010-02-20 Bruno Haible <bruno@clisp.org>
1108 * lib/stdio.in.h: Tweak comments.
1110 2010-02-19 Bruno Haible <bruno@clisp.org>
1112 Make it easier to find modules. New gnulib-tool option '--find'.
1113 * gnulib-tool: New option --find.
1114 (func_usage): Document it.
1115 (func_sanitize_modulelist): New function, extracted from
1117 (func_all_modules): Invoke it.
1118 * doc/gnulib-tool.texi (Which modules?): New node.
1120 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
1122 * lib/sys_select.in.h: Provide select replacement even if
1123 sys/select.h exists on a system, for Interix.
1125 2010-02-18 Jim Meyering <meyering@redhat.com>
1127 init.sh: don't use $(...) just yet
1128 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1129 to accommodate e.g., Solaris' /bin/sh.
1131 2010-02-17 Bruno Haible <bruno@clisp.org>
1133 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1134 Reported by Ludovic Courtès <ludo@gnu.org>.
1136 2010-02-16 Simon Josefsson <simon@josefsson.org>
1138 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1139 linking with -lintl.
1141 2010-02-17 Simon Josefsson <simon@josefsson.org>
1143 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1144 if not provided by the system's netdb.h. Reported by
1145 ludo@gnu.org (Ludovic Courtès).
1147 2010-02-15 Jim Meyering <meyering@redhat.com>
1149 init.sh: improve portability and efficiency
1150 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1151 "dummy" in a for loop.
1152 Use '!', not '^' to select the complement of a character set used
1153 in a "case" statement.
1154 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1155 Suggestions from Eric Blake.
1157 init.sh: automatically accommodate programs with the .exe suffix
1158 Automatically arrange for an invocation of "prog" to execute the
1159 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
1160 may use the simpler "prog", yet still work when built on a system
1161 that requires specifying the added suffix.
1162 Do this by constructing a function named "prog" that invokes
1163 "prog.exe" for each .exe file in selected directories.
1164 * tests/init.sh (find_exe_basenames_): New function.
1165 (create_exe_shim_functions_): New function.
1166 (path_prepend_): Use it.
1168 maint.mk: mark syntax-check sc_*.m rules as .PHONY
1169 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1170 "make -t syntax-check" doesn't create a ton of sc_*.m files.
1172 2010-02-14 Jim Meyering <meyering@redhat.com>
1174 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1175 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1176 (sc_prohibit_hash_pjw_without_use): New rule.
1178 maint.mk: allow the default upload destination dir to be overridden
1179 * top/maint.mk (upload_dest_dir_): Define with a default that
1180 preserves the status quo.
1181 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1182 Reported by Peter Simons.
1184 maint.mk: prohibit inclusion of "hash.h" without_use
1185 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1187 2010-02-10 Jim Meyering <meyering@redhat.com>
1189 maint.mk: prohibit inclusion of "ignore-value.h" without_use
1190 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1192 2010-02-09 Eric Blake <ebb9@byu.net>
1193 and Bruno Haible <bruno@clisp.org>
1195 obstack-printf-posix: ensure declaration
1196 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1197 extracted from gl_FUNC_OBSTACK_PRINTF.
1198 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1199 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1201 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1202 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1205 2010-02-08 Bruno Haible <bruno@clisp.org>
1207 gnulib-tool: Fix typo in 2010-02-07 commit.
1208 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1209 Reported by Eric Blake.
1211 2010-02-07 Bruno Haible <bruno@clisp.org>
1213 gnulib-tool: Fix up caching patches.
1214 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1215 option --no-cache. Use associative arrays when supported by the shell.
1216 (sed_comments): New variable.
1217 (modcache): Renamed from do_cache.
1218 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1219 abbreviate unnecessarily.
1220 (have_associative): New variable.
1221 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1222 way also for ksh and zsh.
1223 (func_init_sed_convert_to_cache_statements): New function, extracted
1224 from func_cache_lookup_module. Add support for associative arrays.
1225 Don't set the c_MODULE_cached variable here. Ignore all lines before
1226 the first field header. Remove only the final newline, not all trailing
1227 newlines. Support empty fields correctly. Limit the use of 'eval' to
1229 (func_get_description, func_get_status, func_get_notice,
1230 func_get_applicability, func_get_filelist, func_get_dependencies,
1231 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1232 func_get_automake_snippet, func_get_include_directive,
1233 func_get_link_directive, func_get_license, func_get_maintainer):
1234 Update documentation. List the unoptimized code first. Add support for
1235 associative arrays. Limit the use of 'eval' to assignments.
1236 (func_get_applicability): Undo stylistic pessimisations.
1237 (func_get_automake_snippet, func_get_include_directive): Reduce code
1239 (func_modules_transitive_closure, func_modules_add_dummy,
1240 func_modules_notice, func_modules_to_filelist, func_add_file,
1241 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1242 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1243 func_create_testdir, func_create_megatestdir): Update documentation.
1245 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1247 * gnulib-tool (func_cache_lookup_module): Store the module name
1248 belonging to the cache variable; error out if two different
1249 module names map to the same cache variable name.
1251 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1253 gnulib-tool: Make caching optional.
1254 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1255 Update matching short versions of --no-changelog.
1256 (func_usage): Update.
1257 (sed_extract_cache_prog): Renamed from ...
1258 (sed_extract_prog): ... this; revert to old extraction script.
1259 (func_get_description, func_get_status)
1260 (func_get_notice, func_get_applicability, func_get_filelist)
1261 (func_get_dependencies, func_get_autoconf_early_snippet)
1262 (func_get_autoconf_snippet, func_get_automake_snippet)
1263 (func_get_include_directive, func_get_link_directive)
1264 (func_get_license, func_get_maintainer): If $do_cache is false,
1265 use old, non-caching extraction scripts.
1266 Suggestion by Bruno Haible.
1268 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1270 gnulib-tool: cache module metainformation.
1271 * gnulib-tool (sed_extract_prog): Match newline before each
1272 header, and rewrite header to a shell variable suffix.
1273 (func_cache_var, func_cache_lookup_module): New functions,
1274 to turn a module name into a cache variable prefix, and to
1275 look up and cache module metainformation.
1276 (func_get_description, func_get_status)
1277 (func_get_notice, func_get_applicability, func_get_filelist)
1278 (func_get_dependencies, func_get_autoconf_early_snippet)
1279 (func_get_autoconf_snippet, func_get_automake_snippet)
1280 (func_get_include_directive, func_get_link_directive)
1281 (func_get_license, func_get_maintainer): Use
1282 func_cache_lookup_module.
1284 2010-02-07 Bruno Haible <bruno@clisp.org>
1286 fnctl: Fix missing dependency.
1287 * modules/fcntl (Depends-on): Add getdtablesize.
1288 Reported by John W. Eaton <jwe@gnu.org>.
1290 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1292 Argp: fix recognition of short alias options.
1294 * lib/argp-parse.c (convert_options): Fix improper use of
1295 `|' between character values.
1296 * tests/test-argp.c (group1_option): New alias option
1298 (group1_parser): Special handling for 'r'.
1299 (test15): New test case.
1300 (test_fun): Add test15.
1301 * tests/test-argp-2.sh: Update expected --help and --usage
1304 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1306 * tests/test-argp.c: Fix indentation.
1308 2010-02-04 Eric Blake <ebb9@byu.net>
1310 gettimeofday: expose type of second argument
1311 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1312 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1313 * tests/test-gettimeofday.c: Use it to silence warning.
1314 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1317 2010-02-03 Jim Meyering <meyering@redhat.com>
1319 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1320 * lib/regcomp.c (TYPE_SIGNED): Define.
1321 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1323 regcomp.c: avoid a new -Wshadow warning
1324 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1326 2010-02-01 Jim Meyering <meyering@redhat.com>
1328 removing useless parentheses in cpp #define directives
1329 For motivation, see commit c0221df4, "define STREQ(a,b)
1330 consistently, removing useless parentheses"
1331 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1332 * lib/mountlist.c (MNT_IGNORE): Likewise.
1333 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1335 2010-02-01 Eric Blake <ebb9@byu.net>
1337 sys_time: use link-warning
1338 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1339 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1340 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1341 * modules/sys_time (Depends-on): Add warn-on-use.
1342 (Makefile.am): Always build replacement.
1343 (configure.ac): Update substitutions.
1344 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1345 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1346 bother with SYS_TIME_H.
1347 * modules/gettimeofday (configure.ac): Declare indicator.
1348 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1351 closein-tests: silence compiler warning
1352 * tests/test-closein.c (main): Ignore fread result.
1353 * modules/closein-tests (Depends-on): Add ignore-value.
1355 tests: silence warning about system return
1356 * tests/test-areadlink-with-size.c (main): Ignore system result.
1357 * tests/test-areadlink.c (main): Likewise.
1358 * tests/test-areadlinkat-with-size.c (main): Likewise.
1359 * tests/test-areadlinkat.c (main): Likewise.
1360 * tests/test-canonicalize-lgpl.c (main): Likewise.
1361 * tests/test-canonicalize.c (main): Likewise.
1362 * tests/test-chown.c (main): Likewise.
1363 * tests/test-fchownat.c (main): Likewise.
1364 * tests/test-fdutimensat.c (main): Likewise.
1365 * tests/test-fstatat.c (main): Likewise.
1366 * tests/test-futimens.c (main): Likewise.
1367 * tests/test-lchown.c (main): Likewise.
1368 * tests/test-link.c (main): Likewise.
1369 * tests/test-linkat.c (main): Likewise.
1370 * tests/test-lstat.c (main): Likewise.
1371 * tests/test-mkdir.c (main): Likewise.
1372 * tests/test-mkdirat.c (main): Likewise.
1373 * tests/test-mkfifo.c (main): Likewise.
1374 * tests/test-mkfifoat.c (main): Likewise.
1375 * tests/test-mknod.c (main): Likewise.
1376 * tests/test-readlink.c (main): Likewise.
1377 * tests/test-remove.c (main): Likewise.
1378 * tests/test-rename.c (main): Likewise.
1379 * tests/test-renameat.c (main): Likewise.
1380 * tests/test-rmdir.c (main): Likewise.
1381 * tests/test-symlink.c (main): Likewise.
1382 * tests/test-symlinkat.c (main): Likewise.
1383 * tests/test-unlink.c (main): Likewise.
1384 * tests/test-unlinkat.c (main): Likewise.
1385 * tests/test-utimens.c (main): Likewise.
1386 * tests/test-utimensat.c (main): Likewise.
1387 * modules/areadlink-tests (Depends-on): Add ignore-value.
1388 * modules/areadlink-with-size-tests (Depends-on): Likewise.
1389 * modules/areadlinkat-tests (Depends-on): Likewise.
1390 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1391 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1392 * modules/canonicalize-tests (Depends-on): Likewise.
1393 * modules/chown-tests (Depends-on): Likewise.
1394 * modules/fdutimensat-tests (Depends-on): Likewise.
1395 * modules/futimens-tests (Depends-on): Likewise.
1396 * modules/lchown-tests (Depends-on): Likewise.
1397 * modules/link-tests (Depends-on): Likewise.
1398 * modules/linkat-tests (Depends-on): Likewise.
1399 * modules/lstat-tests (Depends-on): Likewise.
1400 * modules/mkdir-tests (Depends-on): Likewise.
1401 * modules/mkfifo-tests (Depends-on): Likewise.
1402 * modules/mkfifoat-tests (Depends-on): Likewise.
1403 * modules/mknod-tests (Depends-on): Likewise.
1404 * modules/openat-tests (Depends-on): Likewise.
1405 * modules/readlink-tests (Depends-on): Likewise.
1406 * modules/remove-tests (Depends-on): Likewise.
1407 * modules/rename-tests (Depends-on): Likewise.
1408 * modules/renameat-tests (Depends-on): Likewise.
1409 * modules/rmdir-tests (Depends-on): Likewise.
1410 * modules/symlink-tests (Depends-on): Likewise.
1411 * modules/symlinkat-tests (Depends-on): Likewise.
1412 * modules/unlink-tests (Depends-on): Likewise.
1413 * modules/utimens-tests (Depends-on): Likewise.
1414 * modules/utimensat-tests (Depends-on): Likewise.
1416 2010-01-31 Bruno Haible <bruno@clisp.org>
1418 Perform the same test for many <math.h> functions.
1419 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1420 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1421 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1423 * modules/acos (configure.ac): Likewise.
1424 * modules/asin (configure.ac): Likewise.
1425 * modules/atan (configure.ac): Likewise.
1426 * modules/atan2 (configure.ac): Likewise.
1427 * modules/cbrt (configure.ac): Likewise.
1428 * modules/copysign (configure.ac): Likewise.
1429 * modules/cos (configure.ac): Likewise.
1430 * modules/cosh (configure.ac): Likewise.
1431 * modules/erf (configure.ac): Likewise.
1432 * modules/erfc (configure.ac): Likewise.
1433 * modules/exp (configure.ac): Likewise.
1434 * modules/fmod (configure.ac): Likewise.
1435 * modules/hypot (configure.ac): Likewise.
1436 * modules/j0 (configure.ac): Likewise.
1437 * modules/j1 (configure.ac): Likewise.
1438 * modules/jn (configure.ac): Likewise.
1439 * modules/lgamma (configure.ac): Likewise.
1440 * modules/log (configure.ac): Likewise.
1441 * modules/log10 (configure.ac): Likewise.
1442 * modules/log1p (configure.ac): Likewise.
1443 * modules/pow (configure.ac): Likewise.
1444 * modules/remainder (configure.ac): Likewise.
1445 * modules/sin (configure.ac): Likewise.
1446 * modules/sinh (configure.ac): Likewise.
1447 * modules/tan (configure.ac): Likewise.
1448 * modules/tanh (configure.ac): Likewise.
1449 * modules/y0 (configure.ac): Likewise.
1450 * modules/y1 (configure.ac): Likewise.
1451 * modules/yn (configure.ac): Likewise.
1452 Suggested by Paolo Bonzini.
1454 2010-01-31 Bruno Haible <bruno@clisp.org>
1456 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1458 2010-01-31 Bruno Haible <bruno@clisp.org>
1460 Work around getdelim() bug on FreeBSD 8.0.
1461 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1462 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1464 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1466 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1467 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1468 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1470 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1472 2010-01-31 Bruno Haible <bruno@clisp.org>
1474 Work around getline() bug on FreeBSD 8.0.
1475 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1476 and a non-zero size.
1477 * tests/test-getline.c (main): Likewise.
1478 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1479 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1481 2010-01-28 Eric Blake <ebb9@byu.net>
1483 regex: fix build failure
1484 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1487 2010-01-28 Jim Meyering <meyering@redhat.com>
1489 regex: do not ignore memory allocation failure
1490 * lib/regex_internal.c (create_cd_newstate): Detect
1491 re_node_set_init_copy failure. Extracted from glibc commit
1492 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1494 regex: sync more white-space changes from libc
1495 * lib/regex_internal.c: White-space only changes.
1496 * lib/regexec.c: Likewise.
1498 regex: add many uses of __attribute_warn_unused_result__
1499 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1500 * lib/regexec.c: Likewise.
1501 Extracted from a messy glibc commit.
1503 regcomp.c: spelling and merge-artifact from glibc
1504 * lib/regcomp.c: Merge remainder of glibc's
1505 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1507 regcomp.c: sync white-space changes from glibc
1508 * lib/regcomp.c: Merge to accommodate white space
1509 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1511 regcomp.c: do not ignore internal return values
1512 * lib/regcomp.c: Do not ignore internal return values.
1513 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1514 but without its white-space changes and spelling fixes.
1516 regex_internal.h: define __attribute_warn_unused_result__
1517 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1519 maint: add a syntax-check rule to check for vulnerable Makefile.in
1520 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1522 2010-01-27 Jim Meyering <meyering@redhat.com>
1524 ncftpput-ftp: clean up spaces
1525 * build-aux/ncftpput-ftp: Make Copyright line consistent.
1526 Remove trailing blanks.
1528 2010-01-27 Simon Josefsson <simon@josefsson.org>
1530 * build-aux/git-version-gen: Fix copyright statement.
1531 * build-aux/gnupload: Likewise.
1532 * tests/test-arcfour.c: Likewise.
1533 * tests/test-arctwo.c: Likewise.
1534 * tests/test-count-one-bits.c: Likewise.
1535 * tests/test-crc.c: Likewise.
1536 * tests/test-des.c: Likewise.
1537 * tests/test-gc-arcfour.c: Likewise.
1538 * tests/test-gc-arctwo.c: Likewise.
1539 * tests/test-gc-des.c: Likewise.
1540 * tests/test-gc-hmac-md5.c: Likewise.
1541 * tests/test-gc-hmac-sha1.c: Likewise.
1542 * tests/test-gc-md2.c: Likewise.
1543 * tests/test-gc-md4.c: Likewise.
1544 * tests/test-gc-md5.c: Likewise.
1545 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1546 * tests/test-gc-rijndael.c: Likewise.
1547 * tests/test-gc-sha1.c: Likewise.
1548 * tests/test-gc.c: Likewise.
1549 * tests/test-gethostname.c: Likewise.
1550 * tests/test-gettimeofday.c: Likewise.
1551 * tests/test-hash.c: Likewise.
1552 * tests/test-hmac-md5.c: Likewise.
1553 * tests/test-hmac-sha1.c: Likewise.
1554 * tests/test-md2.c: Likewise.
1555 * tests/test-md4.c: Likewise.
1556 * tests/test-md5.c: Likewise.
1557 * tests/test-memchr.c: Likewise.
1558 * tests/test-memchr2.c: Likewise.
1559 * tests/test-memcmp.c: Likewise.
1560 * tests/test-memmem.c: Likewise.
1561 * tests/test-memrchr.c: Likewise.
1562 * tests/test-rawmemchr.c: Likewise.
1563 * tests/test-read-file.c: Likewise.
1564 * tests/test-rijndael.c: Likewise.
1565 * tests/test-sockets.c: Likewise.
1566 * tests/test-strchrnul.c: Likewise.
1567 * tests/test-strstr.c: Likewise.
1568 * tests/test-strtod.c: Likewise.
1569 * build-aux/ncftpput-ftp: Likewise.
1571 2010-01-26 Eric Blake <ebb9@byu.net>
1573 ignore-value: update recommended header name
1574 * modules/ignore-value (Include): Only use <> for headers that
1577 2010-01-26 Jim Meyering <meyering@redhat.com>
1579 test-userspec.c: avoid compiler warnings
1580 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1581 and "initialization discards qualifiers..." warnings.
1582 Put the first "uid" in its own scope, and make char* members "const".
1584 2010-01-25 Bruno Haible <bruno@clisp.org>
1586 gnulib-tool: Make warning diagnostics consistent.
1587 * gnulib-tool (func_warning): New function.
1588 Use it everywhere where gnulib-tool produces output to stderr and it is
1591 2010-01-25 Bruno Haible <bruno@clisp.org>
1593 Fix test dependencies.
1594 * modules/xstrtol-tests (Depends-on): Add inttypes.
1595 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1597 2010-01-25 Pádraig Brady <P@draigBrady.com>
1599 syntax-check: detect incorrect boolean macro values in config.h
1600 * modules/maintainer-makefile (configure.ac): Parameterize the location
1601 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1602 The logic is from Eric Blake and the location indicated by Jim Meyering.
1603 Note the more natural CONFIG_HEADER name is prohibited by automake
1604 for backwards compatibility reasons.
1605 * top/maint.mk (sc_Wundef_boolean): New rule.
1607 2010-01-25 Jim Meyering <meyering@redhat.com>
1609 bootstrap: detect MacOS 10.6's shasum, too
1610 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1611 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1613 2010-01-23 Jim Meyering <meyering@redhat.com>
1615 xstrtoll: new module
1616 * modules/xstrtoll: New file.
1617 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1618 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1619 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1620 ./configure fails if you use this module and lack "long long".
1621 * modules/xstrtoll-tests: New module.
1622 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1623 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1624 new init.sh-based test framework.
1626 2010-01-24 Bruno Haible <bruno@clisp.org>
1628 Tests for module 'yn'.
1629 * modules/yn-tests: New file.
1630 * tests/test-yn.c: New file.
1632 Tests for module 'y1'.
1633 * modules/y1-tests: New file.
1634 * tests/test-y1.c: New file.
1636 Tests for module 'y0'.
1637 * modules/y0-tests: New file.
1638 * tests/test-y0.c: New file.
1640 Tests for module 'tanh'.
1641 * modules/tanh-tests: New file.
1642 * tests/test-tanh.c: New file.
1644 Tests for module 'tan'.
1645 * modules/tan-tests: New file.
1646 * tests/test-tan.c: New file.
1648 Tests for module 'sqrt'.
1649 * modules/sqrt-tests: New file.
1650 * tests/test-sqrt.c: New file.
1652 Tests for module 'sinh'.
1653 * modules/sinh-tests: New file.
1654 * tests/test-sinh.c: New file.
1656 Tests for module 'sin'.
1657 * modules/sin-tests: New file.
1658 * tests/test-sin.c: New file.
1660 Tests for module 'rint'.
1661 * modules/rint-tests: New file.
1662 * tests/test-rint.c: New file.
1664 Tests for module 'remainder'.
1665 * modules/remainder-tests: New file.
1666 * tests/test-remainder.c: New file.
1668 Tests for module 'pow'.
1669 * modules/pow-tests: New file.
1670 * tests/test-pow.c: New file.
1672 Tests for module 'nextafter'.
1673 * modules/nextafter-tests: New file.
1674 * tests/test-nextafter.c: New file.
1676 Tests for module 'modf'.
1677 * modules/modf-tests: New file.
1678 * tests/test-modf.c: New file.
1680 Tests for module 'logb'.
1681 * modules/logb-tests: New file.
1682 * tests/test-logb.c: New file.
1684 Tests for module 'log1p'.
1685 * modules/log1p-tests: New file.
1686 * tests/test-log1p.c: New file.
1688 Tests for module 'log10'.
1689 * modules/log10-tests: New file.
1690 * tests/test-log10.c: New file.
1692 Tests for module 'log'.
1693 * modules/log-tests: New file.
1694 * tests/test-log.c: New file.
1696 Tests for module 'lgamma'.
1697 * modules/lgamma-tests: New file.
1698 * tests/test-lgamma.c: New file.
1700 Tests for module 'ldexp'.
1701 * modules/ldexp-tests: New file.
1702 * tests/test-ldexp.c: New file.
1704 Tests for module 'jn'.
1705 * modules/jn-tests: New file.
1706 * tests/test-jn.c: New file.
1708 Tests for module 'j1'.
1709 * modules/j1-tests: New file.
1710 * tests/test-j1.c: New file.
1712 Tests for module 'j0'.
1713 * modules/j0-tests: New file.
1714 * tests/test-j0.c: New file.
1716 Tests for module 'hypot'.
1717 * modules/hypot-tests: New file.
1718 * tests/test-hypot.c: New file.
1720 Tests for module 'fmod'.
1721 * modules/fmod-tests: New file.
1722 * tests/test-fmod.c: New file.
1724 Tests for module 'fabs'.
1725 * modules/fabs-tests: New file.
1726 * tests/test-fabs.c: New file.
1728 Tests for module 'exp'.
1729 * modules/exp-tests: New file.
1730 * tests/test-exp.c: New file.
1732 Tests for module 'erfc'.
1733 * modules/erfc-tests: New file.
1734 * tests/test-erfc.c: New file.
1736 Tests for module 'erf'.
1737 * modules/erf-tests: New file.
1738 * tests/test-erf.c: New file.
1740 Tests for module 'cosh'.
1741 * modules/cosh-tests: New file.
1742 * tests/test-cosh.c: New file.
1744 Tests for module 'cos'.
1745 * modules/cos-tests: New file.
1746 * tests/test-cos.c: New file.
1748 Tests for module 'copysign'.
1749 * modules/copysign-tests: New file.
1750 * tests/test-copysign.c: New file.
1752 Tests for module 'cbrt'.
1753 * modules/cbrt-tests: New file.
1754 * tests/test-cbrt.c: New file.
1756 Tests for module 'atan2'.
1757 * modules/atan2-tests: New file.
1758 * tests/test-atan2.c: New file.
1760 Tests for module 'atan'.
1761 * modules/atan-tests: New file.
1762 * tests/test-atan.c: New file.
1764 Tests for module 'asin'.
1765 * modules/asin-tests: New file.
1766 * tests/test-asin.c: New file.
1768 Tests for module 'acos'.
1769 * modules/acos-tests: New file.
1770 * tests/test-acos.c: New file.
1772 2010-01-24 Bruno Haible <bruno@clisp.org>
1774 Fix tests for common <math.h> functions.
1775 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1776 code snippet that references the function pointer, rather than merely
1777 calling the function. Substitute the FUNC_LIBM variable.
1778 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1779 * modules/acos (configure.ac): Likewise.
1780 * modules/asin (configure.ac): Likewise.
1781 * modules/atan (configure.ac): Likewise.
1782 * modules/atan2 (configure.ac): Likewise.
1783 * modules/cbrt (configure.ac): Likewise.
1784 * modules/copysign (configure.ac): Likewise.
1785 * modules/cos (configure.ac): Likewise.
1786 * modules/cosh (configure.ac): Likewise.
1787 * modules/erf (configure.ac): Likewise.
1788 * modules/erfc (configure.ac): Likewise.
1789 * modules/exp (configure.ac): Likewise.
1790 * modules/fabs (configure.ac): Likewise.
1791 * modules/fmod (configure.ac): Likewise.
1792 * modules/hypot (configure.ac): Likewise.
1793 * modules/j0 (configure.ac): Likewise.
1794 * modules/j1 (configure.ac): Likewise.
1795 * modules/jn (configure.ac): Likewise.
1796 * modules/ldexp (configure.ac): Likewise.
1797 * modules/lgamma (configure.ac): Likewise.
1798 * modules/log (configure.ac): Likewise.
1799 * modules/log10 (configure.ac): Likewise.
1800 * modules/log1p (configure.ac): Likewise.
1801 * modules/logb (configure.ac): Likewise.
1802 * modules/modf (configure.ac): Likewise.
1803 * modules/nextafter (configure.ac): Likewise.
1804 * modules/pow (configure.ac): Likewise.
1805 * modules/remainder (configure.ac): Likewise.
1806 * modules/rint (configure.ac): Likewise.
1807 * modules/sin (configure.ac): Likewise.
1808 * modules/sinh (configure.ac): Likewise.
1809 * modules/tan (configure.ac): Likewise.
1810 * modules/tanh (configure.ac): Likewise.
1811 * modules/y0 (configure.ac): Likewise.
1812 * modules/y1 (configure.ac): Likewise.
1813 * modules/yn (configure.ac): Likewise.
1815 2010-01-24 Bruno Haible <bruno@clisp.org>
1817 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1818 * tests/test-acosl.c (x): New variable.
1819 (main): Store argument in x and fetch it from x.
1820 * tests/test-asinl.c (x): New variable.
1821 (main): Store argument in x and fetch it from x.
1822 * tests/test-atanl.c (x): New variable.
1823 (main): Store argument in x and fetch it from x.
1824 * tests/test-cosl.c (x): New variable.
1825 (main): Store argument in x and fetch it from x.
1826 * tests/test-expl.c (x): New variable.
1827 (main): Store argument in x and fetch it from x.
1828 * tests/test-logl.c (x): New variable.
1829 (main): Store argument in x and fetch it from x.
1830 * tests/test-sinl.c (x): New variable.
1831 (main): Store argument in x and fetch it from x.
1832 * tests/test-sqrtl.c (x): New variable.
1833 (main): Store argument in x and fetch it from x.
1834 * tests/test-tanl.c (x): New variable.
1835 (main): Store argument in x and fetch it from x.
1837 2010-01-24 Bruno Haible <bruno@clisp.org>
1839 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1840 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1841 assignments to the initial TESTS_ENVIRONMENT.
1842 * doc/gnulib.texi (Unit test modules): Document it.
1843 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1845 * modules/btowc-tests (Makefile.am): Likewise.
1846 * modules/c-stack-tests (Makefile.am): Likewise.
1847 * modules/c-strcase-tests (Makefile.am): Likewise.
1848 * modules/copy-file-tests (Makefile.am): Likewise.
1849 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1850 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1851 * modules/mbrtowc-tests (Makefile.am): Likewise.
1852 * modules/mbscasecmp-tests (Makefile.am): Likewise.
1853 * modules/mbscasestr-tests (Makefile.am): Likewise.
1854 * modules/mbschr-tests (Makefile.am): Likewise.
1855 * modules/mbscspn-tests (Makefile.am): Likewise.
1856 * modules/mbsinit-tests (Makefile.am): Likewise.
1857 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1858 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1859 * modules/mbspbrk-tests (Makefile.am): Likewise.
1860 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1861 * modules/mbsrchr-tests (Makefile.am): Likewise.
1862 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1863 * modules/mbsspn-tests (Makefile.am): Likewise.
1864 * modules/mbsstr-tests (Makefile.am): Likewise.
1865 * modules/nl_langinfo-tests (Makefile.am): Likewise.
1866 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1867 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1868 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1869 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1870 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1871 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1872 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1873 * modules/wcrtomb-tests (Makefile.am): Likewise.
1874 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1875 * modules/wcsrtombs-tests (Makefile.am): Likewise.
1876 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1877 assignments from TESTS_ENVIRONMENT.
1878 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1880 * modules/argp-version-etc-tests (Makefile.am): Likewise.
1881 * modules/atexit-tests (Makefile.am): Likewise.
1882 * modules/binary-io-tests (Makefile.am): Likewise.
1883 * modules/closein-tests (Makefile.am): Likewise.
1884 * modules/dprintf-posix-tests (Makefile.am): Likewise.
1885 * modules/exclude-tests (Makefile.am): Likewise.
1886 * modules/fflush-tests (Makefile.am): Likewise.
1887 * modules/fpending-tests (Makefile.am): Likewise.
1888 * modules/fprintf-posix-tests (Makefile.am): Likewise.
1889 * modules/freadahead-tests (Makefile.am): Likewise.
1890 * modules/freadptr-tests (Makefile.am): Likewise.
1891 * modules/freadseek-tests (Makefile.am): Likewise.
1892 * modules/fseek-tests (Makefile.am): Likewise.
1893 * modules/fseeko-tests (Makefile.am): Likewise.
1894 * modules/ftell-tests (Makefile.am): Likewise.
1895 * modules/ftello-tests (Makefile.am): Likewise.
1896 * modules/idpriv-drop-tests (Makefile.am): Likewise.
1897 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1898 * modules/lseek-tests (Makefile.am): Likewise.
1899 * modules/parse-duration-tests (Makefile.am): Likewise.
1900 * modules/perror-tests (Makefile.am): Likewise.
1901 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1902 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1903 * modules/pipe-tests (Makefile.am): Likewise.
1904 * modules/pread-tests (Makefile.am): Likewise.
1905 * modules/printf-posix-tests (Makefile.am): Likewise.
1906 * modules/select-tests (Makefile.am): Likewise.
1907 * modules/sigpipe-tests (Makefile.am): Likewise.
1908 * modules/tsearch-tests (Makefile.am): Likewise.
1909 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1910 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1911 * modules/uniname/uniname-tests (Makefile.am): Likewise.
1912 * modules/uniwidth/width-tests (Makefile.am): Likewise.
1913 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1914 * modules/version-etc-tests (Makefile.am): Likewise.
1915 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1916 * modules/vprintf-posix-tests (Makefile.am): Likewise.
1917 * modules/xalloc-die-tests (Makefile.am): Likewise.
1918 * modules/xprintf-posix-tests (Makefile.am): Likewise.
1919 * modules/xstrtoimax-tests (Makefile.am): Likewise.
1920 * modules/xstrtol-tests (Makefile.am): Likewise.
1921 * modules/xstrtoumax-tests (Makefile.am): Likewise.
1922 * modules/yesno-tests (Makefile.am): Likewise.
1923 Suggested by Jim Meyering.
1925 2010-01-24 Bruno Haible <bruno@clisp.org>
1928 * doc/gnulib.texi (Writing modules): New chapter.
1929 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1932 2010-01-24 Jim Meyering <meyering@redhat.com>
1934 maint.mk: do not prepend "./" after filtering
1935 * top/maint.mk (_prepend_srcdir_prefix): New variable
1936 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1937 "./" when $(srcdir) is ".".
1939 define STREQ(a,b) consistently, removing useless parentheses
1940 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1941 since the only risk is that "a" or "b" contains an unparenthesized
1942 comma, but if either did that, STREQ would have 3 or more arguments.
1943 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1944 * lib/fts.c (STREQ): Remove unnecessary parentheses.
1945 * lib/hash-triple.c (STREQ): Likewise.
1946 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1947 * lib/getugroups.c (STREQ): Likewise.
1949 2010-01-23 Jim Meyering <meyering@redhat.com>
1951 maint.mk: fix syntax-check in a non-srcdir build directory
1952 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1953 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
1955 2010-01-22 Jim Meyering <meyering@redhat.com>
1957 userspec: add unit tests
1958 * tests/test-userspec.c: New file.
1959 * modules/userspec-tests: Likewise.
1961 2010-01-21 Jim Meyering <meyering@redhat.com>
1963 maint.mk: handle source file names containing "." robustly
1964 * top/maint.mk (_dot_escaped_srcdir): Define.
1965 (VC_LIST): Use it in LHS of sed substitution.
1967 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
1969 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1970 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1971 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1972 from a non-srcdir build.
1974 2010-01-20 Eric Blake <ebb9@byu.net>
1976 warn-on-use: use instead of link-warning
1977 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1978 * modules/unistd (Depends-on, Makefile.am): Likewise.
1979 * modules/arpa_inet (Depends-on): Replace link-warning with
1981 (Makefile.am): Update rules accordingly.
1982 * modules/ctype (Depends-on, Makefile.am): Likewise.
1983 * modules/dirent (Depends-on, Makefile.am): Likewise.
1984 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1985 * modules/inttypes (Depends-on, Makefile.am): Likewise.
1986 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1987 * modules/locale (Depends-on, Makefile.am): Likewise.
1988 * modules/math (Depends-on, Makefile.am): Likewise.
1989 * modules/search (Depends-on, Makefile.am): Likewise.
1990 * modules/signal (Depends-on, Makefile.am): Likewise.
1991 * modules/spawn (Depends-on, Makefile.am): Likewise.
1992 * modules/stdlib (Depends-on, Makefile.am): Likewise.
1993 * modules/string (Depends-on, Makefile.am): Likewise.
1994 * modules/strings (Depends-on, Makefile.am): Likewise.
1995 * modules/sys_file (Depends-on, Makefile.am): Likewise.
1996 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1997 * modules/sys_select (Depends-on, Makefile.am): Likewise.
1998 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1999 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2000 * modules/sys_times (Depends-on, Makefile.am): Likewise.
2001 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2002 * modules/wchar (Depends-on, Makefile.am): Likewise.
2003 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2005 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2006 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2007 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2008 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2009 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2010 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2011 * m4/math_h.m4 (gl_MATH_H): Likewise.
2012 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2013 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2014 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2015 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2016 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2017 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2018 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2019 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2020 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2021 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2022 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2023 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2024 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2025 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2026 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2027 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2028 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2030 * lib/ctype.in.h: Likewise.
2031 * lib/dirent.in.h: Likewise.
2032 * lib/fcntl.in.h: Likewise.
2033 * lib/inttypes.in.h: Likewise.
2034 * lib/langinfo.in.h: Likewise.
2035 * lib/locale.in.h: Likewise.
2036 * lib/math.in.h: Likewise.
2037 * lib/search.in.h: Likewise.
2038 * lib/signal.in.h: Likewise.
2039 * lib/spawn.in.h: Likewise.
2040 * lib/stdio.in.h: Likewise.
2041 * lib/stdlib.in.h: Likewise.
2042 * lib/string.in.h: Likewise.
2043 * lib/strings.in.h: Likewise.
2044 * lib/sys_file.in.h: Likewise.
2045 * lib/sys_ioctl.in.h: Likewise.
2046 * lib/sys_select.in.h: Likewise.
2047 * lib/sys_socket.in.h: Likewise.
2048 * lib/sys_stat.in.h: Likewise.
2049 * lib/sys_times.in.h: Likewise.
2050 * lib/sys_utsname.in.h: Likewise.
2051 * lib/unistd.in.h: Likewise.
2052 * lib/wchar.in.h: Likewise.
2054 2010-01-20 Bruno Haible <bruno@clisp.org>
2056 Avoid duplicate -lm.
2057 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2058 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2059 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2060 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2061 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2062 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2063 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2064 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2065 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2066 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2067 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2068 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2069 Reported by Paolo Bonzini.
2071 2010-01-19 Bruno Haible <bruno@clisp.org>
2073 langinfo, nl_langinfo: Relicense under LGPLv2+.
2074 * modules/langinfo (License): Change to LGPLv2+.
2075 * modules/nl_langinfo (License): Likewise.
2076 Patch by David Lutterkort <lutter@redhat.com>.
2078 2010-01-19 Bruno Haible <bruno@clisp.org>
2080 Avoid compilation error with cc on OSF/1 5.1.
2081 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2082 statement, not before.
2083 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2085 2010-01-18 Bruno Haible <bruno@clisp.org>
2087 Avoid a link error due to the __printf__ symbol.
2088 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2090 (__format__, __printf__): Remove definitions.
2091 * lib/argp-fmtstream.h: Likewise.
2092 * lib/argp.h: Likewise.
2093 * lib/error.h: Likewise.
2094 * lib/vasnprintf.h: Likewise.
2095 * lib/xprintf.h: Likewise.
2096 * lib/xvasprintf.h: Likewise.
2097 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2099 2010-01-18 Bruno Haible <bruno@clisp.org>
2101 Tests for module 'tanl'.
2102 * modules/tanl-tests: New file.
2103 * tests/test-tanl.c: New file.
2105 Tests for module 'sqrtl'.
2106 * modules/sqrtl-tests: New file.
2107 * tests/test-sqrtl.c: New file.
2109 Tests for module 'sinl'.
2110 * modules/sinl-tests: New file.
2111 * tests/test-sinl.c: New file.
2113 Tests for module 'logl'.
2114 * modules/logl-tests: New file.
2115 * tests/test-logl.c: New file.
2117 Tests for module 'expl'.
2118 * modules/expl-tests: New file.
2119 * tests/test-expl.c: New file.
2121 Tests for module 'cosl'.
2122 * modules/cosl-tests: New file.
2123 * tests/test-cosl.c: New file.
2125 Tests for module 'atanl'.
2126 * modules/atanl-tests: New file.
2127 * tests/test-atanl.c: New file.
2129 Tests for module 'asinl'.
2130 * modules/asinl-tests: New file.
2131 * tests/test-asinl.c: New file.
2133 Tests for module 'acosl'.
2134 * modules/acosl-tests: New file.
2135 * tests/test-acosl.c: New file.
2137 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2138 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2139 tanl): Use the standard gnulib idiom.
2140 * lib/cosl.c: Don't include trigl.c and sincosl.c.
2141 * lib/sinl.c: Likewise.
2142 * lib/tanl.c: Don't include trigl.c.
2143 (kernel_tanl): Make static.
2144 * lib/sincosl.c: Include trigl.h first.
2145 * lib/trigl.c: Likewise.
2146 * m4/acosl.m4: New file.
2147 * m4/asinl.m4: New file.
2148 * m4/atanl.m4: New file.
2149 * m4/cosl.m4: New file.
2150 * m4/expl.m4: New file.
2151 * m4/logl.m4: New file.
2152 * m4/sinl.m4: New file.
2153 * m4/sqrtl.m4: New file.
2154 * m4/tanl.m4: New file.
2155 * m4/mathl.m4: Remove file.
2156 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2157 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2158 Don't initialize GNULIB_MATHL.
2159 * modules/acosl: New file.
2160 * modules/asinl: New file.
2161 * modules/atanl: New file.
2162 * modules/cosl: New file.
2163 * modules/expl: New file.
2164 * modules/logl: New file.
2165 * modules/sinl: New file.
2166 * modules/sqrtl: New file.
2167 * modules/tanl: New file.
2168 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2169 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2170 substitute GNULIB_MATHL.
2171 * modules/mathl: Rewritten.
2172 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2173 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2174 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2175 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2176 * doc/posix-functions/expl.texi: Mention the 'expl' module.
2177 * doc/posix-functions/logl.texi: Mention the 'logl' module.
2178 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2179 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2180 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2182 2010-01-18 Bruno Haible <bruno@clisp.org>
2184 sqrt: Make gl_FUNC_SQRT requirable.
2185 * m4/sqrt.m4: New file.
2186 * modules/sqrt (Files): Add it.
2187 (configure.ac): Invoke gl_FUNC_SQRT.
2189 2010-01-18 Bruno Haible <bruno@clisp.org>
2191 New modules for common <math.h> functions.
2192 * m4/mathfunc.m4: New file.
2193 * modules/acos: New file.
2194 * modules/asin: New file.
2195 * modules/atan: New file.
2196 * modules/atan2: New file.
2197 * modules/cbrt: New file.
2198 * modules/copysign: New file.
2199 * modules/cos: New file.
2200 * modules/cosh: New file.
2201 * modules/erf: New file.
2202 * modules/erfc: New file.
2203 * modules/exp: New file.
2204 * modules/fabs: New file.
2205 * modules/fmod: New file.
2206 * modules/hypot: New file.
2207 * modules/j0: New file.
2208 * modules/j1: New file.
2209 * modules/jn: New file.
2210 * modules/ldexp: New file.
2211 * modules/lgamma: New file.
2212 * modules/log: New file.
2213 * modules/log10: New file.
2214 * modules/log1p: New file.
2215 * modules/logb: New file.
2216 * modules/modf: New file.
2217 * modules/nextafter: New file.
2218 * modules/pow: New file.
2219 * modules/remainder: New file.
2220 * modules/rint: New file.
2221 * modules/sin: New file.
2222 * modules/sinh: New file.
2223 * modules/sqrt: New file.
2224 * modules/tan: New file.
2225 * modules/tanh: New file.
2226 * modules/y0: New file.
2227 * modules/y1: New file.
2228 * modules/yn: New file.
2229 * doc/posix-functions/acos.texi: Mention the 'acos' module.
2230 * doc/posix-functions/asin.texi: Mention the 'asin' module.
2231 * doc/posix-functions/atan.texi: Mention the 'atan' module.
2232 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2233 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2234 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2235 * doc/posix-functions/cos.texi: Mention the 'cos' module.
2236 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2237 * doc/posix-functions/erf.texi: Mention the 'erf' module.
2238 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2239 * doc/posix-functions/exp.texi: Mention the 'exp' module.
2240 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2241 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2242 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2243 * doc/posix-functions/j0.texi: Mention the 'j0' module.
2244 * doc/posix-functions/j1.texi: Mention the 'j1' module.
2245 * doc/posix-functions/jn.texi: Mention the 'jn' module.
2246 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2247 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2248 * doc/posix-functions/log.texi: Mention the 'log' module.
2249 * doc/posix-functions/log10.texi: Mention the 'log10' module.
2250 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2251 * doc/posix-functions/logb.texi: Mention the 'logb' module.
2252 * doc/posix-functions/modf.texi: Mention the 'modf' module.
2253 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2254 * doc/posix-functions/pow.texi: Mention the 'pow' module.
2255 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2256 * doc/posix-functions/rint.texi: Mention the 'rint' module.
2257 * doc/posix-functions/sin.texi: Mention the 'sin' module.
2258 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2259 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2260 * doc/posix-functions/tan.texi: Mention the 'tan' module.
2261 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2262 * doc/posix-functions/y0.texi: Mention the 'y0' module.
2263 * doc/posix-functions/y1.texi: Mention the 'y1' module.
2264 * doc/posix-functions/yn.texi: Mention the 'yn' module.
2266 2010-01-18 Jim Meyering <meyering@redhat.com>
2268 ignore-value: relax license to LGPLv2+
2269 * modules/ignore-value (License): Relax to LGPLv2+.
2271 getdate: don't leak when TZ contains two or more '"'s
2272 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2273 double quote in TZ after the first one.
2275 readtokens: do not leak internal token_lengths buffer
2276 * lib/readtokens.c (readtokens): Free the local, lengths,
2277 when the supplied "token_lengths" parameter is NULL.
2279 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2281 Fix a couple of missing LIBTHREAD link failures on AIX.
2282 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2284 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2286 Link test-poll against INET_PTON_LIB.
2287 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2288 for inet_pton on Solaris 10.
2290 2010-01-17 Bruno Haible <bruno@clisp.org>
2292 unistdio/*-sprintf: Fix typo in module description.
2293 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2294 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2295 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2296 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2297 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2298 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2299 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2300 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2302 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2304 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2305 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2306 variables in shell case patterns, for AIX and HP-UX ksh.
2308 Split large sed scripts, for HP-UX sed.
2309 * modules/stdio: Split sed scripts around 50 sed commands,
2310 to avoid HP-UX limit of 99 commands, in the near future.
2311 * modules/string: Likewise.
2312 * modules/unistd: Likewise.
2314 gnulib-tool: avoid writing in the current directory.
2315 * gnulib-tool (func_emit_lib_Makefile_am)
2316 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2317 not in the current directory, so concurrent gnulib-tool
2318 instances do not interfere.
2320 2010-01-16 Jim Meyering <meyering@redhat.com>
2322 doc: update users.txt
2323 * users.txt: Add grep.
2324 (diffutils, gzip): Update URLs.
2326 2010-01-12 Bruno Haible <bruno@clisp.org>
2328 posix_spawn: Avoid test failure on Cygwin.
2329 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2331 Reported by Simon Josefsson.
2333 2010-01-12 Bruno Haible <bruno@clisp.org>
2335 * tests/test-cond.c (main): When skipping the test, show the reason.
2337 2010-01-12 Simon Josefsson <simon@josefsson.org>
2339 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2341 2010-01-12 Simon Josefsson <simon@josefsson.org>
2343 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2344 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2346 2010-01-12 Eric Blake <ebb9@byu.net>
2348 build: guarantee AS_VAR_IF
2349 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2350 (gl_AS_VAR_IF): Move...
2351 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2352 Reported by Simon Josefsson.
2354 2010-01-12 Simon Josefsson <simon@josefsson.org>
2356 * lib/stdio.in.h: Fix typo.
2358 2010-01-12 Simon Josefsson <simon@josefsson.org>
2360 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2363 2010-01-12 Simon Josefsson <simon@josefsson.org>
2365 * tests/test-xalloc-die.sh: Use $EXEEXT.
2367 2010-01-12 Simon Josefsson <simon@josefsson.org>
2368 Bruno Haible <bruno@clisp.org>
2370 getlogin, getlogin_r: Avoid test failure.
2371 * tests/test-getlogin.c: Include <stdio.h>.
2372 (main): Skip the test when the function fails because stdin is not a
2374 * tests/test-getlogin_r.c: Include <stdio.h>.
2375 (main): Skip the test when the function fails because stdin is not a
2378 2010-01-11 Eric Blake <ebb9@byu.net>
2380 tests: avoid more large file warnings
2381 * tests/test-fflush.c: Avoid warning about ftell use.
2382 * tests/test-fseek.c: Avoid warning about fseek use.
2384 2010-01-10 Bruno Haible <bruno@clisp.org>
2386 nproc: Work better on Linux when /proc and /sys are not mounted.
2387 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2388 as lower bound when, on glibc/Linux systems,
2389 sysconf (_SC_NPROCESSORS_CONF) returns 1.
2390 Suggested by Pádraig Brady <P@draigbrady.com>.
2391 Reported by Dmitry V. Levin <ldv@altlinux.org>.
2394 * lib/nproc.c (num_processors_via_affinity_mask): New function,
2395 extracted from num_processors.
2396 (num_processors): Call it.
2398 2010-01-11 Jim Meyering <meyering@redhat.com>
2400 utimecmp: avoid new warning from upcoming gcc-4.5.0
2401 * lib/utimecmp.c (BILLION): Define using #define rather than an
2402 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2404 2010-01-11 Eric Blake <ebb9@byu.net>
2406 math: add portability warnings for classification macros
2407 * modules/math (Depends-on): Add warn-on-use.
2408 (Makefile.am): Provide new substitutions.
2409 * m4/math_h.m4 (gl_MATH_H): Require inline.
2410 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2411 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2412 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2415 unistd: warn on use of environ without module
2416 * modules/unistd (Depends-on): Add warn-on-use.
2417 (Makefile.am): Provide new substitutions.
2418 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2419 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2421 stdio: warn on suspicious uses
2422 * modules/stdio (Depends-on): Add warn-on-use.
2423 (Makefile.am): Provide new substitutions.
2424 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2426 * lib/stdio.in.h (gets): Always warn on use.
2427 (fseek, ftell): Adjust when warnings are issued, and honor
2428 _GL_NO_LARGE_FILES as a way to silence the warning.
2429 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2430 any warning about large file offsets.
2431 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2432 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2433 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2434 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2435 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2436 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2437 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2438 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2440 warn-on-use: new module
2441 * modules/warn-on-use: New file.
2442 * build-aux/warn-on-use.h: Likewise.
2443 * m4/warn-on-use.m4: Likewise.
2444 * MODULES.html.sh (Support for building): Mention it.
2446 2010-01-10 Bruno Haible <bruno@clisp.org>
2448 Tests for module 'unistr/u32-strdup'.
2449 * modules/unistr/u32-strdup-tests: New file.
2450 * tests/unistr/test-u32-strdup.c: New file.
2452 Tests for module 'unistr/u16-strdup'.
2453 * modules/unistr/u16-strdup-tests: New file.
2454 * tests/unistr/test-u16-strdup.c: New file.
2456 Tests for module 'unistr/u8-strdup'.
2457 * modules/unistr/u8-strdup-tests: New file.
2458 * tests/unistr/test-u8-strdup.c: New file.
2459 * tests/unistr/test-strdup.h: New file.
2461 Tests for module 'unistr/u32-strncmp'.
2462 * modules/unistr/u32-strncmp-tests: New file.
2463 * tests/unistr/test-u32-strncmp.c: New file.
2465 Tests for module 'unistr/u16-strncmp'.
2466 * modules/unistr/u16-strncmp-tests: New file.
2467 * tests/unistr/test-u16-strncmp.c: New file.
2469 Tests for module 'unistr/u8-strncmp'.
2470 * modules/unistr/u8-strncmp-tests: New file.
2471 * tests/unistr/test-u8-strncmp.c: New file.
2472 * tests/unistr/test-strncmp.h: New file.
2474 Tests for module 'unistr/u32-strcoll'.
2475 * modules/unistr/u32-strcoll-tests: New file.
2476 * tests/unistr/test-u32-strcoll.c: New file.
2478 Tests for module 'unistr/u16-strcoll'.
2479 * modules/unistr/u16-strcoll-tests: New file.
2480 * tests/unistr/test-u16-strcoll.c: New file.
2482 Tests for module 'unistr/u8-strcoll'.
2483 * modules/unistr/u8-strcoll-tests: New file.
2484 * tests/unistr/test-u8-strcoll.c: New file.
2486 Tests for module 'unistr/u32-strcmp'.
2487 * modules/unistr/u32-strcmp-tests: New file.
2488 * tests/unistr/test-u32-strcmp.c: New file.
2489 * tests/unistr/test-u32-strcmp.h: New file.
2491 Tests for module 'unistr/u16-strcmp'.
2492 * modules/unistr/u16-strcmp-tests: New file.
2493 * tests/unistr/test-u16-strcmp.c: New file.
2494 * tests/unistr/test-u16-strcmp.h: New file.
2496 Tests for module 'unistr/u8-strcmp'.
2497 * modules/unistr/u8-strcmp-tests: New file.
2498 * tests/unistr/test-u8-strcmp.c: New file.
2499 * tests/unistr/test-u8-strcmp.h: New file.
2500 * tests/unistr/test-strcmp.h: New file.
2502 Tests for module 'unistr/u32-strncat'.
2503 * modules/unistr/u32-strncat-tests: New file.
2504 * tests/unistr/test-u32-strncat.c: New file.
2506 Tests for module 'unistr/u16-strncat'.
2507 * modules/unistr/u16-strncat-tests: New file.
2508 * tests/unistr/test-u16-strncat.c: New file.
2510 Tests for module 'unistr/u8-strncat'.
2511 * modules/unistr/u8-strncat-tests: New file.
2512 * tests/unistr/test-u8-strncat.c: New file.
2513 * tests/unistr/test-strncat.h: New file.
2515 Tests for module 'unistr/u32-strcat'.
2516 * modules/unistr/u32-strcat-tests: New file.
2517 * tests/unistr/test-u32-strcat.c: New file.
2519 Tests for module 'unistr/u16-strcat'.
2520 * modules/unistr/u16-strcat-tests: New file.
2521 * tests/unistr/test-u16-strcat.c: New file.
2523 Tests for module 'unistr/u8-strcat'.
2524 * modules/unistr/u8-strcat-tests: New file.
2525 * tests/unistr/test-u8-strcat.c: New file.
2526 * tests/unistr/test-strcat.h: New file.
2528 Tests for module 'unistr/u32-stpncpy'.
2529 * modules/unistr/u32-stpncpy-tests: New file.
2530 * tests/unistr/test-u32-stpncpy.c: New file.
2532 Tests for module 'unistr/u16-stpncpy'.
2533 * modules/unistr/u16-stpncpy-tests: New file.
2534 * tests/unistr/test-u16-stpncpy.c: New file.
2536 Tests for module 'unistr/u8-stpncpy'.
2537 * modules/unistr/u8-stpncpy-tests: New file.
2538 * tests/unistr/test-u8-stpncpy.c: New file.
2539 * tests/unistr/test-stpncpy.h: New file.
2541 Tests for module 'unistr/u32-strncpy'.
2542 * modules/unistr/u32-strncpy-tests: New file.
2543 * tests/unistr/test-u32-strncpy.c: New file.
2545 Tests for module 'unistr/u16-strncpy'.
2546 * modules/unistr/u16-strncpy-tests: New file.
2547 * tests/unistr/test-u16-strncpy.c: New file.
2549 Tests for module 'unistr/u8-strncpy'.
2550 * modules/unistr/u8-strncpy-tests: New file.
2551 * tests/unistr/test-u8-strncpy.c: New file.
2552 * tests/unistr/test-strncpy.h: New file.
2554 Tests for module 'unistr/u32-stpcpy'.
2555 * modules/unistr/u32-stpcpy-tests: New file.
2556 * tests/unistr/test-u32-stpcpy.c: New file.
2558 Tests for module 'unistr/u16-stpcpy'.
2559 * modules/unistr/u16-stpcpy-tests: New file.
2560 * tests/unistr/test-u16-stpcpy.c: New file.
2562 Tests for module 'unistr/u8-stpcpy'.
2563 * modules/unistr/u8-stpcpy-tests: New file.
2564 * tests/unistr/test-u8-stpcpy.c: New file.
2565 * tests/unistr/test-stpcpy.h: New file.
2567 Tests for module 'unistr/u32-strcpy'.
2568 * modules/unistr/u32-strcpy-tests: New file.
2569 * tests/unistr/test-u32-strcpy.c: New file.
2571 Tests for module 'unistr/u16-strcpy'.
2572 * modules/unistr/u16-strcpy-tests: New file.
2573 * tests/unistr/test-u16-strcpy.c: New file.
2575 Tests for module 'unistr/u8-strcpy'.
2576 * modules/unistr/u8-strcpy-tests: New file.
2577 * tests/unistr/test-u8-strcpy.c: New file.
2578 * tests/unistr/test-strcpy.h: New file.
2580 Tests for module 'unistr/u32-strnlen'.
2581 * modules/unistr/u32-strnlen-tests: New file.
2582 * tests/unistr/test-u32-strnlen.c: New file.
2584 Tests for module 'unistr/u16-strnlen'.
2585 * modules/unistr/u16-strnlen-tests: New file.
2586 * tests/unistr/test-u16-strnlen.c: New file.
2588 Tests for module 'unistr/u8-strnlen'.
2589 * modules/unistr/u8-strnlen-tests: New file.
2590 * tests/unistr/test-u8-strnlen.c: New file.
2591 * tests/unistr/test-strnlen.h: New file.
2593 Tests for module 'unistr/u32-strlen'.
2594 * modules/unistr/u32-strlen-tests: New file.
2595 * tests/unistr/test-u32-strlen.c: New file.
2597 Tests for module 'unistr/u16-strlen'.
2598 * modules/unistr/u16-strlen-tests: New file.
2599 * tests/unistr/test-u16-strlen.c: New file.
2601 Tests for module 'unistr/u8-strlen'.
2602 * modules/unistr/u8-strlen-tests: New file.
2603 * tests/unistr/test-u8-strlen.c: New file.
2605 Tests for module 'unistr/u32-prev'.
2606 * modules/unistr/u32-prev-tests: New file.
2607 * tests/unistr/test-u32-prev.c: New file.
2609 Tests for module 'unistr/u16-prev'.
2610 * modules/unistr/u16-prev-tests: New file.
2611 * tests/unistr/test-u16-prev.c: New file.
2613 Tests for module 'unistr/u8-prev'.
2614 * modules/unistr/u8-prev-tests: New file.
2615 * tests/unistr/test-u8-prev.c: New file.
2617 Tests for module 'unistr/u32-next'.
2618 * modules/unistr/u32-next-tests: New file.
2619 * tests/unistr/test-u32-next.c: New file.
2621 Tests for module 'unistr/u16-next'.
2622 * modules/unistr/u16-next-tests: New file.
2623 * tests/unistr/test-u16-next.c: New file.
2625 Tests for module 'unistr/u8-next'.
2626 * modules/unistr/u8-next-tests: New file.
2627 * tests/unistr/test-u8-next.c: New file.
2629 Tests for module 'unistr/u32-strmbtouc'.
2630 * modules/unistr/u32-strmbtouc-tests: New file.
2631 * tests/unistr/test-u32-strmbtouc.c: New file.
2633 Tests for module 'unistr/u16-strmbtouc'.
2634 * modules/unistr/u16-strmbtouc-tests: New file.
2635 * tests/unistr/test-u16-strmbtouc.c: New file.
2637 Tests for module 'unistr/u8-strmbtouc'.
2638 * modules/unistr/u8-strmbtouc-tests: New file.
2639 * tests/unistr/test-u8-strmbtouc.c: New file.
2641 Tests for module 'unistr/u32-strmblen'.
2642 * modules/unistr/u32-strmblen-tests: New file.
2643 * tests/unistr/test-u32-strmblen.c: New file.
2645 Tests for module 'unistr/u16-strmblen'.
2646 * modules/unistr/u16-strmblen-tests: New file.
2647 * tests/unistr/test-u16-strmblen.c: New file.
2649 Tests for module 'unistr/u8-strmblen'.
2650 * modules/unistr/u8-strmblen-tests: New file.
2651 * tests/unistr/test-u8-strmblen.c: New file.
2653 Tests for module 'unistr/u32-cpy-alloc'.
2654 * modules/unistr/u32-cpy-alloc-tests: New file.
2655 * tests/unistr/test-u32-cpy-alloc.c: New file.
2657 Tests for module 'unistr/u16-cpy-alloc'.
2658 * modules/unistr/u16-cpy-alloc-tests: New file.
2659 * tests/unistr/test-u16-cpy-alloc.c: New file.
2661 Tests for module 'unistr/u8-cpy-alloc'.
2662 * modules/unistr/u8-cpy-alloc-tests: New file.
2663 * tests/unistr/test-u8-cpy-alloc.c: New file.
2664 * tests/unistr/test-cpy-alloc.h: New file.
2666 Tests for module 'unistr/u32-mbsnlen'.
2667 * modules/unistr/u32-mbsnlen-tests: New file.
2668 * tests/unistr/test-u32-mbsnlen.c: New file.
2670 Tests for module 'unistr/u16-mbsnlen'.
2671 * modules/unistr/u16-mbsnlen-tests: New file.
2672 * tests/unistr/test-u16-mbsnlen.c: New file.
2674 Tests for module 'unistr/u8-mbsnlen'.
2675 * modules/unistr/u8-mbsnlen-tests: New file.
2676 * tests/unistr/test-u8-mbsnlen.c: New file.
2678 Tests for module 'unistr/u32-chr'.
2679 * modules/unistr/u32-chr-tests: New file.
2680 * tests/unistr/test-u32-chr.c: New file.
2682 Tests for module 'unistr/u16-chr'.
2683 * modules/unistr/u16-chr-tests: New file.
2684 * tests/unistr/test-u16-chr.c: New file.
2686 Tests for module 'unistr/u8-chr'.
2687 * modules/unistr/u8-chr-tests: New file.
2688 * tests/unistr/test-u8-chr.c: New file.
2689 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2691 Tests for module 'unistr/u32-cmp2'.
2692 * modules/unistr/u32-cmp2-tests: New file.
2693 * tests/unistr/test-u32-cmp2.c: New file.
2695 Tests for module 'unistr/u16-cmp2'.
2696 * modules/unistr/u16-cmp2-tests: New file.
2697 * tests/unistr/test-u16-cmp2.c: New file.
2699 Tests for module 'unistr/u8-cmp2'.
2700 * modules/unistr/u8-cmp2-tests: New file.
2701 * tests/unistr/test-u8-cmp2.c: New file.
2702 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2704 Tests for module 'unistr/u32-cmp'.
2705 * modules/unistr/u32-cmp-tests: New file.
2706 * tests/unistr/test-u32-cmp.c: New file.
2708 Tests for module 'unistr/u16-cmp'.
2709 * modules/unistr/u16-cmp-tests: New file.
2710 * tests/unistr/test-u16-cmp.c: New file.
2712 Tests for module 'unistr/u8-cmp'.
2713 * modules/unistr/u8-cmp-tests: New file.
2714 * tests/unistr/test-u8-cmp.c: New file.
2715 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2717 Tests for module 'unistr/u32-set'.
2718 * modules/unistr/u32-set-tests: New file.
2719 * tests/unistr/test-u32-set.c: New file.
2721 Tests for module 'unistr/u16-set'.
2722 * modules/unistr/u16-set-tests: New file.
2723 * tests/unistr/test-u16-set.c: New file.
2725 Tests for module 'unistr/u8-set'.
2726 * modules/unistr/u8-set-tests: New file.
2727 * tests/unistr/test-u8-set.c: New file.
2728 * tests/unistr/test-set.h: New file.
2730 Tests for module 'unistr/u32-move'.
2731 * modules/unistr/u32-move-tests: New file.
2732 * tests/unistr/test-u32-move.c: New file.
2734 Tests for module 'unistr/u16-move'.
2735 * modules/unistr/u16-move-tests: New file.
2736 * tests/unistr/test-u16-move.c: New file.
2738 Tests for module 'unistr/u8-move'.
2739 * modules/unistr/u8-move-tests: New file.
2740 * tests/unistr/test-u8-move.c: New file.
2741 * tests/unistr/test-move.h: New file.
2743 Tests for module 'unistr/u32-cpy'.
2744 * modules/unistr/u32-cpy-tests: New file.
2745 * tests/unistr/test-u32-cpy.c: New file.
2747 Tests for module 'unistr/u16-cpy'.
2748 * modules/unistr/u16-cpy-tests: New file.
2749 * tests/unistr/test-u16-cpy.c: New file.
2751 Tests for module 'unistr/u8-cpy'.
2752 * modules/unistr/u8-cpy-tests: New file.
2753 * tests/unistr/test-u8-cpy.c: New file.
2754 * tests/unistr/test-cpy.h: New file.
2756 2010-01-09 Bruno Haible <bruno@clisp.org>
2758 Tests for module 'unistr/u32-uctomb'.
2759 * modules/unistr/u32-uctomb-tests: New file.
2760 * tests/unistr/test-u32-uctomb.c: New file.
2762 Tests for module 'unistr/u16-uctomb'.
2763 * modules/unistr/u16-uctomb-tests: New file.
2764 * tests/unistr/test-u16-uctomb.c: New file.
2766 Tests for module 'unistr/u8-uctomb'.
2767 * modules/unistr/u8-uctomb-tests: New file.
2768 * tests/unistr/test-u8-uctomb.c: New file.
2770 Tests for module 'unistr/u32-mbtoucr'.
2771 * modules/unistr/u32-mbtoucr-tests: New file.
2772 * tests/unistr/test-u32-mbtoucr.c: New file.
2774 Tests for module 'unistr/u16-mbtoucr'.
2775 * modules/unistr/u16-mbtoucr-tests: New file.
2776 * tests/unistr/test-u16-mbtoucr.c: New file.
2778 Tests for module 'unistr/u8-mbtoucr'.
2779 * modules/unistr/u8-mbtoucr-tests: New file.
2780 * tests/unistr/test-u8-mbtoucr.c: New file.
2782 Tests for module 'unistr/u32-mbtouc'.
2783 * modules/unistr/u32-mbtouc-tests: New file.
2784 * tests/unistr/test-u32-mbtouc.c: New file.
2786 Tests for module 'unistr/u16-mbtouc'.
2787 * modules/unistr/u16-mbtouc-tests: New file.
2788 * tests/unistr/test-u16-mbtouc.c: New file.
2790 Tests for module 'unistr/u8-mbtouc'.
2791 * modules/unistr/u8-mbtouc-tests: New file.
2792 * tests/unistr/test-u8-mbtouc.c: New file.
2794 Tests for module 'unistr/u32-mbtouc-unsafe'.
2795 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2796 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2797 * tests/unistr/test-u32-mbtouc.h: New file.
2799 Tests for module 'unistr/u16-mbtouc-unsafe'.
2800 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2801 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2802 * tests/unistr/test-u16-mbtouc.h: New file.
2804 Tests for module 'unistr/u8-mbtouc-unsafe'.
2805 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2806 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2807 * tests/unistr/test-u8-mbtouc.h: New file.
2809 Tests for module 'unistr/u32-mblen'.
2810 * modules/unistr/u32-mblen-tests: New file.
2811 * tests/unistr/test-u32-mblen.c: New file.
2813 Tests for module 'unistr/u16-mblen'.
2814 * modules/unistr/u16-mblen-tests: New file.
2815 * tests/unistr/test-u16-mblen.c: New file.
2817 Tests for module 'unistr/u8-mblen'.
2818 * modules/unistr/u8-mblen-tests: New file.
2819 * tests/unistr/test-u8-mblen.c: New file.
2821 Tests for module 'unistr/u32-to-u16'.
2822 * modules/unistr/u32-to-u16-tests: New file.
2823 * tests/unistr/test-u32-to-u16.c: New file.
2825 Tests for module 'unistr/u32-to-u8'.
2826 * modules/unistr/u32-to-u8-tests: New file.
2827 * tests/unistr/test-u32-to-u8.c: New file.
2829 Tests for module 'unistr/u16-to-u32'.
2830 * modules/unistr/u16-to-u32-tests: New file.
2831 * tests/unistr/test-u16-to-u32.c: New file.
2833 Tests for module 'unistr/u16-to-u8'.
2834 * modules/unistr/u16-to-u8-tests: New file.
2835 * tests/unistr/test-u16-to-u8.c: New file.
2837 Tests for module 'unistr/u8-to-u32'.
2838 * modules/unistr/u8-to-u32-tests: New file.
2839 * tests/unistr/test-u8-to-u32.c: New file.
2841 Tests for module 'unistr/u8-to-u16'.
2842 * modules/unistr/u8-to-u16-tests: New file.
2843 * tests/unistr/test-u8-to-u16.c: New file.
2845 Tests for module 'unistr/u32-check'.
2846 * modules/unistr/u32-check-tests: New file.
2847 * tests/unistr/test-u32-check.c: New file.
2849 Tests for module 'unistr/u16-check'.
2850 * modules/unistr/u16-check-tests: New file.
2851 * tests/unistr/test-u16-check.c: New file.
2853 Tests for module 'unistr/u8-check'.
2854 * modules/unistr/u8-check-tests: New file.
2855 * tests/unistr/test-u8-check.c: New file.
2857 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2858 (category_equals): New function.
2859 (main): Add more tests.
2860 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2862 * tests/unictype/test-bidi_byname.c (main): Add more tests.
2864 2010-01-10 Bruno Haible <bruno@clisp.org>
2866 unistr/u*-strcoll: Try harder to distinguish different strings.
2867 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2868 compare s1 and s2 to see if they are different.
2870 2010-01-10 Bruno Haible <bruno@clisp.org>
2872 unistr/u*-stpncpy: Fix the return value.
2873 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2874 description of the return value consistent with stpncpy in glibc.
2875 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2876 written non-NUL unit.
2878 2010-01-10 Bruno Haible <bruno@clisp.org>
2880 unistr/u*-next: Add missing dependencies.
2881 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2882 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2883 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2885 2010-01-10 Bruno Haible <bruno@clisp.org>
2887 unistr/u8-mbsnlen: Fix return value for incomplete character.
2888 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2890 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2891 Remove unistr/u8-mblen.
2892 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2894 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2895 Remove unistr/u16-mblen.
2897 2010-01-10 Bruno Haible <bruno@clisp.org>
2899 wchar: Fix compilation error when <wchar.h> is used from coreutils.
2900 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2901 Reported by Brian Gough <bjg@gnu.org> and
2902 Chris Clayton <chris2553@googlemail.com> via
2903 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2905 2010-01-09 Bruno Haible <bruno@clisp.org>
2907 unistr/u16-to-u32: Reject invalid input.
2908 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2910 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2911 Remove unistr/u16-mbtouc.
2913 unistr/u16-to-u8: Reject invalid input.
2914 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2916 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2917 Remove unistr/u16-mbtouc.
2919 unistr/u8-to-u32: Reject invalid input.
2920 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2922 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2923 Remove unistr/u8-mbtouc.
2925 unistr/u8-to-u16: Reject invalid input.
2926 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2928 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2929 Remove unistr/u8-mbtouc.
2931 2010-01-09 Bruno Haible <bruno@clisp.org>
2933 Tests for module 'getlogin'.
2934 * modules/getlogin-tests: New file.
2935 * tests/test-getlogin.c: New file.
2937 New module 'getlogin'.
2938 * lib/unistd.in.h (getlogin): New declaration.
2939 * lib/getlogin.c: New file.
2940 * m4/getlogin.m4: New file.
2941 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2943 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2945 * modules/getlogin: New file.
2946 * doc/posix-functions/getlogin.texi: Mention the new module.
2947 Reported by John W. Eaton <jwe@gnu.org>.
2949 2010-01-09 Bruno Haible <bruno@clisp.org>
2951 getlogin_r: Support for native Windows.
2952 * lib/getlogin_r.c: Include <windows.h>
2953 (getlogin_r): Implement for native Windows.
2954 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2955 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2956 via John W. Eaton <jwe@gnu.org>.
2958 2010-01-09 Bruno Haible <bruno@clisp.org>
2960 getlogin_r: Small fixes.
2961 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2963 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2964 before testing whether getlogin_r is declared. No need to set
2965 HAVE_DECL_GETLOGIN_R to 1.
2966 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2968 2010-01-09 Bruno Haible <bruno@clisp.org>
2970 * lib/unistd.in.h (getlogin_r): Add comment.
2972 2010-01-09 Bruno Haible <bruno@clisp.org>
2974 Tests for module 'getlogin_r'.
2975 * modules/getlogin_r-tests: New file.
2976 * tests/test-getlogin_r.c: New file.
2978 2010-01-09 Jim Meyering <meyering@redhat.com>
2980 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2981 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2982 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2984 2010-01-08 Simon Josefsson <simon@josefsson.org>
2986 * lib/dup2.c (rpl_dup2): Improve comment.
2988 2010-01-08 Eric Blake <ebb9@byu.net>
2990 maint.mk: allow packages to add makefile @@ exceptions
2991 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2992 (sc_makefile_check): Rename...
2993 (sc_makefile_at_at_check): ...to this, and use hook.
2995 dup2: work around mingw bug
2996 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2997 Reported by Simon Josefsson.
2999 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
3001 glob: Fix C++ compilation.
3002 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3005 2010-01-07 Bruno Haible <bruno@clisp.org>
3007 Fix indentation of wctype.in.h, broken since 2007-01-06.
3008 * lib/wctype.in.h: Fix indentation of preprocessor directives.
3010 2010-01-07 Bruno Haible <bruno@clisp.org>
3012 mbslen: Avoid collision with system function.
3013 * lib/string.in.h [MirBSD]: Include <wchar.h>.
3014 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3015 * m4/mbslen.m4: New file.
3016 * modules/mbslen (Files): Add it.
3017 (configure.ac): Invoke gl_MBSLEN.
3018 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3019 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3020 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3021 via Ian Beckwith <ianb@erislabs.net>.
3023 2010-01-07 Bruno Haible <bruno@clisp.org>
3025 dirent: Document the last fix.
3026 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3028 2010-01-07 Bruno Haible <bruno@clisp.org>
3030 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3031 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3032 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3033 va_list are defined.
3034 * doc/posix-headers/stdio.texi: Document the bug of missing types.
3035 Reported by Eric Blake.
3037 2010-01-07 Bruno Haible <bruno@clisp.org>
3039 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3040 * modules/xlist (Depends-on): Add 'list',
3041 * modules/xoset (Depends-on): Add 'oset'.
3042 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3044 2010-01-07 Bruno Haible <bruno@clisp.org>
3046 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3047 * doc/posix-functions/strncasecmp.texi: Likewise.
3049 2010-01-07 Bruno Haible <bruno@clisp.org>
3051 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3053 2010-01-07 John W. Eaton <jwe@octave.org>
3055 wctype: allow C++ use
3056 * lib/wctype.in.h: Add extern "C" block for C++.
3058 2010-01-06 Eric Blake <ebb9@byu.net>
3060 maint.mk: detect incorrect GFDL usage
3061 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3063 2010-01-06 Jim Meyering <meyering@redhat.com>
3064 and Eric Blake <ebb9@byu.net>
3066 maint.mk: ignore multi-line copyright in NEWS
3067 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3069 2010-01-06 Eric Blake <ebb9@byu.net>
3071 select: add missing dependency
3072 * modules/select-tests (Depends-on): Move sockets dependency...
3073 * modules/select (Depends-on): ...here.
3074 Reported by Ian Beckwith.
3076 doc: regenerate INSTALL
3077 * doc/INSTALL: Reflect recent autoconf update.
3078 * doc/INSTALL.ISO: Likewise.
3079 * doc/INSTALL.UTF-8: Likewise.
3081 pread: fix compilation on glibc
3082 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3083 Reported by Ralf Wildenhues.
3085 dirent: fix test failure
3086 * lib/dirent.in.h (includes): Guarantee ino_t.
3087 Reported by Ralf Wildenhues.
3089 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
3091 linkat, renameat: avoid bad free
3092 * lib/at-func2.c (at_func2): Fix typo.
3093 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3095 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3097 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3098 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3099 to avoid failure of symlink test later.
3101 2010-01-06 Eric Blake <ebb9@byu.net>
3103 stdio, unistd: guarantee ssize_t
3104 * lib/unistd.in.h (includes): Ensure that types required by POSIX
3105 2008 are exposed when needed.
3106 * lib/stdio.in.h (includes): Likewise.
3107 Reported by Ralf Wildenhues.
3109 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
3111 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3112 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3113 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3115 2010-01-06 Jim Meyering <meyering@redhat.com>
3117 readtokens: this module *does* require xalloc.h
3118 It uses only functions that were omitted by the old syntax-check rule.
3119 * lib/readtokens.c: Include "xalloc.h" once again.
3120 * modules/readtokens (Depends-on): Add xalloc.
3121 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3123 2010-01-05 Eric Blake <ebb9@byu.net>
3125 maint: support 'make announcement' from a VPATH build
3126 * top/maint.mk (announcement): Look for correct NEWS file.
3128 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
3130 utimens (fdutimens): ignore a negative FD, per contract
3131 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3132 when we have a valid file descriptor. Otherwise, using a brand
3133 new glibc (with just-patched futimens that now fails with EBADF)
3134 would cause this function to fail with ENOSYS.
3135 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3136 See also http://bugzilla.redhat.com/552320.
3138 2010-01-05 Eric Blake <ebb9@byu.net>
3140 strcase: document what it provides
3141 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3143 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3144 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3146 2010-01-05 Jim Meyering <meyering@redhat.com>
3148 maint: remove useless inclusions of "xalloc.h"
3149 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3150 * lib/readtokens.c: Likewise.
3151 * lib/same.c: Likewise.
3152 * modules/getloadavg (Depends-on): Remove xalloc.
3153 * modules/readtokens: Likewise.
3154 * modules/same: Likewise.
3156 maint.mk: include 4 more function names in alloca.h-checking regexp
3157 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3158 regexp. Before, we would give a false-positive (saying alloca.h
3159 is included unnecessarily) when the only uses involved omitted symbols.
3161 xalloc.h: use consistent formatting
3162 * lib/xalloc.h: Move declarations to start in the first column.
3164 2010-01-05 Eric Blake <ebb9@byu.net>
3167 * lib/mkdir.c (includes): Drop unused header.
3168 Reported by John W. Eaton.
3170 2010-01-04 Jim Meyering <meyering@redhat.com>
3172 nl_langinfo: avoid configure-time syntax error
3173 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3174 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3175 the empty string. Don't let that provoke a shell syntax error.
3177 regcomp, regexec, fnmatch: avoid array bounds read error
3178 * lib/regcomp.c (build_equiv_class): From glibc:
3179 Use only the low 24 bits of a findidx return value as an index
3180 into the weights array. Patch by Ulrich Drepper:
3181 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3182 * lib/regexec.c (check_node_accept_bytes): Likewise.
3183 * lib/fnmatch_loop.c (FCT): Likewise.
3185 regcomp: skip collseq lookup when there are no rules
3186 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3187 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3189 regcomp: recognize ill-formed { } expressions
3190 * lib/regcomp.c (parse_dup_op): From glibc:
3191 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3193 regcomp: fix typo in comment
3194 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3195 s/satisfy/satisfies/.
3197 regcomp: sync from glibc: remove dead store
3198 * lib/regcomp.c (duplicate_node_closure): Remove useless
3199 search_duplicated_node call and dead store.
3201 regcomp: sync from glibc; always use nl_langinfo
3202 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3203 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
3204 * modules/regex (Depends-on): Add nl_langinfo.
3206 2010-01-04 Eric Blake <ebb9@byu.net>
3208 fdopendir: fix configure test
3209 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3211 2010-01-01 Bruno Haible <bruno@clisp.org>
3213 wchar: Remove unused configure check.
3214 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3216 2010-01-01 Eric Blake <ebb9@byu.net>
3218 headers: make check of system header explicit
3219 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3220 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3222 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3223 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3224 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3225 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3227 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3229 Suggested by Bruno Haible.
3231 2010-01-01 Jim Meyering <meyering@redhat.com>
3233 ChangeLog: tweak to eliminate unnecessary copyright line
3234 * ChangeLog: Remove a copyright line that was mistakenly updated
3235 by today's update-copyright run. Reported by Eric Blake.
3237 test-update-copyright: don't let envvar setting cause test failure
3238 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3240 2010-01-01 Bruno Haible <bruno@clisp.org>
3242 localename: Avoid gcc warning.
3243 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3244 function if it is not used.
3246 2010-01-01 Jim Meyering <meyering@redhat.com>
3248 update nearly all FSF copyright year lists to include 2010
3249 Use the same procedure as for 2009, outlined in
3250 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3252 version-etc: set COPYRIGHT_YEAR to 2010
3253 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3255 2009-12-31 Eric Blake <ebb9@byu.net>
3257 doc: correct availability of cygwin 1.5.x getopt
3258 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3260 * doc/posix-functions/opterr.texi (opterr): Likewise.
3261 * doc/posix-functions/optind.texi (optind): Likewise.
3262 * doc/posix-functions/optopt.texi (optopt): Likewise.
3263 * doc/posix-functions/tzname.texi (tzname): Likewise.
3265 openat: update maintainer
3266 * modules/openat (Maintainer): Add myself.
3268 utimens: avoid shadowing warning
3269 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3270 buffers into one, to avoid shadowing, as well as avoiding a
3272 Reported by Jim Meyering.
3274 test-dup2: avoid compiler warning
3275 * tests/test-dup2.c (is_inheritable): Only define if used.
3277 2010-01-01 Bruno Haible <bruno@clisp.org>
3279 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3280 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3281 defined, use wctomb instead of wcrtomb.
3283 2010-01-01 Bruno Haible <bruno@clisp.org>
3285 iconv: Reject native Solaris iconv.
3286 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3287 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3289 2009-12-31 Bruno Haible <bruno@clisp.org>
3291 * tests/test-signal.c (main): Remove test of 'SIG'.
3293 2009-12-31 Bruno Haible <bruno@clisp.org>
3295 spawn: Fix incomplete fix.
3296 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3297 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3298 warnings for GNULIB_POSIXCHECK again.
3299 Reported by Eric Blake.
3301 2009-12-31 Bruno Haible <bruno@clisp.org>
3303 Avoid namespace pollution on glibc systems.
3304 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3305 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3306 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3309 2009-12-31 Bruno Haible <bruno@clisp.org>
3311 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3312 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3313 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3314 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3315 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3316 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3317 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3319 2009-12-31 Bruno Haible <bruno@clisp.org>
3321 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3322 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3325 2009-12-31 Bruno Haible <bruno@clisp.org>
3327 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3330 2009-12-31 Bruno Haible <bruno@clisp.org>
3332 spawn: Fix misapplied patch.
3333 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3334 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3335 warnings for GNULIB_POSIXCHECK.
3337 2009-12-31 Bruno Haible <bruno@clisp.org>
3339 times: Update after sys_times changed.
3340 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3341 * modules/times (Files): Add it.
3342 (configure.ac): Invoke gl_FUNC_TIMES.
3344 2009-12-31 Bruno Haible <bruno@clisp.org>
3346 Use AC_C_INLINE where necessary.
3347 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3348 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3349 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3350 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3351 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3352 * m4/mbiter.m4 (gl_MBITER): Likewise.
3353 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3354 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3355 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3356 * modules/u64 (configure.ac): Likewise.
3358 2009-12-31 Bruno Haible <bruno@clisp.org>
3360 Use AC_C_INLINE instead of module 'inline' where possible.
3361 * modules/inline (Description): Clarify purpose.
3362 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3363 * modules/count-one-bits (Depends-on): Remove inline.
3364 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3365 * modules/openat (Depends-on): Remove inline.
3366 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3367 instead of depending on module 'inline'.
3368 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3369 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3370 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3371 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3372 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3373 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3374 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3375 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3376 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3377 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3378 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3379 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3380 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3381 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3382 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3383 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3384 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3385 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3387 * modules/unictype/property-ascii-hex-digit (Depends-on,
3388 configure.ac): Likewise.
3389 * modules/unictype/property-bidi-arabic-digit (Depends-on,
3390 configure.ac): Likewise.
3391 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3392 configure.ac): Likewise.
3393 * modules/unictype/property-bidi-block-separator (Depends-on,
3394 configure.ac): Likewise.
3395 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3396 configure.ac): Likewise.
3397 * modules/unictype/property-bidi-common-separator (Depends-on,
3398 configure.ac): Likewise.
3399 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3401 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3402 configure.ac): Likewise.
3403 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3404 configure.ac): Likewise.
3405 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3406 configure.ac): Likewise.
3407 * modules/unictype/property-bidi-european-digit (Depends-on,
3408 configure.ac): Likewise.
3409 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3410 configure.ac): Likewise.
3411 * modules/unictype/property-bidi-left-to-right (Depends-on,
3412 configure.ac): Likewise.
3413 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3414 configure.ac): Likewise.
3415 * modules/unictype/property-bidi-other-neutral (Depends-on,
3416 configure.ac): Likewise.
3417 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3419 * modules/unictype/property-bidi-segment-separator (Depends-on,
3420 configure.ac): Likewise.
3421 * modules/unictype/property-bidi-whitespace (Depends-on,
3422 configure.ac): Likewise.
3423 * modules/unictype/property-combining (Depends-on, configure.ac):
3425 * modules/unictype/property-composite (Depends-on, configure.ac):
3427 * modules/unictype/property-currency-symbol (Depends-on,
3428 configure.ac): Likewise.
3429 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3430 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3432 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3433 configure.ac): Likewise.
3434 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3436 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3438 * modules/unictype/property-extender (Depends-on, configure.ac):
3440 * modules/unictype/property-format-control (Depends-on, configure.ac):
3442 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3444 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3446 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3448 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3450 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3452 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3454 * modules/unictype/property-id-start (Depends-on, configure.ac):
3456 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3458 * modules/unictype/property-ids-binary-operator (Depends-on,
3459 configure.ac): Likewise.
3460 * modules/unictype/property-ids-trinary-operator (Depends-on,
3461 configure.ac): Likewise.
3462 * modules/unictype/property-ignorable-control (Depends-on,
3463 configure.ac): Likewise.
3464 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3466 * modules/unictype/property-join-control (Depends-on, configure.ac):
3468 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3470 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3472 * modules/unictype/property-logical-order-exception (Depends-on,
3473 configure.ac): Likewise.
3474 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3476 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3477 * modules/unictype/property-non-break (Depends-on, configure.ac):
3479 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3481 * modules/unictype/property-numeric (Depends-on, configure.ac):
3483 * modules/unictype/property-other-alphabetic (Depends-on,
3484 configure.ac): Likewise.
3485 * modules/unictype/property-other-default-ignorable-code-point
3486 (Depends-on, configure.ac): Likewise.
3487 * modules/unictype/property-other-grapheme-extend (Depends-on,
3488 configure.ac): Likewise.
3489 * modules/unictype/property-other-id-continue (Depends-on,
3490 configure.ac): Likewise.
3491 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3493 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3495 * modules/unictype/property-other-math (Depends-on, configure.ac):
3497 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3499 * modules/unictype/property-paired-punctuation (Depends-on,
3500 configure.ac): Likewise.
3501 * modules/unictype/property-paragraph-separator (Depends-on,
3502 configure.ac): Likewise.
3503 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3505 * modules/unictype/property-pattern-white-space (Depends-on,
3506 configure.ac): Likewise.
3507 * modules/unictype/property-private-use (Depends-on, configure.ac):
3509 * modules/unictype/property-punctuation (Depends-on, configure.ac):
3511 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3513 * modules/unictype/property-radical (Depends-on, configure.ac):
3515 * modules/unictype/property-sentence-terminal (Depends-on,
3516 configure.ac): Likewise.
3517 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3519 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3520 * modules/unictype/property-terminal-punctuation (Depends-on,
3521 configure.ac): Likewise.
3522 * modules/unictype/property-titlecase (Depends-on, configure.ac):
3524 * modules/unictype/property-unassigned-code-value (Depends-on,
3525 configure.ac): Likewise.
3526 * modules/unictype/property-unified-ideograph (Depends-on,
3527 configure.ac): Likewise.
3528 * modules/unictype/property-uppercase (Depends-on, configure.ac):
3530 * modules/unictype/property-variation-selector (Depends-on,
3531 configure.ac): Likewise.
3532 * modules/unictype/property-white-space (Depends-on, configure.ac):
3534 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3536 * modules/unictype/property-xid-start (Depends-on, configure.ac):
3538 * modules/unictype/property-zero-width (Depends-on, configure.ac):
3540 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3541 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3544 2009-12-31 Bruno Haible <bruno@clisp.org>
3546 Remove unnecessary AC_C_INLINE invocation.
3547 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3550 2009-12-31 Jim Meyering <meyering@redhat.com>
3552 maint.mk: don't require explicit gpg_key_ID in cfg.mk
3553 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3554 With this change, we can all remove the gpg_key_ID = ... definition
3555 from our respective cfg.mk files.
3557 maint.mk: create announcement template in ~/, not in /tmp
3558 * top/maint.mk (emit_upload_commands): Adjust.
3559 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3560 Remove temporary file, .ci-msg.
3562 2009-12-31 Eric Blake <ebb9@byu.net>
3564 link-warning: always build headers with link warnings
3565 * modules/arpa_inet (Makefile.am): Always build replacement
3567 * modules/ctype (Makefile.am): Likewise.
3568 * modules/dirent (Makefile.am): Likewise.
3569 * modules/inttypes (Makefile.am): Likewise.
3570 * modules/langinfo (Makefile.am): Likewise.
3571 * modules/locale (Makefile.am): Likewise.
3572 * modules/spawn (Makefile.am): Likewise.
3573 * modules/sys_file (Makefile.am): Likewise.
3574 * modules/sys_ioctl (Makefile.am): Likewise.
3575 * modules/sys_select (Makefile.am): Likewise.
3576 * modules/sys_socket (Makefile.am): Likewise.
3577 * modules/sys_times (Makefile.am): Likewise.
3578 * modules/sys_utsname (Makefile.am): Likewise.
3579 * modules/sys_wait (Makefile.am): Likewise.
3580 * modules/wchar (Makefile.am): Likewise.
3581 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3582 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3583 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3584 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3585 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3587 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3588 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3589 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3591 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3593 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3594 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3595 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3596 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3597 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3598 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3599 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3600 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3601 (gl_WCHAR_H_DEFAULTS): Likewise.
3603 2009-12-31 Eric Blake <ebb9@byu.net>
3605 signal, spawn: use link warnings
3606 * lib/signal.in.h (sigset_t): Make unconditional.
3607 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3608 (sigpending, sigprocmask, sigaction): Add link warnings.
3609 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3610 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3611 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3612 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3613 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3614 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3615 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3616 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3617 (posix_spawn_file_actions_destroy)
3618 (posix_spawn_file_actions_addopen)
3619 (posix_spawn_file_actions_addclose)
3620 (posix_spawn_file_actions_adddup2): Likewise.
3621 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3622 * tests/test-signal.c (main): Enhance test.
3624 spawn: improve wrapper support
3625 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3626 (gl_SPAWN_H_DEFAULTS): New defaults.
3627 * modules/spawn (Makefile.am): Substitute them.
3628 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3629 Only declare if missing or broken.
3631 sys_times, sys_utsname: use include_next
3632 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3634 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3635 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3636 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3637 * modules/sys_times (Depends-on): Add include_next.
3638 (Makefile.am): Substitute additional values.
3639 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3640 * lib/sys_times.in.h (includes): Include native header, if
3642 * lib/sys_utsname.in.h (includes): Likewise.
3643 * tests/test-sys_times.c (main): Enhance test.
3645 fdutimensat: revert prior patch
3646 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3648 Reported by Bruno Haible.
3650 2009-12-30 Eric Blake <ebb9@byu.net>
3652 sys_wait: drop link-warning dependency
3653 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3654 link-warning efforts.
3655 * lib/sys_wait.in.h: Likewise.
3657 fdutimensat: remove bogus dependency
3658 * modules/fdutimensat (Depends-on): Drop inline.
3661 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3663 2009-12-30 Bruno Haible <bruno@clisp.org>
3665 Fix compilation error with Solaris cc.
3666 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3667 * lib/unicase/u16-is-invariant.c: Likewise.
3668 * lib/unicase/u32-is-invariant.c: Likewise.
3669 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3671 2009-12-30 Bruno Haible <bruno@clisp.org>
3674 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3676 Reported by Simon Josefsson <simon@josefsson.org>.
3678 2009-12-30 Bruno Haible <bruno@clisp.org>
3680 Fix compilation error on most platforms.
3681 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3682 Reported by Simon Josefsson <simon@josefsson.org>
3683 and Nelson H. F. Beebe <beebe@math.utah.edu>.
3685 2009-12-30 Eric Blake <ebb9@byu.net>
3687 futimens, utimensat: work around ntfs-3g bug
3688 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3689 a ctime bug is present, and expand workaround to cover ntfs-3g.
3690 * lib/utimens.c (fdutimens, lutimens): Likewise.
3691 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3692 (validate_timespec): Adjust return value.
3693 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3694 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3695 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3697 2009-12-29 Eric Blake <ebb9@byu.net>
3699 link-warning: make usage consistent
3700 * modules/ctype (Depends-on): Add link-warning.
3701 (Makefile.am): Update rules accordingly.
3702 * modules/langinfo (Depends-on, Makefile.am): Likewise.
3703 * modules/locale (Depends-on, Makefile.am): Likewise.
3704 * modules/sys_file (Makefile.am): Likewise.
3705 * modules/getopt-posix (Makefile.am): Delete unused link warning
3707 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3708 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3709 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3710 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3712 stdio: remove unused variables
3713 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3714 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3715 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3717 tests: test more substitute headers
3718 * modules/ctype-tests: New file.
3719 * modules/dirent-tests: Likewise.
3720 * modules/spawn-tests: Likewise.
3721 * modules/sys_file-tests: Likewise.
3722 * modules/sys_ioctl-tests: Likewise.
3723 * modules/sys_wait-tests: Likewise.
3724 * tests/test-ctype.c: Likewise.
3725 * tests/test-dirent.c: Likewise.
3726 * tests/test-spawn.c: Likewise.
3727 * tests/test-sys_file.c: Likewise.
3728 * tests/test-sys_ioctl.c: Likewise.
3729 * tests/test-sys_wait.c: Likewise.
3730 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3731 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3732 whether or not flock is in use.
3734 tests: remove License section from module
3735 * modules/arpa_inet-tests: Remove unneeded section.
3736 * modules/byteswap-tests: Likewise.
3737 * modules/ceilf-tests: Likewise.
3738 * modules/ceill-tests: Likewise.
3739 * modules/crypto/des-tests: Likewise.
3740 * modules/crypto/gc-arcfour-tests: Likewise.
3741 * modules/crypto/gc-arctwo-tests: Likewise.
3742 * modules/crypto/gc-des-tests: Likewise.
3743 * modules/crypto/gc-hmac-md5-tests: Likewise.
3744 * modules/crypto/gc-hmac-sha1-tests: Likewise.
3745 * modules/crypto/gc-md2-tests: Likewise.
3746 * modules/crypto/gc-md4-tests: Likewise.
3747 * modules/crypto/gc-md5-tests: Likewise.
3748 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3749 * modules/crypto/gc-rijndael-tests: Likewise.
3750 * modules/crypto/gc-sha1-tests: Likewise.
3751 * modules/crypto/gc-tests: Likewise.
3752 * modules/crypto/md2-tests: Likewise.
3753 * modules/crypto/md4-tests: Likewise.
3754 * modules/fcntl-h-tests: Likewise.
3755 * modules/floorf-tests: Likewise.
3756 * modules/floorl-tests: Likewise.
3757 * modules/frexp-nolibm-tests: Likewise.
3758 * modules/frexp-tests: Likewise.
3759 * modules/frexpl-nolibm-tests: Likewise.
3760 * modules/frexpl-tests: Likewise.
3761 * modules/getaddrinfo-tests: Likewise.
3762 * modules/inttypes-tests: Likewise.
3763 * modules/isfinite-tests: Likewise.
3764 * modules/isinf-tests: Likewise.
3765 * modules/ldexpl-tests: Likewise.
3766 * modules/locale-tests: Likewise.
3767 * modules/math-tests: Likewise.
3768 * modules/netdb-tests: Likewise.
3769 * modules/netinet_in-tests: Likewise.
3770 * modules/printf-frexp-tests: Likewise.
3771 * modules/printf-frexpl-tests: Likewise.
3772 * modules/priv-set-tests: Likewise.
3773 * modules/random_r-tests: Likewise.
3774 * modules/round-tests: Likewise.
3775 * modules/roundf-tests: Likewise.
3776 * modules/roundl-tests: Likewise.
3777 * modules/search-tests: Likewise.
3778 * modules/select-tests: Likewise.
3779 * modules/signal-tests: Likewise.
3780 * modules/stdbool-tests: Likewise.
3781 * modules/stddef-tests: Likewise.
3782 * modules/stdint-tests: Likewise.
3783 * modules/stdio-tests: Likewise.
3784 * modules/stdlib-tests: Likewise.
3785 * modules/string-tests: Likewise.
3786 * modules/strings-tests: Likewise.
3787 * modules/sys_select-tests: Likewise.
3788 * modules/sys_socket-tests: Likewise.
3789 * modules/sys_stat-tests: Likewise.
3790 * modules/sys_time-tests: Likewise.
3791 * modules/sys_utsname-tests: Likewise.
3792 * modules/sysexits-tests: Likewise.
3793 * modules/time-tests: Likewise.
3794 * modules/trunc-tests: Likewise.
3795 * modules/truncf-tests: Likewise.
3796 * modules/truncl-tests: Likewise.
3797 * modules/tsearch-tests: Likewise.
3798 * modules/unistd-tests: Likewise.
3799 * modules/wchar-tests: Likewise.
3800 * modules/wctype-tests: Likewise.
3802 tests: fix license on several tests
3803 * tests/test-des.c: Update to GPLv3+.
3804 * tests/test-flock.c: Likewise.
3805 * tests/test-fsync.c: Likewise.
3806 * tests/test-futimens.h: Likewise.
3807 * tests/test-gc-arcfour.c: Likewise.
3808 * tests/test-gc-arctwo.c: Likewise.
3809 * tests/test-gc-des.c: Likewise.
3810 * tests/test-gc-hmac-md5.c: Likewise.
3811 * tests/test-gc-hmac-sha1.c: Likewise.
3812 * tests/test-gc-md2.c: Likewise.
3813 * tests/test-gc-md4.c: Likewise.
3814 * tests/test-gc-md5.c: Likewise.
3815 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3816 * tests/test-gc-rijndael.c: Likewise.
3817 * tests/test-gc-sha1.c: Likewise.
3818 * tests/test-gc.c: Likewise.
3819 * tests/test-getcwd.c: Likewise.
3820 * tests/test-link.c: Likewise.
3821 * tests/test-link.h: Likewise.
3822 * tests/test-lutimens.h: Likewise.
3823 * tests/test-md2.c: Likewise.
3824 * tests/test-md4.c: Likewise.
3825 * tests/test-mkdir.h: Likewise.
3826 * tests/test-rename.c: Likewise.
3827 * tests/test-rename.h: Likewise.
3828 * tests/test-safe-alloc.c: Likewise.
3829 * tests/test-utimens-common.h: Likewise.
3830 * tests/test-utimens.h: Likewise.
3832 maint: sync license texts
3833 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3834 * doc/gpl-3.0.texi: Revert copyright year update.
3835 * doc/lgpl-3.0.texi: Likewise.
3837 2009-12-29 Jim Meyering <meyering@redhat.com>
3839 update nearly all FSF copyright year lists to include 2009
3840 The files named by the following are exempted:
3841 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3842 test -f "$dst" && { echo "$dst"; continue; }
3843 test -d "$dst" || continue
3844 echo "$dst"/$(basename "$src")
3846 git ls-files tests/unictype >> exempt
3847 In the remaining files, convert to all-interval notation if
3848 - there is already at least one year interval like 2000-2003
3849 - the file is maintained by me
3850 - the file is in lib/uni*/, where that style already prevails
3851 Otherwise, use update-copyright's default.
3853 2009-12-29 Simon Josefsson <simon@josefsson.org>
3854 and Eric Blake <ebb9@byu.net>
3856 tests: don't require debug system() to pass
3857 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3858 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3859 * tests/test-unlink.h (test_unlink_func): Likewise.
3860 * tests/test-fstatat.c (main): ...into callers.
3861 * tests/test-lstat.c (main): Likewise.
3862 * tests/test-rmdir.c (main): Likewise.
3863 * tests/test-unlink.c (main): Likewise.
3864 * tests/test-unlinkat.c (main): Likewise.
3865 * tests/test-areadlink-with-size.c (main): Don't require a
3866 debug-only system call to pass, aiding cross-testing to mingw.
3867 * tests/test-areadlink.c (main): Likewise.
3868 * tests/test-areadlinkat-with-size.c (main): Likewise.
3869 * tests/test-areadlinkat.c (main): Likewise.
3870 * tests/test-canonicalize-lgpl.c (main): Likewise.
3871 * tests/test-canonicalize.c (main): Likewise.
3872 * tests/test-chown.c (main): Likewise.
3873 * tests/test-fchownat.c (main): Likewise.
3874 * tests/test-lchown.c (main): Likewise.
3875 * tests/test-fdutimensat.c (main): Likewise.
3876 * tests/test-futimens.c (main): Likewise.
3877 * tests/test-link.c (main): Likewise.
3878 * tests/test-linkat.c (main): Likewise.
3879 * tests/test-mkdir.c (main): Likewise.
3880 * tests/test-mkdirat.c (main): Likewise.
3881 * tests/test-mkfifo.c (main): Likewise.
3882 * tests/test-mkfifoat.c (main): Likewise.
3883 * tests/test-mknod.c (main): Likewise.
3884 * tests/test-readlink.c (main): Likewise.
3885 * tests/test-remove.c (main): Likewise.
3886 * tests/test-rename.c (main): Likewise.
3887 * tests/test-renameat.c (main): Likewise.
3888 * tests/test-symlink.c (main): Likewise.
3889 * tests/test-symlinkat.c (main): Likewise.
3890 * tests/test-utimens.c (main): Likewise.
3891 * tests/test-utimensat.c (main): Likewise.
3893 2009-12-29 Simon Josefsson <simon@josefsson.org>
3895 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3896 on $(UNUSED_PARAMETER_H) to avoid build failure.
3898 2009-12-28 Jim Meyering <meyering@redhat.com>
3900 update-copyright: you may specify a max. line length other than 72
3901 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3903 maint: use consistent FSF copyright line syntax
3904 * lib/posixtm.c: Add missing comma in FSF copyright line.
3905 * lib/posixtm.h: Likewise.
3906 * lib/getugroups.c: Add missing ", Inc.".
3908 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3909 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3910 FSF copyright line. Remove trailing blanks.
3912 2009-12-28 Eric Blake <ebb9@byu.net>
3914 test-dup2: reduce dependencies
3915 * modules/cloexec (Configure.ac): Set witness.
3916 * modules/dup2-tests (Depends-on): Drop cloexec.
3917 * tests/test-dup2.c (main): Skip portion of test if cloexec module
3919 Suggested by Bruno Haible.
3921 2009-12-26 Bruno Haible <bruno@clisp.org>
3923 Remove an unneeded dependency.
3924 * modules/fseterr (Depends-on): Remove dup2.
3926 2009-12-26 Eric Blake <ebb9@byu.net>
3928 tests: use macros.h in more places
3929 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3930 (ASSERT_STREAM): Provide default of stderr.
3931 * tests/test-dirent-safer.c: Include macros.h, using alternate
3932 stream for assertions.
3933 * tests/test-dup-safer.c: Likewise.
3934 * tests/test-freopen-safer.c: Likewise.
3935 * tests/test-getopt.c: Likewise.
3936 * tests/test-openat-safer.c: Likewise.
3937 * tests/test-pipe.c: Likewise.
3938 * tests/test-popen-safer.c: Likewise.
3939 * modules/dirent-safer-tests (Files): Include macros.h.
3940 * modules/unistd-safer-tests (Files): Likewise.
3941 * modules/freopen-safer-tests (Files): Likewise.
3942 * modules/getopt-posix-tests (Files): Likewise.
3943 * modules/openat-safer-tests (Files): Likewise.
3944 * modules/pipe-tests (Files): Likewise.
3946 2009-12-26 Bruno Haible <bruno@clisp.org>
3948 javacomp: Portability fix.
3949 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3950 that it also works on Solaris.
3952 2009-12-26 Bruno Haible <bruno@clisp.org>
3954 localename: Fix storage allocation of gl_locale_name_thread's result.
3955 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3956 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3957 all platforms that have 'uselocale'.
3958 (gl_locale_name_thread_unsafe): New function, extracted from
3959 gl_locale_name_thread.
3960 (gl_locale_name_thread): Call struniq on all platforms that have
3962 * tests/test-localename.c (test_locale_name_thread): Check that the
3963 resulting strings are permanently allocated.
3964 * modules/localename-tests (Depends-on): Add strdup.
3966 2009-12-26 Bruno Haible <bruno@clisp.org>
3968 * tests/test-localename.c (categories): Fill in the strings.
3970 2009-12-26 Jim Meyering <meyering@redhat.com>
3972 isdir: complete the removal of m4/isdir.m4
3973 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3975 isdir: clean up, since at least grep still uses it
3976 * lib/isdir.c: Include "isdir.h".
3977 (S_ISDIR): Remove now-unneeded definition.
3978 * modules/isdir (Files): Add lib/isdir.h.
3979 * lib/isdir.h: New file, with declaration.
3980 * m4/isdir.m4: Remove file -- unneeded.
3982 2009-12-25 Bruno Haible <bruno@clisp.org>
3984 selinux-h: Make generated .h files standalone.
3985 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3986 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3987 * lib/se-selinux.in.h: Likewise.
3988 * modules/selinux-h (Depends-on): Add unused-parameter.
3989 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3990 selinux/selinux.h and selinux/context.h.
3991 Suggested by Eric Blake.
3993 2009-12-25 Bruno Haible <bruno@clisp.org>
3995 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3996 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3997 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3998 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3999 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4001 2009-12-24 Bruno Haible <bruno@clisp.org>
4003 openat: Fix warning.
4004 * lib/openat-proc.c: Include <unistd.h>.
4006 2009-12-24 Bruno Haible <bruno@clisp.org>
4008 New module 'unused-parameter'.
4009 * build-aux/unused-parameter.h: New file, extracted from earlier
4011 * modules/unused-parameter: New file.
4012 * lib/unistr.h: Include unused-parameter.h.
4013 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4015 * modules/unistr/base (Depends-on): Add unused-parameter.
4017 2009-12-24 Bruno Haible <bruno@clisp.org>
4019 Add missing dependencies to 'extensions' module.
4020 * m4/extensions.m4: Add comment.
4021 * modules/accept4 (Depends-on): Add extensions.
4022 * modules/dup3 (Depends-on): Likewise.
4023 * modules/fcntl (Depends-on): Likewise.
4024 * modules/futimens (Depends-on): Likewise.
4025 * modules/mknod (Depends-on): Likewise.
4026 * modules/pipe2 (Depends-on): Likewise.
4027 * modules/stat-time (Depends-on): Likewise.
4028 * modules/strcasestr-simple (Depends-on): Likewise.
4029 * modules/strsignal (Depends-on): Likewise.
4030 * modules/utimensat (Depends-on): Likewise.
4031 * modules/localcharset (Depends-on): Likewise. Needed because of
4033 * modules/wcrtomb (Depends-on): Likewise. Needed because of
4035 * modules/wcsnrtombs (Depends-on): Likewise.
4036 * modules/wcsrtombs (Depends-on): Likewise.
4038 2009-12-24 Bruno Haible <bruno@clisp.org>
4040 binary-io: Avoid gcc warning due to SET_BINARY.
4041 * lib/binary-io.h (SET_BINARY): Cast the result to void.
4042 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4044 2009-12-24 Bruno Haible <bruno@clisp.org>
4046 Avoid future namespace pollution on glibc systems.
4047 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4048 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4049 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4052 2009-12-24 Bruno Haible <bruno@clisp.org>
4054 Refactor common macros used in tests.
4055 * tests/macros.h: New file.
4056 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4057 and/or <stdlib.h>, if appropriate.
4058 (ASSERT, SIZEOF): Remove macros.
4059 * tests/test-areadlink-with-size.c: Likewise.
4060 * tests/test-areadlinkat.c: Likewise.
4061 * tests/test-areadlinkat-with-size.c: Likewise.
4062 * tests/test-argmatch.c: Likewise.
4063 * tests/test-argv-iter.c: Likewise.
4064 * tests/test-array-mergesort.c: Likewise.
4065 * tests/test-array_list.c: Likewise.
4066 * tests/test-array_oset.c: Likewise.
4067 * tests/test-avltree_list.c: Likewise.
4068 * tests/test-avltree_oset.c: Likewise.
4069 * tests/test-avltreehash_list.c: Likewise.
4070 * tests/test-base64.c: Likewise.
4071 * tests/test-binary-io.c: Likewise.
4072 * tests/test-bitrotate.c: Likewise.
4073 * tests/test-btowc.c: Likewise.
4074 * tests/test-byteswap.c: Likewise.
4075 * tests/test-c-ctype.c: Likewise.
4076 * tests/test-c-stack.c: Likewise.
4077 * tests/test-c-strcasecmp.c: Likewise.
4078 * tests/test-c-strcasestr.c: Likewise.
4079 * tests/test-c-strncasecmp.c: Likewise.
4080 * tests/test-c-strstr.c: Likewise.
4081 * tests/test-canonicalize-lgpl.c: Likewise.
4082 * tests/test-canonicalize.c: Likewise.
4083 * tests/test-carray_list.c: Likewise.
4084 * tests/test-ceilf1.c: Likewise.
4085 * tests/test-ceilf2.c: Likewise.
4086 * tests/test-ceill.c: Likewise.
4087 * tests/test-chown.c: Likewise.
4088 * tests/test-cloexec.c: Likewise.
4089 * tests/test-copy-acl.c: Likewise.
4090 * tests/test-copy-file.c: Likewise.
4091 * tests/test-count-one-bits.c: Likewise.
4092 * tests/test-dprintf-posix.c: Likewise.
4093 * tests/test-dup2.c: Likewise.
4094 * tests/test-dup3.c: Likewise.
4095 * tests/test-duplocale.c: Likewise.
4096 * tests/test-fbufmode.c: Likewise.
4097 * tests/test-fchdir.c: Likewise.
4098 * tests/test-fchownat.c: Likewise.
4099 * tests/test-fcntl-safer.c: Likewise.
4100 * tests/test-fcntl.c: Likewise.
4101 * tests/test-fdopendir.c: Likewise.
4102 * tests/test-fdutimensat.c: Likewise.
4103 * tests/test-fflush2.c: Likewise.
4104 * tests/test-file-has-acl.c: Likewise.
4105 * tests/test-filevercmp.c: Likewise.
4106 * tests/test-flock.c: Likewise.
4107 * tests/test-floorf1.c: Likewise.
4108 * tests/test-floorf2.c: Likewise.
4109 * tests/test-floorl.c: Likewise.
4110 * tests/test-fnmatch.c: Likewise.
4111 * tests/test-fopen.h: Likewise.
4112 * tests/test-fpending.c: Likewise.
4113 * tests/test-fprintf-posix.c: Likewise.
4114 * tests/test-fpurge.c: Likewise.
4115 * tests/test-freadable.c: Likewise.
4116 * tests/test-freadahead.c: Likewise.
4117 * tests/test-freading.c: Likewise.
4118 * tests/test-freadptr.c: Likewise.
4119 * tests/test-freadptr2.c: Likewise.
4120 * tests/test-freadseek.c: Likewise.
4121 * tests/test-freopen.c: Likewise.
4122 * tests/test-frexp.c: Likewise.
4123 * tests/test-frexpl.c: Likewise.
4124 * tests/test-fseek.c: Likewise.
4125 * tests/test-fseeko.c: Likewise.
4126 * tests/test-fstatat.c: Likewise.
4127 * tests/test-fstrcmp.c: Likewise.
4128 * tests/test-fsync.c: Likewise.
4129 * tests/test-ftell.c: Likewise.
4130 * tests/test-ftello.c: Likewise.
4131 * tests/test-func.c: Likewise.
4132 * tests/test-futimens.c: Likewise.
4133 * tests/test-fwritable.c: Likewise.
4134 * tests/test-fwriting.c: Likewise.
4135 * tests/test-getcwd.c: Likewise.
4136 * tests/test-getdate.c: Likewise.
4137 * tests/test-getdelim.c: Likewise.
4138 * tests/test-getdtablesize.c: Likewise.
4139 * tests/test-getgroups.c: Likewise.
4140 * tests/test-getline.c: Likewise.
4141 * tests/test-getndelim2.c: Likewise.
4142 * tests/test-glob.c: Likewise.
4143 * tests/test-hash.c: Likewise.
4144 * tests/test-i-ring.c: Likewise.
4145 * tests/test-iconv-utf.c: Likewise.
4146 * tests/test-iconv.c: Likewise.
4147 * tests/test-idpriv-drop.c: Likewise.
4148 * tests/test-idpriv-droptemp.c: Likewise.
4149 * tests/test-inet_ntop.c: Likewise.
4150 * tests/test-inet_pton.c: Likewise.
4151 * tests/test-isblank.c: Likewise.
4152 * tests/test-isfinite.c: Likewise.
4153 * tests/test-isinf.c: Likewise.
4154 * tests/test-isnan.c: Likewise.
4155 * tests/test-isnand.h: Likewise.
4156 * tests/test-isnanf.h: Likewise.
4157 * tests/test-isnanl.h: Likewise.
4158 * tests/test-lchown.c: Likewise.
4159 * tests/test-ldexpl.c: Likewise.
4160 * tests/test-link.c: Likewise.
4161 * tests/test-linkat.c: Likewise.
4162 * tests/test-linked_list.c: Likewise.
4163 * tests/test-linkedhash_list.c: Likewise.
4164 * tests/test-localename.c: Likewise.
4165 * tests/test-lseek.c: Likewise.
4166 * tests/test-lstat.c: Likewise.
4167 * tests/test-mbmemcasecmp.c: Likewise.
4168 * tests/test-mbmemcasecoll.c: Likewise.
4169 * tests/test-mbrtowc.c: Likewise.
4170 * tests/test-mbscasecmp.c: Likewise.
4171 * tests/test-mbscasestr1.c: Likewise.
4172 * tests/test-mbscasestr2.c: Likewise.
4173 * tests/test-mbscasestr3.c: Likewise.
4174 * tests/test-mbscasestr4.c: Likewise.
4175 * tests/test-mbschr.c: Likewise.
4176 * tests/test-mbscspn.c: Likewise.
4177 * tests/test-mbsinit.c: Likewise.
4178 * tests/test-mbsncasecmp.c: Likewise.
4179 * tests/test-mbsnrtowcs.c: Likewise.
4180 * tests/test-mbspbrk.c: Likewise.
4181 * tests/test-mbspcasecmp.c: Likewise.
4182 * tests/test-mbsrchr.c: Likewise.
4183 * tests/test-mbsrtowcs.c: Likewise.
4184 * tests/test-mbsspn.c: Likewise.
4185 * tests/test-mbsstr1.c: Likewise.
4186 * tests/test-mbsstr2.c: Likewise.
4187 * tests/test-mbsstr3.c: Likewise.
4188 * tests/test-memchr.c: Likewise.
4189 * tests/test-memchr2.c: Likewise.
4190 * tests/test-memcmp.c: Likewise.
4191 * tests/test-memmem.c: Likewise.
4192 * tests/test-memrchr.c: Likewise.
4193 * tests/test-mkdir.c: Likewise.
4194 * tests/test-mkdirat.c: Likewise.
4195 * tests/test-mkfifo.c: Likewise.
4196 * tests/test-mkfifoat.c: Likewise.
4197 * tests/test-mknod.c: Likewise.
4198 * tests/test-nanosleep.c: Likewise.
4199 * tests/test-nl_langinfo.c: Likewise.
4200 * tests/test-obstack-printf.c: Likewise.
4201 * tests/test-open.c: Likewise.
4202 * tests/test-openat.c: Likewise.
4203 * tests/test-pipe-filter-gi1.c: Likewise.
4204 * tests/test-pipe-filter-gi2-main.c: Likewise.
4205 * tests/test-pipe-filter-ii1.c: Likewise.
4206 * tests/test-pipe-filter-ii2-main.c: Likewise.
4207 * tests/test-pipe2.c: Likewise.
4208 * tests/test-popen.h: Likewise.
4209 * tests/test-posixtm.c: Likewise.
4210 * tests/test-pread.c: Likewise.
4211 * tests/test-printf-frexp.c: Likewise.
4212 * tests/test-printf-frexpl.c: Likewise.
4213 * tests/test-printf-posix.c: Likewise.
4214 * tests/test-priv-set.c: Likewise.
4215 * tests/test-quotearg.c: Likewise.
4216 * tests/test-random_r.c: Likewise.
4217 * tests/test-rawmemchr.c: Likewise.
4218 * tests/test-rbtree_list.c: Likewise.
4219 * tests/test-rbtree_oset.c: Likewise.
4220 * tests/test-rbtreehash_list.c: Likewise.
4221 * tests/test-readlink.c: Likewise.
4222 * tests/test-remove.c: Likewise.
4223 * tests/test-rename.c: Likewise.
4224 * tests/test-renameat.c: Likewise.
4225 * tests/test-rmdir.c: Likewise.
4226 * tests/test-round1.c: Likewise.
4227 * tests/test-roundf1.c: Likewise.
4228 * tests/test-roundl.c: Likewise.
4229 * tests/test-safe-alloc.c: Likewise.
4230 * tests/test-sameacls.c: Likewise.
4231 * tests/test-set-mode-acl.c: Likewise.
4232 * tests/test-setenv.c: Likewise.
4233 * tests/test-sigaction.c: Likewise.
4234 * tests/test-signbit.c: Likewise.
4235 * tests/test-sleep.c: Likewise.
4236 * tests/test-snprintf-posix.c: Likewise.
4237 * tests/test-snprintf.c: Likewise.
4238 * tests/test-sprintf-posix.c: Likewise.
4239 * tests/test-stat-time.c: Likewise.
4240 * tests/test-stat.c: Likewise.
4241 * tests/test-strcasestr.c: Likewise.
4242 * tests/test-strchrnul.c: Likewise.
4243 * tests/test-strerror.c: Likewise.
4244 * tests/test-striconv.c: Likewise.
4245 * tests/test-striconveh.c: Likewise.
4246 * tests/test-striconveha.c: Likewise.
4247 * tests/test-strsignal.c: Likewise.
4248 * tests/test-strstr.c: Likewise.
4249 * tests/test-strtod.c: Likewise.
4250 * tests/test-strverscmp.c: Likewise.
4251 * tests/test-symlink.c: Likewise.
4252 * tests/test-symlinkat.c: Likewise.
4253 * tests/test-trunc1.c: Likewise.
4254 * tests/test-trunc2.c: Likewise.
4255 * tests/test-truncf1.c: Likewise.
4256 * tests/test-truncf2.c: Likewise.
4257 * tests/test-truncl.c: Likewise.
4258 * tests/test-uname.c: Likewise.
4259 * tests/test-unlink.c: Likewise.
4260 * tests/test-unlinkat.c: Likewise.
4261 * tests/test-unsetenv.c: Likewise.
4262 * tests/test-usleep.c: Likewise.
4263 * tests/test-utimens.c: Likewise.
4264 * tests/test-utimensat.c: Likewise.
4265 * tests/test-vasnprintf-posix.c: Likewise.
4266 * tests/test-vasnprintf-posix2.c: Likewise.
4267 * tests/test-vasnprintf.c: Likewise.
4268 * tests/test-vasprintf-posix.c: Likewise.
4269 * tests/test-vasprintf.c: Likewise.
4270 * tests/test-vdprintf-posix.c: Likewise.
4271 * tests/test-vfprintf-posix.c: Likewise.
4272 * tests/test-vprintf-posix.c: Likewise.
4273 * tests/test-vsnprintf-posix.c: Likewise.
4274 * tests/test-vsnprintf.c: Likewise.
4275 * tests/test-vsprintf-posix.c: Likewise.
4276 * tests/test-wcrtomb.c: Likewise.
4277 * tests/test-wcsnrtombs.c: Likewise.
4278 * tests/test-wcsrtombs.c: Likewise.
4279 * tests/test-wctype.c: Likewise.
4280 * tests/test-wcwidth.c: Likewise.
4281 * tests/test-xfprintf-posix.c: Likewise.
4282 * tests/test-xmemdup0.c: Likewise.
4283 * tests/test-xprintf-posix.c: Likewise.
4284 * tests/test-xvasprintf.c: Likewise.
4285 * tests/unicase/test-locale-language.c: Likewise.
4286 * tests/unicase/test-mapping-part1.h: Likewise.
4287 * tests/unicase/test-predicate-part1.h: Likewise.
4288 * tests/unicase/test-u8-casecmp.c: Likewise.
4289 * tests/unicase/test-u8-casecoll.c: Likewise.
4290 * tests/unicase/test-u8-casefold.c: Likewise.
4291 * tests/unicase/test-u8-is-cased.c: Likewise.
4292 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4293 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4294 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4295 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4296 * tests/unicase/test-u8-tolower.c: Likewise.
4297 * tests/unicase/test-u8-totitle.c: Likewise.
4298 * tests/unicase/test-u8-toupper.c: Likewise.
4299 * tests/unicase/test-u16-casecmp.c: Likewise.
4300 * tests/unicase/test-u16-casecoll.c: Likewise.
4301 * tests/unicase/test-u16-casefold.c: Likewise.
4302 * tests/unicase/test-u16-is-cased.c: Likewise.
4303 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4304 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4305 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4306 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4307 * tests/unicase/test-u16-tolower.c: Likewise.
4308 * tests/unicase/test-u16-totitle.c: Likewise.
4309 * tests/unicase/test-u16-toupper.c: Likewise.
4310 * tests/unicase/test-u32-casecmp.c: Likewise.
4311 * tests/unicase/test-u32-casecoll.c: Likewise.
4312 * tests/unicase/test-u32-casefold.c: Likewise.
4313 * tests/unicase/test-u32-is-cased.c: Likewise.
4314 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4315 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4316 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4317 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4318 * tests/unicase/test-u32-tolower.c: Likewise.
4319 * tests/unicase/test-u32-totitle.c: Likewise.
4320 * tests/unicase/test-u32-toupper.c: Likewise.
4321 * tests/unicase/test-ulc-casecmp.c: Likewise.
4322 * tests/unicase/test-ulc-casecoll.c: Likewise.
4323 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4324 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4325 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4326 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4327 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4328 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4329 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4330 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4331 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4332 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4333 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4334 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4335 * tests/unictype/test-bidi_byname.c: Likewise.
4336 * tests/unictype/test-bidi_name.c: Likewise.
4337 * tests/unictype/test-bidi_of.c: Likewise.
4338 * tests/unictype/test-bidi_test.c: Likewise.
4339 * tests/unictype/test-block_list.c: Likewise.
4340 * tests/unictype/test-block_of.c: Likewise.
4341 * tests/unictype/test-block_test.c: Likewise.
4342 * tests/unictype/test-categ_and.c: Likewise.
4343 * tests/unictype/test-categ_and_not.c: Likewise.
4344 * tests/unictype/test-categ_byname.c: Likewise.
4345 * tests/unictype/test-categ_name.c: Likewise.
4346 * tests/unictype/test-categ_none.c: Likewise.
4347 * tests/unictype/test-categ_of.c: Likewise.
4348 * tests/unictype/test-categ_or.c: Likewise.
4349 * tests/unictype/test-categ_test_withtable.c: Likewise.
4350 * tests/unictype/test-combining.c: Likewise.
4351 * tests/unictype/test-decdigit.c: Likewise.
4352 * tests/unictype/test-digit.c: Likewise.
4353 * tests/unictype/test-mirror.c: Likewise.
4354 * tests/unictype/test-numeric.c: Likewise.
4355 * tests/unictype/test-pr_byname.c: Likewise.
4356 * tests/unictype/test-pr_test.c: Likewise.
4357 * tests/unictype/test-predicate-part1.h: Likewise.
4358 * tests/unictype/test-scripts.c: Likewise.
4359 * tests/unictype/test-sy_c_ident.c: Likewise.
4360 * tests/unictype/test-sy_java_ident.c: Likewise.
4361 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4362 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4363 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4364 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4365 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4366 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4367 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4368 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4369 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4370 * tests/uninorm/test-compat-decomposition.c: Likewise.
4371 * tests/uninorm/test-composition.c: Likewise.
4372 * tests/uninorm/test-decomposing-form.c: Likewise.
4373 * tests/uninorm/test-decomposition.c: Likewise.
4374 * tests/uninorm/test-u8-nfc.c: Likewise.
4375 * tests/uninorm/test-u8-nfd.c: Likewise.
4376 * tests/uninorm/test-u8-nfkc.c: Likewise.
4377 * tests/uninorm/test-u8-nfkd.c: Likewise.
4378 * tests/uninorm/test-u8-normcmp.c: Likewise.
4379 * tests/uninorm/test-u8-normcoll.c: Likewise.
4380 * tests/uninorm/test-u16-nfc.c: Likewise.
4381 * tests/uninorm/test-u16-nfd.c: Likewise.
4382 * tests/uninorm/test-u16-nfkc.c: Likewise.
4383 * tests/uninorm/test-u16-nfkd.c: Likewise.
4384 * tests/uninorm/test-u16-normcmp.c: Likewise.
4385 * tests/uninorm/test-u16-normcoll.c: Likewise.
4386 * tests/uninorm/test-u32-nfc.c: Likewise.
4387 * tests/uninorm/test-u32-nfd.c: Likewise.
4388 * tests/uninorm/test-u32-nfkc.c: Likewise.
4389 * tests/uninorm/test-u32-nfkd.c: Likewise.
4390 * tests/uninorm/test-u32-normalize-big.c: Likewise.
4391 * tests/uninorm/test-u32-normcmp.c: Likewise.
4392 * tests/uninorm/test-u32-normcoll.c: Likewise.
4393 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4394 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4395 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4396 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4397 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4398 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4399 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4400 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4401 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4402 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4403 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4404 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4405 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4406 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4407 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4408 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4409 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4410 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4411 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4412 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4413 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4414 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4415 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4416 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4417 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4418 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4419 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4420 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4421 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4422 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4423 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4424 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4425 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4426 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4427 * tests/uniwidth/test-u8-width.c: Likewise.
4428 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4429 * tests/uniwidth/test-u16-width.c: Likewise.
4430 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4431 * tests/uniwidth/test-u32-width.c: Likewise.
4432 * tests/uniwidth/test-uc_width.c: Likewise.
4433 * tests/uniwidth/test-uc_width2.c: Likewise.
4434 * modules/acl-tests (Files): Add tests/macros.h.
4435 * modules/areadlink-tests (Files): Likewise.
4436 * modules/areadlink-with-size-tests (Files): Likewise.
4437 * modules/areadlinkat-tests (Files): Likewise.
4438 * modules/areadlinkat-with-size-tests (Files): Likewise.
4439 * modules/argmatch-tests (Files): Likewise.
4440 * modules/argv-iter-tests (Files): Likewise.
4441 * modules/array-list-tests (Files): Likewise.
4442 * modules/array-mergesort-tests (Files): Likewise.
4443 * modules/array-oset-tests (Files): Likewise.
4444 * modules/avltree-list-tests (Files): Likewise.
4445 * modules/avltree-oset-tests (Files): Likewise.
4446 * modules/avltreehash-list-tests (Files): Likewise.
4447 * modules/base64-tests (Files): Likewise.
4448 * modules/binary-io-tests (Files): Likewise.
4449 * modules/bitrotate-tests (Files): Likewise.
4450 * modules/btowc-tests (Files): Likewise.
4451 * modules/byteswap-tests (Files): Likewise.
4452 * modules/c-ctype-tests (Files): Likewise.
4453 * modules/c-stack-tests (Files): Likewise.
4454 * modules/c-strcase-tests (Files): Likewise.
4455 * modules/c-strcasestr-tests (Files): Likewise.
4456 * modules/c-strstr-tests (Files): Likewise.
4457 * modules/canonicalize-lgpl-tests (Files): Likewise.
4458 * modules/canonicalize-tests (Files): Likewise.
4459 * modules/carray-list-tests (Files): Likewise.
4460 * modules/ceilf-tests (Files): Likewise.
4461 * modules/ceill-tests (Files): Likewise.
4462 * modules/chown-tests (Files): Likewise.
4463 * modules/cloexec-tests (Files): Likewise.
4464 * modules/copy-file-tests (Files): Likewise.
4465 * modules/count-one-bits-tests (Files): Likewise.
4466 * modules/dprintf-posix-tests (Files): Likewise.
4467 * modules/dup2-tests (Files): Likewise.
4468 * modules/dup3-tests (Files): Likewise.
4469 * modules/duplocale-tests (Files): Likewise.
4470 * modules/fbufmode-tests (Files): Likewise.
4471 * modules/fchdir-tests (Files): Likewise.
4472 * modules/fcntl-safer-tests (Files): Likewise.
4473 * modules/fcntl-tests (Files): Likewise.
4474 * modules/fdopendir-tests (Files): Likewise.
4475 * modules/fdutimensat-tests (Files): Likewise.
4476 * modules/fflush-tests (Files): Likewise.
4477 * modules/filevercmp-tests (Files): Likewise.
4478 * modules/flock-tests (Files): Likewise.
4479 * modules/floorf-tests (Files): Likewise.
4480 * modules/floorl-tests (Files): Likewise.
4481 * modules/fnmatch-tests (Files): Likewise.
4482 * modules/fopen-safer-tests (Files): Likewise.
4483 * modules/fopen-tests (Files): Likewise.
4484 * modules/fpending-tests (Files): Likewise.
4485 * modules/fprintf-posix-tests (Files): Likewise.
4486 * modules/fpurge-tests (Files): Likewise.
4487 * modules/freadable-tests (Files): Likewise.
4488 * modules/freadahead-tests (Files): Likewise.
4489 * modules/freading-tests (Files): Likewise.
4490 * modules/freadptr-tests (Files): Likewise.
4491 * modules/freadseek-tests (Files): Likewise.
4492 * modules/freopen-tests (Files): Likewise.
4493 * modules/frexp-nolibm-tests (Files): Likewise.
4494 * modules/frexp-tests (Files): Likewise.
4495 * modules/frexpl-nolibm-tests (Files): Likewise.
4496 * modules/frexpl-tests (Files): Likewise.
4497 * modules/fseek-tests (Files): Likewise.
4498 * modules/fseeko-tests (Files): Likewise.
4499 * modules/fstrcmp-tests (Files): Likewise.
4500 * modules/fsync-tests (Files): Likewise.
4501 * modules/ftell-tests (Files): Likewise.
4502 * modules/ftello-tests (Files): Likewise.
4503 * modules/func-tests (Files): Likewise.
4504 * modules/futimens-tests (Files): Likewise.
4505 * modules/fwritable-tests (Files): Likewise.
4506 * modules/fwriting-tests (Files): Likewise.
4507 * modules/getcwd-tests (Files): Likewise.
4508 * modules/getdate-tests (Files): Likewise.
4509 * modules/getdelim-tests (Files): Likewise.
4510 * modules/getdtablesize-tests (Files): Likewise.
4511 * modules/getgroups-tests (Files): Likewise.
4512 * modules/getline-tests (Files): Likewise.
4513 * modules/getndelim2-tests (Files): Likewise.
4514 * modules/glob-tests (Files): Likewise.
4515 * modules/hash-tests (Files): Likewise.
4516 * modules/i-ring-tests (Files): Likewise.
4517 * modules/iconv-tests (Files): Likewise.
4518 * modules/iconv_open-utf-tests (Files): Likewise.
4519 * modules/idpriv-drop-tests (Files): Likewise.
4520 * modules/idpriv-droptemp-tests (Files): Likewise.
4521 * modules/inet_ntop-tests (Files): Likewise.
4522 * modules/inet_pton-tests (Files): Likewise.
4523 * modules/isblank-tests (Files): Likewise.
4524 * modules/isfinite-tests (Files): Likewise.
4525 * modules/isinf-tests (Files): Likewise.
4526 * modules/isnan-tests (Files): Likewise.
4527 * modules/isnand-nolibm-tests (Files): Likewise.
4528 * modules/isnand-tests (Files): Likewise.
4529 * modules/isnanf-nolibm-tests (Files): Likewise.
4530 * modules/isnanf-tests (Files): Likewise.
4531 * modules/isnanl-nolibm-tests (Files): Likewise.
4532 * modules/isnanl-tests (Files): Likewise.
4533 * modules/lchown-tests (Files): Likewise.
4534 * modules/ldexpl-tests (Files): Likewise.
4535 * modules/link-tests (Files): Likewise.
4536 * modules/linkat-tests (Files): Likewise.
4537 * modules/linked-list-tests (Files): Likewise.
4538 * modules/linkedhash-list-tests (Files): Likewise.
4539 * modules/localename-tests (Files): Likewise.
4540 * modules/lseek-tests (Files): Likewise.
4541 * modules/lstat-tests (Files): Likewise.
4542 * modules/mbmemcasecmp-tests (Files): Likewise.
4543 * modules/mbmemcasecoll-tests (Files): Likewise.
4544 * modules/mbrtowc-tests (Files): Likewise.
4545 * modules/mbscasecmp-tests (Files): Likewise.
4546 * modules/mbscasestr-tests (Files): Likewise.
4547 * modules/mbschr-tests (Files): Likewise.
4548 * modules/mbscspn-tests (Files): Likewise.
4549 * modules/mbsinit-tests (Files): Likewise.
4550 * modules/mbsncasecmp-tests (Files): Likewise.
4551 * modules/mbsnrtowcs-tests (Files): Likewise.
4552 * modules/mbspbrk-tests (Files): Likewise.
4553 * modules/mbspcasecmp-tests (Files): Likewise.
4554 * modules/mbsrchr-tests (Files): Likewise.
4555 * modules/mbsrtowcs-tests (Files): Likewise.
4556 * modules/mbsspn-tests (Files): Likewise.
4557 * modules/mbsstr-tests (Files): Likewise.
4558 * modules/memchr-tests (Files): Likewise.
4559 * modules/memchr2-tests (Files): Likewise.
4560 * modules/memcmp-tests (Files): Likewise.
4561 * modules/memmem-tests (Files): Likewise.
4562 * modules/memrchr-tests (Files): Likewise.
4563 * modules/mkdir-tests (Files): Likewise.
4564 * modules/mkfifo-tests (Files): Likewise.
4565 * modules/mkfifoat-tests (Files): Likewise.
4566 * modules/mknod-tests (Files): Likewise.
4567 * modules/nanosleep-tests (Files): Likewise.
4568 * modules/nl_langinfo-tests (Files): Likewise.
4569 * modules/obstack-printf-tests (Files): Likewise.
4570 * modules/open-tests (Files): Likewise.
4571 * modules/openat-tests (Files): Likewise.
4572 * modules/pipe-filter-gi-tests (Files): Likewise.
4573 * modules/pipe-filter-ii-tests (Files): Likewise.
4574 * modules/pipe2-tests (Files): Likewise.
4575 * modules/popen-safer-tests (Files): Likewise.
4576 * modules/popen-tests (Files): Likewise.
4577 * modules/posixtm-tests (Files): Likewise.
4578 * modules/pread-tests (Files): Likewise.
4579 * modules/printf-frexp-tests (Files): Likewise.
4580 * modules/printf-frexpl-tests (Files): Likewise.
4581 * modules/printf-posix-tests (Files): Likewise.
4582 * modules/priv-set-tests (Files): Likewise.
4583 * modules/quotearg-tests (Files): Likewise.
4584 * modules/random_r-tests (Files): Likewise.
4585 * modules/rawmemchr-tests (Files): Likewise.
4586 * modules/rbtree-list-tests (Files): Likewise.
4587 * modules/rbtree-oset-tests (Files): Likewise.
4588 * modules/rbtreehash-list-tests (Files): Likewise.
4589 * modules/readlink-tests (Files): Likewise.
4590 * modules/remove-tests (Files): Likewise.
4591 * modules/rename-tests (Files): Likewise.
4592 * modules/renameat-tests (Files): Likewise.
4593 * modules/rmdir-tests (Files): Likewise.
4594 * modules/round-tests (Files): Likewise.
4595 * modules/roundf-tests (Files): Likewise.
4596 * modules/roundl-tests (Files): Likewise.
4597 * modules/safe-alloc-tests (Files): Likewise.
4598 * modules/setenv-tests (Files): Likewise.
4599 * modules/sigaction-tests (Files): Likewise.
4600 * modules/signbit-tests (Files): Likewise.
4601 * modules/sleep-tests (Files): Likewise.
4602 * modules/snprintf-posix-tests (Files): Likewise.
4603 * modules/snprintf-tests (Files): Likewise.
4604 * modules/sprintf-posix-tests (Files): Likewise.
4605 * modules/stat-tests (Files): Likewise.
4606 * modules/stat-time-tests (Files): Likewise.
4607 * modules/strcasestr-tests (Files): Likewise.
4608 * modules/strchrnul-tests (Files): Likewise.
4609 * modules/strerror-tests (Files): Likewise.
4610 * modules/striconv-tests (Files): Likewise.
4611 * modules/striconveh-tests (Files): Likewise.
4612 * modules/striconveha-tests (Files): Likewise.
4613 * modules/strsignal-tests (Files): Likewise.
4614 * modules/strstr-tests (Files): Likewise.
4615 * modules/strtod-tests (Files): Likewise.
4616 * modules/strverscmp-tests (Files): Likewise.
4617 * modules/symlink-tests (Files): Likewise.
4618 * modules/symlinkat-tests (Files): Likewise.
4619 * modules/trunc-tests (Files): Likewise.
4620 * modules/truncf-tests (Files): Likewise.
4621 * modules/truncl-tests (Files): Likewise.
4622 * modules/uname-tests (Files): Likewise.
4623 * modules/unicase/cased-tests (Files): Likewise.
4624 * modules/unicase/ignorable-tests (Files): Likewise.
4625 * modules/unicase/locale-language-tests (Files): Likewise.
4626 * modules/unicase/tolower-tests (Files): Likewise.
4627 * modules/unicase/totitle-tests (Files): Likewise.
4628 * modules/unicase/toupper-tests (Files): Likewise.
4629 * modules/unicase/u8-casecmp-tests (Files): Likewise.
4630 * modules/unicase/u8-casecoll-tests (Files): Likewise.
4631 * modules/unicase/u8-casefold-tests (Files): Likewise.
4632 * modules/unicase/u8-is-cased-tests (Files): Likewise.
4633 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4634 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4635 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4636 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4637 * modules/unicase/u8-tolower-tests (Files): Likewise.
4638 * modules/unicase/u8-totitle-tests (Files): Likewise.
4639 * modules/unicase/u8-toupper-tests (Files): Likewise.
4640 * modules/unicase/u16-casecmp-tests (Files): Likewise.
4641 * modules/unicase/u16-casecoll-tests (Files): Likewise.
4642 * modules/unicase/u16-casefold-tests (Files): Likewise.
4643 * modules/unicase/u16-is-cased-tests (Files): Likewise.
4644 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4645 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4646 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4647 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4648 * modules/unicase/u16-tolower-tests (Files): Likewise.
4649 * modules/unicase/u16-totitle-tests (Files): Likewise.
4650 * modules/unicase/u16-toupper-tests (Files): Likewise.
4651 * modules/unicase/u32-casecmp-tests (Files): Likewise.
4652 * modules/unicase/u32-casecoll-tests (Files): Likewise.
4653 * modules/unicase/u32-casefold-tests (Files): Likewise.
4654 * modules/unicase/u32-is-cased-tests (Files): Likewise.
4655 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4656 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4657 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4658 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4659 * modules/unicase/u32-tolower-tests (Files): Likewise.
4660 * modules/unicase/u32-totitle-tests (Files): Likewise.
4661 * modules/unicase/u32-toupper-tests (Files): Likewise.
4662 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4663 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4664 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4665 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4666 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4667 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4668 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4669 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4670 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4671 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4672 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4673 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4674 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4675 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4676 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4677 * modules/unictype/bidicategory-name-tests (Files): Likewise.
4678 * modules/unictype/bidicategory-of-tests (Files): Likewise.
4679 * modules/unictype/bidicategory-test-tests (Files): Likewise.
4680 * modules/unictype/block-list-tests (Files): Likewise.
4681 * modules/unictype/block-of-tests (Files): Likewise.
4682 * modules/unictype/block-test-tests (Files): Likewise.
4683 * modules/unictype/category-C-tests (Files): Likewise.
4684 * modules/unictype/category-Cc-tests (Files): Likewise.
4685 * modules/unictype/category-Cf-tests (Files): Likewise.
4686 * modules/unictype/category-Cn-tests (Files): Likewise.
4687 * modules/unictype/category-Co-tests (Files): Likewise.
4688 * modules/unictype/category-Cs-tests (Files): Likewise.
4689 * modules/unictype/category-L-tests (Files): Likewise.
4690 * modules/unictype/category-Ll-tests (Files): Likewise.
4691 * modules/unictype/category-Lm-tests (Files): Likewise.
4692 * modules/unictype/category-Lo-tests (Files): Likewise.
4693 * modules/unictype/category-Lt-tests (Files): Likewise.
4694 * modules/unictype/category-Lu-tests (Files): Likewise.
4695 * modules/unictype/category-M-tests (Files): Likewise.
4696 * modules/unictype/category-Mc-tests (Files): Likewise.
4697 * modules/unictype/category-Me-tests (Files): Likewise.
4698 * modules/unictype/category-Mn-tests (Files): Likewise.
4699 * modules/unictype/category-N-tests (Files): Likewise.
4700 * modules/unictype/category-Nd-tests (Files): Likewise.
4701 * modules/unictype/category-Nl-tests (Files): Likewise.
4702 * modules/unictype/category-No-tests (Files): Likewise.
4703 * modules/unictype/category-P-tests (Files): Likewise.
4704 * modules/unictype/category-Pc-tests (Files): Likewise.
4705 * modules/unictype/category-Pd-tests (Files): Likewise.
4706 * modules/unictype/category-Pe-tests (Files): Likewise.
4707 * modules/unictype/category-Pf-tests (Files): Likewise.
4708 * modules/unictype/category-Pi-tests (Files): Likewise.
4709 * modules/unictype/category-Po-tests (Files): Likewise.
4710 * modules/unictype/category-Ps-tests (Files): Likewise.
4711 * modules/unictype/category-S-tests (Files): Likewise.
4712 * modules/unictype/category-Sc-tests (Files): Likewise.
4713 * modules/unictype/category-Sk-tests (Files): Likewise.
4714 * modules/unictype/category-Sm-tests (Files): Likewise.
4715 * modules/unictype/category-So-tests (Files): Likewise.
4716 * modules/unictype/category-Z-tests (Files): Likewise.
4717 * modules/unictype/category-Zl-tests (Files): Likewise.
4718 * modules/unictype/category-Zp-tests (Files): Likewise.
4719 * modules/unictype/category-Zs-tests (Files): Likewise.
4720 * modules/unictype/category-and-not-tests (Files): Likewise.
4721 * modules/unictype/category-and-tests (Files): Likewise.
4722 * modules/unictype/category-byname-tests (Files): Likewise.
4723 * modules/unictype/category-name-tests (Files): Likewise.
4724 * modules/unictype/category-none-tests (Files): Likewise.
4725 * modules/unictype/category-of-tests (Files): Likewise.
4726 * modules/unictype/category-or-tests (Files): Likewise.
4727 * modules/unictype/category-test-withtable-tests (Files): Likewise.
4728 * modules/unictype/combining-class-tests (Files): Likewise.
4729 * modules/unictype/ctype-alnum-tests (Files): Likewise.
4730 * modules/unictype/ctype-alpha-tests (Files): Likewise.
4731 * modules/unictype/ctype-blank-tests (Files): Likewise.
4732 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4733 * modules/unictype/ctype-digit-tests (Files): Likewise.
4734 * modules/unictype/ctype-graph-tests (Files): Likewise.
4735 * modules/unictype/ctype-lower-tests (Files): Likewise.
4736 * modules/unictype/ctype-print-tests (Files): Likewise.
4737 * modules/unictype/ctype-punct-tests (Files): Likewise.
4738 * modules/unictype/ctype-space-tests (Files): Likewise.
4739 * modules/unictype/ctype-upper-tests (Files): Likewise.
4740 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4741 * modules/unictype/decimal-digit-tests (Files): Likewise.
4742 * modules/unictype/digit-tests (Files): Likewise.
4743 * modules/unictype/mirror-tests (Files): Likewise.
4744 * modules/unictype/numeric-tests (Files): Likewise.
4745 * modules/unictype/property-alphabetic-tests (Files): Likewise.
4746 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4747 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4748 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4750 * modules/unictype/property-bidi-block-separator-tests (Files):
4752 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4754 * modules/unictype/property-bidi-common-separator-tests (Files):
4756 * modules/unictype/property-bidi-control-tests (Files): Likewise.
4757 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4759 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4761 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4763 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4764 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4766 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4767 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4769 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4770 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4771 * modules/unictype/property-bidi-segment-separator-tests (Files):
4773 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4774 * modules/unictype/property-byname-tests (Files): Likewise.
4775 * modules/unictype/property-combining-tests (Files): Likewise.
4776 * modules/unictype/property-composite-tests (Files): Likewise.
4777 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4778 * modules/unictype/property-dash-tests (Files): Likewise.
4779 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4780 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4782 * modules/unictype/property-deprecated-tests (Files): Likewise.
4783 * modules/unictype/property-diacritic-tests (Files): Likewise.
4784 * modules/unictype/property-extender-tests (Files): Likewise.
4785 * modules/unictype/property-format-control-tests (Files): Likewise.
4786 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4787 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4788 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4789 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4790 * modules/unictype/property-hyphen-tests (Files): Likewise.
4791 * modules/unictype/property-id-continue-tests (Files): Likewise.
4792 * modules/unictype/property-id-start-tests (Files): Likewise.
4793 * modules/unictype/property-ideographic-tests (Files): Likewise.
4794 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4795 * modules/unictype/property-ids-trinary-operator-tests (Files):
4797 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4798 * modules/unictype/property-iso-control-tests (Files): Likewise.
4799 * modules/unictype/property-join-control-tests (Files): Likewise.
4800 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4801 * modules/unictype/property-line-separator-tests (Files): Likewise.
4802 * modules/unictype/property-logical-order-exception-tests (Files):
4804 * modules/unictype/property-lowercase-tests (Files): Likewise.
4805 * modules/unictype/property-math-tests (Files): Likewise.
4806 * modules/unictype/property-non-break-tests (Files): Likewise.
4807 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4808 * modules/unictype/property-numeric-tests (Files): Likewise.
4809 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4810 * modules/unictype/property-other-default-ignorable-code-point-tests
4812 * modules/unictype/property-other-grapheme-extend-tests (Files):
4814 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4815 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4816 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4817 * modules/unictype/property-other-math-tests (Files): Likewise.
4818 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4819 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4820 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4821 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4822 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4823 * modules/unictype/property-private-use-tests (Files): Likewise.
4824 * modules/unictype/property-punctuation-tests (Files): Likewise.
4825 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4826 * modules/unictype/property-radical-tests (Files): Likewise.
4827 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4828 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4829 * modules/unictype/property-space-tests (Files): Likewise.
4830 * modules/unictype/property-terminal-punctuation-tests (Files):
4832 * modules/unictype/property-test-tests (Files): Likewise.
4833 * modules/unictype/property-titlecase-tests (Files): Likewise.
4834 * modules/unictype/property-unassigned-code-value-tests (Files):
4836 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4837 * modules/unictype/property-uppercase-tests (Files): Likewise.
4838 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4839 * modules/unictype/property-white-space-tests (Files): Likewise.
4840 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4841 * modules/unictype/property-xid-start-tests (Files): Likewise.
4842 * modules/unictype/property-zero-width-tests (Files): Likewise.
4843 * modules/unictype/scripts-tests (Files): Likewise.
4844 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4845 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4846 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4847 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4848 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4849 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4850 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4851 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4852 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4853 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4854 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4855 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4856 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4857 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4858 * modules/uninorm/composition-tests (Files): Likewise.
4859 * modules/uninorm/decomposing-form-tests (Files): Likewise.
4860 * modules/uninorm/decomposition-tests (Files): Likewise.
4861 * modules/uninorm/filter-tests (Files): Likewise.
4862 * modules/uninorm/nfc-tests (Files): Likewise.
4863 * modules/uninorm/nfd-tests (Files): Likewise.
4864 * modules/uninorm/nfkc-tests (Files): Likewise.
4865 * modules/uninorm/nfkd-tests (Files): Likewise.
4866 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4867 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4868 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4869 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4870 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4871 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4872 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4873 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4874 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4875 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4876 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4877 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4878 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4879 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4880 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4881 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4882 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4883 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4884 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4885 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4886 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4887 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4888 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4889 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4890 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4891 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4892 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4893 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4894 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4895 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4896 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4897 * modules/uniwidth/u8-width-tests (Files): Likewise.
4898 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4899 * modules/uniwidth/u16-width-tests (Files): Likewise.
4900 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4901 * modules/uniwidth/u32-width-tests (Files): Likewise.
4902 * modules/uniwidth/width-tests (Files): Likewise.
4903 * modules/unlink-tests (Files): Likewise.
4904 * modules/unsetenv-tests (Files): Likewise.
4905 * modules/usleep-tests (Files): Likewise.
4906 * modules/utimens-tests (Files): Likewise.
4907 * modules/utimensat-tests (Files): Likewise.
4908 * modules/vasnprintf-posix-tests (Files): Likewise.
4909 * modules/vasnprintf-tests (Files): Likewise.
4910 * modules/vasprintf-posix-tests (Files): Likewise.
4911 * modules/vasprintf-tests (Files): Likewise.
4912 * modules/vdprintf-posix-tests (Files): Likewise.
4913 * modules/vfprintf-posix-tests (Files): Likewise.
4914 * modules/vprintf-posix-tests (Files): Likewise.
4915 * modules/vsnprintf-posix-tests (Files): Likewise.
4916 * modules/vsnprintf-tests (Files): Likewise.
4917 * modules/vsprintf-posix-tests (Files): Likewise.
4918 * modules/wcrtomb-tests (Files): Likewise.
4919 * modules/wcsnrtombs-tests (Files): Likewise.
4920 * modules/wcsrtombs-tests (Files): Likewise.
4921 * modules/wctype-tests (Files): Likewise.
4922 * modules/wcwidth-tests (Files): Likewise.
4923 * modules/xmemdup0-tests (Files): Likewise.
4924 * modules/xprintf-posix-tests (Files): Likewise.
4925 * modules/xvasprintf-tests (Files): Likewise.
4927 2009-12-24 Eric Blake <ebb9@byu.net>
4929 test-nanosleep: fix typo
4930 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4932 Reported by Bruno Haible.
4934 2009-12-24 Bruno Haible <bruno@clisp.org>
4936 Reduce namespace pollution on glibc systems.
4937 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4938 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4940 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4941 <getopt.h> on glibc systems.
4942 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4944 * lib/fcntl.c: Include <unistd.h> here instead.
4946 2009-12-24 Bruno Haible <bruno@clisp.org>
4948 * lib/stdlib.in.h (includes): Fix typo in today's commit.
4950 2009-12-24 Eric Blake <ebb9@byu.net>
4952 tests: add signature checks
4953 * tests/signature.h (SIGNATURE_CHECK): New file.
4954 * modules/atexit-tests (Files): Use it.
4955 * modules/btowc-tests (Files): Likewise.
4956 * modules/canonicalize-lgpl-tests (Files): Likewise.
4957 * modules/ceilf-tests (Files): Likewise.
4958 * modules/ceill-tests (Files): Likewise.
4959 * modules/chown-tests (Files): Likewise.
4960 * modules/dprintf-posix-tests (Files): Likewise.
4961 * modules/dup2-tests (Files): Likewise.
4962 * modules/dup3-tests (Files): Likewise.
4963 * modules/duplocale-tests (Files): Likewise.
4964 * modules/fchdir-tests (Files): Likewise.
4965 * modules/fcntl-tests (Files): Likewise.
4966 * modules/fdopendir-tests (Files): Likewise.
4967 * modules/fflush-tests (Files): Likewise.
4968 * modules/flock-tests (Files): Likewise.
4969 * modules/floorf-tests (Files): Likewise.
4970 * modules/floorl-tests (Files): Likewise.
4971 * modules/fnmatch-tests (Files): Likewise.
4972 * modules/fopen-tests (Files): Likewise.
4973 * modules/fprintf-posix-tests (Files): Likewise.
4974 * modules/freopen-tests (Files): Likewise.
4975 * modules/frexp-nolibm-tests (Files): Likewise.
4976 * modules/frexp-tests (Files): Likewise.
4977 * modules/frexpl-nolibm-tests (Files): Likewise.
4978 * modules/frexpl-tests (Files): Likewise.
4979 * modules/fseek-tests (Files): Likewise.
4980 * modules/fseeko-tests (Files): Likewise.
4981 * modules/fsync-tests (Files): Likewise.
4982 * modules/ftell-tests (Files): Likewise.
4983 * modules/ftello-tests (Files): Likewise.
4984 * modules/futimens-tests (Files): Likewise.
4985 * modules/getaddrinfo-tests (Files): Likewise.
4986 * modules/getcwd-tests (Files): Likewise.
4987 * modules/getdelim-tests (Files): Likewise.
4988 * modules/getdtablesize-tests (Files): Likewise.
4989 * modules/getgroups-tests (Files): Likewise.
4990 * modules/gethostname-tests (Files): Likewise.
4991 * modules/getline-tests (Files): Likewise.
4992 * modules/getopt-posix-tests (Files): Likewise.
4993 * modules/gettimeofday-tests (Files): Likewise.
4994 * modules/glob-tests (Files): Likewise.
4995 * modules/iconv-tests (Files): Likewise.
4996 * modules/inet_ntop-tests (Files): Likewise.
4997 * modules/inet_pton-tests (Files): Likewise.
4998 * modules/isblank-tests (Files): Likewise.
4999 * modules/lchown-tests (Files): Likewise.
5000 * modules/ldexpl-tests (Files): Likewise.
5001 * modules/link-tests (Files): Likewise.
5002 * modules/linkat-tests (Files): Likewise.
5003 * modules/lseek-tests (Files): Likewise.
5004 * modules/lstat-tests (Files): Likewise.
5005 * modules/mbrtowc-tests (Files): Likewise.
5006 * modules/mbsinit-tests (Files): Likewise.
5007 * modules/mbsnrtowcs-tests (Files): Likewise.
5008 * modules/mbsrtowcs-tests (Files): Likewise.
5009 * modules/memchr-tests (Files): Likewise.
5010 * modules/memcmp-tests (Files): Likewise.
5011 * modules/memmem-tests (Files): Likewise.
5012 * modules/memrchr-tests (Files): Likewise.
5013 * modules/mkdir-tests (Files): Likewise.
5014 * modules/mkfifo-tests (Files): Likewise.
5015 * modules/mkfifoat-tests (Files): Likewise.
5016 * modules/mknod-tests (Files): Likewise.
5017 * modules/nanosleep-tests (Files): Likewise.
5018 * modules/nl_langinfo-tests (Files): Likewise.
5019 * modules/obstack-printf-tests (Files): Likewise.
5020 * modules/open-tests (Files): Likewise.
5021 * modules/openat-tests (Files): Likewise.
5022 * modules/perror-tests (Files): Likewise.
5023 * modules/pipe2-tests (Files): Likewise.
5024 * modules/poll-tests (Files): Likewise.
5025 * modules/popen-tests (Files): Likewise.
5026 * modules/posix_spawn-tests (Files): Likewise.
5027 * modules/posix_spawnp-tests (Files): Likewise.
5028 * modules/pread-tests (Files): Likewise.
5029 * modules/printf-posix-tests (Files): Likewise.
5030 * modules/pty-tests (Files): Likewise.
5031 * modules/random_r-tests (Files): Likewise.
5032 * modules/rawmemchr-tests (Files): Likewise.
5033 * modules/readlink-tests (Files): Likewise.
5034 * modules/remove-tests (Files): Likewise.
5035 * modules/rename-tests (Files): Likewise.
5036 * modules/renameat-tests (Files): Likewise.
5037 * modules/rmdir-tests (Files): Likewise.
5038 * modules/round-tests (Files): Likewise.
5039 * modules/roundf-tests (Files): Likewise.
5040 * modules/roundl-tests (Files): Likewise.
5041 * modules/select-tests (Files): Likewise.
5042 * modules/setenv-tests (Files): Likewise.
5043 * modules/sigaction-tests (Files): Likewise.
5044 * modules/sleep-tests (Files): Likewise.
5045 * modules/snprintf-posix-tests (Files): Likewise.
5046 * modules/snprintf-tests (Files): Likewise.
5047 * modules/sprintf-posix-tests (Files): Likewise.
5048 * modules/stat-tests (Files): Likewise.
5049 * modules/strcasestr-tests (Files): Likewise.
5050 * modules/strchrnul-tests (Files): Likewise.
5051 * modules/strerror-tests (Files): Likewise.
5052 * modules/strsignal-tests (Files): Likewise.
5053 * modules/strstr-tests (Files): Likewise.
5054 * modules/strtod-tests (Files): Likewise.
5055 * modules/strverscmp-tests (Files): Likewise.
5056 * modules/symlink-tests (Files): Likewise.
5057 * modules/symlinkat-tests (Files): Likewise.
5058 * modules/times-tests (Files): Likewise.
5059 * modules/trunc-tests (Files): Likewise.
5060 * modules/truncf-tests (Files): Likewise.
5061 * modules/truncl-tests (Files): Likewise.
5062 * modules/tsearch-tests (Files): Likewise.
5063 * modules/uname-tests (Files): Likewise.
5064 * modules/unlink-tests (Files): Likewise.
5065 * modules/unsetenv-tests (Files): Likewise.
5066 * modules/usleep-tests (Files): Likewise.
5067 * modules/utimensat-tests (Files): Likewise.
5068 * modules/vasprintf-tests (Files): Likewise.
5069 * modules/vdprintf-posix-tests (Files): Likewise.
5070 * modules/vfprintf-posix-tests (Files): Likewise.
5071 * modules/vprintf-posix-tests (Files): Likewise.
5072 * modules/vsnprintf-posix-tests (Files): Likewise.
5073 * modules/vsnprintf-tests (Files): Likewise.
5074 * modules/vsprintf-posix-tests (Files): Likewise.
5075 * modules/wcrtomb-tests (Files): Likewise.
5076 * modules/wcsnrtombs-tests (Files): Likewise.
5077 * modules/wcsrtombs-tests (Files): Likewise.
5078 * modules/wcwidth-tests (Files): Likewise.
5079 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5080 * tests/test-isinf.c (isinf): Likewise.
5081 * tests/test-isnan.c (isnan): Likewise.
5082 * tests/test-signbit.c (signbit): Likewise.
5083 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5084 declaration, either as macro or with correct signature.
5085 (select): Ensure function under test is declared with correct
5086 signature in correct header.
5087 * tests/test-atexit.c (atexit): Likewise.
5088 * tests/test-btowc.c (btowc): Likewise.
5089 * tests/test-canonicalize-lgpl.c (realpath)
5090 (canonicalize_file_name): Likewise.
5091 * tests/test-ceilf1.c (ceilf): Likewise.
5092 * tests/test-ceill.c (ceill): Likewise.
5093 * tests/test-chown.c (chown): Likewise.
5094 * tests/test-dprintf-posix.c (dprintf): Likewise.
5095 * tests/test-dup2.c (dup2): Likewise.
5096 * tests/test-dup3.c (dup3): Likewise.
5097 * tests/test-duplocale.c (duplocale): Likewise.
5098 * tests/test-fchdir.c (fchdir): Likewise.
5099 * tests/test-fchownat.c (fchownat): Likewise.
5100 * tests/test-fcntl.c (fcntl): Likewise.
5101 * tests/test-fdopendir.c (fdopendir): Likewise.
5102 * tests/test-fflush.c (fflush): Likewise.
5103 * tests/test-flock.c (flock): Likewise.
5104 * tests/test-floorf1.c (floorf): Likewise.
5105 * tests/test-floorl.c (floorl): Likewise.
5106 * tests/test-fnmatch.c (fnmatch): Likewise.
5107 * tests/test-fopen.c (fopen): Likewise.
5108 * tests/test-fprintf-posix.c (fprintf): Likewise.
5109 * tests/test-freopen.c (freopen): Likewise.
5110 * tests/test-frexp.c (frexp): Likewise.
5111 * tests/test-frexpl.c (frexpl): Likewise.
5112 * tests/test-fseek.c (fseek): Likewise.
5113 * tests/test-fseeko.c (fseeko): Likewise.
5114 * tests/test-fstatat.c (fstatat): Likewise.
5115 * tests/test-fsync.c (fsync): Likewise.
5116 * tests/test-ftell.c (ftell): Likewise.
5117 * tests/test-ftello.c (ftello): Likewise.
5118 * tests/test-futimens.c (futimens): Likewise.
5119 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5120 (gai_strerror): Likewise.
5121 * tests/test-getcwd.c (getcwd): Likewise.
5122 * tests/test-getdelim.c (getdelim): Likewise.
5123 * tests/test-getdtablesize.c (getdtablesize): Likewise.
5124 * tests/test-getgroups.c (getgroups): Likewise.
5125 * tests/test-gethostname.c (gethostname): Likewise.
5126 * tests/test-getline.c (getline): Likewise.
5127 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5129 * tests/test-gettimeofday.c (gettimeofday): Likewise.
5130 * tests/test-glob.c (glob, globfree): Likewise.
5131 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5132 * tests/test-inet_ntop.c (inet_ntop): Likewise.
5133 * tests/test-inet_pton.c (inet_pton): Likewise.
5134 * tests/test-isblank.c (isblank): Likewise.
5135 * tests/test-lchown.c (lchown): Likewise.
5136 * tests/test-ldexpl.c (ldexpl): Likewise.
5137 * tests/test-link.c (link): Likewise.
5138 * tests/test-linkat.c (linkat): Likewise.
5139 * tests/test-lseek.c (lseek): Likewise.
5140 * tests/test-lstat.c (lstat): Likewise.
5141 * tests/test-mbrtowc.c (mbrtowc): Likewise.
5142 * tests/test-mbsinit.c (mbsinit): Likewise.
5143 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5144 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5145 * tests/test-memchr.c (memchr): Likewise.
5146 * tests/test-memcmp.c (memcmp): Likewise.
5147 * tests/test-memmem.c (memmem): Likewise.
5148 * tests/test-memrchr.c (memrchr): Likewise.
5149 * tests/test-mkdir.c (mkdir): Likewise.
5150 * tests/test-mkdirat.c (mkdirat): Likewise.
5151 * tests/test-mkfifo.c (mkfifo): Likewise.
5152 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5153 * tests/test-mknod.c (mknod): Likewise.
5154 * tests/test-nanosleep.c (nanosleep): Likewise.
5155 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5156 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5158 * tests/test-open.c (open): Likewise.
5159 * tests/test-openat.c (openat): Likewise.
5160 * tests/test-perror.c (perror): Likewise.
5161 * tests/test-pipe2.c (pipe2): Likewise.
5162 * tests/test-poll.c (poll): Likewise.
5163 * tests/test-popen.c (popen, pclose): Likewise.
5164 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5165 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5166 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5167 (posix_spawn_file_actions_destroy)
5168 (posix_spawn_file_actions_addclose)
5169 (posix_spawn_file_actions_addopen)
5170 (posix_spawn_file_actions_adddup2): Likewise.
5171 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5172 * tests/test-pread.c (pread): Likewise.
5173 * tests/test-printf-posix.c (printf): Likewise.
5174 * tests/test-pty.c (openpty, forkpty): Likewise.
5175 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5176 (random_r): Likewise.
5177 * tests/test-rawmemchr.c (rawmemchr): Likewise.
5178 * tests/test-readlink.c (readlink): Likewise.
5179 * tests/test-remove.c (remove): Likewise.
5180 * tests/test-rename.c (rename): Likewise.
5181 * tests/test-renameat.c (renameat): Likewise.
5182 * tests/test-rmdir.c (rmdir): Likewise.
5183 * tests/test-round1.c (round): Likewise.
5184 * tests/test-roundf1.c (roundf): Likewise.
5185 * tests/test-roundl.c (roundl): Likewise.
5186 * tests/test-setenv.c (setenv): Likewise.
5187 * tests/test-sigaction.c (sigaction): Likewise.
5188 * tests/test-sleep.c (sleep): Likewise.
5189 * tests/test-snprintf.c (snprintf): Likewise.
5190 * tests/test-sprintf-posix.c (sprintf): Likewise.
5191 * tests/test-stat.c (stat): Likewise.
5192 * tests/test-stpncpy.c (stpncpy): Likewise.
5193 * tests/test-strcasestr.c (strcasestr): Likewise.
5194 * tests/test-strchrnul.c (strchrnul): Likewise.
5195 * tests/test-strerror.c (strerror): Likewise.
5196 * tests/test-strsignal.c (strsignal): Likewise.
5197 * tests/test-strstr.c (strstr): Likewise.
5198 * tests/test-strtod.c (strtod): Likewise.
5199 * tests/test-strverscmp.c (strverscmp): Likewise.
5200 * tests/test-symlink.c (symlink): Likewise.
5201 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5202 * tests/test-times.c (times): Likewise.
5203 * tests/test-trunc1.c (trunc): Likewise.
5204 * tests/test-truncf1.c (truncf): Likewise.
5205 * tests/test-truncl.c (truncl): Likewise.
5206 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5208 * tests/test-uname.c (uname): Likewise.
5209 * tests/test-unlink.c (unlink): Likewise.
5210 * tests/test-unlinkat.c (unlinkat): Likewise.
5211 * tests/test-unsetenv.c (unsetenv): Likewise.
5212 * tests/test-usleep.c (usleep): Likewise.
5213 * tests/test-utimensat.c (utimensat): Likewise.
5214 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5215 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5216 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5217 * tests/test-vprintf-posix.c (vprintf): Likewise.
5218 * tests/test-vsnprintf.c (vsnprintf): Likewise.
5219 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5220 * tests/test-wcrtomb.c (wcrtomb): Likewise.
5221 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5222 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5223 * tests/test-wcwidth.c (wcwidth): Likewise.
5225 build: pull in conditional headers during GNULIB_POSIXCHECK
5226 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5227 definitions from any conditionally-included headers.
5228 * lib/stdlib.in.h (includes): Likewise.
5229 * lib/unistd.in.h (includes): Likewise.
5231 2009-12-24 Bruno Haible <bruno@clisp.org>
5233 * tests/test-argv-iter.c: Include header file being tested immediately
5235 * tests/test-base64.c: Likewise.
5236 * tests/test-flock.c: Likewise.
5237 * tests/test-fsync.c: Likewise.
5238 * tests/test-getdate.c: Likewise.
5239 * tests/test-getndelim2.c: Likewise.
5240 * tests/test-isfinite.c: Likewise.
5241 * tests/test-isinf.c: Likewise.
5242 * tests/test-strerror.c: Likewise.
5243 * tests/test-strsignal.c: Likewise.
5245 2009-12-23 Eric Blake <ebb9@byu.net>
5247 unistd: work around cygwin bug
5248 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5249 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5250 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5252 2009-12-23 Bruno Haible <bruno@clisp.org>
5254 localename: More tests.
5255 * tests/test-localename.c (SIZEOF): New macro.
5256 (categories): New variable.
5257 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5258 test_locale_name_default): Add test w.r.t. thread locale.
5259 (test_locale_name_thread): New function.
5262 localename: Make aware of thread locale.
5263 * lib/localename.h (gl_locale_name_thread): New declaration.
5264 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5265 behaviour with respect to thread locale.
5266 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5267 <langinfo.h>, glthread/lock.h.
5268 (SIZE_BITS): New macro.
5269 (string_hash): New function.
5270 (struct hash_node): New type.
5271 (HASH_TABLE_SIZE): New macro.
5272 (struniq_hash_table, struniq_lock): New variables.
5273 (struniq): New function.
5274 (gl_locale_name_thread): New function.
5275 (gl_locale_name): Invoke it.
5276 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5277 * modules/localename (Depends-on): Add lock.
5278 Reported by Mike Gran <spk121@yahoo.com>.
5280 2009-12-23 Eric Blake <ebb9@byu.net>
5283 * modules/va-args: New file.
5284 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5285 * MODULES.html.sh (Core language properties): Mention it.
5287 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5288 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5289 named alias for __attribute__((__unused__)).
5290 * lib/chown.c: Update client.
5291 * lib/fchmodat.c: Likewise.
5292 * lib/fts.c: Likewise.
5293 * lib/getdate.y: Likewise.
5294 * lib/getgroups.c: Likewise.
5295 * lib/getopt.c: Likewise.
5296 * lib/getugroups.c: Likewise.
5297 * lib/mkdir.c: Likewise.
5298 * lib/mkfifo.c: Likewise.
5299 * lib/mkfifoat.c: Likewise.
5300 * lib/mknod.c: Likewise.
5301 * lib/mknodat.c: Likewise.
5302 * lib/readlink.c: Likewise.
5303 * lib/se-context.in.h: Likewise.
5304 * lib/se-selinux.in.h: Likewise.
5305 * lib/sockets.c: Likewise.
5306 * lib/symlink.c: Likewise.
5307 * lib/symlinkat.c: Likewise.
5308 * lib/unicodeio.c: Likewise.
5309 * lib/unistr.h: Likewise.
5310 * tests/test-areadlink.c: Likewise.
5311 * tests/test-areadlinkat.c: Likewise.
5312 * tests/test-filenamecat.c: Likewise.
5313 * tests/test-fseeko.c: Likewise.
5314 * tests/test-ftello.c: Likewise.
5315 * tests/test-getdate.c: Likewise.
5316 * tests/test-getgroups.c: Likewise.
5317 * tests/test-gethostname.c: Likewise.
5318 * tests/test-quotearg.c: Likewise.
5319 * tests/test-version-etc.c: Likewise.
5320 * tests/test-xalloc-die.c: Likewise.
5321 * tests/test-xfprintf-posix.c: Likewise.
5322 * tests/test-xprintf-posix.c: Likewise.
5323 * tests/test-xvasprintf.c: Likewise.
5325 tests: avoid compiler warnings
5326 * tests/test-fcntl.c (main): Delete unused parameters.
5327 * tests/test-freopen-safer.c (main): Likewise.
5328 * tests/test-xalloc-die.c (main): Mark unused parameters.
5329 * tests/test-fseeko.c (main): Likewise.
5330 * tests/test-ftello.c (main): Likewise.
5331 * tests/test-nanosleep.c (main): Avoid declaration warning.
5332 * tests/test-sleep.c (main): Likewise.
5333 * tests/test-unsetenv.c (main): Silence warning about string
5335 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5337 2009-12-23 Bruno Haible <bruno@clisp.org>
5339 * tests/test-localename.c (test_locale_name): New function, extracted
5340 from main. Also test mixed situations.
5341 (test_locale_name_posix, test_locale_name_environ,
5342 test_locale_name_default): New functions.
5343 (main): Invoke them all.
5344 * modules/localename-tests (configure.ac): Test for newlocale.
5346 2009-12-23 Bruno Haible <bruno@clisp.org>
5348 unistd: Ensure getcwd gets declared before being overridden.
5349 * lib/unistd.in.h: Conditionally include <io.h>.
5351 2009-12-22 Bruno Haible <bruno@clisp.org>
5353 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5354 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5355 (gl_WCHAR_H): Invoke it.
5356 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5357 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5358 Reported by Karl Berry <karl@freefriends.org>.
5360 2009-12-22 Eric Blake <ebb9@byu.net>
5362 math, unistd: avoid redundant includes
5363 * lib/math.in.h (isnan): No need to re-include <math.h>.
5364 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5366 getsubopt: work around cygwin bug
5367 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5368 avoid conflicting with system getsubopt.
5369 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5372 getopt: synchronize from glibc
5373 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5374 parameter order. Adjust all callers.
5375 (_getopt_internal_r, main): Adjust quoting in error messages.
5376 Drop considerations for outdated POSIX 1003.2 error message.
5377 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5379 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5381 test-getopt: test stderr behavior
5382 * modules/getopt-posix-tests (Depends-on): Add dup2.
5383 * tests/test-getopt.c (ASSERT): Avoid stderr.
5384 (main): Move stderr to a temporary file.
5385 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5386 Instead, add parameter to inform caller if output occurred.
5387 (test_getopt): Adjust all existing tests to expect silence, and
5388 add new tests of leading ":".
5389 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5390 glibc shortcomings with leading "-:" or "+:" in optstring.
5391 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5393 * doc/posix-functions/getopt.texi (getopt): Likewise.
5395 test-getopt: enhance test
5396 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5398 * tests/test-getopt.c (OPTIND_MIN): Move...
5399 * tests/test-getopt.h (OPTIND_MIN): ...here.
5400 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5401 Require that optind=0 works, since modern BSD supports it in
5402 addition to optreset, and since coreutils expects it.
5403 (test_getopt_long_only): New test.
5404 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5405 glibc shortcomings with 'W;', and enforcement of optind=0.
5406 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5409 2009-12-21 Bruno Haible <bruno@clisp.org>
5411 localename: Improvements for MacOS X and Cygwin.
5412 * lib/localename.h (gl_locale_name_environ): New declaration.
5413 * lib/localename.c (gl_locale_name_environ): New function, extracted from
5414 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5415 (gl_locale_name_posix): Invoke it.
5416 (gl_locale_name_default): Add comments. Use Windows native API also on
5419 2009-12-21 Bruno Haible <bruno@clisp.org>
5421 Update list of Win32 locale ids.
5422 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5423 (LANG_SAMI): Renamed from LANG_SAAMI.
5424 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5425 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5426 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5427 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5428 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5429 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5430 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5431 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5432 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5433 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5434 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5435 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5436 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5437 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5438 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5439 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5440 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5441 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5442 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5443 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5444 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5445 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5446 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5447 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5448 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5449 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5450 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5451 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5452 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5453 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5454 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5455 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5456 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5457 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5458 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5459 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5460 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5461 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5462 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5463 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5464 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5465 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5466 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5467 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5468 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5469 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5470 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5471 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5472 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5473 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5474 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5475 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5476 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5477 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5478 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5479 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5480 Add more languages and countries for Sami, Sorbian. Add more countries
5481 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5482 for Pashto. Change country for Syriac, Tswana.
5484 2009-12-21 Eric Blake <ebb9@byu.net>
5486 test-utimens: avoid spurious failure
5487 * tests/test-chown.h (nap): Factor...
5488 * tests/nap.h: ...into new file.
5489 * tests/test-lchown.h (nap): Avoid duplication.
5490 * tests/test-utimens-common.h (nap): Use shared implementation,
5491 necessary on file systems with 1-second resolution.
5492 * modules/chown-tests (Files): Include new file.
5493 * modules/fdutimensat-tests (Files): Likewise.
5494 * modules/futimens-tests (Files): Likewise.
5495 * modules/lchown-tests (Files): Likewise.
5496 * modules/openat-tests (Files): Likewise.
5497 * modules/utimens-tests (Files): Likewise.
5498 * modules/utimensat-tests (Files): Likewise.
5500 2009-12-19 Eric Blake <ebb9@byu.net>
5502 futimens, utimensat: work around Linux bug
5503 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5504 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5505 * lib/utimensat.c (rpl_utimensat): Work around it.
5506 * lib/futimens.c (rpl_futimens): Adjust comment.
5508 utimens: work around Linux ctime bug
5509 * lib/utimens.c (detect_ctime_bug): New helper function.
5510 (update_timespec): Differentiate between workaround needed for
5511 this bug vs. what is needed for systems that lack utimensat.
5512 (fdutimens, lutimens): Work around bug.
5514 utimens: check for ctime update
5515 * tests/test-utimens-common.h (check_ctime): Define.
5516 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5517 * tests/test-futimens.h (test_futimens): Likewise.
5518 * tests/test-lutimens.h (test_lutimens): Likewise.
5519 * doc/posix-functions/futimens.texi (futimens): Document the bug.
5520 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5522 2009-12-19 Bruno Haible <bruno@clisp.org>
5524 dprintf-posix: Check against memory leak fixed on 2009-12-15.
5525 * tests/test-dprintf-posix2.sh: New file.
5526 * tests/test-dprintf-posix2.c: New file.
5527 * modules/dprintf-posix-tests (Files): Add them.
5528 (configure.ac): Check for getrlimit and setrlimit.
5529 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5531 2009-12-19 Bruno Haible <bruno@clisp.org>
5533 fprintf-posix: Check against memory leak fixed on 2009-12-15.
5534 * tests/test-fprintf-posix3.sh: New file.
5535 * tests/test-fprintf-posix3.c: New file.
5536 * modules/fprintf-posix-tests (Files): Add them.
5537 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5539 2009-12-19 Eric Blake <ebb9@byu.net>
5541 dirfd: fix prototype
5542 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5543 * lib/dirfd.c (dirfd): Likewise.
5545 canonicalize: reduce memory usage
5546 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5548 Reported by Solar Designer <solar@openwall.com>.
5550 2009-12-19 Bruno Haible <bruno@clisp.org>
5552 New module attribute 'Applicability'.
5553 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5554 * gnulib-tool: New option --extract-applicability.
5555 (func_usage): Document it.
5556 (sed_extract_prog): Recognize it.
5557 (func_get_applicability): New function.
5558 (func_import): Generalize handling of 'link-warning' module.
5559 * modules/link-warning (Applicability): New section.
5560 * modules/arg-nonnull (Applicability): New section.
5561 Repoted by Simon Josefsson <simon@josefsson.org>.
5563 2009-12-19 Bruno Haible <bruno@clisp.org>
5566 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5567 * lib/fseeko.c (rpl_fseeko): Likewise.
5569 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
5571 * lib/gl_list.h: Fix typo in comment.
5573 2009-12-16 Eric Blake <ebb9@byu.net>
5575 fcntl: use to simplify other modules
5576 * modules/cloexec (Depends-on): Add fcntl.
5577 * modules/fchdir (Depends-on): Likewise.
5578 * modules/fd-safer-flag (Depends-on): Likewise.
5579 * modules/unistd-safer (Depends-on): Likewise.
5580 * modules/dup3 (configure.ac): Set module indicator.
5581 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5583 * lib/fchdir.c (_gl_register_dup): Fix comment.
5584 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5585 * lib/dup-safer.c (dup_safer): Likewise.
5586 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5587 * lib/dup3.c (dup3): Likewise.
5588 * tests/test-fchdir.c (main): Enhance test.
5589 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
5591 fcntl: port portions of fcntl to mingw
5592 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5593 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5594 replacement for mingw.
5595 * modules/fcntl (Description): Update.
5596 (Depends-on): Add dup2.
5597 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5598 * modules/fcntl-h (Makefile.am): Substitute it.
5599 * lib/fcntl.in.h (fcntl): Update declaration.
5600 (F_DUPFD, F_GETFD): New macros, when needed.
5601 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5602 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5603 * tests/test-fcntl.c (check_flags, main): Enhance test for items
5606 fcntl: work around cygwin bug in F_DUPFD
5607 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5608 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
5609 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5610 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5611 * doc/posix-functions/fcntl.texi (fcntl): Document it.
5613 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5614 * modules/fcntl (Files): List new files.
5615 (configure.ac): Run a test.
5616 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5617 * lib/fcntl.c (rpl_fcntl): Likewise.
5618 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5619 (gl_FCNTL_H): Always replace fcntl.h.
5620 * modules/fcntl-h (Makefile.am): Substitute witnesses.
5621 * lib/fcntl.in.h (fcntl): Declare replacement.
5622 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5623 needed, plus a witness.
5624 * doc/posix-functions/fcntl.texi (fcntl): Document this.
5625 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5626 * tests/test-fcntl.c: New file.
5627 * modules/fcntl-tests: Likewise.
5629 binary-io: avoid potential compilation warning
5630 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5633 fflush: avoid compilation error on NetBSD
5634 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5635 between off_t and fpos_t, since the latter is sometimes a struct.
5636 * lib/fseeko.c (rpl_fseeko): Likewise.
5637 Reported by Alexander Nasonov <alnsn@yandex.ru>.
5639 2009-12-15 Eric Blake <ebb9@byu.net>
5641 fcntl-h, stdio, sys_ioctl: fix declarations
5642 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5643 function must not take arguments.
5644 * lib/sys_ioctl.in.h (ioctl): Likewise.
5645 * lib/fcntl.in.h (openat): Likewise. Declare extern.
5646 (open): Add a link warning.
5648 2009-12-15 Jim Meyering <meyering@redhat.com>
5650 areadlink, areadlink-with-size: relax license to LGPLv2+
5651 * modules/areadlink (License): Relax to LGPLv2+.
5652 * modules/areadlink-with-size (License): Likewise.
5654 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
5655 Bruno Haible <bruno@clisp.org>
5657 *printf: Fix memory leak.
5658 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5659 * lib/vfprintf.c (vfprintf): Likewise.
5660 * lib/dprintf.c (dprintf): Likewise.
5661 * lib/vdprintf.c (vdprintf): Likewise.
5663 2009-12-14 Eric Blake <ebb9@byu.net>
5665 accept4: adjust module dependencies
5666 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5668 utimens: one more try at avoiding compiler warning
5669 * lib/utimens.c (lutimens): Lower scope of result.
5671 2009-12-13 Bruno Haible <bruno@clisp.org>
5673 Move the malloc checking from module 'list' to new module 'xlist'.
5674 * modules/xlist: New file.
5675 * lib/gl_xlist.h: New file.
5676 * lib/gl_xlist.c: New file.
5677 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5678 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5679 gl_list_add_last, gl_list_add_before, gl_list_add_after,
5680 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5681 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5682 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5683 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5684 gl_sortedlist_nx_add): New declarations.
5685 (struct gl_list_implementation): Rename and change methods accordingly.
5686 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5687 (gl_list_nx_create): Renamed from gl_list_create.
5688 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5689 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5690 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5691 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5692 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5693 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5694 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5695 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5696 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5697 gl_list_create_empty.
5698 (gl_list_nx_create): Renamed from gl_list_create.
5699 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5700 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5701 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5702 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5703 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5704 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5705 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5706 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5707 * lib/gl_array_list.c: Don't include xalloc.h.
5708 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5709 NULL upon out-of-memory.
5710 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5712 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5713 Change return type to 'int'.
5714 (gl_array_nx_set_at): Renamed from gl_array_set_at.
5715 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5716 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5718 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5720 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5722 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5724 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5726 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5728 (gl_array_list_implementation): Update.
5729 * lib/gl_carray_list.c: Don't include xalloc.h.
5730 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5731 Return NULL upon out-of-memory.
5732 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5734 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5735 Change return type to 'int'.
5736 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5737 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5738 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5740 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5742 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5744 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5745 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5746 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5748 (gl_carray_list_implementation): Update.
5749 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5750 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5751 gl_linked_create_empty. Return NULL upon out-of-memory.
5752 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5754 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5755 Change return type to 'int'. Return -1 upon out-of-memory.
5756 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5758 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5760 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5762 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5763 NULL upon out-of-memory.
5764 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5766 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5768 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5770 * lib/gl_linked_list.c: Don't include xalloc.h.
5771 (gl_linked_list_implementation): Update.
5772 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5773 (add_to_bucket): Change return type to 'int'.
5774 (gl_linkedhash_list_implementation): Update.
5775 * lib/gl_anytree_list1.h (free_subtree): New function.
5776 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5777 gl_tree_create_empty. Return NULL upon out-of-memory.
5778 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5779 Change return type to 'int'. Return -1 upon out-of-memory.
5780 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5782 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5783 (gl_tree_remove_node): New function, moved here from
5784 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5785 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5787 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5788 malloc, not xmalloc. Return NULL upon out-of-memory.
5789 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5791 (gl_tree_remove_node_from_tree): New function, extracted from
5792 gl_tree_remove_node.
5793 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5795 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5797 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5799 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5801 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5802 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5803 not xmalloc. Return NULL upon out-of-memory.
5804 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5806 (gl_tree_remove_node_from_tree): New function, extracted from
5807 gl_tree_remove_node.
5808 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5810 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5812 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5814 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5816 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5817 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5818 gl_anytree_list1.h before gl_anyavltree_list2.h.
5819 (gl_avltree_list_implementation): Update.
5820 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5821 gl_anytree_list1.h before gl_anyavltree_list2.h.
5822 (gl_rbtree_list_implementation): Update.
5823 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5824 Change return type to 'int'. Return -1 upon out-of-memory. Use
5826 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5827 (gl_avltreehash_list_implementation): Update.
5828 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5829 (gl_rbtreehash_list_implementation): Update.
5830 * modules/array-list (Depends-on): Remove xalloc.
5831 * modules/carray-list (Depends-on): Likewise.
5832 * modules/linked-list (Depends-on): Likewise.
5833 * modules/linkedhash-list (Depends-on): Likewise.
5834 * modules/avltree-list (Depends-on): Likewise.
5835 * modules/rbtree-list (Depends-on): Likewise.
5836 * modules/avltreehash-list (Depends-on): Likewise.
5837 * modules/rbtreehash-list (Depends-on): Likewise.
5839 * modules/xsublist: New file.
5840 * lib/gl_xsublist.h: New file.
5841 * lib/gl_xsublist.c: New file.
5842 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5843 (gl_sublist_nx_create): New declaration.
5844 * lib/gl_sublist.c: Don't include xalloc.h.
5845 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5846 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5847 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5848 Change return type to 'int'. Return -1 upon out-of-memory.
5849 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5851 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5852 NULL upon out-of-memory.
5853 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5855 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5856 NULL upon out-of-memory.
5857 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5858 NULL upon out-of-memory.
5859 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5861 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5862 (gl_sublist_list_implementation): Update.
5863 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5865 * modules/sublist (Depends-on): Remove xalloc.
5867 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5868 * tests/test-carray_list.c: Likewise.
5869 * tests/test-linked_list.c: Likewise.
5870 * tests/test-linkedhash_list.c: Likewise.
5871 * tests/test-avltree_list.c: Likewise.
5872 * tests/test-rbtree_list.c: Likewise.
5873 * tests/test-avltreehash_list.c: Likewise.
5874 * tests/test-rbtreehash_list.c: Likewise.
5875 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5876 * modules/carray-list-tests (Makefile.am): Likewise.
5877 * modules/linked-list-tests (Makefile.am): Likewise.
5878 * modules/linkedhash-list-tests (Makefile.am): Likewise.
5879 * modules/avltree-list-tests (Makefile.am): Likewise.
5880 * modules/rbtree-list-tests (Makefile.am): Likewise.
5881 * modules/avltreehash-list-tests (Makefile.am): Likewise.
5882 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5884 * NEWS: Mention the changes.
5886 * lib/clean-temp.c: Include gl_xlist.h.
5887 * modules/clean-temp (Depends-on): Add xlist.
5889 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5890 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5892 * tests/test-array_oset.c: Include gl_xlist.h.
5893 * modules/array-oset-tests (Depends-on): Add xlist.
5895 Reported by José E. Marchesi <jemarch@gnu.org>.
5897 2009-12-13 Bruno Haible <bruno@clisp.org>
5899 Move the malloc checking from module 'oset' to new module 'xoset'.
5900 * modules/xoset: New file.
5901 * lib/gl_xoset.h: New file.
5902 * lib/gl_xoset.c: New file.
5903 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5905 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5906 (struct gl_oset_implementation): Rename and change methods accordingly.
5907 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5908 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5909 'int'. Mark as __warn_unused_result__.
5910 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5911 gl_oset_create_empty.
5912 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5914 * lib/gl_array_oset.c: Don't include xalloc.h.
5915 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5916 malloc, not xmalloc.
5917 (grow): Change return type to 'int'. Don't call xalloc_die.
5918 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5920 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5922 (gl_array_oset_implementation): Update.
5923 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5924 gl_tree_create_empty.
5925 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5927 * lib/gl_avltree_oset.c: Don't include xalloc.h.
5928 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5930 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5932 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5934 (gl_avltree_oset_implementation): Update.
5935 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5936 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5938 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5940 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5942 (gl_rbtree_oset_implementation): Update.
5943 * modules/array-oset (Depends-on): Remove xalloc.
5944 * modules/avltree-oset (Depends-on): Likewise.
5945 * modules/rbtree-oset (Depends-on): Likewise.
5946 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5947 * tests/test-avltree_oset.c: Likewise.
5948 * tests/test-rbtree_oset.c: Likewise.
5949 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5950 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5951 * modules/rbtree-oset-tests (Makefile.am): Likewise.
5952 * NEWS: Mention the change.
5954 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
5956 maint.mk: allow a project to override release-prep commands
5957 * top/maint.mk (alpha, beta, stable): Move release-preparatory
5958 commands into a new rule.
5959 (release-prep): New rule.
5960 (release-prep-hook): New overridable variable.
5962 2009-12-13 Bruno Haible <bruno@clisp.org>
5964 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5966 2009-12-13 Jim Meyering <meyering@redhat.com>
5968 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5969 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5971 2009-12-12 Bruno Haible <bruno@clisp.org>
5974 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5976 2009-12-12 Karl Berry <karl@gnu.org>
5978 * config/srclist.txt (strtoll.c): tab changes, no more sync.
5980 2009-12-12 Bruno Haible <bruno@clisp.org>
5982 * m4/po.m4: Undo incorrect untabification.
5984 2009-12-12 Bruno Haible <bruno@clisp.org>
5986 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5987 * modules/c-strtod (Depends-on): Add locale.
5988 * modules/c-strtold (Depends-on): Likewise.
5990 2009-12-12 Bruno Haible <bruno@clisp.org>
5992 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5994 2009-12-11 Eric Blake <ebb9@byu.net>
5996 setenv: relax requirement in light of POSIX ruling
5997 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5999 * tests/test-setenv.c (main): Relax test.
6000 * tests/test-unsetenv.c (main): Likewise.
6001 * doc/posix-functions/setenv.texi (setenv): Document this.
6002 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6004 2009-12-11 Bruno Haible <bruno@clisp.org>
6006 New module 'fd-safer-flag'.
6007 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6008 * lib/dup-safer.c (dup_safer_flag): Remove function.
6009 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6010 * lib/fd-safer.c (fd_safer_flag): Remove function.
6011 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6012 * modules/cloexec (configure.ac): Drop indicator macro.
6013 * modules/fd-safer-flag: New file.
6014 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6015 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6016 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6018 2009-12-11 Bruno Haible <bruno@clisp.org>
6020 Tests for module 'nl_langinfo'.
6021 * modules/nl_langinfo-tests: New file.
6022 * tests/test-nl_langinfo.sh: New file.
6023 * tests/test-nl_langinfo.c: New file.
6025 New module 'nl_langinfo'.
6026 * lib/nl_langinfo.c: New file.
6027 * m4/nl_langinfo.m4: New file.
6028 * modules/nl_langinfo: New file.
6029 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6031 2009-12-11 Bruno Haible <bruno@clisp.org>
6033 Tests for module 'langinfo'.
6034 * modules/langinfo-tests: New file.
6035 * tests/test-langinfo.c: New file.
6037 New module 'langinfo'.
6038 * lib/langinfo.in.h: New file.
6039 * m4/langinfo_h.m4: New file.
6040 * modules/langinfo: New file.
6041 * doc/posix-headers/langinfo.texi: Mention the new module.
6043 2009-12-11 Bruno Haible <bruno@clisp.org>
6045 * lib/config.charset: Untabify.
6047 2009-12-11 Bruno Haible <bruno@clisp.org>
6049 * modules/unistd-safer (configure.ac): Drop indicator macro.
6051 2009-12-11 Bruno Haible <bruno@clisp.org>
6053 Move pipe2-safer code to its own file.
6054 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6055 * lib/pipe-safer.c (pipe2_safer): Remove function.
6056 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6057 (Makefile.am): Add it to lib_SOURCES.
6059 2009-12-10 Bruno Haible <bruno@clisp.org>
6061 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6063 2009-12-10 Bruno Haible <bruno@clisp.org>
6065 Declare which arguments expect non-NULL values, for GCC and clang.
6066 * build-aux/arg-nonnull.h: New file.
6067 * modules/arg-nonnull: New file.
6068 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6069 (inet_ntop, inet_pton): Use it.
6070 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6071 (closedir, dirfd, opendir, scandir, alphasort): Use it.
6072 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6073 (open, openat): Use it.
6074 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6076 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6077 (getopt, getopt_long, getopt_long_only): Use it.
6078 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6079 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6081 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6082 (iconv_open): Use it.
6083 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6084 (strtoimax, strtoumax): Use it.
6085 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6086 (duplocale): Use it.
6087 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6088 (frexp, frexpl): Use it.
6089 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6090 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6091 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6092 (tsearch, tfind, tdelete, twalk): Use it.
6093 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6094 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6095 sigpending): Use it.
6096 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6097 (posix_spawn, posix_spawnp, posix_spawnattr_init,
6098 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6099 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6100 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6101 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6102 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6103 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6104 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6105 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6106 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6108 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6109 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6110 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6111 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6112 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6113 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6114 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6115 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6116 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6117 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6118 strtoull, unsetenv): Use it.
6119 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6120 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6121 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6122 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6123 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6124 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6125 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6126 (strcasecmp, strncasecmp): Use it.
6127 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6128 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6129 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6130 rpl_setsockopt): Use it.
6131 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6132 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6133 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6134 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6135 (gettimeofday): Use it.
6136 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6138 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6140 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6141 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6142 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6143 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6144 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6145 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6146 unlinkat, write): Use it.
6147 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6148 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6149 * lib/argv-iter.h: Include arg-nonnull.h.
6150 (_ATTRIBUTE_NONNULL_): Remove macro.
6151 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6152 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6153 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6155 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6156 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6157 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6158 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6159 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6160 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6161 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6162 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6163 * modules/arpa_inet (Depends-on): Add arg-nonnull.
6164 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6165 * modules/dirent (Depends-on): Add arg-nonnull.
6166 (Makefile.am): Insert arg-nonnull.h into dirent.h.
6167 * modules/fcntl-h (Depends-on): Add arg-nonnull.
6168 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6169 * modules/fnmatch (Depends-on): Add arg-nonnull.
6170 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6171 * modules/getopt-posix (Depends-on): Add arg-nonnull.
6172 (Makefile.am): Insert arg-nonnull.h into getopt.h.
6173 * modules/glob (Depends-on): Add arg-nonnull.
6174 (Makefile.am): Insert arg-nonnull.h into glob.h.
6175 * modules/iconv_open (Depends-on): Add arg-nonnull.
6176 (Makefile.am): Insert arg-nonnull.h into iconv.h.
6177 * modules/inttypes (Depends-on): Add arg-nonnull.
6178 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6179 * modules/locale (Depends-on): Add arg-nonnull.
6180 (Makefile.am): Insert arg-nonnull.h into locale.h.
6181 * modules/math (Depends-on): Add arg-nonnull.
6182 (Makefile.am): Insert arg-nonnull.h into math.h.
6183 * modules/netdb (Depends-on): Add arg-nonnull.
6184 (Makefile.am): Insert arg-nonnull.h into netdb.h.
6185 * modules/search (Depends-on): Add arg-nonnull.
6186 (Makefile.am): Insert arg-nonnull.h into search.h.
6187 * modules/signal (Depends-on): Add arg-nonnull.
6188 (Makefile.am): Insert arg-nonnull.h into signal.h.
6189 * modules/spawn (Depends-on): Add arg-nonnull.
6190 (Makefile.am): Insert arg-nonnull.h into spawn.h.
6191 * modules/stdio (Depends-on): Add arg-nonnull.
6192 (Makefile.am): Insert arg-nonnull.h into stdio.h.
6193 * modules/stdlib (Depends-on): Add arg-nonnull.
6194 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6195 * modules/string (Depends-on): Add arg-nonnull.
6196 (Makefile.am): Insert arg-nonnull.h into string.h.
6197 * modules/strings (Depends-on): Add arg-nonnull.
6198 (Makefile.am): Insert arg-nonnull.h into strings.h.
6199 * modules/sys_socket (Depends-on): Add arg-nonnull.
6200 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6201 * modules/sys_stat (Depends-on): Add arg-nonnull.
6202 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6203 * modules/sys_time (Depends-on): Add arg-nonnull.
6204 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6205 * modules/sys_times (Depends-on): Add arg-nonnull.
6206 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6207 * modules/sys_utsname (Depends-on): Add arg-nonnull.
6208 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6209 * modules/time (Depends-on): Add arg-nonnull.
6210 (Makefile.am): Insert arg-nonnull.h into time.h.
6211 * modules/unistd (Depends-on): Add arg-nonnull.
6212 (Makefile.am): Insert arg-nonnull.h into unistd.h.
6213 * modules/wchar (Depends-on): Add arg-nonnull.
6214 (Makefile.am): Insert arg-nonnull.h into wchar.h.
6215 * modules/argv-iter (Depends-on): Add arg-nonnull.
6216 * tests/test-canonicalize.c (null_ptr): New function.
6218 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6220 * tests/test-memmem.c (null_ptr): New function.
6222 Reported by Jim Meyering.
6224 2009-12-10 Bruno Haible <bruno@clisp.org>
6226 Use spaces for indentation, not tabs.
6227 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6228 * m4/*.m4: Untabify.
6229 * build-aux/*.h: Untabify.
6230 * tests/**/*.[hc]: Untabify.
6231 * README: New section "Indent with spaces, not TABs", based on
6232 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6233 * NEWS: Mention the change.
6235 2009-12-10 Bruno Haible <bruno@clisp.org>
6237 pty test: Fix link error.
6238 * modules/pty-tests (Makefile.am): Add the default LDADD value to
6241 2009-12-07 Simon Josefsson <simon@josefsson.org>
6243 * modules/pty: New file.
6244 * modules/pty-tests: New file.
6245 * m4/pty.m4: New file.
6246 * tests/test-pty.c: New file.
6247 * doc/glibc-headers/pty.texi: Modified.
6248 * doc/glibc-functions/forkpty.texi: Modified.
6249 * doc/glibc-functions/openpty.texi: Modified.
6251 2009-12-10 Bruno Haible <bruno@clisp.org>
6253 Avoid syntax error in C++ mode.
6254 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6256 2009-12-10 Bruno Haible <bruno@clisp.org>
6258 Use sed with option -e.
6259 * gnulib-tool (func_version, func_emit_copyright_notice,
6260 func_emit_initmacro_end, func_import, func_create_testdir): Pass
6262 * modules/link-warning (Makefile.am): Likewise.
6264 2009-12-10 Jim Meyering <meyering@redhat.com>
6266 mgetgroups: do not write bytes beyond end of malloc'd buffer
6267 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6268 username, we call getgroups with a one-element-shorter buffer,
6269 but still told it the length was original, max_n_groups.
6271 2009-12-09 Eric Blake <ebb9@byu.net>
6273 cloexec: relax license
6274 * modules/cloexec (Maintainer): Add myself.
6275 (License): Use LGPL, not GPL.
6277 link-warning: optimize generation
6278 * modules/link-warning (Makefile.am): Reduce process usage.
6280 2009-12-09 Bruno Haible <bruno@clisp.org>
6282 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6283 workaround was added on 2009-11-17.
6285 2009-12-09 Jim Meyering <meyering@redhat.com>
6286 Bruno Haible <bruno@clisp.org>
6288 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6289 * modules/link-warning (Makefile.am): Make the comment-removing sed
6290 command more robust in the face of bootstrap-prepended comment lines.
6292 2009-12-09 Bruno Haible <bruno@clisp.org>
6294 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6297 2009-12-09 Simon Josefsson <simon@josefsson.org>
6298 Bruno Haible <bruno@clisp.org>
6300 * build-aux/link-warning.h: Add copyright notice.
6301 * modules/link-warning (Makefile.am): Generate link-warning.h from
6302 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6303 * NEWS: Mention change in link-warning module.
6304 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6305 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6306 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6307 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6308 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6309 * modules/math (Makefile.am): Add dependency to math.h.
6310 * modules/search (Makefile.am): Add dependency to search.h.
6311 * modules/signal (Makefile.am): Add dependency to signal.h.
6312 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6313 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6314 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6315 * modules/string (Makefile.am): Add dependency to string.h.
6316 * modules/strings (Makefile.am): Add dependency to strings.h.
6317 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6318 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6319 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6320 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6321 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6322 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6323 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6324 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6325 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6327 2009-12-09 Bruno Haible <bruno@clisp.org>
6329 fchdir: Optimize away rpl_fstat when possible.
6330 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6331 REPLACE_OPEN_DIRECTORY.
6332 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6334 2009-12-09 Bruno Haible <bruno@clisp.org>
6336 * lib/fchdir.c: Update comment.
6338 2009-12-09 Bruno Haible <bruno@clisp.org>
6340 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6342 2009-12-08 Eric Blake <ebb9@byu.net>
6344 fchdir: avoid memory leak on re-registration.
6345 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6347 2009-12-08 Jim Meyering <meyering@redhat.com>
6349 init.sh: avoid Solaris 10 /bin/sh portability problem
6350 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6352 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6353 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6355 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6356 and two tests used that idiom.
6357 * tests/init.sh: Update suggested usage comments.
6358 (path_prepend_): New function, to be used in place
6359 of the --src-path=DIR option.
6360 (setup_): Move PATH-prepending code into path_prepend_.
6361 * tests/test-pread.sh: Adapt to new usage.
6362 * tests/test-xalloc-die.sh: Likewise.
6364 2009-12-08 Simon Josefsson <simon@josefsson.org>
6366 * doc/gnulib.texi (Glibc pty.h): Add.
6367 * doc/glibc-functions/forkpty.texi: Add.
6368 * doc/glibc-functions/openpty.texi: Add.
6369 Suggested by Bruno Haible.
6371 2009-12-08 Eric Blake <ebb9@byu.net>
6373 fchdir: fix logic bugs
6374 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6375 * tests/test-fchdir.c (main): Enhance test.
6376 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6379 dup2: fix logic bugs
6380 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6381 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6382 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6384 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6386 2009-12-07 Eric Blake <ebb9@byu.net>
6388 unlink: fix m4 detection
6389 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6391 unistd-safer: add unit test
6392 * modules/unistd-safer-tests: New file.
6393 * tests/test-dup-safer.c: Likewise.
6394 * tests/test-cloexec.c (setmode): Avoid compiler warning.
6395 * tests/test-dup2.c (setmode): Likewise.
6396 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6398 cloexec: preserve text vs. binary across dup_cloexec
6399 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6401 * modules/dup2-tests (Depends-on): Add binary-io.
6402 * modules/cloexec-tests (Depends-on): Likewise.
6403 * tests/test-dup2.c (setmode, is_mode): New helpers.
6404 (main): Add tests that translation mode is preserved.
6405 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6406 Reported by Bruno Haible.
6408 mgetgroups: reduce duplicate listings
6409 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6411 * tests/test-chown.h (test_chown): Simplify client.
6412 * tests/test-lchown.h (test_lchown): Likewise.
6414 2009-12-06 Bruno Haible <bruno@clisp.org>
6416 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6419 2009-12-06 Bruno Haible <bruno@clisp.org>
6421 * lib/progname.c: Include stdio.h, stdlib.h.
6422 (set_program_name): Reject a NULL argument.
6424 2009-12-05 Eric Blake <ebb9@byu.net>
6426 pipe2-safer: new module
6427 * modules/pipe2-safer: New file.
6428 * lib/unistd-safer.h (pipe2_safer): New prototype.
6429 * lib/unistd--.h (pipe2): New wrapper.
6430 * lib/pipe-safer.c (pipe2_safer): New function.
6431 * modules/pipe (Depends-on): Add pipe2-safer.
6432 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6434 stdlib-safer: preserve cloexec flag for mkostemp[s]
6435 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6438 unistd-safer: allow preservation of cloexec status via flag
6439 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6441 * lib/dup-safer.c (dup_safer_flag): New function.
6442 * lib/fd-safer.c (fd_safer_flag): Likewise.
6443 * modules/cloexec (configure.ac): Set witness.
6445 test-dup2: enhance test
6446 * modules/dup2-tests (Depends-on): Add cloexec.
6447 * tests/test-dup2.c (main): Enhance test.
6449 cloexec: add dup_cloexec
6450 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6451 header and comments.
6452 * lib/cloexec.c (set_cloexec_flag): Add comments.
6453 (dup_cloexec): New function, with mingw implementation borrowed
6455 * lib/w32spawn.h (dup_noinherit): ...here.
6456 * modules/execute (Depends-on): Add cloexec.
6457 * modules/pipe (Depends-on): Likewise.
6458 * modules/cloexec (Depends-on): Add dup2.
6459 * modules/cloexec-tests (Files): New file.
6460 * tests/test-cloexec.c: Likewise.
6462 test-xalloc-die: fix test for mingw
6463 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6464 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6465 directory and .exe suffix off argv[0] output.
6467 test-fseeko: fix test for mingw
6468 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6469 than undefining fseek, so test will pass on mingw.
6471 2009-12-05 Bruno Haible <bruno@clisp.org>
6473 * lib/progname.h (set_program_name): Clarify specification.
6474 * lib/progname.c (set_program_name): Likewise.
6475 Reported by Jim Meyering.
6477 2009-12-05 Jim Meyering <meyering@redhat.com>
6479 maint.mk: backslash-escape parens in default regexp
6480 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6481 backslash-escape the literal parentheses.
6483 maint.mk: news-date-check: use grep -E
6484 * top/maint.mk (today): Define a Make variable, not a...
6485 (news-date-check): ...shell variable.
6486 (news-date-regexp): Use the Make variable.
6487 Use grep's -E option. Change the failing diagnostic to mention
6488 the variable, $(news-date-regexp).
6490 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
6492 maintainer-makefile: allow customization of NEWS entry format
6493 * top/maint.mk (news-date-regexp): New overridable variable.
6494 (news-date-check): Use it.
6496 2009-12-04 Eric Blake <ebb9@byu.net>
6498 mgetgroups: add xgetgroups, and avoid ENOSYS failures
6499 * lib/mgetgroups.h (xgetgroups): New prototype.
6500 * lib/mgetgroups.c (xgetgroups): New wrapper.
6501 (mgetgroups): Handle ENOSYS.
6502 * modules/mgetgroups (Depends-on): Add realloc.
6503 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6505 mgetgroups: avoid argument promotion issues with -1
6506 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6508 * tests/test-chown.h (getegid, test_chown): Likewise.
6509 * tests/test-lchown.h (getegid, test_lchown): Likewise.
6511 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
6513 exclude: Fix header file problems.
6514 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6516 2009-12-01 Jim Meyering <meyering@redhat.com>
6518 fts: fts_open: do not let an empty string cause immediate failure
6519 This is required in support of GNU rm, for which the command
6520 "rm A '' B" must process and remove both A and B, in spite of
6521 the empty string argument.
6522 * lib/fts.c (fts_open): Do not let the presence of an empty string
6523 cause fts_open to fail immediately. Most fts-using tools must be
6524 able to process all arguments, in order, and can be expected to
6525 diagnose such arguments themselves.
6527 2009-11-30 Eric Blake <ebb9@byu.net>
6529 utimens: fix compilation error
6530 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6531 Declare variable at right scope.
6533 2009-11-29 Jim Meyering <meyering@redhat.com>
6535 bootstrap: handle perl-5.11's changed --version output
6536 * build-aux/bootstrap (get_version): Handle perl separately,
6537 since perl-5.11's --version output is different.
6539 2009-11-28 Jim Meyering <meyering@redhat.com>
6541 userspec: depend on the inttostr module, too
6542 * modules/userspec (Depends-on): Add inttostr.
6544 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6545 * lib/userspec.c (parse_with_separator): Do not accept a user ID
6546 number of MAXUID when it evaluates to (uid_t) -1.
6547 Likewise for group ID. Reported by Matt McCutchen in
6548 <http://savannah.gnu.org/bugs/?28113>
6550 userspec: reformat to use spaces, not TABs
6551 * lib/userspec.c: Expand TABs to spaces.
6552 Add Emacs' "indent-tabs-mode: nil" hint.
6554 2009-11-27 Eric Blake <ebb9@byu.net>
6556 getopt-gnu: flush out another BSD bug
6557 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6558 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6560 * tests/test-getopt.h (test_getopt): End lists with NULL.
6561 * tests/test-getopt_long.h (test_getopt_long): Likewise.
6562 (test_getopt_long_posix): Enhance test.
6563 * modules/getopt-posix-tests (Depends-on): Add stdbool.
6564 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6566 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6569 2009-11-27 Simon Josefsson <simon@josefsson.org>
6571 * modules/idpriv-droptemp-tests (Notice): Fix text.
6573 2009-11-27 Jim Meyering <meyering@redhat.com>
6575 test-xalloc-die: avoid spurious failure due to libtool argv difference
6576 In a libtool-enabled project, this test would fail due to a difference
6577 in the emitted program name, e.g.,
6578 -test-xalloc-die: memory exhausted
6579 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6580 Use program to avoid that.
6581 * modules/xalloc-die-tests (Depends-on): Add progname.
6582 * tests/test-xalloc-die.c: Include progname.h".
6583 (program_name): Remove decl.
6584 (main): Call set_program_name.
6585 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6587 2009-11-26 Richard Jones <rjones@redhat.com>
6589 w32sock: leave win32 error in place.
6590 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6592 2009-11-26 Eric Blake <ebb9@byu.net>
6594 init.sh: suggest to use skip_ and fail_ functions in comments
6595 * tests/init.sh: Add a sentence.
6597 2009-11-25 Bruno Haible <bruno@clisp.org>
6599 init.sh: add documentation in comments
6600 * tests/init.sh: Add some developer and user documentation.
6602 2009-11-26 Jim Meyering <meyering@redhat.com>
6604 init.sh: accommodate even those who specify bogus srcdir manually
6605 * tests/init.sh: Normally, srcdir is guaranteed by automake and
6606 configure-time tests to be sanitized, so that there is no need to
6607 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
6608 (with no double quotes) suffices. However, since tests may be
6609 invoked manually, and since you may explicitly set srcdir to the
6610 name of a directory containing spaces, do quote its uses here.
6611 * tests/test-pread.sh: Likewise.
6612 Suggested by Bruno Haible.
6614 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6615 * tests/test-pread.sh: Write no data into the pipe, because
6616 test-pread actually reads none. This avoids a diagnostic,
6617 "bash: echo: write error: Broken pipe", that arises in the unusual
6618 event something is ignoring SIGPIPE, and might be interpreted
6619 as some sort of failure. Reported by Bruno Haible.
6621 2009-11-25 Jim Meyering <meyering@redhat.com>
6623 test-pread: cover failure with ESPIPE and EINVAL
6624 * tests/test-pread.c (main): Test for failure, too.
6625 * tests/test-pread.sh: Invoke with stdin on a pipe.
6626 Suggested by Eric Blake.
6628 pread: improvement and fix
6629 * modules/pread (Depends-on): Depend on lseek, for portability to
6630 e.g., mingw. Suggested by Eric Blake.
6631 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
6633 unistd.in.h: correct declaration of pread
6634 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6635 Reported by Richard W.M. Jones.
6637 test-pread.sh: distribute the test script
6638 * modules/pread-tests (Files): Include test-pread.sh.
6640 test-pread.sh: clean up
6641 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6642 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6643 That is unnecessary, since it's always ".".
6644 Suggestion from Eric Blake.
6646 test-pread.sh: make executable
6647 * tests/test-pread.sh: Set executable bit.
6648 Reported by Eric Blake.
6650 correct typo in test-pread.sh
6651 * tests/test-pread.sh: Add #! line.
6654 * tests/test-pread.c: New file.
6655 * tests/test-pread.sh: Likewise.
6656 * modules/pread-tests: Likewise.
6659 * modules/pread: New file.
6660 * lib/unistd.in.h (pread): Define/declare.
6661 * lib/pread.c (pread): New file.
6662 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6663 * modules/unistd (Makefile.am): Substitute witnesses.
6664 * doc/posix-functions/pread.texi (pread): Update.
6665 * MODULES.html.sh: Add pread.
6667 2009-11-25 Jim Meyering <meyering@redhat.com>
6669 tests/init.sh: new file to be used via most *.sh tests
6670 * tests/init.sh: New file.
6672 2009-11-25 Eric Blake <ebb9@byu.net>
6674 utimens: work around older Linux failure with symlinks
6675 * lib/utimens.c (lutimensat_works_really): New variable.
6676 (fdutimens, lutimens): Use it to manage kernels that support
6677 nanosecond times on files, but not on symlinks.
6678 Reported by OndÅ™ej VaÅ¡Ãk.
6680 utimes: fix configure grammar
6681 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6683 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
6685 regex: Fix fastmap for multibyte character ranges.
6686 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6687 characters when a multibyte character range is included.
6689 2009-11-22 Andy Wingo <wingo@pobox.com>
6691 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6692 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6694 2009-11-24 Bruno Haible <bruno@clisp.org>
6696 doc: Most *_l functions exist in MacOS X 10.5.
6697 * doc/posix-functions/duplocale.texi: Update platforms list.
6698 * doc/posix-functions/freelocale.texi: Likewise.
6699 * doc/posix-functions/newlocale.texi: Likewise.
6700 * doc/posix-functions/uselocale.texi: Likewise.
6701 * doc/posix-functions/isalnum_l.texi: Likewise.
6702 * doc/posix-functions/isalpha_l.texi: Likewise.
6703 * doc/posix-functions/isblank_l.texi: Likewise.
6704 * doc/posix-functions/iscntrl_l.texi: Likewise.
6705 * doc/posix-functions/isdigit_l.texi: Likewise.
6706 * doc/posix-functions/isgraph_l.texi: Likewise.
6707 * doc/posix-functions/islower_l.texi: Likewise.
6708 * doc/posix-functions/isprint_l.texi: Likewise.
6709 * doc/posix-functions/ispunct_l.texi: Likewise.
6710 * doc/posix-functions/isspace_l.texi: Likewise.
6711 * doc/posix-functions/isupper_l.texi: Likewise.
6712 * doc/posix-functions/iswalnum_l.texi: Likewise.
6713 * doc/posix-functions/iswalpha_l.texi: Likewise.
6714 * doc/posix-functions/iswblank_l.texi: Likewise.
6715 * doc/posix-functions/iswcntrl_l.texi: Likewise.
6716 * doc/posix-functions/iswctype_l.texi: Likewise.
6717 * doc/posix-functions/iswdigit_l.texi: Likewise.
6718 * doc/posix-functions/iswgraph_l.texi: Likewise.
6719 * doc/posix-functions/iswlower_l.texi: Likewise.
6720 * doc/posix-functions/iswprint_l.texi: Likewise.
6721 * doc/posix-functions/iswpunct_l.texi: Likewise.
6722 * doc/posix-functions/iswspace_l.texi: Likewise.
6723 * doc/posix-functions/iswupper_l.texi: Likewise.
6724 * doc/posix-functions/iswxdigit_l.texi: Likewise.
6725 * doc/posix-functions/isxdigit_l.texi: Likewise.
6726 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6727 * doc/posix-functions/strcasecmp_l.texi: Likewise.
6728 * doc/posix-functions/strcoll_l.texi: Likewise.
6729 * doc/posix-functions/strfmon_l.texi: Likewise.
6730 * doc/posix-functions/strftime_l.texi: Likewise.
6731 * doc/posix-functions/strncasecmp_l.texi: Likewise.
6732 * doc/posix-functions/strxfrm_l.texi: Likewise.
6733 * doc/posix-functions/tolower_l.texi: Likewise.
6734 * doc/posix-functions/toupper_l.texi: Likewise.
6735 * doc/posix-functions/towctrans_l.texi: Likewise.
6736 * doc/posix-functions/towlower_l.texi: Likewise.
6737 * doc/posix-functions/towupper_l.texi: Likewise.
6738 * doc/posix-functions/wcscoll_l.texi: Likewise.
6739 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6740 * doc/posix-functions/wctrans_l.texi: Likewise.
6741 * doc/posix-functions/wctype_l.texi: Likewise.
6742 * doc/glibc-functions/strptime_l.texi: Likewise.
6743 * doc/glibc-functions/strtod_l.texi: Likewise.
6744 * doc/glibc-functions/strtof_l.texi: Likewise.
6745 * doc/glibc-functions/strtol_l.texi: Likewise.
6746 * doc/glibc-functions/strtold_l.texi: Likewise.
6747 * doc/glibc-functions/strtoll_l.texi: Likewise.
6748 * doc/glibc-functions/strtoul_l.texi: Likewise.
6749 * doc/glibc-functions/strtoull_l.texi: Likewise.
6750 * doc/glibc-functions/wcsftime_l.texi: Likewise.
6751 * doc/glibc-functions/wcstod_l.texi: Likewise.
6752 * doc/glibc-functions/wcstof_l.texi: Likewise.
6753 * doc/glibc-functions/wcstol_l.texi: Likewise.
6754 * doc/glibc-functions/wcstold_l.texi: Likewise.
6755 * doc/glibc-functions/wcstoll_l.texi: Likewise.
6756 * doc/glibc-functions/wcstoul_l.texi: Likewise.
6757 * doc/glibc-functions/wcstoull_l.texi: Likewise.
6759 2009-11-24 Bruno Haible <bruno@clisp.org>
6761 duplocale: Fix logic bug.
6762 * lib/duplocale.c: Don't include <langinfo.h>.
6763 (_NL_LOCALE_NAME): Remove macro.
6764 (rpl_duplocale): Use setlocale instead of nl_langinfo.
6765 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6767 2009-11-23 Jim Meyering <meyering@redhat.com>
6769 test-update-copyright: don't hard-code /usr/bin/perl
6770 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6771 perl to print the current year. Gilles Espinasse reported that
6772 the replaced use of perl was hard-coded as /usr/bin/perl.
6774 2009-11-23 Bruno Haible <bruno@clisp.org>
6776 duplocale: Add support for glibc 2.3.x.
6777 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6779 2009-11-22 Bruno Haible <bruno@clisp.org>
6781 vasnprintf: Tiny optimization.
6782 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6785 2009-11-22 Bruno Haible <bruno@clisp.org>
6787 Tests for module 'duplocale'.
6788 * modules/duplocale-tests: New file.
6789 * tests/test-duplocale.c: New file.
6791 New module 'duplocale'.
6792 * m4/duplocale.m4: New file.
6793 * lib/locale.in.h (duplocale): New declaration.
6794 * lib/duplocale.c: New file.
6795 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6796 gl_LOCALE_H_DEFAULTS): New macros.
6797 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6798 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6799 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6801 * modules/duplocale: New file.
6802 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6804 2009-11-22 Bruno Haible <bruno@clisp.org>
6806 * modules/locale-tests (configure.ac): Test for newlocale function.
6807 * tests/test-locale.c: When the system has extended locale functions,
6808 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6810 locale: Make locale_t available when possible.
6811 * lib/locale.in.h: Include <xlocale.h> when it exists.
6812 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6813 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6814 * modules/locale (Depends-on): Add extensions.
6815 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6816 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6818 2009-11-22 Bruno Haible <bruno@clisp.org>
6821 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6823 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6824 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6825 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6827 2009-11-22 Bruno Haible <bruno@clisp.org>
6829 error: account for the possibility of freopen (stdout).
6830 * lib/error.c: Include <unistd.h>.
6831 (flush_stdout): New function, extracted from error and error_at_line.
6832 Determine stdout's fd dynamically.
6833 (error, error_at_line): Invoke flush_stdout.
6834 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6835 * modules/error (Depends-on): Add unistd.
6837 2009-11-22 Bruno Haible <bruno@clisp.org>
6839 diffseq: Add comment.
6840 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6842 2009-11-22 Jim Meyering <meyering@redhat.com>
6844 c-stack: avoid defining an unused static function
6845 * lib/c-stack.c (find_stack_direction): Do not define this function
6846 when it will not be used.
6848 diffseq: avoid spurious gcc warnings
6849 * lib/diffseq.h (IF_LINT2): Define.
6850 (compareseq): Use it to initialize two members of "part".
6851 This avoids two used-uninitialized warnings.
6853 2009-11-21 Jim Meyering <meyering@redhat.com>
6855 c-stack: avoid "ignoring return value of `write'" warning
6856 * lib/c-stack.c: Include "ignore-value.h".
6857 (die): Explicitly ignore each write return value.
6858 * modules/c-stack (Depends-on): Add ignore-value.
6860 2009-11-21 Bruno Haible <bruno@clisp.org>
6862 diffseq: reduce scope of variable 'best'.
6863 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6864 variable, earlier used for two different purposes.
6866 2009-11-21 Jim Meyering <meyering@redhat.com>
6868 diffseq: remove useless assignment to "best"
6869 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6870 assignment. At that point "best" is already guaranteed to be zero.
6872 2009-11-20 Eric Blake <ebb9@byu.net>
6874 build: mention ftp redirector in release announcements
6875 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6876 values that used to come from cfg.mk; mention FTP redirect URL.
6877 * build-aux/announce-gen: Mention the mirror list.
6878 Suggested by Karl Berry.
6880 nanosleep: improve port to mingw
6881 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6882 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6883 LIB_NANOSLEEP, but only when needed.
6884 * modules/select (Link): Document LIBSOCKET.
6885 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6888 nanosleep: work around cygwin bug
6889 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6890 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
6892 (getnow): Delete, not needed.
6893 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6895 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
6896 clock-time, gettime.
6897 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6899 * modules/nanosleep-tests: New test.
6900 * tests/test-nanosleep.c: New file.
6902 sleep: work around cygwin bug
6903 * lib/sleep.c (rpl_sleep): Work around the bug.
6904 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6905 (gl_PREREQ_SLEEP): Delete unused macro.
6906 * modules/sleep (Depends-on): Add verify.
6907 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6908 * modules/unistd (Makefile.am): Substitute witness.
6909 * lib/unistd.in.h (sleep): Update prototype.
6910 * doc/posix-functions/sleep.texi (sleep): Document the bug.
6911 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6912 * modules/sleep-tests (Depends-on): Check for alarm.
6914 2009-11-20 Jim Meyering <meyering@redhat.com>
6916 maint.mk: improve sc_prohibit_magic_number_exit
6917 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6918 so it does not match uses like System.exit(1).
6919 Add comments showing how to correct all offenders.
6921 2009-11-19 Eric Blake <ebb9@byu.net>
6923 xalloc-die-tests: add missing library
6924 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6926 test-xvasprintf: silence compiler warnings
6927 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6928 empty string from gcc.
6930 2009-11-19 Jim Meyering <meyering@redhat.com>
6932 xfreopen: new module, from coreutils
6933 * modules/xfreopen: New module.
6934 * lib/xfreopen.c: New file.
6935 * lib/xfreopen.h: New file.
6936 * MODULES.html.sh (File stream based Input/Output"): Add it.
6938 2009-11-19 Eric Blake <ebb9@byu.net>
6940 manywarnings: depend on warnings
6941 * modules/manywarnings (Depends-on): Add warnings.
6943 build: avoid compiler warnings
6944 * lib/select.c (rpl_select): Delete unused variable.
6945 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6947 2009-11-18 Eric Blake <ebb9@byu.net>
6949 tests: avoid false negative with --with-packager
6950 * tests/test-version-etc.sh: Discard packager information.
6951 * tests/test-argp-version-etc-1.sh: Likewise.
6952 Reported by Mike Frysinger.
6954 utimens: fix regression on Solaris
6955 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6956 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6957 can only change fd timestamps via futimesat. Instead, use an
6958 additional witness macro to avoid BSD bug.
6959 Reported by Jim Meyering.
6961 2009-11-17 Eric Blake <ebb9@byu.net>
6963 usleep: use it to simplify tests
6964 * modules/stat-time-tests (Depends-on): Add usleep.
6965 (configure.ac): Drop usleep check.
6966 * modules/chown-tests (Depends-on, configure.ac): Likewise.
6967 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6968 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6969 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6970 * modules/openat-tests (Depends-on, configure.ac): Likewise.
6971 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6972 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6973 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6975 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6976 * tests/test-lchown.h (nap): Likewise.
6977 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6978 * tests/test-stat-time.c (nap): Likewise.
6979 * tests/test-utimens-common.h (nap): Update comments.
6982 * modules/usleep: New file.
6983 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6984 * lib/usleep.c (usleep): Likewise.
6985 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6986 * modules/unistd (Makefile.am): Substitute witnesses.
6987 * lib/unistd.in.h (usleep): Add declaration.
6988 * doc/pastposix-functions/usleep.texi (usleep): Document this.
6989 * MODULES.html.sh (Date and time): Likewise.
6990 * modules/usleep-tests (Depends-on): New test.
6991 * tests/test-usleep.c: New file.
6993 chown: work around OpenBSD bug
6994 * lib/chown.c (rpl_chown): Work around the bug.
6995 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6996 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6997 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6998 * modules/chown (Depends-on): Add stdbool.
6999 * modules/lchown (Depends-on): Likewise.
7000 * doc/posix-functions/chown.texi (chown): Document the bug.
7001 * doc/posix-functions/lchown.texi (lchown): Likewise.
7002 * tests/test-lchown.h (test_chown): Relax test.
7004 mkstemp: avoid conflict with C++ keyword template
7005 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7006 * lib/mkostemp.c (mkostemp): Likewise.
7007 * lib/mkostemps.c (mkostemps): Likewise.
7008 * lib/mkstemp.c (mkstemp): Likewise.
7009 * lib/mkstemps.c (mkstemps): Likewise.
7011 xalloc-die-tests: optimize
7012 * tests/test-xalloc-die.sh: Reduce number of processes.
7014 2009-11-17 Simon Josefsson <simon@josefsson.org>
7016 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
7017 patch from ludo@gnu.org (Ludovic Courtès).
7019 2009-11-17 Jim Meyering <meyering@redhat.com>
7021 version-etc: use proper license string
7022 * modules/version-etc (License): Use LGPL, not LGPLv3+.
7023 * modules/version-etc-fsf: Likewise.
7025 2009-11-17 Simon Josefsson <simon@josefsson.org>
7027 * tests/test-xalloc-die.sh: Add license. Check that nothing is
7028 printed to stdout. Deal with EOL differences.
7030 2009-11-17 Eric Blake <ebb9@byu.net>
7032 unsetenv: work around Solaris bug
7033 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7034 * lib/unsetenv.c (rpl_unsetenv): Work around it.
7035 Reported by Jim Meyering.
7037 vasnprintf: avoid compiler warnings
7038 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7040 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7042 2009-11-17 Simon Josefsson <simon@josefsson.org>
7044 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7045 settings since xalloc-die is no longer the self test,
7048 2009-11-17 Jim Meyering <meyering@redhat.com>
7050 test-xalloc-die.sh: make the code agree with the commit log
7051 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7052 at the end, just in case you happen to have a test-xalloc-die
7053 program in some other PATH directory.
7055 test-xalloc-die.sh: fix a portability bug
7056 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7057 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7058 Otherwise, argv[0] (as often seen in diagnostics) would be too
7059 system-dependent, sometimes with, and sometimes without the leading "./".
7061 version-etc-fsf: relax license to LGPLv3+
7062 * modules/version-etc-fsf (License): Relax license.
7064 2009-11-16 Eric Blake <ebb9@byu.net>
7066 xalloc-die-tests: avoid printing null pointer
7067 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7069 * tests/test-xalloc-die.c (program_name): Declare.
7070 * tests/test-xalloc-die.sh (tmpfiles): New file.
7072 setenv, unsetenv: work around various bugs
7073 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7074 (setenv) [HAVE_SETENV]: Work around bugs.
7075 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7076 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7078 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7079 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7080 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7081 * modules/stdlib (Makefile.am): Update substitutions.
7082 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7083 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7084 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7085 * modules/setenv-tests: New test.
7086 * modules/unsetenv-tests: Likewise.
7087 * tests/test-setenv.c: New file.
7088 * tests/test-unsetenv.c: Likewise.
7090 2009-11-16 Jim Meyering <meyering@redhat.com>
7092 version-etc: relax license to LGPLv3+
7093 * modules/version-etc (License): Relax license.
7095 better AC_REQUIRE expanded-before-required-warning avoidance
7096 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7097 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7098 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
7099 which is no longer needed.
7101 2009-11-16 Eric Blake <ebb9@byu.net>
7103 test-freading: clean up temporary file
7104 * tests/test-freading.c (main): Remove file on success, and use
7105 ASSERT more liberally.
7106 Reported by Jim Meyering.
7108 2009-11-16 Jim Meyering <meyering@redhat.com>
7110 avoid new AC_REQUIRE expanded-before-required warnings
7111 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7113 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7114 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7116 2009-11-15 Simon Josefsson <simon@josefsson.org>
7118 * tests/test-xalloc-die.c: New file.
7119 * modules/xalloc-die-tests: New file.
7120 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7121 XFAIL_TESTS so it can be appended by modules.
7123 2009-11-15 Simon Josefsson <simon@josefsson.org>
7125 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
7126 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7128 2009-11-14 Eric Blake <ebb9@byu.net>
7130 fnmatch: avoid compiler warning
7131 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7132 to silence compiler warning about mismatch signedness in ?:.
7133 Reported by Robert Millan.
7135 intprops: add double-inclusion guard
7136 * lib/intprops.h: Allow idempotent includes.
7137 Suggested by Bruce Korb.
7139 openat: detect Solaris fchownat bug
7140 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
7141 penalizing glibc chownat when only lchownat is broken.
7142 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7143 trailing slash bugs.
7144 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7145 * modules/openat-tests (Files): Include more files.
7146 (Depends-on): Add mgetgroups, sleep, stat-time.
7147 (configure.ac): Add additional checks.
7148 (Makefile.am): Build new test.
7149 * tests/test-fchownat.c: New file.
7151 lchown: detect Solaris and FreeBSD bug
7152 * lib/lchown.c (rpl_lchown): Work around bug.
7153 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7154 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7155 * modules/unistd (Makefile.am): Populate it.
7156 * lib/unistd.in.h (lchown): Update declaration.
7157 * doc/posix-functions/lchown.texi (lchown): Document the bug.
7158 * modules/lchown-tests: New file.
7159 * tests/test-lchown.h (test_lchown): Likewise.
7160 * tests/test-lchown.c (main): Likewise.
7162 chown: detect Solaris and FreeBSD bug
7163 * lib/chown.c (rpl_chown): Work around bug.
7164 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7165 (gl_PREREQ_CHOWN): Delete.
7166 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7167 * modules/unistd (Makefile.am): Populate it.
7168 * lib/unistd.in.h (chown): Update declaration.
7169 * lib/lchown.c (chown): Update client.
7170 * modules/lchown (Depends-on): Add lstat.
7171 * doc/posix-functions/chown.texi (chown): Document the bug.
7172 * doc/posix-functions/getgroups.texi (getgroups): Document
7174 * modules/chown-tests: New file.
7175 * tests/test-chown.h (test_chown): Likewise.
7176 * tests/test-chown.c (main): Likewise.
7178 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
7180 gnulib-tool: correctly detect absence of m4 directories
7181 * gnulib-tool: Avoid extra newline on data passed to wc -l.
7183 2009-11-14 Jim Meyering <meyering@redhat.com>
7185 maint.mk: Prohibit inclusion of "xalloc.h" without use.
7186 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7188 2009-11-14 John W. Eaton <jwe@gnu.org>
7190 strftime.h: wrap funtion declaration in extern "C" block
7191 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7193 2009-11-13 Eric Blake <ebb9@byu.net>
7195 getgroups: avoid compiler warning
7196 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7198 getgroups: work around FreeBSD bug
7199 * lib/getgroups.c (rpl_getgroups): Work around the bug.
7200 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7201 * doc/posix-functions/getgroups.texi (getgroups): Document it.
7202 * tests/test-getgroups.c (main): Fix buffer overrun.
7204 getgroups: avoid compilation failure
7205 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7206 * modules/getgroups (Depends-on): Add stdint.
7208 2009-11-13 Jim Meyering <meyering@redhat.com>
7210 test-getgroups: avoid compilation failure
7211 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7213 2009-11-13 Eric Blake <ebb9@byu.net>
7215 mgetgroups: new module, taken from coreutils
7216 * modules/mgetgroups: New file.
7217 * lib/mgetgroups.h: Likewise.
7218 * lib/mgetgroups.c (mgetgroups): Likewise.
7219 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7220 * MODULES.html.sh (Users and groups): Mention it.
7222 getgroups: don't expose GETGROUPS_T to user
7223 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
7224 an element at a time if GETGROUPS_T is wrong size.
7225 * lib/getugroups.h (getugroups): Change signature.
7226 * lib/unistd.in.h (getgroups): Likewise.
7227 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7228 signature needs fixing.
7229 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7231 * modules/group-member (Depends-on): Add getgroups.
7232 * lib/group-member.c (group_info, get_group_info): Use gid_t.
7233 (group_member): Rely on getgroups replacement.
7234 * lib/getugroups.c (getugroups): Use gid_t.
7235 * tests/test-getgroups.c (main): Likewise.
7236 * NEWS: Mention the signature change.
7237 * doc/posix-functions/getgroups.texi (getgroups): Mention the
7238 problem with signature.
7239 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7240 GETGROUPS_T is still useful for setgroups.
7242 getgroups, getugroups: provide stubs for mingw
7243 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7244 * lib/getugroups.c (getugroups): Likewise.
7245 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7246 function. Modernize replacement scheme.
7247 (gl_PREREQ_GETGROUPS): Delete.
7248 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7249 * modules/getgroups (configure.ac): Declare witness.
7250 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7251 * modules/unistd (Depends-on): Substitute witness.
7252 * lib/unistd.in.h (getgroups): Declare replacement.
7254 getgroups: avoid calling exit
7255 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7257 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7259 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7260 exiting, in the rare case of malloc failure.
7262 getgroups: fix logic error
7263 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7264 has more than 20 groups.
7265 * modules/getgroups-tests: New test.
7266 * tests/test-getgroups.c: New file.
7268 2009-11-13 Simon Josefsson <simon@josefsson.org>
7270 * tests/test-base64.c: Improve.
7272 2009-11-13 Simon Josefsson <simon@josefsson.org>
7274 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7275 Blake <ebb9@byu.net>.
7277 2009-11-13 Simon Josefsson <simon@josefsson.org>
7279 * tests/test-xvasprintf.c: Add %s%s related checks.
7281 2009-11-12 Eric Blake <ebb9@byu.net>
7283 version-etc: match standards.texi style
7284 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7285 and use <> only for URLs.
7287 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7289 fts: do not fail on a submount during traversal
7290 * lib/fts.c (fts_build): Read the stat info again after opening
7291 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7292 Original report at http://bugzilla.redhat.com/501848.
7294 2009-11-12 Jim Meyering <meyering@redhat.com>
7296 bootstrap: sync from coreutils
7297 * build-aux/bootstrap (bootstrap_epilogue): New function.
7298 Use git_modules_config in one more place. This make bootstrap's
7299 --gnulib-srcdir option more useful for testing.
7301 bootstrap: generalize autoheader check
7302 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7305 2009-11-11 Eric Blake <ebb9@byu.net>
7307 mkfifoat: use new modules for Solaris and BSD bugs
7308 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7309 * lib/mkfifoat.c (mknodat): Split...
7310 * lib/mknodat.c (mknodat): ...into new file.
7311 * modules/mkfifoat (Files): Ship new file.
7312 (Depends-on): Add mkfifo, mknod.
7313 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7314 (Depends-on): Add symlink.
7315 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7316 redundant with test_mkfifo.h.
7317 (do_mkfifoat, do_mknodat): New helpers.
7320 * modules/mknod: New file.
7321 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7322 * lib/mknod.c (mknod): Likewise.
7323 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7325 * modules/sys_stat (Makefile.am): Substitute them.
7326 * lib/sys_stat.in.h (mknod): Declare replacement.
7327 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7329 * doc/posix-functions/mknod.texi (mknod): Likewise.
7330 * modules/mknod-tests: New test.
7331 * tests/test-mknod.c: Likewise.
7334 * modules/mkfifo: New file.
7335 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7336 * lib/mkfifo.c (mkfifo): Likewise.
7337 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7339 * modules/sys_stat (Makefile.am): Substitute them.
7340 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7341 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7343 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7344 * modules/mkfifo-tests: New test.
7345 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7346 from test-mkfifoat.c.
7347 * tests/test-mkfifo.c: New file.
7349 readlink: detect FreeBSD bug
7350 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7352 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7353 * tests/test-readlink.h (test_readlink): Enhance test.
7355 symlink: detect FreeBSD bug
7356 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7358 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7359 * tests/test-symlink.h (test_symlink): Enhance test.
7361 2009-11-10 Eric Blake <ebb9@byu.net>
7363 link: detect FreeBSD bug
7364 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7366 * doc/posix-functions/link.texi (link): Document the bug.
7367 * tests/test-link.h (test_link): Enhance test.
7368 * tests/test-linkat.c (main): Update caller.
7370 unlink, remove: detect FreeBSD bug
7371 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7373 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7374 * doc/posix-functions/remove.texi (remove): Likewise.
7375 * tests/test-unlink.h (test_unlink): Enhance test.
7376 * tests/test-remove.c (main): Likewise.
7378 2009-11-09 Eric Blake <ebb9@byu.net>
7380 rename: detect FreeBSD bug
7381 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7383 * modules/renameat-tests (Depends-on): Add filenamecat.
7384 * tests/test-rename.h (test_rename): Allow one more errno.
7385 * tests/test-renameat.c (main): Likewise.
7386 * doc/posix-functions/rename.texi (rename): Document the bug.
7388 open: detect FreeBSD bug
7389 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7391 * doc/posix-functions/open.texi (open): Document the bug.
7392 * doc/posix-functions/utimes.texi (utimes): Likewise.
7393 * tests/test-open.h (test_open): Add parameters, and test symlink
7395 * tests/test-open.c (main): Adjust caller.
7396 * tests/test-fcntl-safer.c (main): Likewise.
7397 * modules/open-tests (Depends-on): Add stdbool, symlink.
7398 * modules/fcntl-safer-tests (Depends-on): Likewise.
7399 * tests/test-openat.c (main): Add test-open tests.
7401 stat: detect FreeBSD bug
7402 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7404 * doc/posix-functions/stat.texi (stat): Document the bug.
7405 * tests/test-stat.h (test_stat_func): Add argument.
7406 * tests/test-stat.c (main): Adjust caller.
7407 * tests/test-fstatat.c (main): Likewise.
7408 * modules/stat-tests (Depends-on): Add stdbool, symlink.
7409 Reported by Jim Meyering.
7411 2009-11-09 James Youngman <jay@gnu.org>
7413 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7414 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7416 2009-11-08 Jim Meyering <meyering@redhat.com>
7418 utimens: remove invalid futimesat call
7419 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7420 It used the file descriptor of the target file as the DIR_FD
7421 parameter and NULL as the file name. That caused failure with
7422 errno == EFAULT on FreeBSD-8.0-rc2
7424 2009-11-07 Eric Blake <ebb9@byu.net>
7426 fflush, freadseek: use fseeko, not fseek
7427 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7428 (clear_ungetc_buffer): Avoid potential problems on large files.
7429 * lib/freadseek.c (freadseek): Likewise.
7430 * modules/freadseek (Depends-on): Add fseeko.
7431 * modules/fseek (configure.ac): Set a witness.
7432 * tests/test-fflush.c (main): Use fseeko.
7433 * tests/test-fpurge.c (fseek): Disable link warning.
7434 * tests/test-freadable.c (fseek): Likewise.
7435 * tests/test-freading.c (fseek): Likewise.
7436 * tests/test-fseeko.c (fseek): Likewise.
7437 * tests/test-ftell.c (fseek): Likewise.
7438 * tests/test-ftello.c (fseek): Likewise.
7439 * tests/test-fwritable.c (fseek): Likewise.
7440 * tests/test-fwriting.c (fseek): Likewise.
7442 2009-11-06 Simon Josefsson <simon@josefsson.org>
7444 * modules/memchr (Depends-on): Drop getpagesize dependency.
7446 2009-11-06 Simon Josefsson <simon@josefsson.org>
7448 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7449 Reported by Ludovic Courtès.
7450 * build-aux/pmccabe2html: Improve example usage.
7451 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7453 2009-11-06 Jim Meyering <meyering@redhat.com>
7455 do-release-commit-and-tag: New module.
7456 Automate the release-commit and tag process.
7457 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7458 * modules/do-release-commit-and-tag: New file.
7459 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7461 2009-11-06 Simon Josefsson <simon@josefsson.org>
7463 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7464 because test-select.c uses inet_pton.
7466 2009-11-06 Simon Josefsson <simon@josefsson.org>
7468 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7469 GETADDRINFO_LIB. Bump serial number.
7470 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7471 Suggested by Eric Blake <ebb9@byu.net>.
7473 2009-11-05 Eric Blake <ebb9@byu.net>
7475 strtod: detect darwin bug
7476 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7477 Reported by Leo Davis.
7479 freopen-safer: new module
7480 * modules/freopen-safer: New module.
7481 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7482 * lib/freopen-safer.c (freopen_safer): New file.
7483 * lib/stdio-safer.h (freopen_safer): New declaration.
7484 * lib/stdio--.h (freopen): New override.
7485 * MODULES.html.sh (File stream based Input/Output): Mention it.
7486 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7487 freopen-safer module.
7488 * doc/posix-functions/stderr.texi (stderr): Likewise.
7489 * doc/posix-functions/stdin.texi (stdin): Likewise.
7490 * doc/posix-functions/stdout.texi (stdout): Likewise.
7491 * modules/freopen-safer-tests: New test.
7492 * tests/test-reopen-safer.c: New file.
7494 2009-11-05 Jim Meyering <meyering@redhat.com>
7496 maint.mk: Prohibit inclusion of "close-stream.h" without use.
7497 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7499 2009-11-05 Simon Josefsson <simon@josefsson.org>
7501 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7503 2009-11-05 Simon Josefsson <simon@josefsson.org>
7505 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7507 2009-11-05 Simon Josefsson <simon@josefsson.org>
7510 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7511 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7513 2009-11-05 Simon Josefsson <simon@josefsson.org>
7515 * tests/test-func.c: Also test value of __func__.
7517 2009-11-05 Simon Josefsson <simon@josefsson.org>
7519 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7520 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
7522 2009-11-05 Bruno Haible <bruno@clisp.org>
7525 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7526 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7527 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7529 2009-11-05 Bruno Haible <bruno@clisp.org>
7531 Tests for module 'inet_pton'.
7532 * modules/inet_pton-tests: New file.
7533 * tests/test-inet_pton.c: New file.
7535 2009-11-05 Bruno Haible <bruno@clisp.org>
7537 Tests for module 'inet_ntop'.
7538 * modules/inet_ntop-tests: New file.
7539 * tests/test-inet_ntop.c: New file.
7541 2009-11-04 Eric Blake <ebb9@byu.net>
7543 stdlib-safer: wrap all mkstemp variants
7544 * modules/mkostemp (configure.ac): Set witness.
7545 * modules/mkostemps (configure.ac): Likewise.
7546 * modules/mkstemps (configure.ac): Likewise.
7547 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7548 (mkstemps_safer): Wrap more functions.
7549 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7551 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7552 (mkstemps_safer): Implement the wrappers.
7554 mkstemps, mkostemps: new modules
7555 * modules/mkostemps: New module.
7556 * modules/mkstemps: Likewise.
7557 * lib/mkostemps.c (mkostemps): New file.
7558 * lib/mkstemps.c (mkstemps): Likewise.
7559 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7560 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7561 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7562 * modules/stdlib (Makefile.am): Substitute them.
7563 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7564 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7565 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7566 * doc/gnulib.texi (Glibc stdlib.h): Include them.
7567 * MODULES.html.sh (File system functions): Mention them.
7569 tempname: resync from glibc
7570 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
7571 same values for __GT_FILE as glibc. Abort even when assertions
7573 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7574 match its value otherwise. Allow idempotent inclusion.
7575 * lib/mkdtemp.c (mkdtemp): Adjust caller.
7576 * lib/mkostemp.c (mkostemp): Likewise.
7577 * lib/mkstemp.c (mkstemp): Likewise.
7578 * lib/tmpfile.c (tmpfile): Likewise.
7579 * NEWS: Document this.
7581 utimens: fix use of futimens on older Linux
7582 * lib/utimens.c (fdutimens): Use updated, rather than original,
7583 timespec to avoid bug in older Linux kernel.
7584 Reported by Simon Josefsson.
7586 2009-11-04 Bruno Haible <bruno@clisp.org>
7588 Make num_processors more flexible and consistent.
7589 * lib/nproc.h (enum nproc_query): New type.
7590 (num_processors): Add a 'query' argument.
7591 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7592 (num_processors): Add a 'query' argument. Test the value of the
7593 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7594 mingw, count the number of CPUs available for the current process.
7595 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7596 Check for sched_getaffinity and sched_getaffinity_np.
7597 * modules/nproc (Depends-on): Add c-ctype, extensions.
7598 * NEWS: Mention the change.
7600 2009-11-03 Bruno Haible <bruno@clisp.org>
7602 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7604 2009-11-03 Jim Meyering <meyering@redhat.com>
7606 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7607 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7610 2009-11-02 Eric Blake <ebb9@byu.net>
7612 mktime, timegm: share common declaration
7613 * lib/mktime-internal.h: New file.
7614 * lib/mktime.c: Use it rather than open-coding a declaration.
7615 * lib/timegm.c: Likewise.
7616 * modules/mktime (Files): Ship it.
7617 * modules/timegm (Files): Likewise.
7618 Suggested by Bruno Haible.
7620 test-update-copyright: update test to match script changes
7621 * tests/test-update-copyright.sh: Avoid hard-coding perl
7622 location. Don't update *.bak created by earlier runs.
7624 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
7625 Simon Josefsson <simon@josefsson.org>
7626 Bruno Haible <bruno@clisp.org>
7628 Fix link error on Solaris 8.
7629 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7630 also in libnsl. Define also INET_PTON_LIB.
7631 * modules/inet_pton (Link): New section.
7633 2009-11-02 Simon Josefsson <simon@josefsson.org>
7634 Bruno Haible <bruno@clisp.org>
7636 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7637 * modules/inet_ntop (Link): New section.
7638 Reported by Boyan Kasarov <bkasarov@gmail.com>.
7640 2009-11-02 Eric Blake <ebb9@byu.net>
7642 maint: avoid compiler warnings in m4 macros
7643 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7644 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7646 2009-11-02 Simon Josefsson <simon@josefsson.org>
7648 * m4/pmccabe2html.m4: Remove file.
7649 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
7650 function. Change maintainer.
7651 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7652 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
7655 2009-10-31 Eric Blake <ebb9@byu.net>
7657 fseeko: fix m4 regression
7658 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
7659 regression from 2009-10-27.
7660 Reported by Ralf Wildenhues.
7662 2009-10-31 Jim Meyering <meyering@redhat.com>
7664 inttostr: aesthetics and improved (compile-time) safety
7665 Define inttype_is_signed rather than inttype_is_unsigned,
7666 since the sole use is via "#if inttype_is_signed".
7667 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7668 inttype_is_unsigned.
7669 * lib/offtostr.c (inttype_is_signed): Likewise.
7670 * lib/uinttostr.c (inttype_is_signed): Likewise.
7671 * lib/umaxtostr.c (inttype_is_signed): Likewise.
7672 * lib/inttostr.c (inttostr): Use verify to cross-check the
7673 inttype_is_signed value and the signedness of the actual type.
7674 * modules/inttostr (Depends-on): Add verify.
7676 2009-10-30 Eric Blake <ebb9@byu.net>
7678 build: avoid compiler warnings
7679 * lib/fchmodat.c (lchmod): Mark unused variables.
7680 * lib/getopt.c (_getopt_initialize): Likewise.
7681 * lib/mktime.c (__mktime_internal): Provide prototype.
7682 * lib/inttostr.c (inttostr): Avoid compiler warning even with
7683 older gcc that do not understand #pragma GCC diagnostic.
7684 * lib/uinttostr.c (inttype_is_unsigned): Define.
7685 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7687 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7689 stat: fix compilation on AIX
7690 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7691 only see struct stat64.
7693 2009-10-30 Eric Blake <ebb9@byu.net>
7695 exclude: make more robust
7696 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7697 rather than masking a coding bug.
7698 Suggested by Bruno Haible.
7700 2009-10-30 Jim Meyering <meyering@redhat.com>
7702 perl scripts: remove #!/usr/bin/perl in favor of more portable...
7703 Rather than putting #!/usr/bin/perl on the first line,
7704 start with a variant of what's recommended by "man perlrun" that
7705 invokes the first "perl" program from your shell's search path.
7706 * build-aux/gitlog-to-changelog: Replace #!... as above.
7707 Add a "Local Variables" perl mode setting.
7708 Prompted by a patch from Ludovic Courtès.
7709 Improved by Eric Blake.
7710 * build-aux/useless-if-before-free: Likewise.
7711 * build-aux/announce-gen: Likewise.
7712 * build-aux/update-copyright: Likewise.
7714 2009-10-29 Eric Blake <ebb9@byu.net>
7716 filenamecat-lgpl: adjust clients
7717 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7719 * modules/renameat (Depends-on): Likewise.
7721 filenamecat: split into filenamecat-lgpl
7722 * modules/filenamecat-lgpl: New module.
7723 * modules/filenamecat (Files): Move library-safe files into
7725 (Depends-on): Add filenamecat-lgpl.
7726 (configure.ac): Declare witness.
7727 * lib/filenamecat.h (file_name_concat): Only declare when using
7729 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7731 * lib/filenamecat-lgpl.c: ...into new file.
7732 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7733 (gl_FILE_NAME_CONCAT): Use it.
7734 * MODULES.html.sh (File system functions): Mention new module.
7736 argp: avoid memory leak
7737 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7738 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7739 base_name, since the latter malloc()s and can call exit().
7740 Leak introduced 2006-07-03.
7742 dirname-lgpl: adjust clients that don't need full dirname
7743 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7744 * modules/filenamecat (Depends-on): Likewise.
7745 * modules/linkat (Depends-on): Likewise.
7746 * modules/mkancesdirs (Depends-on): Likewise.
7747 * modules/mkdir (Depends-on): Likewise.
7748 * modules/openat (Depends-on): Likewise.
7749 * modules/savewd (Depends-on): Likewise.
7750 * modules/rename (Depends-on): Likewise.
7751 (License): Relax license.
7752 * modules/mkdir-tests (Depends-on): Drop progname.
7753 (Makefile.am): Delete unneeded LDADD.
7754 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7756 dirname: split into dirname-lgpl
7757 * modules/dirname-lgpl: New module.
7758 * modules/dirname (Files): Move library-safe files into
7760 (Depends-on): Add dirname-lgpl.
7761 (configure.ac): Declare witness.
7762 * modules/double-slash-root (License): Relax license.
7763 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7765 * lib/dirname.c (dir_len, mdir_name): Move...
7766 * lib/dirname-lgpl.c: ...into new file.
7767 * lib/basename.c (last_component, base_len): Move...
7768 * lib/basename-lgpl.c: ...into new file.
7769 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7770 (gl_DIRNAME): Use it.
7771 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7773 * modules/dirname-tests (Depends-on): Add progname.
7774 * tests/test-dirname.c (program_name): Delete.
7776 mkdir: make safe for libraries
7777 * modules/mkdir (Depends-on): Drop xalloc.
7778 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7781 tests: avoid some compiler warnings
7782 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7784 * tests/test-memchr.c (main): Avoid type mismatch.
7785 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7786 * tests/test-base64.c (main): Likewise.
7787 * tests/test-getdelim.c (main): Likewise.
7788 * tests/test-gethostname.c (main): Likewise.
7789 * tests/test-getline.c (main): Likewise.
7790 * tests/test-netinet_in.c (main): Likewise.
7791 * tests/test-select.c (open_server_socket, main): Likewise.
7792 * tests/test-select-stdin.c (main): Likewise.
7793 * tests/test-sockets.c (main): Likewise.
7794 * tests/test-strsignal.c (main): Likewise.
7795 * tests/test-sys_select.c (main): Likewise.
7796 * tests/test-sys_socket.c (main): Likewise.
7797 * tests/test-u64.c (main): Likewise.
7798 * tests/test-xfprintf-posix.c (main): Likewise.
7799 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7801 sockets: avoid compiler warning
7802 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7804 maint: detect usage(1) and other suspicious exits
7805 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7807 2009-10-29 Jim Meyering <meyering@redhat.com>
7809 timespec: long-to-int truncation could make timespec_cmp malfunction
7810 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7811 a multiple of 2^32 nanoseconds as no difference.
7813 2009-10-28 Jim Meyering <meyering@redhat.com>
7815 fprintftime: wrap macro code argument in "do {...} while(0)"
7816 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7817 cpy macro must be a statement that can be followed by a semicolon.
7818 Now that the else clause contains a comment and is hence longer
7819 than one line, I require curly braces. That in turn requires
7820 that we wrap this code block in the standard do...while(0).
7822 fprintftime: remove stray semicolon from previous change
7823 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7825 fprintftime: avoid a warning about ignored fwrite return value
7826 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7827 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7829 * modules/fprintftime (Depends-on): Add ignore-value.
7831 exclude: avoid an unwarranted warning
7832 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7834 2009-10-27 Eric Blake <ebb9@byu.net>
7836 fseek: avoid compilation failure when fflush is replaced
7837 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7838 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7840 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7841 module is not in use; since REPLACE_FSEEK worked otherwise.
7842 (GNULIB_FTELLO): Likewise for ftell.
7843 Reported by Ian Beckwith and others.
7845 2009-10-27 Bruno Haible <bruno@clisp.org>
7847 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7848 Reported by Jim Meyering.
7850 2009-10-27 Jim Meyering <jim@meyering.net>
7851 Bruno Haible <bruno@clisp.org>
7853 Avoid warning despite dropping the return value of fwrite.
7854 * lib/unicodeio.c: Include ignore-value.h.
7855 (fwrite_success_callback): Explicitly ignore fwrite's return value.
7856 * modules/unicodeio (Depends-on): Add ignore-value.
7858 2009-10-26 Eric Blake <ebb9@byu.net>
7860 areadlinkat: fix fallback path
7861 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7864 2009-10-22 Pádraig Brady <P@draigBrady.com>
7866 Use a better IO block size for modern systems
7867 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7868 * lib/md2.c: Likewise.
7869 * lib/md4.c: Likewise.
7870 * lib/md5.c: Likewise.
7871 * lib/sha1.c: Likewise.
7872 * lib/sha256.c: Likewise.
7873 * lib/sha512.c: Likewise.
7875 2009-10-22 Eric Blake <ebb9@byu.net>
7877 tests: avoid several compiler warnings
7878 * tests/test-getcwd.c (main): Avoid buffer underflow.
7879 * tests/test-getdate.c (main): String literals are not safe with
7880 putenv, so use setenv. Declare unused argument.
7881 * modules/getdate-tests (Depends-on): Add setenv.
7882 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
7883 problems with string literals in char *.
7884 * tests/test-hash.c (main): Avoid shadowing declaration.
7885 (insert_new): Treat string literals as char const *.
7886 * tests/test-getopt.h (test_getopt): Likewise.
7887 (getopt_loop): Alter types to minimize casting elsewhere.
7888 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7889 (test_getopt_long_posix): Likewise.
7890 (do_getopt_long): Add wrapper to minimize casting.
7891 * tests/test-atexit.c (clear_temp_file): Use void.
7892 * tests/test-areadlink-with-size.c (main): Declare unused
7894 * tests/test-areadlink.c (main): Likewise.
7895 * tests/test-areadlinkat-with-size.c (main): Likewise.
7896 * tests/test-areadlinkat.c (main): Likewise.
7897 * tests/test-canonicalize-lgpl.c (main): Likewise.
7898 * tests/test-canonicalize.c (main): Likewise.
7899 * tests/test-dirent-safer.c (main): Likewise.
7900 * tests/test-dirname.c (main): Likewise.
7901 * tests/test-dup2.c (main): Likewise.
7902 * tests/test-fchdir.c (main): Likewise.
7903 * tests/test-fcntl-h.c (main): Likewise.
7904 * tests/test-fcntl-safer.c (main): Likewise.
7905 * tests/test-fdopendir.c (main): Likewise.
7906 * tests/test-fdutimensat.c (main): Likewise.
7907 * tests/test-fflush.c (main): Likewise.
7908 * tests/test-filenamecat.c (main): Likewise.
7909 * tests/test-filevercmp.c (main): Likewise.
7910 * tests/test-fopen-safer.c (main): Likewise.
7911 * tests/test-fopen.c (main): Likewise.
7912 * tests/test-fpending.c (main): Likewise.
7913 * tests/test-fpurge.c (main): Likewise.
7914 * tests/test-freading.c (main): Likewise.
7915 * tests/test-fstatat.c (main): Likewise.
7916 * tests/test-fsync.c (main): Likewise.
7917 * tests/test-futimens.c (main): Likewise.
7918 * tests/test-getndelim2.c (main): Likewise.
7919 * tests/test-gettimeofday.c (main): Likewise.
7920 * tests/test-getopt.c (main): Likewise.
7921 * tests/test-i-ring.c (main): Likewise.
7922 * tests/test-inttypes.c (main): Likewise.
7923 * tests/test-link.c (main): Likewise.
7924 * tests/test-lstat.c (main): Likewise.
7925 * tests/test-math.c (main): Likewise.
7926 * tests/test-md5.c (main): Likewise.
7927 * tests/test-memchr2.c (main): Likewise.
7928 * tests/test-memrchr.c (main): Likewise.
7929 * tests/test-mkdir.c (main): Likewise.
7930 * tests/test-mkdirat.c (main): Likewise.
7931 * tests/test-mkfifoat.c (main): Likewise.
7932 * tests/test-open.c (main): Likewise.
7933 * tests/test-openat-safer.c (main): Likewise.
7934 * tests/test-openat.c (main): Likewise.
7935 * tests/test-quotearg.c (main): Likewise.
7936 * tests/test-rawmemchr.c (main): Likewise.
7937 * tests/test-readlink.c (main): Likewise.
7938 * tests/test-remove.c (main): Likewise.
7939 * tests/test-rename.c (main): Likewise.
7940 * tests/test-renameat.c (main): Likewise.
7941 * tests/test-rmdir.c (main): Likewise.
7942 * tests/test-sha1.c (main): Likewise.
7943 * tests/test-signal.c (main): Likewise.
7944 * tests/test-sigaction.c (main): Likewise.
7945 * tests/test-stat.c (main): Likewise.
7946 * tests/test-stat-time.c (main): Likewise.
7947 * tests/test-stddef.c (main): Likewise.
7948 * tests/test-stdint.c (main): Likewise.
7949 * tests/test-stdio.c (main): Likewise.
7950 * tests/test-stdlib.c (main): Likewise.
7951 * tests/test-strchrnul.c (main): Likewise.
7952 * tests/test-strerror.c (main): Likewise.
7953 * tests/test-string.c (main): Likewise.
7954 * tests/test-strtod.c (main): Likewise.
7955 * tests/test-strverscmp.c (main): Likewise.
7956 * tests/test-symlink.c (main): Likewise.
7957 * tests/test-symlinkat.c (main): Likewise.
7958 * tests/test-sys_stat.c (main): Likewise.
7959 * tests/test-sys_time.c (main): Likewise.
7960 * tests/test-time.c (main): Likewise.
7961 * tests/test-unistd.c (main): Likewise.
7962 * tests/test-unlink.c (main): Likewise.
7963 * tests/test-unlinkat.c (main): Likewise.
7964 * tests/test-utimens.c (main): Likewise.
7965 * tests/test-utimensat.c (main): Likewise.
7966 * tests/test-version-etc.c (main): Likewise.
7967 * tests/test-wchar.c (main): Likewise.
7968 * tests/test-wctype.c (main): Likewise.
7969 * tests/test-xprintf-posix.c (main): Likewise.
7970 * tests/test-posixtm.c (main): Likewise.
7971 (STREQ): Delete unused macro.
7972 * tests/test-linkat.c (main): Declare unused arguments. Avoid
7974 * tests/test-memchr.c (main): Likewise.
7976 2009-10-21 Eric Blake <ebb9@byu.net>
7978 areadlinkat: avoid failure on older glibc
7979 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7980 rather than mis-comparing 0 against FUNC_RESULT of char*.
7982 2009-10-21 Bruno Haible <bruno@clisp.org>
7984 * modules/stpncpy (License): Relicense under LGPLv2+.
7985 Reported by David Lutterkort <lutter@redhat.com>.
7987 2009-10-20 Eric Blake <ebb9@byu.net>
7989 utimensat: work around Solaris 9 bug
7990 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7991 has trailing slash bugs.
7992 * tests/test-lutimens.h (test_lutimens): Enhance test.
7993 * tests/test-utimens.h (test_utimens): Likewise.
7994 * doc/posix-functions/utime.texi (utime): Enhance documentation.
7995 * doc/posix-functions/utimes.texi (utimes): Likewise.
7996 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7997 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7998 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7999 * doc/posix-functions/futimens.texi (futimens): Likewise.
8001 fdutimensat: new module
8002 * modules/fdutimensat: New file.
8003 * lib/fdutimensat.c (fdutimensat): Likewise.
8004 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8005 * MODULES.html.sh (File system functions): Mention module.
8006 * modules/fdutimensat-tests: New test.
8007 * tests/test-fdutimensat.c: Likewise.
8009 doc: regenerate INSTALL
8010 * doc/INSTALL: Reflect recent autoconf update.
8011 * doc/INSTALL.ISO: Likewise.
8012 * doc/INSTALL.UTF-8: Likewise.
8014 2009-10-20 Pádraig Brady <P@draigBrady.com>
8016 acl: warn if ACL support is not detected
8017 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8019 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
8021 * lib/nproc.h: Add extern "C" block for C++.
8023 2009-10-18 Reuben Thomas <rrt@sc3d.org>
8024 Bruno Haible <bruno@clisp.org>
8026 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8027 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8028 * doc/posix-functions/isalpha.texi: Likewise.
8029 * doc/posix-functions/isblank.texi: Likewise.
8030 * doc/posix-functions/iscntrl.texi: Likewise.
8031 * doc/posix-functions/isdigit.texi: Likewise.
8032 * doc/posix-functions/isgraph.texi: Likewise.
8033 * doc/posix-functions/islower.texi: Likewise.
8034 * doc/posix-functions/isprint.texi: Likewise.
8035 * doc/posix-functions/ispunct.texi: Likewise.
8036 * doc/posix-functions/isspace.texi: Likewise.
8037 * doc/posix-functions/isupper.texi: Likewise.
8038 * doc/posix-functions/isxdigit.texi: Likewise.
8040 2009-10-18 Bruno Haible <bruno@clisp.org>
8042 Tests for module 'isblank'.
8043 * modules/isblank-tests: New file.
8044 * tests/test-isblank.c: New file.
8046 New module 'isblank'.
8047 * lib/isblank.c: New file.
8048 * m4/isblank.m4: New file.
8049 * modules/isblank: New file.
8050 * doc/posix-functions/isblank.texi: Mention the new module.
8052 2009-10-18 Bruno Haible <bruno@clisp.org>
8055 * lib/ctype.in.h: New file.
8056 * m4/ctype.m4: New file.
8057 * modules/ctype: New file.
8058 * doc/posix-headers/ctype.texi: Mention the new module.
8060 2009-10-18 Jim Meyering <meyering@redhat.com>
8062 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8063 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8064 right after its initialization, rather than farther down.
8065 Keeping these in close proximity makes it easier to ensure
8066 that each such variable is initialized. E.g.,
8069 AC_SUBST([LIB_CLOCK_GETTIME])
8071 This change also increments these serial numbers.
8072 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8073 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8074 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8076 2009-10-18 Bruno Haible <bruno@clisp.org>
8078 Don't let environment variables perturb build.
8079 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8080 (gl_PREREQ_GETHRXTIME): ... not here.
8082 2009-10-18 Bruno Haible <bruno@clisp.org>
8084 Avoid symlink attack in localcharset module.
8085 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8086 (O_NOFOLLOW): Define fallback.
8087 (get_charset_aliases): Don't open the file if it is a symbolic link.
8088 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8090 (gl_FCNTL_H): Require it.
8091 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8092 * modules/localcharset (Files): Add m4/fcntl_h.m4.
8093 Reported by Fergal Glynn <fglynn@veracode.com>.
8095 2009-10-18 Bruno Haible <bruno@clisp.org>
8097 Implement nproc for mingw.
8098 * lib/nproc.c: Include <windows.h>
8099 (num_processors): On native Windows platforms, try GetSystemInfo.
8101 2009-10-18 Bruno Haible <bruno@clisp.org>
8103 Implement nproc for IRIX.
8104 * lib/nproc.c: Include <sys/sysmp.h>.
8105 (num_processors): On IRIX systems, try sysmp.
8106 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8108 2009-10-18 Bruno Haible <bruno@clisp.org>
8110 Implement nproc for HP-UX.
8111 * lib/nproc.c: Include <sys/pstat.h>
8112 (num_processors): On HP-UX systems, try pstat_getdynamic.
8113 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8116 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
8117 Bruno Haible <bruno@clisp.org>
8119 Implement nproc for NetBSD, OpenBSD.
8120 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8121 (ARRAY_SIZE): New macro.
8122 (num_processors): On BSD systems, try sysctl of HW_NCPU.
8123 * m4/nproc.m4: New file.
8124 * modules/nproc (Files): Add m4/nproc.m4.
8125 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8126 (Makefile.am): Instead, augment lib_SOURCES.
8128 2009-10-18 Bruno Haible <bruno@clisp.org>
8130 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8131 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8134 2009-10-16 Eric Blake <ebb9@byu.net>
8136 utimensat: new module
8137 * modules/utimensat: New file.
8138 * lib/utimensat.c (utimensat): Likewise.
8139 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8140 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8141 so we can work around Linux bugs.
8142 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8143 * modules/sys_stat (Makefile.am): Substitute them.
8144 * lib/sys_stat.in.h (utimensat): Declare it.
8145 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8146 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8147 * modules/utimensat-tests: New test.
8148 * tests/test-utimensat.c: Likewise.
8150 utimens: let lutimens work on non-symlinks
8151 * lib/utimens.c (lutimens): Fall back to utimens rather than
8152 failing with ENOSYS, when file is not a symlink.
8153 (utimens): Reduce redirection.
8154 * tests/test-lutimens.h (test_lutimens): Update test to cover
8156 * tests/test-utimens.h (test_utimens): Update test to cover
8158 * tests/test-utimens.c (main): Update caller.
8160 utimens: cache whether utimensat syscall works
8161 * lib/utimens.c (utimensat_works_really): New cache variable.
8162 (fdutimens, lutimens): Use it to avoid failing syscall.
8164 test-stat-time, test-utimens: improve portability
8165 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8166 ext4 on alpha, and for cygwin.
8167 * tests/test-utimens-common.h: New file.
8168 (nap): Factor delays into single function.
8169 * tests/test-lutimens.h (test_lutimens): Use new header.
8170 * tests/test-futimens.h (test_futimens): Likewise.
8171 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
8172 timestamps to occur from same machine, as was done previously for
8174 * modules/utimens-tests (Files): Ship new file.
8175 * modules/futimens-tests (Files): Likewise.
8176 Reported in part by Jim Meyering.
8178 sys_stat: sort replacement declarations
8179 * lib/sys_stat.in.h: Sort declarations.
8180 * lib/futimens.c (futimens): Fix typo.
8182 2009-10-15 Jim Meyering <meyering@redhat.com>
8184 don't let environment settings perturb build
8185 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8186 could cause a configure-time and/or build-time malfunction.
8187 Typically, a configure-time function-in-library test is performed
8192 prefix_saved_LIBS=$LIBS
8193 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8194 [test "$ac_cv_search_FUNC" = "none required" ||
8195 LIB_VAR=$ac_cv_search_FUNC])
8196 LIBS=$prefix_saved_LIBS
8198 However, in each of the files affected by this change, the LIB_VAR=
8199 initialization was omitted. Thus, when set in the environment, its
8200 value would propagate into generated Makefiles when FUNC is not found
8202 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8203 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8204 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8206 2009-10-14 Eric Blake <ebb9@byu.net>
8208 fchdir: avoid infinite recursion in mingw
8209 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8212 test-stat-time: port to mingw
8213 * tests/test-stat-time.c (force_unlink): Return a value.
8214 (test_ctime) [W32]: Fix compilation error.
8215 (nap): Don't call usleep with too large an argument. Use
8217 * doc/pastposix-functions/usleep.texi (usleep): Document the
8220 2009-10-13 Jim Meyering <meyering@redhat.com>
8222 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8223 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8224 * modules/pipe-filter-ii: Likewise.
8225 * modules/sys_socket-tests: Likewise.
8226 * modules/tsearch-tests: Likewise.
8227 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8228 (check): Depend on it.
8230 2009-10-12 Eric Blake <ebb9@byu.net>
8232 utimens-tests: port to NFS file systems
8233 * tests/test-utimens.h (test_utimens): Refactor utimecmp
8234 comparisons to avoid spurious failures from timestamp drift
8235 between NFS machines.
8237 2009-10-12 Eric Blake <ebb9@byu.net>
8239 stat-time-tests: minor cleanups
8240 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8241 * tests/test-stat-time.c (nap): Separate assignment from call.
8242 Suggested by Paolo Bonzini and Bruno Haible.
8244 sys_stat: guarantee struct timespec
8245 * lib/sys_stat.in.h (includes): Always include <time.h>
8246 * modules/sys_stat (Depends-on): Add time.
8247 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8248 mode_t permission values.
8249 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8250 get at subsecond timestamps.
8252 2009-10-10 Eric Blake <ebb9@byu.net>
8254 futimens: new module
8255 * modules/futimens: New file.
8256 * lib/futimens.c (futimens): Likewise.
8257 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8258 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8259 we can work around Linux bugs.
8260 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8261 * modules/sys_stat (Makefile.am): Substitute them.
8262 * lib/sys_stat.in.h (futimens): Declare it.
8263 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8264 * doc/posix-functions/futimens.texi (futimens): Likewise.
8265 * modules/futimens-tests: New test.
8266 * tests/test-futimens.c: Likewise.
8268 utimens: introduce fdutimens
8269 * lib/utimens.h (fdutimens): New prototype.
8270 * lib/utimens.c (gl_futimens): Move guts...
8271 (fdutimens): ...to new interface.
8272 * tests/test-utimens.c (do_fdutimens): Use it.
8274 utimens: add UTIME_NOW and UTIME_OMIT support
8275 * lib/utimens.c (validate_timespec, update_timespec): New helper
8277 (gl_futimens, lutimens): Use them.
8278 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8280 (Link): Mention resulting library dependency.
8281 * modules/utimecmp (Link): Likewise.
8282 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8283 (Makefile.am): Pick up library dependency.
8284 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8286 * tests/test-sys_stat.c: Test the definitions.
8287 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8288 * NEWS: Document library dependency.
8290 utimecmp: support symlink timestamps
8291 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8292 hashing when possible. Use pathconf when available.
8293 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8294 * modules/utimecmp (Depends-on): Add lstat.
8296 utimens: add lutimens interface
8297 * lib/utimens.c (lutimens): New function.
8298 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8299 * lib/utimens.h (lutimens): Declare new interface.
8300 * tests/test-utimens.c (main): Enhance test.
8301 * tests/test-lutimens.h (test_lutimens): New file.
8302 * modules/utimens-tests (Files): Distribute it.
8303 (Depends-on): Add symlink.
8304 (configure.ac): Check for usleep.
8306 utimens: validate futimens usage
8307 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8308 fewer syscalls on failure later on. Avoid compiler warning on
8310 * modules/utimens (Depends-on): Add dup2.
8313 * modules/utimens-tests: New test.
8314 * tests/test-utimens.h: New file.
8315 * tests/test-futimens.h: Likewise.
8316 * tests/test-utimens.c: Likewise.
8318 doc: mention timestamp portability issues
8319 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8321 * doc/posix-functions/utime.texi (utime): Likewise.
8322 * doc/posix-functions/utimes.texi (utimes): Likewise.
8323 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8325 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8327 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8328 Mention weakness with symlink timestamps.
8329 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8330 to utimensat/futimens instead.
8331 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8333 test-dup2: enhance test
8334 * tests/test-dup2.c (main): Also check AT_FDCWD.
8336 test-stat-time: avoid more spurious failures
8337 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8338 xfs; and avoid race if the two timestamps cross quantization edge.
8340 relocatable: prefer 'file system' over 'filesystem'
8341 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8342 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8343 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8344 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8345 * lib/relocatable.c (compute_curr_prefix): Likewise.
8347 2009-10-10 Jim Meyering <meyering@redhat.com>
8349 stat-time-tests: check for the usleep function
8350 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8352 2009-10-10 Bruno Haible <bruno@clisp.org>
8354 * modules/xnanosleep: Put the Link section after the Include section.
8356 2009-10-09 Eric Blake <ebb9@byu.net>
8358 dup2: work around FreeBSD 6.1 bug
8359 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8360 * doc/posix-functions/dup2.texi (dup2): Document it.
8361 Reported by Nelson H. F. Beebe and Jim Meyering.
8363 test-stat-time: port to buggy NFS clients
8364 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8365 (test_ctime): Also skip test if mtime and ctime are skewed.
8367 maint: prefer 'file system' over 'filesystem'
8368 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8369 * doc/posix-functions/lstat.texi (lstat): Likewise.
8370 * lib/file-has-acl.c (file_has_acl): Likewise.
8371 * lib/fwriteerror.c [TEST]: Likewise.
8372 * tests/test-areadlink.h (test_areadlink): Likewise.
8373 * tests/test-areadlinkat-with-size.c (main): Likewise.
8374 * tests/test-areadlinkat.c (main): Likewise.
8375 * tests/test-canonicalize-lgpl.c (main): Likewise.
8376 * tests/test-canonicalize.c (main): Likewise.
8377 * tests/test-fstatat.c (main): Likewise.
8378 * tests/test-linkat.c (main): Likewise.
8379 * tests/test-lstat.h (test_lstat_func): Likewise.
8380 * tests/test-mkdir.h (test_mkdir): Likewise.
8381 * tests/test-readlink.h (test_readlink): Likewise.
8382 * tests/test-remove.c (main): Likewise.
8383 * tests/test-rename.h (test_rename): Likewise.
8384 * tests/test-renameat.c (main): Likewise.
8385 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8386 * tests/test-symlink.h (test_symlink): Likewise.
8387 * tests/test-symlinkat.c (main): Likewise.
8388 * tests/test-unlink.h (test_unlink_func): Likewise.
8389 * tests/test-unlinkat.c (main): Likewise.
8391 maint: make realtime library usage explicit
8392 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8393 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8394 * modules/settime (Link): Likewise.
8395 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8397 test-stat-time: speed up execution
8398 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8400 (nap): New helper function.
8401 (prepare_test): Use it to reduce sleep time.
8402 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8404 * modules/stat-time-tests (configure.ac): Check for usleep.
8406 2009-10-09 Jim Meyering <meyering@redhat.com>
8408 selinux-h: always use getfilecon wrappers
8409 * lib/getfilecon.c: New file.
8410 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8411 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8412 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8413 (fgetfilecon): Provide a stub.
8414 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8415 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8416 file unconditionally.
8417 When <selinux/selinux.h> is found, arrange to use wrappers.
8418 * modules/selinux-h (Files): Add getfilecon.c.
8419 (Makefile.am): Substitute include-next-related bits
8420 into the now-always-generated selinux/selinux.h file.
8421 * doc/glibc-functions/lgetfilecon.texi: New file.
8422 * doc/glibc-functions/fgetfilecon.texi: New file.
8423 * doc/glibc-functions/getfilecon.texi: New file.
8424 * doc/glibc-functions/getfilecon-desc.texi: New file.
8425 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8426 which to pull in the new files.
8427 * MODULES.html.sh (Misc): Add selinux-h.
8429 2009-10-08 Jim Meyering <meyering@redhat.com>
8431 unistd: fix comment typo
8432 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8434 2009-10-08 Eric Blake <ebb9@byu.net>
8436 areadlink: use SIZE_MAX consistently
8437 * modules/areadlink (Depends-on): Add stdint.
8438 * modules/areadlink-with-size (Depends-on): Likewise.
8439 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8440 gives NULL; drop sys/types, since unistd gives size_t; and add
8441 stdint for SIZE_MAX.
8442 (SIZE_MAX): Rely on headers.
8443 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8445 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8446 (SIZE_MAX): Likewise.
8447 (INITIAL_BUF_SIZE): Turn into enum.
8448 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8450 2009-10-08 Jim Meyering <meyering@redhat.com>
8452 areadlinkat: avoid compilation failure
8453 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8454 Fix typo in comment.
8456 2009-10-07 Eric Blake <ebb9@byu.net>
8458 areadlinkat-with-size: new module
8459 * modules/areadlinkat-with-size: New module.
8460 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8461 * lib/areadlink.h (areadlinkat): Declare it.
8462 * MODULES.html.sh (File system functions): Mention it.
8463 * modules/areadlinkat-with-size-tests: New test.
8464 * tests/test-areadlinkat-with-size.c: New file.
8466 xreadlinkat: new module
8467 * modules/xreadlinkat: New module.
8468 * lib/xreadlinkat.c (xreadlinkat): New file.
8469 * lib/xreadlink.h (xreadlinkat): Declare it.
8470 * MODULES.html.sh (File system functions): Mention it.
8472 areadlinkat: new module
8473 * lib/at-func.c (FUNC_FAIL): New define.
8474 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8475 * modules/areadlinkat: New module.
8476 * lib/linkat.c (areadlinkat): Move...
8477 * lib/areadlinkat.c (areadlinkat): ...to new file.
8478 * lib/areadlink.h (areadlinkat): Declare it.
8479 * modules/linkat (Depends-on): Add areadlinkat.
8480 * MODULES.html.sh (File system functions): Mention it.
8481 * modules/areadlinkat-tests: New test.
8482 * tests/test-areadlinkat.c: New file.
8484 areadlink, areadlink-with-size: add tests
8485 * modules/areadlink-tests: New test.
8486 * modules/areadlink-with-size-tests: Likewise.
8487 * tests/test-areadlink.h: New file.
8488 * tests/test-areadlink.c: Likewise.
8489 * tests/test-areadlink-with-size.c: Likewise.
8491 maint: minor cleanups
8492 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8493 _UNUSED_PARAMETER_ instead.
8494 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8495 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8496 * modules/linkat-tests (Files): Distribute test-link.h.
8498 openat, utimens: whitespace cleanup
8499 * lib/openat.c: Prefer space throughout, rather than mix of 8
8501 * lib/at-func.c: Likewise.
8502 * lib/utimens.c: Likewise.
8504 openat: avoid using wrong fd
8505 * lib/openat.c (openat_permissive): Reject user's fd if saving the
8506 working directory chooses same fd.
8507 * lib/at-func.c (AT_FUNC_NAME): Likewise.
8509 mkdir, mkdirat: fix cygwin 1.5.x bug
8510 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8511 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8512 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8514 (gl_PREREQ_MKDIR): Delete unused macro.
8515 * modules/mkdir (Files): Track file rename.
8516 (configure.ac): Update macro name.
8517 * modules/openat (Depends-on): Add mkdir.
8518 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8520 mkdir, mkdirat: add tests
8521 * modules/mkdir-tests: New test.
8522 * tests/test-mkdir.h: New file.
8523 * tests/test-mkdir.c: Likewise.
8524 * tests/test-mkdirat.c: Likewise.
8525 * modules/openat-tests (Files): Add new files.
8526 (Makefile.am): Run new test.
8528 2009-10-06 Eric Blake <ebb9@byu.net>
8530 doc: tweak *at function documentation
8531 * doc/posix-functions/faccessat.texi (faccessat): Mention
8532 known issue with replacement.
8533 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8534 * doc/posix-functions/linkat.texi (linkat): Likewise.
8535 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8536 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8537 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8538 * doc/posix-functions/renameat.texi (renameat): Likewise.
8539 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8541 openat: fix GNU/Hurd bug in unlinkat
8542 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8544 * doc/posix-functions/unlink.texi (unlink): Document this.
8545 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8547 fdopendir: fix GNU/Hurd bug
8548 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8549 allowing non-directory fds.
8550 * lib/fdopendir.c (rpl_fdopendir): Work around it.
8551 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8552 * modules/dirent (Makefile.am): Substitute it.
8553 * lib/dirent.in.h (fdopendir): Declare replacement.
8554 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8555 * tests/test-fdopendir.c (main): Test something other than
8556 /dev/null, since on Hurd that behaves like a directory.
8558 test-symlink: port to GNU/Hurd
8559 * tests/test-symlink.h (test_symlink): Relax expected errno.
8561 doc: tweak more cygwin information
8562 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8563 now compatible with glibc.
8564 * doc/posix-functions/getopt.texi (getopt): Likewise.
8566 getopt-gnu: add another test
8567 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8568 guarantee behavior relied on by m4.
8569 * tests/test-getopt.c (main): Use it.
8570 * modules/getopt-posix-tests (Depends-on): Add setenv.
8571 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8573 getopt: fix compilation on darwin
8574 * lib/getopt.in.h (includes): Leave breadcrumbs during system
8576 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8577 Reported by Ludovic Courtès.
8579 2009-10-06 Bruno Haible <bruno@clisp.org>
8581 * modules/size_max (Description): Discourage its use.
8582 Reported by Simon Josefsson.
8584 2009-10-06 Jim Meyering <meyering@redhat.com>
8586 linkat: avoid compilation failure
8587 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8589 2009-10-05 Eric Blake <ebb9@byu.net>
8591 linkat: support Linux 2.6.17
8592 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8593 linkat on Linux, but allow cache variable override.
8594 * lib/linkat.c (rpl_linkat): Define override.
8595 * modules/linkat (Depends-on): Add symlinkat.
8596 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8597 * modules/unistd (Makefile.am): Substitute it.
8598 * lib/unistd.in.h (linkat): Declare replacement.
8599 Reported by Pádraig Brady.
8601 quotearg: port test to systems with C.UTF-8 locale
8602 * tests/test-quotearg.c (struct result_strings): Add another
8603 member, differentiating between C.ASCII and C.UTF-8 handling.
8604 (compare_strings): Add parameter.
8605 (main): Adjust all callers.
8607 getopt: avoid clash with FreeBSD _getopt_internal
8608 * lib/getopt.in.h (_getopt_internal): Override the name.
8609 * lib/getopt_int.h (includes): Pick up any overrides.
8610 Reported by Reuben Thomas.
8612 hash: allow C89 compilation
8613 * lib/hash.c (check_tuning): Move declaration before statement.
8614 Reported by Reuben Thomas.
8616 2009-10-05 Karl Berry <karl@gnu.org>
8618 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8620 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
8621 Bruno Haible <bruno@clisp.org>
8623 * lib/uname.c (uname): Use a table-driven algorithm to compute
8624 Windows NT versions.
8626 2009-10-04 Bruno Haible <bruno@clisp.org>
8628 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8629 program_invocation_short_name.
8630 * modules/progname (configure.ac): Test for presence of
8631 program_invocation_short_name.
8632 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8634 2009-10-04 Bruno Haible <bruno@clisp.org>
8636 * lib/progname.c (set_program_name): Fix comment.
8637 Reported by Jim Meyering.
8639 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8640 Bruno Haible <bruno@clisp.org>
8642 * lib/uname.c: Include <string.h>.
8643 (uname): Do only one call to GetVersionEx in the common case.
8645 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8646 Bruno Haible <bruno@clisp.org>
8648 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8649 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8650 (uname): Add support for Windows CE and various non-x86 CPU types.
8652 2009-10-03 Bruno Haible <bruno@clisp.org>
8654 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8655 invocation to tests/configure.ac.
8656 Reported by Ian Beckwith <ianb@erislabs.net>.
8658 2009-10-02 Eric Blake <ebb9@byu.net>
8660 fchdir: avoid compiler warning
8661 * lib/fchdir.c (canonicalize_file_name)
8662 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8664 test-open: support mingw errno values
8665 * tests/test-open.h (test_open): Relax test.
8666 * tests/test-fopen.h (test_fopen): Likewise.
8667 * tests/test-openat-safer.c (main): Likewise.
8669 open: fix opening directory on mingw
8670 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8672 test-open: on GNU/Hurd, /dev/null is a directory
8673 * tests/test-fopen.h (main): Rename...
8674 (test_fopen): ...to this. Use a guaranteed non-directory when
8675 confirming open behavior on trailing slash.
8676 * tests/test-openat-safer.c (main): Likewise.
8677 * tests/test-open.h (main): Likewise....
8678 (test_open): ...to this.
8679 * tests/test-fopen.c (main): Adjust caller.
8680 * tests/test-fopen-safer.c (main): Likewise.
8681 * tests/test-open.c (main): Likewise.
8682 * tests/test-fcntl-safer.c (main): Likewise.
8683 Reported by Samuel Thibault.
8685 rename, fchdir: don't ignore chdir failure
8686 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8687 * lib/rename.c (rpl_rename) [W32]: Likewise.
8688 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8689 an empty destination directory if source cannot be renamed,
8690 although there is still possibility for failure.
8691 * doc/posix-functions/rename.texi (rename): Document the race.
8692 Reported by Jim Meyering.
8694 maint: cleanup whitespace in recent commits
8695 * lib/rename.c (rpl_rename): Remove tabs.
8696 * tests/test-link.h (test_link): Likewise.
8697 * lib/fchdir.c (get_name): Likewise.
8698 Reported by Jim Meyering.
8700 2009-10-02 Ben Pfaff <blp@gnu.org>
8702 relocatable-prog-wrapper: Add missing dependency on
8704 * modules/relocatable-prog-wrapper: Add dependency.
8705 Reported by Ian Beckwith <ianb@erislabs.net>.
8707 2009-10-02 Eric Blake <ebb9@byu.net>
8709 renameat: fix Solaris bugs
8710 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8712 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8713 * modules/stdio (Makefile.am): Substitute it.
8714 * lib/stdio.in.h (renameat): Declare replacement.
8715 * lib/renameat.c (rpl_renameat): Implement fix.
8717 renameat: new module
8718 * modules/renameat: New file.
8719 * lib/renameat.c (renameat): Likewise.
8720 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8721 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8722 * modules/stdio (Makefile.am): Substitute them.
8723 * lib/stdio.in.h (renameat): Declare it.
8724 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8725 * doc/posix-functions/renameat.texi (renameat): Likewise.
8726 * modules/renameat-tests: New test.
8727 * tests/test-renameat.c: Likewise.
8729 rename: fix mingw bugs
8730 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8731 directory overwrite bugs.
8733 rename: fix another cygwin 1.5 bug
8734 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8736 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8737 unnecessary cygwin workarounds. Also work around bug with moving
8738 full directory onto an empty one.
8739 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8741 rename-dest-slash: merge into rename module
8742 * modules/rename-dest-slash (Status): Mark obsolete.
8743 (Depends-on): Add rename.
8744 (Files): Let rename do it all.
8745 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8746 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8747 * m4/rename-dest-slash.m4: ...so this file can be deleted.
8748 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8749 * lib/rename.c (rpl_rename): Update comments.
8751 rename: fix cygwin 1.5.x bugs
8752 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8753 * lib/rename.c (rpl_rename): Work around them.
8754 * modules/rename (Depends-on): Add same-inode.
8756 rename: fix Solaris 10 bug
8757 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8758 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8761 rename: fix Solaris 9 bug
8762 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8763 on non-directory. Avoid calling exit.
8764 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8766 * modules/rename-tests (Depends-on): Drop lstat.
8767 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8768 (gl_PREREQ_RENAME): Delete unused macro.
8770 rename-dest-slash: fix NetBSD bug
8771 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8773 * modules/rename-dest-slash (Depends-on): Add same-inode.
8775 rename-tests: new test, exposes several platform bugs
8776 * modules/rename-tests: New file.
8777 * tests/test-rename.h: Likewise.
8778 * tests/test-rename.c: Likewise.
8779 * doc/posix-functions/rename.texi (rename): Improve documentation,
8780 including bugs that will eventually be fixed in gnulib.
8782 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8784 * lib/uname.c: Include <stdlib.h>
8785 (uname): Assume version info is available.
8787 2009-10-02 Jim Meyering <meyering@redhat.com>
8789 gnu-web-doc-update: correct --help output
8790 * build-aux/gnu-web-doc-update: Make --help output relevant.
8792 gnu-web-doc-update: add standard options
8793 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8795 gnu-web-doc-update: New module.
8796 Use this script to automatically update the on-line web documentation
8797 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8798 * modules/gnu-web-doc-update: New file, from coreutils.
8799 * build-aux/gnu-web-doc-update: New script.
8801 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8803 link: LoadLibrary is not needed.
8804 * lib/link.c: Use GetModuleHandle.
8806 2009-10-01 Eric Blake <ebb9@byu.net>
8808 getopt: bump serial number
8809 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8812 tests: tighten link, rmdir, and remove tests
8813 * tests/test-link.h (includes): No need to use <config.h> here.
8814 Clean up if directory hard link was created, otherwise test for
8816 * tests/test-linkat.c (main): Simplify.
8817 * tests/test-remove.c (main): Enhance test for trailing '.'.
8818 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8820 2009-10-01 Jim Meyering <meyering@redhat.com>
8822 maint.mk: requiring "make major" was annoying, for a "minor" release.
8823 What is intended is "stable", to contrast with alpha and beta,
8824 so require "make stable", not "make major".
8825 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8826 (get_tool_versions): Likewise.
8827 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8829 2009-09-30 Ben Pfaff <blp@gnu.org>
8831 Fix broken build of replacement for Windows tmpfile().
8832 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8833 flags argument added along with the 'mkostemp' module.
8835 2009-09-28 Bruno Haible <bruno@clisp.org>
8837 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8838 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8840 (gl_list_remove): Update.
8841 * lib/gl_list.c (gl_list_remove): Update.
8842 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8844 (gl_oset_remove): Update.
8845 * lib/gl_list.c (gl_oset_remove): Update.
8846 Reported by Eric Blake.
8848 2009-09-28 Eric Blake <ebb9@byu.net>
8850 doc: mention yet more cygwin 1.7 status
8851 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8853 * doc/glibc-functions/execvpe.texi (execvpe): New file.
8854 * doc/gnulib.texi (Glibc unistd.h): Mention it.
8856 argp: fix test failure
8857 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8858 that are not upper-case. Pass correct range to tolower.
8860 2009-09-27 Jim Meyering <meyering@redhat.com>
8862 test-yesno: work around sparc-dash here-document infelicity
8863 Without this change, the literal \177 byte in a here document
8864 would make dash 0.5.5.1-3 access uninitialized memory.
8865 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8866 Instead, use a marker, "@", and filter through tr to create the desired
8867 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8869 2009-09-27 Bruno Haible <bruno@clisp.org>
8871 Disable untested support for new flavours of ACLs on AIX.
8872 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8874 * lib/set-mode-acl.c (qset_acl): Likewise.
8876 2008-12-07 Bruno Haible <bruno@clisp.org>
8878 Add support for new flavours of ACLs on AIX. (Untested.)
8879 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8880 (file_has_acl): Add support for newer AIX.
8881 * lib/set-mode-acl.c (qset_acl): Likewise.
8882 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8883 Rainer Tammer <tammer@tammer.net>.
8885 2009-09-26 Eric Blake <ebb9@byu.net>
8887 argp: fix compilation of getopt
8888 * lib/getopt.in.h (includes): Use different guard than glibc.
8889 Reported by Sergey Poznyakoff.
8891 doc: mention more cygwin 1.7 status
8892 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8894 * doc/posix-functions/execl.texi (execl): Likewise.
8895 * doc/posix-functions/execle.texi (execle): Likewise.
8896 * doc/posix-functions/execlp.texi (execlp): Likewise.
8897 * doc/posix-functions/execv.texi (execv): Likewise.
8898 * doc/posix-functions/execve.texi (execve): Likewise.
8899 * doc/posix-functions/execvp.texi (execvp): Likewise.
8900 * doc/glibc-functions/canonicalize_file_name.texi
8901 (canonicalize_file_name): Cygwin 1.7 now provides this.
8902 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8903 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8904 on AT_SYMLINK_NOFOLLOW.
8906 2009-09-24 Eric Blake <ebb9@byu.net>
8908 test-linkat: make test more robust
8909 * tests/test-linkat.c (main): Avoid collision with EEXIST.
8911 getopt: fix inclusion guards for cygwin
8912 * modules/getopt-posix (Depends-on): Add include-next.
8913 (Makefile.am): Substitute more items in replacement header.
8914 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8916 * lib/getopt.in.h (includes): Use split inclusion guard, and
8917 prefer <getopt.h> over include <unistd.h> when one is present.
8918 (option): Also override name of 'struct option'.
8920 same-inode: revert prior change; it is not yet ready
8921 * NEWS: Undo mention of this change.
8922 * lib/same-inode.h (same-inode.h): Undo tri-state change.
8923 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8924 * lib/cycle-check.c (cycle_check): Likewise.
8925 * lib/same.c (same_name): Likewise.
8926 * lib/at-func2.c (at_func2): Likewise.
8928 2009-09-23 Eric Blake <ebb9@byu.net>
8931 * modules/linkat: New file.
8932 * lib/at-func2.c (at_func2): Likewise.
8933 * lib/linkat.c (linkat): Likewise.
8934 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8935 * lib/openat-priv.h (at_func2): Add declaration.
8936 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8937 * modules/unistd (Makefile.am): Substitute them.
8938 * lib/unistd.in.h (linkat): Declare it.
8939 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8940 * doc/posix-functions/linkat.texi (linkat): Likewise.
8941 * doc/posix-functions/link.texi (link): Tweak wording.
8942 * tests/test-link.c (main): Move guts...
8943 * tests/test-link.h (test_link): ...into new file.
8944 * modules/linkat-tests: New test.
8945 * tests/test-linkat.c: Likewise.
8946 * modules/link-tests (Files): Ship new file.
8947 (Depends-on): Add stdbool.
8949 dirname: add library-safe mdir_name
8950 * lib/dirname.h (mdir_name): New prototype.
8951 * lib/dirname.c (dir_name): Move guts...
8952 (mdir_name): ...to new function that avoids xalloc_die.
8954 fchdir: another mingw fix
8955 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8956 * lib/fchdir.c (get_name): New helper method; skips canonicalize
8957 on mingw (where it has not yet been ported), and make it optional
8959 (_gl_register_fd): Use it.
8961 same-inode: make SAME_INODE tri-state, to port to mingw
8962 * NEWS: Mention this change.
8963 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8964 st_ino always being 0.
8965 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8966 * lib/cycle-check.c (cycle_check): Likewise.
8967 * lib/same.c (same_name): Likewise.
8969 lstat: avoid mingw compilation error
8970 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8971 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8973 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8975 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8976 the checks for lstat.
8977 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8979 link: fix test failure on Solaris 9
8980 * lib/link.c (rpl_link): Don't assume link will catch bogus
8981 trailing slash on source.
8983 test-symlinkat: enhance test
8984 * tests/test-readlink.c (main): Move guts...
8985 * tests/test-readlink.h (test_readlink): ...into new file.
8986 * tests/test-symlink.c (main): Move guts...
8987 * tests/test-symlink.h (test_symlink): ...into new file.
8988 * tests/test-symlinkat.c (main): Use new files for further
8990 (do_symlink, do_readlink): New helper functions.
8991 * modules/symlink-tests (Files): Ship new file.
8992 (Depends-on): Add stdbool.
8993 * modules/readlink-tests (Files): Ship new file.
8994 (Depends-on): Add stdbool.
8995 * modules/symlinkat-tests (Files): Use new files.
8997 2009-09-23 Eric Blake <ebb9@byu.net>
8999 readlink: document portability issue with symlink length
9000 * doc/posix-functions/lstat.texi (lstat): Mention that some file
9001 systems have bogus st_size on symlinks, and mention the
9002 areadlink-with-size module.
9003 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9004 * doc/posix-functions/readlink.texi (readlink): Mention the
9005 areadlink module, and ERANGE failure.
9006 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9007 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9009 readlink: fix Solaris 9 bug with trailing slash
9010 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9011 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9012 * doc/posix-functions/readlink.texi (readlink): Document this.
9013 * modules/readlink-tests: New test.
9014 * tests/test-readlink.c: Likewise.
9016 readlink: fix cygwin 1.5.x bug with return type
9017 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9018 * lib/unistd.in.h (readlink): Use ssize_t.
9019 * lib/readlink.c (readlink): Likewise.
9020 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9021 * modules/unistd (Makefile.am): Substitute it.
9022 * lib/unistd.in.h (readlink): Declare replacement.
9023 * doc/posix-functions/readlink.texi (readlink): Document this.
9025 symlink: use throughout gnulib
9026 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9027 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9028 symlink is not used.
9029 * modules/symlinkat (Depends-on): Add symlink.
9030 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9031 * modules/canonicalize-tests (Depends-on): Likewise.
9032 * modules/lstat-tests (Depends-on): Likewise.
9033 * modules/openat-tests (Depends-on): Likewise.
9034 * modules/remove-tests (Depends-on): Likewise.
9035 * modules/rmdir-tests (Depends-on): Likewise.
9036 * modules/unlink-tests (Depends-on): Likewise.
9037 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9038 * tests/test-canonicalize.c (symlink): Likewise.
9039 * tests/test-fstatat.c (symlink): Likewise.
9040 * tests/test-lstat.c (symlink): Likewise.
9041 * tests/test-remove.c (symlink): Likewise.
9042 * tests/test-rmdir.c (symlink): Likewise.
9043 * tests/test-unlink.c (symlink): Likewise.
9044 * tests/test-unlinkat.c (symlink): Likewise.
9046 symlink: new module, for Solaris 9 bug
9047 * modules/symlink: New file.
9048 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9049 * lib/symlink.c: Likewise.
9050 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9051 * modules/unistd (Makefile.am): Substitute them.
9052 * lib/unistd.in.h (symlink): Declare replacement.
9053 * MODULES.html.sh (File system functions): Mention it.
9054 * doc/posix-functions/symlink.texi (symlink): Likewise.
9055 * modules/symlink-tests: New test.
9056 * tests/test-symlink.c: Likewise.
9058 2009-09-23 Bruno Haible <bruno@clisp.org>
9060 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9062 Test case: gnulib-tool --import --with-tests atexit inttypes.
9063 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9065 2009-09-23 Bruno Haible <bruno@clisp.org>
9067 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9068 subcommand, not in a subshell.
9070 2009-09-22 Eric Blake <ebb9@byu.net>
9072 unistd: sort replacement declarations
9073 * lib/unistd.in.h: Sort declarations.
9075 open, openat: minor optimization
9076 * lib/open.c (open): If open succeeded, len is non-zero.
9077 * lib/openat.c (rpl_openat): Likewise.
9079 link-follow: ensure correct result
9080 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9081 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9082 distinguish between possible failures.
9084 2009-09-21 Eric Blake <ebb9@byu.net>
9086 fts: avoid compiler warning
9087 * lib/fts.c (dirent_inode_sort_may_be_useful)
9088 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9090 2009-09-19 Bruno Haible <bruno@clisp.org>
9092 * lib/progreloc.c (canonicalize_file_name): New declaration.
9094 2009-09-19 Eric Blake <ebb9@byu.net>
9097 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9099 openat: fix openat bugs on Solaris 9
9100 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9101 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9102 * modules/openat (Depends-on): Add open.
9103 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9104 * modules/fcntl-h (Makefile.am): Substitute it.
9105 * lib/fcntl.in.h (openat): Declare replacement.
9106 * doc/posix-functions/openat.texi (openat): Document this.
9108 openat: move fstatat and unlinkat into correct files
9109 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9111 * lib/openat.c (fstatat, unlinkat): Move...
9112 * lib/fstatat.c (fstatat): ...into correct files.
9113 * lib/unlinkat.c (unlinkat): Likewise.
9115 openat: fix unlinkat bugs on Solaris 9
9116 * lib/unlinkat.c (unlinkat): New file.
9117 * modules/openat (Depends-on): Add unlink.
9118 (Files): Distribute it.
9119 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9120 trailing slash behavior is broken.
9121 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9122 * modules/unistd (Makefile.am): Substitute it.
9123 * lib/unistd.in.h (unlinkat): Declare replacement.
9124 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9126 openat: fix fstatat bugs on Solaris 9
9127 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9129 * doc/posix-functions/fstatat.texi (fstatat): Document this.
9131 test-unlinkat: enhance test, to expose Solaris 9 bug
9132 * tests/test-unlink.c (main): Factor guts...
9133 * tests/test-unlink.h (test_rmdir_func): ...into new file.
9134 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9135 * tests/test-rmdir.c (main): Adjust caller.
9136 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
9137 (unlinker): New helper function.
9138 (rmdirat): Enhance check.
9139 * modules/rmdir-tests (Depends-on): Add stdbool.
9140 * modules/unlink-tests (Depends-on): Likewise.
9141 (Files): Add test-unlink.h.
9142 * modules/openat-tests (Files): Likewise.
9143 (Depends-on): Add unlinkdir.
9145 test-fstatat: new test, to expose Solaris 9 bugs
9146 * tests/test-stat.c (main): Factor guts...
9147 * tests/test-stat.h (test_stat_func): ...into new file.
9148 * tests/test-lstat.c (main): Factor guts...
9149 * tests/test-lstat.h (test_lstat_func): ...into new file.
9150 * tests/test-fstatat.c: New file.
9151 * modules/stat-tests (Files): Add test-stat.h.
9152 * modules/lstat-tests (Files): Add test-lstat.h.
9153 (Depends-on): Add stdbool.
9154 * modules/openat-tests (Depends-on): Add pathmax.
9155 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9156 (Makefile.am): Run new test.
9158 remove: new module, for mingw and Solaris 9 bugs
9159 * modules/remove: New file.
9160 * lib/remove.c: Likewise.
9161 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9162 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9163 * modules/stdio (Makefile.am): Use them.
9164 * lib/stdio.in.h (remove): Declare replacement.
9165 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9166 * doc/posix-functions/remove.texi (remove): Likewise.
9167 * modules/remove-tests: New test.
9168 * tests/test-remove.c: Likewise.
9170 unlink: new module, for Solaris 9 bug
9171 * modules/unlink: New file.
9172 * lib/unlink.c: Likewise.
9173 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9174 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9175 * modules/unistd (Makefile.am): Use them.
9176 * lib/unistd.in.h (stat): Declare replacement.
9177 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9178 * doc/posix-functions/unlink.texi (unlink): Likewise.
9179 * modules/unlink-tests: New test.
9180 * tests/test-unlink.c: Likewise.
9182 lstat: fix Solaris 9 bug
9183 * lib/lstat.c (lstat): Also check for trailing slash on
9184 non-symlink, non-directories. Use stat module to simplify logic.
9185 * doc/posix-functions/lstat.texi (lstat): Document it.
9186 * modules/lstat-tests (Depends-on): Add errno, same-inode.
9187 (configure.ac): Check for symlink.
9188 * tests/test-lstat.c (main): Add more tests.
9190 stat: add as dependency to other modules
9191 * modules/chown (Depends-on): Add stat.
9192 * modules/euidaccess (Depends-on): Likewise.
9193 * modules/fchdir (Depends-on): Likewise.
9194 * modules/isdir (Depends-on): Likewise.
9195 * modules/link (Depends-on): Likewise.
9196 * modules/lstat (Depends-on): Likewise.
9197 * modules/mkdir-p (Depends-on): Likewise.
9198 * modules/modechange (Depends-on): Likewise.
9199 * modules/open (Depends-on): Likewise.
9200 * modules/readlink (Depends-on): Likewise.
9201 * modules/same (Depends-on): Likewise.
9203 stat: fix Solaris 9 bug
9204 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9206 * lib/stat.c (rpl_stat): Work around it.
9207 * doc/posix-functions/stat.texi (stat): Update documentation.
9209 stat: new module, for mingw bug
9210 * modules/stat: New file.
9211 * lib/stat.c: Likewise.
9212 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9213 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9214 * modules/sys_stat (Makefile.am): Use them.
9215 * lib/sys_stat.in.h (stat): Declare replacement.
9216 * lib/openat.c (fstatat): Deal with lstat and stat being function
9218 * modules/openat (Depends-on): Add inline.
9219 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9220 * doc/posix-functions/stat.texi (stat): Likewise.
9221 * modules/stat-tests: New test.
9222 * tests/test-stat.c: Likewise.
9224 2009-09-19 Jim Meyering <meyering@redhat.com>
9226 syntax-check: detect unnecessary inclusion of canonicalize.h
9227 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9229 2009-09-19 Eric Blake <ebb9@byu.net>
9231 canonicalize-lgpl: adjust clients to use correct header
9232 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9233 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9234 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9235 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9236 * lib/progreloc.c (includes): Likewise.
9238 2009-09-19 Jim Meyering <meyering@redhat.com>
9240 test-posixtm.c: correct a comment
9241 * tests/test-posixtm.c: Correct first-line comment.
9242 Spotted by Eric Blake.
9244 2009-09-16 Jim Meyering <meyering@redhat.com>
9246 posixtm-tests: make T const-correct; add a test case
9247 * tests/test-posixtm.c (T): Declare const.
9248 Add a test for -(2^31+1).
9249 Remove useless can-succeed-only-in-2002 test.
9251 posixtm-tests: adjust the sole failing test
9252 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9253 expected output matches what mktime now produces. Cross-checked via
9254 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9256 posixtm: move #ifdef'd tests into a new module
9257 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
9258 * tests/test-posixtm.c: ... this new file.
9259 * modules/posixtm-tests: New module.
9261 2009-09-19 Eric Blake <ebb9@byu.net>
9263 openat: simplify use of at-func.c
9264 * lib/at-func.c (includes): Include prerequisites here, to
9265 simplify requirements on client files.
9266 * lib/openat-priv.h: Add double-inclusion guard.
9267 * lib/faccessat.c (includes): Simplify.
9268 * lib/fchmodat.c (includes): Likewise.
9269 * lib/fchownat.c (includes): Likewise.
9270 * lib/mkdirat.c (includes): Likewise.
9271 * lib/mkfifoat.c (includes): Likewise.
9272 * lib/symlinkat.c (includes): Likewise.
9274 openat: allow return of fd 0
9275 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9276 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9278 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9279 <fcntl.h>; this module does not leak fds.
9280 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9281 must be allowed to return 0, leaving openat_safer to add the
9283 (openat_permissive): Avoid writing to just-opened fd 2 if
9284 restoring the current directory fails.
9285 * lib/openat-die.c (openat_restore_fail): Add comment.
9286 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9287 (save_cwd): Guarantee safe fd, but without use of open_safer.
9288 * tests/test-openat.c: New test.
9289 * modules/openat-tests (Files, Makefile.am): Distribute and build
9292 relocatable-prog-wrapper: fix build
9293 * modules/relocatable-prog-wrapper (Files): Update name of
9294 canonicalize m4 file, broken on 2009-09-17.
9295 Reported by emad hajjar <aleppos@hotmail.com>.
9297 2009-09-19 Bruno Haible <bruno@clisp.org>
9299 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9300 * lib/safe-alloc.c: Likewise.
9301 Reported by Ian Beckwith <ianb@erislabs.net>.
9303 2009-09-18 Bruno Haible <bruno@clisp.org>
9305 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9306 Reported by <erobles@sensacd.com.mx>.
9308 2009-09-17 Eric Blake <ebb9@byu.net>
9310 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9311 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9312 slashes when checking if last component is missing.
9313 * tests/test-canonicalize.c (main): Test this.
9315 canonicalize, canonicalize-lgpl: honor // if distinct from /
9316 * modules/canonicalize (Files): Add double-slash-root.m4.
9317 * modules/canonicalize-lgpl (Files): Likewise.
9318 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9319 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9320 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9321 fallback definition.
9322 (canonicalize_filename_mode): Use it to protect //.
9323 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9324 (__realpath): Likewise.
9325 * tests/test-canonicalize.c (main): Test this.
9326 * tests/test-canonicalize-lgpl.c (main): Likewise.
9327 * modules/canonicalize-tests (Depends-on): Add same-inode.
9328 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9330 canonicalize-lgpl: fix glibc bug with trailing slash
9331 * m4/canonicalize-lgpl.m4: Move contents...
9332 * m4/canonicalize.m4: ...here.
9333 (gl_CANONICALIZE_LGPL): Factor realpath check...
9334 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9335 glibc 2.3.5 bug, fixed 2005-04-27.
9336 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9337 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9338 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9339 * modules/canonicalize-lgpl (Files): Manage file rename.
9340 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9341 * modules/stdlib (Makefile.am): Substitute witness.
9342 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9344 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9345 replacement is required.
9346 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9347 * doc/glibc-functions/canonicalize_file_name.texi
9348 (canonicalize_file_name): Document this.
9349 * doc/posix-functions/realpath.texi (realpath): Likewise.
9351 canonicalize-lgpl: reject non-directory with trailing slash
9352 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9353 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9354 catches failures in glibc 2.3.5.
9355 * tests/test-canonicalize.c (main): Likewise.
9357 canonicalize-lgpl: use native realpath if it works
9358 * lib/canonicalize-lgpl.c (realpath): Guard with
9359 FUNC_REALPATH_WORKS.
9360 * lib/stdlib.in.h (realpath): Make declaration optional based on
9362 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9363 native realpath works.
9364 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9365 * modules/stdlib (Makefile.am): Substitute witness.
9367 canonicalize, canonicalize-lgpl: use <stdlib.h>
9368 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9369 (Include): Mention <stdlib.h>.
9370 (configure.ac): Mention functions we provide.
9371 * modules/canonicalize (configure.ac): Likewise.
9372 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9373 realpath if canonicalize_file_name is missing.
9374 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9375 * modules/stdlib (Makefile.am): Substitute witnesses.
9376 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9377 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9378 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9379 * NEWS: Document this.
9380 * doc/glibc-functions/canonicalize_file_name.texi
9381 (canonicalize_file_name): Likewise.
9382 * doc/posix-functions/realpath.texi (realpath): Likewise.
9383 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9385 test-canonicalize: consolidate into single C program
9386 * tests/test-canonicalize.sh: Delete; move setup into...
9387 * tests/test-canonicalize.c (main): ...the program, making it
9388 easier to run in debugger. Add some tests.
9389 * modules/canonicalize-tests (Files): Remove unused file.
9390 (Depends-on): Add progname.
9391 (configure.ac, Makefile.am): Simplify.
9393 test-canonicalize-lgpl: consolidate into single C program
9394 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9395 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9396 easier to run in debugger. Add some tests.
9397 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9398 (configure.ac, Makefile.am): Simplify.
9400 canonicalize: avoid resolvepath
9401 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9403 * lib/canonicalize.c (includes): Simplify.
9404 (canonicalize_file_name): Drop resolvepath implementation.
9405 * modules/canonicalize (Depends-on): Drop filenamecat.
9407 canonicalize: don't lose errno
9408 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9411 canonicalize: simplify errno handling
9412 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9415 canonicalize, canonicalize-lgpl: update module dependencies
9416 * modules/canonicalize (Depends-on): Add extensions, lstat,
9418 (Files): Drop pathmax.h.
9419 (configure.ac): Adjust macro name.
9420 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9421 lstat, stdlib, sys_stat.
9422 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9423 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9425 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9426 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9427 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9428 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9429 declaration, if available.
9430 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9431 we can rely on the readlink module.
9432 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9433 (includes): Use <unistd.h> unconditionally.
9435 2009-09-17 Eric Blake <ebb9@byu.net>
9437 maint: make Include sections of modules consistent
9438 * modules/alloca: Use only header name; no need to list #include.
9439 * modules/alloca-opt: Likewise.
9440 * modules/arpa_inet: Likewise.
9441 * modules/canon-host: Likewise.
9442 * modules/configmake: Likewise.
9443 * modules/dirent: Likewise.
9444 * modules/eealloc: Likewise.
9445 * modules/environ: Likewise.
9446 * modules/fchdir: Likewise.
9447 * modules/fcntl: Likewise.
9448 * modules/fcntl-h: Likewise.
9449 * modules/gethrxtime: Likewise.
9450 * modules/gettime: Likewise.
9451 * modules/ignore-value: Likewise.
9452 * modules/inet_ntop: Likewise.
9453 * modules/inet_pton: Likewise.
9454 * modules/inttypes: Likewise.
9455 * modules/isnand-nolibm: Likewise.
9456 * modules/isnanf-nolibm: Likewise.
9457 * modules/mbchar: Likewise.
9458 * modules/mbfile: Likewise.
9459 * modules/mbiter: Likewise.
9460 * modules/mbuiter: Likewise.
9461 * modules/netdb: Likewise.
9462 * modules/netinet_in: Likewise.
9463 * modules/nproc: Likewise.
9464 * modules/pagealign_alloc: Likewise.
9465 * modules/poll: Likewise.
9466 * modules/printf-frexp: Likewise.
9467 * modules/pthread: Likewise.
9468 * modules/putenv: Likewise.
9469 * modules/random_r: Likewise.
9470 * modules/relocatable-prog: Likewise.
9471 * modules/search: Likewise.
9472 * modules/select: Likewise.
9473 * modules/selinux-h: Likewise.
9474 * modules/settime: Likewise.
9475 * modules/signal: Likewise.
9476 * modules/size_max: Likewise.
9477 * modules/socklen: Likewise.
9478 * modules/ssize_t: Likewise.
9479 * modules/stdarg: Likewise.
9480 * modules/stdbool: Likewise.
9481 * modules/stddef: Likewise.
9482 * modules/stdint: Likewise.
9483 * modules/stdio: Likewise.
9484 * modules/stdlib: Likewise.
9485 * modules/string: Likewise.
9486 * modules/strings: Likewise.
9487 * modules/sys_file: Likewise.
9488 * modules/sys_ioctl: Likewise.
9489 * modules/sys_select: Likewise.
9490 * modules/sys_socket: Likewise.
9491 * modules/sys_stat: Likewise.
9492 * modules/sys_time: Likewise.
9493 * modules/sys_times: Likewise.
9494 * modules/sys_utsname: Likewise.
9495 * modules/sys_wait: Likewise.
9496 * modules/sysexits: Likewise.
9497 * modules/time: Likewise.
9498 * modules/times: Likewise.
9499 * modules/tmpfile: Likewise.
9500 * modules/trim: Likewise.
9501 * modules/unistd: Likewise.
9502 * modules/wchar: Likewise.
9503 * modules/wctype: Likewise.
9505 2009-09-17 Bruno Haible <bruno@clisp.org>
9507 Make getdate.y compile on QNX and NetBSD 5 / i386.
9508 * m4/getdate.m4 (gl_GETDATE): Conditionally define
9509 TIME_T_FITS_IN_LONG_INT.
9510 * lib/getdate.y (long_time_t): New type.
9511 (relative_time): Change type of 'seconds' field to long_time_t.
9512 (get_date): Update types of local variables. Check against overflow
9513 during conversion from long_time_t to time_t.
9514 Reported by Matt Kraai <kraai@ftbfs.org>
9515 and Hasso Tepper <hasso@netbsd.org>.
9517 2009-09-17 Bruno Haible <bruno@clisp.org>
9519 * modules/COPYING: Update copyright years.
9520 * modules/README: Likeiwse.
9521 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9522 Reported by Ian Beckwith <ianb@erislabs.net>.
9524 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9526 * users.txt: Update references for gnuit package.
9528 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9530 * m4/getdelim.m4: Fix typo in copyright line.
9532 2009-09-17 Bruno Haible <bruno@clisp.org>
9534 * lib/atoll.c: Use the standard header with GPL copyright.
9535 * lib/argz.in.h: Likewise.
9536 * lib/glob.c: Likewise.
9537 * lib/glob-libc.h: Likewise.
9538 * lib/random_r.c: Likewise.
9539 * lib/siglist.h: Likewise.
9540 * lib/strsignal.c: Likewise.
9541 Reported by Ian Beckwith <ianb@erislabs.net>.
9543 2009-09-17 Eric Blake <ebb9@byu.net>
9545 rmdir: ensure correct dependency order
9546 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9548 2009-09-17 Bruno Haible <bruno@clisp.org>
9550 Disable assertion that fails on NetBSD 5 / i386.
9551 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9552 Reported by Sam Steingold <sds@gnu.org>
9553 and Hasso Tepper <hasso@netbsd.org>.
9555 2009-09-16 Eric Blake <ebb9@byu.net>
9557 unlinkdir: port to mingw
9558 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9559 on which no one can unlink a directory.
9561 stdlib: sort witness names
9562 * modules/stdlib (Makefile.am): Sort replacements.
9563 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9564 * lib/stdlib.in.h: Likewise.
9566 parse-duration-tests: avoid link failure
9567 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9569 Reported by Tom G. Christensen.
9571 openat-tests: ensure unlinkat behaves like rmdir
9572 * tests/test-rmdir.c (main): Factor guts...
9573 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9574 * modules/rmdir-tests (Files): Ship new file.
9575 * modules/openat-tests: New test.
9576 * tests/test-unlinkat.c: Likewise.
9578 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9579 * modules/rmdir-errno (Status, Notice): Now obsolete.
9581 rmdir: work around cygwin 1.5.x and mingw bugs
9582 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9583 * lib/rmdir.c (rmdir): Work around it.
9584 * modules/rmdir (Status, Notice): No longer obsolete.
9585 (Files): Add dos.m4.
9586 (Depends-on): Add unistd.
9587 (configure.ac): Set witnesses.
9588 (License): Relax to LGPLv2+.
9589 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9590 * modules/unistd (Makefile.am): Substitute witnesses.
9591 * lib/unistd.in.h (rmdir): Declare replacement.
9592 * doc/posix-functions/rmdir.texi (rmdir): Document this.
9593 * modules/rmdir-tests: New tests.
9594 * tests/test-rmdir.c: Likewise.
9596 2009-09-15 Eric Blake <ebb9@byu.net>
9598 fchdir: improve use of replacement functions
9599 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9600 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9601 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9603 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9604 * modules/sys_stat (Makefile.am): Substitute correct witness.
9605 * modules/dirent (Makefile.am): Likewise.
9606 * modules/unistd (Makefile.am): Likewise.
9607 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9608 * lib/unistd.in.h (dup): Likewise.
9609 * lib/sys_stat.in.h (fstat): Likewise.
9611 maint: ignore gnulib-tool temp files
9612 * .gitignore: Ignore files created during gnulib-tool --test.
9614 2009-09-13 Jim Meyering <meyering@redhat.com>
9616 posixtm: don't reject a time that specify "60" as the number of seconds
9617 * lib/posixtm.c (posixtime): The code to reject invalid dates
9618 would also reject a time specified with the .60 suffix.
9619 But POSIX allows that, in order to accommodate leap seconds.
9621 (main): Adjust tests accordingly.
9622 * modules/posixtm (Depends-on): Add stpcpy.
9624 2009-09-11 Jim Meyering <meyering@redhat.com>
9626 announce-gen: include [$release_type] in emitted Subject:
9627 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9628 e.g., [stable] in the emitted Subject: line.
9630 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9632 Remove obsolete macros from several modules.
9633 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9634 obsolete Autoconf macros with their modern counterparts.
9635 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9636 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9637 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9638 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9639 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9640 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9641 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9642 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9643 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9644 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9645 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9646 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9647 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9648 * m4/sockets.m4 (gl_SOCKETS): Likewise.
9649 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9650 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9651 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9652 * m4/time_r.m4 (gl_TIME_R): Likewise.
9653 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9654 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9655 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9657 Fix copyright header in build-aux scripts.
9658 * build-aux/git-version-gen: Fix copyright header to match GPLv3
9660 * build-aux/ncftpput-ftp: Likewise.
9661 * build-aux/update-copyright: Likewise.
9663 2009-09-09 Eric Blake <ebb9@byu.net>
9665 test-link: allow Linux choice of errno
9666 * tests/test-link.c (main): Relax test for alternate error.
9668 strndup: fix improper m4 caching
9669 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9670 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9671 (gl_PREREQ_STRNDUP): Delete.
9672 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9673 * modules/string (Makefile.am): Substitute it.
9674 * lib/string.in.h (strndup): Modernize prototype.
9676 getcwd: port to mingw
9677 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9678 different from the POSIX assumptions made throughout the getcwd
9679 module; fortunately, the mingw getcwd does not need replacement.
9680 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9681 * modules/getcwd-tests: New test.
9682 * tests/test-getcwd.c: Likewise.
9684 link: fix platform bugs
9685 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9686 * lib/link.c (link): Work around them. Fix related mingw bug.
9687 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9688 * modules/unistd (Makefile.am): Substitute it.
9689 * lib/unistd.in.h (link): Declare replacement.
9690 * doc/posix-functions/link.texi (link): Document this.
9691 * modules/link (Depends-on): Add strdup-posix, sys_stat.
9693 test-link: consolidate into single C program, test more cases
9694 * tests/test-link.sh: Delete.
9695 * tests/test-link.c: Test more error conditions. Exposes bugs on
9696 at least Cygwin and Solaris.
9697 * modules/link-tests (Files): Remove unused file.
9698 (Depends-on): Add errno, sys_stat.
9699 (Makefile.am): Simplify.
9701 2009-09-08 Bruno Haible <bruno@clisp.org>
9703 Work around towlower, towupper bug on mingw.
9704 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9705 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9706 * doc/posix-functions/towlower.texi: Mention the mingw bug.
9707 * doc/posix-functions/towupper.texi: Likewise.
9708 Reported by Eric Blake.
9710 2009-09-08 Jim Meyering <meyering@redhat.com>
9712 build: don't try to run autoheader if we don't use it
9713 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9714 is not used in configure.ac.
9716 2009-09-08 Eric Blake <ebb9@byu.net>
9718 euidaccess: fix compilation error
9719 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9721 rawmemchr: relax license
9722 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9724 Reported by Jim Meyering.
9726 mkfifoat: new module
9727 * modules/mkfifoat: New file.
9728 * lib/mkfifoat.c: Likewise.
9729 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9730 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9731 * modules/sys_stat (Makefile.am): Use them.
9732 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9733 * MODULES.html.sh (File system functions): Mention module.
9734 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9735 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9736 * modules/mkfifoat-tests: New test.
9737 * tests/test-mkfifoat.c: Likewise.
9739 strchrnul: relax license
9740 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9742 Reported by Jim Meyering.
9744 2009-09-08 Eric Blake <ebb9@byu.net>
9746 fstatat: fix compilation on Solaris
9747 * lib/fstatat.c (includes): Add fcntl.h.
9748 Reported by Pádraig Brady.
9750 2009-09-07 Eric Blake <ebb9@byu.net>
9752 rename: modernize replacement
9753 * modules/rename (Depends-on): Add stdio.
9754 (configure.ac): Declare witness.
9755 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9756 stdio take care of replacement.
9757 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9758 * modules/stdio (Makefile.am): Substitute them.
9759 * lib/stdio.in.h (rename): Declare replacement.
9760 * lib/rename.c (includes): Allow cross-compilation to non-windows
9762 * doc/posix-functions/rename.texi (rename): Improve
9765 stdio: sort witness names
9766 * modules/stdio (Makefile.am): Sort replacements.
9767 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9768 * lib/stdio.in.h: Likewise.
9770 getcwd: minor cleanups
9771 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9772 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9774 openat: provide more convenience names
9775 * modules/faccessat (configure.ac): Add C witness.
9776 * lib/unistd.in.h (readlinkat): Fix typo.
9777 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9778 convenience wrappers.
9779 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9780 wrappers in syntax checks.
9782 2009-09-06 Eric Blake <ebb9@byu.net>
9784 doc: fix comments in recent patches
9785 * lib/faccessat.c: Mention correct function.
9786 * lib/fchmodat.c: Likewise.
9787 * lib/fchownat.c: Likewise.
9788 * lib/symlinkat.c: Likewise.
9789 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9792 faccessat, symlinkat: continue cleanup of previous patch
9793 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9794 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9795 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9796 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9797 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9798 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9801 2009-09-06 Bruno Haible <bruno@clisp.org>
9803 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9804 (fstatat): Declare if GNULIB_FSTATAT is set.
9805 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9806 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9807 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9808 * modules/fcntl-h (Files): Remove m4/openat.m4.
9809 * modules/sys_stat (Files): Remove m4/openat.m4.
9810 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9811 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9812 * modules/unistd (Files): Remove m4/openat.m4.
9813 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9815 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9816 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9817 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9818 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9819 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9821 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9822 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9823 Don't require gl_OPENAT_DEFAULTS.
9824 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9825 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9826 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9827 (gl_OPENAT_DEFAULTS): Remove macro.
9829 2009-09-06 Bruno Haible <bruno@clisp.org>
9831 * modules/openat (configure.ac): Remove unneeded witness.
9833 2009-09-06 Bruno Haible <bruno@clisp.org>
9835 Set errno to ENOSYS when a function is entirely unsupported.
9836 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9838 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9839 * modules/chown (Depends-on): Remove errno.
9841 2009-09-06 Bruno Haible <bruno@clisp.org>
9843 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9845 2009-09-06 Bruno Haible <bruno@clisp.org>
9847 * lib/sys_stat.in.h: Fix preprocessor command indentation.
9849 2009-09-06 Ben Pfaff <blp@gnu.org>
9850 Bruno Haible <bruno@clisp.org>
9852 Work around a glibc bug in strtok_r.
9853 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9854 Undefine if UNDEFINE_STRTOK_R is set.
9855 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9856 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9857 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9858 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9859 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9861 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9863 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
9866 * lib/exclude.c: Include wctype.h
9868 2009-09-06 Akim Demaille <demaille@gostai.com>
9870 bootstrap: improve error message
9871 * build-aux/bootstrap (find_tool): Upon failure, report the list
9873 Honor the initial value of the envvar.
9875 2009-09-05 Eric Blake <ebb9@byu.net>
9877 symlinkat: new module
9878 * modules/symlinkat: New file.
9879 * lib/symlinkat.c: Likewise.
9880 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9881 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9882 * modules/unistd (Makefile.am): Use them.
9883 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9884 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9885 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9886 * MODULES.html.sh (File system functions): Mention module.
9887 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9888 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9889 * modules/symlinkat-tests: New test.
9890 * tests/test-symlinkat.c: Likewise.
9892 test-openat-safer: add more checks
9893 * tests/test-openat-safer.c (main): Check more code paths.
9895 2009-09-05 Jim Meyering <meyering@redhat.com>
9897 syntax-check: detect unnecessary inclusion of openat.h
9898 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9900 2009-09-05 Bruno Haible <bruno@clisp.org>
9902 Support towlower, towupper.
9903 * doc/posix-functions/towlower.texi: Mention module wctype.
9904 * doc/posix-functions/towupper.texi: Likewise.
9905 * lib/wctype.in.h (towlower, towupper): New functions.
9906 * tests/test-wctype.c: Include stdio.h, stdlib.h.
9907 (ASSERT): New macro.
9909 (main): Test also towlower, towupper. Test WEOF argument.
9910 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9912 2009-09-05 Bruno Haible <bruno@clisp.org>
9914 Fix conversion behaviour when the input is invalid.
9915 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9916 mark occurring in first pass of indirect conversion.
9917 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9919 Found by clang's static analyzer.
9921 2009-09-05 Bruno Haible <bruno@clisp.org>
9923 * tests/test-striconveh.c (main): Test indirect conversion on platforms
9924 where direct conversion is possible.
9926 2009-09-04 Eric Blake <ebb9@byu.net>
9928 openat: fail with ENOENT on empty name
9929 * lib/openat-proc.c (openat_proc_name): Special-case the empty
9932 link-follow: fix logic bug in prior patch
9933 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9934 reversed sense of yes and no in prior patch. Avoid confusing
9935 compilation failure with desired semantics.
9937 link-follow: accomodate mingw and cross-compilation
9938 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9939 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
9940 cross-compilation results to -1, to make linkat easier to
9941 implement when cross-compiling. Trivially support mingw.
9942 * modules/link-follow (configure.ac): Call new name.
9943 * NEWS: Mention this.
9945 2009-09-03 Eric Blake <ebb9@byu.net>
9947 faccessat: compile replacement
9948 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9951 fts: fix compilation error
9952 * lib/fts.c (includes): Re-add "openat.h", for
9953 openat_needs_fchdir.
9955 faccessat: new module
9956 * modules/faccessat: New file.
9957 * lib/faccessat.c: Likewise.
9958 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9959 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9960 * modules/unistd (Makefile.am): Use it.
9961 * lib/unistd.in.h (faccessat): Declare it.
9962 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9963 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9964 * MODULES.html.sh (File system functions): Mention it.
9965 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9966 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9968 euidaccess: prefer POSIX over non-standard implementation
9969 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9970 * lib/euidaccess.c (euidaccess): Use it if available.
9972 openat: make template easier to use
9973 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9974 AT_FUNC_F2 to be undefined.
9975 (VALIDATE_FLAG): New macro; use it to reject bad flags.
9976 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9977 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9978 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9979 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9981 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9982 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9983 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9986 openat: declare in POSIX headers
9987 * NEWS: Mention this.
9988 * modules/openat (configure.ac): Declare witnesses.
9989 (Depends-on): Add fcntl-h, sys_stat, unistd.
9990 (Include): Mention correct headers.
9991 * modules/fcntl-h (Depends-on): Add link-warning.
9992 (Files): Add openat.m4.
9993 (Makefile.am): Substitute witnesses.
9994 * modules/sys_stat (Files, Makefile.am): Likewise.
9995 * modules/unistd (Files, Makefile.am): Likewise.
9996 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9997 (gl_OPENAT_DEFAULTS): New macro.
9998 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9999 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10000 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10001 (SYS_STAT_H): Remove unused variable.
10002 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10003 * lib/fcntl--.h (includes): Remove unneeded header.
10004 * lib/openat-safer.c (includes): Likewise.
10005 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10006 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10007 appropriate headers.
10008 (__OPENAT_PREFIX): Delete.
10009 * lib/fcntl.in.h (openat): Provide declaration.
10010 (AT_FDCWD): Fix Solaris bug.
10011 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10012 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10013 * lib/fchmodat.c (includes): Adjust to find declaration.
10014 * lib/fchownat.c (includes): Likewise.
10015 * lib/mkdirat.c (includes): Likewise.
10016 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
10019 2009-09-02 Eric Blake <ebb9@byu.net>
10021 errno: use consistently
10022 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10023 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10024 * lib/canonicalize.c (ELOOP): Likewise.
10025 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10026 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10027 * lib/lchown.c (EOPNOTSUPP): Likewise.
10028 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10029 * lib/savewd.c (ESTALE): Likewise.
10030 * lib/settime.c (ENOSYS): Likewise.
10031 * lib/utimens.c (ENOSYS): Likewise.
10032 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10033 * lib/chdir-safer.c (ELOOP): Likewise.
10034 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10035 * modules/c-stack (Depends-on): Add errno.
10036 * modules/canonicalize (Depends-on): Likewise.
10037 * modules/chdir-safer (Depends-on): Likewise.
10038 * modules/fdopendir (Depends-on): Likewise.
10039 * modules/inet_ntop (Depends-on): Likewise.
10040 * modules/inet_pton (Depends-on): Likewise.
10041 * modules/lchown (Depends-on): Likewise.
10042 * modules/openat (Depends-on): Likewise.
10043 * modules/savewd (Depends-on): Likewise.
10044 * modules/settime (Depends-on): Likewise.
10045 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10047 fts: avoid leaking fds
10048 * modules/fts (Depends-on): Add cloexec.
10049 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10052 fts: make directory fds more robust
10053 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10054 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10056 backupfile, chdir-long, fts, savedir: make safer
10057 * lib/backupfile.c (includes): Use "dirent--.h", since
10058 numbered_backup can write to stderr during readdir.
10059 * lib/savedir.c (includes): Likewise.
10060 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10061 emulation can write to stderr on failure.
10062 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10063 * lib/getcwd.c: Document why opendir_safer is unused.
10064 * lib/glob.c: Likewise.
10065 * lib/scandir.c: Likewise.
10066 * lib/openat-proc.c: Likewise, for open_safer.
10067 * modules/backupfile (Depends-on): Add dirent-safer.
10068 * modules/savedir (Depends-on): Likewise.
10069 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10070 * modules/chdir-long (Depends-on): Add openat-safer.
10072 openat-safer: new module
10073 * modules/openat-safer: New file.
10074 * lib/openat-safer.c: Likewise.
10075 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10076 * lib/fcntl-safer.h (openat_safer): Declare.
10077 * lib/fcntl--.h (openat): Override.
10078 * MODULES.html.sh (File descriptor based I/O): Mention it.
10079 * lib/openat.h: Add double-inclusion guards.
10080 * lib/openat.c (includes): Only include "fcntl-safer.h", not
10081 "fcntl--.h", so we can implement openat.
10082 * modules/openat-safer-tests: New test.
10083 * tests/test-openat-safer.c: New file.
10085 dirent-safer: new module
10086 * modules/dirent-safer: New file.
10087 * lib/dirent--.h: Likewise.
10088 * lib/dirent-safer.h: Likewise.
10089 * lib/opendir-safer.c: Likewise.
10090 * m4/dirent-safer.m4: Likewise.
10091 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10092 * modules/dirent-safer-tests: New test.
10093 * tests/test-dirent-safer.c: New file.
10094 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10096 fdopendir: optimize on mingw
10097 * lib/unistd.in.h (_gl_directory_name): New prototype.
10098 * lib/fchdir.c (_gl_directory_name): Implement it.
10099 (fchdir): Use it to simplify implementation.
10100 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10101 fchdir, when available, to avoid calling [f]chdir().
10103 fdopendir: split into its own module
10104 * lib/openat.c (fdopendir): Move...
10105 * lib/fdopendir.c: ...into new file.
10106 * modules/fdopendir: New module.
10107 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10108 * modules/openat (Depends-on): Add fdopendir.
10109 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10111 * modules/savedir (Depends-on): Only need fdopendir, not full
10113 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10114 * lib/openat.h (fdopendir): Drop prototype.
10115 * lib/dirent.in.h (fdopendir): Provide prototype.
10116 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10117 * modules/dirent (Makefile.am): Substitute them.
10118 * MODULES.html.sh (File system functions): Mention it.
10119 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10120 * modules/fdopendir-tests: New file.
10121 * tests/test-fdopendir.c: Likewise.
10123 fchdir: use more consistent macro convention
10124 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10125 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10126 REPLACE_FCHDIR, rather than relying on config.h macros.
10127 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10128 inside a single make-time REPLACE_FCHDIR block, rather than using
10129 the config.h FCHDIR_REPLACEMENT.
10130 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10131 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
10132 Manage fstat replacement.
10133 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10135 * modules/sys_stat (Files): Add m4/unistd_h.m4.
10136 (Makefile.am): Substitute REPLACE_FCHDIR.
10137 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10138 FCHDIR_REPLACEMENT.
10139 * lib/dup-safer.c (dup_safer): Likewise.
10140 * lib/dup2.c (rpl_dup2): Likewise.
10141 * lib/dup3.c (rpl_dup3): Likewise.
10142 * lib/open.c (rpl_open): Likewise.
10144 fchdir: simplify error handling, and support dup3
10145 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
10146 stdbool, malloc-posix, realloc-posix.
10147 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10148 (ensure_dirs_slot): Return false on allocation failure.
10149 (rpl_dup2): Delete.
10150 (_gl_register_dup): New function.
10151 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10152 (_gl_register_fd): Close fd on allocation failure.
10153 * lib/fcntl.in.h (_gl_register_fd): Update signature.
10154 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10156 (rpl_dup2_fchdir): Delete prototype.
10157 * lib/open.c (open): Update caller.
10158 * lib/dup2.c (dup2): Track fchdir metadata.
10159 * lib/dup3.c (dup3): Likewise.
10160 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10161 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10163 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10165 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10166 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10167 don't pass arguments to AC_OUTPUT.
10169 2009-09-02 Bruno Haible <bruno@clisp.org>
10171 * modules/mkdtemp (License): Relicense under LGPLv2+.
10172 Reported by Paolo Bonzini.
10174 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10176 Replace uses of obsolete autoconf macros in Jim's modules.
10177 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10178 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10179 can evoke a warning from autoconf when run with -Wobsolete
10180 enabled. They were declared obsolete for good reasons (see
10181 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10182 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10183 should not continue using the deprecated macros.
10184 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10185 obsolete Autoconf macros with modern counterparts.
10186 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10187 * m4/dos.m4 (gl_AC_DOS): Likewise.
10188 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10189 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10190 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10191 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10192 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10193 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10194 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10195 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10196 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10198 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10199 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10200 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10201 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10202 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10203 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10205 2009-09-01 Eric Blake <ebb9@byu.net>
10207 fchdir: fix off-by-one bug in previous patch
10208 * lib/fchdir.c (rpl_fstat): Use correct bounds.
10209 (_gl_unregister_fd): Delete useless if.
10211 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
10213 maint.mk: sort the list of syntax-check rules
10214 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10215 easier to get a sense of progress when the rules are run sequentially
10216 and take a long time.
10218 2009-09-01 Simon Josefsson <simon@josefsson.org>
10220 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10221 * modules/netinet_in: Likewise.
10222 * modules/sys_file: Likewise.
10223 * modules/sys_ioctl: Likewise.
10224 * modules/sys_select: Likewise.
10225 * modules/sys_socket: Likewise.
10226 * modules/sys_stat: Likewise.
10227 * modules/sys_time: Likewise.
10228 * modules/sys_times: Likewise.
10229 * modules/sys_utsname: Likewise.
10230 * modules/sys_wait: Likewise.
10232 2009-09-01 Jim Meyering <meyering@redhat.com>
10234 fts: help ensure that return values are not ignored
10235 * lib/fts_.h (__GNUC_PREREQ): Define.
10236 (__attribute_warn_unused_result__): Define.
10237 (fts_children, fts_close, fts_open, fts_read): Declare with
10238 __attribute_warn_unused_result__.
10240 fts: fts_close now fails also when closing a dir file descriptor fails
10241 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10242 and propagate to caller, along with errno.
10244 announce-gen: correct formatting in --help output
10245 * build-aux/announce-gen (usage): Move the one-line description in
10246 --help output "up", to where it belongs, just after Usage:.
10248 2009-08-31 Eric Blake <ebb9@byu.net>
10250 fchdir: port to mingw
10251 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10252 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10253 opened, then use a substitute.
10254 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10256 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10257 (_gl_register_fd): No need to check stat if open already filters
10259 (fchdir): Fix error condition to match POSIX.
10260 * modules/fchdir (Depends-on): Add sys_stat.
10261 * doc/posix-functions/open.texi (open): Document the limitation.
10262 * modules/fchdir-tests: New file.
10263 * tests/test-fchdir.c: Likewise.
10265 canonicalize: allow cross-testing from cygwin to mingw
10266 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10267 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10268 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10270 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10271 target does not support symlinks.
10272 * tests/test-canonicalize-lgpl.sh: Likewise.
10274 chown: avoid compilation warning on mingw
10275 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10276 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10278 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10279 * modules/chown (Depends-on): Add errno.
10281 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10283 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10286 2009-08-31 Jim Meyering <meyering@redhat.com>
10288 canonicalize: remove useless initialization
10289 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10290 initialization of local, "end".
10292 2009-08-30 Bruno Haible <bruno@clisp.org>
10294 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10295 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10298 2009-08-30 Bruno Haible <bruno@clisp.org>
10300 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10301 /usr/xpg4/bin/tr when it exists.
10302 * tests/test-pipe-filter-gi1.sh: Likewise.
10304 2009-08-30 Bruno Haible <bruno@clisp.org>
10306 Work around deficient /usr/bin/id program on Solaris.
10307 * tests/test-file-has-acl.sh (ID): New variable.
10308 * tests/test-set-mode-acl.sh (ID): Likewise.
10309 * tests/test-copy-acl.sh (ID): Likewise.
10310 * tests/test-copy-file.sh (ID): Likewise.
10312 2009-08-30 Bruno Haible <bruno@clisp.org>
10314 New module 'xstriconveh'.
10315 * lib/xstriconveh.h: New file.
10316 * lib/xstriconveh.c: New file.
10317 * modules/xstriconveh: New file.
10319 2009-08-30 Bruno Haible <bruno@clisp.org>
10321 Make it easier to use mem_cd_iconveh.
10322 * lib/striconveh.h (iconveh_t): New type.
10323 (iconveh_open, iconveh_close): New declarations.
10324 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10325 with a single 'const iconveh_t *' argument.
10326 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10327 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10328 with a single 'const iconveh_t *' argument.
10329 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10330 * tests/test-striconveh.c (main): Update.
10331 * NEWS: Mention the change.
10333 2009-08-30 Bruno Haible <bruno@clisp.org>
10335 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10338 2009-08-30 Bruno Haible <bruno@clisp.org>
10340 Work around iconv_open problem on Solaris.
10341 * lib/iconv_open-solaris.gperf: New file.
10342 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10343 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10344 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10345 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10346 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10347 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10349 2009-08-29 Jim Meyering <meyering@redhat.com>
10351 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10352 * top/maint.mk (cvs-check): Remove target; it was just an alias
10353 to the better-named vc-diff-check.
10354 (maintainer-distcheck): Remove rule. It was used only from
10355 the (alpha/beta/major) target, and all of its commands but one
10356 were coreutils-specific.
10357 (vc-dist): Remove rule.
10358 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10359 Run vc-diff-check, not vc-dist.
10360 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10362 2009-08-27 Bruno Haible <bruno@clisp.org>
10364 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10367 2009-08-27 Bruno Haible <bruno@clisp.org>
10369 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10371 * doc/func.texi: Document the SunPRO C bug.
10373 2009-08-27 Bruno Haible <bruno@clisp.org>
10375 Fix link error on Solaris.
10376 * tests/test-parse-duration.c (xstrdup): Remove function.
10378 2009-08-26 Pádraig Brady <P@draigbrady.com>
10380 ignore-value: handle pointer types, too
10381 * lib/ignore-value.h (__attribute__): Remove definition.
10382 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10383 of a more concise and more-often effective "(void) i" statement.
10384 (ignore_ptr): New function to suppress warnings from functions that
10385 return pointers, and to make it explicit that one function doesn't
10388 2009-08-25 Bruno Haible <bruno@clisp.org>
10390 dup2: work around a Linux bug.
10391 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10392 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10393 * doc/posix-functions/dup2.texi: Mention the Linux bug.
10394 Reported by Simon Josefsson.
10396 2009-08-25 Jim Meyering <meyering@redhat.com>
10398 libguestfs uses gnulib
10399 * users.txt: Add libguestfs.
10401 2009-08-24 Eric Blake <ebb9@byu.net>
10403 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10404 * lib/pipe2.c (includes): Add binary-io.h.
10405 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10407 2009-08-24 Bruno Haible <bruno@clisp.org>
10409 Tolerate declared but missing accept4 syscall.
10410 * lib/accept4.c (accept4): Invoke original accept4 function first, if
10412 * lib/sys_socket.in.h (accept4): If the function is already present,
10414 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10415 * modules/accept4 (Makefile.am): Compile accept4.c always.
10416 Reported by Paolo Bonzini and Eric Blake.
10418 2009-08-23 Bruno Haible <bruno@clisp.org>
10420 New module 'accept4'.
10421 * lib/sys_socket.in.h (accept4): New declaration.
10422 * lib/accept4.c: New file.
10423 * m4/accept4.m4: New file.
10424 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10425 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10426 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10428 * modules/accept4: New file.
10429 * doc/glibc-functions/accept4.texi: Mention the new module.
10431 2009-08-24 Jim Meyering <meyering@redhat.com>
10433 progname: also set global program_invocation_name, when possible
10434 Before this change, a libtool-enabled program that calls glibc's
10435 error function would report the program name as
10436 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10437 * modules/progname (configure.ac): Check for a declaration of
10438 program_invocation_name.
10439 * lib/progname.c: Include <errno.h>.
10440 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10441 Set program_invocation_name.
10443 2009-08-23 Bruno Haible <bruno@clisp.org>
10445 * lib/dup3.c: Include <string.h>.
10447 2009-08-23 Bruno Haible <bruno@clisp.org>
10449 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10450 * lib/pipe2.c (pipe2): Likewise.
10451 Suggested by Eric Blake.
10453 2009-08-23 Bruno Haible <bruno@clisp.org>
10455 Tolerate declared but missing dup3 syscall.
10456 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10457 * lib/unistd.in.h (dup3): If the function is already present,
10459 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10460 * modules/dup3 (Makefile.am): Compile dup3.c always.
10461 Reported by Paolo Bonzini.
10463 2009-08-23 Bruno Haible <bruno@clisp.org>
10465 Tolerate declared but missing pipe2 syscall.
10466 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10468 * lib/unistd.in.h (pipe2): If the function is already present,
10470 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10471 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10472 Reported by Paolo Bonzini.
10474 2009-08-23 Bruno Haible <bruno@clisp.org>
10476 * lib/pipe2.c (pipe2): Move #ifs inside function.
10478 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10480 quotearg: document limitations of quote_these_too
10481 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10482 those limitations are created.
10483 * lib/quotearg.h (set_char_quoting): Document that digits and
10484 letters that are special after backslash are not permitted.
10485 (quotearg_char): Cross-reference set_char_quoting documentation.
10487 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
10489 quotearg: implement custom_quoting_style
10490 * lib/quotearg.c: (struct quoting_options): Add left_quote and
10491 right_quote fields.
10492 (set_custom_quoting): New public function.
10493 (quotearg_buffer_restyled): Add left_quote and right_quote
10494 arguments, handle them very much like locale quoting, and update
10496 (quotearg_n_custom): New public function.
10497 (quotearg_n_custom_mem): New public function.
10498 (quotearg_custom): New public function.
10499 (quotearg_custom_mem): New public function.
10500 * lib/quotearg.h: Prototype and document new public functions.
10501 (enum quoting_style): For escape_quoting_style and
10502 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10503 ignored even though they're otherwise like c_quoting_style.
10504 Add custom_quoting_style member and document with comparison to
10505 clocale_quoting_style.
10506 * tests/test-quotearg.c (custom_quotes): New array.
10507 (custom_results): New array.
10508 (main): Extend to test custom quoting.
10510 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10512 quotearg: fix right quote escaping when it's in quote_these_too
10513 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10514 quote, be sure to prepend only one backslash.
10515 * tests/test-quotearg.c (use_quote_double_quotes): New function.
10518 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10520 quotearg-tests: test escaping of embedded locale quotes
10521 * tests/test-quotearg.c (struct result_strings): Add member for
10523 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10524 (inputs): Add new input.
10525 (results_g): Add expected results.
10526 (flag_results): Likewise.
10527 (locale_results): Likewise.
10528 (compare_strings): Check those.
10530 2009-08-23 Bruno Haible <bruno@clisp.org>
10532 Tests for module 'dup3'.
10533 * modules/dup3-tests: New file.
10534 * tests/test-dup3.c: New file.
10537 * lib/unistd.in.h (dup3): New declaration.
10538 * lib/dup3.c: New file.
10539 * m4/dup3.m4: New file.
10540 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10542 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10543 * modules/dup3: New file.
10544 * doc/glibc-functions/dup3.texi: Mention the new module.
10546 2009-08-23 Bruno Haible <bruno@clisp.org>
10548 Tweak the dup2 test.
10549 * tests/test-dup2.c (main): Create the test file empty. Verify that an
10550 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10551 the test file is still empty. Fix argument order of lseek.
10553 2009-08-23 Bruno Haible <bruno@clisp.org>
10555 Avoid test link errors when the modules getopt-gnu, gettext are used.
10556 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10557 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10559 2009-08-23 Bruno Haible <bruno@clisp.org>
10561 Fix getdtablesize() on mingw.
10562 * lib/getdtablesize.c (getdtablesize): Implement differently.
10563 * lib/unistd.in.h (getdtablesize): Improve comment.
10565 2009-08-23 Bruno Haible <bruno@clisp.org>
10567 New module 'mkostemp'.
10568 Based on Ulrich Drepper's 2007-08-10 change in glibc.
10569 * lib/stdlib.in.h (mksotemp): New declaration.
10570 * lib/mkostemp.c: New file, from glibc with modifications.
10571 * lib/tempname.h (GT_FILE): Remove outdated comment.
10572 (gen_tempname): Add flags argument.
10573 * lib/tempname.c (__GT_BIGFILE): Remove macro.
10574 (__GT_FILE): Map to 1.
10575 (small_open, large_open): Remove macros.
10576 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10577 * lib/mkstemp.c (mkstemp): Update.
10578 * lib/mkdtemp.c (mkdtemp): Likewise.
10579 * m4/mkostemp.m4: New file.
10580 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10582 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10584 * modules/mkostemp: New file, based on modules/mkstemp.
10585 * doc/glibc-functions/mkostemp.texi: Mention the new module.
10586 * NEWS: Mention the change.
10588 2009-08-23 Bruno Haible <bruno@clisp.org>
10590 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10591 Reported by Eric Blake.
10593 2009-08-23 Bruno Haible <bruno@clisp.org>
10595 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10596 Reported by Eric Blake.
10598 2009-08-23 Bruno Haible <bruno@clisp.org>
10600 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10601 * modules/pipe2 (Depends-on): Likewise.
10603 2009-08-23 Eric Blake <ebb9@byu.net>
10605 fcntl-h: add O_TTY_INIT support
10606 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10607 * tests/test-fcntl-h.c (o): Test it.
10608 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10610 fcntl-h: rename from fcntl, in preparation for fcntl(2)
10611 * modules/fcntl: Move <fcntl.h> header replacement...
10612 * modules/fcntl-h: ...to new name, so as not to collide with
10613 like-named function.
10614 * tests/test-fcntl.c: Rename...
10615 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
10616 * modules/fcntl-tests: Rename...
10617 * modules/fcntl-h-tests: ...to this. Update test file name.
10618 * modules/chdir-long (Depends-on): Update clients.
10619 * modules/chdir-safer (Depends-on): Likewise.
10620 * modules/fcntl-safer (Depends-on): Likewise.
10621 * modules/fts (Depends-on): Likewise.
10622 * modules/mkancesdirs (Depends-on): Likewise.
10623 * modules/mkdir-p (Depends-on): Likewise.
10624 * modules/open (Depends-on): Likewise.
10625 * modules/savewd (Depends-on): Likewise.
10626 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10627 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10629 2009-08-22 Bruno Haible <bruno@clisp.org>
10631 * modules/binary-io (License): Relicense under LGPL.
10632 * modules/pipe2 (License): Likewise.
10634 2009-08-22 Bruno Haible <bruno@clisp.org>
10636 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10638 * lib/pipe-filter-gi.c (filter_init): Likewise.
10639 Reported by Eric Blake.
10641 2009-08-22 Bruno Haible <bruno@clisp.org>
10643 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10644 * modules/pipe (Depends-on): Add pipe2.
10646 2009-08-22 Bruno Haible <bruno@clisp.org>
10648 Tests for module 'pipe2'.
10649 * modules/pipe2-tests: New file.
10650 * tests/test-pipe2.c: New file.
10652 New module 'pipe2'.
10653 * lib/unistd.in.h (pipe2): New declaration.
10654 * lib/pipe2.c: New file.
10655 * m4/pipe2.m4: New file.
10656 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10658 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10659 * modules/pipe2: New file.
10660 * doc/glibc-functions/pipe2.texi: Mention the new module.
10662 2009-08-22 Bruno Haible <bruno@clisp.org>
10664 Reference some new glibc functions.
10665 * doc/glibc-functions/accept4.texi: New file.
10666 * doc/glibc-functions/dup3.texi: New file.
10667 * doc/glibc-functions/mkostemp.texi: New file.
10668 * doc/glibc-functions/pipe2.texi: New file.
10669 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10670 (Glibc sys/socket.h): Refer to accept4.
10671 (Glibc unistd.h): Refer to dup3, pipe2.
10672 Reported by Eric Blake.
10674 2009-08-22 Jim Meyering <meyering@redhat.com>
10675 Bruno Haible <bruno@clisp.org>
10677 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10678 This makes it so packages using automake-1.11's silent-rules option
10679 can print e.g., a single "GEN configmake.h" line, rather than
10680 the 30+ statements that perform the job. If you want to see the
10681 actual commands, you can still run "make V=1".
10682 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10683 so that make output is abbreviated when those variables are defined
10685 * modules/argz: Likewise.
10686 * modules/arpa_inet: Likewise.
10687 * modules/byteswap: Likewise.
10688 * modules/configmake: Likewise.
10689 * modules/dirent: Likewise.
10690 * modules/errno: Likewise.
10691 * modules/fcntl: Likewise.
10692 * modules/float: Likewise.
10693 * modules/fnmatch: Likewise.
10694 * modules/getopt-posix: Likewise.
10695 * modules/glob: Likewise.
10696 * modules/iconv_open: Likewise.
10697 * modules/inttypes: Likewise.
10698 * modules/localcharset: Likewise.
10699 * modules/locale: Likewise.
10700 * modules/math: Likewise.
10701 * modules/netdb: Likewise.
10702 * modules/netinet_in: Likewise.
10703 * modules/poll: Likewise.
10704 * modules/posix_spawnp-tests: Likewise.
10705 * modules/sched: Likewise.
10706 * modules/search: Likewise.
10707 * modules/selinux-h: Likewise.
10708 * modules/signal: Likewise.
10709 * modules/spawn: Likewise.
10710 * modules/stdarg: Likewise.
10711 * modules/stdbool: Likewise.
10712 * modules/stddef: Likewise.
10713 * modules/stdint: Likewise.
10714 * modules/stdio: Likewise.
10715 * modules/stdlib: Likewise.
10716 * modules/string: Likewise.
10717 * modules/strings: Likewise.
10718 * modules/sys_file: Likewise.
10719 * modules/sys_ioctl: Likewise.
10720 * modules/sys_select: Likewise.
10721 * modules/sys_socket: Likewise.
10722 * modules/sys_stat: Likewise.
10723 * modules/sys_time: Likewise.
10724 * modules/sys_times: Likewise.
10725 * modules/sys_utsname: Likewise.
10726 * modules/sys_wait: Likewise.
10727 * modules/sysexits: Likewise.
10728 * modules/time: Likewise.
10729 * modules/unistd: Likewise.
10730 * modules/wchar: Likewise.
10731 * modules/wctype: Likewise.
10733 2009-08-22 Jim Meyering <meyering@redhat.com>
10735 announce-gen: detect write failure
10736 * build-aux/announce-gen: Add Coda at end.
10737 Remove equivalent-but-more-verbose block at top.
10739 2009-08-19 Akim Demaille <demaille@gostai.com>
10741 bootstrap: --help to stdout.
10742 * bootstrap (usage): Don't send --help to stderr.
10743 Use a here doc instead of a long string.
10745 2009-08-21 Eric Blake <ebb9@byu.net>
10747 test-popen-safer: split from test-popen
10748 * tests/test-popen.c (main): Move...
10749 * tests/test-popen.h: ...into new file.
10750 * tests/test-popen-safer2.c: New file.
10751 * modules/popen-tests (Files): Add test-popen.h.
10752 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10753 Suggested by Bruno Haible.
10755 test-fcntl-safer: split from test-open
10756 * tests/test-open.c (main): Move...
10757 * tests/test-open.h: ...into new file.
10758 * tests/test-fcntl-safer.c: New file.
10759 * modules/open-tests (Files): Add test-open.h.
10760 * modules/fcntl-safer-tests: New file.
10761 Suggested by Bruno Haible.
10763 test-fopen-safer: split from test-fopen
10764 * tests/test-fopen.c (main): Move...
10765 * tests/test-fopen.h: ...into new file.
10766 * tests/test-fopen-safer.c: New file.
10767 * modules/fopen-tests (Files): Add test-fopen.h.
10768 * modules/fopen-safer-tests: New file.
10769 Suggested by Bruno Haible.
10771 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10773 popen-safer: test O_CLOEXEC at run-time.
10774 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10776 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10778 fcntl: move more flags to the header
10779 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10780 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10781 * lib/fcntl.in.h: Do both things here.
10783 2009-08-21 Jim Meyering <meyering@redhat.com>
10785 consistently remove $@-t before redirecting to it
10786 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10787 * modules/alloca-opt: Likewise.
10788 * modules/byteswap: Likewise.
10789 * modules/fnmatch: Likewise.
10790 * modules/getopt-posix: Likewise.
10791 * modules/glob: Likewise.
10792 * modules/poll: Likewise.
10793 * modules/posix_spawnp-tests: Likewise.
10794 * modules/sys_socket: Likewise.
10795 * modules/sysexits: Likewise.
10797 2009-08-21 Eric Blake <ebb9@byu.net>
10799 popen: simplify access to original popen
10800 * lib/popen.c (rpl_popen): No need to worry about popen being a
10802 Reported by Bruno Haible.
10804 2009-08-20 Eric Blake <ebb9@byu.net>
10806 build: avoid some compiler warnings
10807 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10808 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10810 (new_exclude_segment, excluded_file_pattern_p)
10811 (excluded_file_name_p): Reduce scope.
10812 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10813 old-style declaration.
10815 2009-08-20 Simon Josefsson <simon@josefsson.org>
10817 * tests/test-exclude1.sh: Handle Windows EOL.
10818 * tests/test-exclude2.sh: Likewise.
10819 * tests/test-exclude3.sh: Likewise.
10820 * tests/test-exclude4.sh: Likewise.
10821 * tests/test-exclude5.sh: Likewise.
10822 * tests/test-exclude6.sh: Likewise.
10823 * tests/test-exclude7.sh: Likewise.
10825 2009-08-19 Akim Demaille <demaille@gostai.com>
10827 bootstrap: find sha1sum when named gsha1sum.
10828 * bootstrap (find_tool): New.
10832 2009-08-20 Jim Meyering <meyering@redhat.com>
10834 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10835 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10836 expression that converts "." in a file name to "\." in the resulting
10837 regexp. Start with a dummy statement, so that prior shell variable
10838 definitions are expanded portably. Reported by Simon Josefsson.
10840 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10842 Fix polling for writeability of a screen buffer.
10843 * lib/poll.c: Distinguish input and screen buffers for the
10844 Win32 implementation.
10845 * lib/select.c: Likewise.
10847 2009-08-19 Eric Blake <ebb9@byu.net>
10849 popen-safer: prevent popen from clobbering std descriptors
10850 * modules/popen-safer: New file.
10851 * lib/popen-safer.c: Likewise.
10852 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10853 * lib/stdio--.h (popen): Provide override.
10854 * lib/stdio-safer.h (popen_safer): Provide declaration.
10855 * tests/test-popen.c (includes): Partially test this.
10856 * modules/popen-safer-tests: New file, for more tests.
10857 * tests/test-popen-safer.c: Likewise.
10858 * MODULES.html.sh (file stream based Input/Output): Mention it.
10860 tests: test some of the *-safer modules
10861 * modules/fopen-safer (Depends-on): Add fopen.
10862 * modules/fcntl-safer (Depends-on): Add fcntl.
10863 * modules/stdlib-safer (Depends-on): Add stdlib.
10864 (configure.ac): Set indicator.
10865 * modules/unistd-safer (configure.ac): Likewise.
10866 * modules/tmpfile-safer (configure.ac): Likewise.
10867 (Depends-on): Add tmpfile.
10868 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10870 * tests/test-fopen.c (includes): Test safer versions when they are
10872 * tests/test-open.c (includes): Likewise.
10874 popen: fix cygwin 1.5 bug when stdin closed
10875 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10876 * modules/popen: New file.
10877 * modules/popen-tests: Likewise.
10878 * tests/test-popen.c: Likewise.
10879 * m4/popen.m4: Likewise.
10880 * lib/popen.c: Likewise.
10881 * lib/stdio.in.h (popen): New declaration.
10882 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10883 * modules/stdio (Makefile.am): Likewise.
10884 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10886 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
10888 maint.mk: give full control over update-copyright exclusions
10889 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10890 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10891 (update-copyright): Don't force inclusion of top-level
10892 ChangeLog. Don't force exclusion of all COPYING files, but make
10893 them the default exclusion instead.
10895 2009-08-16 Bruno Haible <bruno@clisp.org>
10897 Fix test failures on Solaris 10.
10898 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10899 tests when Solaris iconv() is used.
10900 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10901 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10902 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10903 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10904 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10906 2009-08-16 Bruno Haible <bruno@clisp.org>
10908 Fix test failures on Solaris 10.
10909 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10910 'tr' program and pass it as first argument.
10911 * tests/test-pipe-filter-gi1.sh: Likewise.
10912 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10913 program as first argument.
10914 * tests/test-pipe-filter-gi1.c (main): Likewise.
10916 2009-08-16 Eric Blake <ebb9@byu.net>
10918 fpurge: fix previous commits
10919 * modules/fpurge (Makefile.am): Make replacement conditional,
10920 partially reverting 2007-04-29 change; missed in previous
10922 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10925 2009-08-16 Bruno Haible <bruno@clisp.org>
10927 Clarify fpurge's effect on the file position.
10928 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10929 * tests/test-fpurge.c (main): Make a second pass for checking the file
10932 2009-08-16 Bruno Haible <bruno@clisp.org>
10934 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10935 declaration of fpurge is missing.
10936 * tests/test-fpurge.c (main): Check that the file has not more contents
10937 than expected. Close the file before removing it.
10939 2009-08-15 Eric Blake <ebb9@byu.net>
10941 fpurge: don't wrap working cygwin implementation
10942 * lib/fpurge.c (fpurge): Fix comment typo.
10943 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10944 1.7 to avoid replacement.
10945 * tests/test-fpurge.c (main): Enhance test.
10947 2009-08-15 Eric Blake <ebb9@byu.net>
10948 and Jim Meyering <meyering@redhat.com>
10950 test-update-copyright: skip if perl is insufficient
10951 * tests/test-update-copyright.sh: Failure to run maintainer tool
10952 should not cause testsuite failure on cygwin 1.5.
10954 2009-08-14 Eric Blake <ebb9@byu.net>
10956 doc: mention more functions added in cygwin 1.7.0
10957 * doc/posix-headers/limits.texi (limits.h): Update for recent
10959 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10960 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10961 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10962 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10963 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10965 2009-08-14 Eric Blake <ebb9@byu.net>
10967 maint.mk: simplify update-copyright rule
10968 * top/maint.mk (update-copyright-local): Delete, and document how
10969 to do it in cfg.mk instead.
10970 (update-copyright-exclude-regexp): Delete, and document how to do
10971 it in .x-update-copyright instead.
10972 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
10975 2009-08-14 Bruno Haible <bruno@clisp.org>
10977 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10979 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10981 maint.mk: support update-copyright-env
10982 * top/maint.mk (update-copyright-env): Define place-holder.
10983 (update-copyright): Expand $(update-copyright-env) before
10984 invoking update-copyright.
10986 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10988 update-copyright: implement forced reformatting
10989 * build-aux/update-copyright: Implement and document
10990 UPDATE_COPYRIGHT_FORCE.
10991 * tests/test-update-copyright.sh: Test it.
10993 2009-08-14 Eric Blake <ebb9@byu.net>
10994 and Bruno Haible <bruno@clisp.org>
10996 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10997 * tests/test-locale.c: Revert previous patch related to NULL.
10998 * tests/test-stdio.c: Likewise.
10999 * tests/test-stdlib.c: Likewise.
11000 * tests/test-string.c: Likewise.
11001 * tests/test-unistd.c: Likewise.
11002 * modules/time-tests (Depends-on): Add verify.
11003 * modules/wchar-tests (Depends-on): Likewise.
11004 * tests/test-time.c: Test for NULL compliance.
11005 * tests/test-wchar.c: Likewise.
11006 * modules/locale (Depends-on): Add stddef.
11007 * modules/stdio (Depends-on): Likewise.
11008 * modules/stdlib (Depends-on): Likewise.
11009 * modules/string (Depends-on): Likewise.
11010 * modules/time (Depends-on): Likewise.
11011 * modules/unistd (Depends-on): Likewise.
11012 * modules/wchar (Depends-on): Likewise.
11013 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11014 * lib/stdlib.in.h (includes): Likewise.
11015 * lib/string.in.h (includes): Likewise.
11016 * lib/time.in.h (includes): Likewise.
11017 * lib/unistd.in.h (includes): Likewise.
11018 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11020 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11021 * m4/stddef_h.m4: New file.
11022 * modules/stddef: Likewise.
11023 * lib/stddef.in.h: Likewise.
11024 * modules/stddef-tests: Likewise.
11025 * tests/test-stddef.c: Likewise.
11026 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11027 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11028 * doc/posix-headers/locale.texi (locale.h): Likewise.
11029 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11030 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11031 * doc/posix-headers/string.texi (string.h): Likewise.
11032 * doc/posix-headers/time.texi (time.h): Likewise.
11033 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11034 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11036 2009-08-14 Eric Blake <ebb9@byu.net>
11038 doc: improve git diff of texinfo files
11039 * .gitattributes: Add rule for *.texi files, with hint on how to
11041 Copied from m4, and based on a report by Bruno Haible.
11043 2009-08-14 Bruno Haible <bruno@clisp.org>
11045 Disable multithread support by default on Cygwin 1.5.x for real.
11046 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11048 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11050 update-copyright: much ado about intervals
11051 * build-aux/update-copyright: Implement and document
11052 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11053 of copyright year intervals.
11054 Also, document UPDATE_COPYRIGHT_YEAR.
11055 * tests/test-update-copyright.sh: Test it.
11057 update-copyright: convert 2-digit to 4-digit years
11058 * build-aux/update-copyright: Implement and document.
11059 * tests/test-update-copyright.sh: Update.
11061 2009-08-14 Jim Meyering <meyering@redhat.com>
11063 test-exclude: avoid coreutils "make check" failure
11064 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11065 just as in test-argmatch.c.
11067 2009-08-13 Eric Blake <ebb9@byu.net>
11069 test-dup2: fix bad assumption
11070 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11071 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11073 test-version-etc: fix CRLF portability issue
11074 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11076 * tests/test-argp-version-etc-1.sh: Likewise.
11078 getopt: update client modules
11079 * modules/argp (Depends-on): Use getopt-gnu.
11080 * modules/git-merge-changelog (Depends-on): Likewise.
11081 * modules/long-options (Depends-on): Likewise.
11082 * modules/xstrtol (Depends-on): Likewise.
11084 2009-08-13 Simon Josefsson <simon@josefsson.org>
11086 * tests/test-version-etc.sh: Don't fail on different
11087 project/version. Don't fail on CRLF differences. Rewrite to use
11088 multiple -e instead of multiple sed forks, suggested by Eric Blake
11090 * tests/test-argp-version-etc-1.sh: Likewise.
11092 2009-08-13 Simon Josefsson <simon@josefsson.org>
11094 * tests/test-version-etc.sh: Don't fail on different
11097 2009-08-12 Bruno Haible <bruno@clisp.org>
11099 Tests for modules 'getopt-posix', 'getopt-gnu'.
11100 * modules/getopt-posix-tests: New file.
11101 * tests/test-getopt.c: New file.
11102 * tests/test-getopt.h: New file.
11103 * tests/test-getopt_long.h: New file.
11105 New modules 'getopt-posix', 'getopt-gnu'.
11106 * modules/getopt-gnu: New file, renamed from modules/getopt.
11107 * modules/getopt-posix: New file.
11108 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11109 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11110 (gl_GETOPT): Remove macro.
11111 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11112 Disable the test against BSD systems that declare optreset. Test
11113 against mingw bug. Test against lack of support of optional arguments
11115 * doc/glibc-headers/getopt.texi: Update module name and list of
11116 relevant platforms.
11117 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11118 'getopt-gnu' and more portability problems.
11119 * NEWS: Mention the changes.
11121 2009-08-12 Bruno Haible <bruno@clisp.org>
11123 Ensure that optarg etc. get declared by <unistd.h>.
11124 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11125 AC_USE_SYSTEM_EXTENSIONS.
11126 * modules/getopt (Depends-on): Add 'extensions'.
11128 2009-08-12 Bruno Haible <bruno@clisp.org>
11130 Avoid test link errors.
11131 * modules/pipe-filter-ii-tests (Makefile.am): Define
11132 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11133 * modules/pipe-filter-gi-tests (Makefile.am): Define
11134 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11135 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11137 2009-08-12 Bruno Haible <bruno@clisp.org>
11139 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11140 gl_GETOPT_SUBSTITUTE before.
11141 (gl_GETOPT): Use it.
11142 * m4/argp.m4 (gl_ARGP): Update.
11143 Reported by Sergey Poznyakoff.
11145 * m4/getopt.m4: Reorder macros.
11146 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11147 (gl_GETOPT_SUBSTITUTE): Remove macro.
11149 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11151 Minor improvement in gitlog-to-changelog
11153 * build-aux/gitlog-to-changelog: New option `--format' makes
11154 output format string configurable.
11156 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11158 Optimize exclude: use hash tables for non-wildcard patterns.
11160 * lib/exclude.c: Include hash.h and mbuiter.h
11161 (struct exclude_pattern, exclude_segment): New data types.
11162 (struct exclude): Rewrite.
11163 (fnmatch_pattern_has_wildcards): New function.
11164 (new_exclude_segment, free_exclude_segment): New functions.
11165 (excluded_file_pattern_p, excluded_file_name_p): New functions.
11166 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11167 * lib/exclude.h (is_fnmatch_pattern): New prototype.
11168 * modules/exclude: Depend on hash and mbuiter.
11170 * modules/exclude-tests: New file.
11171 * tests/test-exclude.c: New file.
11172 * tests/test-exclude1.sh: New file.
11173 * tests/test-exclude2.sh: New file.
11174 * tests/test-exclude3.sh: New file.
11175 * tests/test-exclude4.sh: New file.
11176 * tests/test-exclude5.sh: New file.
11177 * tests/test-exclude6.sh: New file.
11178 * tests/test-exclude7.sh: New file.
11180 2009-08-12 Bruno Haible <bruno@clisp.org>
11182 Ensure that getopt() gets declared by <unistd.h>.
11183 * lib/unistd.in.h: Conditionally include getopt.h.
11184 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11185 Set GNULIB_UNISTD_H_GETOPT.
11186 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11187 GNULIB_UNISTD_H_GETOPT.
11188 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11190 2009-08-12 Bruno Haible <bruno@clisp.org>
11193 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11194 gl_replace_getopt instead of GETOPT_H.
11196 2009-08-12 Bruno Haible <bruno@clisp.org>
11198 * m4/getopt.m4: Add comments.
11200 2009-08-12 Bruno Haible <bruno@clisp.org>
11202 Disable multithread support by default on Cygwin 1.5.x.
11203 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11204 set gl_use_threads=no if not specified otherwise.
11206 2009-08-11 Bruno Haible <bruno@clisp.org>
11208 Avoid compilation error on NetBSD 5.0.
11209 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11210 * tests/test-stdio.c: Likewise.
11211 * tests/test-stdlib.c: Likewise.
11212 * tests/test-string.c: Likewise.
11213 * tests/test-unistd.c: Likewise.
11214 Reported by Greg Troxel <gdt@ir.bbn.com>
11215 at <https://savannah.gnu.org/support/?106973>.
11217 2009-08-11 Bruno Haible <bruno@clisp.org>
11219 * modules/dup2-tests (Depends-on): Remove close.
11221 Undo 2009-07-19 commit.
11222 * modules/acl-tests (Depends-on): Remove close.
11223 * modules/binary-io-tests (Depends-on): Likewise.
11224 * modules/closein-tests (Depends-on): Likewise.
11225 * modules/flock-tests (Depends-on): Likewise.
11226 * modules/fsync-tests (Depends-on): Likewise.
11227 * modules/lseek-tests (Depends-on): Likewise.
11228 * modules/pipe-tests (Depends-on): Likewise.
11229 * modules/posix_spawn-tests (Depends-on): Likewise.
11230 * modules/posix_spawnp-tests (Depends-on): Likewise.
11231 * modules/stat-time-tests (Depends-on): Likewise.
11232 * modules/yesno-tests (Depends-on): Likewise.
11234 2009-08-10 Bruno Haible <bruno@clisp.org>
11236 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11238 2009-08-10 Bruno Haible <bruno@clisp.org>
11241 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11243 2009-08-10 Bruno Haible <bruno@clisp.org>
11245 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11246 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11247 not only the first time.
11248 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11249 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11250 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11251 is 1, not only the the first time.
11253 2009-08-10 Bruno Haible <bruno@clisp.org>
11255 Make it possible to use module 'gethostname' without module 'close'.
11256 * lib/unistd.in.h (close): Evoke a link error only if
11257 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11258 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11259 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11260 * modules/unistd (Makefile.am): Substitute
11261 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11262 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11263 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11264 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11265 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11266 * modules/sys_ioctl (Makefile.am): Substitute
11267 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11268 * modules/socket (configure.ac): On native Windows, set
11269 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11270 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11271 Reported by Sam Steingold <sds@gnu.org>.
11273 2009-08-10 Bruno Haible <bruno@clisp.org>
11275 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11276 * modules/ioctl (configure.ac): Likewise.
11278 2009-08-10 Bruno Haible <bruno@clisp.org>
11280 Avoid collision between gnulib wrapper and libintl wrapper.
11281 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11282 already defined in intl/printf.c.
11283 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11284 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11286 2009-08-09 Bruno Haible <bruno@clisp.org>
11288 Make <sys/select.h> really self-contained, also on Solaris 10.
11289 * lib/sys_select.in.h: Include <string.h>.
11290 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11291 Solaris 10 problem.
11292 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11293 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11294 Reported by Jim Meyering.
11296 2009-08-09 Bruno Haible <bruno@clisp.org>
11298 Avoid warnings from 'aclocal' that are due to a use of macro name
11299 AM_XGETTEXT_OPTION that is not defined in automake.
11300 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11302 * modules/error (configure.ac): Likewise.
11303 * modules/propername (configure.ac): Likewise.
11304 * modules/vasprintf (configure.ac): Likewise.
11305 * modules/verror (configure.ac): Likewise.
11306 * modules/xprintf (configure.ac): Likewise.
11307 * modules/xvasprintf (configure.ac): Likewise.
11309 2009-08-08 Bruno Haible <bruno@clisp.org>
11311 Avoid compilation error in C++ mode.
11312 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11313 Reported by Sam Steingold <sds@gnu.org>.
11315 2009-08-08 Bruno Haible <bruno@clisp.org>
11317 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11318 for the various Unix platforms.
11319 * doc/posix-headers/limits.texi: Update platforms list regarding
11321 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11323 2009-08-07 Jim Meyering <meyering@redhat.com>
11325 selinux-at: fix typo in a comment
11326 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11327 Spotted by Paolo Bonzini.
11329 selinux-at: remove redundant m4 code, add documentation
11330 * modules/selinux-at (configure.ac): Remove redundant code.
11331 LIB_SELINUX is already set via the dependent module, selinux-h.
11332 (Include): Add quotes around selinux-at.h.
11333 * lib/selinux-at.h: Add documentation.
11334 Reported by Bruno Haible in
11335 http://marc.info/?l=gnulib-bug&m=124958988300749
11337 2009-08-07 Bruno Haible <bruno@clisp.org>
11339 Avoid link error on MacOS X 10.3 and 10.4.
11340 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11341 on non-ELF systems.
11342 * lib/argp-pv.c (argp_program_version): Likewise.
11343 Reported by Simon Josefsson.
11345 2009-08-07 Simon Josefsson <simon@josefsson.org>
11347 * tests/test-version-etc.sh: Use $EXEEXT.
11349 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11351 update-copyright: update documentation to point to maint.mk
11352 * build-aux/update-copyright: Here.
11354 2009-08-06 Jim Meyering <meyering@redhat.com>
11356 maint.mk: support update-copyright-local
11357 * top/maint.mk (update-copyright-local): Define place-holder.
11358 (update-copyright): Depend on $(update-copyright-local).
11360 2009-08-06 Jim Meyering <meyering@redhat.com>
11362 selinux-at: new module
11363 Initially written for coreutils, this module will soon be
11364 used by findutils, too.
11365 * MODULES.html.sh [Misc]: Add selinux-at.
11366 * lib/selinux-at.h: New file, from coreutils.
11367 * lib/selinux-at.c: Likewise.
11368 * modules/selinux-at: Likewise.
11369 (License): Change from LGPL to GPL, since it depends
11370 on the GPL'd openat module.
11373 * README: Remove references to cogito.
11374 Remove cvs-repo-updating instructions from 2007.
11375 Don't imply that CVS is better if you have limited disk space.
11377 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11379 update-copyright: support C-style comments
11380 * build-aux/update-copyright: Implement and document.
11381 * tests/test-update-copyright.sh: Test.
11383 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11385 update-copyright: support omitted "(C)"
11386 * build-aux/update-copyright: Implement and document. Also,
11387 allow variable whitespace before "(C)".
11388 * tests/test-update-copyright.sh: Test.
11390 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11392 update-copyright: don't trip on non-FSF copyright statements
11393 * build-aux/update-copyright: Fix so that the first correctly
11394 formatted FSF copyright statement is recognized no matter what
11395 appears before it. Update documentation.
11396 * tests/test-update-copyright.sh: Test that.
11398 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11400 update-copyright: clean up code a little
11401 * build-aux/update-copyright: Append "_re" to the name of any
11402 variable holding a regular expression.
11403 Replace "old" and "new" with "stmt" in variable names.
11404 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11406 Format code more consistently.
11408 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11410 update-copyright-tests: improve portability
11411 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11412 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
11414 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11416 update-copyright: support @copyright{} and ©
11417 * build-aux/update-copyright: Implement and document.
11418 * tests/test-update-copyright.sh: Test.
11420 2009-08-04 Jim Meyering <meyering@redhat.com>
11422 update-copyright-tests: correctly test EOL=\r\n handling
11423 * tests/test-update-copyright.sh: Put \r at the end of some lines
11424 for the dos-eol tests. Based on a patch by Joel E. Denny.
11426 maint.mk: make update-copyright exclusion list more configurable
11427 * top/maint.mk (update-copyright): Default to excluding COPYING,
11428 but allow an override, in case someone does want to update that file.
11430 maint.mk: don't update copyright date in COPYING
11431 * top/maint.mk (update-copyright): Exclude COPYING.
11433 maint.mk: add a copyright-updating rule
11434 * top/maint.mk (update-copyright): New rule.
11435 Derived from coreutils/Makefile.am.
11437 update-copyright: rename some variables
11438 * build-aux/update-copyright: Rename a few variables for clarity.
11439 Tweak syntax. List Joel E. Denny as coauthor.
11441 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11443 update-copyright: fix bug for 2-digit last year and add tests
11444 * build-aux/update-copyright: Fix bug.
11445 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11447 * modules/update-copyright-tests: New
11448 * tests/test-update-copyright.sh: New.
11450 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11452 update-copyright: handle leading tabs in line prefix
11453 * build-aux/update-copyright: Count leading tabs as 8 spaces
11454 when computing margin. This helps with the formatting of
11455 ChangeLogs, for example.
11456 Fix documentation a little.
11458 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11460 update-copyright: support EOL=\r\n
11461 * build-aux/update-copyright: Implement that.
11463 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11465 update-copyright: automatically format copyright statements
11466 * build-aux/update-copyright: Implement that.
11467 Also, be a little more predictable and safer by always failing
11468 when the full copyright format is not perfectly recognized as an
11469 unbroken whole. Discussed at
11470 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11471 Rewrite documentation.
11473 2009-08-03 Bruno Haible <bruno@clisp.org>
11475 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11477 2009-08-02 Bruno Haible <bruno@clisp.org>
11479 Tests for module 'uname'.
11480 * modules/uname-tests: New file.
11481 * tests/test-uname.c: New file.
11483 New module 'uname'.
11484 * lib/uname.c: New file.
11485 * m4/uname.m4: New file.
11486 * modules/uname: New file.
11487 * doc/posix-functions/uname.texi: Mention the new module.
11489 2009-08-02 Bruno Haible <bruno@clisp.org>
11491 Tests for module 'sys_utsname'.
11492 * modules/sys_utsname-tests: New file.
11493 * tests/test-sys_utsname.c: New file.
11495 New module 'sys_utsname'.
11496 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11497 * m4/sys_utsname_h.m4: New file.
11498 * modules/sys_utsname: New file.
11499 * doc/posix-headers/sys_utsname.texi: Mention the new module.
11501 2009-08-02 Bruno Haible <bruno@clisp.org>
11503 Implicitly initialize the sockets library.
11504 * lib/gethostname.c: Include sockets.h.
11505 (rpl_gethostname): Invoke gl_sockets_startup.
11506 * lib/socket.c: Include sockets.h.
11507 (rpl_socket): Invoke gl_sockets_startup.
11508 * modules/gethostname (Depends-on): Add sockets.
11509 * modules/socket (Depends-on): Likewise.
11510 * tests/test-poll.c: Don't include sockets.h.
11511 (main): Don't invoke gl_sockets_startup.
11512 * tests/test-select.c: Don't include sockets.h.
11513 (main): Don't invoke gl_sockets_startup.
11515 2009-08-02 Bruno Haible <bruno@clisp.org>
11517 Allow multiple calls to gl_sockets_startup.
11518 * lib/sockets.c (initialized_sockets_version): New variable.
11519 (gl_sockets_startup): Do nothing if already called for this or a higher
11521 (gl_sockets_cleanup): Reset initialized_sockets_version.
11523 2009-08-03 Simon Josefsson <simon@josefsson.org>
11525 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
11526 different project/version.
11528 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
11529 Bruno Haible <bruno@clisp.org>
11531 Tests for module 'pipe-filter-gi'.
11532 * modules/pipe-filter-gi-tests: New file.
11533 * tests/test-pipe-filter-gi1.sh: New file.
11534 * tests/test-pipe-filter-gi1.c: New file.
11535 * tests/test-pipe-filter-gi2.sh: New file.
11536 * tests/test-pipe-filter-gi2-main.c: New file.
11537 * tests/test-pipe-filter-gi2-child.c: New file.
11539 New module 'pipe-filter-gi'.
11540 * lib/pipe-filter-gi.c: New file.
11541 * modules/pipe-filter-gi: New file.
11543 2009-08-02 Bruno Haible <bruno@clisp.org>
11544 Paolo Bonzini <bonzini@gnu.org>
11546 Tests for module 'pipe-filter-ii'.
11547 * modules/pipe-filter-ii-tests: New file.
11548 * tests/test-pipe-filter-ii1.sh: New file.
11549 * tests/test-pipe-filter-ii1.c: New file.
11550 * tests/test-pipe-filter-ii2.sh: New file.
11551 * tests/test-pipe-filter-ii2-main.c: New file.
11552 * tests/test-pipe-filter-ii2-child.c: New file.
11554 New module 'pipe-filter-ii'.
11555 * lib/pipe-filter.h: New file.
11556 * lib/pipe-filter-ii.c: New file.
11557 * lib/pipe-filter-aux.h: New file.
11558 * modules/pipe-filter-ii: New file.
11560 2009-08-02 Simon Josefsson <simon@josefsson.org>
11562 * lib/gc-libgcrypt.c: Change copyright to FSF.
11563 * lib/gc-gnulib.c: Likewise.
11565 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
11567 * lib/gethostname.c: Include limits.h.
11569 2009-08-02 Simon Josefsson <simon@josefsson.org>
11570 Bruno Haible <bruno@clisp.org>
11572 Ensure HOST_NAME_MAX as part of the gethostname module.
11573 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11574 define also HOST_NAME_MAX.
11575 * tests/test-gethostname.c: Include <limits.h>.
11576 (main): Check also HOST_NAME_MAX.
11577 * doc/posix-headers/limits.texi: Document the mingw problem.
11579 2009-08-02 Bruno Haible <bruno@clisp.org>
11581 * lib/gethostname.c (gethostname): Fix handling of large len argument.
11584 2009-03-31 Simon Josefsson <simon@josefsson.org>
11586 * lib/gethostname.c: Add Windows wrapper.
11587 * m4/gethostname.m4: Look for gethostname in -lws2_32.
11588 * modules/gethostname: Depend on sys_socket & errno, for also
11589 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
11590 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11592 2009-07-31 Jim Meyering <meyering@redhat.com>
11594 getloadavg: fix symbol name in comment
11595 * lib/getloadavg.c: Correct a typo I introduced when adding
11596 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11597 Matt Kraai spotted the problem.
11599 2009-07-29 Matt Kraai <mkraai@beckman.com>
11601 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11602 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11603 code also if ! defined N_NAME_POINTER.
11604 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11605 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11606 but the n_name member is a 12-byte array.
11608 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
11610 update-copyright: generalize comment handling
11611 * build-aux/update-copyright: Handle copyright statements
11612 within more comment styles.
11614 Report any file with an external copyright holder or parse failure.
11616 2009-07-29 Jim Meyering <meyering@redhat.com>
11618 mktime: correct setting of REPLACE_MKTIME
11619 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11621 update-copyright: new module
11622 * modules/update-copyright: New file.
11623 * build-aux/update-copyright: New file.
11624 * MODULES.html.sh (maint+release support): Add update-copyright.
11626 2009-07-27 Bruno Haible <bruno@clisp.org>
11628 Fix compilation error when <ctime> is used and mktime is replaced.
11629 * lib/time.in.h (mktime): New declaration.
11630 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11631 REPLACE_MKTIME instead of defining mktime in config.h.
11632 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11633 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11634 Reported by Ross McFarland <rwmcfa1@neces.com>.
11636 2009-07-27 Bruno Haible <bruno@clisp.org>
11638 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11639 Reported by Matt Kraai <mkraai@beckman.com>.
11641 2009-07-25 Jim Meyering <meyering@redhat.com>
11643 maint.mk: avoid warnings about missing files
11644 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11645 diagnostic when .prev-version does not exist.
11646 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11647 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11648 nonexistent cfg.mk.
11649 Suggestions from Simon Josefsson.
11651 2009-07-25 Bruno Haible <bruno@clisp.org>
11653 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11654 defined as macros. Needed on QNX 6.4.1.
11655 Reported by Matt Kraai <mkraai@beckman.com>.
11657 2009-07-23 Jim Meyering <meyering@redhat.com>
11659 maint.mk: invoke "make dist" with a working value of XZ_OPT
11660 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11662 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
11664 Make fseeko.c compile on QNX.
11665 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11667 2009-07-22 Peter Simons <simons@cryp.to>
11669 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11670 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11671 * lib/md4.h: Likewise.
11672 * lib/md5.h: Likewise.
11673 * lib/sha1.h: Likewise.
11674 * lib/sha256.h: Likewise.
11675 * lib/sha512.h: Likewise.
11677 tests-sha1: don't assign literal string to 'char *' variable
11678 * tests/test-sha1.c (main): Declare locals with "const" to match
11679 attributes of the right hand side.
11681 2009-07-21 Eric Blake <ebb9@byu.net>
11683 dup2: fix more mingw problems
11684 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11686 * doc/posix-functions/dup2.texi (dup2): Document the bug.
11687 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11688 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11689 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11690 care of mingw bugs.
11692 2009-07-21 Jim Meyering <meyering@redhat.com>
11694 vc-list-files: avoid failure when /bin/sh is dash
11695 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11696 On some Debian based systems, /bin/sh is a symlink to dash, and running
11697 this command would omit the "/" following each 'tests' prefix:
11698 dash -x build-aux/vc-list-files -C . tests
11699 That is because bash and dash work differently:
11700 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11704 2009-07-21 Eric Blake <ebb9@byu.net>
11706 dup2-tests: test previous patch
11707 * modules/dup2-tests: New file.
11708 * tests/test-dup2.c: Likewise.
11709 * tests/test-open.c (main): Avoid unspecified behavior.
11710 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11713 dup2: work around mingw and cygwin 1.5 bug
11714 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11715 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11716 * modules/unistd (Makefile.am): Substitute it.
11717 * lib/unistd.in.h (dup2): Declare the replacement.
11718 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11719 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11720 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11721 * modules/execute (Depends-on): Add dup2.
11722 * modules/fseterr (Depends-on): Likewise.
11723 * modules/pipe (Depends-on): Likewise.
11724 * modules/posix_spawn-internal (Depends-on): Likewise.
11726 2009-07-21 Bruno Haible <bruno@clisp.org>
11728 * modules/.gitattributes: New file.
11730 2009-07-20 Bruno Haible <bruno@clisp.org>
11732 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11735 2009-07-20 Eric Blake <ebb9@byu.net>
11737 test-pipe: make a bit more robust.
11738 * tests/test-pipe.c (myerr): Allow error messages regardless of
11739 what we do to stderr.
11740 (test_pipe): Rearrange to avoid deadlock.
11741 (child_main): Try a larger read, to ensure we avoided deadlock.
11742 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11743 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11746 2009-07-19 Jim Meyering <meyering@redhat.com>
11748 fts: avoid false-positive cycle-detection
11749 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11750 for each new command line argument.
11752 2009-07-19 Bruno Haible <bruno@clisp.org>
11754 Fix build error on mingw with the modules sys_select and unistd.
11755 * modules/acl-tests (Depends-on): Add close.
11756 * modules/binary-io-tests (Depends-on): Likewise.
11757 * modules/closein-tests (Depends-on): Likewise.
11758 * modules/flock-tests (Depends-on): Likewise.
11759 * modules/fsync-tests (Depends-on): Likewise.
11760 * modules/lseek-tests (Depends-on): Likewise.
11761 * modules/pipe-tests (Depends-on): Likewise.
11762 * modules/posix_spawn-tests (Depends-on): Likewise.
11763 * modules/posix_spawnp-tests (Depends-on): Likewise.
11764 * modules/stat-time-tests (Depends-on): Likewise.
11765 * modules/yesno-tests (Depends-on): Likewise.
11767 2009-07-19 Bruno Haible <bruno@clisp.org>
11769 Unify conditionals.
11770 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11771 macros, not at the compiler macros.
11772 * lib/pipe.c: Likewise.
11773 * lib/execute.c: Likewise.
11774 * lib/spawni.c: Likewise.
11776 2009-07-19 Bruno Haible <bruno@clisp.org>
11778 Fix handling of closed stdin/stdout/stderr on mingw.
11779 * lib/w32spawn.h: Include unistd.h.
11780 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11781 file descriptor with O_NOINHERIT flag.
11782 (fd_safer_noinherit): New function, based on fd-safer.c.
11783 (dup_safer_noinherit): New function, based on dup-safer.c.
11784 (undup_safer_noinherit): New function.
11785 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11786 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11787 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11788 instead of fd_safer.
11789 * tests/test-pipe.c: Include <windows.h>.
11790 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11792 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11794 (test_pipe): Pass an extra argument for disambiguation.
11795 (main): Invoke parent_main or child_main.
11797 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11800 2009-07-18 Eric Blake <ebb9@byu.net>
11802 test-pipe: fix mingw build
11803 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11805 2009-07-18 Bruno Haible <bruno@clisp.org>
11807 * modules/pipe-tests (Makefile.am): Fix typo.
11809 2009-07-18 Eric Blake <ebb9@byu.net>
11811 error: fix mingw build
11812 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11813 Reported by Bruno Haible.
11815 error: avoid undefined use of stdout
11816 * lib/error.c (error, error_at_line): Check that fd 1 is open
11817 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11818 is handling faults and the close_stdout module wants to report the
11819 detection of closed stdout as an error.
11821 2009-07-17 Eric Blake <ebb9@byu.net>
11823 pipe: be robust in face of closed fds
11824 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11825 should cause child to misbehave.
11826 * modules/pipe-tests: New module.
11827 * tests/test-pipe.c: New file.
11828 * tests/test-pipe.sh: New file.
11829 Reported by Akim Demaille.
11831 2009-07-14 Bruno Haible <bruno@clisp.org>
11833 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11834 Reported by anonymous kc.
11836 2009-07-07 Jim Meyering <meyering@redhat.com>
11838 maint.mk: don't look for translatable strings in *.m4 or *.mk
11839 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11840 when searching for translatable strings.
11842 2009-07-05 Jim Meyering <meyering@redhat.com>
11844 remove superfluous parentheses in STREQ definition
11845 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11846 * lib/getugroups.c (STREQ): Likewise.
11847 * lib/fnmatch.c (STREQ): Likewise.
11848 Spotted by Bruno Haible.
11850 2009-07-04 Jim Meyering <meyering@redhat.com>
11852 argv-iter: new module
11853 * MODULES.html.sh: Add argv-iter.
11854 * lib/argv-iter.c, lib/argv-iter.h: New files.
11855 * modules/argv-iter: New file.
11856 * modules/argv-iter-tests: New file.
11857 * tests/test-argv-iter.c: Test it.
11859 2009-07-04 Bruno Haible <bruno@clisp.org>
11862 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11863 contains more exact copies of a given entry than file2, leave the extra
11864 copies unpaired rather than aborting.
11865 Reported by Eric Blake.
11867 2009-07-02 Bruno Haible <bruno@clisp.org>
11869 Speedup git-merge-changelog for git cherry-pick.
11870 * lib/git-merge-changelog.c (struct entries_mapping): New type.
11871 (entries_mapping_get): New function, extracted from compute_mapping.
11872 (entries_mapping_reverse_get): New function.
11873 (compute_mapping): Add a 'full' argument. Return the result in a
11874 'struct entries_mapping'.
11875 (main): Update. Access the mappings through entries_mapping_get.
11876 Reported by Eric Blake.
11878 2009-07-02 Bruno Haible <bruno@clisp.org>
11880 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11883 2009-07-02 Bruno Haible <bruno@clisp.org>
11885 Speed up approximate search for matching ChangeLog entries.
11886 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11887 argument. Call fstrcmp_bounded instead of fstrcmp.
11888 (compute_mapping, try_split_merged_entry, main): Update callers.
11890 2009-07-02 Bruno Haible <bruno@clisp.org>
11892 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11894 2009-06-30 Bruno Haible <bruno@clisp.org>
11896 Reduce the number of uc_is_cased calls.
11897 * lib/unicase.h (casing_suffix_context_t): Add
11898 'first_char_except_ignorable' field.
11899 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11900 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11901 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11902 Update initializer.
11903 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11904 case-ignorable characters.
11905 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11906 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11907 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11908 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11909 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11911 2009-06-30 Bruno Haible <bruno@clisp.org>
11913 Tests for module 'unicase/ignorable'.
11914 * modules/unicase/ignorable-tests: New file.
11915 * tests/unicase/test-ignorable.c: New file, generated by
11918 Tests for module 'unicase/cased'.
11919 * modules/unicase/cased-tests: New file.
11920 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11921 * tests/unicase/test-predicate-part1.h: New file, derived from
11922 tests/unictype/test-predicate-part1.h.
11923 * tests/unicase/test-predicate-part2.h: New file, same as
11924 tests/unictype/test-predicate-part2.h.
11926 Fix evaluation of "Before C" condition of FINAL_SIGMA.
11927 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11928 (output_casing_properties): New function.
11930 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11931 * lib/unicase/cased.c: Include unictype/bitmap.h.
11932 (uc_is_cased): Define through a bitmap lookup.
11933 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11934 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11935 (uc_is_case_ignorable): Define through a bitmap lookup.
11936 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11937 lib/unictype/bitmap.h.
11938 (Depends-on): Add inline. Clean up.
11939 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11940 lib/unictype/bitmap.h.
11941 (Depends-on): Add inline. Clean up.
11942 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11944 * tests/unicase/test-u16-tolower.c (main): Likewise.
11945 * tests/unicase/test-u32-tolower.c (main): Likewise.
11947 2009-06-30 Bruno Haible <bruno@clisp.org>
11949 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11950 * lib/unicase/u16-casemap.c: Likewise.
11951 * lib/unicase/u32-casemap.c: Likewise.
11953 2009-06-29 Bruno Haible <bruno@clisp.org>
11955 Define u32_casefold as a wrapper around u32_ct_casefold.
11956 * lib/unicase/u32-casefold.c: Update.
11957 * modules/unicase/u32-casefold (Depends-on): Add
11958 unicase/u32-ct-casefold, unicase/empty-prefix-context,
11959 unicase/empty-suffix-context. Clean up.
11961 Define u16_casefold as a wrapper around u16_ct_casefold.
11962 * lib/unicase/u16-casefold.c: Update.
11963 * modules/unicase/u16-casefold (Depends-on): Add
11964 unicase/u16-ct-casefold, unicase/empty-prefix-context,
11965 unicase/empty-suffix-context. Clean up.
11967 Define u8_casefold as a wrapper around u8_ct_casefold.
11968 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11969 * lib/unicase/u8-casefold.c: Update.
11970 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11971 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11973 Define u32_totitle as a wrapper around u32_ct_totitle.
11974 * lib/unicase/u32-totitle.c: Update.
11975 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11976 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11978 Define u16_totitle as a wrapper around u16_ct_totitle.
11979 * lib/unicase/u16-totitle.c: Update.
11980 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11981 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11983 Define u8_totitle as a wrapper around u8_ct_totitle.
11984 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11986 (FUNC): Delegate to U_CT_TOTITLE.
11987 * lib/unicase/u8-totitle.c: Update.
11988 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11989 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11991 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11993 * modules/unicase/u32-tolower (Depends-on): Add
11994 unicase/empty-prefix-context, unicase/empty-suffix-context.
11996 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11998 * modules/unicase/u16-tolower (Depends-on): Add
11999 unicase/empty-prefix-context, unicase/empty-suffix-context.
12001 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12002 * modules/unicase/u8-tolower (Depends-on): Add
12003 unicase/empty-prefix-context, unicase/empty-suffix-context.
12005 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12007 * modules/unicase/u32-toupper (Depends-on): Add
12008 unicase/empty-prefix-context, unicase/empty-suffix-context.
12010 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12012 * modules/unicase/u16-toupper (Depends-on): Add
12013 unicase/empty-prefix-context, unicase/empty-suffix-context.
12015 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12016 * modules/unicase/u8-toupper (Depends-on): Add
12017 unicase/empty-prefix-context, unicase/empty-suffix-context.
12019 New module 'unicase/u32-ct-casefold'.
12020 * lib/unicase/u32-ct-casefold.c: New file.
12021 * modules/unicase/u32-ct-casefold: New file.
12023 New module 'unicase/u16-ct-casefold'.
12024 * lib/unicase/u16-ct-casefold.c: New file.
12025 * modules/unicase/u16-ct-casefold: New file.
12027 New module 'unicase/u8-ct-casefold'.
12028 * lib/unicase/u8-ct-casefold.c: New file.
12029 * lib/unicase/u-ct-casefold.h: New file, derived from
12030 lib/unicase/u-casefold.h.
12031 * modules/unicase/u8-ct-casefold: New file.
12033 New module 'unicase/u32-ct-totitle'.
12034 * lib/unicase/u32-ct-totitle.c: New file.
12035 * modules/unicase/u32-ct-totitle: New file.
12037 New module 'unicase/u16-ct-totitle'.
12038 * lib/unicase/u16-ct-totitle.c: New file.
12039 * modules/unicase/u16-ct-totitle: New file.
12041 New module 'unicase/u8-ct-totitle'.
12042 * lib/unicase/u8-ct-totitle.c: New file.
12043 * lib/unicase/u-ct-totitle.h: New file, derived from
12044 lib/unicase/u-totitle.h.
12045 * modules/unicase/u8-ct-totitle: New file.
12047 New module 'unicase/u32-ct-tolower'.
12048 * lib/unicase/u32-ct-tolower.c: New file.
12049 * modules/unicase/u32-ct-tolower: New file.
12051 New module 'unicase/u16-ct-tolower'.
12052 * lib/unicase/u16-ct-tolower.c: New file.
12053 * modules/unicase/u16-ct-tolower: New file.
12055 New module 'unicase/u8-ct-tolower'.
12056 * lib/unicase/u8-ct-tolower.c: New file.
12057 * modules/unicase/u8-ct-tolower: New file.
12059 New module 'unicase/u32-ct-toupper'.
12060 * lib/unicase/u32-ct-toupper.c: New file.
12061 * modules/unicase/u32-ct-toupper: New file.
12063 New module 'unicase/u16-ct-toupper'.
12064 * lib/unicase/u16-ct-toupper.c: New file.
12065 * modules/unicase/u16-ct-toupper: New file.
12067 New module 'unicase/u8-ct-toupper'.
12068 * lib/unicase/u8-ct-toupper.c: New file.
12069 * modules/unicase/u8-ct-toupper: New file.
12071 Add context arguments to u*_casemap functions.
12072 * lib/unicase/unicasemap.h: Include unicase.h.
12073 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12074 suffix_context arguments.
12075 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12077 (FUNC): Add prefix_context and suffix_context arguments. Use
12078 uc_is_cased and uc_is_case_ignorable.
12079 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12080 * lib/unicase/u16-casemap.c: Likewise.
12081 * lib/unicase/u32-casemap.c: Likewise.
12082 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12083 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12084 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12085 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12086 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12087 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12089 New module 'unicase/u32-suffix-context'.
12090 * lib/unicase/u32-suffix-context.c: New file.
12091 * modules/unicase/u32-suffix-context: New file.
12093 New module 'unicase/u16-suffix-context'.
12094 * lib/unicase/u16-suffix-context.c: New file.
12095 * modules/unicase/u16-suffix-context: New file.
12097 New module 'unicase/u8-suffix-context'.
12098 * lib/unicase/u8-suffix-context.c: New file.
12099 * lib/unicase/u-suffix-context.h: New file.
12100 * modules/unicase/u8-suffix-context: New file.
12102 New module 'unicase/empty-suffix-context'.
12103 * lib/unicase/empty-suffix-context.c: New file.
12104 * modules/unicase/empty-suffix-context: New file.
12106 New module 'unicase/u32-prefix-context'.
12107 * lib/unicase/u32-prefix-context.c: New file.
12108 * modules/unicase/u32-prefix-context: New file.
12110 New module 'unicase/u16-prefix-context'.
12111 * lib/unicase/u16-prefix-context.c: New file.
12112 * modules/unicase/u16-prefix-context: New file.
12114 New module 'unicase/u8-prefix-context'.
12115 * lib/unicase/u8-prefix-context.c: New file.
12116 * lib/unicase/u-prefix-context.h: New file.
12117 * lib/unicase/context.h: New file.
12118 * modules/unicase/u8-prefix-context: New file.
12120 New module 'unicase/empty-prefix-context'.
12121 * lib/unicase/empty-prefix-context.c: New file.
12122 * modules/unicase/empty-prefix-context: New file.
12124 New module 'unicase/ignorable'.
12125 * lib/unicase/ignorable.c: New file.
12126 * modules/unicase/ignorable: New file.
12128 New module 'unicase/cased'.
12129 * lib/unicase/caseprop.h: New file.
12130 * lib/unicase/cased.c: New file.
12131 * modules/unicase/cased: New file.
12133 New functions for case mapping of substrings.
12134 * lib/unicase.h (casing_prefix_context_t): New type.
12135 (unicase_empty_prefix_context): New variable.
12136 (u8_casing_prefix_context, u16_casing_prefix_context,
12137 u32_casing_prefix_context, u8_casing_prefixes_context,
12138 u16_casing_prefixes_context, u32_casing_prefixes_context): New
12140 (casing_suffix_context_t): New type.
12141 (unicase_empty_suffix_context): New variable.
12142 (u8_casing_suffix_context, u16_casing_suffix_context,
12143 u32_casing_suffix_context, u8_casing_suffixes_context,
12144 u16_casing_suffixes_context, u32_casing_suffixes_context,
12145 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12146 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12147 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12150 2009-06-28 Jim Meyering <meyering@redhat.com>
12152 boostrap: indent only with spaces
12153 * build-aux/bootstrap: Indent only with spaces, never TABs.
12155 bootstrap: split long lines
12156 * build-aux/bootstrap: Keep line length < 80.
12158 bootstrap: sync from coreutils
12159 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12160 just as autoreconf does. Verify a list of prerequisite
12161 package-name,version-number pairs if defined in bootstrap.conf.
12162 Refer to README-prereq, if prerequisites are not satisfied.
12164 2009-06-27 Eric Blake <ebb9@byu.net>
12166 tests: add test for bogus NULL definition
12167 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12168 * tests/test-stdlib.c: Likewise.
12169 * tests/test-string.c: Likewise.
12170 * tests/test-locale.c: Likewise.
12171 * tests/test-unistd.c: Likewise.
12172 * modules/stdio-tests (Depends-on): Add verify.
12173 * modules/stdlib-tests (Depends-on): Likewise.
12174 * modules/string-tests (Depends-on): Likewise.
12175 * modules/locale-tests (Depends-on): Likewise.
12176 * modules/unistd-tests (Depends-on): Likewise.
12178 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12180 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12181 self-explaining comment.
12182 * m4/selinux-selinux-h: Update serial.
12183 (gl_LIBSELINUX): New macro, adding a warning for missing development
12184 packages to code extracted from...
12185 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
12186 Add warning for missing development packages here, too.
12188 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
12190 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12192 2009-06-25 Eric Blake <ebb9@byu.net>
12194 version-etc: fix regression
12195 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12197 (version_etc): Use it, to catch bugs with trailing NULL.
12198 * lib/version-etc.c (version_etc_arn): Delete unused argument.
12199 (version_etc_va): Fix logic bug.
12200 * modules/version-etc-tests: Add test.
12201 * tests/test-version-etc.c: New file.
12202 * tests/test-version-etc.sh: Likewise.
12204 2009-06-25 Sam Steingold <sds@gnu.org>
12206 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12207 mbtowc declaration.
12209 2009-06-25 Eric Blake <ebb9@byu.net>
12211 fpurge: migrate into <stdio.h>
12212 * lib/fpurge.h: Delete...
12213 * lib/stdio.in.h (fpurge): ...and declare here, instead.
12214 * lib/fpurge.c (fpurge): Change declaring header.
12215 * modules/fpurge (Files): Drop deleted file.
12216 (Depends-on): Add stdio.
12217 (configure.ac): Set witness.
12218 * modules/stdio (Makefile.am): Support fpurge macros.
12219 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12220 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12221 * lib/fflush.c: Update client.
12222 * tests/test-fpurge.c: Likewise.
12223 * NEWS: Mention the change.
12225 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12227 * lib/argp-version-etc.c (program_authors): Add const
12229 * lib/version-etc.c: Fix typos in the comments.
12230 * modules/argp-version-etc: Depends on version-etc.
12232 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12234 argp-version-etc: new module.
12236 * lib/argp-version-etc.c: New file.
12237 * lib/argp-version-etc.h: New file.
12238 * modules/argp-version-etc: New file.
12239 * modules/argp-version-etc-tests: New file.
12240 * tests/test-argp-version-etc.c: New test.
12241 * tests/test-argp-version-etc-1.sh: New test.
12243 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12245 Provide additional interfaces and documentation for version-etc
12248 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12250 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12253 2009-06-24 Bruno Haible <bruno@clisp.org>
12255 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12256 HAVE_LIB${NAME} macro.
12257 Reported by Sam Steingold <sds@gnu.org>.
12259 2009-06-23 Simon Josefsson <simon@josefsson.org>
12261 * modules/hash-tests (test_hash_LDADD): Link to libintl when
12264 2009-06-21 Bruno Haible <bruno@clisp.org>
12266 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12268 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12269 together with LIB${NAME}, LTLIB${NAME}.
12270 Reported by Sam Steingold <sds@gnu.org>.
12272 2009-06-20 Jim Meyering <meyering@redhat.com>
12274 tests: make sc_require_test_exit_idiom more generic
12275 * top/maint.mk (Exit_witness_file): New overridable variable.
12276 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12277 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12279 2009-06-19 Jim Meyering <meyering@redhat.com>
12281 hash: reverse order of src/dst parameters in an internal interface
12282 * lib/hash.c (transfer_entries): Reverse order of parameters to
12283 put DST before SRC. Adjust callers.
12285 tests: test-hash: avoid wholesale duplication
12286 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12287 Instead, use a loop and add a single conditional.
12289 tests: test-hash: allow seed selection via a command line argument
12290 * tests/test-hash.c (get_seed): New function.
12293 2009-06-19 Eric Blake <ebb9@byu.net>
12295 hash: avoid memory leak on allocation failure
12296 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12297 failure. Factor repeated algorithm...
12298 (transfer_entries): ...into new helper routine.
12299 (hash_delete): React to hash_rehash return value.
12301 hash: reduce memory pressure in hash_rehash no-op case
12302 * lib/hash.c (next_prime): Avoid overflow.
12303 (hash_initialize): Factor bucket size computation...
12304 (compute_bucket_size): ...into new helper function.
12305 (hash_rehash): Use new function and open coding to reduce memory
12306 pressure, and avoid a memory leak in USE_OBSTACK code.
12307 Reported by Jim Meyering.
12309 2009-06-18 Eric Blake <ebb9@byu.net>
12311 hash: make rotation more obvious
12312 * modules/hash (Depends-on): Add bitrotate and stdint.
12313 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12314 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12315 (SIZE_MAX): Rely on headers for definition.
12316 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12317 (raw_hasher): Use rotr_sz.
12318 Suggested by Jim Meyering.
12320 hash: fix memory leak in last patch
12321 * lib/hash.c (hash_rehash): Avoid memory leak.
12323 hash: avoid no-op rehashing
12324 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12326 hash: provide default callback functions
12327 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12328 (hash_initialize): Use them as defaults.
12329 * tests/test-hash.c (main): Test this.
12331 hash: minor optimization
12332 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12334 (hash_initialize): Document this promise.
12335 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12336 * tests/test-hash.c (hash_compare_strings): Test this.
12338 2009-06-18 Bruno Haible <bruno@clisp.org>
12340 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12341 going to be replaced anyway.
12343 2009-06-18 Bruno Haible <bruno@clisp.org>
12345 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12347 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12348 be replaced anyway.
12350 2009-06-18 Eric Blake <ebb9@byu.net>
12352 hash: check for resize before insertion
12353 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12354 threshold before insertion, so that a pathological hash_rehash
12355 that fills every bucket can still trigger another rehash.
12357 2009-06-18 Jim Meyering <meyering@redhat.com>
12359 hash-tests: add a loop around the small tests
12360 * tests/test-hash.c (main): Repeat small tests with selected
12361 small initial table sizes.
12363 2009-06-17 Eric Blake <ebb9@byu.net>
12365 hash: minor cleanups
12366 * lib/hash.h (hash_entry): Make opaque, by moving...
12367 * lib/hash.c (hash_entry): ...here.
12368 (hash_insert): Clarify restrictions on what can be inserted.
12369 (hash_get_next): Clarify when it is safe to remove an element
12371 (check_tuning): Skip verification when tuning is known safe.
12372 (hash_initialize): Clarify restrictions on tuning.
12374 2009-06-17 Jim Meyering <jim@meyering.net>
12375 and Eric Blake <ebb9@byu.net>
12377 hash-tests: new module
12378 * modules/hash-tests: New file.
12379 * tests/test-hash.c: New file.
12381 2009-06-17 Eric Blake <ebb9@byu.net>
12383 strstr-simple: document new module
12384 * MODULES.html.sh: Document new module.
12386 strstr, strcasestr: replace on platforms with broken memchr
12387 * modules/strstr: Split into...
12388 * modules/strstr-simple: ...new module that does not care about
12389 performance, but does care about glibc bug.
12390 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12391 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12392 if platform memchr is broken, per Debian bug 521737.
12393 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12395 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12396 * doc/posix-functions/strstr.texi (strstr): Document the fix.
12397 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12398 * modules/mountlist (Depends-on): Add strstr-simple.
12399 * modules/gen-uni-tables (Depends-on): Likewise.
12400 * modules/argz (Depends-on): Add strstr.
12402 2009-06-17 Bruno Haible <bruno@clisp.org>
12404 * modules/posix_spawn-internal (Depends-on): Add errno.
12406 2009-06-17 Bruno Haible <bruno@clisp.org>
12408 Define missing ESTALE on Interix 3.5.
12409 * lib/errno.in.h (ESTALE): Assign a value if missing.
12410 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12411 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12413 * doc/posix-headers/errno.texi: Mention the Interix bug.
12414 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12416 2009-06-15 Eric Blake <ebb9@byu.net>
12418 memchr, memchr2: add valgrind exception
12419 * lib/memchr.valgrind: New file.
12420 * lib/memchr2.valgrind: New file.
12421 * modules/memchr (Files): Distribute valgrind file.
12422 * modules/memchr2 (Files): Likewise.
12424 docs: memchr is no longer obsolete
12425 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12426 * lib/string.in.h (memchr): Simplify logic.
12428 2009-06-14 Jim Meyering <meyering@redhat.com>
12430 link-follow: fix the "checking..." message to not mention trailing slash
12431 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12432 never considered trailing slashes.
12434 2009-06-14 Bruno Haible <bruno@clisp.org>
12436 * m4/memchr.m4: Mention also the bug on IA-64.
12437 * doc/posix-functions/memchr.texi: Likewise.
12439 2009-06-12 Eric Blake <ebb9@byu.net>
12441 memchr: detect broken x86_64 and alpha implementations
12442 * modules/memchr-tests (Depends-on): Move mmap detection...
12443 * modules/memchr (Depends-on): ...here.
12444 (configure.ac): Set indicator.
12445 * lib/string.in.h (memchr): Declare replacement.
12446 * modules/string (Makefile.am): Trigger replacement.
12447 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12448 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12450 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12451 * modules/getpagesize (License): Relax license.
12453 2009-06-11 Bruno Haible <bruno@clisp.org>
12455 * lib/idpriv.h: Add more references.
12457 2009-06-08 Bruno Haible <bruno@clisp.org>
12459 Tests for module 'idpriv-droptemp'.
12460 * modules/idpriv-droptemp-tests: New file.
12461 * tests/test-idpriv-droptemp.sh: New file.
12462 * tests/test-idpriv-droptemp.su.sh: New file.
12463 * tests/test-idpriv-droptemp.c: New file.
12465 New module 'idpriv-droptemp'.
12466 * lib/idpriv-droptemp.c: New file.
12467 * modules/idpriv-droptemp: New file.
12469 2009-06-08 Bruno Haible <bruno@clisp.org>
12471 Tests for module 'idpriv-drop'.
12472 * modules/idpriv-drop-tests: New file.
12473 * tests/test-idpriv-drop.sh: New file.
12474 * tests/test-idpriv-drop.su.sh: New file.
12475 * tests/test-idpriv-drop.c: New file.
12477 New module 'idpriv-drop'.
12478 * lib/idpriv.h: New file.
12479 * lib-idpriv-drop.c: New file.
12480 * m4/idpriv.m4: New file.
12481 * modules/idpriv-drop: New file.
12483 2009-06-08 Bruno Haible <bruno@clisp.org>
12485 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12486 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12487 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12488 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12489 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12490 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12491 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12493 2009-06-08 Eric Blake <ebb9@byu.net>
12495 test-strstr: use memory fence, when possible
12496 * tests/test-strstr.c (main): Use memory fence, in order to be
12497 more likely to trigger Debian bug 521737.
12498 * modules/strstr-tests (Files): Pull in additional files.
12500 memchr: no longer obsolete, for wider field testing
12501 * modules/memchr (Status, Notice): Delete, this module is no
12503 * modules/vasnprintf (Depends-on): Add memchr.
12505 2009-06-07 Jim Meyering <meyering@redhat.com>
12507 hash: declare some functions with the warn_unused_result attribute
12508 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12510 2009-06-07 Bruno Haible <bruno@clisp.org>
12512 * tests/test-alignof.c: Don't test int64_t if it does not exist.
12513 Reported by Eric Blake.
12515 2009-06-06 Eric Blake <ebb9@byu.net>
12517 test-alignof: fix typo with long double
12518 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12521 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
12523 Escape non-texinfo { and }s.
12524 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12527 2009-06-04 Jim Meyering <meyering@redhat.com>
12529 gitlog-to-changelog: don't infloop on an empty commit log
12530 * build-aux/gitlog-to-changelog: Warn about an empty log message.
12531 Reported by Boris Petersen <transacid@centerim.org>.
12533 2009-06-03 Mike Frysinger <vapier@gentoo.org>
12535 version-etc: extend for packagers
12536 Add three new configure options, intended for packagers:
12537 --with-packager="packager name"
12538 --with-packager-version="packager-specific version"
12539 --with-packager-bug-reports="packager bug reporting"
12540 An example with coreutils:
12542 --with-packager=Gentoo \
12543 --with-packager-bug-report=http://bugs.gentoo.org/ \
12544 --with-packager-version="patchset 1.6"
12545 $ ./src/ls --version | head -n2
12546 ls (GNU coreutils) 7.1-dirty
12547 Packaged by Gentoo (patchset 1.6)
12548 Note that the bug reporting info via --help doesn't show up because
12549 coreutils uses its own custom emit_bug_reporting_address() implementation
12550 in src/system.h. If it didn't, it'd look like:
12551 $ ./src/ls --help | tail -n4
12552 Report bugs to <bug-coreutils@gnu.org>.
12553 Report Gentoo bugs to <http://bugs.gentoo.org/>.
12554 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12555 General help using GNU software: <http://www.gnu.org/gethelp/>.
12556 * lib/version-etc.c: Print new information, if provided.
12557 * m4/version-etc.m4: New file.
12558 * modules/version-etc (Files): Add m4/version-etc.m4.
12559 (configure.ac): Add gl_VERSION_ETC.
12561 2009-05-31 Bruno Haible <bruno@clisp.org>
12563 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12565 * modules/alignof-tests (Dependencies): Add stdint.
12566 Reported by Eric Blake.
12568 2009-05-31 Bruno Haible <bruno@clisp.org>
12570 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12571 restriction due to compiler bugs.
12572 Reported by Eric Blake.
12574 2009-05-31 Simon Josefsson <simon@josefsson.org>
12575 Bruno Haible <bruno@clisp.org>
12577 Fix test-alignof failure.
12578 * lib/alignof.h (alignof_slot): New macro.
12579 (alignof_type): New macro, with the same semantics as the previous
12581 (alignof): Alias to alignof_slot.
12582 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12583 check that the results are usable as constant expressions.
12585 2009-05-31 Bruno Haible <bruno@clisp.org>
12587 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12588 * tests/test-memchr.c (main): Check that memchr does not read past the
12589 first occurrence of the byte.
12590 * tests/test-strstr.c (main): Update comment.
12591 Suggested by Eric Blake.
12593 2009-05-30 Bruno Haible <bruno@clisp.org>
12595 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12596 detail how to use dumpbin.
12597 Reported by David Byron <dbyron@dbyron.com>.
12599 2009-06-02 Simon Josefsson <simon@josefsson.org>
12601 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12603 2009-06-02 Simon Josefsson <simon@josefsson.org>
12605 * m4/manywarnings.m4: Add GCC 4.4 warnings.
12607 2009-05-28 Bruno Haible <bruno@clisp.org>
12609 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12612 2009-05-28 Simon Josefsson <simon@josefsson.org>
12614 * gnulib-tool (func_import): Transform license on build-aux/ files too.
12616 2009-05-27 Simon Josefsson <simon@josefsson.org>
12618 * gnulib-tool (sed_transform_main_lib_file)
12619 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12622 2009-05-26 Simon Josefsson <simon@josefsson.org>
12624 * tests/test-strstr.c: Add another self-test.
12625 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12626 strdup. Suggested by Eric Blake <ebb9@byu.net>.
12628 2009-05-23 Bruno Haible <bruno@clisp.org>
12630 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12633 2009-05-21 Bruno Haible <bruno@clisp.org>
12635 Simplify use of mode_t varargs.
12636 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12637 uses 'mode_t' or 'int'.
12638 * lib/openat.c (openat): Likewise.
12639 * lib/open-safer.c (open_safer): Likewise.
12640 * m4/mode_t.m4: New file.
12641 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12642 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12643 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12644 * modules/open (Files): Add m4/mode_t.m4.
12645 * modules/openat (Files): Likewise.
12646 * modules/fcntl-safer (Files): Likewise.
12647 Suggested by Eric Blake.
12649 2009-05-21 Pádraig Brady <P@draigbrady.com>
12651 * doc/glibc-functions/fallocate.texi: New file.
12652 * doc/gnulib.texi: Include it.
12654 2009-05-21 Eric Blake <ebb9@byu.net>
12655 Bruno Haible <bruno@clisp.org>
12657 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12659 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12661 2009-05-21 Eric Blake <ebb9@byu.net>
12662 Bruno Haible <bruno@clisp.org>
12664 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12665 include_next. Fix of 2008-11-20 commit.
12666 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12667 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12668 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12670 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12671 instead of NEXT_MATH_H.
12673 2009-05-21 Bruno Haible <bruno@clisp.org>
12675 Avoid redefinition warnings for SIZE_MAX.
12676 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12677 Reported by Simon Josefsson.
12679 2009-05-21 Bruno Haible <bruno@clisp.org>
12681 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12684 2009-05-20 Bruno Haible <bruno@clisp.org>
12686 Make zeroptr.h work on mingw.
12687 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12689 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12690 * modules/memchr2-tests (configure.ac): Likewise.
12691 * modules/memcmp-tests (configure.ac): Likewise.
12692 * modules/memmem-tests (configure.ac): Likewise.
12693 * modules/memrchr-tests (configure.ac): Likewise.
12694 Reported by Simon Josefsson.
12696 2009-05-20 Simon Josefsson <simon@josefsson.org>
12698 * tests/test-glob.c: Include string.h for strcmp prototype.
12700 2009-05-20 Simon Josefsson <simon@josefsson.org>
12702 * modules/getdelim (Depends-on): Add explicit stdint, although it
12703 was implicitly already pulled in via realloc-posix.
12704 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12706 2009-05-20 Simon Josefsson <simon@josefsson.org>
12708 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
12709 G. Christensen" <tgc@jupiterrise.com>.
12710 * m4/sys_socket_h.m4: Check for sa_family_t.
12711 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12712 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12713 * tests/test-sys_socket.c: Check that sa_family_t works.
12715 2009-05-18 Eric Blake <ebb9@byu.net>
12717 maint.mk: allow gnulib_dir in VPATH build
12718 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12720 2009-05-15 Jim Meyering <meyering@redhat.com>
12722 maint.mk: Give gnulib_dir a default definition.
12723 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12724 Thus, most packages no longer need to specify this variable in cfg.mk
12726 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
12728 rename.m4: fix typos that would make non-mingw cross-configure fail
12729 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12731 2009-05-13 Eric Blake <ebb9@byu.net>
12733 mmap-anon: avoid out-of-order autoconf expansion
12734 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12735 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12736 * modules/memchr-tests (Depends-on): Add extensions.
12737 * modules/memchr2-tests (Depends-on): Add extensions.
12738 * modules/memcmp-tests (Depends-on): Add extensions.
12739 * modules/memmem-tests (Depends-on): Add extensions.
12740 * modules/memrchr-tests (Depends-on): Add extensions.
12742 2009-05-13 Bruno Haible <bruno@clisp.org>
12744 Make some tests ISO C 99 compliant.
12745 * tests/zerosize-ptr.h: New file.
12746 * tests/test-memchr.c: Include zerosize-ptr.h.
12747 (main): Use a zero-size object pointer instead of NULL.
12748 * tests/test-memchr2.c: Include zerosize-ptr.h.
12749 (main): Use a zero-size object pointer instead of NULL.
12750 * tests/test-memcmp.c: Include zerosize-ptr.h.
12751 (main): Use a zero-size object pointer instead of NULL.
12752 * tests/test-memmem.c: Include zerosize-ptr.h.
12753 (main): Use a zero-size object pointer instead of NULL.
12754 * tests/test-memrchr.c: Include zerosize-ptr.h.
12755 (main): Use a zero-size object pointer instead of NULL.
12756 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12758 (Depends-on): Add getpagesize.
12759 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12760 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12762 (Depends-on): Add getpagesize.
12763 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12764 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12766 (Depends-on): Add getpagesize.
12767 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12768 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12770 (Depends-on): Add getpagesize.
12771 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12772 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12774 (Depends-on): Add getpagesize.
12775 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12777 2009-05-12 Bruno Haible <bruno@clisp.org>
12779 Tests for module 'alignof'.
12780 * modules/alignof-tests: New file.
12781 * tests/test-alignof.c: New file.
12783 2009-05-12 Bruno Haible <bruno@clisp.org>
12786 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12787 vendor compilers that are always correct.
12789 2009-05-12 Bruno Haible <bruno@clisp.org>
12791 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12792 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12793 not whether its fully works.
12795 2009-05-12 Bruno Haible <bruno@clisp.org>
12797 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12799 2009-05-12 Jim Meyering <meyering@redhat.com>
12801 * top/maint.mk: Adjust backslash alignment.
12803 2009-05-11 Simon Josefsson <simon@josefsson.org>
12805 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12807 2009-05-11 Eric Blake <ebb9@byu.net>
12809 argp: avoid undefined behavior
12810 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12813 2009-05-08 Simon Josefsson <simon@josefsson.org>
12815 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12816 user.name to prevent git commit from complaining.
12818 2009-05-10 Bruno Haible <bruno@clisp.org>
12820 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12821 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12822 it rewrites every file name only once.
12823 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12825 2009-05-08 Bruno Haible <bruno@clisp.org>
12827 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12830 2009-05-08 Simon Josefsson <simon@josefsson.org>
12832 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12833 sockaddr_storage test.
12835 2009-05-07 Simon Josefsson <simon@josefsson.org>
12837 * modules/sys_socket (Makefile.am): Substitute
12838 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12839 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12840 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12841 * tests/test-sys_socket.c: Check sockaddr_storage.
12843 2009-05-08 Bruno Haible <bruno@clisp.org>
12845 New module 'alignof'.
12846 * lib/alignof.h: New file.
12847 * modules/alignof: New file.
12849 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12850 Bruno Haible <bruno@clisp.org>
12852 Fix test-file-has-acl on FreeBSD.
12853 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12854 mask is implicitly added.
12855 * tests/test-file-has-acl.c: Include <signal.h>.
12856 (main): Terminate the test after 5 seconds.
12857 * modules/acl-tests (configure.ac): Check for alarm function.
12859 2009-05-04 Bruno Haible <bruno@clisp.org>
12861 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12862 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12863 * modules/errno (configure.ac): Drop AC_REQUIRE.
12864 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12865 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12867 2009-05-04 Simon Josefsson <simon@josefsson.org>
12869 * modules/glob-tests: New module.
12870 * tests/test-glob.c: Add.
12872 2009-05-04 Simon Josefsson <simon@josefsson.org>
12874 * modules/fnmatch-tests: New module.
12875 * tests/test-fnmatch.c: Add.
12877 2009-05-04 Eric Blake <ebb9@byu.net>
12879 maint: make the new no-submodule-changes rule VPATH-safe
12880 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12882 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12883 Bruno Haible <bruno@clisp.org>
12885 acl: Fix infinite loop on FreeBSD.
12886 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12887 of return value from acl_get_entry.
12888 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12891 2009-05-03 Bruno Haible <bruno@clisp.org>
12893 * lib/acl-internal.h (acl_entries): Clarify return value.
12894 * lib/acl_entries.c (acl_entries): Likewise.
12896 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12898 Bug fix in acl module.
12899 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12901 2009-05-03 Bruno Haible <bruno@clisp.org>
12903 Create gperf-generated file in the source dir, not in the build dir.
12904 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12905 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12906 * modules/unicase/locale-language (unicase/locale-languages.h):
12908 * modules/unicase/special-casing (unicase/special-casing-table.h):
12910 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12911 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12912 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12913 Reported by Ralf Wildenhues.
12915 2009-05-03 Bruno Haible <bruno@clisp.org>
12917 * modules/fnmatch (Description, configure.ac): Taken from
12919 * modules/fnmatch-posix: Turn into a symbolic reference to the
12920 'fnmatch' module, and deprecate.
12921 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12923 2009-05-03 Bruno Haible <bruno@clisp.org>
12925 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12926 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12927 Reported by Ralf Wildenhues.
12929 2009-05-04 Simon Josefsson <simon@josefsson.org>
12931 * m4/fnmatch.m4: Fix fnmatch re-define.
12933 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
12935 priv-set: new module and tests; adapt write-any-file
12936 * lib/priv-set.c: New file.
12937 * lib/priv-set.h: New file.
12938 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12939 * lib/write-any-file.c: Simplify by using priv-set module.
12940 * m4/priv-set.m4: New file.
12941 * modules/priv-set: New file.
12942 * modules/unlinkdir: Add dependency on priv-set module.
12943 * modules/write-any-file: Likewise.
12945 Tests for module 'priv-set'.
12946 * modules/priv-set-tests: New file.
12947 * tests/test-priv-set.c: New file.
12949 2009-05-03 Jim Meyering <meyering@redhat.com>
12950 Bruno Haible <bruno@clisp.org>
12952 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12953 use the converted UTF-8 variant of the name instead.
12955 2009-05-03 Jim Meyering <meyering@redhat.com>
12957 tests: tighten some getdate tests
12958 * tests/test-getdate.c (main): Tighten tests: require equality,
12959 not just greater than. Set TZ envvar to UTC0.
12961 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
12963 getdate: correctly interpret "next monday" when run on a Monday
12964 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12965 that e.g., "next tues" (when run on a tuesday) results in a date
12966 that is one week in the future, and not today's date.
12967 I.e., add a week when the wday is the same as the current one.
12968 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12969 and earlier by Martin Bernreuther and Jan Minář.
12970 * tests/test-getdate.c (main): Check that "next DAY" is always in
12971 the future and that "last DAY" is always in the past.
12973 2009-05-02 Jim Meyering <meyering@redhat.com>
12975 build: ensure that a release build fails when a submodule is unclean
12976 * top/maint.mk (no-submodule-changes): New rule.
12977 (alpha beta major): Depend on it.
12979 2009-05-02 Bruno Haible <bruno@clisp.org>
12981 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12982 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12983 shell variable gl_fnmatch_required to detect which variant is
12985 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12986 gl_FUNC_FNMATCH_POSIX.
12987 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12988 exclude fnmatch-posix.
12990 2009-05-02 Bruno Haible <bruno@clisp.org>
12992 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12993 * modules/mbsrtowcs (License): Change to LGPLv2+.
12994 * modules/strnlen1 (License): Likewise.
12995 Reported by Simon Josefsson.
12997 2009-05-02 Bruno Haible <bruno@clisp.org>
12999 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13001 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13002 gnulib-tool was called with option --source-base=lib.
13004 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13006 Use automake *-local hooks without commands, for extensibility.
13007 * modules/localcharset (Makefile.am): Rename install-exec-local
13008 rule to install-exec-localcharset, and make it a prerequisite of
13009 install-exec-local. Likewise, rename the uninstall-local rule to
13010 uninstall-localcharset, and make it a prerequisite of the former.
13012 2009-05-01 Bruno Haible <bruno@clisp.org>
13014 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13015 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13016 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13017 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13018 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13019 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13020 m4/locale-zh.m4, m4/codeset.m4.
13022 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13023 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13024 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13027 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13028 REPLACE_WCRTOMB if mbstate_t must be replaced.
13029 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13030 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13032 2009-05-01 Bruno Haible <bruno@clisp.org>
13034 Avoid compiler warnings when redefining macros defined by <libintl.h>.
13035 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13036 dngettext, dcngettext, textdomain, bindtextdomain,
13037 bind_textdomain_codeset): Undefine before redefining.
13039 2009-04-30 Bruno Haible <bruno@clisp.org>
13041 Fix bug introduced on 2009-04-25.
13042 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13043 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13044 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13046 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13048 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13050 Reported by Elbert_Pol <elbert.pol@gmail.com>.
13052 2009-04-28 Bruno Haible <bruno@clisp.org>
13055 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13056 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13057 * lib/unicase.h (u*_casexfrm): Likewise.
13058 Reported by Paolo Bonzini.
13060 2009-04-28 Bruno Haible <bruno@clisp.org>
13062 Fix a compilation error.
13063 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13064 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13065 Reported by Jim Meyering.
13067 2009-04-27 Bruno Haible <bruno@clisp.org>
13069 New module 'libunistring'.
13070 * modules/libunistring: New file.
13071 * m4/libunistring.m4: New file.
13072 * MODULES.html.sh (Unicode string functions): Add it.
13074 2009-04-27 Eric Blake <ebb9@byu.net>
13076 maint.mk: allow package-specific header to provide <config.h>
13077 * top/maint.mk (sc_require_config_h): New variable.
13078 (sc_require_config_h, sc_require_config_h_first): Use it.
13080 2009-04-27 Simon Josefsson <simon@josefsson.org>
13082 * top/maint.mk (sc_avoid_if_before_free): Except
13083 useless-if-before-free script.
13085 2009-04-27 Eric Blake <ebb9@byu.net>
13087 maintainer-makefile: depend on all required helper scripts
13088 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13089 useless-if-before-free.
13090 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13091 version, rather than assuming gnulib checkout is available.
13092 Reported by Simen Josefsson.
13094 2009-04-26 Bruno Haible <bruno@clisp.org>
13096 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13097 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13100 2009-04-26 Bruno Haible <bruno@clisp.org>
13102 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13103 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13104 AC_LIB_HAVE_LINKFLAGS.
13106 2009-04-26 Bruno Haible <bruno@clisp.org>
13108 Simplify calling convention of u*_conv_from_encoding.
13109 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13110 u32_conv_from_encoding): Expect a resultbuf argument and return the
13111 result directly as a pointer.
13112 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13113 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13114 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13115 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13116 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13117 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13119 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13120 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13121 * lib/vasnprintf.c (VASNPRINTF): Update.
13122 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13123 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13124 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13125 * NEWS: Mention the change.
13127 2009-04-26 Bruno Haible <bruno@clisp.org>
13129 Simplify calling convention of u*_conv_to_encoding.
13130 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13131 u32_conv_to_encoding): Expect a resultbuf argument and return the
13132 result directly as a pointer.
13133 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13134 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13135 freeing scaled_offsets if mem_iconveha failed.
13136 * lib/unicase/u-casexfrm.h (FUNC): Update.
13137 * lib/uninorm/u-normxfrm.h (FUNC): Update.
13138 * lib/vasnprintf.c (VASNPRINTF): Update.
13139 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13140 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13141 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13142 * NEWS: Mention the change.
13144 2009-04-26 Bruno Haible <bruno@clisp.org>
13146 Avoid test failures on AIX and OSF/1.
13147 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13149 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13150 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13152 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13153 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13154 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13155 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13156 * doc/posix-functions/malloc.texi: Document the portability problem
13157 related to malloc(0).
13159 2009-04-26 Bruno Haible <bruno@clisp.org>
13161 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13162 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13163 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13165 2009-04-25 Bruno Haible <bruno@clisp.org>
13167 Avoid link error when creating a namespace clean library.
13168 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13169 as macro with arguments if already defined as an alias.
13170 * lib/signbitf.c (gl_signbitf): Don't undefine.
13171 * lib/signbitd.c (gl_signbitd): Don't undefine.
13172 * lib/signbitl.c (gl_signbitl): Don't undefine.
13174 2009-04-25 Jim Meyering <meyering@redhat.com>
13176 vc-list-files: fix another quoting bug
13177 * build-aux/vc-list-files: Avoid sed backslash expansion
13178 of pathological directory names.
13180 2009-04-25 Eric Blake <ebb9@byu.net>
13182 vc-list-files: fix shell quoting error
13183 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
13186 2009-04-25 Jim Meyering <meyering@redhat.com>
13188 vc-list-files: restore lost functionality with subdir argument
13189 * build-aux/vc-list-files: When given a non-"." sub-directory
13190 argument, substitute the $dir/ prefix back onto each resulting name.
13191 Otherwise, coreutils' root_tests check would fail.
13193 2009-04-24 Eric Blake <ebb9@byu.net>
13195 vc-list-files: ignore git symlinks
13196 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13197 than ls-files, to ignore git symlinks.
13199 maint.mk: import improvements from m4
13200 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13201 (move_if_change): Delete unused macro.
13202 (news-date-check, vc-diff-check): Support VPATH builds.
13203 (announcement): Likewise. Split --bootstrap-tools list...
13204 (boostrap-tools): ...into separate list, which can be overridden
13206 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13207 requiring dependency on useless-if-before-free module.
13208 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13209 Support VPATH builds.
13211 2009-04-24 Jim Meyering <meyering@redhat.com>
13213 maint.mk: remove coreutils-specific rules and variables
13214 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13215 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13216 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13218 maint.mk: remove obsolete rule
13219 * top/maint.mk (rel-check): Remove rule.
13220 (WGET, WGETFLAGS): Remove now-unused variables.
13222 2009-04-24 Simon Josefsson <simon@josefsson.org>
13224 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13227 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13228 '$(PATH_SEPARATOR)' instead of ':'.
13230 2009-04-24 Simon Josefsson <simon@josefsson.org>
13232 * lib/getopt1.c (main): Use 'const' for static array.
13234 2009-04-24 Simon Josefsson <simon@josefsson.org>
13236 * top/maint.mk: Sync with coreutils.
13237 * NEWS: Explain incompatibilities.
13239 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13240 Bruno Haible <bruno@clisp.org>
13242 Fix cross-compilation results.
13243 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13244 statement, as third argument of AC_TRY_RUN.
13245 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13246 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13248 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13249 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13251 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13252 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13253 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13255 2009-04-20 Bruno Haible <bruno@clisp.org>
13257 Avoid test failure on mingw.
13258 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13260 2009-04-20 Bruno Haible <bruno@clisp.org>
13262 Avoid compilation error on mingw.
13263 * modules/localename-tests (Depends-on): Add locale.
13265 2009-04-19 Bruno Haible <bruno@clisp.org>
13267 Support for building a shared library on Windows platforms.
13268 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13269 (main): Test the presence of UNINORM_NFC here.
13270 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13271 (main): Test the presence of UNINORM_NFD here.
13272 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13273 (main): Test the presence of UNINORM_NFKC here.
13274 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13275 (main): Test the presence of UNINORM_NFKD here.
13277 2009-04-19 Bruno Haible <bruno@clisp.org>
13279 Avoid a compiler warning.
13280 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13281 Change type of variable 'sequence'.
13283 2009-04-19 Bruno Haible <bruno@clisp.org>
13285 * modules/configmake (Makefile.am): When the contents of configmake.h
13286 does not change, arrange to preserve its modification time.
13288 2009-04-17 Simon Josefsson <simon@josefsson.org>
13290 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13293 2009-04-16 Jim Meyering <meyering@redhat.com>
13295 useless-if-before-free: improve conversion code
13296 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13297 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13299 2009-04-14 Bruno Haible <bruno@clisp.org>
13301 * modules/fcntl (Depends-on): Add extensions.
13302 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13304 2009-04-12 Ben Pfaff <blp@gnu.org>
13306 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13307 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13309 2009-03-20 Ben Pfaff <blp@gnu.org>
13311 Make rename replace existing destinations on Windows.
13312 * m4/rename.m4: Add test for Mingw.
13313 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13314 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13315 * doc/posix-functions/rename.texi: Document.
13317 2009-04-10 Bruno Haible <bruno@clisp.org>
13319 New include file "iconveh.h".
13320 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13321 * lib/striconveh.h: Include it.
13322 (enum iconv_ilseq_handler): Remove definition.
13323 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13325 * lib/striconveha.c: Include striconveh.h.
13326 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13327 * modules/striconveh (Files): Add lib/iconveh.h.
13328 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13331 2009-04-10 Bruno Haible <bruno@clisp.org>
13333 * lib/uniconv.h: Update comment.
13335 2009-04-10 Bruno Haible <bruno@clisp.org>
13337 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13339 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13340 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13341 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13342 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13343 "unistring-notinline.h", so that the function gets defined always.
13344 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13345 * lib/unistr/u8-uctomb.c: Likewise.
13346 * lib/unistr/u16-mbtouc.c: Likewise.
13347 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13348 * lib/unistr/u16-uctomb.c: Likewise.
13349 * lib/unistr/u32-mbtouc.c: Likewise.
13350 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13351 * lib/unistr/u32-uctomb.c: Likewise.
13353 2009-04-10 Bruno Haible <bruno@clisp.org>
13355 Mark 'utime' obsolete.
13356 * modules/utime (Status, Notice): New sections.
13357 Suggested by Jim Meyering.
13359 Fix cross-compile guess for utime test.
13360 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13362 * doc/posix-functions/utime.texi: Give more precisions.
13363 Reported by Jan <ipif@ymail.com>.
13365 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13367 filevercmp: correct today's change
13368 * lib/filevercmp.c: Also handle coreutils' test inputs.
13369 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13371 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13373 * lib/filevercmp.c: Special handle for "", "." and "..".
13374 * tests/test-filevercmp.c: Enlarge the set suite.
13376 2009-04-07 Jim Meyering <meyering@redhat.com>
13378 useless-if-before-free: show how to remove braced useless free, too
13379 * build-aux/useless-if-before-free: still only in a comment, though.
13381 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13383 maint.mk: import changes to syntax-check macros from coreutils
13384 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13385 Use them in the relevant macros.
13387 2009-04-06 Bruno Haible <bruno@clisp.org>
13389 Fix unportable use of bit-fields.
13390 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13391 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13392 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13394 2009-04-06 Bruno Haible <bruno@clisp.org>
13396 Avoid test failures on AIX and OSF/1.
13397 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13398 that malloc(0) = NULL.
13399 * tests/unicase/test-u8-tolower.c (check): Likewise.
13400 * tests/unicase/test-u8-totitle.c (check): Likewise.
13401 * tests/unicase/test-u8-toupper.c (check): Likewise.
13402 * tests/unicase/test-u16-casefold.c (check): Likewise.
13403 * tests/unicase/test-u16-tolower.c (check): Likewise.
13404 * tests/unicase/test-u16-totitle.c (check): Likewise.
13405 * tests/unicase/test-u16-toupper.c (check): Likewise.
13406 * tests/unicase/test-u32-casefold.c (check): Likewise.
13407 * tests/unicase/test-u32-tolower.c (check): Likewise.
13408 * tests/unicase/test-u32-totitle.c (check): Likewise.
13409 * tests/unicase/test-u32-toupper.c (check): Likewise.
13410 * tests/uninorm/test-u8-nfc.c (check): Likewise.
13411 * tests/uninorm/test-u8-nfd.c (check): Likewise.
13412 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13413 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13414 * tests/uninorm/test-u16-nfc.c (check): Likewise.
13415 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13416 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13417 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13418 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13419 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13420 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13421 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13423 2009-04-05 Bruno Haible <bruno@clisp.org>
13425 Work around an autoconf limitation.
13426 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13427 comment line if it would be longer than 3 KB.
13429 2009-04-05 Bruno Haible <bruno@clisp.org>
13431 Avoid test failure with libiconv-1.13.
13432 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13433 of the expected test results.
13435 2009-04-05 Bruno Haible <bruno@clisp.org>
13437 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13438 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13439 that it should be installed.
13441 2009-04-05 Bruno Haible <bruno@clisp.org>
13443 * gnulib-tool: New option --copy-file.
13444 (func_usage): Document it.
13445 (func_dest_tmpfilename): Moved out of func_import.
13446 (func_add_file, func_update_file): New functions, extracted from
13448 (func_import): Update.
13450 2009-04-05 Karl Berry <karl@gnu.org>
13452 * README: prominently mention gnulib-tool.
13453 Rearrange sections so getting the code is near the top.
13455 2009-04-05 Bruno Haible <bruno@clisp.org>
13457 * lib/unicase.h: Mention u*_cmp2.
13458 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13459 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13460 * lib/unicase/ulc-casecmp.c: Likewise.
13461 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13462 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13463 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13465 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13466 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13468 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13471 * lib/uninorm.h: Mention u*_cmp2.
13472 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13473 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13474 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13475 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13476 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13478 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13480 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13483 New module 'unistr/u32-cmp2'.
13484 * lib/unistr/u32-cmp2.c: New file.
13485 * modules/unistr/u32-cmp2: New file.
13487 New module 'unistr/u16-cmp2'.
13488 * lib/unistr/u16-cmp2.c: New file.
13489 * modules/unistr/u16-cmp2: New file.
13491 New module 'unistr/u8-cmp2'.
13492 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13493 * lib/unistr/u8-cmp2.c: New file.
13494 * lib/unistr/u-cmp2.h: New file.
13495 * modules/unistr/u8-cmp2: New file.
13497 2009-04-05 Bruno Haible <bruno@clisp.org>
13499 * lib/unictype.h (uc_property_is_valid): New macro.
13500 * tests/unictype/test-pr_byname.c (main): Use it.
13502 * lib/unistr.h: Doc fixes.
13503 * lib/uniconv.h: Doc fixes.
13504 * lib/unictype.h: Doc fixes.
13506 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
13508 Port coreutils 7.2 to Solaris 8.
13510 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13511 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13512 for Solaris 8. This is a bit of a hack, as it means it's the
13513 caller's responsibility to add -lnsl if needed, but most likely it
13514 won't be needed since only getaddrinfo uses this and getaddrinfo
13515 isn't needed on Solaris 8.
13517 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13518 problem to Solaris 8 encountered with coreutils 7.2, which
13519 resulted in a message "fnmatch.c:292: warning: passing argument 4
13520 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
13521 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13523 2009-04-03 Simon Josefsson <simon@josefsson.org>
13525 * m4/ld-version-script.m4: Add FIXME comment.
13527 2009-04-02 Simon Josefsson <simon@josefsson.org>
13529 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13530 SOVERSION variable.
13532 2009-04-02 Bruno Haible <bruno@clisp.org>
13534 * Makefile (info, html, dvi, pdf): Combine the rules.
13535 Suggested by Jim Meyering.
13537 2009-04-01 Bruno Haible <bruno@clisp.org>
13539 * Makefile (info, html, dvi, pdf): New targets.
13540 Reported by Reuben Thomas <rrt@sc3d.org>.
13542 2009-04-01 Bruno Haible <bruno@clisp.org>
13544 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13545 can be put into PATH.
13546 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13548 2009-04-01 Bruno Haible <bruno@clisp.org>
13550 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13552 2009-04-01 Bruno Haible <bruno@clisp.org>
13554 Rename module 'visibility'.
13555 * modules/lib-symbol-visibility: Renamed from modules/visibility.
13556 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13557 * doc/gnulib.texi: Update.
13558 * MODULES.html.sh (Misc): Update.
13559 * NEWS: Mention the change.
13561 2009-04-01 Simon Josefsson <simon@josefsson.org>
13563 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
13564 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13565 Eric Blake <ebb9@byu.net> for review.
13566 * MODULES.html.sh: Add lib-msvc-compat.
13567 * doc/gnulib.texi: Link to new section.
13568 * m4/ld-output-def.m4: New file.
13569 * doc/ld-output-def.texi: New file.
13571 2009-04-01 Simon Josefsson <simon@josefsson.org>
13573 Rename ld-version-script to lib-symbol-versions. Suggested by
13574 Bruno Haible <bruno@clisp.org>.
13575 * modules/ld-version-script: Renamed to lib-symbol-versions.
13576 * doc/ld-version-script.texi: Fix module name.
13577 * MODULES.html.sh: Add lib-symbol-versions.
13579 2009-03-31 Simon Josefsson <simon@josefsson.org>
13581 * modules/u64-tests: New file.
13582 * tests/test-u64.c: New file.
13584 2009-03-04 Simon Josefsson <simon@josefsson.org>
13586 * MODULES.html.sh: Mention u64.
13587 * modules/u64: New module.
13588 * modules/crypto/sha512: Depend on u64 module instead of providing
13591 2009-03-27 Eric Blake <ebb9@byu.net>
13593 test-strerror: make debugging EAI_SYSTEM easier
13594 * modules/getaddrinfo-tests (Depends-on): Add strerror.
13595 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13596 failure was EAI_SYSTEM.
13598 2009-03-25 Bruno Haible <bruno@clisp.org>
13600 Fix a problem with --enable-relocatable on Solaris 7.
13601 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13604 2009-03-25 Eric Blake <ebb9@byu.net>
13606 test-sockets: avoid gcc warning
13607 * tests/test-sockets.c (main): Silence compiler warning.
13609 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
13611 New modules nproc, pthread, contributed by Glen Lenker.
13613 * MODULES.html.sh: Add pthread, nproc.
13614 * lib/nproc.c: New file.
13615 * lib/nproc.h: New file.
13616 * lib/pthread.in.h: New file.
13617 * m4/pthread.m4: New file.
13618 * modules/nproc: New file.
13619 * modules/pthread: New file.
13621 2009-03-24 Simon Josefsson <simon@josefsson.org>
13623 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13626 2009-03-24 Kamil Dudka <kdudka@redhat.com>
13628 filevercmp: handle simple~ and numbered.~3~ backup suffixes
13629 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13630 * tests/test-filevercmp.c: Add tests for backup suffixes.
13632 2009-03-24 Simon Josefsson <simon@josefsson.org>
13634 * modules/stdlib (Depends-on): Add stdint, needed when defining
13635 struct random_data on, for example, HP-UX 10.20. Reported by
13636 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13638 2009-03-24 Simon Josefsson <simon@josefsson.org>
13640 * lib/readline.c (readline): Call fflush on stdout after printing
13643 2009-03-20 Bruno Haible <bruno@clisp.org>
13645 Remove dependency from 'close' module to -lws2_32 on native Windows.
13646 * lib/close-hook.h: New file.
13647 * lib/close-hook.c: New file.
13648 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13650 (_gl_close_fd_maybe_socket): Remove function.
13651 (rpl_close): Invoke execute_all_close_hooks instead of
13652 _gl_close_fd_maybe_socket.
13653 * lib/sockets.c: Include close-hook.h, w32sock.h.
13654 (close_fd_maybe_socket): New function, essentially from lib/close.c.
13655 (close_sockets_hook): New variable.
13656 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13657 (gl_sockets_cleanup): Unregister it.
13658 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13659 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13660 * modules/close-hook: New file.
13661 * modules/close (Files): Remove lib/w32sock.h.
13662 (Depends-on): Add close-hook.
13663 (Link): Remove section.
13664 * modules/sockets (Files): Add lib/w32sock.h.
13665 (Depends-on): Add close-hook.
13666 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13668 * NEWS: Mention that LIB_CLOSE is gone.
13670 2009-03-23 Eric Blake <ebb9@byu.net>
13672 signal-tests: test previous patch
13673 * tests/test-signal.c: New file.
13674 * modules/signal-tests: Likewise.
13676 signal.h: always support 'volatile sig_atomic_t'
13677 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13678 (gl_SIGNAL_H_DEFAULTS): Add a default.
13679 * modules/signal (Makefile.am): Substitute if needed.
13680 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13681 users can blindly add volatile.
13682 * doc/posix-headers/signal.texi (signal.h): Document it.
13683 Reported by Matthew Woehlke.
13685 2009-03-23 Jim Meyering <meyering@redhat.com>
13687 pathmax: PATH_MAX: use pathconf only when available
13688 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13689 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
13690 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13691 This avoids a link failure in a PSP cross-compilation environment
13692 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13694 * lib/vasnprintf.c (divide): Fix typo in comment.
13696 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13698 * gnulib-tool (func_filter_filelist): Fix comment.
13700 2009-03-20 Bruno Haible <bruno@clisp.org>
13702 Make sockets.h self-contained.
13703 * lib/sockets.c: Include sockets.h first.
13704 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13706 2009-03-19 Eric Blake <ebb9@byu.net>
13708 doc: mention more functions added in cygwin 1.7.0
13709 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13711 * doc/posix-functions/log2f.texi: Likewise.
13713 2009-03-19 Jim Meyering <meyering@redhat.com>
13715 fsusage: avoid syntax error due to statement-before-declaration
13716 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13717 after all declarations. Reported by Matthew Woehlke in
13718 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13720 2009-03-18 Eric Blake <ebb9@byu.net>
13722 build-aux/compile: sync from automake
13723 * build-aux/compile: New file, from automake.
13724 * config/srclist.txt: Mention build-aux/compile.
13726 2009-03-17 Bruno Haible <bruno@clisp.org>
13728 * lib/git-merge-changelog.c: Fix typo in comment.
13729 Reported by Reuben Thomas <rrt@sc3d.org>.
13731 2009-03-17 Reuben Thomas <rrt@sc3d.org>
13733 * m4/regex.m4: update and improve help for
13734 --without-included-regex.
13736 2009-03-17 Simon Josefsson <simon@josefsson.org>
13738 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13739 failure on missing include files.
13741 2009-03-17 Eric Blake <ebb9@byu.net>
13743 doc: mention more functions added in cygwin 1.7.0
13744 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13746 * doc/posix-functions/fwscanf.texi: Likewise.
13747 * doc/posix-functions/swprintf.texi: Likewise.
13748 * doc/posix-functions/swscanf.texi: Likewise.
13749 * doc/posix-functions/vfwprintf.texi: Likewise.
13750 * doc/posix-functions/vfwscanf.texi: Likewise.
13751 * doc/posix-functions/vswprintf.texi: Likewise.
13752 * doc/posix-functions/vswscanf.texi: Likewise.
13753 * doc/posix-functions/vwprintf.texi: Likewise.
13754 * doc/posix-functions/vwscanf.texi: Likewise.
13755 * doc/posix-functions/wcscasecmp.texi: Likewise.
13756 * doc/posix-functions/wcsdup.texi: Likewise.
13757 * doc/posix-functions/wcsftime.texi: Likewise.
13758 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13759 * doc/posix-functions/wprintf.texi: Likewise.
13760 * doc/posix-functions/wscanf.texi: Likewise.
13761 * doc/glibc-functions/gethostbyname2.texi: Likewise.
13763 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13765 maint.mk: really add $(AM_MAKEFLAGS)
13766 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13767 was inadvertently omitted in the last commit.
13768 Spotted by Bruno Haible.
13770 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13771 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13772 $(AM_MAKEFLAGS)' rather than plain `make'.
13774 gnulib-tool: execute $MAKE not make
13775 * gnulib-tool: Default $MAKE to 'make'.
13776 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13777 than make. Initialize $MAKE in the do-autobuild script.
13779 gnulib-tool: use $MAKE not make in generated files
13780 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13781 make, in generated files. Initialize $MAKE in the do-autobuild
13784 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13786 GNUmakefile: disable parallelism only for multiple, recursive targets
13787 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13788 additions in the Makefile.
13789 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13791 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13792 are listed on the command line and at least one of them is
13793 listed in $(ALL_RECURSIVE_TARGETS).
13795 2009-03-14 Bruno Haible <bruno@clisp.org>
13797 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13798 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13799 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13800 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13801 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13802 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13803 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13805 * modules/unistr/u8-strchr (Depends-on): Likewise.
13806 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13807 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13809 * modules/unistr/u16-strchr (Depends-on): Likewise.
13810 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13812 2009-03-12 Bruno Haible <bruno@clisp.org>
13814 Work around select() bug on Interix 3.5.
13815 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13816 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13817 * m4/select.m4: New file.
13818 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13819 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13820 * modules/select (Files): Add m4/select.m4.
13821 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13822 * modules/nanosleep (Depends-on): Add select.
13823 * modules/poll (Depends-on): Likewise.
13824 * doc/posix-functions/select.texi: Mention the Interix bug.
13825 Reported by Markus Duft <mduft@gentoo.org>.
13827 * lib/select.c: Renamed from lib/winsock-select.c.
13828 * modules/select (Files): Add lib/select.c, remove
13829 lib/winsock-select.c.
13830 (configure.ac): Update.
13832 2009-03-12 Jim Meyering <meyering@redhat.com>
13834 avoid gcc warnings about unused macro definitions
13835 * lib/readtokens.c (STREQ): Remove unused definition.
13836 * lib/xmalloc.c (SIZE_MAX): Likewise.
13837 * lib/openat-die.c (N_): Likewise.
13838 * lib/mountlist.c (SIZE_MAX): Remove definition.
13839 Instead, include <stdint.h>.
13840 * lib/readutmp.c: Likewise.
13841 * modules/readutmp (Depends-on): Add stdint.
13842 * modules/mountlist (Depends-on): Add stdint.
13843 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13845 2009-03-10 Bruno Haible <bruno@clisp.org>
13847 Tests for module 'mbmemcasecoll'.
13848 * modules/mbmemcasecoll-tests: New file.
13849 * tests/test-mbmemcasecoll1.sh: New file.
13850 * tests/test-mbmemcasecoll2.sh: New file.
13851 * tests/test-mbmemcasecoll3.sh: New file.
13852 * tests/test-mbmemcasecoll.c: New file.
13854 New module 'mbmemcasecoll'.
13855 * lib/mbmemcasecoll.h: New file.
13856 * lib/mbmemcasecoll.c: New file.
13857 * modules/mbmemcasecoll: New file.
13859 * tests/test-mbmemcasecmp.h: New file, extracted from
13860 tests/test-mbmemcasecmp.c.
13861 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13862 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13864 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13866 2009-03-09 Bruno Haible <bruno@clisp.org>
13868 Tests for module 'mbmemcasecmp'.
13869 * modules/mbmemcasecmp-tests: New file.
13870 * tests/test-mbmemcasecmp1.sh: New file.
13871 * tests/test-mbmemcasecmp2.sh: New file.
13872 * tests/test-mbmemcasecmp3.sh: New file.
13873 * tests/test-mbmemcasecmp.c: New file.
13875 New module 'mbmemcasecmp'.
13876 * lib/mbmemcasecmp.h: New file.
13877 * lib/mbmemcasecmp.c: New file.
13878 * modules/mbmemcasecmp: New file.
13880 2009-03-09 Bruno Haible <bruno@clisp.org>
13882 Tests for module 'unicase/ulc-casecoll'.
13883 * modules/unicase/ulc-casecoll-tests: New file.
13884 * tests/unicase/test-ulc-casecoll1.sh: New file.
13885 * tests/unicase/test-ulc-casecoll2.sh: New file.
13886 * tests/unicase/test-ulc-casecoll.c: New file.
13888 New module 'unicase/ulc-casecoll'.
13889 * lib/unicase.h (ulc_casecoll): New declaration.
13890 * lib/unicase/ulc-casecoll.c: New file.
13891 * modules/unicase/ulc-casecoll: New file.
13893 New module 'unicase/ulc-casexfrm'.
13894 * lib/unicase.h (ulc_casexfrm): New declaration.
13895 * lib/unicase/ulc-casexfrm.c: New file.
13896 * modules/unicase/ulc-casexfrm: New file.
13898 2009-03-09 Bruno Haible <bruno@clisp.org>
13900 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13903 * m4/mbscasecmp.m4: Remove file.
13904 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13905 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13907 * m4/mbscasestr.m4: Remove file.
13908 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13909 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13911 * m4/mbschr.m4: Remove file.
13912 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13913 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13915 * m4/mbscspn.m4: Remove file.
13916 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13917 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13919 * m4/mbslen.m4: Remove file.
13920 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13921 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13923 * m4/mbsncasecmp.m4: Remove file.
13924 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13925 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13927 * m4/mbsnlen.m4: Remove file.
13928 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13929 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13931 * m4/mbspbrk.m4: Remove file.
13932 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13933 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13935 * m4/mbspcasecmp.m4: Remove file.
13936 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13937 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13939 * m4/mbsrchr.m4: Remove file.
13940 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13941 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13943 * m4/mbssep.m4: Remove file.
13944 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13945 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13947 * m4/mbsspn.m4: Remove file.
13948 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13949 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13951 * m4/mbsstr.m4: Remove file.
13952 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13953 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13955 * m4/mbstok_r.m4: Remove file.
13956 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13957 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13959 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13961 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13962 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13964 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13966 2009-03-08 Bruno Haible <bruno@clisp.org>
13968 Tests for module 'unicase/ulc-casecmp'.
13969 * modules/unicase/ulc-casecmp-tests: New file.
13970 * tests/unicase/test-ulc-casecmp1.sh: New file.
13971 * tests/unicase/test-ulc-casecmp2.sh: New file.
13972 * tests/unicase/test-ulc-casecmp.c: New file.
13974 New module 'unicase/ulc-casecmp'.
13975 * lib/unicase.h (ulc_casecmp): New declaration.
13976 * lib/unicase/ulc-casecmp.c: New file.
13977 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13978 'const SRC_UNIT *'.
13979 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13980 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13981 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13982 * modules/unicase/ulc-casecmp: New file.
13984 Tests for module 'unicase/u32-is-cased'.
13985 * modules/unicase/u32-is-cased-tests: New file.
13986 * tests/unicase/test-u32-is-cased.c: New file.
13988 Tests for module 'unicase/u16-is-cased'.
13989 * modules/unicase/u16-is-cased-tests: New file.
13990 * tests/unicase/test-u16-is-cased.c: New file.
13992 Tests for module 'unicase/u8-is-cased'.
13993 * modules/unicase/u8-is-cased-tests: New file.
13994 * tests/unicase/test-u8-is-cased.c: New file.
13995 * tests/unicase/test-is-cased.h: New file.
13997 New module 'unicase/u32-is-cased'.
13998 * lib/unicase/u32-is-cased.c: New file.
13999 * modules/unicase/u32-is-cased: New file.
14001 New module 'unicase/u16-is-cased'.
14002 * lib/unicase/u16-is-cased.c: New file.
14003 * modules/unicase/u16-is-cased: New file.
14005 New module 'unicase/u8-is-cased'.
14006 * lib/unicase/u8-is-cased.c: New file.
14007 * lib/unicase/u-is-cased.h: New file.
14008 * modules/unicase/u8-is-cased: New file.
14010 Tests for module 'unicase/u32-is-casefolded'.
14011 * modules/unicase/u32-is-casefolded-tests: New file.
14012 * tests/unicase/test-u32-is-casefolded.c: New file.
14014 Tests for module 'unicase/u16-is-casefolded'.
14015 * modules/unicase/u16-is-casefolded-tests: New file.
14016 * tests/unicase/test-u16-is-casefolded.c: New file.
14018 Tests for module 'unicase/u8-is-casefolded'.
14019 * modules/unicase/u8-is-casefolded-tests: New file.
14020 * tests/unicase/test-u8-is-casefolded.c: New file.
14021 * tests/unicase/test-is-casefolded.h: New file.
14023 New module 'unicase/u32-is-casefolded'.
14024 * lib/unicase/u32-is-casefolded.c: New file.
14025 * modules/unicase/u32-is-casefolded: New file.
14027 New module 'unicase/u16-is-casefolded'.
14028 * lib/unicase/u16-is-casefolded.c: New file.
14029 * modules/unicase/u16-is-casefolded: New file.
14031 New module 'unicase/u8-is-casefolded'.
14032 * lib/unicase/u8-is-casefolded.c: New file.
14033 * modules/unicase/u8-is-casefolded: New file.
14035 Tests for module 'unicase/u32-is-titlecase'.
14036 * modules/unicase/u32-is-titlecase-tests: New file.
14037 * tests/unicase/test-u32-is-titlecase.c: New file.
14039 Tests for module 'unicase/u16-is-titlecase'.
14040 * modules/unicase/u16-is-titlecase-tests: New file.
14041 * tests/unicase/test-u16-is-titlecase.c: New file.
14043 Tests for module 'unicase/u8-is-titlecase'.
14044 * modules/unicase/u8-is-titlecase-tests: New file.
14045 * tests/unicase/test-u8-is-titlecase.c: New file.
14046 * tests/unicase/test-is-titlecase.h: New file.
14048 New module 'unicase/u32-is-titlecase'.
14049 * lib/unicase/u32-is-titlecase.c: New file.
14050 * modules/unicase/u32-is-titlecase: New file.
14052 New module 'unicase/u16-is-titlecase'.
14053 * lib/unicase/u16-is-titlecase.c: New file.
14054 * modules/unicase/u16-is-titlecase: New file.
14056 New module 'unicase/u8-is-titlecase'.
14057 * lib/unicase/u8-is-titlecase.c: New file.
14058 * modules/unicase/u8-is-titlecase: New file.
14060 Tests for module 'unicase/u32-is-lowercase'.
14061 * modules/unicase/u32-is-lowercase-tests: New file.
14062 * tests/unicase/test-u32-is-lowercase.c: New file.
14064 Tests for module 'unicase/u16-is-lowercase'.
14065 * modules/unicase/u16-is-lowercase-tests: New file.
14066 * tests/unicase/test-u16-is-lowercase.c: New file.
14068 Tests for module 'unicase/u8-is-lowercase'.
14069 * modules/unicase/u8-is-lowercase-tests: New file.
14070 * tests/unicase/test-u8-is-lowercase.c: New file.
14071 * tests/unicase/test-is-lowercase.h: New file.
14073 New module 'unicase/u32-is-lowercase'.
14074 * lib/unicase/u32-is-lowercase.c: New file.
14075 * modules/unicase/u32-is-lowercase: New file.
14077 New module 'unicase/u16-is-lowercase'.
14078 * lib/unicase/u16-is-lowercase.c: New file.
14079 * modules/unicase/u16-is-lowercase: New file.
14081 New module 'unicase/u8-is-lowercase'.
14082 * lib/unicase/u8-is-lowercase.c: New file.
14083 * modules/unicase/u8-is-lowercase: New file.
14085 Tests for module 'unicase/u32-is-uppercase'.
14086 * modules/unicase/u32-is-uppercase-tests: New file.
14087 * tests/unicase/test-u32-is-uppercase.c: New file.
14089 Tests for module 'unicase/u16-is-uppercase'.
14090 * modules/unicase/u16-is-uppercase-tests: New file.
14091 * tests/unicase/test-u16-is-uppercase.c: New file.
14093 Tests for module 'unicase/u8-is-uppercase'.
14094 * modules/unicase/u8-is-uppercase-tests: New file.
14095 * tests/unicase/test-u8-is-uppercase.c: New file.
14096 * tests/unicase/test-is-uppercase.h: New file.
14098 New module 'unicase/u32-is-uppercase'.
14099 * lib/unicase/u32-is-uppercase.c: New file.
14100 * modules/unicase/u32-is-uppercase: New file.
14102 New module 'unicase/u16-is-uppercase'.
14103 * lib/unicase/u16-is-uppercase.c: New file.
14104 * modules/unicase/u16-is-uppercase: New file.
14106 New module 'unicase/u8-is-uppercase'.
14107 * lib/unicase/u8-is-uppercase.c: New file.
14108 * modules/unicase/u8-is-uppercase: New file.
14110 New module 'unicase/u32-is-invariant'.
14111 * lib/unicase/u32-is-invariant.c: New file.
14112 * modules/unicase/u32-is-invariant: New file.
14114 New module 'unicase/u16-is-invariant'.
14115 * lib/unicase/u16-is-invariant.c: New file.
14116 * modules/unicase/u16-is-invariant: New file.
14118 New module 'unicase/u8-is-invariant'.
14119 * lib/unicase/u8-is-invariant.c: New file.
14120 * lib/unicase/invariant.h: New file.
14121 * lib/unicase/u-is-invariant.h: New file.
14122 * modules/unicase/u8-is-invariant: New file.
14124 Tests for module 'unicase/u32-casecoll'.
14125 * modules/unicase/u32-casecoll-tests: New file.
14126 * tests/unicase/test-u32-casecoll.c: New file.
14128 Tests for module 'unicase/u16-casecoll'.
14129 * modules/unicase/u16-casecoll-tests: New file.
14130 * tests/unicase/test-u16-casecoll.c: New file.
14132 Tests for module 'unicase/u8-casecoll'.
14133 * modules/unicase/u8-casecoll-tests: New file.
14134 * tests/unicase/test-u8-casecoll.c: New file.
14136 New module 'unicase/u32-casecoll'.
14137 * lib/unicase/u32-casecoll.c: New file.
14138 * modules/unicase/u32-casecoll: New file.
14140 New module 'unicase/u16-casecoll'.
14141 * lib/unicase/u16-casecoll.c: New file.
14142 * modules/unicase/u16-casecoll: New file.
14144 New module 'unicase/u8-casecoll'.
14145 * lib/unicase/u8-casecoll.c: New file.
14146 * lib/unicase/u-casecoll.h: New file.
14147 * modules/unicase/u8-casecoll: New file.
14149 New module 'unicase/u32-casexfrm'.
14150 * lib/unicase/u32-casexfrm.c: New file.
14151 * modules/unicase/u32-casexfrm: New file.
14153 New module 'unicase/u16-casexfrm'.
14154 * lib/unicase/u16-casexfrm.c: New file.
14155 * modules/unicase/u16-casexfrm: New file.
14157 New module 'unicase/u8-casexfrm'.
14158 * lib/unicase/u8-casexfrm.c: New file.
14159 * lib/unicase/u-casexfrm.h: New file.
14160 * modules/unicase/u8-casexfrm: New file.
14162 Tests for module 'unicase/u32-casecmp'.
14163 * modules/unicase/u32-casecmp-tests: New file.
14164 * tests/unicase/test-u32-casecmp.c: New file.
14166 Tests for module 'unicase/u16-casecmp'.
14167 * modules/unicase/u16-casecmp-tests: New file.
14168 * tests/unicase/test-u16-casecmp.c: New file.
14170 Tests for module 'unicase/u8-casecmp'.
14171 * modules/unicase/u8-casecmp-tests: New file.
14172 * tests/unicase/test-u8-casecmp.c: New file.
14173 * tests/unicase/test-casecmp.h: New file.
14175 New module 'unicase/u32-casecmp'.
14176 * lib/unicase/u32-casecmp.c: New file.
14177 * modules/unicase/u32-casecmp: New file.
14179 New module 'unicase/u16-casecmp'.
14180 * lib/unicase/u16-casecmp.c: New file.
14181 * modules/unicase/u16-casecmp: New file.
14183 New module 'unicase/u8-casecmp'.
14184 * lib/unicase/u8-casecmp.c: New file.
14185 * lib/unicase/u-casecmp.h: New file.
14186 * modules/unicase/u8-casecmp: New file.
14188 Tests for module 'unicase/u32-casefold'.
14189 * modules/unicase/u32-casefold-tests: New file.
14190 * tests/unicase/test-u32-casefold.c: New file.
14192 Tests for module 'unicase/u16-casefold'.
14193 * modules/unicase/u16-casefold-tests: New file.
14194 * tests/unicase/test-u16-casefold.c: New file.
14196 Tests for module 'unicase/u8-casefold'.
14197 * modules/unicase/u8-casefold-tests: New file.
14198 * tests/unicase/test-u8-casefold.c: New file.
14200 New module 'unicase/u32-casefold'.
14201 * lib/unicase/u32-casefold.c: New file.
14202 * modules/unicase/u32-casefold: New file.
14204 New module 'unicase/u16-casefold'.
14205 * lib/unicase/u16-casefold.c: New file.
14206 * modules/unicase/u16-casefold: New file.
14208 New module 'unicase/u8-casefold'.
14209 * lib/unicase/u8-casefold.c: New file.
14210 * lib/unicase/u-casefold.h: New file.
14211 * modules/unicase/u8-casefold: New file.
14213 New module 'unicase/tocasefold'.
14214 * lib/unicase/casefold.h: New file.
14215 * lib/unicase/tocasefold.c: New file.
14216 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14217 * modules/unicase/tocasefold: New file.
14219 Tests for module 'unicase/u32-totitle'.
14220 * modules/unicase/u32-totitle-tests: New file.
14221 * tests/unicase/test-u32-totitle.c: New file.
14223 Tests for module 'unicase/u16-totitle'.
14224 * modules/unicase/u16-totitle-tests: New file.
14225 * tests/unicase/test-u16-totitle.c: New file.
14227 Tests for module 'unicase/u8-totitle'.
14228 * modules/unicase/u8-totitle-tests: New file.
14229 * tests/unicase/test-u8-totitle.c: New file.
14231 New module 'unicase/u32-totitle'.
14232 * lib/unicase/u32-totitle.c: New file.
14233 * modules/unicase/u32-totitle: New file.
14235 New module 'unicase/u16-totitle'.
14236 * lib/unicase/u16-totitle.c: New file.
14237 * modules/unicase/u16-totitle: New file.
14239 New module 'unicase/u8-totitle'.
14240 * lib/unicase/u8-totitle.c: New file.
14241 * lib/unicase/u-totitle.h: New file.
14242 * modules/unicase/u8-totitle: New file.
14244 Tests for module 'unicase/u32-tolower'.
14245 * modules/unicase/u32-tolower-tests: New file.
14246 * tests/unicase/test-u32-tolower.c: New file.
14248 Tests for module 'unicase/u16-tolower'.
14249 * modules/unicase/u16-tolower-tests: New file.
14250 * tests/unicase/test-u16-tolower.c: New file.
14252 Tests for module 'unicase/u8-tolower'.
14253 * modules/unicase/u8-tolower-tests: New file.
14254 * tests/unicase/test-u8-tolower.c: New file.
14256 New module 'unicase/u32-tolower'.
14257 * lib/unicase/u32-tolower.c: New file.
14258 * modules/unicase/u32-tolower: New file.
14260 New module 'unicase/u16-tolower'.
14261 * lib/unicase/u16-tolower.c: New file.
14262 * modules/unicase/u16-tolower: New file.
14264 New module 'unicase/u8-tolower'.
14265 * lib/unicase/u8-tolower.c: New file.
14266 * modules/unicase/u8-tolower: New file.
14268 Tests for module 'unicase/u32-toupper'.
14269 * modules/unicase/u32-toupper-tests: New file.
14270 * tests/unicase/test-u32-toupper.c: New file.
14272 Tests for module 'unicase/u16-toupper'.
14273 * modules/unicase/u16-toupper-tests: New file.
14274 * tests/unicase/test-u16-toupper.c: New file.
14276 Tests for module 'unicase/u8-toupper'.
14277 * modules/unicase/u8-toupper-tests: New file.
14278 * tests/unicase/test-u8-toupper.c: New file.
14280 New module 'unicase/u32-toupper'.
14281 * lib/unicase/u32-toupper.c: New file.
14282 * modules/unicase/u32-toupper: New file.
14284 New module 'unicase/u16-toupper'.
14285 * lib/unicase/u16-toupper.c: New file.
14286 * modules/unicase/u16-toupper: New file.
14288 New module 'unicase/u8-toupper'.
14289 * lib/unicase/u8-toupper.c: New file.
14290 * modules/unicase/u8-toupper: New file.
14292 New module 'unicase/u32-casemap'.
14293 * lib/unicase/u32-casemap.c: New file.
14294 * modules/unicase/u32-casemap: New file.
14296 New module 'unicase/u16-casemap'.
14297 * lib/unicase/u16-casemap.c: New file.
14298 * modules/unicase/u16-casemap: New file.
14300 New module 'unicase/u8-casemap'.
14301 * lib/unicase/unicasemap.h: New file.
14302 * lib/unicase/u8-casemap.c: New file.
14303 * lib/unicase/u-casemap.h: New file.
14304 * modules/unicase/u8-casemap: New file.
14306 New module 'unicase/special-casing'.
14307 * lib/unicase/special-casing.h: New file.
14308 * lib/unicase/special-casing.c: New file.
14309 * lib/unicase/special-casing-table.gperf: New file, generated by
14311 * modules/unicase/special-casing: New file.
14313 Tests for module 'unicase/locale-language'.
14314 * modules/unicase/locale-language-tests: New file.
14315 * tests/unicase/test-locale-language.sh: New file.
14316 * tests/unicase/test-locale-language.c: New file.
14318 New module 'unicase/locale-language'.
14319 * lib/unicase/locale-language.c: New file.
14320 * lib/unicase/locale-languages.gperf: New file.
14321 * modules/unicase/locale-language: New file.
14323 Generate more tables for case conversion and case folding.
14324 * lib/gen-uni-tables.c (SCC_*): New enum items.
14325 (struct special_casing_rule): New type.
14326 (casing_rules, num_casing_rules, allocated_casing_rules): New
14328 (add_casing_rule, fill_casing_rules): New functions.
14329 (struct casefold_rule): New type.
14330 (casefolding_rules, num_casefolding_rules,
14331 allocated_casefolding_rules): New variables.
14332 (fill_casefolding_rules): New function.
14333 (unicode_casefold): New variable.
14334 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14335 sort_casing_rules, output_casing_rules): New functions.
14336 (main): Accept to more arguments: SpecialCasing.txt and
14337 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14338 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14339 Output mapping for casefolding.
14341 * lib/unicase.h: Include stdbool.h, uninorm.h.
14342 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14343 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14344 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14346 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14348 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14349 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14351 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14352 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14353 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14354 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14356 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14358 2009-03-08 Bruno Haible <bruno@clisp.org>
14360 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14361 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14362 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14363 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14365 2009-03-07 Bruno Haible <bruno@clisp.org>
14367 Adjust u*_normcmp, u*_normcoll API.
14368 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14369 u16_normcoll, u32_normcoll): Change failure conventions.
14370 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14371 errno and return -1.
14372 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14374 2009-03-07 Bruno Haible <bruno@clisp.org>
14376 Tests for module 'uninorm/u32-normcoll'.
14377 * modules/uninorm/u32-normcoll-tests: New file.
14378 * tests/uninorm/test-u32-normcoll.c: New file.
14380 Tests for module 'uninorm/u16-normcoll'.
14381 * modules/uninorm/u16-normcoll-tests: New file.
14382 * tests/uninorm/test-u16-normcoll.c: New file.
14384 Tests for module 'uninorm/u8-normcoll'.
14385 * modules/uninorm/u8-normcoll-tests: New file.
14386 * tests/uninorm/test-u8-normcoll.c: New file.
14388 2009-03-07 Bruno Haible <bruno@clisp.org>
14390 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14391 tests/uninorm/test-u32-normcmp.c.
14392 * tests/uninorm/test-u32-normcmp.c: Include it.
14393 (test_nonascii): New function, extracted from main. Add some more
14395 (main): Invoke test_ascii and test_nonascii.
14396 * modules/uninorm/u32-normcmp-tests (Files): Add
14397 tests/uninorm/test-u32-normcmp.h.
14398 (Depends-on): Remove uninorm/u32-normcmp.
14400 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14401 tests/uninorm/test-u16-normcmp.c.
14402 * tests/uninorm/test-u16-normcmp.c: Include it.
14403 (test_nonascii): New function, extracted from main. Add some more
14405 (main): Invoke test_ascii and test_nonascii.
14406 * modules/uninorm/u16-normcmp-tests (Files): Add
14407 tests/uninorm/test-u16-normcmp.h.
14408 (Depends-on): Remove uninorm/u16-normcmp.
14410 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14411 tests/uninorm/test-u8-normcmp.c.
14412 * tests/uninorm/test-u8-normcmp.c: Include it.
14413 (test_nonascii): New function, extracted from main. Add some more
14415 (main): Invoke test_ascii and test_nonascii.
14416 * modules/uninorm/u8-normcmp-tests (Files): Add
14417 tests/uninorm/test-u8-normcmp.h.
14418 (Depends-on): Remove uninorm/u8-normcmp.
14420 2009-03-07 Bruno Haible <bruno@clisp.org>
14422 New module 'uninorm/u32-normcoll'.
14423 * lib/uninorm/u32-normcoll.c: New file.
14424 * modules/uninorm/u32-normcoll: New file.
14426 New module 'uninorm/u16-normcoll'.
14427 * lib/uninorm/u16-normcoll.c: New file.
14428 * modules/uninorm/u16-normcoll: New file.
14430 New module 'uninorm/u8-normcoll'.
14431 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14433 * lib/uninorm/u8-normcoll.c: New file.
14434 * lib/uninorm/u-normcoll.h: New file.
14435 * modules/uninorm/u8-normcoll: New file.
14437 New module 'uninorm/u32-normxfrm'.
14438 * lib/uninorm/u32-normxfrm.c: New file.
14439 * modules/uninorm/u32-normxfrm: New file.
14441 New module 'uninorm/u16-normxfrm'.
14442 * lib/uninorm/u16-normxfrm.c: New file.
14443 * modules/uninorm/u16-normxfrm: New file.
14445 New module 'uninorm/u8-normxfrm'.
14446 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14448 * lib/uninorm/u8-normxfrm.c: New file.
14449 * lib/uninorm/u-normxfrm.h: New file.
14450 * modules/uninorm/u8-normxfrm: New file.
14452 2009-03-07 Bruno Haible <bruno@clisp.org>
14454 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14455 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14456 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14458 2009-03-07 Bruno Haible <bruno@clisp.org>
14460 New module 'memxfrm'.
14461 * lib/memxfrm.h: New file.
14462 * lib/memxfrm.c: New file.
14463 * modules/memxfrm: New file.
14465 2009-03-07 Bruno Haible <bruno@clisp.org>
14467 New module 'memcmp2'.
14468 * lib/memcmp2.h: New file.
14469 * lib/memcmp2.c: New file.
14470 * modules/memcmp2: New file.
14472 2009-03-07 Bruno Haible <bruno@clisp.org>
14474 Tests for module 'uninorm/decomposing-form'.
14475 * modules/uninorm/decomposing-form-tests: New file.
14476 * tests/uninorm/test-decomposing-form.c: New file.
14478 New module 'uninorm/decomposing-form'.
14479 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14480 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14481 Add 'decomposing_variant' field.
14482 * lib/uninorm/decomposing-form.c: New file.
14483 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14484 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14485 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14486 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14487 * modules/uninorm/decomposing-form: New file.
14488 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14489 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14491 2009-03-07 Bruno Haible <bruno@clisp.org>
14493 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14496 2009-03-06 Bruno Haible <bruno@clisp.org>
14498 Tests for module 'uninorm/u32-normcmp'.
14499 * tests/uninorm/test-u32-normcmp.c: New file.
14500 * modules/uninorm/u32-normcmp-tests: New file.
14502 Tests for module 'uninorm/u16-normcmp'.
14503 * tests/uninorm/test-u16-normcmp.c: New file.
14504 * modules/uninorm/u16-normcmp-tests: New file.
14506 Tests for module 'uninorm/u8-normcmp'.
14507 * tests/uninorm/test-u8-normcmp.c: New file.
14508 * modules/uninorm/u8-normcmp-tests: New file.
14510 New module 'uninorm/u32-normcmp'.
14511 * lib/uninorm/u32-normcmp.c: New file.
14512 * modules/uninorm/u32-normcmp: New file.
14514 New module 'uninorm/u16-normcmp'.
14515 * lib/uninorm/u16-normcmp.c: New file.
14516 * modules/uninorm/u16-normcmp: New file.
14518 New module 'uninorm/u8-normcmp'.
14519 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14521 * lib/uninorm/u8-normcmp.c: New file.
14522 * lib/uninorm/u-normcmp.h: New file.
14523 * modules/uninorm/u8-normcmp: New file.
14525 2009-03-06 Bruno Haible <bruno@clisp.org>
14527 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14528 Reported by Eric Blake.
14530 2009-03-06 Eric Blake <ebb9@byu.net>
14531 Bruno Haible <bruno@clisp.org>
14533 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14534 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14536 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14537 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14539 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14541 2009-03-06 Eric Blake <ebb9@byu.net>
14543 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14544 to avoid compiler warnings.
14545 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14547 2009-03-05 Bruno Haible <bruno@clisp.org>
14549 * tests/test-ftell.c (main): Disable test beyond end of file on
14551 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14553 2009-03-05 Kamil Dudka <kdudka@redhat.com>
14555 * lib/filevercmp.c: Move hidden files up in ordering.
14556 * tests/test-filevercmp.c: Add tests for hidden files.
14558 2009-03-04 Bruno Haible <bruno@clisp.org>
14560 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14561 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14563 Reported by Simon Josefsson.
14565 2009-03-03 Bruno Haible <bruno@clisp.org>
14567 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14568 Reported by Simon Josefsson.
14570 * doc/ld-version-script.texi: Update node reference.
14572 2009-03-03 Bruno Haible <bruno@clisp.org>
14574 * modules/visibility (License): Change to 'unlimited'.
14575 Suggested by Simon Josefsson.
14577 2009-03-03 Jim Meyering <meyering@redhat.com>
14579 unlinkdir: cannot_unlink_dir may modify process state
14580 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14581 it's neither thread-safe nor appropriate for use in a library.
14583 2009-03-03 Eric Blake <ebb9@byu.net>
14585 test-closein: silence test under Darwin
14586 * tests/test-closein.sh: Ignore stderr from cat, since we don't
14587 care if it dies from EPIPE or EBADF.
14589 2009-03-03 Bruno Haible <bruno@clisp.org>
14591 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14593 * doc/visibility.texi: Fix @node and @section.
14595 2009-03-03 Simon Josefsson <simon@josefsson.org>
14597 * doc/gnulib.texi: Link to sections for ld version script and
14599 * doc/visibility.texi: Add @node and @section.
14600 * modules/ld-version-script: New module.
14601 * m4/ld-version-script.m4: New file.
14602 * doc/ld-version-script.texi: New file.
14604 2009-03-02 David Lutterkort <lutter@redhat.com>
14606 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14607 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14609 2009-03-02 Bruno Haible <bruno@clisp.org>
14611 * doc/visibility.texi: Mention libtool's -export-symbols option.
14613 2009-03-02 Jim Meyering <meyering@redhat.com>
14615 announce-gen: new option: --no-print-checksums
14616 * build-aux/announce-gen (usage): Describe it.
14617 (print_checksums): Print a newline here, not in the [*] footnote.
14620 2009-03-01 Bruno Haible <bruno@clisp.org>
14622 Use socklen_t in the native Windows replacements prototypes.
14623 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14625 * lib/getsockopt.c (rpl_getsockopt): Likewise.
14626 * lib/setsockopt.c (rpl_setsockopt): Likewise.
14627 * modules/getsockopt (Depends-on): Add socklen.
14628 * modules/setsockopt (Depends-on): Add socklen.
14630 2009-03-01 Bruno Haible <bruno@clisp.org>
14632 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14635 2009-03-01 Eric Blake <ebb9@byu.net>
14636 Bruno Haible <bruno@clisp.org>
14638 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14640 * lib/wait-process.c (wait_subprocess): Omit error message about
14641 deadly signal sent to the child of termsigp != NULL.
14643 2009-03-01 Eric Blake <ebb9@byu.net>
14645 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14647 2009-03-01 Bruno Haible <bruno@clisp.org>
14649 Avoid a gcc warning.
14650 * tests/test-sched.c (b): Make global.
14651 Reported by Eric Blake.
14653 2009-01-19 Martin Lambers <marlam@marlam.de>
14655 Provide POSIX semantics for socket timeout options on W32.
14656 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14657 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14658 * modules/setsockopt: Depend on sys_time module for struct timeval.
14659 * modules/getsockopt: Depend on sys_time module for struct timeval.
14661 2009-03-01 Simon Josefsson <simon@josefsson.org>
14663 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14664 __USE_GNU, for consistency with netdb.in.h.
14665 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14667 2009-03-01 Bruno Haible <bruno@clisp.org>
14669 More support for FreeMiNT.
14670 * lib/fseeko.c (rpl_fseeko): Complete last commit.
14671 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14673 2009-03-01 Bruno Haible <bruno@clisp.org>
14675 More support for FreeMiNT.
14676 * lib/fpurge.c (fpurge): Correct last commit.
14677 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14679 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14681 Fix unportable awk script in vc-list-files.
14682 * build-aux/vc-list-files: In the replacement awk script, use
14683 substr with a second argument of 1, not zero.
14684 Report by Simon Josefsson.
14686 2009-02-28 Bruno Haible <bruno@clisp.org>
14688 More support for FreeMiNT.
14689 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14691 * lib/fwriting.c (fwriting): Likewise.
14692 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14694 2009-02-28 Bruno Haible <bruno@clisp.org>
14696 * tests/test-freadseek.c (main): Disable test beyond end of file on
14698 * tests/test-ftello.c (main): Likewise.
14699 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14701 2009-02-28 Bruno Haible <bruno@clisp.org>
14703 Add tentative support for FreeMiNT.
14704 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14705 * lib/fpurge.c (fpurge): Likewise.
14706 * lib/freadable.c (freadable): Likewise.
14707 * lib/freading.c (freading): Likewise.
14708 * lib/freadptr.c (freadptr): Likewise.
14709 * lib/freadseek.c (freadptrinc): Likewise.
14710 * lib/fseeko.c (rpl_fseeko): Likewise.
14711 * lib/fseterr.c (fseterr): Likewise.
14712 * lib/fwritable.c (fwritable): Likewise.
14713 * lib/fwriting.c (fwriting): Likewise.
14714 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14716 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14718 2009-02-28 Bruno Haible <bruno@clisp.org>
14720 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14722 Reported by Jim Meyering.
14724 2009-02-28 Bruno Haible <bruno@clisp.org>
14726 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14727 Mention the results of these tests on various platforms.
14728 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14730 * doc/posix-functions/printf.texi: Likewise.
14731 * doc/posix-functions/snprintf.texi: Likewise.
14732 * doc/posix-functions/sprintf.texi: Likewise.
14733 * doc/posix-functions/vfprintf.texi: Likewise.
14734 * doc/posix-functions/vprintf.texi: Likewise.
14735 * doc/posix-functions/vsnprintf.texi: Likewise.
14736 * doc/posix-functions/vsprintf.texi: Likewise.
14737 * doc/glibc-functions/obstack_printf.texi: Likewise.
14738 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14740 2009-02-28 Bruno Haible <bruno@clisp.org>
14742 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14743 Reported by Loïc Minier <lool@dooz.org>.
14745 2009-02-27 Bruno Haible <bruno@clisp.org>
14747 * gnulib-tool (func_import): Make the sed expression used to create the
14748 sed script for updating the .gitignore file POSIX compliant.
14749 Reported by Eric Blake.
14751 2009-02-27 Bruno Haible <bruno@clisp.org>
14753 * gnulib-tool (sed): Don't alias as "sed --posix".
14754 Reported by Eric Blake.
14756 2009-02-27 Bruno Haible <bruno@clisp.org>
14758 Avoid test link errors.
14759 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14760 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14761 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14762 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14763 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14765 2009-02-27 Bruno Haible <bruno@clisp.org>
14767 Avoid spurious "(cached)" in configure output.
14768 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14769 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14770 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14771 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14772 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14773 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14774 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14775 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14776 Reported by Eric Blake.
14778 2009-02-27 Eric Blake <ebb9@byu.net>
14780 printf: fix regression in previous patch
14781 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14783 2009-02-27 Bruno Haible <bruno@clisp.org>
14785 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14787 * lib/stdint.in.h: Likewise.
14788 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14790 2009-02-27 Eric Blake <ebb9@byu.net>
14792 doc: mention more functions added in cygwin 1.7.0
14793 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14795 * doc/posix-functions/open_wmemstream.texi: Likewise.
14796 * doc/posix-functions/wcsnlen.texi: Likewise.
14797 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14798 * doc/posix-functions/wcstod.texi: Likewise.
14799 * doc/posix-functions/wcstof.texi: Likewise.
14800 * doc/posix-functions/wcstoimax.texi: Likewise.
14801 * doc/posix-functions/wcstok.texi: Likewise.
14802 * doc/posix-functions/wcstoumax.texi: Likewise.
14804 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14805 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14806 * doc/posix-functions/fprintf.texi: Update.
14807 * doc/posix-functions/printf.texi: Update.
14808 * doc/posix-functions/snprintf.texi: Update.
14809 * doc/posix-functions/sprintf.texi: Update.
14810 * doc/posix-functions/vfprintf.texi: Update.
14811 * doc/posix-functions/vprintf.texi: Update.
14812 * doc/posix-functions/vsnprintf.texi: Update.
14813 * doc/posix-functions/vsprintf.texi: Update.
14814 * doc/glibc-functions/obstack_printf.texi: Update.
14815 * doc/glibc-functions/obstack_vprintf.texi: Update.
14817 2009-02-26 Eric Blake <ebb9@byu.net>
14819 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14820 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14821 compilation bug by using runtime conversion.
14822 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14823 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14824 * modules/ceill-tests (Files): Use nan.h.
14825 * modules/floorl-tests (Files): Likewise.
14826 * modules/frexpl-tests (Files): Likewise.
14827 * modules/isnanl-tests (Files): Likewise.
14828 * modules/ldexpl-tests (Files): Likewise.
14829 * modules/roundl-tests (Files): Likewise.
14830 * modules/truncl-tests (Files): Likewise.
14831 * tests/test-ceill.c (main): Use a working NaN.
14832 * tests/test-floorl.c (main): Likewise.
14833 * tests/test-frexpl.c (main): Likewise.
14834 * tests/test-isnan.c (test_long_double): Likewise.
14835 * tests/test-isnanl.h (main): Likewise.
14836 * tests/test-ldexpl.h (main): Likewise.
14837 * tests/test-roundl.h (main): Likewise.
14838 * tests/test-truncl.h (main): Likewise.
14839 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14841 2009-02-26 Eric Blake <ebb9@byu.net>
14842 Bruno Haible <bruno@clisp.org>
14844 Work around a *printf bug with %ls on Solaris.
14845 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14846 precision is specified, sprintf stops converting the wide string
14847 argument when the number of bytes that have been produced by this
14848 conversion equals or exceeds the precision.
14849 * doc/posix-functions/fprintf.texi: Update.
14850 * doc/posix-functions/printf.texi: Update.
14851 * doc/posix-functions/snprintf.texi: Update.
14852 * doc/posix-functions/sprintf.texi: Update.
14853 * doc/posix-functions/vfprintf.texi: Update.
14854 * doc/posix-functions/vprintf.texi: Update.
14855 * doc/posix-functions/vsnprintf.texi: Update.
14856 * doc/posix-functions/vsprintf.texi: Update.
14857 * doc/glibc-functions/obstack_printf.texi: Update.
14858 * doc/glibc-functions/obstack_vprintf.texi: Update.
14860 2009-02-26 Eric Blake <ebb9@byu.net>
14862 stdlib: favor compiler check of random.h
14863 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
14864 to avoid an ObjC random.h installed by Swarm.
14866 2009-02-26 Bruno Haible <bruno@clisp.org>
14868 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14869 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14870 Reported by Gary V. Vaughan <gary@gnu.org>.
14872 2009-02-26 Bruno Haible <bruno@clisp.org>
14874 Fix *printf behaviour regarding the %ls directive.
14875 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14876 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14877 NEED_PRINTF_DIRECTIVE_LS.
14878 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14879 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14880 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14881 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14882 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14883 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14884 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14885 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14886 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14887 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14888 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14889 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14890 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14891 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14892 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14893 * doc/posix-functions/fprintf.texi: Update.
14894 * doc/posix-functions/printf.texi: Update.
14895 * doc/posix-functions/snprintf.texi: Update.
14896 * doc/posix-functions/sprintf.texi: Update.
14897 * doc/posix-functions/vfprintf.texi: Update.
14898 * doc/posix-functions/vprintf.texi: Update.
14899 * doc/posix-functions/vsnprintf.texi: Update.
14900 * doc/posix-functions/vsprintf.texi: Update.
14901 * doc/glibc-functions/obstack_printf.texi: Update.
14902 * doc/glibc-functions/obstack_vprintf.texi: Update.
14903 Reported by Eric Blake.
14905 2009-02-25 Bruno Haible <bruno@clisp.org>
14907 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14909 Reported by Gary V. Vaughan <gary@gnu.org>.
14911 2009-02-25 Bruno Haible <bruno@clisp.org>
14913 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14914 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14915 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14916 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14917 Reported by Gary V. Vaughan <gary@gnu.org>.
14919 2009-02-25 Bruno Haible <bruno@clisp.org>
14921 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14922 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14923 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14924 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14925 Reported by Gary V. Vaughan <gary@gnu.org>.
14927 2009-02-25 Eric Blake <ebb9@byu.net>
14929 tests: skip fseek/ftell tests if ungetc is broken
14930 * m4/ungetc.m4: New file.
14931 * modules/fseek-tests: Split test, so ungetc dependency is
14932 separate from rest of test.
14933 * modules/fseeko-tests: Likewise.
14934 * modules/ftell-tests: Likewise.
14935 * modules/ftello-tests: Likewise.
14936 * tests/test-fseek.c (main): Isolate ungetc dependency.
14937 * tests/test-fseeko.c (main): Likewise.
14938 * tests/test-ftell.c (main): Likewise.
14939 * tests/test-ftello.c (main): Likewise.
14940 * tests/test-fseek2.sh: New file.
14941 * tests/test-fseeko2.sh: Likewise.
14942 * tests/test-ftell2.sh: Likewise.
14943 * tests/test-ftello2.sh: Likewise.
14945 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
14947 test-getaddrinfo: fix usage of skip return code 77
14948 * tests/test-gettaddrinfo.c: Return skip code 77 only
14949 for first occurance of skip (4x77 is not 77)
14951 2009-02-25 Gary V. Vaughan <gary@gnu.org>
14953 strtod: avoid C99 decl-after-statement
14954 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14956 2009-02-24 Eric Blake <ebb9@byu.net>
14958 strtod: detect HP-UX 11.31 bug
14959 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14960 Reported by Gary V. Vaughan.
14962 2009-02-23 Bruno Haible <bruno@clisp.org>
14964 Fix invalid read past end of memory block.
14965 * lib/vasnprintf.c (DCHAR_SET): Define.
14966 (local_wcslen): Define only when needed.
14967 (local_strnlen, local_wcsnlen): New functions.
14968 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14969 directives that involve a conversion ourselves.
14970 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14971 wcsnlen, mbrtowc, wcrtomb.
14972 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14973 * tests/test-vasprintf-posix.c (test_function): Likewise.
14974 * tests/test-snprintf-posix.h (test_function): Likewise.
14975 * tests/test-sprintf-posix.h (test_function): Likewise.
14976 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14978 2009-02-22 Bruno Haible <bruno@clisp.org>
14980 Implement new clarified decomposition of Hangul syllables.
14981 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14982 of type LTV, return only a pairwise decomposition.
14983 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14985 * tests/uninorm/test-decomposition.c (main): Updated expected result.
14986 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14987 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14989 2009-02-22 Bruno Haible <bruno@clisp.org>
14991 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14992 zero-length results and shrink excess allocated memory.
14993 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14994 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14995 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14996 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14997 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14998 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14999 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15000 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15001 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15002 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15003 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15004 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15006 2009-02-21 Bruno Haible <bruno@clisp.org>
15008 * doc/gnulib.texi: Include safe-alloc.texi earlier.
15009 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15010 spaces after a period. Put a space between a macro name and its
15011 argument list. Trivial rewordings.
15012 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15013 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15014 (main): Return 0 explicitly.
15016 2009-02-21 Bruno Haible <bruno@clisp.org>
15018 Tests for module 'uninorm/filter'.
15019 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15020 * modules/uninorm/filter-tests: New file.
15022 New module 'uninorm/filter'.
15023 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15024 uninorm_filter_flush, uninorm_filter_free): New declarations.
15025 * lib/uninorm/uninorm-filter.c: New file.
15026 * modules/uninorm/filter: New file.
15028 2009-02-21 Bruno Haible <bruno@clisp.org>
15030 Tests for module 'uninorm/nfkc'.
15031 * tests/uninorm/test-nfkc.c: New file.
15032 * tests/uninorm/test-u8-nfkc.c: New file.
15033 * tests/uninorm/test-u16-nfkc.c: New file.
15034 * tests/uninorm/test-u32-nfkc.c: New file.
15035 * tests/uninorm/test-u32-nfkc-big.sh: New file.
15036 * tests/uninorm/test-u32-nfkc-big.c: New file.
15037 * modules/uninorm/nfkc-tests: New file.
15039 New module 'uninorm/nfkc'.
15040 * lib/uninorm/nfkc.c: New file.
15041 * modules/uninorm/nfkc: New file.
15043 Tests for module 'uninorm/nfkd'.
15044 * tests/uninorm/test-nfkd.c: New file.
15045 * tests/uninorm/test-u8-nfkd.c: New file.
15046 * tests/uninorm/test-u16-nfkd.c: New file.
15047 * tests/uninorm/test-u32-nfkd.c: New file.
15048 * tests/uninorm/test-u32-nfkd-big.sh: New file.
15049 * tests/uninorm/test-u32-nfkd-big.c: New file.
15050 * modules/uninorm/nfkd-tests: New file.
15052 New module 'uninorm/nfkd'.
15053 * lib/uninorm/nfkd.c: New file.
15054 * modules/uninorm/nfkd: New file.
15056 Tests for module 'uninorm/nfc'.
15057 * tests/uninorm/test-nfc.c: New file.
15058 * tests/uninorm/test-u8-nfc.c: New file.
15059 * tests/uninorm/test-u16-nfc.c: New file.
15060 * tests/uninorm/test-u32-nfc.c: New file.
15061 * tests/uninorm/test-u32-nfc-big.sh: New file.
15062 * tests/uninorm/test-u32-nfc-big.c: New file.
15063 * modules/uninorm/nfc-tests: New file.
15065 New module 'uninorm/nfc'.
15066 * lib/uninorm/nfc.c: New file.
15067 * modules/uninorm/nfc: New file.
15069 Tests for module 'uninorm/nfd'.
15070 * tests/uninorm/test-nfd.c: New file.
15071 * tests/uninorm/test-u8-nfd.c: New file.
15072 * tests/uninorm/test-u16-nfd.c: New file.
15073 * tests/uninorm/test-u32-nfd.c: New file.
15074 * tests/uninorm/test-u32-nfd-big.sh: New file.
15075 * tests/uninorm/test-u32-nfd-big.c: New file.
15076 * tests/uninorm/test-u32-normalize-big.h: New file.
15077 * tests/uninorm/test-u32-normalize-big.c: New file.
15078 * tests/uninorm/NormalizationTest.txt: New file, created from
15079 Unicode 5.1.0 NormalizationTest.txt.
15080 * modules/uninorm/nfd-tests: New file.
15082 New module 'uninorm/nfd'.
15083 * lib/uninorm/nfd.c: New file.
15084 * modules/uninorm/nfd: New file.
15086 New module 'uninorm/u32-normalize'.
15087 * lib/uninorm/u32-normalize.c: New file.
15088 * modules/uninorm/u32-normalize: New file.
15090 New module 'uninorm/u16-normalize'.
15091 * lib/uninorm/u16-normalize.c: New file.
15092 * modules/uninorm/u16-normalize: New file.
15094 New module 'uninorm/u8-normalize'.
15095 * lib/uninorm/u8-normalize.c: New file.
15096 * lib/uninorm/normalize-internal.h: New file.
15097 * lib/uninorm/u-normalize-internal.h: New file.
15098 * modules/uninorm/u8-normalize: New file.
15100 New module 'uninorm/decompose-internal'.
15101 * lib/uninorm/decompose-internal.c: New file.
15102 * modules/uninorm/decompose-internal: New file.
15104 Tests for module 'uninorm/composition'.
15105 * tests/uninorm/test-composition.c: New file.
15106 * modules/uninorm/composition-tests: New file.
15108 New module 'uninorm/composition'.
15109 * lib/uninorm/composition.c: New file.
15110 * lib/uninorm/composition-table.gperf: New file, generated by
15112 * modules/uninorm/composition: New file.
15114 Tests for module 'uninorm/compat-decomposition'.
15115 * tests/uninorm/test-compat-decomposition.c: New file.
15116 * modules/uninorm/compat-decomposition-tests: New file.
15118 New module 'uninorm/compat-decomposition'.
15119 * lib/uninorm/decompose-internal.h: New file.
15120 * lib/uninorm/compat-decomposition.c: New file.
15121 * modules/uninorm/compat-decomposition: New file.
15123 Tests for module 'uninorm/canonical-decomposition'.
15124 * tests/uninorm/test-canonical-decomposition.c: New file.
15125 * modules/uninorm/canonical-decomposition-tests: New file.
15127 New module 'uninorm/canonical-decomposition'.
15128 * lib/uninorm/canonical-decomposition.c: New file.
15129 * modules/uninorm/canonical-decomposition: New file.
15131 Tests for module 'uninorm/decomposition'.
15132 * tests/uninorm/test-decomposition.c: New file.
15133 * modules/uninorm/decomposition-tests: New file.
15135 New module 'uninorm/decomposition'.
15136 * lib/uninorm/decomposition.c: New file.
15137 * modules/uninorm/decomposition: New file.
15139 New module 'uninorm/decomposition-table'.
15140 * lib/uninorm/decomposition-table.h: New file.
15141 * lib/uninorm/decomposition-table.c: New file.
15142 * lib/uninorm/decomposition-table1.h: New file, generated by
15144 * lib/uninorm/decomposition-table2.h: New file, generated by
15146 * modules/uninorm/decomposition-table: New file.
15148 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15149 (UC_DECOMP_*): New enumeration items.
15150 (get_decomposition): New function.
15151 (struct decomp_table): New type.
15152 (output_decomposition, output_decomposition_tables): New functions.
15153 (unicode_composition_exclusions): New variable.
15154 (fill_composition_exclusions, debug_output_composition_tables): New
15156 (main): Accept one more argument. Invoke fill_composition_exclusions.
15157 Output decomposition and composition tables.
15159 New module 'uninorm/base'.
15160 * lib/uninorm.h: New file.
15161 * lib/unictype.h: Update comment.
15162 * modules/uninorm/base: New file.
15164 2009-02-21 David Lutterkort <lutter@redhat.com>
15166 Tests for module 'safe-alloc'.
15167 * tests/test-safe-alloc.c: New file.
15168 * modules/safe-alloc-tests: New file.
15170 New module 'safe-alloc'.
15171 * lib/safe-alloc.h: New file.
15172 * lib/safe-alloc.c: New file.
15173 * m4/safe-alloc.m4: New file.
15174 * modules/safe-alloc: New file.
15175 * doc/safe-alloc.texi: New file.
15176 * doc/gnulib.texi: Include it.
15177 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15180 2009-02-18 Bruno Haible <bruno@clisp.org>
15182 Fix link error on non-glibc systems.
15183 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15185 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15187 2009-02-18 Jim Meyering <meyering@redhat.com>
15189 fts: avoid used-uninitialized error due to recent change
15190 * lib/fts.c (fts_read): Guard uses of the new member,
15191 parent->fts_n_dirs_remaining, since it's not relevant for
15192 the parent of a directory specified on the command-line.
15194 2009-02-17 James Youngman <jay@gnu.org>
15195 Bruno Haible <bruno@clisp.org>
15197 * m4/include_next.m4: Reformulate comment.
15199 2009-02-16 Jim Meyering <meyering@redhat.com>
15201 fts: add #if guards so that the fts_lgpl module still builds
15202 * lib/fts.c: Guard just-added hash-table-using parts with
15203 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15204 Reported by Simon Josefsson.
15206 2009-02-15 Bruno Haible <bruno@clisp.org>
15208 * modules/array-mergesort-tests: New file.
15209 * tests/test-array-mergesort.c: New file.
15211 New module 'array-mergesort'.
15212 * modules/array-mergesort: New file.
15213 * lib/array-mergesort.h: New file.
15215 2009-02-15 Bruno Haible <bruno@clisp.org>
15217 Fix 2009-02-07 commit.
15218 * lib/gen-uni-tables.c (output_predicate, output_category,
15219 output_combclass, output_bidi_category, output_decimal_digit,
15220 output_digit, output_numeric, output_mirror, output_scripts,
15221 output_ident_category, output_simple_mapping): Fix format directives.
15222 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15224 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
15226 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15227 fixes are available from IBM.
15229 2009-02-13 Jim Meyering <meyering@redhat.com>
15231 fts: arrange not to stat non-directories in more cases
15232 This makes GNU find (when it doesn't need to stat each file)
15233 *much* more efficient at traversing reiserfs file systems.
15234 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15235 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15236 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15237 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15238 (leaf_optimization_applies): New function.
15239 (LCO_hash, LCO_compare): New helper functions.
15240 (link_count_optimize_ok): New function.
15241 (fts_stat): Initialize new member (if dir).
15242 (fts_read): Decrement parent's fts_n_dirs_remaining count if
15243 we've just stat'ed a directory. Skip the stat call when possible.
15245 Note this AFS-related exchange:
15246 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15247 and note find's pioctl call in find/fstype.c.
15248 But that is necessary only if you want to enable the
15249 optimization for AFS, and for now, I don't.
15251 fts: move a function definition "up" (no semantic change)
15252 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15253 "up" to precede upcoming use of a related function.
15255 2009-02-11 Jim Meyering <meyering@redhat.com>
15257 fts: correct internal computation of nlinks (optimization-related)
15258 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15259 whether the current entry is a directory, so don't test it.
15261 2009-02-10 Bruno Haible <bruno@clisp.org>
15263 Tests for module 'uniwbrk/ulc-wordbreaks'.
15264 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15265 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15266 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15268 Tests for module 'uniwbrk/u32-wordbreaks'.
15269 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15270 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15272 Tests for module 'uniwbrk/u16-wordbreaks'.
15273 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15274 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15276 Tests for module 'uniwbrk/u8-wordbreaks'.
15277 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15278 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15280 2009-02-10 Bruno Haible <bruno@clisp.org>
15282 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15284 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15285 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15286 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15288 2009-02-10 Simon Josefsson <simon@josefsson.org>
15290 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15291 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15293 2009-02-10 Bruno Haible <bruno@clisp.org>
15295 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15296 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15297 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15298 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15299 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15300 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15302 2009-02-09 Simon Josefsson <simon@josefsson.org>
15304 * lib/sockets.h (gl_fd_to_handle): New function.
15306 * tests/test-sockets.c: Call gl_fd_to_handle.
15308 2009-02-09 Bruno Haible <bruno@clisp.org>
15310 * doc/havelib.texi: Document the conventions on bi-arch systems.
15312 2009-02-08 Bruno Haible <bruno@clisp.org>
15314 Document the AC_LIB_LINKFLAGS macro.
15315 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15316 * doc/gnulib.texi: Include it.
15318 2009-02-08 Bruno Haible <bruno@clisp.org>
15320 Fix wrong order of sections, compared to TOC.
15321 * doc/gnulib.texi: Include relocatable-maint.texi after the
15322 "Regular expressions" node, not before.
15324 2009-02-08 Bruno Haible <bruno@clisp.org>
15326 Tests for module 'unicase/totitle'.
15327 * modules/unicase/totitle-tests: New file.
15329 Tests for module 'unicase/tolower'.
15330 * modules/unicase/tolower-tests: New file.
15332 Tests for module 'unicase/toupper'.
15333 * modules/unicase/toupper-tests: New file.
15334 * tests/unicase/test-mapping-part1.h: New file.
15335 * tests/unicase/test-mapping-part2.h: New file.
15337 New module 'unicase/totitle'.
15338 * modules/unicase/totitle: New file.
15339 * lib/unicase/totitle.c: New file.
15341 New module 'unicase/tolower'.
15342 * modules/unicase/tolower: New file.
15343 * lib/unicase/tolower.c: New file.
15345 New module 'unicase/toupper'.
15346 * modules/unicase/toupper: New file.
15347 * lib/unicase/toupper.c: New file.
15348 * lib/unicase/simple-mapping.h: New file.
15350 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15351 (mapping_table): New structure.
15352 (output_simple_mapping): New function.
15353 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15354 * modules/gen-uni-tables (Description): Update.
15355 * lib/unicase/toupper.h: New file, automatically generated by
15357 * lib/unicase/tolower.h: New file, automatically generated by
15359 * lib/unicase/totitle.h: New file, automatically generated by
15361 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15363 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15365 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15368 New module 'unicase/base'.
15369 * modules/unicase/base: New file.
15370 * lib/unicase.h: New file.
15372 2009-02-08 Bruno Haible <bruno@clisp.org>
15374 New module 'uniwbrk/ulc-wordbreaks'.
15375 * modules/uniwbrk/ulc-wordbreaks: New file.
15376 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15378 New module 'uniwbrk/u32-wordbreaks'.
15379 * modules/uniwbrk/u32-wordbreaks: New file.
15380 * lib/uniwbrk/u32-wordbreaks.c: New file.
15382 New module 'uniwbrk/u16-wordbreaks'.
15383 * modules/uniwbrk/u16-wordbreaks: New file.
15384 * lib/uniwbrk/u16-wordbreaks.c: New file.
15386 New module 'uniwbrk/u8-wordbreaks'.
15387 * modules/uniwbrk/u8-wordbreaks: New file.
15388 * lib/uniwbrk/u8-wordbreaks.c: New file.
15389 * lib/uniwbrk/u-wordbreaks.h: New file.
15391 New module 'uniwbrk/table'.
15392 * modules/uniwbrk/table: New file.
15393 * lib/uniwbrk/wbrktable.h: New file.
15394 * lib/uniwbrk/wbrktable.c: New file.
15396 New module 'uniwbrk/wordbreak-property'.
15397 * modules/uniwbrk/wordbreak-property: New file.
15398 * lib/uniwbrk/wordbreak-property.c: New file.
15400 * lib/gen-uni-tables.c (WBP_*): New enum items.
15401 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15402 (unicode_org_wbp): New variable.
15403 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15405 (wbp_table): New structure.
15406 (output_wbp, output_wbrk_tables): New functions.
15407 (main): Accept additional argument. Invoke fill_org_wbp,
15408 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15409 output_wbrk_tables.
15410 * modules/gen-uni-tables (Description): Update.
15411 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15414 New module 'uniwbrk/base'.
15415 * modules/uniwbrk/base: New file.
15416 * lib/uniwbrk.h: New file.
15418 2009-02-08 Bruno Haible <bruno@clisp.org>
15420 Update to Unicode 5.1.0.
15421 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15423 (is_property_default_ignorable_code_point): Don't include characters
15424 of category Cc or Cs and not-a-characters.
15425 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15426 U+0D79, U+109E, U+109F, U+A60C.
15427 * lib/unictype/bidi_of.h: Regenerated.
15428 * lib/unictype/blocks.h: Regenerated.
15429 * lib/unictype/categ_C.h: Regenerated.
15430 * lib/unictype/categ_Cf.h: Regenerated.
15431 * lib/unictype/categ_Cn.h: Regenerated.
15432 * lib/unictype/categ_L.h: Regenerated.
15433 * lib/unictype/categ_Ll.h: Regenerated.
15434 * lib/unictype/categ_Lm.h: Regenerated.
15435 * lib/unictype/categ_Lo.h: Regenerated.
15436 * lib/unictype/categ_Lu.h: Regenerated.
15437 * lib/unictype/categ_M.h: Regenerated.
15438 * lib/unictype/categ_Mc.h: Regenerated.
15439 * lib/unictype/categ_Me.h: Regenerated.
15440 * lib/unictype/categ_Mn.h: Regenerated.
15441 * lib/unictype/categ_N.h: Regenerated.
15442 * lib/unictype/categ_Nd.h: Regenerated.
15443 * lib/unictype/categ_Nl.h: Regenerated.
15444 * lib/unictype/categ_No.h: Regenerated.
15445 * lib/unictype/categ_P.h: Regenerated.
15446 * lib/unictype/categ_Pd.h: Regenerated.
15447 * lib/unictype/categ_Pe.h: Regenerated.
15448 * lib/unictype/categ_Pf.h: Regenerated.
15449 * lib/unictype/categ_Pi.h: Regenerated.
15450 * lib/unictype/categ_Po.h: Regenerated.
15451 * lib/unictype/categ_Ps.h: Regenerated.
15452 * lib/unictype/categ_S.h: Regenerated.
15453 * lib/unictype/categ_Sk.h: Regenerated.
15454 * lib/unictype/categ_Sm.h: Regenerated.
15455 * lib/unictype/categ_So.h: Regenerated.
15456 * lib/unictype/categ_of.h: Regenerated.
15457 * lib/unictype/combining.h: Regenerated.
15458 * lib/unictype/ctype_alnum.h: Regenerated.
15459 * lib/unictype/ctype_alpha.h: Regenerated.
15460 * lib/unictype/ctype_graph.h: Regenerated.
15461 * lib/unictype/ctype_lower.h: Regenerated.
15462 * lib/unictype/ctype_print.h: Regenerated.
15463 * lib/unictype/ctype_punct.h: Regenerated.
15464 * lib/unictype/ctype_upper.h: Regenerated.
15465 * lib/unictype/decdigit.h: Regenerated.
15466 * lib/unictype/digit.h: Regenerated.
15467 * lib/unictype/mirror.h: Regenerated.
15468 * lib/unictype/numeric.h: Regenerated.
15469 * lib/unictype/pr_alphabetic.h: Regenerated.
15470 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15471 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15472 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15473 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15474 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15475 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15476 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15477 * lib/unictype/pr_combining.h: Regenerated.
15478 * lib/unictype/pr_dash.h: Regenerated.
15479 * lib/unictype/pr_decimal_digit.h: Regenerated.
15480 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15481 * lib/unictype/pr_deprecated.h: Regenerated.
15482 * lib/unictype/pr_diacritic.h: Regenerated.
15483 * lib/unictype/pr_extender.h: Regenerated.
15484 * lib/unictype/pr_format_control.h: Regenerated.
15485 * lib/unictype/pr_grapheme_base.h: Regenerated.
15486 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15487 * lib/unictype/pr_grapheme_link.h: Regenerated.
15488 * lib/unictype/pr_id_continue.h: Regenerated.
15489 * lib/unictype/pr_id_start.h: Regenerated.
15490 * lib/unictype/pr_ideographic.h: Regenerated.
15491 * lib/unictype/pr_ignorable_control.h: Regenerated.
15492 * lib/unictype/pr_lowercase.h: Regenerated.
15493 * lib/unictype/pr_math.h: Regenerated.
15494 * lib/unictype/pr_numeric.h: Regenerated.
15495 * lib/unictype/pr_other_alphabetic.h: Regenerated.
15496 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15497 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15498 * lib/unictype/pr_other_id_continue.h: Regenerated.
15499 * lib/unictype/pr_other_lowercase.h: Regenerated.
15500 * lib/unictype/pr_other_math.h: Regenerated.
15501 * lib/unictype/pr_punctuation.h: Regenerated.
15502 * lib/unictype/pr_sentence_terminal.h: Regenerated.
15503 * lib/unictype/pr_soft_dotted.h: Regenerated.
15504 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15505 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15506 * lib/unictype/pr_unified_ideograph.h: Regenerated.
15507 * lib/unictype/pr_uppercase.h: Regenerated.
15508 * lib/unictype/pr_xid_continue.h: Regenerated.
15509 * lib/unictype/pr_xid_start.h: Regenerated.
15510 * lib/unictype/pr_zero_width.h: Regenerated.
15511 * lib/unictype/scripts.h: Regenerated.
15512 * lib/unictype/scripts_byname.gperf: Regenerated.
15513 * lib/unictype/sy_java_ident.h: Regenerated.
15514 * lib/unilbrk/lbrkprop1.h: Regenerated.
15515 * lib/unilbrk/lbrkprop2.h: Regenerated.
15516 * tests/unictype/test-categ_C.c: Regenerated.
15517 * tests/unictype/test-categ_Cf.c: Regenerated.
15518 * tests/unictype/test-categ_Cn.c: Regenerated.
15519 * tests/unictype/test-categ_L.c: Regenerated.
15520 * tests/unictype/test-categ_Ll.c: Regenerated.
15521 * tests/unictype/test-categ_Lm.c: Regenerated.
15522 * tests/unictype/test-categ_Lo.c: Regenerated.
15523 * tests/unictype/test-categ_Lu.c: Regenerated.
15524 * tests/unictype/test-categ_M.c: Regenerated.
15525 * tests/unictype/test-categ_Mc.c: Regenerated.
15526 * tests/unictype/test-categ_Me.c: Regenerated.
15527 * tests/unictype/test-categ_Mn.c: Regenerated.
15528 * tests/unictype/test-categ_N.c: Regenerated.
15529 * tests/unictype/test-categ_Nd.c: Regenerated.
15530 * tests/unictype/test-categ_Nl.c: Regenerated.
15531 * tests/unictype/test-categ_No.c: Regenerated.
15532 * tests/unictype/test-categ_P.c: Regenerated.
15533 * tests/unictype/test-categ_Pd.c: Regenerated.
15534 * tests/unictype/test-categ_Pe.c: Regenerated.
15535 * tests/unictype/test-categ_Pf.c: Regenerated.
15536 * tests/unictype/test-categ_Pi.c: Regenerated.
15537 * tests/unictype/test-categ_Po.c: Regenerated.
15538 * tests/unictype/test-categ_Ps.c: Regenerated.
15539 * tests/unictype/test-categ_S.c: Regenerated.
15540 * tests/unictype/test-categ_Sk.c: Regenerated.
15541 * tests/unictype/test-categ_Sm.c: Regenerated.
15542 * tests/unictype/test-categ_So.c: Regenerated.
15543 * tests/unictype/test-ctype_alnum.c: Regenerated.
15544 * tests/unictype/test-ctype_alpha.c: Regenerated.
15545 * tests/unictype/test-ctype_graph.c: Regenerated.
15546 * tests/unictype/test-ctype_lower.c: Regenerated.
15547 * tests/unictype/test-ctype_print.c: Regenerated.
15548 * tests/unictype/test-ctype_punct.c: Regenerated.
15549 * tests/unictype/test-ctype_upper.c: Regenerated.
15550 * tests/unictype/test-decdigit.h: Regenerated.
15551 * tests/unictype/test-digit.h: Regenerated.
15552 * tests/unictype/test-numeric.h: Regenerated.
15553 * tests/unictype/test-pr_alphabetic.c: Regenerated.
15554 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15555 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15556 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15557 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15558 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15559 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15560 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15561 * tests/unictype/test-pr_combining.c: Regenerated.
15562 * tests/unictype/test-pr_dash.c: Regenerated.
15563 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15564 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15565 * tests/unictype/test-pr_deprecated.c: Regenerated.
15566 * tests/unictype/test-pr_diacritic.c: Regenerated.
15567 * tests/unictype/test-pr_extender.c: Regenerated.
15568 * tests/unictype/test-pr_format_control.c: Regenerated.
15569 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15570 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15571 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15572 * tests/unictype/test-pr_id_continue.c: Regenerated.
15573 * tests/unictype/test-pr_id_start.c: Regenerated.
15574 * tests/unictype/test-pr_ideographic.c: Regenerated.
15575 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15576 * tests/unictype/test-pr_lowercase.c: Regenerated.
15577 * tests/unictype/test-pr_math.c: Regenerated.
15578 * tests/unictype/test-pr_numeric.c: Regenerated.
15579 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15580 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15582 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15583 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15584 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15585 * tests/unictype/test-pr_other_math.c: Regenerated.
15586 * tests/unictype/test-pr_punctuation.c: Regenerated.
15587 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15588 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15589 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15590 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15591 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15592 * tests/unictype/test-pr_uppercase.c: Regenerated.
15593 * tests/unictype/test-pr_xid_continue.c: Regenerated.
15594 * tests/unictype/test-pr_xid_start.c: Regenerated.
15595 * tests/unictype/test-pr_zero_width.c: Regenerated.
15597 Update to Unicode 5.1.0.
15598 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15599 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15600 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15601 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15602 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15603 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15604 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15605 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15606 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15607 (nonspacing_table_ind): Update.
15608 * tests/uniwidth/test-uc_width2.sh: Update expected result.
15610 Update to Unicode 5.1.0.
15611 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15613 * lib/uniname/uniname.c (unicode_character_name,
15614 unicode_name_character): Add the range 0x1Fxxx to the code transform.
15615 * lib/uniname/uninames.h: Regenerated.
15616 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15618 2009-02-07 Bruno Haible <bruno@clisp.org>
15620 Merge gen-ctype and gen-lbrk into a single program.
15621 * lib/gen-uni-tables.c: New file, incorporating
15622 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15623 Add directory prefixes to the names of the generated files.
15624 * lib/unictype/gen-ctype.c: Remove file.
15625 * lib/unilbrk/gen-lbrk.c: Remove file.
15626 * modules/gen-uni-tables: New file.
15627 * modules/unictype/gen-ctype: Remove file.
15628 * modules/unilbrk/gen-lbrk: Remove file.
15630 2009-02-07 Bruno Haible <bruno@clisp.org>
15632 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15634 New module 'unistr/u32-strcoll'.
15635 * modules/unistr/u32-strcoll: New file.
15636 * lib/unistr/u32-strcoll.c: New file.
15638 New module 'unistr/u16-strcoll'.
15639 * modules/unistr/u16-strcoll: New file.
15640 * lib/unistr/u16-strcoll.c: New file.
15642 New module 'unistr/u8-strcoll'.
15643 * modules/unistr/u8-strcoll: New file.
15644 * lib/unistr/u8-strcoll.c: New file.
15645 * lib/unistr/u-strcoll.h: New file.
15647 2009-02-07 Bruno Haible <bruno@clisp.org>
15649 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15650 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15651 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15652 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15653 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15654 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15656 2009-02-07 Bruno Haible <bruno@clisp.org>
15659 * lib/unictype/gen-ctype.c (output_predicate, output_category,
15660 output_combclass, output_bidi_category, output_decimal_digit,
15661 output_digit, output_numeric, output_mirror, output_scripts,
15662 output_ident_category): Use proper width specifier in format strings.
15664 2009-02-07 Bruno Haible <bruno@clisp.org>
15666 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15669 2009-02-07 Jim Meyering <meyering@redhat.com>
15671 regex: avoid compilation failure with upcoming gcc-4.4
15672 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15673 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
15674 "... error: integer overflow in preprocessor expression".
15676 2009-02-05 Ben Pfaff <blp@gnu.org>
15678 Fix link errors on Windows when close module is used.
15679 * modules/close: Add $(LIB_CLOSE) to Link section.
15680 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15681 $(LIB_CLOSE) on Windows.
15683 2009-02-05 Jim Meyering <meyering@redhat.com>
15685 still avoid unused-parameter warnings, but do it cleanly
15686 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15687 (get_fs_usage): Cast to void instead.
15688 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15689 (dev_from_mount_options, read_file_system_list): Cast to void.
15690 Prompted by Bruno Haible.
15692 2009-02-04 Jim Meyering <meyering@redhat.com>
15694 fsusage.c: correct copyright year
15695 * lib/fsusage.c: Reflect year in which the change is pushed into
15697 avoid misc. warnings
15698 * lib/fsusage.c (UNUSED_PARAM): Define.
15699 (get_fs_usage): Mark parameter "disk" as unused.
15700 * lib/getugroups.c (getgrent): Use "void" in prototype.
15701 * lib/mountlist.c: Mark unused parameters.
15702 (read_file_system_list): Declare a local with "const".
15703 * lib/nanosleep.c (getnow): Declare static.
15704 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15706 dirfd: set errno upon failure
15707 * lib/dirfd.c: Include <errno.h>.
15708 Set errno to ENOTSUP when returning -1.
15709 * modules/dirfd (Depends-on): Add errno.
15710 Suggested by John Kodis <kodis@comcast.net>.
15712 2009-02-01 Bruno Haible <bruno@clisp.org>
15714 Don't assume sizeof (long) >= sizeof (void *).
15715 * lib/memcmp.c: Include stdint.h.
15716 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15717 srcp2 to 'const byte *'.
15718 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15719 types to uintptr_t.
15720 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15721 * modules/memcmp (Depends-on): Add stdint.
15722 Reported by Ozkan Sezer <sezeroz@gmail.com>.
15724 2009-01-30 Eric Blake <ebb9@byu.net>
15726 fix more require-before-expand issues
15727 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15728 expand, AC_PROG_AWK.
15729 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15731 2009-01-28 Eric Blake <ebb9@byu.net>
15733 version-etc: use consistent URL formatting
15734 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15735 Improve formatting. Use fputs for string without %.
15737 2009-01-28 Jim Meyering <meyering@redhat.com>
15739 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15740 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15741 "underquoted definition of NAME" from autoconf-2.59.
15743 2009-01-28 Bruno Haible <bruno@clisp.org>
15745 * doc/gnulib.texi: Add "Obsolete modules" to index.
15747 2009-01-28 Jim Meyering <meyering@redhat.com>
15749 useless-if-before-free: recognize more variants
15750 * build-aux/useless-if-before-free: Also recognize e.g.,
15751 if (NULL != p) free (p);
15753 2009-01-27 Mark McLoughlin <markmc@redhat.com>
15755 test-getaddrinfo: skip (don't fail) this test when there's no network
15756 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15757 on the presumption that it means you lack network access.
15759 2009-01-26 Jim Meyering <meyering@redhat.com>
15761 fflush: avoid warnings on modern systems
15762 * lib/fflush.c (rpl_fflush): Move declarations of locals,
15763 pos and result, into scopes where they're used.
15765 2009-01-26 Eric Blake <ebb9@byu.net>
15767 Silence warning reintroduced by recent extensions patch.
15768 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15769 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15772 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15773 * m4/00gnulib.m4: New file.
15774 * gnulib-tool (func_get_filelist): Always use it.
15775 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15776 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15778 2009-01-25 Bruno Haible <bruno@clisp.org>
15780 Make test-quotearg work on MacOS X and AIX.
15781 * tests/test-quotearg.sh: New file.
15782 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15783 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15784 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15785 include <libintl.h>.
15786 (fake_locale): Remove variable.
15787 (gettext, dgettext, dcgettext): Remove functions.
15788 (main): Instead of setting a fake locale, set a real locale. Call
15789 textdomain and bindtextdomain.
15790 * modules/quotearg-tests (Files): Add the new files.
15791 (Depends-on): Add gettext, setenv, unsetenv.
15792 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15793 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15794 Augment TESTS_ENVIRONMENT.
15796 2009-01-25 Bruno Haible <bruno@clisp.org>
15798 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15799 fr_FR.ISO8859-1 locale on MacOS X.
15800 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15801 ja_JP.eucJP locale on MacOS X.
15802 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15803 zh_CN.GB18030 locale on MacOS X.
15805 2009-01-25 Bruno Haible <bruno@clisp.org>
15807 Avoid link errors on MacOS X 10.3.
15808 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15809 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15811 2009-01-25 Bruno Haible <bruno@clisp.org>
15813 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15814 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15815 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15816 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15817 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15818 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15819 posix_spawnattr_init, posix_spawnattr_setsigmask,
15820 posix_spawnattr_setflags, posix_spawnattr_destroy.
15822 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15823 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15824 * modules/execute (Files): Remove m4/posix_spawn.m4.
15825 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15826 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15827 posix_spawnattr_init, posix_spawnattr_setsigmask,
15828 posix_spawnattr_setflags, posix_spawnattr_destroy.
15830 2009-01-25 Bruno Haible <bruno@clisp.org>
15832 * lib/glthread/threadlib.c: Include <stdlib.h>.
15834 2009-01-25 Bruno Haible <bruno@clisp.org>
15836 * lib/glthread/threadlib.c (dummy): New declaration.
15838 2009-01-25 Bruno Haible <bruno@clisp.org>
15840 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15841 multibyte characters also for the GB18030 encoding. Don't crash when
15842 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15844 2009-01-25 Bruno Haible <bruno@clisp.org>
15846 Avoid redefining 'struct random_data' on OSF/1 5.1.
15847 * lib/stdlib.in.h: Include <random.h> if it exists.
15848 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15849 HAVE_RANDOM_H. Include <random.h> when testing whether
15850 'struct random_data' exists.
15851 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15853 2009-01-25 Bruno Haible <bruno@clisp.org>
15855 Don't install charset.alias on MacOS X >= 10.3.
15856 * lib/localcharset.c (DARWIN7): New macro.
15857 (get_charset_aliases): Hardcode the result for Darwin7.
15858 * modules/localcharset (install-exec-local): Don't install
15859 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15861 2009-01-25 Bruno Haible <bruno@clisp.org>
15863 Don't install charset.alias on mingw and Cygwin.
15864 * modules/localcharset (install-exec-local): Don't install
15865 charset.alias on mingw and Cygwin, if the file does not yet exist.
15866 The result for these platforms is hardcoded in localcharset.c.
15868 2009-01-25 Bruno Haible <bruno@clisp.org>
15870 Make it possible again to use AC_GNU_SOURCE together with gnulib.
15871 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15872 before requiring AC_USE_SYSTEM_EXTENSIONS.
15874 2009-01-25 Jim Meyering <meyering@redhat.com>
15876 c-strtod: avoid warnings
15877 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15878 "assignment discards qualifiers from pointer target type" warnings.
15880 2009-01-24 Bruno Haible <bruno@clisp.org>
15882 Add support for non-UTF-8 locales on MacOS X.
15883 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15884 canonical encodings. For Darwin 7 and newer, don't map traditional
15885 encodings to UTF-8.
15886 Reported by Vincent Lefevre <vincent@vinc17.org>
15887 at <http://savannah.gnu.org/bugs/?25235>.
15889 2009-01-24 Bruno Haible <bruno@clisp.org>
15891 * doc/gnulib.texi (Obsolete modules): New section.
15892 Reported by Mike Frysinger <vapier@gentoo.org>.
15894 2009-01-24 Bruno Haible <bruno@clisp.org>
15896 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15899 2009-01-24 Bruno Haible <bruno@clisp.org>
15901 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15902 Reported by Eric Blake.
15904 2009-01-24 Bruno Haible <bruno@clisp.org>
15906 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15907 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15908 Reported by Gary V. Vaughan <gary@gnu.org>.
15910 2009-01-24 Bruno Haible <bruno@clisp.org>
15912 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15914 2009-01-23 Bruno Haible <bruno@clisp.org>
15916 Make c-strtod, c-strtold usable in libraries.
15917 * lib/c-strtod.c: Include string.h instead of xalloc.h.
15918 (C_STRTOD): Call strdup instead of xstrdup.
15919 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15920 * modules/c-strtold (Depends-on): Likewise.
15921 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15922 * NEWS: Mention the change.
15923 Reported by Michael Gold <mgold@ncf.ca>.
15925 2009-01-23 Jim Meyering <meyering@redhat.com>
15927 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15928 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15929 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15931 2009-01-23 Simon Josefsson <simon@josefsson.org>
15933 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15935 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15936 * modules/version-etc (Description): Update.
15938 2009-01-22 Bruno Haible <bruno@clisp.org>
15940 Cache the C locale object.
15941 * lib/c-strtod.c (c_locale_cache): New variable.
15942 (c_locale): New function.
15943 (C_STRTOD): Use it, and don't call freelocale.
15944 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15945 Suggested by Paolo Bonzini.
15947 2009-01-21 Bruno Haible <bruno@clisp.org>
15949 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15950 conditions other than overflow.
15952 2009-01-21 Bruno Haible <bruno@clisp.org>
15954 * lib/c-strtod.c: Include errno.h.
15955 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15956 value from STRTOD_L and STRTOD.
15958 2009-01-21 Bruno Haible <bruno@clisp.org>
15959 and Jim Meyering <meyering@redhat.com>
15961 nanosleep: skip configure test (fail it) for apple universal builds
15962 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15963 universal builds, assume that nanosleep does not work.
15964 * modules/nanosleep (Depends-on): Add multiarch.
15966 mktime: skip configure test (fail it) for apple universal builds
15967 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15968 universal builds, assume that mktime does not work.
15969 * modules/mktime (Depends-on): Add multiarch.
15971 2009-01-21 Eric Blake <ebb9@byu.net>
15973 multiarch: avoid expand-before-require warning
15974 * modules/multiarch (configure.ac): Require, rather than expand,
15976 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15977 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15978 enforce that all clients require it. Partial reversion of
15981 error: avoid expand-before-require warning
15982 * modules/errno (configure.ac): Require, rather than expand,
15984 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15985 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15986 enforce that all clients require it.
15988 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15989 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15990 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15991 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15993 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
15996 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15998 regex: do not depend on obsolete modules.
15999 * modules/regex: Remove memcmp and memmove.
16001 2009-01-20 Bruno Haible <bruno@clisp.org>
16003 Make the 'link' module link on Windows NT 4.
16004 * lib/link.c (_WIN32_WINNT): Don't define.
16005 (CreateHardLinkFuncType): New type.
16006 (CreateHardLinkFunc, initialized): New variables.
16007 (initialize): New function.
16008 (link): Invoke CreateHardLink indirectly through the function pointer.
16010 2009-01-20 Bruno Haible <bruno@clisp.org>
16012 Fix compilation failure on mingw.
16013 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16015 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
16017 * doc/c-strtod.texi: Mention a couple of restrictions.
16019 2009-01-20 Jim Meyering <meyering@redhat.com>
16021 gettimeofday: move more declarations out of functions
16022 * lib/gettimeofday.c: Move extern declarations of tzset and
16023 gmtime out of containing functions. Prompted by Bruno Haible.
16025 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16027 regex: do not depend on obsolete modules.
16028 * modules/regex: Remove memcmp and memmove.
16030 2009-01-19 Bruno Haible <bruno@clisp.org>
16032 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16033 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16034 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16035 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16036 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16038 2009-01-19 Bruno Haible <bruno@clisp.org>
16040 * tests/test-link.c: Include <errno.h>.
16041 (main): Exit with code 77 when a hard link cannot be created due to
16043 * tests/test-link.sh: Skip test when a hard link cannot be created due
16044 to the file system.
16045 Suggested by Eric Blake.
16047 2009-01-19 Martin Lambers <marlam@marlam.de>
16049 * modules/link-tests: New file.
16050 * tests/test-link.sh: New file.
16051 * tests/test-link.c: New file.
16053 2009-01-19 Eric Blake <ebb9@byu.net>
16055 doc: mention another function added in cygwin 1.7.0
16056 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16057 Another new function in cygwin 1.7.
16059 2009-01-19 Bruno Haible <bruno@clisp.org>
16061 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16062 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16063 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16064 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16065 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16066 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16067 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16068 * m4/md4.m4 (gl_MD4): Likewise.
16069 * m4/md5.m4 (gl_MD5): Likewise.
16070 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16071 * m4/sha1.m4 (gl_SHA1): Likewise.
16072 * m4/sha256.m4 (gl_SHA256): Likewise.
16073 * m4/sha512.m4 (gl_SHA512): Likewise.
16075 2009-01-19 Bruno Haible <bruno@clisp.org>
16077 * modules/uniname/uniname-tests (Depends-on): Add progname.
16078 * tests/uniname/test-uninames.c: Include progname.h.
16079 (main): Call set_program_name.
16081 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16082 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16083 (main): Call set_program_name.
16085 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16086 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16087 (main): Call set_program_name.
16089 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16090 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16091 (main): Call set_program_name.
16093 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16094 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16095 (main): Call set_program_name.
16097 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16098 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16099 (main): Call set_program_name.
16101 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16102 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16103 (main): Call set_program_name.
16105 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16106 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16107 (main): Call set_program_name.
16109 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16110 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16111 (main): Call set_program_name.
16113 2009-01-19 Eric Blake <ebb9@byu.net>
16115 test-unistd: test previous patch
16116 * tests/test-unistd.c: Test *_FILENO macros.
16118 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16119 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16120 Guarantee a definition.
16121 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16122 * modules/unistd-safer (Depends-on): Add dependency on unistd.
16123 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16124 * lib/dup-safer.c (STDERR_FILENO): Likewise.
16125 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16127 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16128 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16129 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16131 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16132 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16133 (STDERR_FILENO): Likewise.
16134 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16135 (STDERR_FILENO): Likewise.
16136 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16137 (STDERR_FILENO): Likewise.
16138 Reported by Elbert Pol.
16140 2009-01-19 Eric Blake <ebb9@byu.net>
16142 doc: mention more functions added in cygwin 1.7.0
16143 * doc/posix-functions/abort.texi (abort): Update wording related
16145 * doc/posix-functions/daylight.texi (daylight): Likewise.
16146 * doc/posix-functions/optarg.texi (optarg): Likewise.
16147 * doc/posix-functions/optarg.texi (opterr): Likewise.
16148 * doc/posix-functions/optarg.texi (optind): Likewise.
16149 * doc/posix-functions/optarg.texi (optopt): Likewise.
16150 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16151 worked in 1.5.x, and was withdrawn in 1.7.
16152 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16153 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16155 * doc/posix-functions/perror.texi (perror): Likewise.
16156 * doc/posix-functions/printf.texi (printf): Likewise.
16157 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16158 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16159 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16160 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16161 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16162 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16163 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16165 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16167 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16169 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16170 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16172 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16173 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16174 * doc/posix-functions/confstr.texi (confstr): Likewise.
16175 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16176 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16177 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16178 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16179 * doc/posix-functions/fputws.texi (fputws): Likewise.
16180 * doc/posix-functions/fwide.texi (fwide): Likewise.
16181 * doc/posix-functions/getwc.texi (getwc): Likewise.
16182 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16183 * doc/posix-functions/putwc.texi (putwc): Likewise.
16184 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16185 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16186 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16187 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16188 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16189 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16190 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16191 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16192 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16193 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16194 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16196 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16198 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16199 * lib/ioctl.c: Include <sys/ioctl.h>.
16201 2009-01-19 Simon Josefsson <simon@josefsson.org>
16203 * modules/getdate-tests (Depends-on): Add progname.
16204 * tests/test-getdate.c: Use progname module, to avoid link errors
16205 on non-glibc systems.
16207 2009-01-18 Simon Josefsson <simon@josefsson.org>
16209 * modules/filenamecat-tests (Depends-on): Add progname.
16210 * modules/fstrcmp-tests (Depends-on): Likewise.
16212 * tests/test-filenamecat.c: Use progname module, to avoid link
16213 errors on non-glibc systems.
16214 * tests/test-fstrcmp.c: Likewise.
16216 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16218 gettimeofday: avoid warning: nested extern declaration of 'localtime'
16219 * lib/gettimeofday.c: Move extern declaration out of function.
16221 2009-01-18 Bruno Haible <bruno@clisp.org>
16223 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16224 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16225 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16227 2009-01-18 Bruno Haible <bruno@clisp.org>
16229 * lib/strftime.c (MEMPCPY): Remove unused macro.
16230 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16232 2009-01-18 Martin Lambers <marlam@marlam.de>
16235 * lib/unistd.in.h (link): New declaration.
16236 * lib/link.c: New file.
16237 * m4/link.m4: New file.
16238 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16240 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16241 * modules/link: New file.
16242 * doc/posix-functions/link.texi: Mention the new module.
16244 2009-01-18 Bruno Haible <bruno@clisp.org>
16246 * tests/test-avltree_list.c (main): Call set_program_name.
16247 * tests/test-avltree_oset.c (main): Likewise.
16248 * tests/test-obstack-printf.c: Include progname.h.
16249 (main): Call set_program_name.
16250 * tests/test-quotearg.c: Include progname.h.
16251 (main): Call set_program_name.
16252 * tests/test-xmemdup0.c: Include progname.h.
16253 (main): Call set_program_name.
16255 2009-01-18 Bruno Haible <bruno@clisp.org>
16257 New module 'alphasort'.
16258 * lib/dirent.in.h (alphasort): New declaration.
16259 * lib/alphasort.c: New file, from glibc with modifications.
16260 * m4/alphasort.m4: New file.
16261 * modules/alphasort: New file.
16262 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16264 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16266 * doc/posix-functions/alphasort.texi: Mention the new module and the
16267 portability problems.
16269 2009-01-18 Bruno Haible <bruno@clisp.org>
16271 New module 'scandir'.
16272 * lib/dirent.in.h (scandir): New declaration.
16273 * lib/scandir.c: New file, from glibc with modifications.
16274 * m4/scandir.m4: New file.
16275 * modules/scandir: New file.
16276 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16278 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16280 * doc/posix-functions/scandir.texi: Mention the new module and the
16281 portability problems.
16283 2009-01-17 Bruno Haible <bruno@clisp.org>
16285 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16286 Update documentation.
16287 (func_remove_suffix): Escape all dots in the suffix. Update
16289 (func_filter_filelist): Update documentation.
16290 Reported by Ralf Wildenhues.
16292 2009-01-17 Bruno Haible <bruno@clisp.org>
16294 * modules/dprintf-posix-tests: New file.
16295 * tests/test-dprintf-posix.sh: New file.
16296 * tests/test-dprintf-posix.c: New file.
16298 New modules 'dprintf', 'dprintf-posix'.
16299 * lib/stdio.in.h (dprintf): New declaration.
16300 * lib/dprintf.c: New file.
16301 * m4/dprintf.m4: New file.
16302 * m4/dprintf-posix.m4: New file.
16303 * modules/dprintf: New file.
16304 * modules/dprintf-posix: New file.
16305 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16306 HAVE_DPRINTF, REPLACE_DPRINTF.
16307 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16308 HAVE_DPRINTF, REPLACE_DPRINTF.
16309 * doc/posix-functions/dprintf.texi: Mention the new modules.
16311 2009-01-17 Bruno Haible <bruno@clisp.org>
16313 * modules/vdprintf-posix-tests: New file.
16314 * tests/test-vdprintf-posix.sh: New file.
16315 * tests/test-vdprintf-posix.c: New file.
16317 New modules 'vdprintf', 'vdprintf-posix'.
16318 * lib/stdio.in.h (vdprintf): New declaration.
16319 * lib/vdprintf.c: New file.
16320 * m4/vdprintf.m4: New file.
16321 * m4/vdprintf-posix.m4: New file.
16322 * modules/vdprintf: New file.
16323 * modules/vdprintf-posix: New file.
16324 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16325 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16326 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16327 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16328 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16330 2009-01-17 Bruno Haible <bruno@clisp.org>
16332 Fix replacement of fopen on mingw.
16333 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16336 2009-01-17 Bruno Haible <bruno@clisp.org>
16338 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16339 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16341 2009-01-17 Bruno Haible <bruno@clisp.org>
16343 Avoid test-fflush2.sh failure on mingw.
16344 * tests/test-fflush2.c: Include binary-io.h.
16345 (main): Put standard input into binary mode.
16346 * modules/fflush-tests (Depends-on): Add binary-io.
16348 2009-01-17 Bruno Haible <bruno@clisp.org>
16350 * lib/wchar.in.h: In another particular situation, include only the
16351 system's <wchar.h> file.
16352 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16353 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16354 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16356 2009-01-17 Bruno Haible <bruno@clisp.org>
16358 Support for stripping executables in --enable-relocatable.
16359 * build-aux/install-reloc: Expect one more argument, or an environment
16360 variable RELOC_STRIP_PROG. If set, strip the destination program and
16362 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16364 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16365 to set RELOCATABLE_STRIP.
16366 * NEWS: Mention the new Makefile requirement.
16368 2009-01-17 Bruno Haible <bruno@clisp.org>
16370 * build-aux/install-reloc: Remove debugging information left over by
16371 C compiler on MacOS X.
16373 2009-01-17 Bruno Haible <bruno@clisp.org>
16375 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16376 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16377 _NSGetExecutablePath.
16379 2009-01-16 Jim Meyering <meyering@redhat.com>
16381 strerror: avoid warnings about discarding "const"
16382 * lib/strerror.c (rpl_strerror): Instead of returning a const
16383 string from each and every "case", use a variable, and add a single
16384 cast after the switch.
16386 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16388 * lib/arpa_inet.in.h: Add extern "C" block for C++.
16390 2009-01-16 Bruno Haible <bruno@clisp.org>
16392 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16393 array initializer syntax that also works in C++ mode.
16394 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16396 2009-01-16 Jim Meyering <meyering@redhat.com>
16398 poll: suppress a warning
16399 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16400 to ignore "...unsigned expression < 0 is always false" warnings.
16402 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
16404 poll: remove declarations of unused variables
16405 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16406 sockbuf and optlen.
16408 2009-01-15 Bruno Haible <bruno@clisp.org>
16410 Make fflush-after-ungetc POSIX compliant on BSD systems.
16411 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16412 (clear_ungetc_buffer): Implement also for other systems.
16413 (rpl_fflush): On glibc systems, invoke
16414 clear_ungetc_buffer_preserving_position. Otherwise, invoke
16415 clear_ungetc_buffer after fetching the stream's position, not before.
16417 2009-01-15 Bruno Haible <bruno@clisp.org>
16419 Make fflush-after-ungetc POSIX compliant on glibc systems.
16420 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16422 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16423 (rpl_fflush): On glibc systems, simply call the system's fflush
16424 function after clearing the ungetc buffer.
16425 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16426 Instead, lseek only to the end of file, then use the system's fseeko
16427 for the rest. On glibc systems, reset the EOF indicator bit.
16429 2009-01-15 Jim Meyering <meyering@redhat.com>
16431 openmp.m4: revert quote-adding change, for portability to older autoconf
16432 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16433 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16434 Simon Josefsson noticed the problem when using autoconf-2.61.
16436 2009-01-15 Bruno Haible <bruno@clisp.org>
16438 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16439 * tests/test-fflush2.c (ASSERT): Always fail.
16440 (main): Add two tests for fflush() after ungetc(), taking into account
16441 the Austin Group's clarification.
16442 Suggested by Eric Blake.
16444 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16446 mktime.m4: remove K&R-style function prototypes
16447 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16448 for the Sun C++ compiler.
16450 2009-01-14 Bruno Haible <bruno@clisp.org>
16452 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16453 while including <wchar.h>.
16454 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16455 the system's <wchar.h> file.
16456 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16458 2009-01-14 Bruno Haible <bruno@clisp.org>
16460 * m4/csharp.m4: Don't mention gettext on the serial number line.
16461 * m4/csharpexec.m4: Likewise.
16462 * m4/eaccess.m4: Likewise.
16463 * m4/javaexec.m4: Likewise.
16464 * m4/sig_atomic_t.m4: Likewise.
16465 * m4/tmpdir.m4: Likewise.
16466 * m4/intldir.m4: Bump gettext version.
16467 * m4/lib-ld.m4: Likewise.
16469 2009-01-14 Bruno Haible <bruno@clisp.org>
16471 * lib/progname.c (set_program_name): Add more comments.
16472 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16474 2009-01-14 Simon Josefsson <simon@josefsson.org>
16476 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16477 were sys/stat.h does not define it.
16479 2009-01-14 Jim Meyering <meyering@redhat.com>
16481 many *.m4 files: improve m4 quoting
16482 99% of this change was performed by running the following commands:
16483 git ls-files | grep '\.m4$' | xargs perl -pi \
16484 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16485 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16486 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16487 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16488 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16489 The remainder were to add Copyright dates, increment serial numbers,
16490 undo some changes in comments, exclude m4/intl.m4, and add quotes
16491 around the "1" in ",1" where the unusual spacing prohibited the
16492 above regexps from doing the job. For more details, see
16493 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16494 * m4/acl.m4: Modified.
16495 * m4/afs.m4: Likewise.
16496 * m4/alloca.m4: Likewise.
16497 * m4/argp.m4: Likewise.
16498 * m4/argz.m4: Likewise.
16499 * m4/atexit.m4: Likewise.
16500 * m4/bison-i18n.m4: Likewise.
16501 * m4/bison.m4: Likewise.
16502 * m4/byteswap.m4: Likewise.
16503 * m4/c-stack.m4: Likewise.
16504 * m4/c-strtod.m4: Likewise.
16505 * m4/calloc.m4: Likewise.
16506 * m4/canonicalize-lgpl.m4: Likewise.
16507 * m4/chown.m4: Likewise.
16508 * m4/clock_time.m4: Likewise.
16509 * m4/codeset.m4: Likewise.
16510 * m4/copy-file.m4: Likewise.
16511 * m4/csharp.m4: Likewise.
16512 * m4/csharpcomp.m4: Likewise.
16513 * m4/csharpexec.m4: Likewise.
16514 * m4/d-ino.m4: Likewise.
16515 * m4/d-type.m4: Likewise.
16516 * m4/dirfd.m4: Likewise.
16517 * m4/double-slash-root.m4: Likewise.
16518 * m4/eaccess.m4: Likewise.
16519 * m4/eealloc.m4: Likewise.
16520 * m4/environ.m4: Likewise.
16521 * m4/errno_h.m4: Likewise.
16522 * m4/euidaccess.m4: Likewise.
16523 * m4/execute.m4: Likewise.
16524 * m4/fatal-signal.m4: Likewise.
16525 * m4/fchdir.m4: Likewise.
16526 * m4/fcntl_h.m4: Likewise.
16527 * m4/fileblocks.m4: Likewise.
16528 * m4/filenamecat.m4: Likewise.
16529 * m4/findprog.m4: Likewise.
16530 * m4/flexmember.m4: Likewise.
16531 * m4/fnmatch.m4: Likewise.
16532 * m4/fopen.m4: Likewise.
16533 * m4/fpending.m4: Likewise.
16534 * m4/fprintf-posix.m4: Likewise.
16535 * m4/free.m4: Likewise.
16536 * m4/frexp.m4: Likewise.
16537 * m4/frexpl.m4: Likewise.
16538 * m4/fsusage.m4: Likewise.
16539 * m4/ftruncate.m4: Likewise.
16540 * m4/gc-camellia.m4: Likewise.
16541 * m4/gc-random.m4: Likewise.
16542 * m4/gc.m4: Likewise.
16543 * m4/getaddrinfo.m4: Likewise.
16544 * m4/getcwd-abort-bug.m4: Likewise.
16545 * m4/getcwd-path-max.m4: Likewise.
16546 * m4/getdate.m4: Likewise.
16547 * m4/getdomainname.m4: Likewise.
16548 * m4/getgroups.m4: Likewise.
16549 * m4/gethostname.m4: Likewise.
16550 * m4/gethrxtime.m4: Likewise.
16551 * m4/getline.m4: Likewise.
16552 * m4/getloadavg.m4: Likewise.
16553 * m4/getndelim2.m4: Likewise.
16554 * m4/getpass.m4: Likewise.
16555 * m4/gettext.m4: Likewise.
16556 * m4/gettime.m4: Likewise.
16557 * m4/gettimeofday.m4: Likewise.
16558 * m4/gnulib-common.m4: Likewise.
16559 * m4/group-member.m4: Likewise.
16560 * m4/host-os.m4: Likewise.
16561 * m4/iconv.m4: Likewise.
16562 * m4/iconv_open.m4: Likewise.
16563 * m4/inet_ntop.m4: Likewise.
16564 * m4/inet_pton.m4: Likewise.
16565 * m4/inline.m4: Likewise.
16566 * m4/intldir.m4: Likewise.
16567 * m4/intlmacosx.m4: Likewise.
16568 * m4/intmax.m4: Likewise.
16569 * m4/intmax_t.m4: Likewise.
16570 * m4/inttypes.m4: Likewise.
16571 * m4/inttypes_h.m4: Likewise.
16572 * m4/inttypes-pri.m4: Likewise.
16573 * m4/isapipe.m4: Likewise.
16574 * m4/isnand.m4: Likewise.
16575 * m4/isnanf.m4: Likewise.
16576 * m4/isnanl.m4: Likewise.
16577 * m4/javacomp.m4: Likewise.
16578 * m4/javaexec.m4: Likewise.
16579 * m4/jm-winsz1.m4: Likewise.
16580 * m4/jm-winsz2.m4: Likewise.
16581 * m4/lchown.m4: Likewise.
16582 * m4/lcmessage.m4: Likewise.
16583 * m4/ldexpl.m4: Likewise.
16584 * m4/lib-ld.m4: Likewise.
16585 * m4/lib-link.m4: Likewise.
16586 * m4/libsigsegv.m4: Likewise.
16587 * m4/link-follow.m4: Likewise.
16588 * m4/localcharset.m4: Likewise.
16589 * m4/locale-fr.m4: Likewise.
16590 * m4/locale-ja.m4: Likewise.
16591 * m4/locale-tr.m4: Likewise.
16592 * m4/locale-zh.m4: Likewise.
16593 * m4/lock.m4: Likewise.
16594 * m4/longlong.m4: Likewise.
16595 * m4/ls-mntd-fs.m4: Likewise.
16596 * m4/lstat.m4: Likewise.
16597 * m4/malloc.m4: Likewise.
16598 * m4/mathl.m4: Likewise.
16599 * m4/mbrtowc.m4: Likewise.
16600 * m4/mbstate_t.m4: Likewise.
16601 * m4/mbswidth.m4: Likewise.
16602 * m4/memchr.m4: Likewise.
16603 * m4/memcmp.m4: Likewise.
16604 * m4/memcpy.m4: Likewise.
16605 * m4/memmem.m4: Likewise.
16606 * m4/memmove.m4: Likewise.
16607 * m4/mempcpy.m4: Likewise.
16608 * m4/memrchr.m4: Likewise.
16609 * m4/memset.m4: Likewise.
16610 * m4/minmax.m4: Likewise.
16611 * m4/mkdir-slash.m4: Likewise.
16612 * m4/mkdtemp.m4: Likewise.
16613 * m4/mktime.m4: Likewise.
16614 * m4/mmap-anon.m4: Likewise.
16615 * m4/mountlist.m4: Likewise.
16616 * m4/nanosleep.m4: Likewise.
16617 * m4/nls.m4: Likewise.
16618 * m4/nocrash.m4: Likewise.
16619 * m4/open.m4: Likewise.
16620 * m4/openat.m4: Likewise.
16621 * m4/openmp.m4: Likewise.
16622 * m4/pathmax.m4: Likewise.
16623 * m4/perl.m4: Likewise.
16624 * m4/physmem.m4: Likewise.
16625 * m4/pipe.m4: Likewise.
16626 * m4/po.m4: Likewise.
16627 * m4/poll.m4: Likewise.
16628 * m4/posixtm.m4: Likewise.
16629 * m4/posixver.m4: Likewise.
16630 * m4/printf-frexp.m4: Likewise.
16631 * m4/printf-frexpl.m4: Likewise.
16632 * m4/printf-posix.m4: Likewise.
16633 * m4/printf-posix-rpl.m4: Likewise.
16634 * m4/printf.m4: Likewise.
16635 * m4/progtest.m4: Likewise.
16636 * m4/putenv.m4: Likewise.
16637 * m4/readline.m4: Likewise.
16638 * m4/readlink.m4: Likewise.
16639 * m4/readutmp.m4: Likewise.
16640 * m4/realloc.m4: Likewise.
16641 * m4/regex.m4: Likewise.
16642 * m4/relocatable.m4: Likewise.
16643 * m4/relocatable-lib.m4: Likewise.
16644 * m4/rename-dest-slash.m4: Likewise.
16645 * m4/rename.m4: Likewise.
16646 * m4/rmdir-errno.m4: Likewise.
16647 * m4/rmdir.m4: Likewise.
16648 * m4/roundf.m4: Likewise.
16649 * m4/roundl.m4: Likewise.
16650 * m4/rpmatch.m4: Likewise.
16651 * m4/save-cwd.m4: Likewise.
16652 * m4/selinux-selinux-h.m4: Likewise.
16653 * m4/setenv.m4: Likewise.
16654 * m4/settime.m4: Likewise.
16655 * m4/sig2str.m4: Likewise.
16656 * m4/sig_atomic_t.m4: Likewise.
16657 * m4/signalblocking.m4: Likewise.
16658 * m4/signbit.m4: Likewise.
16659 * m4/sigpipe.m4: Likewise.
16660 * m4/sockets.m4: Likewise.
16661 * m4/sockpfaf.m4: Likewise.
16662 * m4/st_dm_mode.m4: Likewise.
16663 * m4/stat-time.m4: Likewise.
16664 * m4/stdbool.m4: Likewise.
16665 * m4/stdint.m4: Likewise.
16666 * m4/stdint_h.m4: Likewise.
16667 * m4/stpcpy.m4: Likewise.
16668 * m4/stpncpy.m4: Likewise.
16669 * m4/strcase.m4: Likewise.
16670 * m4/strchrnul.m4: Likewise.
16671 * m4/strcspn.m4: Likewise.
16672 * m4/strdup.m4: Likewise.
16673 * m4/strftime.m4: Likewise.
16674 * m4/strndup.m4: Likewise.
16675 * m4/strnlen.m4: Likewise.
16676 * m4/strpbrk.m4: Likewise.
16677 * m4/strptime.m4: Likewise.
16678 * m4/strsep.m4: Likewise.
16679 * m4/strtod.m4: Likewise.
16680 * m4/strtoimax.m4: Likewise.
16681 * m4/strtok_r.m4: Likewise.
16682 * m4/strtol.m4: Likewise.
16683 * m4/strtoll.m4: Likewise.
16684 * m4/strtoul.m4: Likewise.
16685 * m4/strtoull.m4: Likewise.
16686 * m4/strtoumax.m4: Likewise.
16687 * m4/strverscmp.m4: Likewise.
16688 * m4/threadlib.m4: Likewise.
16689 * m4/timegm.m4: Likewise.
16690 * m4/tm_gmtoff.m4: Likewise.
16691 * m4/tmpdir.m4: Likewise.
16692 * m4/tmpfile.m4: Likewise.
16693 * m4/tzset.m4: Likewise.
16694 * m4/uintmax_t.m4: Likewise.
16695 * m4/unlinkdir.m4: Likewise.
16696 * m4/unlocked-io.m4: Likewise.
16697 * m4/uptime.m4: Likewise.
16698 * m4/userspec.m4: Likewise.
16699 * m4/utimbuf.m4: Likewise.
16700 * m4/utime.m4: Likewise.
16701 * m4/utimes-null.m4: Likewise.
16702 * m4/utimes.m4: Likewise.
16703 * m4/vararrays.m4: Likewise.
16704 * m4/vasnprintf.m4: Likewise.
16705 * m4/vfprintf-posix.m4: Likewise.
16706 * m4/vprintf-posix.m4: Likewise.
16707 * m4/wait-process.m4: Likewise.
16708 * m4/wchar_t.m4: Likewise.
16709 * m4/wint_t.m4: Likewise.
16710 * m4/write-any-file.m4: Likewise.
16711 * m4/yield.m4: Likewise.
16713 2009-01-13 Bruno Haible <bruno@clisp.org>
16715 Avoid test-copy-file.sh failures when ACL support insufficient.
16716 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16718 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16719 Reported by Jim Meyering.
16721 2009-01-13 Bruno Haible <bruno@clisp.org>
16723 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16724 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16725 * modules/unistdio/u8-printf-parse (Files): Likewise.
16726 * modules/unistdio/u32-printf-parse (Files): Likewise.
16727 * modules/unistdio/ulc-printf-parse (Files): Likewise.
16729 2009-01-13 Simon Josefsson <simon@josefsson.org>
16731 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16732 and m4/inttypes_h.m4 too.
16734 2009-01-12 Eric Blake <ebb9@byu.net>
16736 tests: IRIX 6.2 cc can't compile -0.0 into .data
16737 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16738 rather than at compile-time.
16739 * tests/test-floorl.c (minus_zero): Likewise.
16740 * tests/test-frexpl.c (minus_zero): Likewise.
16741 * tests/test-isnan.c (minus_zerol): Likewise.
16742 * tests/test-isnanl.h (minus_zero): Likewise.
16743 * tests/test-ldexpl.c (minus_zero): Likewise.
16744 * tests/test-roundl.c (minus_zero): Likewise.
16745 * tests/test-signbit.c (minus_zerol): Likewise.
16746 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16747 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16748 * tests/test-truncl.c (minus_zero): Likewise.
16749 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16750 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16751 Reported by Tom G. Christensen and Nelson H. F. Beebe.
16753 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16755 regex: fix glibc bug 9697
16756 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16759 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16761 regex: fix glibc bug 697
16762 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16763 being NULL also if there are no backreferences.
16765 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16767 regex: merge glibc changes
16768 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16769 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16770 re_string_skip_chars, re_string_reconstruct): Likewise.
16771 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16773 2009-01-07 Jim Meyering <meyering@redhat.com>
16775 poll: filter through cppi
16776 * lib/poll.c: Indent cpp directives to reflect nesting.
16778 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16780 poll: don't return uninitialized
16781 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16783 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16785 avoid compile failure on AIX 6.1
16786 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16787 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16789 2009-01-04 Jim Meyering <meyering@redhat.com>
16791 remove duplicate inclusion of <stdio.h>
16792 * tests/test-fprintf-posix.c: Likewise.
16793 * tests/test-printf-posix.c: Likewise.
16794 * tests/test-snprintf-posix.c: Likewise.
16795 * tests/test-sprintf-posix.c: Likewise.
16796 * tests/test-vasprintf-posix.c: Likewise.
16797 * tests/test-vfprintf-posix.c: Likewise.
16798 * tests/test-vprintf-posix.c: Likewise.
16799 * tests/test-vsnprintf-posix.c: Likewise.
16800 * tests/test-vsprintf-posix.c: Likewise.
16802 2009-01-03 Jim Meyering <meyering@redhat.com>
16804 gnulib-tool: fix sed-based filtering
16805 * gnulib-tool (func_filter_filelist): Remove extra backslash
16806 in sed_fff_filter definition.
16808 2009-01-02 Jim Meyering <meyering@redhat.com>
16810 strftime: avoid compilation failure on Solaris 2.6
16811 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16812 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16813 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16814 be available. Reported by Tom G. Christensen. Details in
16815 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16817 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16818 Bruno Haible <bruno@clisp.org>
16820 Speed up gnulib-tool by doing more string processing through shell
16822 * gnulib-tool (fast_func_append): New variable.
16823 (func_remove_prefix, func_remove_suffix): New functions.
16824 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16825 (func_filter_filelist): New function.
16826 (func_get_dependencies): Use func_remove_suffix instead of sed.
16827 (func_get_automake_snippet): Use func_filter_filelist instead of a
16828 subshell and sed invocation.
16830 2009-01-01 Bruno Haible <bruno@clisp.org>
16832 Fix a security bug.
16833 * gnulib-tool (func_import, import, update): Don't allow the characters
16834 '"', '$', '`', '\' in macro arguments that become part of commands that
16837 2009-01-01 Bruno Haible <bruno@clisp.org>
16839 * gnulib-tool (func_reset_sigpipe): Add more comments.
16841 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16843 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16844 func_emit_tests_Makefile_am, func_import): Abort loops early if we
16845 already know the answer.
16847 2009-01-01 Jim Meyering <meyering@redhat.com>
16849 * lib/version-etc.c (version_etc_va): Update copyright year.
16851 2008-12-30 Bruno Haible <bruno@clisp.org>
16853 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16854 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16855 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16857 2008-12-29 Eric Blake <ebb9@byu.net>
16859 multiarch: avoid autoconf AC_REQUIRE bug
16860 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16861 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16863 Reported by Bruno Haible, and analyzed in
16864 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16866 2008-12-29 Bruno Haible <bruno@clisp.org>
16868 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16869 files in subdirectories correctly.
16870 Reported by Ralf Wildenhues.
16872 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16874 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16875 rather than 'join FILE -', for Solaris join.
16877 2008-12-29 Bruno Haible <bruno@clisp.org>
16879 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16881 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16882 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16883 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16884 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16885 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16886 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16887 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16888 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16889 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16890 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16891 * m4/nls.m4 (AM_NLS): Likewise.
16892 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16893 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16894 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16895 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16896 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16897 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16898 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16899 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16900 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16901 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16902 * m4/xsize.m4 (gl_XSIZE): Likewise.
16903 Suggested by Jim Meyering.
16905 2008-11-17 Bruce Korb <bkorb@gnu.org>
16907 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16908 * lib/parse-duration.c: use a switch instead of cascading if's.
16910 2008-12-29 Eric Blake <ebb9@byu.net>
16912 wchar.h: supply WEOF on Irix 5.3
16913 * lib/wchar.in.h (wint_t): Also supply WEOF.
16914 * lib/wctype.in.h (wint_t): Likewise.
16915 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16916 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16917 Reported by Tom G. Christensen.
16919 2008-12-26 Bruno Haible <bruno@clisp.org>
16921 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16924 2008-12-26 Bruno Haible <bruno@clisp.org>
16926 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16928 2008-12-26 Bruno Haible <bruno@clisp.org>
16930 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16931 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16932 not __STDC_CONSTANT_MACROS.
16933 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16935 2008-12-25 Bruno Haible <bruno@clisp.org>
16937 Add support for universal builds to vasnprintf.
16938 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16939 universal builds, guess no.
16940 * modules/vasnprintf-posix (Depends-on): Add multiarch.
16941 * modules/vasprintf-posix (Depends-on): Likewise.
16942 * modules/fprintf-posix (Depends-on): Likewise.
16943 * modules/vfprintf-posix (Depends-on): Likewise.
16944 * modules/snprintf-posix (Depends-on): Likewise.
16945 * modules/vsnprintf-posix (Depends-on): Likewise.
16946 * modules/sprintf-posix (Depends-on): Likewise.
16947 * modules/vsprintf-posix (Depends-on): Likewise.
16948 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16949 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16950 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16951 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16952 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16953 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16954 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16956 Add support for universal builds to <inttypes.h>.
16957 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16958 _SCNu64_PREFIX): In Apple
16959 universal builds, define directly, using _LP64.
16960 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16961 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16962 * modules/inttypes (Depends-on): Add multiarch.
16963 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16965 Add support for universal builds to <stdint.h>.
16966 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16967 universal builds, define directly, using _LP64.
16968 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16969 Apple universal builds, don't test for the size and suffix of ptrdiff_t
16971 * modules/stdint (Depends-on): Add multiarch.
16972 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16974 New module 'multiarch'.
16975 * modules/multiarch: New file.
16976 * m4/multiarch.m4: New file.
16978 2008-12-25 Bruno Haible <bruno@clisp.org>
16980 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16982 2008-12-25 Bruno Haible <bruno@clisp.org>
16984 * modules/btowc (License): Relicense under LGPLv2+.
16985 * modules/mbsinit (License): Likewise.
16986 * modules/mbrtowc (License): Likewise.
16987 * modules/wcrtomb (License): Likewise.
16988 * modules/streq (License): Likewise.
16989 Reported by David Lutterkort <lutter@redhat.com>.
16991 2008-12-23 Bruno Haible <bruno@clisp.org>
16993 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16995 2008-12-23 Bruno Haible <bruno@clisp.org>
16997 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16998 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16999 GETADDRINFO_LIB, not in LIBS.
17000 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17001 * modules/canon-host (Link): Likewise.
17002 * NEWS: Mention the change.
17003 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17006 2008-12-22 Bruno Haible <bruno@clisp.org>
17008 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17009 * doc/posix-functions/iswalpha_l.texi: Likewise.
17010 * doc/posix-functions/iswblank_l.texi: Likewise.
17011 * doc/posix-functions/iswcntrl_l.texi: Likewise.
17012 * doc/posix-functions/iswctype_l.texi: Likewise.
17013 * doc/posix-functions/iswdigit_l.texi: Likewise.
17014 * doc/posix-functions/iswgraph_l.texi: Likewise.
17015 * doc/posix-functions/iswlower_l.texi: Likewise.
17016 * doc/posix-functions/iswprint_l.texi: Likewise.
17017 * doc/posix-functions/iswpunct_l.texi: Likewise.
17018 * doc/posix-functions/iswspace_l.texi: Likewise.
17019 * doc/posix-functions/iswupper_l.texi: Likewise.
17020 * doc/posix-functions/iswxdigit_l.texi: Likewise.
17021 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17022 * doc/posix-functions/open_wmemstream.texi: Likewise.
17023 * doc/posix-functions/swscanf.texi: Likewise.
17024 * doc/posix-functions/towctrans_l.texi: Likewise.
17025 * doc/posix-functions/towlower.texi: Likewise.
17026 * doc/posix-functions/towlower_l.texi: Likewise.
17027 * doc/posix-functions/towupper.texi: Likewise.
17028 * doc/posix-functions/towupper_l.texi: Likewise.
17029 * doc/posix-functions/vfwprintf.texi: Likewise.
17030 * doc/posix-functions/vfwscanf.texi: Likewise.
17031 * doc/posix-functions/vswscanf.texi: Likewise.
17032 * doc/posix-functions/vwprintf.texi: Likewise.
17033 * doc/posix-functions/vwscanf.texi: Likewise.
17034 * doc/posix-functions/wcpcpy.texi: Likewise.
17035 * doc/posix-functions/wcpncpy.texi: Likewise.
17036 * doc/posix-functions/wcscasecmp.texi: Likewise.
17037 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17038 * doc/posix-functions/wcscoll_l.texi: Likewise.
17039 * doc/posix-functions/wcsdup.texi: Likewise.
17040 * doc/posix-functions/wcsncasecmp.texi: Likewise.
17041 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17042 * doc/posix-functions/wcsnlen.texi: Likewise.
17043 * doc/posix-functions/wcsnrtombs.texi: Likewise.
17044 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17045 * doc/posix-functions/wctrans_l.texi: Likewise.
17046 * doc/posix-functions/wctype_l.texi: Likewise.
17047 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17048 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17049 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17050 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17051 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17052 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17053 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17054 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17055 * doc/glibc-functions/wcschrnul.texi: Likewise.
17056 * doc/glibc-functions/wcsftime_l.texi: Likewise.
17057 * doc/glibc-functions/wcstod_l.texi: Likewise.
17058 * doc/glibc-functions/wcstof_l.texi: Likewise.
17059 * doc/glibc-functions/wcstol_l.texi: Likewise.
17060 * doc/glibc-functions/wcstold_l.texi: Likewise.
17061 * doc/glibc-functions/wcstoll_l.texi: Likewise.
17062 * doc/glibc-functions/wcstoq.texi: Likewise.
17063 * doc/glibc-functions/wcstoul_l.texi: Likewise.
17064 * doc/glibc-functions/wcstoull_l.texi: Likewise.
17065 * doc/glibc-functions/wcstouq.texi: Likewise.
17066 * doc/glibc-functions/wmempcpy.texi: Likewise.
17068 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
17069 Eric Blake <ebb9@byu.net>
17070 Paolo Bonzini <bonzini@gnu.org>
17071 Bruno Haible <bruno@clisp.org>
17073 Make c-stack work on Haiku.
17074 * lib/c-stack.c (SA_ONSTACK): Define fallback.
17075 (c_stack_action): Use SA_ONSTACK flag.
17077 2008-12-22 Bruno Haible <bruno@clisp.org>
17079 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17081 2008-12-22 Bruno Haible <bruno@clisp.org>
17083 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17084 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17086 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17088 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17089 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17090 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17091 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17093 2008-12-22 Bruno Haible <bruno@clisp.org>
17095 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17098 2008-12-22 Eric Blake <ebb9@byu.net>
17100 Avoid gcc warnings on cygwin.
17101 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17102 Avoid unused variable.
17103 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17106 2008-12-22 Bruno Haible <bruno@clisp.org>
17108 Remove HAVE_MBRTOWC conditionals.
17109 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17110 (mbscasecmp): Assume mbrtowc function.
17111 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17112 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17113 * lib/mbschr.c: Include mbuiter.h unconditionally.
17114 (mbschr): Assume mbrtowc function.
17115 * lib/mbscspn.c: Include mbuiter.h unconditionally.
17116 (mbscspn): Assume mbrtowc function.
17117 * lib/mbslen.c: Include mbuiter.h unconditionally.
17118 (mbslen): Assume mbrtowc function.
17119 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17120 (mbsncasecmp): Assume mbrtowc function.
17121 * lib/mbsnlen.c: Include mbiter.h unconditionally.
17122 (mbsnlen): Assume mbrtowc function.
17123 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17124 (mbspbrk): Assume mbrtowc function.
17125 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17126 (mbspcasecmp): Assume mbrtowc function.
17127 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17128 (mbsrchr): Assume mbrtowc function.
17129 * lib/mbssep.c: Include mbuiter.h unconditionally.
17130 (mbssep): Assume mbrtowc function.
17131 * lib/mbsspn.c: Include mbuiter.h unconditionally.
17132 (mbsspn): Assume mbrtowc function.
17133 * lib/mbsstr.c: Include mbuiter.h unconditionally.
17134 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17135 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17136 (mbstok_r): Assume mbrtowc function.
17137 * lib/propername.c: Include mbuiter.h unconditionally.
17138 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17139 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17140 (trim2): Assume mbrtowc function.
17141 * lib/mbswidth.c (mbsinit): Remove fallback definition.
17142 (mbsnwidth): Assume mbrtowc function.
17143 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17144 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17145 fallback definitions.
17146 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17148 2008-12-22 Bruno Haible <bruno@clisp.org>
17150 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17152 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
17154 * modules/regex: Request emulations for the mb*/wc* functions we need.
17155 * m4/regex.m4: Don't look for those functions here.
17156 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17158 2008-12-22 Bruno Haible <bruno@clisp.org>
17160 * modules/fnmatch (Depends-on): Remove duplicated dependency.
17162 2008-12-21 Bruno Haible <bruno@clisp.org>
17164 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17165 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17166 (Include): Remove conditionalization.
17167 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17168 (Include): Remove conditionalization.
17169 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17170 (Include): Remove conditionalization.
17171 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17172 * m4/mbfile.m4 (gl_MBFILE): Likewise.
17173 * NEWS: Mention the change.
17174 Reported by Alan Hourihane <alanh@fairlite.co.uk>
17175 via Sergey Poznyakoff <gray@gnu.org.ua>.
17177 2008-12-21 Bruno Haible <bruno@clisp.org>
17179 * MODULES.html.sh (Extended multibyte and wide character utilities
17180 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17181 wcrtomb, wcsrtombs.
17182 (Support for systems lacking POSIX:2008): Add accept, bind, close,
17183 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17184 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17185 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17187 2008-12-21 Bruno Haible <bruno@clisp.org>
17189 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17191 2008-12-21 Bruno Haible <bruno@clisp.org>
17193 * modules/wcsnrtombs-tests: New file.
17194 * tests/test-wcsnrtombs1.sh: New file.
17195 * tests/test-wcsnrtombs2.sh: New file.
17196 * tests/test-wcsnrtombs3.sh: New file.
17197 * tests/test-wcsnrtombs4.sh: New file.
17198 * tests/test-wcsnrtombs.c: New file.
17200 New module 'wcsnrtombs'.
17201 * lib/wchar.in.h (wcsnrtombs): New declaration.
17202 * lib/wcsnrtombs.c: New file.
17203 * lib/wcsrtombs-state.c: New file.
17204 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17205 (internal_state): Remove variable.
17206 * m4/wcsnrtombs.m4: New file.
17207 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17209 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17211 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17213 * modules/wcsnrtombs: New file.
17214 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17215 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17217 2008-12-21 Bruno Haible <bruno@clisp.org>
17219 * modules/wcsrtombs-tests: New file.
17220 * tests/test-wcsrtombs1.sh: New file.
17221 * tests/test-wcsrtombs2.sh: New file.
17222 * tests/test-wcsrtombs3.sh: New file.
17223 * tests/test-wcsrtombs4.sh: New file.
17224 * tests/test-wcsrtombs.c: New file.
17226 New module 'wcsrtombs'.
17227 * lib/wchar.in.h (wcsrtombs): New declaration.
17228 * lib/wcsrtombs.c: New file.
17229 * m4/wcsrtombs.m4: New file.
17230 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17231 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17232 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17233 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17234 * modules/wcsrtombs: New file.
17235 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17238 2008-12-21 Bruno Haible <bruno@clisp.org>
17240 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17241 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17242 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17243 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17245 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17246 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17247 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17248 m4/locale-zh.m4, m4/codeset.m4.
17249 * doc/posix-functions/wcrtomb.texi: Document the bug.
17251 2008-12-21 Bruno Haible <bruno@clisp.org>
17253 Work around a btowc() bug on IRIX 6.5.
17254 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17255 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17256 REPLACE_WTOBC if not.
17257 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17258 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17259 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17261 2008-12-21 Bruno Haible <bruno@clisp.org>
17263 * modules/wcrtomb-tests: New file.
17264 * tests/test-wcrtomb.sh: New file.
17265 * tests/test-wcrtomb.c: New file.
17267 New module 'wcrtomb'.
17268 * lib/wchar.in.h (wcrtomb): New declaration.
17269 * lib/wcrtomb.c: New file.
17270 * m4/wcrtomb.m4: New file.
17271 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17273 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17275 * modules/wcrtomb: New file.
17276 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17278 2008-12-21 Bruno Haible <bruno@clisp.org>
17280 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17281 * modules/mbsrtowcs (Files): Likewise.
17282 * modules/wctob (Files): Likewise.
17283 * modules/c-strcase-tests (Files): Likewise.
17284 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17285 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17286 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17287 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17288 * modules/vasnprintf-posix-tests (Files): Likewise.
17290 2008-12-21 William Pursell <bill.pursell@gmail.com>
17292 gitlog-to-changelog: pass all command-line arguments to git-log
17293 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17294 it is sometimes convenient to filter the commits in various ways.
17295 gitlog-to-changelog only allows --since to specify a start date,
17296 but git-log itself supports many other filtering mechanisms.
17297 At the moment, I want to filter by branch name. Rather than
17298 adding a --branch option to gitlog-to-changelog, it seems more
17299 flexible to simply pass all options directly to git-log and let
17300 git do the work. Notice that this effectively makes --since a
17301 redundant option for gitlog-to-changelog, but removing it would
17302 require current usage to change since calls would then require
17303 an additional '--'.
17305 2008-12-21 Bruno Haible <bruno@clisp.org>
17307 * modules/mbsnrtowcs-tests: New file.
17308 * tests/test-mbsnrtowcs1.sh: New file.
17309 * tests/test-mbsnrtowcs2.sh: New file.
17310 * tests/test-mbsnrtowcs3.sh: New file.
17311 * tests/test-mbsnrtowcs4.sh: New file.
17312 * tests/test-mbsnrtowcs.c: New file.
17314 New module 'mbsnrtowcs'.
17315 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17316 * lib/mbsnrtowcs.c: New file.
17317 * lib/mbsrtowcs-state.c: New file.
17318 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17319 (internal_state): Remove variable.
17320 * m4/mbsnrtowcs.m4: New file.
17321 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17323 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17324 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17325 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17326 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17327 * modules/mbsnrtowcs: New file.
17328 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17329 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17330 portability problem.
17332 2008-12-21 Bruno Haible <bruno@clisp.org>
17334 Work around mbsrtowcs bug.
17335 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17336 (gl_FUNC_MBSRTOWCS): Invoke it.
17337 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17339 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17341 2008-12-21 Bruno Haible <bruno@clisp.org>
17343 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17345 2008-12-21 Bruno Haible <bruno@clisp.org>
17347 Update doc for AIX.
17348 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17349 16-bit wchar_t type.
17350 * doc/posix-functions/btowc.texi: Likewise.
17351 * doc/posix-functions/fgetwc.texi: Likewise.
17352 * doc/posix-functions/fgetws.texi: Likewise.
17353 * doc/posix-functions/fputwc.texi: Likewise.
17354 * doc/posix-functions/fputws.texi: Likewise.
17355 * doc/posix-functions/fwide.texi: Likewise.
17356 * doc/posix-functions/fwprintf.texi: Likewise.
17357 * doc/posix-functions/fwscanf.texi: Likewise.
17358 * doc/posix-functions/getwchar.texi: Likewise.
17359 * doc/posix-functions/getwc.texi: Likewise.
17360 * doc/posix-functions/iswalnum.texi: Likewise.
17361 * doc/posix-functions/iswalpha.texi: Likewise.
17362 * doc/posix-functions/iswblank.texi: Likewise.
17363 * doc/posix-functions/iswcntrl.texi: Likewise.
17364 * doc/posix-functions/iswctype.texi: Likewise.
17365 * doc/posix-functions/iswdigit.texi: Likewise.
17366 * doc/posix-functions/iswgraph.texi: Likewise.
17367 * doc/posix-functions/iswlower.texi: Likewise.
17368 * doc/posix-functions/iswprint.texi: Likewise.
17369 * doc/posix-functions/iswpunct.texi: Likewise.
17370 * doc/posix-functions/iswspace.texi: Likewise.
17371 * doc/posix-functions/iswupper.texi: Likewise.
17372 * doc/posix-functions/iswxdigit.texi: Likewise.
17373 * doc/posix-functions/mbrtowc.texi: Likewise.
17374 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17375 * doc/posix-functions/mbstowcs.texi: Likewise.
17376 * doc/posix-functions/mbtowc.texi: Likewise.
17377 * doc/posix-functions/putwchar.texi: Likewise.
17378 * doc/posix-functions/putwc.texi: Likewise.
17379 * doc/posix-functions/swprintf.texi: Likewise.
17380 * doc/posix-functions/tolower.texi: Likewise.
17381 * doc/posix-functions/toupper.texi: Likewise.
17382 * doc/posix-functions/towctrans.texi: Likewise.
17383 * doc/posix-functions/ungetwc.texi: Likewise.
17384 * doc/posix-functions/vswprintf.texi: Likewise.
17385 * doc/posix-functions/wcrtomb.texi: Likewise.
17386 * doc/posix-functions/wcscat.texi: Likewise.
17387 * doc/posix-functions/wcschr.texi: Likewise.
17388 * doc/posix-functions/wcscmp.texi: Likewise.
17389 * doc/posix-functions/wcscoll.texi: Likewise.
17390 * doc/posix-functions/wcscpy.texi: Likewise.
17391 * doc/posix-functions/wcscspn.texi: Likewise.
17392 * doc/posix-functions/wcsftime.texi: Likewise.
17393 * doc/posix-functions/wcslen.texi: Likewise.
17394 * doc/posix-functions/wcsncat.texi: Likewise.
17395 * doc/posix-functions/wcsncmp.texi: Likewise.
17396 * doc/posix-functions/wcsncpy.texi: Likewise.
17397 * doc/posix-functions/wcspbrk.texi: Likewise.
17398 * doc/posix-functions/wcsrchr.texi: Likewise.
17399 * doc/posix-functions/wcsrtombs.texi: Likewise.
17400 * doc/posix-functions/wcsspn.texi: Likewise.
17401 * doc/posix-functions/wcsstr.texi: Likewise.
17402 * doc/posix-functions/wcstod.texi: Likewise.
17403 * doc/posix-functions/wcstof.texi: Likewise.
17404 * doc/posix-functions/wcstoimax.texi: Likewise.
17405 * doc/posix-functions/wcstok.texi: Likewise.
17406 * doc/posix-functions/wcstold.texi: Likewise.
17407 * doc/posix-functions/wcstoll.texi: Likewise.
17408 * doc/posix-functions/wcstol.texi: Likewise.
17409 * doc/posix-functions/wcstombs.texi: Likewise.
17410 * doc/posix-functions/wcstoull.texi: Likewise.
17411 * doc/posix-functions/wcstoul.texi: Likewise.
17412 * doc/posix-functions/wcstoumax.texi: Likewise.
17413 * doc/posix-functions/wcswidth.texi: Likewise.
17414 * doc/posix-functions/wcsxfrm.texi: Likewise.
17415 * doc/posix-functions/wctob.texi: Likewise.
17416 * doc/posix-functions/wctomb.texi: Likewise.
17417 * doc/posix-functions/wctrans.texi: Likewise.
17418 * doc/posix-functions/wctype.texi: Likewise.
17419 * doc/posix-functions/wcwidth.texi: Likewise.
17420 * doc/posix-functions/wmemchr.texi: Likewise.
17421 * doc/posix-functions/wmemcmp.texi: Likewise.
17422 * doc/posix-functions/wmemcpy.texi: Likewise.
17423 * doc/posix-functions/wmemmove.texi: Likewise.
17424 * doc/posix-functions/wmemset.texi: Likewise.
17425 * doc/posix-functions/wprintf.texi: Likewise.
17426 * doc/posix-functions/wscanf.texi: Likewise.
17428 2008-12-21 Bruno Haible <bruno@clisp.org>
17430 Update doc for HP-UX 11.11.
17431 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17432 in HP-UX version 11.00, not in all versions of HP-UX 11.
17433 * doc/posix-functions/fwide.texi: Likewise.
17434 * doc/posix-functions/fwprintf.texi: Likewise.
17435 * doc/posix-functions/fwscanf.texi: Likewise.
17436 * doc/posix-functions/inet_ntop.texi: Likewise.
17437 * doc/posix-functions/inet_pton.texi: Likewise.
17438 * doc/posix-functions/mbrlen.texi: Likewise.
17439 * doc/posix-functions/mbrtowc.texi: Likewise.
17440 * doc/posix-functions/mbsinit.texi: Likewise.
17441 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17442 * doc/posix-functions/swprintf.texi: Likewise.
17443 * doc/posix-functions/swscanf.texi: Likewise.
17444 * doc/posix-functions/towctrans.texi: Likewise.
17445 * doc/posix-functions/vfwprintf.texi: Likewise.
17446 * doc/posix-functions/vswprintf.texi: Likewise.
17447 * doc/posix-functions/vwprintf.texi: Likewise.
17448 * doc/posix-functions/wcrtomb.texi: Likewise.
17449 * doc/posix-functions/wcsrtombs.texi: Likewise.
17450 * doc/posix-functions/wcsstr.texi: Likewise.
17451 * doc/posix-functions/wctob.texi: Likewise.
17452 * doc/posix-functions/wctrans.texi: Likewise.
17453 * doc/posix-functions/wmemchr.texi: Likewise.
17454 * doc/posix-functions/wmemcmp.texi: Likewise.
17455 * doc/posix-functions/wmemcpy.texi: Likewise.
17456 * doc/posix-functions/wmemmove.texi: Likewise.
17457 * doc/posix-functions/wmemset.texi: Likewise.
17458 * doc/posix-functions/wprintf.texi: Likewise.
17459 * doc/posix-functions/wscanf.texi: Likewise.
17461 2008-12-21 Bruno Haible <bruno@clisp.org>
17463 Work around a portability problem.
17464 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17465 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17467 2008-12-20 Bruno Haible <bruno@clisp.org>
17469 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17470 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17471 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17472 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17473 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17475 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17476 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17478 (GNULIB_defined_mbstate_t): New macro.
17479 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17480 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17481 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17482 reuses the system's mbrtowc function but works around the bugs.
17483 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17484 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17486 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17487 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17488 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17489 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17490 REPLACE_MBSINIT if mbsinit needs to be overridden.
17491 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17492 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17493 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17494 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17495 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17497 (Depends): Add mbsinit.
17498 * modules/mbsinit (Depends): Add mbrtowc.
17499 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17501 2008-12-20 Bruno Haible <bruno@clisp.org>
17503 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17504 so that there are no conversion errors on AIX.
17505 * tests/test-mbsrtowcs.c (main): LIkewise.
17507 2008-12-20 Bruno Haible <bruno@clisp.org>
17509 Work around wctob bug on Solaris <= 9.
17510 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17511 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17512 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17513 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17514 * modules/wctob (Files): Add m4/locale-fr.m4.
17515 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17517 2008-12-20 Bruno Haible <bruno@clisp.org>
17519 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17521 * tests/test-select-in.sh: Likewise.
17522 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17524 2008-12-20 Bruno Haible <bruno@clisp.org>
17526 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17527 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17530 2008-12-20 Bruno Haible <bruno@clisp.org>
17532 Ensure mbstate_t is defined on HP-UX 11.11.
17533 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17534 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17535 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17536 AC_USE_SYSTEM_EXTENSIONS.
17537 * modules/fnmatch (Depends-on): Add extensions.
17538 * modules/mbrlen (Depends-on): Likewise.
17539 * modules/mbrtowc (Depends-on): Likewise.
17540 * modules/mbsinit (Depends-on): Likewise.
17541 * modules/mbsrtowcs (Depends-on): Likewise.
17542 * modules/mbswidth (Depends-on): Likewise.
17543 * modules/quotearg (Depends-on): Likewise.
17544 * modules/strftime (Depends-on): Likewise.
17546 2008-12-20 Bruno Haible <bruno@clisp.org>
17548 Ensure wctob is declared on IRIX 6.5.
17549 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17550 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17551 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17552 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17554 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17556 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17558 2008-12-19 Bruno Haible <bruno@clisp.org>
17560 * modules/mbsrtowcs-tests: New file.
17561 * tests/test-mbsrtowcs1.sh: New file.
17562 * tests/test-mbsrtowcs2.sh: New file.
17563 * tests/test-mbsrtowcs3.sh: New file.
17564 * tests/test-mbsrtowcs4.sh: New file.
17565 * tests/test-mbsrtowcs.c: New file.
17567 New module 'mbsrtowcs'.
17568 * lib/wchar.in.h (mbsrtowcs): New declaration.
17569 * lib/mbsrtowcs.c: New file.
17570 * m4/mbsrtowcs.m4: New file.
17571 * modules/mbsrtowcs: New file.
17572 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17574 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17576 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17578 2008-12-19 Bruno Haible <bruno@clisp.org>
17580 New module 'mbrlen'.
17581 * lib/wchar.in.h (mbrlen): New declaration.
17582 * lib/mbrlen.c: New file.
17583 * m4/mbrlen.m4: New file.
17584 * modules/mbrlen: New file.
17585 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17587 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17589 * doc/posix-functions/mbrlen.texi: Document the new module.
17591 2008-12-19 Bruno Haible <bruno@clisp.org>
17593 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17594 * modules/mbrtowc (Depends-on): Add verify.
17595 Suggested by Paul Eggert.
17597 2008-12-18 Bruno Haible <bruno@clisp.org>
17599 * modules/mbsinit-tests: New file.
17600 * tests/test-mbsinit.sh: New file.
17601 * tests/test-mbsinit.c: New file.
17603 2008-12-18 Bruno Haible <bruno@clisp.org>
17605 * modules/mbrtowc-tests: New file.
17606 * tests/test-mbrtowc1.sh: New file.
17607 * tests/test-mbrtowc2.sh: New file.
17608 * tests/test-mbrtowc3.sh: New file.
17609 * tests/test-mbrtowc4.sh: New file.
17610 * tests/test-mbrtowc.c: New file.
17612 New module 'mbrtowc'.
17613 * lib/wchar.in.h (mbstate_t): Override when the system does not have
17614 mbsinit and mbrtowc.
17615 (mbrtowc): New declaration.
17616 * lib/mbrtowc.c: New file.
17617 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17618 * modules/mbrtowc: New file.
17619 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17621 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17623 * doc/posix-functions/mbrtowc.texi: Document the new module.
17625 2008-12-18 Bruno Haible <bruno@clisp.org>
17627 New module 'wctob'.
17628 * lib/wchar.in.h (wctob): New declaration.
17629 * lib/wctob.c: New file.
17630 * m4/wctob.m4: New file.
17631 * modules/wctob: New file.
17632 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17634 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17635 * doc/posix-functions/wctob.texi: Document the new module.
17637 2008-12-18 Bruno Haible <bruno@clisp.org>
17639 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17640 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17642 2008-12-18 Simon Josefsson <simon@josefsson.org>
17644 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
17645 G. Christensen" <tgc@jupiterrise.com>.
17647 * lib/flock.c: Need to include errno.h. Reported by "Tom
17648 G. Christensen" <tgc@jupiterrise.com>.
17650 * lib/flock.c: Need to include string.h. Reported by "Tom
17651 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17654 2008-12-18 Bruno Haible <bruno@clisp.org>
17656 * m4/locale-ja.m4: New file, from GNU gettext.
17658 2008-12-17 Bruno Haible <bruno@clisp.org>
17660 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17661 Suggested by Eric Blake.
17663 2008-12-17 Bruno Haible <bruno@clisp.org>
17665 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17667 2008-12-17 Bruno Haible <bruno@clisp.org>
17669 * lib/mbsinit.c: Include verify.h. Verify an assumption.
17670 * modules/mbsinit (Depends-on): Add verify.
17671 Suggested by Paul Eggert.
17673 2008-12-17 Bruno Haible <bruno@clisp.org>
17675 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17676 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17678 * m4/mbiter.m4 (gl_MBITER): LIkewise.
17679 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17680 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17681 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17682 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17683 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17684 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17685 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17686 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17687 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17688 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17689 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17690 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17691 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17692 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17693 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17694 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17695 * modules/trim (configure.ac): Likewise.
17697 2008-12-17 Bruno Haible <bruno@clisp.org>
17699 * modules/btowc-tests: New file.
17700 * tests/test-btowc1.sh: New file.
17701 * tests/test-btowc2.sh: New file.
17702 * tests/test-btowc.c: New file.
17704 New module 'btowc'.
17705 * lib/wchar.in.h (btowc): New declaration.
17706 * lib/btowc.c: New file.
17707 * m4/btowc.m4: New file.
17708 * modules/btowc: New file.
17709 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17711 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17712 * doc/posix-functions/btowc.texi: Document the new module.
17714 2008-12-17 Bruno Haible <bruno@clisp.org>
17716 New module 'mbsinit'.
17717 * lib/wchar.in.h (mbsinit): New declaration.
17718 * lib/mbsinit.c: New file.
17719 * m4/mbsinit.m4: New file.
17720 * modules/mbsinit: New file.
17721 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17723 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17725 * doc/posix-functions/mbsinit.texi: Document the new module.
17727 2008-12-16 Bruno Haible <bruno@clisp.org>
17729 * lib/unistd.in.h: Add comment.
17730 * tests/test-environ.c: Don't include <stdlib.h>.
17732 2008-12-16 Bruno Haible <bruno@clisp.org>
17734 * lib/parse-duration.h (parse_duration): Document return value
17736 * lib/parse-duration.c: Include specification header first. Add
17739 (parse_year_month_day, parse_hour_minute_second): Move side effects
17740 outside of strchr call.
17741 (parse_non_iso8601): Move side effects outside of isspace call.
17742 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17745 2008-12-16 Bruno Haible <bruno@clisp.org>
17747 * tests/test-parse-duration.sh: Produce no output when the test
17750 2008-12-16 Bruno Haible <bruno@clisp.org>
17752 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17755 2008-12-15 Bruno Haible <bruno@clisp.org>
17757 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17758 * doc/glibc-functions/flistxattr.texi: Likewise.
17759 * doc/glibc-functions/fopencookie.texi: Likewise.
17760 * doc/glibc-functions/fremovexattr.texi: Likewise.
17761 * doc/glibc-functions/fsetxattr.texi: Likewise.
17762 * doc/glibc-functions/getxattr.texi: Likewise.
17763 * doc/glibc-functions/lgetxattr.texi: Likewise.
17764 * doc/glibc-functions/listxattr.texi: Likewise.
17765 * doc/glibc-functions/llistxattr.texi: Likewise.
17766 * doc/glibc-functions/lremovexattr.texi: Likewise.
17767 * doc/glibc-functions/lsetxattr.texi: Likewise.
17768 * doc/glibc-functions/removexattr.texi: Likewise.
17769 * doc/glibc-functions/setxattr.texi: Likewise.
17770 * doc/posix-functions/open_memstream.texi: Likewise.
17772 2008-12-15 Eric Blake <ebb9@byu.net>
17774 Update doc for cygwin 1.7.
17775 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17777 * doc/posix-functions/fchmodat.texi: Likewise.
17778 * doc/posix-functions/fchownat.texi: Likewise.
17779 * doc/posix-functions/fdopendir.texi: Likewise.
17780 * doc/posix-functions/fmemopen.texi: Likewise.
17781 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17782 * doc/posix-functions/fstatat.texi: Likewise.
17783 * doc/posix-functions/futimens.texi: Likewise.
17784 * doc/posix-functions/gai_strerror.texi: Likewise.
17785 * doc/posix-functions/getaddrinfo.texi: Likewise.
17786 * doc/posix-functions/getnameinfo.texi: Likewise.
17787 * doc/posix-functions/if_freenameindex.texi: Likewise.
17788 * doc/posix-functions/if_indextoname.texi: Likewise.
17789 * doc/posix-functions/if_nameindex.texi: Likewise.
17790 * doc/posix-functions/if_nametoindex.texi: Likewise.
17791 * doc/posix-functions/insque.texi: Likewise.
17792 * doc/posix-functions/linkat.texi: Likewise.
17793 * doc/posix-functions/llrint.texi: Likewise.
17794 * doc/posix-functions/llrintf.texi: Likewise.
17795 * doc/posix-functions/llrintl.texi: Likewise.
17796 * doc/posix-functions/lockf.texi: Likewise.
17797 * doc/posix-functions/lrintl.texi: Likewise.
17798 * doc/posix-functions/mkdirat.texi: Likewise.
17799 * doc/posix-functions/mkfifoat.texi: Likewise.
17800 * doc/posix-functions/mknodat.texi: Likewise.
17801 * doc/posix-functions/mq_close.texi: Likewise.
17802 * doc/posix-functions/mq_getattr.texi: Likewise.
17803 * doc/posix-functions/mq_notify.texi: Likewise.
17804 * doc/posix-functions/mq_open.texi: Likewise.
17805 * doc/posix-functions/mq_receive.texi: Likewise.
17806 * doc/posix-functions/mq_send.texi: Likewise.
17807 * doc/posix-functions/mq_setattr.texi: Likewise.
17808 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17809 * doc/posix-functions/mq_timedsend.texi: Likewise.
17810 * doc/posix-functions/mq_unlink.texi: Likewise.
17811 * doc/posix-functions/open_memstream.texi: Likewise.
17812 * doc/posix-functions/openat.texi: Likewise.
17813 * doc/posix-functions/posix_fadvise.texi: Likewise.
17814 * doc/posix-functions/posix_fallocate.texi: Likewise.
17815 * doc/posix-functions/posix_madvise.texi: Likewise.
17816 * doc/posix-functions/posix_memalign.texi: Likewise.
17817 * doc/posix-functions/posix_openpt.texi: Likewise.
17818 * doc/posix-functions/readlinkat.texi: Likewise.
17819 * doc/posix-functions/remque.texi: Likewise.
17820 * doc/posix-functions/renameat.texi: Likewise.
17821 * doc/posix-functions/rintl.texi: Likewise.
17822 * doc/posix-functions/sem_unlink.texi: Likewise.
17823 * doc/posix-functions/shm_open.texi: Likewise.
17824 * doc/posix-functions/shm_unlink.texi: Likewise.
17825 * doc/posix-functions/signgam.texi: Likewise.
17826 * doc/posix-functions/sigset.texi: Likewise.
17827 * doc/posix-functions/stpcpy.texi: Likewise.
17828 * doc/posix-functions/stpncpy.texi: Likewise.
17829 * doc/posix-functions/strerror.texi: Likewise.
17830 * doc/posix-functions/strtod.texi: Likewise.
17831 * doc/posix-functions/symlinkat.texi: Likewise.
17832 * doc/posix-functions/unlinkat.texi: Likewise.
17833 * doc/posix-functions/utimensat.texi: Likewise.
17834 * doc/glibc-functions/bindresvport.texi: Likewise.
17835 * doc/glibc-functions/dn_expand.texi: Likewise.
17836 * doc/glibc-functions/exp10.texi: Likewise.
17837 * doc/glibc-functions/exp10f.texi: Likewise.
17838 * doc/glibc-functions/fgetxattr.texi: Likewise.
17839 * doc/glibc-functions/flistxattr.texi: Likewise.
17840 * doc/glibc-functions/fopencookie.texi: Likewise.
17841 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17842 * doc/glibc-functions/fremovexattr.texi: Likewise.
17843 * doc/glibc-functions/fsetxattr.texi: Likewise.
17844 * doc/glibc-functions/getifaddrs.texi: Likewise.
17845 * doc/glibc-functions/getxattr.texi: Likewise.
17846 * doc/glibc-functions/lgetxattr.texi: Likewise.
17847 * doc/glibc-functions/listxattr.texi: Likewise.
17848 * doc/glibc-functions/llistxattr.texi: Likewise.
17849 * doc/glibc-functions/lremovexattr.texi: Likewise.
17850 * doc/glibc-functions/lsetxattr.texi: Likewise.
17851 * doc/glibc-functions/pow10.texi: Likewise.
17852 * doc/glibc-functions/pow10f.texi: Likewise.
17853 * doc/glibc-functions/rcmd_af.texi: Likewise.
17854 * doc/glibc-functions/removexattr.texi: Likewise.
17855 * doc/glibc-functions/res_init.texi: Likewise.
17856 * doc/glibc-functions/res_mkquery.texi: Likewise.
17857 * doc/glibc-functions/res_query.texi: Likewise.
17858 * doc/glibc-functions/res_querydomain.texi: Likewise.
17859 * doc/glibc-functions/res_send.texi: Likewise.
17860 * doc/glibc-functions/rresvport_af.texi: Likewise.
17861 * doc/glibc-functions/setxattr.texi: Likewise.
17862 * doc/glibc-functions/strcasestr.texi: Likewise.
17864 2008-12-15 Bruno Haible <bruno@clisp.org>
17866 Fix compilation error on OSF/1 4.0.
17867 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17868 <sys/time.h>, simply delegate to the system header.
17869 Reported by Daniel Richard G. <oss@teragram.com>.
17871 2008-12-15 Bruno Haible <bruno@clisp.org>
17873 * doc/posix-functions/openat.texi: Mention the 'openat' module.
17874 * doc/posix-functions/fchmodat.texi: Likewise.
17875 * doc/posix-functions/fchownat.texi: Likewise.
17876 * doc/posix-functions/fdopendir.texi: Likewise.
17877 * doc/posix-functions/fstatat.texi: Likewise.
17878 * doc/posix-functions/mkdirat.texi: Likewise.
17879 * doc/posix-functions/unlinkat.texi: Likewise.
17881 2008-12-14 Bruno Haible <bruno@clisp.org>
17883 Update doc for POSIX:2008.
17884 * doc/posix-functions/faccessat.texi: New file.
17885 * doc/posix-functions/fchmodat.texi: New file.
17886 * doc/posix-functions/fchownat.texi: New file.
17887 * doc/posix-functions/fdopendir.texi: New file.
17888 * doc/posix-functions/fstatat.texi: New file.
17889 * doc/posix-functions/futimens.texi: New file.
17890 * doc/posix-functions/linkat.texi: New file.
17891 * doc/posix-functions/mkdirat.texi: New file.
17892 * doc/posix-functions/mkfifoat.texi: New file.
17893 * doc/posix-functions/mknodat.texi: New file.
17894 * doc/posix-functions/open_wmemstream.texi: New file.
17895 * doc/posix-functions/openat.texi: New file.
17896 * doc/posix-functions/psiginfo.texi: New file.
17897 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17898 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17899 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17900 * doc/posix-functions/readlinkat.texi: New file.
17901 * doc/posix-functions/renameat.texi: New file.
17902 * doc/posix-functions/strerror_l.texi: New file.
17903 * doc/posix-functions/symlinkat.texi: New file.
17904 * doc/posix-functions/unlinkat.texi: New file.
17905 * doc/posix-functions/utimensat.texi: New file.
17906 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17908 2008-12-14 Bruno Haible <bruno@clisp.org>
17910 Update doc for POSIX:2008.
17911 * doc/posix-functions/alphasort.texi: Renamed from
17912 doc/glibc-functions/alphasort.texi.
17913 * doc/posix-functions/dirfd.texi: Renamed from
17914 doc/glibc-functions/dirfd.texi.
17915 * doc/posix-functions/dprintf.texi: Renamed from
17916 doc/glibc-functions/dprintf.texi.
17917 * doc/posix-functions/duplocale.texi: Renamed from
17918 doc/glibc-functions/duplocale.texi.
17919 * doc/posix-functions/fexecve.texi: Renamed from
17920 doc/glibc-functions/fexecve.texi.
17921 * doc/posix-functions/fmemopen.texi: Renamed from
17922 doc/glibc-functions/fmemopen.texi.
17923 * doc/posix-functions/freelocale.texi: Renamed from
17924 doc/glibc-functions/freelocale.texi.
17925 * doc/posix-functions/getdate_err.texi: Renamed from
17926 doc/glibc-functions/getdate_err.texi.
17927 * doc/posix-functions/isalnum_l.texi: Renamed from
17928 doc/glibc-functions/isalnum_l.texi.
17929 * doc/posix-functions/isalpha_l.texi: Renamed from
17930 doc/glibc-functions/isalpha_l.texi.
17931 * doc/posix-functions/isblank_l.texi: Renamed from
17932 doc/glibc-functions/isblank_l.texi.
17933 * doc/posix-functions/iscntrl_l.texi: Renamed from
17934 doc/glibc-functions/iscntrl_l.texi.
17935 * doc/posix-functions/isdigit_l.texi: Renamed from
17936 doc/glibc-functions/isdigit_l.texi.
17937 * doc/posix-functions/isgraph_l.texi: Renamed from
17938 doc/glibc-functions/isgraph_l.texi.
17939 * doc/posix-functions/islower_l.texi: Renamed from
17940 doc/glibc-functions/islower_l.texi.
17941 * doc/posix-functions/isprint_l.texi: Renamed from
17942 doc/glibc-functions/isprint_l.texi.
17943 * doc/posix-functions/ispunct_l.texi: Renamed from
17944 doc/glibc-functions/ispunct_l.texi.
17945 * doc/posix-functions/isspace_l.texi: Renamed from
17946 doc/glibc-functions/isspace_l.texi.
17947 * doc/posix-functions/isupper_l.texi: Renamed from
17948 doc/glibc-functions/isupper_l.texi.
17949 * doc/posix-functions/iswalnum_l.texi: Renamed from
17950 doc/glibc-functions/iswalnum_l.texi.
17951 * doc/posix-functions/iswalpha_l.texi: Renamed from
17952 doc/glibc-functions/iswalpha_l.texi.
17953 * doc/posix-functions/iswblank_l.texi: Renamed from
17954 doc/glibc-functions/iswblank_l.texi.
17955 * doc/posix-functions/iswcntrl_l.texi: Renamed from
17956 doc/glibc-functions/iswcntrl_l.texi.
17957 * doc/posix-functions/iswctype_l.texi: Renamed from
17958 doc/glibc-functions/iswctype_l.texi.
17959 * doc/posix-functions/iswdigit_l.texi: Renamed from
17960 doc/glibc-functions/iswdigit_l.texi.
17961 * doc/posix-functions/iswgraph_l.texi: Renamed from
17962 doc/glibc-functions/iswgraph_l.texi.
17963 * doc/posix-functions/iswlower_l.texi: Renamed from
17964 doc/glibc-functions/iswlower_l.texi.
17965 * doc/posix-functions/iswprint_l.texi: Renamed from
17966 doc/glibc-functions/iswprint_l.texi.
17967 * doc/posix-functions/iswpunct_l.texi: Renamed from
17968 doc/glibc-functions/iswpunct_l.texi.
17969 * doc/posix-functions/iswspace_l.texi: Renamed from
17970 doc/glibc-functions/iswspace_l.texi.
17971 * doc/posix-functions/iswupper_l.texi: Renamed from
17972 doc/glibc-functions/iswupper_l.texi.
17973 * doc/posix-functions/iswxdigit_l.texi: Renamed from
17974 doc/glibc-functions/iswxdigit_l.texi.
17975 * doc/posix-functions/isxdigit_l.texi: Renamed from
17976 doc/glibc-functions/isxdigit_l.texi.
17977 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17978 doc/glibc-functions/mbsnrtowcs.texi.
17979 * doc/posix-functions/mkdtemp.texi: Renamed from
17980 doc/glibc-functions/mkdtemp.texi.
17981 * doc/posix-functions/newlocale.texi: Renamed from
17982 doc/glibc-functions/newlocale.texi.
17983 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17984 doc/glibc-functions/nl_langinfo_l.texi.
17985 * doc/posix-functions/open_memstream.texi: Renamed from
17986 doc/glibc-functions/open_memstream.texi.
17987 * doc/posix-functions/opterr.texi: Renamed from
17988 doc/glibc-functions/opterr.texi.
17989 * doc/posix-functions/optind.texi: Renamed from
17990 doc/glibc-functions/optind.texi.
17991 * doc/posix-functions/optopt.texi: Renamed from
17992 doc/glibc-functions/optopt.texi.
17993 * doc/posix-functions/psignal.texi: Renamed from
17994 doc/glibc-functions/psignal.texi.
17995 * doc/posix-functions/scandir.texi: Renamed from
17996 doc/glibc-functions/scandir.texi.
17997 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17998 doc/glibc-functions/sched_get_priority_min.texi.
17999 * doc/posix-functions/signgam.texi: Renamed from
18000 doc/glibc-functions/signgam.texi.
18001 * doc/posix-functions/stpcpy.texi: Renamed from
18002 doc/glibc-functions/stpcpy.texi.
18003 * doc/posix-functions/stpncpy.texi: Renamed from
18004 doc/glibc-functions/stpncpy.texi.
18005 * doc/posix-functions/strcasecmp_l.texi: Renamed from
18006 doc/glibc-functions/strcasecmp_l.texi.
18007 * doc/posix-functions/strcoll_l.texi: Renamed from
18008 doc/glibc-functions/strcoll_l.texi.
18009 * doc/posix-functions/strfmon_l.texi: Renamed from
18010 doc/glibc-functions/strfmon_l.texi.
18011 * doc/posix-functions/strftime_l.texi: Renamed from
18012 doc/glibc-functions/strftime_l.texi.
18013 * doc/posix-functions/strncasecmp_l.texi: Renamed from
18014 doc/glibc-functions/strncasecmp_l.texi.
18015 * doc/posix-functions/strndup.texi: Renamed from
18016 doc/glibc-functions/strndup.texi.
18017 * doc/posix-functions/strnlen.texi: Renamed from
18018 doc/glibc-functions/strnlen.texi.
18019 * doc/posix-functions/strsignal.texi: Renamed from
18020 doc/glibc-functions/strsignal.texi.
18021 * doc/posix-functions/strxfrm_l.texi: Renamed from
18022 doc/glibc-functions/strxfrm_l.texi.
18023 * doc/posix-functions/timer_gettime.texi: Renamed from
18024 doc/glibc-functions/timer_gettime.texi.
18025 * doc/posix-functions/tolower_l.texi: Renamed from
18026 doc/glibc-functions/tolower_l.texi.
18027 * doc/posix-functions/toupper_l.texi: Renamed from
18028 doc/glibc-functions/toupper_l.texi.
18029 * doc/posix-functions/towctrans_l.texi: Renamed from
18030 doc/glibc-functions/towctrans_l.texi.
18031 * doc/posix-functions/towlower_l.texi: Renamed from
18032 doc/glibc-functions/towlower_l.texi.
18033 * doc/posix-functions/towupper_l.texi: Renamed from
18034 doc/glibc-functions/towupper_l.texi.
18035 * doc/posix-functions/uselocale.texi: Renamed from
18036 doc/glibc-functions/uselocale.texi.
18037 * doc/posix-functions/vdprintf.texi: Renamed from
18038 doc/glibc-functions/vdprintf.texi.
18039 * doc/posix-functions/wcpcpy.texi:
18040 Renamed from doc/glibc-functions/wcpcpy.texi.
18041 * doc/posix-functions/wcpncpy.texi: Renamed from
18042 doc/glibc-functions/wcpncpy.texi.
18043 * doc/posix-functions/wcscasecmp.texi: Renamed from
18044 doc/glibc-functions/wcscasecmp.texi.
18045 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18046 doc/glibc-functions/wcscasecmp_l.texi.
18047 * doc/posix-functions/wcscoll_l.texi: Renamed from
18048 doc/glibc-functions/wcscoll_l.texi.
18049 * doc/posix-functions/wcsdup.texi: Renamed from
18050 doc/glibc-functions/wcsdup.texi.
18051 * doc/posix-functions/wcsncasecmp.texi: Renamed from
18052 doc/glibc-functions/wcsncasecmp.texi.
18053 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18054 doc/glibc-functions/wcsncasecmp_l.texi.
18055 * doc/posix-functions/wcsnlen.texi: Renamed from
18056 doc/glibc-functions/wcsnlen.texi.
18057 * doc/posix-functions/wcsnrtombs.texi: Renamed from
18058 doc/glibc-functions/wcsnrtombs.texi.
18059 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18060 doc/glibc-functions/wcsxfrm_l.texi.
18061 * doc/posix-functions/wctrans_l.texi: Renamed from
18062 doc/glibc-functions/wctrans_l.texi.
18063 * doc/posix-functions/wctype_l.texi: Renamed from
18064 doc/glibc-functions/wctype_l.texi.
18065 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18066 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18067 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18068 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18070 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18073 2008-12-14 Bruno Haible <bruno@clisp.org>
18075 Update doc for POSIX:2008.
18076 * doc/posix-functions/*.texi: Update URL of POSIX specification.
18078 2008-12-14 Bruno Haible <bruno@clisp.org>
18080 Update doc for POSIX:2008.
18081 * doc/pastposix-functions/bcmp.texi: Renamed from
18082 doc/posix-functions/bcmp.texi.
18083 * doc/pastposix-functions/bcopy.texi: Renamed from
18084 doc/posix-functions/bcopy.texi.
18085 * doc/pastposix-functions/bsd_signal.texi: Renamed from
18086 doc/posix-functions/bsd_signal.texi.
18087 * doc/pastposix-functions/bzero.texi: Renamed from
18088 doc/posix-functions/bzero.texi.
18089 * doc/pastposix-functions/ecvt.texi: Renamed from
18090 doc/posix-functions/ecvt.texi.
18091 * doc/pastposix-functions/fcvt.texi: Renamed from
18092 doc/posix-functions/fcvt.texi.
18093 * doc/pastposix-functions/ftime.texi: Renamed from
18094 doc/posix-functions/ftime.texi.
18095 * doc/pastposix-functions/gcvt.texi: Renamed from
18096 doc/posix-functions/gcvt.texi.
18097 * doc/pastposix-functions/getcontext.texi: Renamed from
18098 doc/posix-functions/getcontext.texi.
18099 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18100 doc/posix-functions/gethostbyaddr.texi.
18101 * doc/pastposix-functions/gethostbyname.texi: Renamed from
18102 doc/posix-functions/gethostbyname.texi.
18103 * doc/pastposix-functions/getwd.texi: Renamed from
18104 doc/posix-functions/getwd.texi.
18105 * doc/pastposix-functions/h_errno.texi: Renamed from
18106 doc/posix-functions/h_errno.texi.
18107 * doc/pastposix-functions/index.texi: Renamed from
18108 doc/posix-functions/index.texi.
18109 * doc/pastposix-functions/makecontext.texi: Renamed from
18110 doc/posix-functions/makecontext.texi.
18111 * doc/pastposix-functions/mktemp.texi: Renamed from
18112 doc/posix-functions/mktemp.texi.
18113 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18114 doc/posix-functions/pthread_attr_getstackaddr.texi.
18115 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18116 doc/posix-functions/pthread_attr_setstackaddr.texi.
18117 * doc/pastposix-functions/rindex.texi: Renamed from
18118 doc/posix-functions/rindex.texi.
18119 * doc/pastposix-functions/scalb.texi: Renamed from
18120 doc/posix-functions/scalb.texi.
18121 * doc/pastposix-functions/setcontext.texi: Renamed from
18122 doc/posix-functions/setcontext.texi.
18123 * doc/pastposix-functions/swapcontext.texi: Renamed from
18124 doc/posix-functions/swapcontext.texi.
18125 * doc/pastposix-functions/ualarm.texi: Renamed from
18126 doc/posix-functions/ualarm.texi.
18127 * doc/pastposix-functions/usleep.texi: Renamed from
18128 doc/posix-functions/usleep.texi.
18129 * doc/pastposix-functions/vfork.texi: Renamed from
18130 doc/posix-functions/vfork.texi.
18131 * doc/pastposix-functions/wcswcs.texi: Renamed from
18132 doc/posix-functions/wcswcs.texi.
18133 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18134 (Function Substitutes): Update.
18136 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18138 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18141 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18142 Bruno Haible <bruno@clisp.org>
18144 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18146 2008-12-13 Bruno Haible <bruno@clisp.org>
18148 * modules/strtoull (Depends-on): Remove unistd.
18150 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18152 * modules/strtoull (Depends-on): Add stdlib.
18154 2008-12-11 Simon Josefsson <simon@josefsson.org>
18156 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18158 2008-12-10 Jim Meyering <meyering@redhat.com>
18160 gl_ASSERT: don't say assertions are disabled when they're not
18161 * m4/assert.m4 (gl_ASSERT): Do not make configure report
18162 "checking whether to enable assertions... no", when they are in
18163 fact enabled. This is solely a bug in the output of configure.
18164 In spite of saying "no", NDEBUG was not defined in that case.
18165 Also, as noted by Eric Blake, leave assertions enabled upon
18166 --enable-assert=INVALID.
18168 2008-12-10 Bruno Haible <bruno@clisp.org>
18170 Change MODULES.html to refer to POSIX:2008 where possible.
18171 * MODULES.html.sh (POSIX2008_URL): New variable.
18172 (posix_headers): Remove sys/timeb, ucontext.
18173 (posix2001_headers): New variable.
18174 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18175 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18176 index, makecontext, mktemp, pthread_attr_getstackaddr,
18177 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18178 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18179 (posix2001_functions): New variable.
18180 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18183 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18185 add missing include to parse-duration.c
18186 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18187 * modules/parse-duration (Depends-on): Add xalloc.
18189 fix sed script reading maint.mk
18190 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18191 (syntax-check-rules): Use it.
18193 2008-12-09 Bruno Haible <bruno@clisp.org>
18195 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18196 MacOS X 10.4/PowerPC.
18197 Reported by Simon Josefsson.
18199 2008-12-08 Jim Meyering <meyering@redhat.com>
18201 work around mingw's lack of some S_IF definitions
18202 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18203 Reported by Simon Josefsson.
18205 2008-12-08 Bruno Haible <bruno@clisp.org>
18207 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18208 applied to variables. Needed on MacOS X 10.4/PowerPC.
18209 Reported by Simon Josefsson.
18211 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
18212 and Eric Blake <ebb9@byu.net>
18214 assert: honor --enable-assert
18215 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18216 order to honor --enable-assert, rather than treating it as a
18217 synonym for --disable-assert.
18219 2008-12-08 Jim Meyering <meyering@redhat.com>
18221 * lib/posixtm.c: Remove now-useless declaration of mktime.
18223 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18225 2008-12-07 Bruno Haible <bruno@clisp.org>
18227 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18228 test_once): Mark functions as static.
18229 * tests/test-tls.c (test_tls): Likewise.
18231 2008-12-07 Bruno Haible <bruno@clisp.org>
18233 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18234 iconv_register_autodetect.
18236 2008-12-07 Jim Meyering <meyering@redhat.com>
18238 posixtm.c: avoid a warning
18239 * lib/posixtm.c (posixtime): Don't initialize tm0.
18240 It's no longer needed to placate gcc4's -Wuninitialized,
18241 and the attempt to placate would elicit a new warning.
18243 unicodeio.c: mark unused parameters
18244 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18245 (fallback_failure_callback): Likewise.
18247 2008-12-07 Bruno Haible <bruno@clisp.org>
18249 * gnulib-tool (func_create_testdir): When building the tests
18250 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18251 Reported by Simon Josefsson.
18253 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18255 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18257 2008-12-06 Bruno Haible <bruno@clisp.org>
18259 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18260 Suggested by Eric Blake.
18262 2008-12-06 Bruno Haible <bruno@clisp.org>
18264 Fix a c-stack test failure on MacOS X.
18265 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18266 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18267 handler for SIGBUS as well.
18268 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18269 install a signal handler for SIGBUS as well.
18270 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18272 2008-12-06 Bruno Haible <bruno@clisp.org>
18274 Advocacy documentation.
18275 * doc/gnulib-intro.texi (Benefits): New section.
18276 * doc/gnulib.texi: Update.
18278 2008-12-06 Bruno Haible <bruno@clisp.org>
18280 Document the 'manywarnings' module.
18281 * doc/manywarnings.texi: New file.
18282 * doc/gnulib.texi: Include it.
18284 2008-12-05 Eric Blake <ebb9@byu.net>
18286 tests: silence some gcc warnings
18287 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18288 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18291 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18292 Bruno Haible <bruno@clisp.org>
18294 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18296 2008-11-29 Jim Meyering <meyering@redhat.com>
18298 unicodeio.c: mark unused parameters
18299 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18300 (fallback_failure_callback): Likewise.
18303 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18304 (set_stat_type): Return S_IF*-valued "type" directly.
18305 Prompted by James Youngman's spotting a related bug.
18306 Confirmed by further testing through find.
18308 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18309 * lib/fts.c (D_TYPE): Define.
18310 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18311 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18312 (s_ifmt_shift_bits): New function.
18313 (set_stat_type): New function.
18314 (fts_build): When not calling fts_stat, call set_stat_type
18315 to propagate dirent.d_type info to fts_read caller.
18316 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18317 fts_statp->st_mode type information may be valid.
18319 2008-11-28 Simon Josefsson <simon@josefsson.org>
18321 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18322 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18325 2008-11-20 Bruno Haible <bruno@clisp.org>
18327 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18328 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18330 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18331 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18332 * modules/math (Makefile.am): Substitute
18333 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18334 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18336 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18337 Bruno Haible <bruno@clisp.org>
18339 * lib/stdint.in.h: Define all type macros so that their expansion is
18340 a single typedef'ed token. Fixes a compilation failure in Boost which
18341 does "using ::int8_t;".
18343 2008-11-18 Simon Josefsson <simon@josefsson.org>
18345 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18346 gl_MANYWARN_ALL_GCC.
18347 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18348 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18349 * modules/manywarnings: New file.
18350 * MODULES.html.sh: Mention manywarnings module.
18352 2008-11-18 Bruno Haible <bruno@clisp.org>
18354 * doc/gnulib-tool.texi (Unit tests): New section.
18356 2008-11-18 Simon Josefsson <simon@josefsson.org>
18358 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18359 paths like 'lib/po/foo.po'.
18361 2008-11-17 Simon Josefsson <simon@josefsson.org>
18363 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18364 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18366 2008-11-17 Simon Josefsson <simon@josefsson.org>
18368 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18371 2008-11-17 Simon Josefsson <simon@josefsson.org>
18373 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18375 2008-11-17 Bruce Korb <bkorb@gnu.org>
18377 * modules/parse-duration-tests: New file.
18378 * tests/test-parse-duration.sh: New file.
18379 * tests/test-parse-duration.c: New file.
18381 New module 'parse-duration'.
18382 * lib/parse-duration.h: New file.
18383 * lib/parse-duration.c: New file.
18384 * modules/parse-duration: New file.
18386 2008-11-17 Bruno Haible <bruno@clisp.org>
18388 * tests/test-select-out.sh: Comment out the first pipe test.
18389 Reported by Simon Josefsson.
18391 2008-11-17 Bruno Haible <bruno@clisp.org>
18393 * modules/getaddrinfo (Depends-on): Add servent, hostent.
18394 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18397 2008-11-17 Bruno Haible <bruno@clisp.org>
18399 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18400 -lnetwork and -lnet. Needed for Haiku and BeOS.
18402 2008-11-16 Bruno Haible <bruno@clisp.org>
18404 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18406 2008-11-16 Bruno Haible <bruno@clisp.org>
18408 Avoid test failure on Haiku.
18409 * tests/test-fsync.c: Include <errno.h>.
18410 (main): Don't require that fsync (0) fails.
18412 2008-11-15 Bruno Haible <bruno@clisp.org>
18414 New module 'hostent'.
18415 * modules/hostent: New file.
18416 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18418 2008-11-15 Bruno Haible <bruno@clisp.org>
18420 New module 'servent'.
18421 * modules/servent: New file.
18422 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18424 2008-11-15 Bruno Haible <bruno@clisp.org>
18426 Avoid generating same test program with two different rules.
18427 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18428 test-frexp to test-frexp-nolibm.
18429 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18430 test-frexpl to test-frexpl-nolibm.
18432 2008-11-15 Bruno Haible <bruno@clisp.org>
18434 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18437 2008-11-15 Bruno Haible <bruno@clisp.org>
18439 * lib/netdb.in.h: Activate the definitions also when the system's
18440 <netdb.h> has 'struct addrinfo'.
18441 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18442 EAI_OVERFLOW or AI_NUMERICSERV.
18443 * doc/posix-headers/netdb.texi: Document the problem.
18445 2008-11-15 Bruno Haible <bruno@clisp.org>
18447 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18449 Make the 'sched' module work on platforms where <sched.h> exists but
18450 is incomplete (such as Haiku).
18451 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18452 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18453 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18454 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18455 HAVE_STRUCT_SCHED_PARAM.
18456 * modules/sched (Depends-on): Add include_next.
18457 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18458 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18459 * doc/posix-headers/sched.texi: Document the issue.
18461 2008-11-13 Jim Meyering <meyering@redhat.com>
18463 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18464 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18465 test would fail due to the difference in the Report bugs to ...
18466 line. The expected address is empty, "<>", while the actual
18467 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18469 2008-11-12 Bruno Haible <bruno@clisp.org>
18471 lstat: don't compile lstat.c on systems lacking lstat
18472 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18473 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18474 Reported by Daniel P. Berrange via Jim Meyering.
18476 2008-11-12 Jim Meyering <meyering@redhat.com>
18478 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18480 2008-11-12 Simon Josefsson <simon@josefsson.org>
18482 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18485 2008-11-12 Bruno Haible <bruno@clisp.org>
18487 * lib/unicodeio.c: Include unistr.h.
18488 (utf8_wctomb): Remove function.
18489 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18491 2008-11-12 Simon Josefsson <simon@josefsson.org>
18493 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18494 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18496 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18498 2008-11-12 Simon Josefsson <simon@josefsson.org>
18500 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18501 * doc/gnulib.texi: Add section for warnings.
18503 2008-11-11 Bruno Haible <bruno@clisp.org>
18505 * lib/sockets.h: Add a comment.
18507 2008-11-11 Karl Berry <karl@gnu.org>
18509 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18511 2008-11-11 Eric Blake <ebb9@byu.net>
18513 fdl.texi: avoid git symlinks
18514 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18516 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18518 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18520 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18522 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18523 (gl_WARN_ADD): Substitute $2 if literal.
18525 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18527 * m4/warning.m4: Remove.
18529 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18531 * m4/warnings.m4: Almost complete rewrite. :-)
18533 2008-11-10 Simon Josefsson <simon@josefsson.org>
18535 * modules/warnings: New module.
18536 * m4/warnings.m4: New file.
18537 * MODULES.html.sh: Mention warnings module.
18538 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18539 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18541 2008-11-10 Eric Blake <ebb9@byu.net>
18543 fdl.texi: make a symlink to the latest version
18544 * doc/standards.texi: Revert today's earlier change.
18545 * doc/fdl-1.2.texi: Rename from old fdl.texi...
18546 * doc/fdl.texi: ...and replace this with a symlink to the newer
18549 2008-11-10 Bruno Haible <bruno@clisp.org>
18551 * tests/test-select-fd.c (main): Accept the result file name as fourth
18553 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18554 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18556 2008-11-10 Bruno Haible <bruno@clisp.org>
18558 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18559 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18560 as autoconf-substituted macros.
18561 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18562 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18563 gl_NETDB_H_DEFAULTS. Set these variables.
18564 * modules/netdb (Makefile.am): Substitute these variables.
18566 2008-11-10 Eric Blake <ebb9@byu.net>
18568 standards.texi: include correct file for FDL 1.3
18569 * doc/standards.texi (GNU Free Documentation License): Change
18570 include file to pull in FDL 1.3, not 1.2.
18572 fdl.texi: revert accidental change to license
18573 * doc/fdl.texi: This is FDL 1.2, not 1.3.
18575 2008-11-10 Bruno Haible <bruno@clisp.org>
18577 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18578 cross-compiling guesses also when the native compile gives no result.
18580 2008-11-10 Bruno Haible <bruno@clisp.org>
18582 * lib/spawni.c (__spawni): Force variable into the stack.
18584 2008-11-10 Bruno Haible <bruno@clisp.org>
18586 Add support for Haiku.
18587 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18588 glibc and BeOS, but also on Haiku.
18589 * lib/fpurge.c (fpurge): Likewise.
18590 * lib/freadable.c (freadable): Likewise.
18591 * lib/freadahead.c (freadahead): Likewise.
18592 * lib/freading.c (freading): Likewise.
18593 * lib/freadptr.c (freadptr): Likewise.
18594 * lib/freadseek.c (freadptrinc): Likewise.
18595 * lib/fseeko.c (rpl_fseeko): Likewise.
18596 * lib/fseterr.c (fseterr): Likewise.
18597 * lib/fwritable.c (fwritable): Likewise.
18598 * lib/fwriting.c (fwriting): Likewise.
18599 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18601 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18603 * lib/config.charset: Treat Haiku like BeOS.
18605 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18607 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18608 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18610 2008-11-08 Bruno Haible <bruno@clisp.org>
18612 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18615 2008-11-08 Bruno Haible <bruno@clisp.org>
18617 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18619 2008-11-08 Bruno Haible <bruno@clisp.org>
18621 * tests/test-select-fd.c: New file.
18622 * tests/test-select-in.sh: New file.
18623 * tests/test-select-out.sh: New file.
18624 * tests/test-select-stdin.c: New file.
18625 * modules/select-tests (Files): Add the new files.
18626 (Depends-on): Add gettimeofday.
18627 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18628 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18629 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18631 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
18632 Bruno Haible <bruno@clisp.org>
18634 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18636 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
18638 * build-aux/pmccabe2html: Added support for C++ source files.
18640 2008-11-05 Ben Pfaff <blp@gnu.org>
18642 Fix lib/close.c build on Windows.
18643 * modules/close (Files): Add lib/w32sock.h.
18645 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
18647 Accept Bison's NEWS format.
18648 * build-aux/announce-gen (print_news_deltas): Tweak
18651 2008-11-04 Bruno Haible <bruno@clisp.org>
18653 * modules/random_r (Maintainer): Add glibc.
18655 2008-11-04 Simon Josefsson <simon@josefsson.org>
18657 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18658 by karl@freefriends.org (Karl Berry).
18659 * doc/alloca.texi: Likewise.
18660 * doc/c-ctype.texi: Likewise.
18661 * doc/c-strcase.texi: Likewise.
18662 * doc/c-strcaseeq.texi: Likewise.
18663 * doc/c-strcasestr.texi: Likewise.
18664 * doc/c-strstr.texi: Likewise.
18665 * doc/c-strtod.texi: Likewise.
18666 * doc/c-strtold.texi: Likewise.
18667 * doc/ctime.texi: Likewise.
18668 * doc/error.texi: Likewise.
18669 * doc/fdl.texi: Likewise.
18670 * doc/gcd.texi: Likewise.
18671 * doc/getdate.texi: Likewise.
18672 * doc/gnulib-intro.texi: Likewise.
18673 * doc/gnulib-tool.texi: Likewise.
18674 * doc/gnulib.texi: Likewise.
18675 * doc/inet_ntoa.texi: Likewise.
18676 * doc/maintain.texi: Likewise.
18677 * doc/make-stds.texi: Likewise.
18678 * doc/quote.texi: Likewise.
18679 * doc/regexprops-generic.texi: Likewise.
18680 * doc/standards.texi: Likewise.
18681 * doc/verify.texi: Likewise.
18682 * doc/visibility.texi: Likewise.
18683 * doc/gnulib.texi (GNU Free Documentation License): Include
18684 fdl-1.3.texi instead of fdl.texi.
18686 2008-11-04 Simon Josefsson <simon@josefsson.org>
18688 * doc/fdl-1.3.texi: New file, from
18689 <http://www.gnu.org/licenses/fdl-1.3.texi>.
18690 * modules/fdl-1.3: Add.
18691 * MODULES.html.sh: Add fdl-1.3.
18693 2008-11-03 Bruno Haible <bruno@clisp.org>
18695 Make determination of absolute name of header file work with AIX xlc.
18696 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18697 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18699 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18700 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18702 2008-11-03 Simon Josefsson <simon@josefsson.org>
18704 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18705 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
18708 2008-11-02 Bruno Haible <bruno@clisp.org>
18710 Mark 'strpbrk' obsolete.
18711 * modules/strpbrk (Status, Notice): New sections.
18712 * modules/strtok_r (Depends-on): Add strpbrk.
18714 2008-11-02 Bruno Haible <bruno@clisp.org>
18716 Mark 'strdup' obsolete.
18717 * modules/strdup (Status, Notice): New sections.
18718 * modules/findprog (Depends-on): Add strdup.
18719 * modules/getaddrinfo (Depends-on): Likewise.
18720 * modules/localename (Depends-on): Likewise.
18721 * modules/relocatable-lib (Depends-on): Likewise.
18722 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18723 * modules/relocatable-prog (Depends-on): Likewise.
18724 * modules/trim (Depends-on): Likewise.
18725 * modules/unictype/gen-ctype (Depends-on): Likewise.
18726 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18728 2008-11-02 Bruno Haible <bruno@clisp.org>
18730 Mark 'strcspn' obsolete.
18731 * modules/strcspn (Status, Notice): New sections.
18733 2008-11-02 Bruno Haible <bruno@clisp.org>
18735 Mark 'rmdir' obsolete.
18736 * modules/rmdir (Status, Notice): New sections.
18737 * modules/clean-temp (Depends-on): Add rmdir.
18738 * modules/openat (Depends-on): Likewise.
18740 2008-11-02 Bruno Haible <bruno@clisp.org>
18742 Mark 'raise' obsolete.
18743 * modules/raise (Status, Notice): New sections.
18744 (Include): Specify <signal.h>.
18745 * modules/stdio (Depends-on): Add raise.
18746 * modules/write (Depends-on): Likewise.
18748 2008-11-02 Bruno Haible <bruno@clisp.org>
18750 Mark 'memset' obsolete.
18751 * modules/memset (Status, Notice): New sections.
18753 2008-11-02 Bruno Haible <bruno@clisp.org>
18755 Mark 'memmove' obsolete.
18756 * modules/memmove (Status, Notice): New sections.
18757 * modules/argp (Depends-on): Add memmove.
18758 * modules/argz (Depends-on): Likewise.
18759 * modules/canonicalize (Depends-on): Likewise.
18760 * modules/canonicalize-lgpl (Depends-on): Likewise.
18761 * modules/fts (Depends-on): Likewise.
18762 * modules/getcwd (Depends-on): Likewise.
18763 * modules/human (Depends-on): Likewise.
18764 * modules/regex (Depends-on): Likewise.
18765 * modules/striconveh (Depends-on): Likewise.
18766 * modules/trim (Depends-on): Likewise.
18767 * modules/unistr/u8-move (Depends-on): Likewise.
18768 * modules/unistr/u16-move (Depends-on): Likewise.
18769 * modules/unistr/u32-move (Depends-on): Likewise.
18771 2008-11-02 Bruno Haible <bruno@clisp.org>
18773 Mark 'memcpy' obsolete.
18774 * modules/memcpy (Status, Notice): New sections.
18776 2008-11-02 Bruno Haible <bruno@clisp.org>
18778 Mark 'memcmp' obsolete.
18779 * modules/memcmp (Status, Notice): New sections.
18780 * modules/argmatch (Depends-on): Add memchr.
18781 * modules/backupfile (Depends-on): Likewise.
18782 * modules/c-strcasestr (Depends-on): Likewise.
18783 * modules/crypto/des (Depends-on): Likewise.
18784 * modules/csharpcomp (Depends-on): Likewise.
18785 * modules/fnmatch (Depends-on): Likewise.
18786 * modules/git-merge-changelog (Depends-on): Likewise.
18787 * modules/isnand (Depends-on): Likewise.
18788 * modules/isnand-nolibm (Depends-on): Likewise.
18789 * modules/isnanf (Depends-on): Likewise.
18790 * modules/isnanf-nolibm (Depends-on): Likewise.
18791 * modules/isnanl (Depends-on): Likewise.
18792 * modules/isnanl-nolibm (Depends-on): Likewise.
18793 * modules/mbchar (Depends-on): Likewise.
18794 * modules/memcoll (Depends-on): Likewise.
18795 * modules/quotearg (Depends-on): Likewise.
18796 * modules/regex (Depends-on): Likewise.
18797 * modules/relocatable-prog (Depends-on): Likewise.
18798 * modules/same (Depends-on): Likewise.
18799 * modules/signbit (Depends-on): Likewise.
18800 * modules/strcasestr-simple (Depends-on): Likewise.
18801 * modules/unictype/gen-ctype (Depends-on): Likewise.
18802 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18803 * modules/uniname/uniname (Depends-on): Likewise.
18804 * modules/unistr/u8-cmp (Depends-on): Likewise.
18806 2008-11-02 Bruno Haible <bruno@clisp.org>
18808 Mark 'memchr' obsolete.
18809 * modules/memchr (Status, Notice): New sections.
18810 * modules/argp (Depends-on): Add memchr.
18811 * modules/base64 (Depends-on): Likewise.
18812 * modules/c-strcasestr (Depends-on): Likewise.
18813 * modules/chdir-long (Depends-on): Likewise.
18814 * modules/fnmatch (Depends-on): Likewise.
18815 * modules/getsubopt (Depends-on): Likewise.
18816 * modules/git-merge-changelog (Depends-on): Likewise.
18817 * modules/glob (Depends-on): Likewise.
18818 * modules/strcasestr-simple (Depends-on): Likewise.
18819 * modules/strnlen (Depends-on): Likewise.
18821 2008-11-02 Bruno Haible <bruno@clisp.org>
18823 Mark 'atexit' obsolete.
18824 * modules/atexit (Status, Notice): New sections.
18825 * modules/chdir-long (Depends-on): Add atexit.
18826 * modules/wait-process (Depends-on): Likewise.
18828 2008-11-02 Bruno Haible <bruno@clisp.org>
18830 * gnulib-tool: New option --with-obsolete.
18831 (func_usage): Document it.
18832 (func_modules_transitive_closure): Drop obsolete dependencies if
18833 incobsolete is not true.
18834 (func_import): Read and save the incobsolete variable to the cache.
18836 2008-11-02 Bruno Haible <bruno@clisp.org>
18838 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18839 * gnulib-tool: New option --extract-status.
18840 (func_usage): Document it.
18841 (sed_extract_prog): Recognize it.
18842 (func_get_status): New function.
18844 2008-10-30 Simon Josefsson <simon@josefsson.org>
18846 * modules/sockets (License): Change from LGPL to LGPLv2+.
18848 2008-10-28 Simon Josefsson <simon@josefsson.org>
18850 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18852 2008-10-28 Simon Josefsson <simon@josefsson.org>
18854 * MODULES.html.sh (Support for systems lacking POSIX:2001):
18855 Mention times and sys_times.
18856 * modules/sys_times, modules/sys_times-tests: New modules.
18857 * modules/times, modules/times-tests: Likewise
18858 * m4/sys_times_h.m4: New file.
18859 * lib/sys_times.in.h: Likewise
18860 * lib/times.c: Likewise.
18861 * tests/test-sys_times.c: Likewise.
18862 * tests/test-times.c: Likewise.
18863 * doc/posix-headers/sys_times.texi: Update.
18864 * doc/posix-functions/times.texi: Update.
18866 2008-10-28 Jim Meyering <meyering@redhat.com>
18868 * modules/tempname (Depends-on): Add lstat.
18870 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18872 2008-10-28 Simon Josefsson <simon@josefsson.org>
18874 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18875 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18876 using idiom used elsewhere in gnulib.
18878 2008-10-27 Jim Meyering <meyering@redhat.com>
18880 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18882 2008-10-27 Simon Josefsson <simon@josefsson.org>
18884 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18885 TESTS_ENVIRONMENT, for shell scripts that needs to call built
18887 * tests/test-argp-2.sh: Use $EXEEXT when needed.
18889 2008-10-27 Simon Josefsson <simon@josefsson.org>
18891 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18893 2008-10-27 Bruno Haible <bruno@clisp.org>
18895 * tests/test-lstat.c: Include <stdio.h>.
18897 2008-10-27 Simon Josefsson <simon@josefsson.org>
18899 * modules/lstat-tests: New module.
18900 * tests/test-lstat.c: New file.
18902 2008-10-26 Jim Meyering <meyering@redhat.com>
18904 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18906 2008-10-26 Simon Josefsson <simon@josefsson.org>
18907 Bruno Haible <bruno@clisp.org>
18909 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18910 * modules/configmake (Include): Add a note that the include must come
18911 after all system headers.
18912 * lib/javaversion.c: Include configmake.h after all other includes.
18914 2008-10-26 Bruno Haible <bruno@clisp.org>
18916 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18917 HAVE_STRUCT_RANDOM_DATA to 1.
18918 (gl_STDLIB_H): Simplify.
18920 2008-10-26 Simon Josefsson <simon@josefsson.org>
18922 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
18923 substitute HAVE_STRUCT_RANDOM_DATA.
18924 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18926 * modules/stdlib (Makefile.am): Substitute
18927 HAVE_STRUCT_RANDOM_DATA.
18929 2008-10-26 Simon Josefsson <simon@josefsson.org>
18931 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18932 * doc/gnulib-intro.texi (Copyright): Likewise.
18934 2008-10-26 Simon Josefsson <simon@josefsson.org>
18936 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18939 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
18940 Bruno Haible <bruno@clisp.org>
18942 * lib/unistd.in.h: Include <winsock2.h>.
18943 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18944 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18945 Provide dummy declarations.
18946 (gethostname): Override.
18947 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18948 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18949 gl_PREREQ_SYS_H_WINSOCK2.
18950 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18951 * doc/posix-functions/gethostname.texi: More details.
18953 2008-10-25 Bruno Haible <bruno@clisp.org>
18955 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18956 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18957 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18959 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18961 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18962 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18963 gl_UNISTD_H_DEFAULTS.
18965 2008-10-25 Eric Blake <ebb9@byu.net>
18967 signbit: avoid spurious compiler failure
18968 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18969 declarations inside function.
18971 2008-10-24 Simon Josefsson <simon@josefsson.org>
18972 Bruno Haible <bruno@clisp.org>
18974 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18975 * modules/random_r (Depends-on): Add stdint.
18977 2008-10-24 Bruno Haible <bruno@clisp.org>
18979 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18981 * modules/strerror (License): Likewise.
18983 2008-10-24 Jim Meyering <meyering@redhat.com>
18985 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18986 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18988 2008-10-24 Eric Blake <ebb9@byu.net>
18990 getgroups: fix compilation when getgroups is available
18991 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18992 but with <config.h> override of getgroups disabled.
18994 2008-10-24 Simon Josefsson <simon@josefsson.org>
18996 * doc/gnulib.texi (Header files): Add note about C++ problems.
18997 Explained by Bruno Haible <bruno@clisp.org>.
18999 2008-10-23 Bruno Haible <bruno@clisp.org>
19001 Define a dummy SA_NODEFER macro on Interix.
19002 * lib/signal.in.h (SA_NODEFER): Define fallback.
19003 Reported by Aleksey Cheusov <cheusov@tut.by> via
19004 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19006 2008-10-23 Bruno Haible <bruno@clisp.org>
19008 * modules/freadahead (License): Change to LGPLv2+.
19009 Suggested by Simon Josefsson.
19011 2008-10-23 Jim Meyering <meyering@redhat.com>
19013 random_r: new module
19014 * modules/random_r: New file.
19015 * m4/random_r.m4: New file.
19016 * lib/random_r.c: New file, from glibc.
19017 * modules/random_r-tests: New file.
19018 * tests/test-random_r.c: New file.
19019 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19021 (RAND_MAX): Define.
19022 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19023 * modules/stdlib: Substitute them, too.
19024 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19025 * doc/glibc-functions/initstate_r.texi: Mention the new module.
19026 * doc/glibc-functions/random_r.texi: Likewise.
19027 * doc/glibc-functions/setstate_r.texi: Likewise.
19028 * doc/glibc-functions/srandom_r.texi: Likewise.
19029 * config/srclist.txt: Mention it.
19031 2008-10-23 David Lutterkort <lutter@redhat.com>
19033 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19036 2008-10-23 Jim Meyering <meyering@redhat.com>
19038 selinux-h: mark parameters of stub functions as intentionally unused
19039 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19040 * lib/se-context.in.h: Likewise.
19042 2008-10-22 Simon Josefsson <simon@josefsson.org>
19044 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19046 2008-10-22 Simon Josefsson <simon@josefsson.org>
19048 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19050 2008-10-22 Eric Blake <ebb9@byu.net>
19052 glthread/thread: avoid compiler warning
19053 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19054 Add unreachable abort to silence compiler.
19056 2008-10-22 Eric Blake <ebb9@byu.net>
19058 netdb: also supply struct addrinfo for cygwin 1.5.x
19059 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19061 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19063 * doc/posix-headers/netdb.texi (netdb.h): Document this.
19065 2008-10-22 Bruno Haible <bruno@clisp.org>
19067 * users.txt: Update entry about pspp.
19069 2008-10-21 Bruno Haible <bruno@clisp.org>
19072 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19073 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19076 * lib/ioctl.c (ioctl): Don't undefine.
19077 * lib/socket.c (socket): Don't undefine.
19079 Remove unused module indicator macros.
19080 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19081 GNULIB_$1 as a C macro.
19083 * doc/posix-functions/close.texi: Undo last change.
19084 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19087 2008-10-21 Bruno Haible <bruno@clisp.org>
19089 Add gethostname() declaration to <unistd.h>.
19090 * lib/unistd.in.h (gethostname): New declaration.
19091 * lib/gethostname.c: Include <unistd.h>.
19092 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19093 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19094 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19095 and HAVE_GETHOSTNAME.
19096 * modules/gethostname (Depends-on): Add unistd.
19097 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19098 (Include): Specify <unistd.h>.
19099 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19101 * tests/test-gethostname.c: Include <unistd.h> first.
19103 2008-10-21 Bruno Haible <bruno@clisp.org>
19105 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19106 * modules/select-tests (Depends-on): Likewise.
19107 Reported by Simon Josefsson.
19109 2008-10-21 Simon Josefsson <simon@josefsson.org>
19111 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19112 * lib/accept.c: New file, based on winsock.c.
19113 * lib/bind.c: New file, based on winsock.c.
19114 * lib/connect.c: New file, based on winsock.c.
19115 * lib/getpeername.c: New file, based on winsock.c.
19116 * lib/getsockname.c: New file, based on winsock.c.
19117 * lib/getsockopt.c: New file, based on winsock.c.
19118 * lib/ioctl.c: New file, based on winsock.c.
19119 * lib/listen.c: New file, based on winsock.c.
19120 * lib/recv.c: New file, based on winsock.c.
19121 * lib/recvfrom.c: New file, based on winsock.c.
19122 * lib/send.c: New file, based on winsock.c.
19123 * lib/sendto.c: New file, based on winsock.c.
19124 * lib/setsockopt.c: New file, based on winsock.c.
19125 * lib/shutdown.c: New file, based on winsock.c.
19126 * lib/socket.c: New file, based on winsock.c.
19127 * lib/w32sock.h: New file, based on winsock.c.
19128 * lib/winsock.c: Remove file.
19129 * modules/accept: Likewise.
19130 * modules/bind: Likewise.
19131 * modules/connect: Likewise.
19132 * modules/getpeername: Likewise.
19133 * modules/getsockname: Likewise.
19134 * modules/getsockopt: Likewise.
19135 * modules/ioctl: Likewise.
19136 * modules/listen: Likewise.
19137 * modules/recv: Likewise.
19138 * modules/recvfrom: Likewise.
19139 * modules/send: Likewise.
19140 * modules/sendto: Likewise.
19141 * modules/setsockopt: Likewise.
19142 * modules/shutdown: Likewise.
19143 * modules/socket: Use socket.c instead of winsock.c.
19144 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19145 * doc/posix-functions/accept.texi: Doc fix.
19146 * doc/posix-functions/bind.texi: Doc fix.
19147 * doc/posix-functions/close.texi: Doc fix.
19148 * doc/posix-functions/connect.texi: Doc fix.
19149 * doc/posix-functions/getpeername.texi: Doc fix.
19150 * doc/posix-functions/getsockname.texi: Doc fix.
19151 * doc/posix-functions/getsockopt.texi: Doc fix.
19152 * doc/posix-functions/ioctl.texi: Doc fix.
19153 * doc/posix-functions/listen.texi: Doc fix.
19154 * doc/posix-functions/recv.texi: Doc fix.
19155 * doc/posix-functions/recvfrom.texi: Doc fix.
19156 * doc/posix-functions/send.texi: Doc fix.
19157 * doc/posix-functions/sendto.texi: Doc fix.
19158 * doc/posix-functions/setsockopt.texi: Doc fix.
19159 * doc/posix-functions/shutdown.texi: Doc fix.
19160 * doc/posix-functions/socket.texi: Doc fix.
19162 2008-10-20 Bruno Haible <bruno@clisp.org>
19164 Take into account the role of SIGABRT_COMPAT on Windows 2008.
19165 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19166 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19167 as an alias for SIGABRT.
19168 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19169 (sigaction): Map it to SIGABRT.
19170 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19172 2008-10-20 Bruno Haible <bruno@clisp.org>
19174 * lib/fts.c: Don't include lstat.h.
19175 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19177 Move the lstat() declaration to <sys/stat.h>.
19178 * lib/lstat.h: Remove file.
19179 * lib/sys_stat.in.h: Add special invocation convention.
19180 (lstat): New declaration.
19181 * lib/lstat.c (orig_lstat): New function.
19182 (rpl_lstat): Use orig_lstat instead of lstat.
19183 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19184 AC_C_INLINE. Set REPLACE_LSTAT.
19185 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19187 * modules/lstat (Files): Remove lib/lstat.h.
19188 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19189 (Include): Specify <sys/stat.h> instead of lstat.h.
19190 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19192 * NEWS: Mention the change.
19194 2008-10-20 Bruno Haible <bruno@clisp.org>
19196 * modules/posix_spawn-tests: New file.
19197 * tests/test-posix_spawn3.c: New file.
19199 2008-10-20 Bruno Haible <bruno@clisp.org>
19201 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19202 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19203 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19204 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19205 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19207 2008-10-20 Bruno Haible <bruno@clisp.org>
19209 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19210 of posix_spawn on AIX 5.3.
19212 2008-10-20 Bruno Haible <bruno@clisp.org>
19214 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19216 2008-10-20 Bruno Haible <bruno@clisp.org>
19218 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19219 of AC_LANG_PROGRAM.
19221 2008-10-20 Simon Josefsson <simon@josefsson.org>
19223 * lib/netdb.in.h: Don't define GNU specific constants until they
19224 are supported or needed. Reported by Bruno Haible
19227 2008-10-20 Simon Josefsson <simon@josefsson.org>
19229 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19231 2008-10-20 Simon Josefsson <simon@josefsson.org>
19233 * lib/getaddrinfo.h: Remove file.
19234 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19235 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
19236 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19237 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19238 * modules/netdb: Substitute GNULIB_GETADDRINFO.
19239 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19240 * tests/test-getaddrinfo.c: Likewise.
19241 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
19242 * NEWS: Mention change.
19244 2008-10-19 Bruno Haible <bruno@clisp.org>
19246 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19248 2008-10-19 Bruno Haible <bruno@clisp.org>
19250 * lib/wait-process.c: Include simply <sys/wait.h>.
19251 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19252 WIFSTOPPED): Remove fallback definitions.
19253 * modules/wait-process (Depends-on): Add sys_wait.
19255 New module 'sys_wait'.
19256 * modules/sys_wait: New file.
19257 * lib/sys_wait.in.h: New file, partially copied from
19258 lib/wait-process.c.
19259 * m4/sys_wait_h.m4: New file.
19260 * doc/posix-headers/sys_wait.texi: Mention the new module.
19262 2008-10-19 Bruno Haible <bruno@clisp.org>
19264 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19266 2008-10-19 Bruno Haible <bruno@clisp.org>
19268 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19269 * lib/wait-process.c (WAIT_T): Remove type.
19270 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19271 (wait_subprocess): Update.
19273 2008-10-19 Bruno Haible <bruno@clisp.org>
19275 New module 'atoll'.
19276 * modules/atoll: New file.
19277 * lib/stdlib.in.h (atoll): New declaration.
19278 * lib/atoll.c: New file, from glibc with modifications.
19279 * m4/atoll.m4: New file.
19280 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19282 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19283 * doc/posix-functions/atoll.texi: Mention the new module.
19285 2008-10-19 Bruno Haible <bruno@clisp.org>
19287 Add strtoull() declaration to <stdlib.h>.
19288 * lib/stdlib.in.h (strtoull): New declaration.
19289 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19291 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19293 * modules/strtoull (Depends-on): Add stdlib.
19294 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19295 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19298 2008-10-19 Bruno Haible <bruno@clisp.org>
19300 Add strtoll() declaration to <stdlib.h>.
19301 * lib/stdlib.in.h (strtoll): New declaration.
19302 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19304 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19306 * modules/strtoll (Depends-on): Add stdlib.
19307 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19308 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19310 2008-10-19 Bruno Haible <bruno@clisp.org>
19312 * modules/bcopy (Depends-on): Add strings.
19313 (Include): Specify <strings.h>.
19315 2008-10-19 Bruno Haible <bruno@clisp.org>
19317 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19319 2008-10-19 Bruno Haible <bruno@clisp.org>
19321 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19322 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19325 2008-10-19 Bruno Haible <bruno@clisp.org>
19327 * lib/atanl.c: Don't include isnanl.h.
19328 * lib/cosl.c: Likewise.
19329 * lib/ldexpl.c: Likewise.
19330 * lib/logl.c: Likewise.
19331 * lib/sinl.c: Likewise.
19332 * lib/sqrtl.c: Likewise.
19333 * lib/tanl.c: Likewise.
19335 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19336 * lib/isnanf.h: Remove file.
19337 * lib/isnand.h: Remove file.
19338 * lib/isnanl.h: Remove file.
19339 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19340 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19342 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19343 HAVE_ISNANF, don't define it as a C macro.
19344 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19345 HAVE_ISNAND, don't define it as a C macro.
19346 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19347 HAVE_ISNANL, don't define it as a C macro.
19348 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19350 * modules/isnanf (Files): Remove lib/isnanf.h.
19351 (Depends-on): Add math.
19352 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19353 (Include): Specify <math.h> instead of isnanf.h.
19354 * modules/isnand (Files): Remove lib/isnand.h.
19355 (Depends-on): Add math.
19356 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19357 (Include): Specify <math.h> instead of isnand.h.
19358 * modules/isnanl (Files): Remove lib/isnanl.h.
19359 (Depends-on): Add math.
19360 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19361 (Include): Specify <math.h> instead of isnanl.h.
19362 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19364 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19365 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19366 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19367 * NEWS: Mention the change.
19369 2008-10-18 Bruno Haible <bruno@clisp.org>
19371 Add getusershell(), setusershell(), endusershell() declarations to
19373 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19375 * lib/getusershell.c: Include unistd.h.
19376 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19377 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19379 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19380 and HAVE_GETUSERSHELL.
19381 * modules/getusershell (Depends-on): Add unistd, extensions.
19382 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19383 (Include): Specify <unistd.h>.
19384 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19387 2008-10-18 Bruno Haible <bruno@clisp.org>
19389 Add a getloadavg() declaration to <stdlib.h>.
19390 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19391 getloadavg declaration.
19392 (getloadavg): New declaration.
19393 * lib/getloadavg.c: Include <stdlib.h> first.
19394 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19395 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19396 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19397 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19398 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19399 * modules/getloadavg (Depends-on): Add stdlib, extensions.
19400 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19401 (Include): Specify <stdlib.h>.
19402 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19403 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19405 2008-10-18 Bruno Haible <bruno@clisp.org>
19407 * lib/dirchownmod.c: Don't include lchmod.h.
19409 Move the lchmod() declaration to <sys/stat.h>.
19410 * lib/lchmod.h: Remove file.
19411 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19412 (lchmod): New declaration, moved here from lib/lchown.h.
19413 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19414 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19415 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19417 * modules/lchmod (Files): Remove lib/lchmod.h.
19418 (Depends-on): Add sys_stat, extensions.
19419 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19420 (Include): Specify <sys/stat.h> instead of lchmod.h.
19421 * modules/sys_stat (Depends-on): Add link-warning.
19422 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19423 definition of GL_LINK_WARNING.
19424 * NEWS: Mention the change.
19426 2008-10-18 Bruno Haible <bruno@clisp.org>
19428 * lib/fchdir.c: Don't include dirfd.h.
19429 * lib/fts.c: Likewise.
19430 * lib/getcwd.c: Likewise.
19431 * lib/glob.c: Likewise.
19433 Move the dirfd() declaration to <dirent.h>.
19434 * lib/dirfd.h: Remove file.
19435 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19436 (dirfd): New declaration.
19437 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19438 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19439 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19441 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19443 * modules/dirfd (Files): Remove lib/dirfd.h.
19444 (Depends-on): Add dirent, extensions.
19445 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19446 (Include): Specify <dirent.h> instead of dirfd.h.
19447 * modules/dirent (Depends-on): Add link-warning.
19448 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19449 definition of GL_LINK_WARNING.
19450 * NEWS: Mention the change.
19452 2008-10-18 Bruno Haible <bruno@clisp.org>
19454 Move the euidaccess() declaration to <unistd.h>.
19455 * lib/euidaccess.h: Remove file.
19456 * lib/unistd.in.h (euidaccess): New declaration.
19457 * lib/euidaccess.c: Don't include euidaccess.h.
19458 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19459 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19460 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19461 and HAVE_EUIDACCESS.
19462 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19463 (Depends-on): Add unistd.
19464 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19465 (Include): Specify <unistd.h> instead of euidaccess.h.
19466 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19468 * NEWS: Mention the change.
19470 2008-10-18 Bruno Haible <bruno@clisp.org>
19472 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19474 Move the getdomainname() declaration to <unistd.h>.
19475 * lib/getdomainname.h: Remove file.
19476 * lib/unistd.in.h (getdomainname): New declaration.
19477 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19478 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19479 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19480 HAVE_GETDOMAINNAME.
19481 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19482 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19483 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19484 (Depends-on): Add unistd, extensions.
19485 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19486 (Includes): Specify <unistd.h> instead of getdomainname.h.
19487 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19488 HAVE_GETDOMAINNAME.
19489 * NEWS: Mention the change.
19491 2008-10-18 Bruno Haible <bruno@clisp.org>
19493 * modules/dirent: New file.
19494 * m4/dirent_h.m4: New file.
19495 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19496 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19497 * modules/fchdir (Files): Remove lib/dirent.in.h.
19498 (Depends-on): Add dirent.
19499 (Makefile.am): Move rules to modules/dirent.
19500 * doc/posix-headers/dirent.texi: Mention the new module.
19502 2008-10-18 Bruno Haible <bruno@clisp.org>
19504 Avoid -Wunused-parameter warnings in public gnulib header files.
19505 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19507 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19509 2008-10-18 Bruno Haible <bruno@clisp.org>
19511 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19512 * doc/glibc-functions/error.texi: Mention the module 'error'.
19513 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19514 * doc/glibc-functions/getdomainname.texi: Mention the module
19516 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19517 * doc/glibc-functions/getpagesize.texi: Mention the module
19519 * doc/glibc-functions/getusershell.texi: Mention the module
19521 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19522 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19523 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19524 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19525 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19526 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19527 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19528 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19529 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19530 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19531 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19532 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19533 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19534 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19536 2008-10-17 Bruno Haible <bruno@clisp.org>
19538 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19539 HP-UX and IRIX, use -0.0L.
19540 * tests/test-ceill.c (minus_zero): Likewise.
19541 * tests/test-floorl.c (minus_zero): Likewise.
19542 * tests/test-frexpl.c (minus_zero): Likewise.
19543 * tests/test-isnan.c (minus_zerol): Likewise.
19544 * tests/test-isnanl.h (minus_zero): Likewise.
19545 * tests/test-ldexpl.c (minus_zero): Likewise.
19546 * tests/test-roundl.c (minus_zero): Likewise.
19547 * tests/test-signbit.c (minus_zerol): Likewise.
19548 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19549 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19550 * tests/test-truncl.c (minus_zero): Likewise.
19551 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19552 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19553 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19554 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19556 2008-10-17 Bruno Haible <bruno@clisp.org>
19558 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19559 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19560 that it gets activated only for gcc >= 3.0.
19561 * lib/dirent.in.h: Likewise.
19562 * lib/errno.in.h: Likewise.
19563 * lib/fcntl.in.h: Likewise.
19564 * lib/float.in.h: Likewise.
19565 * lib/iconv.in.h: Likewise.
19566 * lib/inttypes.in.h: Likewise.
19567 * lib/locale.in.h: Likewise.
19568 * lib/math.in.h: Likewise.
19569 * lib/netdb.in.h: Likewise.
19570 * lib/netinet_in.in.h: Likewise.
19571 * lib/search.in.h: Likewise.
19572 * lib/signal.in.h: Likewise.
19573 * lib/spawn.in.h: Likewise.
19574 * lib/stdarg.in.h: Likewise.
19575 * lib/stdint.in.h: Likewise.
19576 * lib/stdio.in.h: Likewise.
19577 * lib/stdlib.in.h: Likewise.
19578 * lib/string.in.h: Likewise.
19579 * lib/strings.in.h: Likewise.
19580 * lib/sys_file.in.h: Likewise.
19581 * lib/sys_ioctl.in.h: Likewise.
19582 * lib/sys_select.in.h: Likewise.
19583 * lib/sys_socket.in.h: Likewise.
19584 * lib/sys_stat.in.h: Likewise.
19585 * lib/sys_time.in.h: Likewise.
19586 * lib/sysexits.in.h: Likewise.
19587 * lib/time.in.h: Likewise.
19588 * lib/unistd.in.h: Likewise.
19589 * lib/wchar.in.h: Likewise.
19590 * lib/wctype.in.h: Likewise.
19591 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19593 2008-10-17 Jim Meyering <meyering@redhat.com>
19595 ignore-value: don't depend on inline module
19596 * modules/ignore-value (Depends-on): Remove 'inline'.
19597 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19598 Suggestion from Bruno Haible.
19600 2008-10-17 Bruno Haible <bruno@clisp.org>
19602 New implementation of condition variables for Win32.
19603 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19604 (gl_linked_waitqueue_t): New type.
19605 (gl_cond_t): Use it.
19606 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19607 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19608 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19609 (glthread_cond_init_func, glthread_cond_wait_func,
19610 glthread_cond_timedwait_func, glthread_cond_signal_func,
19611 glthread_cond_broadcast_func, glthread_cond_destroy_func):
19612 Reimplemented on the basis of gl_linked_waitqueue_t.
19613 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19615 (gl_rwlock_t): Update.
19616 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19618 2008-10-17 Simon Josefsson <simon@josefsson.org>
19620 * modules/recvfrom (Depends-on): Add dependency on getpeername.
19621 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19623 2008-10-17 Jim Meyering <meyering@redhat.com>
19625 ignore-value: new module
19626 * modules/ignore-value: New file.
19627 * lib/ignore-value.h: New file.
19628 * MODULES.html.sh (Compiler warning management): New section,
19629 just for this module. More to come.
19631 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
19633 open-safer.c: avoid 'signed and unsigned in conditional...' warning
19634 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19635 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
19637 2008-10-16 Jim Meyering <meyering@redhat.com>
19639 openat-die.c: avoid 'no previous prototype' warning
19640 * lib/openat-die.c: Include "openat.h".
19641 Reported by Reuben Thomas <rrt@sc3d.org>.
19643 2008-10-16 Simon Josefsson <simon@josefsson.org>
19645 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19646 * lib/netdb.in.h: Fix typo.
19647 Reported by Bruno Haible <bruno@clisp.org>
19649 * lib/netdb.in.h: Include sys/socket.h for platforms without
19650 netdb.h, to get structures like hostent on MinGW.
19651 * modules/netdb (Depends-on): Add sys_socket.
19653 2008-10-15 Simon Josefsson <simon@josefsson.org>
19655 * modules/netdb, modules/netdb-tests: New file.
19656 * m4/netdb_h.m4: New file.
19657 * lib/netdb.in.h: Add, currently just an empty file pending
19659 * tests/test-netdb.c: New file.
19660 * doc/posix-headers/netdb.texi: Mention that we replace it if
19662 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19665 2008-10-15 Simon Josefsson <simon@josefsson.org>
19667 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19670 2008-10-13 Bruno Haible <bruno@clisp.org>
19672 * lib/glthread/cond.c (glthread_cond_wait_func,
19673 glthread_cond_timedwait_func): Add a comment.
19675 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
19677 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19678 * tests/test-select.c: Likewise,
19680 2008-10-13 Bruno Haible <bruno@clisp.org>
19682 * lib/glthread/cond.c (glthread_cond_wait_func,
19683 glthread_cond_timedwait_func): Fix variable name.
19684 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19686 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
19688 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19689 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19690 struct sockaddr.sa_len.
19691 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19693 2008-10-13 Simon Josefsson <simon@josefsson.org>
19695 * build-aux/pmccabe2html: Add css and css_url parameters.
19697 2008-10-12 Bruno Haible <bruno@clisp.org>
19699 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19701 Reported by Rainer Tammer <tammer@tammer.net>.
19703 2008-10-12 Bruno Haible <bruno@clisp.org>
19705 Use msvcrt aware primitives for creation/termination of Win32 threads.
19706 * lib/glthread/thread.c: Include <process.h>.
19707 (glthread_create_func): Use _beginthreadex instead of CreateThread.
19708 (wrapper_func): Update signature.
19709 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19711 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19712 Bruno Haible <bruno@clisp.org>
19714 Provide a Win32 implementation of the 'cond' module.
19715 * lib/glthread/cond.h [USE_WIN32]: New implementation.
19716 * lib/glthread/cond.c (glthread_cond_init_func,
19717 glthread_cond_wait_func, glthread_cond_timedwait_func,
19718 glthread_cond_signal_func, glthread_cond_broadcast_func,
19719 glthread_cond_destroy_func) [USE_WIN32]: New functions.
19720 * modules/cond (Dependencies): Add gettimeofday.
19722 2008-10-11 Bruno Haible <bruno@clisp.org>
19724 Make sleep work on older versions of mingw.
19725 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19726 only whether it exists.
19727 * doc/posix-functions/sleep.texi: Mention the problem with older
19730 2008-10-11 Bruno Haible <bruno@clisp.org>
19732 New module 'shutdown'.
19733 * modules/shutdown: New file.
19734 * lib/sys_socket.in.h (shutdown): New declaration.
19735 * lib/winsock.c (shutdown): New function.
19736 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19738 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19739 * doc/posix-functions/shutdown.texi: Document the new module.
19741 2008-10-11 Jim Meyering <meyering@redhat.com>
19743 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19745 2008-10-11 Bruno Haible <bruno@clisp.org>
19747 New module 'fclose'.
19748 * modules/fclose: New file.
19749 * lib/stdio.in.h (fclose): New declaration.
19750 * lib/fclose.c: New file.
19751 * m4/fclose.m4: New file.
19752 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19754 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19755 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19757 * modules/close (Depends-on): fclose.
19758 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19760 2008-10-11 Bruno Haible <bruno@clisp.org>
19762 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19763 set errno and don't call _close.
19765 2008-10-10 Bruno Haible <bruno@clisp.org>
19767 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19768 ACL, not afterwards. Fixes test failure on Cygwin.
19770 2008-10-09 Ben Pfaff <blp@gnu.org>
19772 * build-aux/announce-gen: Fix gnulib version related part of usage
19773 message. Die with a useful error message if no tarballs are
19776 2008-10-10 Jim Meyering <meyering@redhat.com>
19778 bootstrap: use git's --depth=N option only if it's supported
19779 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19780 recognize the --depth option. Reported by Pádraig Brady.
19782 2008-10-09 Bruno Haible <bruno@clisp.org>
19784 New module 'ioctl'.
19785 * modules/ioctl: New file.
19786 * lib/sys_socket.in.h (ioctl): Remove declaration.
19787 * lib/winsock.c: Include <sys/ioctl.h>.
19788 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19789 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19790 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19791 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19792 * doc/posix-functions/ioctl.texi: Mention the new module.
19794 2008-10-09 Bruno Haible <bruno@clisp.org>
19796 New module 'sys_ioctl'.
19797 * lib/sys_ioctl.in.h: New file.
19798 * m4/sys_ioctl_h.m4: New file.
19799 * modules/sys_ioctl: New file.
19800 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19802 2008-10-09 Bruno Haible <bruno@clisp.org>
19804 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19805 * lib/winsock.c: Include <stdarg.h>.
19806 (rpl_ioctl): Change to second argument 'int' and then varargs.
19808 2008-10-09 Bruno Haible <bruno@clisp.org>
19810 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19811 when the sys_socket module is present and the system has <winsock2.h>.
19813 2008-10-09 Bruno Haible <bruno@clisp.org>
19815 * doc/posix-functions/close.texi: Mention module 'close' instead of
19816 module 'sys_socket'.
19818 2008-10-09 Bruno Haible <bruno@clisp.org>
19820 * doc/glibc-headers/sys_ioctl.texi: New file.
19821 * doc/gnulib.texi: Include it.
19823 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19824 Bruno Haible <bruno@clisp.org>
19826 Combine the two replacements of 'close'.
19827 * lib/sys_socket.in.h (close): Define to a reminder to include
19829 (_gl_close_fd_maybe_socket): New declaration.
19830 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19831 * lib/winsock.c (close): Remove undefinition.
19832 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19833 needed for the gnulib module 'close'.
19834 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19835 define to an error symbol or to a warning, if suitable.
19836 * lib/close.c: Include <sys/socket.h>.
19837 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19838 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19839 UNISTD_H_HAVE_WINSOCK2_H.
19840 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19841 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19842 UNISTD_H_HAVE_WINSOCK2_H.
19843 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19844 (configure.ac): Set a module indicator.
19845 (Makefile.am): Substitute GNULIB_CLOSE.
19846 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19847 * modules/poll-tests (Depends-on): Add close.
19848 * modules/select-tests (Depends-on): Likewise.
19850 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19851 Bruno Haible <bruno@clisp.org>
19853 New module 'close'.
19854 * modules/close: New file.
19855 * lib/unistd.in.h (close): Move declaration out of the
19856 FCHDIR_REPLACEMENT scope.
19857 (_gl_unregister_fd): New declaration.
19858 * lib/close.c: New file.
19859 * lib/fchdir.c (rpl_close): Remove function.
19860 * m4/close.m4: New file.
19861 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19863 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19865 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19867 * modules/fchdir (Depends-on): Add close.
19869 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19870 Bruno Haible <bruno@clisp.org>
19872 * lib/fcntl.in.h (open): Simplify conditionals.
19873 (_gl_register_fd): New declaration.
19874 * lib/fchdir.c (rpl_open): Remove function.
19875 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19877 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19878 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19881 2008-10-09 Jim Meyering <meyering@redhat.com>
19883 GNUmakefile: use the more name-space-friendly "_version"
19884 * top/GNUmakefile (_dummy): Update.
19885 (_version): Rename from "version".
19887 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19888 Bruno Haible <bruno@clisp.org>
19890 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19892 (_gl_register_fd): New function, extracted from rpl_open.
19893 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19894 (rpl_open, rpl_opendir): Use _gl_register_fd.
19896 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19898 Fix organization of 'open' replacement.
19899 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19900 (gl_FUNC_OPEN): Use it.
19901 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19903 2008-10-08 Bruno Haible <bruno@clisp.org>
19905 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19907 2008-10-08 Simon Josefsson <simon@josefsson.org>
19909 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
19910 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19913 2008-10-08 Eric Blake <ebb9@byu.net>
19915 GNUmakefile: add 'make version' target
19916 * top/GNUmakefile (_curr-ver): Split version update rules...
19917 (version): ...into a target.
19919 2008-10-07 Bruno Haible <bruno@clisp.org>
19921 Use a more portable replacement expression for -0.0L.
19922 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19923 instead of -0.0L. Fix m4 quotation.
19925 * tests/test-signbit.c: Include <float.h>.
19926 (minus_zero): New variable.
19927 (test_signbitl): Use minus_zero instead of -zero.
19928 * modules/signbit-tests (Depends-on): Add float.
19930 * tests/test-ceill.c: Include <float.h>.
19931 (zero): Remove variable.
19932 (minus_zero): New variable.
19933 (main): Use minus_zero instead of -zero.
19934 * modules/ceill-tests (Depends-on): Add float.
19936 * tests/test-floorl.c: Include <float.h>.
19937 (zero): Remove variable.
19938 (minus_zero): New variable.
19939 (main): Use minus_zero instead of -zero.
19940 * modules/floorl-tests (Depends-on): Add float.
19942 * tests/test-roundl.c: Include <float.h>.
19943 (zero): Remove variable.
19944 (minus_zero): New variable.
19945 (main): Use minus_zero instead of -zero.
19946 * modules/roundl-tests (Depends-on): Add float.
19948 * tests/test-truncl.c: Include <float.h>.
19949 (zero): Remove variable.
19950 (minus_zero): New variable.
19951 (main): Use minus_zero instead of -zero.
19952 * modules/truncl-tests (Depends-on): Add float.
19954 * tests/test-frexpl.c (zero): Remove variable.
19955 (minus_zero): New variable.
19956 (main): Use minus_zero instead of -zero.
19957 * modules/frexpl-tests (Depends-on): Add float.
19959 * tests/test-isnan.c (zerol): Remove variable.
19960 (minus_zerol): New variable.
19961 (test_long_double): Use minus_zerol instead of -zerol.
19962 * modules/isnan-tests (Depends-on): Add float.
19964 * tests/test-isnanl.h (zero): Remove variable.
19965 (minus_zero): New variable.
19966 (main): Use minus_zero instead of -zero.
19967 * modules/isnanl-nolibm-tests (Depends-on): Add float.
19968 * modules/isnanl-tests (Depends-on): Add float.
19970 * tests/test-ldexpl.c (zero): Remove variable.
19971 (minus_zero): New variable.
19972 (main): Use minus_zero instead of -zero.
19973 * modules/ldexpl-tests (Depends-on): Add float.
19975 * tests/test-snprintf-posix.h (zerol): Remove variable.
19976 (minus_zerol): New variable.
19977 (test_function): Use minus_zerol instead of -zerol.
19978 * modules/snprintf-posix-tests (Depends-on): Add float.
19979 * modules/vsnprintf-posix-tests (Depends-on): Add float.
19981 * tests/test-sprintf-posix.h (zerol): Remove variable.
19982 (minus_zerol): New variable.
19983 (test_function): Use minus_zerol instead of -zerol.
19984 * modules/sprintf-posix-tests (Depends-on): Add float.
19985 * modules/vsprintf-posix-tests (Depends-on): Add float.
19987 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19988 (minus_zerol): New variable.
19989 (test_function): Use minus_zerol instead of -zerol.
19990 * modules/vasnprintf-posix-tests (Depends-on): Add float.
19992 * tests/test-vasprintf-posix.c (zerol): Remove variable.
19993 (minus_zerol): New variable.
19994 (test_function): Use minus_zerol instead of -zerol.
19995 * modules/vasprintf-posix-tests (Depends-on): Add float.
19997 2008-10-07 Simon Josefsson <simon@josefsson.org>
19999 * MODULES.html.sh (Support for building documentation): Mention
20000 pmccabe2html. Sort entries.
20002 Add pmccabe2html module, from gnupdf.
20003 * build-aux/pmccabe.css: New file.
20004 * build-aux/pmccabe2html: New file.
20005 * m4/pmccabe2html.m4: New file.
20006 * modules/pmccabe2html: New file.
20008 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
20011 * MODULES.html.sh: Add to list of modules.
20012 * lib/flock.c: flock implementation for Windows and Unix systems
20014 * doc/glibc-functions/flock.texi: Update documentation.
20015 * lib/sys_file.in.h: <sys/file.h> header file.
20016 * m4/flock.m4: M4 macros.
20017 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20018 * modules/flock: flock module.
20019 * modules/flock-tests: flock tests module.
20020 * modules/sys_file: sys/file.h module.
20021 * tests/test-flock.c: test suite for flock.
20023 2008-10-06 Jim Meyering <meyering@redhat.com>
20025 bootstrap: check for LT_INIT more portably still ;-)
20026 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20027 Spotted by Bruno Haible.
20029 2008-10-06 Eric Blake <ebb9@byu.net>
20031 test-signbit: avoid tripping Irix cc bug on -0.0L
20032 * tests/test-signbit.c (minus_zerol): Delete, and replace with
20033 '-zerol'. This may break on HP-UX/hppa, but at least makes the
20034 entire testsuite consistent and avoids an Irix 6.2 bug.
20036 2008-10-05 Bruno Haible <bruno@clisp.org>
20037 Jim Meyering <jim@meyering.net>
20039 Add an option for ignoring EPIPE during close_stdout.
20040 * lib/closeout.h: Include <stdbool.h>.
20041 (close_stdout_set_ignore_EPIPE): New declaration.
20042 * lib/closeout.c: Include <stdbool.h>.
20043 (ignore_EPIPE): New variable.
20044 (close_stdout_set_ignore_EPIPE): New function.
20045 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20046 * lib/close-stream.c (close_stream): Mention the possible EPIPE
20048 * modules/closeout (Depends-on): Add stdbool.
20050 2008-10-05 Bruno Haible <bruno@clisp.org>
20052 * modules/accept: New file.
20053 * modules/bind: New file.
20054 * modules/connect: New file.
20055 * modules/getpeername: New file.
20056 * modules/getsockname: New file.
20057 * modules/getsockopt: New file.
20058 * modules/listen: New file.
20059 * modules/recv: New file.
20060 * modules/recvfrom: New file.
20061 * modules/send: New file.
20062 * modules/sendto: New file.
20063 * modules/setsockopt: New file.
20064 * modules/socket: New file.
20065 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20066 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20067 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20068 the particular module is requested. Add a link warning when the
20069 particular module is not requested.
20070 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20071 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20072 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20073 the particular module is requested.
20074 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20075 gl_SYS_SOCKET_H_DEFAULTS): New macros.
20076 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20077 * modules/sys_socket (Depends-on): Add link-warning.
20078 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20079 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20080 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20081 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20083 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20084 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20085 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20086 * doc/posix-functions/getpeername.texi: Mention the new module
20088 * doc/posix-functions/getsockname.texi: Mention the new module
20090 * doc/posix-functions/getsockopt.texi: Mention the new module
20092 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20093 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20094 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20095 * doc/posix-functions/send.texi: Mention the new module 'send'.
20096 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20097 * doc/posix-functions/setsockopt.texi: Mention the new module
20099 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20100 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20101 listen, connect, accept.
20102 * modules/select-tests (Depends-on): Likewise.
20104 2008-10-05 Bruno Haible <bruno@clisp.org>
20106 * lib/winsock.c (strerror): Remove unused #undef.
20107 (rpl_close): Remove unused local variable.
20109 * modules/sys_socket (Depends-on); Add errno.
20111 2008-10-05 Bruno Haible <bruno@clisp.org>
20113 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20114 (select): Add a link warning when the 'select' module is not used.
20115 * modules/sys_select (Depends-on): Add link-warning.
20116 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20117 Suggested by Paolo Bonzini.
20119 2008-10-05 Jim Meyering <meyering@redhat.com>
20121 bootstrap: check for LT_INIT more portably
20122 * build-aux/bootstrap: Avoid using grep -E, since it's not
20123 portable enough. Suggestion from Bruno Haible.
20125 2008-10-05 Bruno Haible <bruno@clisp.org>
20127 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20128 as being fixed by gnulib.
20130 2008-10-05 Bruno Haible <bruno@clisp.org>
20132 * modules/select-tests: New file, mostly copied from
20133 modules/sys_select-tests.
20134 * tests/test-select.c: New file, mostly copied from
20135 tests/test-sys_select.c.
20136 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20137 * modules/sys_select-tests (Depends-on): Remove all dependencies.
20138 (Makefile.am): Remove test_sys_select_LDADD.
20140 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20141 to an undefined symbol, for an error message.
20142 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20143 (gl_SYS_SELECT_H_DEFAULTS): New macro.
20144 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20145 winsock-select.c here.
20146 * modules/sys_select (Files): Remove lib/winsock-select.c.
20147 (Depends-on): Remove alloca.
20148 (Makefile.am): Substitute GNULIB_SELECT.
20149 * modules/select: New file.
20150 * doc/posix-functions/select.texi: Update.
20152 2008-10-05 Bruno Haible <bruno@clisp.org>
20154 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20155 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20156 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20157 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20159 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20160 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20162 2008-10-05 Bruno Haible <bruno@clisp.org>
20164 * modules/getdtablesize-tests: New file.
20165 * tests/test-getdtablesize.c: New file.
20167 New module 'getdtablesize'.
20168 * lib/unistd.in.h (getdtablesize): New declaration.
20169 * lib/getdtablesize.c: New file.
20170 * m4/getdtablesize.m4: New file.
20171 * modules/getdtablesize: New file.
20172 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20173 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20174 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20175 HAVE_GETDTABLESIZE.
20176 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20178 2008-10-05 Bruno Haible <bruno@clisp.org>
20180 * modules/sched (Makefile.am): Fix typo.
20181 Reported by Simon Josefsson.
20183 2008-10-05 Jim Meyering <meyering@redhat.com>
20185 bootstrap: check for LT_INIT, too
20186 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20187 are deprecated. Suggestion from Ralf Wildenhues.
20189 2008-10-05 Bruno Haible <bruno@clisp.org>
20191 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20192 overriding them by ours.
20193 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20195 2008-10-05 Jim Meyering <meyering@redhat.com>
20197 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20198 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20199 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
20201 2008-10-04 Bruno Haible <bruno@clisp.org>
20203 * modules/dup2 (License): Change to LGPLv2+.
20204 * modules/sleep (License): Likewise.
20205 * modules/perror (License): Likewise.
20206 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20208 * modules/signal (License): Likewise.
20209 * modules/sigprocmask (License): Likewise.
20210 * modules/raise (License): Change to LGPLv2+, with approval by Jim
20213 2008-10-04 Bruno Haible <bruno@clisp.org>
20215 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20216 Reported by Rainer Tammer <tammer@tammer.net>.
20218 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
20219 Bruno Haible <bruno@clisp.org>
20221 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20222 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20223 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20225 2008-10-03 Kamil Dudka <kdudka@redhat.com>
20227 filevercmp: new module
20228 * lib/filevercmp.h: New function filevercmp comparing version strings.
20229 * lib/filevercmp.c: Implementation of filevercmp function.
20230 * modules/filevercmp: Module metadata.
20231 * tests/test-filevercmp.c: Unit test for new module.
20232 * modules/filevercmp-tests: Unit test metadata.
20233 * MODULES.html.sh: Add filevercmp module.
20235 2008-10-03 Bruno Haible <bruno@clisp.org>
20237 * lib/c-ctype.h: Add comment.
20238 Reported by Jim Meyering.
20240 2008-10-02 Bruno Haible <bruno@clisp.org>
20242 * modules/posix_spawn-internal (Depends-on): Add 'open'.
20244 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20246 * build-aux/bootstrap: Allow renaming bootstrap, and change the
20247 name of bootstrap.conf accordingly.
20249 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20251 * build-aux/bootstrap: Install git-merge-changelog configuration
20252 items into .gitconfig if needed.
20254 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20256 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20257 git repository, and initialize/update it accordingly.
20259 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
20261 * modules/fsync-tests: New file.
20262 * tests/test-fsync.c: New file.
20264 New module 'fsync'.
20265 * lib/fsync.c: New file.
20266 * m4/fsync.m4: New file.
20267 * modules/fsync: New file.
20268 * lib/unistd.in.h (fsync): New declaration.
20269 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20270 GNULIB_FSYNC and HAVE_FSYNC.
20271 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20272 * MODULES.html.sh (posix_functions): Add fsync.
20273 * doc/posix-functions/fsync.texi: Mention the new module.
20275 2008-10-02 Jim Meyering <meyering@redhat.com>
20277 fts.c: sync with similar code from coreutils' remove.c
20278 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20279 Guard also with "#if defined __linux__", since for now at least,
20280 this code is Linux-kernel-specific.
20282 2008-10-02 Jim Meyering <meyering@redhat.com>
20285 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20286 Include <sys/vfs.h>, not <sys/statfs.h>.
20288 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20289 Include <sys/vfs.h>, not <sys/statfs.h>.
20291 2008-10-01 Bruno Haible <bruno@clisp.org>
20293 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20294 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20295 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20296 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20297 * doc/posix-functions/posix_spawnp.texi: Likewise.
20298 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20299 whether posix_spawn actually works.
20300 * m4/pipe.m4 (gl_PIPE): Likewise.
20301 * modules/execute (Files): Add m4/posix_spawn.m4.
20302 * modules/pipe (Files): Add m4/posix_spawn.m4.
20303 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20305 2008-10-01 Jim Meyering <meyering@redhat.com>
20307 remove trailing spaces
20309 * lib/poll.c (poll): Likewise.
20310 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20311 * lib/winsock.c (rpl_close): Likewise.
20312 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20313 * modules/yield: Likewise.
20314 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20315 * tests/test-sys_select.c (connect_to_socket): Likewise.
20317 fts.c: adjust a new interface to be more generally useful
20318 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20319 (fts_build): Adjust caller.
20321 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20323 * modules/cond-tests: New file.
20324 * tests/test-cond.c: New file.
20326 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20327 Bruno Haible <bruno@clisp.org>
20329 * modules/cond (Dependencies): Add errno, time.
20330 * lib/glthread/cond.h: Include <time.h>.
20331 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20334 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20335 Bruno Haible <bruno@clisp.org>
20337 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20339 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20340 Bruno Haible <bruno@clisp.org>
20342 * modules/tls-tests (Depends-on): Add thread, yield.
20343 (configure.ac): Remove all checks.
20344 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20345 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20346 gl_thread_self): Remove definitions. Include glthread/thread.h and
20347 glthread/yield.h instead.
20348 (test_tls): Pass an additional NULL argument to gl_thread_join.
20350 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20351 Bruno Haible <bruno@clisp.org>
20353 * modules/lock-tests (Depends-on): Add thread, yield.
20354 (configure.ac): Remove all checks.
20355 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20356 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20357 gl_thread_self): Remove definitions. Include glthread/thread.h and
20358 glthread/yield.h instead.
20359 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20360 additional NULL argument to gl_thread_join.
20362 2008-09-30 Bruno Haible <bruno@clisp.org>
20364 Fix the Win32 implementation of the 'thread' module.
20365 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20367 (gl_thread_self): Invoke gl_thread_self_func.
20368 (gl_thread_self_func): New declaration.
20369 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20370 (do_init_self_key, init_self_key): New functions.
20371 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20372 Remove some fields.
20373 (running_threads, running_lock): Remove variables.
20374 (get_current_thread_handle): New function.
20375 (gl_thread_self_func, wrapper_func, glthread_create_func,
20376 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20379 2008-09-30 Bruno Haible <bruno@clisp.org>
20381 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20384 2008-09-30 Jim Meyering <meyering@redhat.com>
20386 fts.m4: correct the test for statfs.f_type
20387 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20388 when checking for statfs.f_type.
20390 2008-09-15 Simon Josefsson <simon@josefsson.org>
20392 tests: avoid some compiler warnings
20393 * tests/test-memchr.c (main): Pass NULL indirectly.
20394 * tests/test-getdate.c (main): Remove unused variable 'ret'.
20396 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20398 getdate.y: disallow countable dayshifts like "4 yesterday ago"
20399 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20400 exactly specified dayshifts.
20401 (dayshift): New rule.
20402 (rel): Add dayshift.
20403 (relative_time_table) [tomorrow, yesterday, today, now]:
20404 Use tDAY_SHIFT in place of tDAY_UNIT.
20405 * tests/test-getdate.c: Add tests for now-disallowed countable
20406 dayshifts, e.g., "4 yesterday ago".
20408 2008-09-29 Bruno Haible <bruno@clisp.org>
20410 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20411 * tests/test-posix_spawn1.in.sh: Renamed from
20412 tests/test-posix_spawn.in.sh.
20413 * tests/test-posix_spawn2.c: New file.
20414 * tests/test-posix_spawn2.in.sh: New file.
20415 * modules/posix_spawnp-tests (Files): Update.
20416 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20418 2008-09-29 Bruno Haible <bruno@clisp.org>
20420 Propagate effects of putenv/setenv/unsetenv to child processes.
20421 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20422 * lib/pipe.c (create_pipe): Likewise.
20424 2008-09-29 Bruno Haible <bruno@clisp.org>
20426 Enable use of shell scripts as executables in mingw.
20427 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20428 run the program as a shell script.
20429 * lib/pipe.c (create_pipe): Likewise.
20430 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20433 2008-09-29 Eric Blake <ebb9@byu.net>
20435 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20437 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20439 * doc/posix-functions/accept.texi: Update mingw problems.
20440 * doc/posix-functions/bind.texi: Update mingw problems.
20441 * doc/posix-functions/close.texi: Update mingw problems.
20442 * doc/posix-functions/connect.texi: Update mingw problems.
20443 * doc/posix-functions/getpeername.texi: Update mingw problems.
20444 * doc/posix-functions/getsockname.texi: Update mingw problems.
20445 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20446 * doc/posix-functions/ioctl.texi: Update mingw problems.
20447 * doc/posix-functions/listen.texi: Update mingw problems.
20448 * doc/posix-functions/recv.texi: Update mingw problems.
20449 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20450 * doc/posix-functions/select.texi: Update mingw problems.
20451 * doc/posix-functions/send.texi: Update mingw problems.
20452 * doc/posix-functions/sendto.texi: Update mingw problems.
20453 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20454 * doc/posix-functions/socket.texi: Update mingw problems.
20456 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20457 Bruno Haible <bruno@clisp.org>
20459 * lib/sys_select.in.h: Include sys/time.h.
20460 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20461 * modules/sys_select: Depend on sys_time.
20462 * tests/test-sys_select.c: Test that sys/select.h defines struct
20465 2008-09-29 Bruno Haible <bruno@clisp.org>
20467 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20468 * lib/sys_select.in.h: Likewise.
20470 2008-09-29 Bruno Haible <bruno@clisp.org>
20472 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20474 2008-09-29 Bruno Haible <bruno@clisp.org>
20476 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20477 Set LIBSOCKET instead of augmenting LIBS.
20478 * modules/sockets (Link): New section.
20479 * modules/sockets-tests (test_sockets_LDADD): New variable.
20480 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20481 * modules/poll-tests (test_poll_LDADD): New variable.
20482 * NEWS: Document the change.
20484 2008-09-29 Bruno Haible <bruno@clisp.org>
20486 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20487 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20488 ARPA_INET_H directly.
20489 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20491 2008-09-28 Bruno Haible <bruno@clisp.org>
20493 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20494 from gl_HEADER_SYS_SOCKET.
20495 (gl_HEADER_SYS_SOCKET): Invoke it.
20496 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20498 2008-09-28 Bruno Haible <bruno@clisp.org>
20500 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20501 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20502 Needed on OSF/1 4.0.
20504 2008-09-28 Bruno Haible <bruno@clisp.org>
20506 Override open more carefully.
20507 * lib/open.c (orig_open): New function.
20508 (rpl_open): Use orig_open instead of open.
20509 * lib/fcntl.in.h: Add special invocation convention.
20510 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20511 (gl_FUNC_OPEN): Invoke it.
20513 Override freopen more carefully.
20514 * lib/freopen.c (orig_freopen): New function.
20515 (rpl_freopen): Use orig_freopen instead of freopen.
20516 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20517 (gl_FUNC_FREOPEN): Invoke it.
20519 Override fopen more carefully.
20520 * lib/fopen.c (orig_fopen): New function.
20521 (rpl_fopen): Use orig_fopen instead of fopen.
20522 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20523 (gl_FUNC_FOPEN): Invoke it.
20524 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20526 2008-09-28 Bruno Haible <bruno@clisp.org>
20528 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20531 2008-09-28 Bruno Haible <bruno@clisp.org>
20533 * tests/test-sigaction.c (handler, main): Disable the check whether
20534 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20535 glibc systems with LinuxThreads.
20537 2008-09-28 Bruno Haible <bruno@clisp.org>
20539 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20541 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20543 * lib/fcntl.in.h (open): Likewise.
20544 Reported by Rainer Tammer <tammer@tammer.net>.
20546 2008-09-28 Bruno Haible <bruno@clisp.org>
20548 * modules/posix_spawnp-tests: New file.
20549 * tests/test-posix_spawn.c: New file.
20550 * tests/test-posix_spawn.in.sh: New file.
20552 New module 'posix_spawnp'.
20553 * modules/posix_spawnp: New file.
20554 * lib/spawnp.c: New file, from GNU libc with modifications.
20555 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20557 New module 'posix_spawn'.
20558 * modules/posix_spawn: New file.
20559 * lib/spawn.c: New file, from GNU libc with modifications.
20560 * doc/posix-functions/posix_spawn.texi: Mention the new module.
20562 New module 'posix_spawnattr_destroy'.
20563 * modules/posix_spawnattr_destroy: New file.
20564 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20565 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20568 New module 'posix_spawnattr_setsigmask'.
20569 * modules/posix_spawnattr_setsigmask: New file.
20570 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20572 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20575 New module 'posix_spawnattr_getsigmask'.
20576 * modules/posix_spawnattr_getsigmask: New file.
20577 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20579 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20582 New module 'posix_spawnattr_setsigdefault'.
20583 * modules/posix_spawnattr_setsigdefault: New file.
20584 * lib/spawnattr_setdefault.c: New file, from GNU libc with
20586 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20589 New module 'posix_spawnattr_getsigdefault'.
20590 * modules/posix_spawnattr_getsigdefault: New file.
20591 * lib/spawnattr_getdefault.c: New file, from GNU libc with
20593 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20596 New module 'posix_spawnattr_setschedpolicy'.
20597 * modules/posix_spawnattr_setschedpolicy: New file.
20598 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20600 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20603 New module 'posix_spawnattr_getschedpolicy'.
20604 * modules/posix_spawnattr_getschedpolicy: New file.
20605 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20607 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20610 New module 'posix_spawnattr_setschedparam'.
20611 * modules/posix_spawnattr_setschedparam: New file.
20612 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20614 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20617 New module 'posix_spawnattr_getschedparam'.
20618 * modules/posix_spawnattr_getschedparam: New file.
20619 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20621 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20624 New module 'posix_spawnattr_setpgroup'.
20625 * modules/posix_spawnattr_setpgroup: New file.
20626 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20628 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20631 New module 'posix_spawnattr_getpgroup'.
20632 * modules/posix_spawnattr_getpgroup: New file.
20633 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20635 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20638 New module 'posix_spawnattr_setflags'.
20639 * modules/posix_spawnattr_setflags: New file.
20640 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20641 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20644 New module 'posix_spawnattr_getflags'.
20645 * modules/posix_spawnattr_getflags: New file.
20646 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20647 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20650 New module 'posix_spawnattr_init'.
20651 * modules/posix_spawnattr_init: New file.
20652 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20653 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20656 New module 'posix_spawn_file_actions_destroy'.
20657 * modules/posix_spawn_file_actions_destroy: New file.
20658 * lib/spawn_faction_destroy.c: New file, from GNU libc with
20660 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20663 New module 'posix_spawn_file_actions_addopen'.
20664 * modules/posix_spawn_file_actions_addopen: New file.
20665 * lib/spawn_faction_addopen.c: New file, from GNU libc with
20667 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20670 New module 'posix_spawn_file_actions_adddup2'.
20671 * modules/posix_spawn_file_actions_adddup2: New file.
20672 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20674 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20677 New module 'posix_spawn_file_actions_addclose'.
20678 * modules/posix_spawn_file_actions_addclose: New file.
20679 * lib/spawn_faction_addclose.c: New file, from GNU libc with
20681 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20684 New module 'posix_spawn_file_actions_init'.
20685 * modules/posix_spawn_file_actions_init: New file.
20686 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20687 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20690 New module 'posix_spawn-internal'.
20691 * modules/posix_spawn-internal: New file.
20692 * lib/spawn_int.h: New file, from GNU libc with modifications.
20693 * lib/spawni.c: New file, from GNU libc with modifications.
20694 * m4/posix_spawn.m4: New file.
20696 New module 'spawn'.
20697 * modules/spawn: New file.
20698 * lib/spawn.in.h: New file, from GNU libc with modifications.
20699 * m4/spawn_h.m4: New file.
20700 * doc/posix-headers/spawn.texi: Mention the new module.
20702 2008-09-28 Bruno Haible <bruno@clisp.org>
20704 * modules/sched-tests: New file.
20705 * tests/test-sched.c: New file.
20707 New module 'sched'.
20708 * modules/sched: New file.
20709 * lib/sched.in.h: New file.
20710 * m4/sched_h.m4: New file.
20711 * doc/posix-headers/sched.texi: Mention the new module.
20713 2008-09-27 Eric Blake <ebb9@byu.net>
20715 Fix previous patch, and tweak references to $0.
20716 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20717 (func_version, func_gnulib_dir): Don't call this program
20719 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20720 with using $0 in function.
20721 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20722 (func_fatal_error): Reuse the name the user invoked us with.
20724 2008-09-27 Bruno Haible <bruno@clisp.org>
20726 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20727 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20728 (gl_ICONV_H): Not here.
20729 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20730 instead of assigning ICONV_H directly.
20732 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20733 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20736 2008-09-27 Bruno Haible <bruno@clisp.org>
20738 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20739 * modules/arpa_inet (Depends-on): Add link-warning.
20740 (Makefile.am): Insert the definition of GL_LINK-WARNING.
20741 * modules/unistd (Makefile.am): Likewise.
20743 2008-09-26 Bruno Haible <bruno@clisp.org>
20745 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20747 (func_version): Essentially copied from gnulib-tool.
20748 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20749 func_readlink): Copied from gnulib-tool.
20751 2008-09-26 Bruno Haible <bruno@clisp.org>
20753 * gnulib-tool (func_version): Change directory to $gnulib_dir before
20754 invoking git-version-gen.
20756 2008-09-26 Bruno Haible <bruno@clisp.org>
20758 * posix-modules: Update to directory names changed on 2008-01-19.
20759 Remove commas in output before splitting into words. No more need to
20760 avoid 'ftruncate' since 2007-02-19.
20762 2008-09-26 Bruno Haible <bruno@clisp.org>
20764 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20766 2008-09-26 Bruno Haible <bruno@clisp.org>
20768 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20769 * modules/fwriteerror (Depends-on): Add errno.
20771 2008-09-26 Bruno Haible <bruno@clisp.org>
20773 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20774 * tests/test-vc-list-files-cvs.sh: Likewise.
20776 2008-09-26 Bruno Haible <bruno@clisp.org>
20778 * doc/posix-headers/sys_resource.texi: Reorder items.
20780 2008-09-26 Jim Meyering <meyering@redhat.com>
20782 fts: tweak inode comparison function
20783 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20784 inode numbers, as documented.
20786 fts: sort dirent entries on inode number before traversing
20787 This avoids a quadratic, seek-related performance penalty when
20788 operating on a directory containing many entries (measurable at 10k;
20789 3.5 hours at 2 million entries with a cold cache) on certain types
20790 of file systems, including ext3 and ext4, but not tmpfs.
20791 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20792 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20793 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20794 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20795 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20796 (fts_build): Set the stat.st_ino member from D_INO.
20797 If it is likely to be useful, sort dirent entries on inode number.
20799 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20800 and the struct statfs.f_type member.
20801 * modules/fts (Depends-on): Add d-ino.
20803 2008-09-26 Bruno Haible <bruno@clisp.org>
20805 * modules/sigpipe-die (Depends-on): Add sigpipe.
20807 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20808 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20809 and GNULIB_STDIO_H_SIGPIPE are set.
20810 * lib/stdio-write.c: New file.
20811 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20812 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20813 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20814 REPLACE_STDIO_WRITE_FUNCS.
20815 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20816 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20817 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20818 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20819 * modules/stdio (Files): Add lib/stdio-write.c.
20820 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20821 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20822 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20823 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20824 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20825 REPLACE_FPRINTF_POSIX.
20826 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20827 REPLACE_PRINTF_POSIX.
20828 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20829 REPLACE_VFPRINTF_POSIX.
20830 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20831 REPLACE_VPRINTF_POSIX.
20832 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20834 * doc/posix-functions/fputc.texi: Likewise.
20835 * doc/posix-functions/fputs.texi: Likewise.
20836 * doc/posix-functions/fwrite.texi: Likewise.
20837 * doc/posix-functions/printf.texi: Likewise.
20838 * doc/posix-functions/putc.texi: Likewise.
20839 * doc/posix-functions/putchar.texi: Likewise.
20840 * doc/posix-functions/puts.texi: Likewise.
20841 * doc/posix-functions/vfprintf.texi: Likewise.
20842 * doc/posix-functions/vprintf.texi: Likewise.
20844 * modules/safe-write (Depends-on): Add write.
20846 * modules/sigpipe-tests: New file.
20847 * tests/test-sigpipe.c: New file.
20848 * tests/test-sigpipe.sh: New file.
20850 * modules/write: New file.
20851 * lib/unistd.in.h: Include <sys/types.h>.
20852 (write): New declaration.
20853 * lib/write.c: New file.
20854 * m4/write.m4: New file.
20855 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20856 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20857 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20858 GNULIB_WRITE, REPLACE_WRITE.
20859 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20860 and the SIGPIPE issue.
20862 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20863 (raise): New declaration.
20864 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20865 (ext_signal): New function.
20866 (rpl_raise): New function.
20867 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20868 GNULIB_SIGNAL_H_SIGPIPE.
20869 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20870 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20872 * modules/sigpipe: New file.
20873 * m4/sigpipe.m4: New file.
20875 2008-09-25 Derek Price <derek@ximbiot.com>
20876 Bruno Haible <bruno@clisp.org>
20878 * gnulib-tool (func_import): Report all license incompatibilities, not
20879 just the first one.
20881 2008-09-25 Bruno Haible <bruno@clisp.org>
20883 * gnulib-tool (func_import): When computing the edits, consider not
20884 only the Makefile.ams that exist but also those that will be generated.
20886 2008-09-25 Simon Josefsson <simon@josefsson.org>
20888 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20889 fixes gnulib-tool --test warning about duplicate dependency.
20891 2008-09-25 Bruno Haible <bruno@clisp.org>
20893 * gnulib-tool: Don't ask the user to perform edits in the generated
20895 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20896 apply to the Makefile.am being generated.
20897 (func_emit_tests_Makefile_am): Execute edits that apply to the
20898 Makefile.am being generated.
20899 (func_import): Setup list of Makefile.am edits before emitting the
20900 Makefile.ams, not at the end.
20901 (func_create_testdir): Update.
20902 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20904 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20906 * gnulib-tool (func_import): Store the --tests-base option in the
20907 comment in gnulib-cache.m4.
20909 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
20911 * NEWS: Document increased portability that sys_select now provides.
20913 * lib/sys_select.in.h: Install select wrapper.
20914 * lib/sys_socket.in.h: Use more descriptive name when there is no
20916 * lib/winsock-select.c: New.
20917 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20918 Require gl_HEADER_SYS_SOCKET.
20919 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20920 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20921 * tests/test-sys_select.c: Add functional tests.
20923 2008-09-24 Eric Blake <ebb9@byu.net>
20925 open, fopen: close fd leak in last patch
20926 * lib/open.c (rpl_open): Close fd before returning error.
20927 * lib/fopen.c (rpl_fopen): Close fd before returning error.
20928 * doc/posix-functions/open.texi (open): Document that Irix also
20930 * doc/posix-functions/fopen.texi (fopen): Likewise.
20931 Reported by Paolo Bonzini.
20933 2008-09-24 Bruno Haible <bruno@clisp.org>
20935 Ensure that a filename ending in a slash cannot be used to access a
20937 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20938 to check whether it's really a directory.
20939 * lib/fopen.c: Include fcntl.h, unistd.h.
20940 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20942 * modules/fopen (Depends-on): Add unistd.
20943 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20944 * tests/test-fopen.c (main): Likewise.
20945 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20946 * doc/posix-functions/fopen.texi: Likewise.
20947 Reported by Eric Blake.
20949 2008-09-23 Eric Blake <ebb9@byu.net>
20951 c-stack: avoid compiler optimizations when provoking overflow
20952 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20953 recursion harder to optimize, to ensure a stack overflow occurs.
20954 * tests/test-c-stack.c (recurse): Likewise.
20955 Borrowed from libsigsegv.
20957 c-stack: work around Irix sigaltstack bug
20958 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20959 whether sigaltstack uses wrong end of stack_t (copied in part from
20961 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20962 Irix bug, without requiring an over-allocation.
20963 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20966 fopen: document mingw bug on directories
20967 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20968 not allowing a stream visiting a directory, even though reading
20969 from such a stream is not portable.
20971 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20973 * lib/poll.c: Rewrite.
20974 * modules/poll: Depend on alloca.
20976 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20978 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20979 instead define prototypes for a full set of wrappers. Ensure
20980 that Cygwin does not use the compatibility code, which is only
20982 * lib/winsock.c: New.
20983 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20984 * modules/sys_socket: Add lib/winsock.c.
20986 * modules/poll-tests: Add errno and perror.
20987 * tests/test-poll.c: Use ioctl, not ioctlsocket.
20989 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20991 * tests/test-poll.c: Downgrade minimum needed Winsock version.
20993 2008-09-23 Bruno Haible <bruno@clisp.org>
20995 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20996 * doc/glibc-functions/*: Likewise.
20998 2008-09-23 Simon Josefsson <simon@josefsson.org>
21000 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21003 2008-09-22 Eric Blake <ebb9@byu.net>
21004 Bruno Haible <bruno@clisp.org>
21006 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21007 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21008 supply %A but mishandle pseudo-NaN.
21009 Reported by Simon Josefsson.
21011 2008-09-21 Bruno Haible <bruno@clisp.org>
21013 * tests/test-lock.c (main): Tweak skip message.
21014 * tests/test-tls.c (main): Likewise.
21016 2008-09-21 Bruno Haible <bruno@clisp.org>
21018 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21019 whether 'struct sigaction' has sa_sigaction here...
21020 (gl_PREREQ_SIG_HANDLER_H): ... not here.
21021 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21023 2008-09-21 Bruno Haible <bruno@clisp.org>
21025 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21027 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21028 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21030 (Support for obsolete systems lacking POSIX:2001): New section.
21031 (String handling <string.h>): Move strdup to the new section.
21032 Suggested by Simon Josefsson and Paolo Bonzini.
21034 2008-09-21 Bruno Haible <bruno@clisp.org>
21036 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21037 exponents in %e and %g results on 'long double'. Needed for mingw's
21038 improved *printf functions.
21039 * tests/test-vasprintf-posix.c (test_function): Likewise.
21040 * tests/test-snprintf-posix.h (test_function): Likewise.
21041 * tests/test-sprintf-posix.h (test_function): Likewise.
21042 Reported by Eric Blake.
21044 2008-09-21 Bruno Haible <bruno@clisp.org>
21046 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21047 * tests/test-sprintf-posix.h (test_function): Likewise.
21049 2008-09-21 Bruno Haible <bruno@clisp.org>
21051 * modules/getpass (Depends-on): Add strdup-posix.
21053 New module 'strdup-posix'.
21054 * modules/strdup-posix: New file.
21055 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21056 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21057 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21059 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21060 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21061 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21064 * modules/strdup (Depends-on): Remove malloc-posix.
21066 2008-09-20 Bruno Haible <bruno@clisp.org>
21068 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21071 2008-09-20 Bruno Haible <bruno@clisp.org>
21073 Ensure that wint_t gets defined on IRIX 5.3.
21074 * lib/wchar.in.h (wint_t): Define if not defined by the system.
21075 * lib/wctype.in.h (wint_t): Likewise.
21076 (__wctype_wint_t): Remove type.
21077 (isw*): Use wint_t instead of __wctype_wint_t.
21078 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21079 * modules/wchar (Files): Add m4/wint_t.m4.
21080 (Makefile.am): Substitute HAVE_WINT_T.
21081 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21082 * tests/test-wctype.c: Check that wint_t is defined.
21083 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21084 * doc/posix-headers/wctype.texi: Likewise.
21085 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21087 2008-09-18 Bruno Haible <bruno@clisp.org>
21089 * gnulib-tool (func_exit): Update comment.
21091 2008-09-18 Simon Josefsson <simon@josefsson.org>
21093 * modules/getaddrinfo (Depends-on): Remove strdup, this module
21094 assumes strdup exists and does not depend on strdup to return
21095 ENOMEM on out of memory conditions.
21097 2008-09-18 Bruno Haible <bruno@clisp.org>
21099 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21100 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21101 digits for the exponent.
21103 2008-09-18 Jim Meyering <meyering@redhat.com>
21104 Bruno Haible <bruno@clisp.org>
21106 * lib/vasnprintf.c (decimal_point_char): Define also if
21107 NEED_PRINTF_INFINITE_LONG_DOUBLE.
21109 2008-09-16 Bruno Haible <bruno@clisp.org>
21110 and Eric Blake <ebb9@byu.net>
21112 vasnprintf: support Irix 5.3
21113 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21114 that mishandle long double infinity.
21115 Reported by Tom G. Christensen.
21117 2008-09-16 Bruno Haible <bruno@clisp.org>
21119 * doc/glibc-functions/scandir.texi: Mention the function is missing on
21121 * doc/glibc-functions/alphasort.texi: Likewise.
21122 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21124 2008-09-16 Jim Meyering <meyering@redhat.com>
21126 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21127 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21128 a umask modification leak out of a subshell. Otherwise, the
21129 opensolaris /bin/sh would be accepted and thus cause unwarranted
21130 failures in the coreutils test suite.
21132 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
21134 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21137 2008-09-16 Jim Meyering <meyering@redhat.com>
21139 avoid spurious test failure when library is built without ACL support
21140 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21141 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21142 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21143 * tests/test-copy-acl.sh: Likewise.
21145 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21147 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21148 based on character occurrence counts.
21150 2008-09-15 Eric Blake <ebb9@byu.net>
21152 tests: avoid some compiler warnings
21153 * tests/test-memchr.c (main): Pass NULL indirectly.
21154 * tests/test-closein.c (main): Avoid unused variable.
21156 2008-09-15 Bruno Haible <bruno@clisp.org>
21158 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21159 are missing on OpenBSD 4.0 individually.
21160 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21162 2008-09-15 Bruno Haible <bruno@clisp.org>
21164 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21165 * doc/posix-functions/strerror.texi: Mention also Cygwin.
21166 * doc/posix-functions/perror.texi: Likewise.
21167 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21169 Reported by Eric Blake.
21171 * lib/errno.in.h: Use replacement values >= 2000.
21172 Reported by Eric Blake.
21174 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21176 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21177 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21179 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21180 compareseq was aborted.
21182 2008-09-14 Bruno Haible <bruno@clisp.org>
21184 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21186 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21187 (fstrcmp_bounded): Simplify result computation accordingly.
21189 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21191 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21192 (fstrcmp): Define in terms of fstrcmp_bounded.
21193 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21194 lower_bound argument.
21195 Return quickly if the result is certainly < lower_bound.
21196 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21198 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21200 * lib/diffseq.h (EARLY_ABORT): New macro.
21201 (compareseq): Change return type to bool. Return true when EARLY_ABORT
21204 2008-09-14 Bruno Haible <bruno@clisp.org>
21206 * modules/perror-tests: New file.
21207 * tests/test-perror.sh: New file.
21208 * tests/test-perror.c: New file.
21210 New module 'perror'.
21211 * lib/stdio.in.h (perror): New declaration.
21212 * lib/perror.c: New file.
21213 * m4/perror.m4: New file.
21214 * modules/perror: New file.
21215 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21216 * doc/posix-functions/perror.texi: Mention the perror module.
21217 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21219 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21222 2008-09-14 Bruno Haible <bruno@clisp.org>
21224 * modules/stdio (Makefile.am): Reorder to match the order in
21226 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21228 2008-09-13 Bruno Haible <bruno@clisp.org>
21230 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21232 2008-09-13 Bruno Haible <bruno@clisp.org>
21234 Extend strerror to cover the added errno values.
21235 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21236 (rpl_strerror): Provide error messages for the added errno values and
21237 for the WSA* values.
21238 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21239 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21241 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21242 * modules/strerror (Depends-on): Add errno.
21243 * doc/posix-functions/strerror.texi: Document the change.
21244 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21247 2008-09-13 Bruno Haible <bruno@clisp.org>
21249 * modules/EOVERFLOW: Remove file.
21250 * m4/eoverflow.m4: Remove file.
21251 * modules/EOVERFLOW-tests: Remove file.
21252 * tests/test-EOVERFLOW.c: Remove file.
21253 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21254 * modules/ftell (Depends-on): Likewise.
21255 * modules/getdelim (Depends-on): Likewise.
21256 * modules/getugroups (Depends-on): Likewise.
21257 * modules/poll (Depends-on): Likewise.
21258 * modules/snprintf (Depends-on): Likewise.
21259 * modules/sprintf-posix (Depends-on): Likewise.
21260 * modules/vasnprintf (Depends-on): Likewise.
21261 * modules/vasprintf (Depends-on): Likewise.
21262 * modules/vfprintf-posix (Depends-on): Likewise.
21263 * modules/vsnprintf (Depends-on): Likewise.
21264 * modules/vsprintf-posix (Depends-on): Likewise.
21265 * modules/xvasprintf (Depends-on): Likewise.
21266 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21267 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21268 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21269 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21270 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21271 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21272 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21273 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21274 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21275 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21276 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21277 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21278 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21279 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21280 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21281 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21282 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21283 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21284 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21285 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21286 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21287 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21288 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21289 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21290 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21291 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21292 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21293 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21294 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21295 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21296 * MODULES.html.sh: Remove EOVERFLOW.
21297 * NEWS: Mention the change.
21299 2008-09-13 Bruno Haible <bruno@clisp.org>
21301 * modules/errno-tests: New file.
21302 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21304 * lib/errno.in.h: New file.
21305 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21306 * modules/errno: New file.
21307 * doc/posix-headers/errno.texi: Update documentation.
21308 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21310 2008-09-13 Bruno Haible <bruno@clisp.org>
21312 * tests/test-poll.c: Use #if for native Windows, rather than testing
21315 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21316 Bruno Haible <bruno@clisp.org>
21318 * lib/glob.c: Don't include <pwd.h> on native Windows.
21319 (WINDOWS32): New macro.
21320 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21322 2008-09-13 Bruno Haible <bruno@clisp.org>
21324 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21325 (ETIMEDOUT): Remove macro.
21326 (glthread_cond_timedwait_multithreaded): New declaration.
21327 (glthread_cond_timedwait): Use it.
21328 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21329 (glthread_cond_timedwait_multithreaded): New function.
21331 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21333 * modules/poll-tests: Do not check for io.h.
21334 * tests/test-poll.c: Check for __MSVCRT__ instead.
21336 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21338 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21339 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21340 * tests/test-poll.c: Use them. Use _pipe on Windows.
21342 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21344 * modules/poll-tests: New.
21345 * tests/test-poll.c: New.
21347 2008-09-12 Eric Blake <ebb9@byu.net>
21349 frexp: test for NetBSD failure on -0.0
21350 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21351 not all, bugs from NetBSD 3.0 have been fixed.
21352 * doc/posix-functions/frexp.texi (frexp): Document bug.
21353 Reported by Thomas Klausner.
21355 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21356 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21358 Reported by Jonathan C. Patschke <jp@centtech.com>.
21360 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21362 * lib/glthread/cond.h: Use dummy implementation also if
21365 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21367 * modules/fnmatch-posix (License): Change to LGPLv2+.
21368 * modules/fnmatch-gnu (License): Likewise.
21370 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21372 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21374 2008-09-11 Jim Meyering <meyering@redhat.com>
21376 * users.txt: Add gtk-vnc.
21378 2008-09-08 Simon Josefsson <simon@josefsson.org>
21380 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21383 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21384 required for 16-bit and 8-bit rotates.
21385 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21386 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21387 UINT8_MAX instead of hard-coded constants.
21388 Suggested by Paul Eggert.
21390 2008-09-07 Bruno Haible <bruno@clisp.org>
21392 * tests/test-striconveh.c (main): Check behaviour when converting from
21395 Make striconveh work better with stateful encodings.
21396 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21397 that iconv does not increment the inptr when returning -1/EINVAL.
21399 2008-09-07 Bruno Haible <bruno@clisp.org>
21401 * build-aux/config.rpath: Update according to libtool-2.2.6.
21402 * build-aux/config.libpath: Likewise.
21404 2008-09-06 Bruno Haible <bruno@clisp.org>
21406 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21407 * lib/freadptr.c (freadptr): Likewise.
21408 * lib/freadseek.c (freadptrinc): Likewise.
21409 Reported by Simon Josefsson.
21411 2008-09-06 Bruno Haible <bruno@clisp.org>
21413 * modules/freadptr (License): Change to LGPLv2+.
21414 * modules/freadseek (License): Likewise.
21415 Suggested by Eric Blake.
21417 * modules/memchr2 (License): Change to LGPLv2+.
21418 Approved by Eric Blake.
21420 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21421 Bruno Haible <bruno@clisp.org>
21423 Make gnulib-tool work with native 'sed' on AIX.
21424 * gnulib-tool (sed_noop): New variable.
21425 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21426 func_add_or_update, func_create_testdir): Use it to initialize sed
21428 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21430 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21431 Bruno Haible <bruno@clisp.org>
21433 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21434 also works after #include directives.
21436 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21438 getdate.y: reject an out-of-range timezone value
21439 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21440 the range [-24...+24]. When specified with only one or two digits,
21441 * tests/test-getdate.c: Tests for the fix.
21442 * doc/getdate.texi: Document this change.
21444 2008-09-03 Bruno Haible <bruno@clisp.org>
21446 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21448 2008-09-02 Simon Josefsson <simon@josefsson.org>
21450 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21451 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21452 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21453 Blake <ebb9@byu.net>.
21455 * tests/test-bitrotate.c: Add more test vectors.
21457 2008-09-02 Eric Blake <ebb9@byu.net>
21459 vasnprintf-posix: handle large precision via %.*d
21460 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21461 when handling it ourselves.
21462 * tests/test-vasnprintf-posix.c (test_function): Add test.
21463 * tests/test-snprintf-posix.h (test_function): Likewise.
21464 * tests/test-sprintf-posix.h (test_function): Likewise.
21465 * tests/test-vasprintf-posix.c (test_function): Likewise.
21466 Reported by Alain Guibert.
21468 2008-09-01 Eric Blake <ebb9@byu.net>
21470 c-stack: make configure-time check more robust
21471 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21472 successful sigaction call.
21473 Reported by Tom G. Christensen.
21475 2008-09-01 Bruno Haible <bruno@clisp.org>
21477 New module 'findprog-lgpl'.
21478 * modules/findprog-lgpl: New file.
21479 * lib/findprog-lgpl.c: New file.
21480 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21481 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21482 to decide whether to use strdup or xstrdup, concatenated_filename or
21483 xconcatenated_filename.
21485 2008-09-01 Bruno Haible <bruno@clisp.org>
21487 Split module 'concat-filename' into 'concat-filename' (LGPL) and
21488 'xconcat-filename' (GPL).
21489 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21490 (License): Change to LGPLv2+.
21491 * modules/xconcat-filename: New file.
21492 * lib/concat-filename.h (concatenated_filename): Change specification.
21493 (xconcatenated_filename): New declaration.
21494 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21495 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21497 * lib/xconcat-filename.c: New file.
21498 * NEWS: Mention the change.
21499 * lib/findprog.c: Include concat-filename.h, not filename.h.
21500 (find_in_path): Use xconcatenated_filename instead of
21501 concatenated_filename.
21502 * lib/javacomp.c: Include concat-filename.h, not filename.h.
21503 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21504 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21505 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21506 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21507 instead of concatenated_filename.
21508 * lib/javaexec.c: Include concat-filename.h, not filename.h.
21509 (execute_java_class): Use xconcatenated_filename instead of
21510 concatenated_filename.
21511 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21512 * modules/javacomp (Depends-on): Likewise.
21513 * modules/javaexec (Depends-on): Likewise.
21515 2008-09-01 Bruno Haible <bruno@clisp.org>
21517 Split module 'filename' into 'filename' and 'concat-filename'.
21518 * modules/filename: Keep only lib/filename.h.
21519 (License): Change to LGPLv2+.
21520 * modules/concat-filename: New file, extracted from modules/filename.
21521 * lib/filename.h (concatenated_filename): Remove declaration.
21522 * lib/concat-filename.h: New file, extracted from lib/filename.h.
21523 * lib/concat-filename.c: Include concat-filename.h.
21524 * NEWS: Mention the change.
21526 2008-09-01 Simon Josefsson <simon@josefsson.org>
21528 * lib/bitrotate.h (rotl8, rotr8): Add.
21530 * modules/bitrotate (configure.ac): Need
21531 AC_REQUIRE([AC_C_INLINE]).
21532 (Description): Mention stdint.h. Reported by Bruno Haible
21535 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
21536 Paolo Bonzini <bonzini@gnu.org>.
21538 2008-08-31 Bruno Haible <bruno@clisp.org>
21540 Assume Solaris specific bi-arch conventions on Solaris systems.
21541 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21542 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21543 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21544 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21545 like acl_libdirstem.
21546 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21548 * NEWS: Mention the change.
21549 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21551 2008-08-31 Jim Meyering <meyering@redhat.com>
21553 * lib/strftime.h: Add comments describing the two added arguments.
21555 remove duplicate #include directives
21556 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21557 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21559 2008-08-31 Bruno Haible <bruno@clisp.org>
21561 New module 'sigpipe-die'.
21562 * modules/sigpipe-die: New file.
21563 * lib/sigpipe-die.h: New file.
21564 * lib/sigpipe-die.c: New file.
21565 * MODULES.html.sh (Signal handling): Add sigpipe-die.
21567 2008-08-31 Bruno Haible <bruno@clisp.org>
21569 Don't override previously installed signal handlers.
21570 * lib/fatal-signal.c (saved_sigactions): New variable.
21571 (uninstall_handlers): Reset the signal to the saved handler, not
21572 to SIG_DFL (except when ignored).
21573 (install_handlers): Save the previous handlers.
21575 2008-08-30 Bruno Haible <bruno@clisp.org>
21577 * gnulib-tool (func_reset_sigpipe): New function.
21578 (func_get_automake_snippet, func_modules_transitive_closure,
21579 func_import): Invoke it before a join command that reads from stdin,
21580 to avoid "echo: write error: Broken pipe" error messages on stderr.
21581 Reported by Sam Steingold <sds@gnu.org>.
21583 2008-08-30 Bruno Haible <bruno@clisp.org>
21585 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21586 Code copied from m4/open.m4.
21587 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21588 access and the filename ends in a slash. Code copied from lib/open.c.
21589 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21590 * tests/test-fopen.c (main): Check against bug with trailing slash.
21592 2008-08-29 Bruno Haible <bruno@clisp.org>
21594 Avoid some "gcc -pedantic" warnings.
21595 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21596 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21597 * lib/dirent.in.h: Likewise.
21598 * lib/fcntl.in.h: Likewise.
21599 * lib/float.in.h: Likewise.
21600 * lib/iconv.in.h: Likewise.
21601 * lib/inttypes.in.h: Likewise.
21602 * lib/locale.in.h: Likewise.
21603 * lib/math.in.h: Likewise.
21604 * lib/netinet_in.in.h: Likewise.
21605 * lib/search.in.h: Likewise.
21606 * lib/signal.in.h: Likewise.
21607 * lib/stdarg.in.h: Likewise.
21608 * lib/stdint.in.h: Likewise.
21609 * lib/stdio.in.h: Likewise.
21610 * lib/stdlib.in.h: Likewise.
21611 * lib/string.in.h: Likewise.
21612 * lib/strings.in.h: Likewise.
21613 * lib/sys_select.in.h: Likewise.
21614 * lib/sys_socket.in.h: Likewise.
21615 * lib/sys_stat.in.h: Likewise.
21616 * lib/sys_time.in.h: Likewise.
21617 * lib/sysexits.in.h: Likewise.
21618 * lib/time.in.h: Likewise.
21619 * lib/unistd.in.h: Likewise.
21620 * lib/wchar.in.h: Likewise.
21621 * lib/wctype.in.h: Likewise.
21622 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21623 * modules/fchdir (Makefile.am): Likewise.
21624 * modules/fcntl (Makefile.am): Likewise.
21625 * modules/float (Makefile.am): Likewise.
21626 * modules/iconv_open (Makefile.am): Likewise.
21627 * modules/inttypes (Makefile.am): Likewise.
21628 * modules/locale (Makefile.am): Likewise.
21629 * modules/math (Makefile.am): Likewise.
21630 * modules/netinet_in (Makefile.am): Likewise.
21631 * modules/search (Makefile.am): Likewise.
21632 * modules/signal (Makefile.am): Likewise.
21633 * modules/stdarg (Makefile.am): Likewise.
21634 * modules/stdint (Makefile.am): Likewise.
21635 * modules/stdio (Makefile.am): Likewise.
21636 * modules/stdlib (Makefile.am): Likewise.
21637 * modules/string (Makefile.am): Likewise.
21638 * modules/strings (Makefile.am): Likewise.
21639 * modules/sys_select (Makefile.am): Likewise.
21640 * modules/sys_socket (Makefile.am): Likewise.
21641 * modules/sys_stat (Makefile.am): Likewise.
21642 * modules/sys_time (Makefile.am): Likewise.
21643 * modules/sysexits (Makefile.am): Likewise.
21644 * modules/time (Makefile.am): Likewise.
21645 * modules/unistd (Makefile.am): Likewise.
21646 * modules/wchar (Makefile.am): Likewise.
21647 * modules/wctype (Makefile.am): Likewise.
21648 Reported by Reuben Thomas <rrt@sc3d.org>.
21650 2008-08-29 Bruno Haible <bruno@clisp.org>
21652 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21655 2008-08-29 Simon Josefsson <simon@josefsson.org>
21657 * MODULES.html.sh (Misc): Add bitrotate.
21659 * modules/bitrotate: New file.
21661 * lib/bitrotate.h: New file.
21663 * modules/bitrotate-tests: New file.
21665 * tests/test-bitrotate.c: New file.
21667 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21668 on the bitrotate module.
21670 * lib/arctwo.c: Use new bitrotate module.
21672 2008-08-29 Jim Meyering <meyering@redhat.com>
21674 bootstrap: merge changes from coreutils
21675 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21676 of copied files. Remove a kludge, now that this is fixed.
21677 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21678 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21679 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21681 2008-08-29 Bruno Haible <bruno@clisp.org>
21683 * MODULES.html.sh: Remove --cvs-urls option.
21685 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
21687 maint.mk: adjust to file name change
21688 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21690 2008-08-28 Jim Meyering <meyering@redhat.com>
21692 * modules/getndelim2 (License): Relicense to LGPLv2+.
21693 Approved by Richard Stallman for the version of 1995, and by
21694 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21696 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
21698 * lib/getdelim.c (flockfile, funlockfile): Make all of them
21699 dummy if one is not available. Do not touch them if
21700 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21701 (getc_maybe_unlocked): New.
21702 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21704 2008-08-26 Eric Blake <ebb9@byu.net>
21706 doc/INSTALL: resync from autoconf
21707 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21708 (INSTALL_PRELUDE): Delete; this is done more efficiently by
21710 * install.texi [!autoconf]: ...here. Resync from autoconf.
21711 * INSTALL: Regenerate.
21712 * INSTALL.ISO: New file.
21713 * INSTALL.UTF-8: Likewise.
21715 2008-08-26 Jim Meyering <meyering@redhat.com>
21717 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21718 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21719 these definitions conditional, so that they may be overridden, too.
21721 2008-08-26 Bruno Haible <bruno@clisp.org>
21723 Generate INSTALL file variants with prettier quotes.
21724 * doc/Makefile (INSTALL_PRELUDE): New macro.
21726 (INSTALL.ISO, INSTALL.UTF-8): New rules.
21728 2008-08-26 Bruno Haible <bruno@clisp.org>
21730 Run makeinfo in an English locale.
21731 * doc/Makefile (MAKEINFO): New variable.
21733 2008-08-26 Bruno Haible <bruno@clisp.org>
21735 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21736 Suggested by Eric Blake.
21738 2008-08-25 Bruno Haible <bruno@clisp.org>
21740 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21742 2008-08-25 Eric Blake <ebb9@byu.net>
21744 c-stack: test that stack overflow can be caught
21745 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21746 that platform allows handling stack overflow; at least OS/2 EMX
21747 has sigaltstack, but crashes before transferring control to
21748 handler on stack overflow.
21749 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21750 check for HAVE_STACK_OVERFLOW_HANDLING.
21751 Reported by Elbert Pol.
21753 2008-08-25 Bruno Haible <bruno@clisp.org>
21755 * doc/posix-functions/strftime.texi: Fix description of strftime
21758 2008-08-24 Bruno Haible <bruno@clisp.org>
21760 * tests/uniwidth/test-uc_width2.c: New file.
21761 * tests/uniwidth/test-uc_width2.sh: New file.
21762 * modules/uniwidth/width-tests (Files): Add the new files.
21763 (TESTS): Add uniwidth/test-uc_width2.sh.
21764 (TESTS_ENVIRONMENT): New variable.
21765 (check_PROGRAMS): Add test-uc_width2.
21766 (test_uc_width2_SOURCES): New variable.
21768 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21769 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21771 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21773 2008-08-22 Eric Blake <ebb9@byu.net>
21775 test-lock, test-tls: mention why a test is skipped
21776 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21778 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21780 count-one-bits: relax license
21781 * modules/count-one-bits (License): Relicense to LGPLv2+.
21782 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21784 2008-08-22 Andreas Schwab <schwab@suse.de>
21786 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21787 Remove spurious space in assignment.
21789 2008-08-21 Simon Josefsson <simon@josefsson.org>
21791 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21792 Paul Eggert <eggert@CS.UCLA.EDU>.
21794 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21796 * modules/gettext: Add m4/threadlib.m4.
21798 2008-08-19 Eric Blake <ebb9@byu.net>
21800 test-c-stack: fix compilation failure on FreeBSD 5.0
21801 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21802 headers before <sys/resource.h>.
21803 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21805 Reported by Nelson H. F. Beebe.
21807 strverscmp: migrate from "strverscmp.h" to <string.h>
21808 * modules/string (Makefile.am): Add new hooks.
21809 * modules/strverscmp (Files): Remove strverscmp.h.
21810 (Depends-on): Add string.
21811 (configure.ac): Add indicator.
21812 (Include): Mention new header.
21813 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21815 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21817 * lib/strverscmp.h: Delete.
21818 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21819 * tests/test-strverscmp.c (includes): Adjust client.
21820 * lib/check-version.c (includes): Likewise.
21821 * NEWS: Document the change.
21823 strverscmp: add unit test
21824 * modules/strverscmp-tests: New file.
21825 * tests/test-strverscmp.c: Likewise.
21827 2008-08-19 Simon Josefsson <simon@josefsson.org>
21829 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21830 regarding Windows crypto stuff, from Mono.
21832 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21834 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21835 if present, for intel RND. Return error on failures.
21837 2008-08-18 Ben Pfaff <blp@gnu.org>
21839 gitlog-to-changelog: give better diagnostic for failed pipe-open
21840 * build-aux/gitlog-to-changelog: Improve error message: suggest
21841 that the version of Git may be too old.
21843 2008-08-18 Simon Josefsson <simon@josefsson.org>
21845 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
21846 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
21848 2008-08-18 Bruno Haible <bruno@clisp.org>
21850 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21853 2008-08-18 Bruno Haible <bruno@clisp.org>
21855 * lib/glthread/threadlib.c: Include <pthread.h>.
21857 2008-08-18 Bruno Haible <bruno@clisp.org>
21859 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21860 glthread_recursive_lock_* macros.
21861 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21864 2008-08-18 Bruno Haible <bruno@clisp.org>
21866 * lib/glthread/thread.c: Avoid forcing a context switch right after
21869 2008-08-17 Bruno Haible <bruno@clisp.org>
21871 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21872 * lib/glthread/thread.h: Provide Win32 specific implementation.
21873 * modules/thread (Files): Add lib/glthread/thread.c.
21874 (Depends-on): Add lock.
21875 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21877 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21879 New module 'yield'.
21880 * modules/yield: New file.
21881 * lib/glthread/yield.h: New file.
21882 * m4/yield.m4: New file.
21883 * MODULES.html.sh (Multithreading): Add yield.
21885 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21887 New module 'thread'.
21888 * modules/thread: New file.
21889 * lib/glthread/thread.h: New file.
21890 * m4/thread.m4: New file.
21891 * MODULES.html.sh (Multithreading): Add thread.
21893 2008-08-17 Bruno Haible <bruno@clisp.org>
21895 * lib/glthread/lock.h: Include <stdlib.h> always.
21896 * lib/glthread/tls.h: Likewise.
21897 * lib/glthread/cond.h: Likewise.
21899 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21902 * modules/cond: New file.
21903 * lib/glthread/cond.h: New file.
21904 * lib/glthread/cond.c: New file.
21905 * m4/cond.m4: New file.
21906 * MODULES.html.sh (Multithreading): Add cond.
21908 2008-08-16 Eric Blake <ebb9@byu.net>
21910 c-stack: fix regression on Irix 5.3 from 2008-06-21
21911 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21913 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21914 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21915 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21916 * modules/signal (Makefile.am): Use the value.
21917 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21918 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21919 * doc/posix-headers/signal.texi (signal.h): Document this
21921 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21922 Reported by Tom G. Christensen.
21924 2008-08-17 Bruno Haible <bruno@clisp.org>
21926 New module 'threadlib'.
21927 * modules/threadlib: New file.
21928 * lib/glthread/threadlib.c: New file, extracted from
21929 lib/glthread/lock.c.
21930 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21932 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21933 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21934 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21936 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21937 (gl_DISABLE_THREADS): Remove macro.
21938 * modules/lock (Files): Remove build-aux/config.rpath.
21939 (Depends-on): Remove havelib. Add threadlib.
21940 (configure.ac-early): Remove section.
21941 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21942 * modules/tls (Depends-on): Remove lock. Add threadlib.
21943 (Link): New section, copied from threadlib.
21944 * MODULES.html.sh (Multithreading): Add threadlib.
21946 2008-08-14 Bruno Haible <bruno@clisp.org>
21948 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21949 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21950 glthread_rwlock_unlock, glthread_rwlock_destroy,
21951 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21952 glthread_recursive_lock_destroy): Define as macros always.
21953 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21954 glthread_lock_lock.
21955 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21956 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21957 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21958 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21959 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21960 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21961 (glthread_recursive_lock_lock_func): Renamed from
21962 glthread_recursive_lock_lock.
21963 (glthread_recursive_lock_unlock_func): Renamed from
21964 glthread_recursive_lock_unlock.
21965 (glthread_recursive_lock_destroy_func): Renamed from
21966 glthread_recursive_lock_destroy.
21968 2008-08-14 Bruno Haible <bruno@clisp.org>
21970 * lib/glthread/lock.h: Renamed from lib/lock.h.
21971 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21972 * lib/glthread/tls.h: Renamed from lib/tls.h.
21973 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21974 * lib/fstrcmp.c: Update includes.
21975 * lib/strsignal.c: Update includes.
21976 * modules/lock (Files, Makefile.am): Update.
21977 (Include): Change to "glthread/lock.h".
21978 * modules/tls (Files, Makefile.am): Update.
21979 (Include): Change to "glthread/tls.h".
21980 * tests/test-lock.c: Update includes.
21981 * tests/test-tls.c: Update includes.
21982 * NEWS: Mention the renamed header files.
21984 2008-08-11 Jim Meyering <meyering@redhat.com>
21986 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21988 2008-08-11 Eric Blake <ebb9@byu.net>
21990 test-c-stack: avoid C99-ism
21991 * tests/test-c-stack.c (main): Fix whitespace, move declaration
21993 Reported by Alain Guibert.
21995 2008-08-10 Jim Meyering <meyering@redhat.com>
21997 ensure that return value of uinttostr et al are not ignored
21998 * lib/inttostr.h (__GNUC_PREREQ): Define.
21999 (__attribute_warn_unused_result__): Define.
22000 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22002 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
22004 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22005 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22007 2008-08-07 Jim Meyering <meyering@redhat.com>
22009 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22011 * modules/mkstemp (License): Relicense under LGPLv2+.
22012 * modules/tempname (License): Likewise.
22014 2008-08-06 Bruno Haible <bruno@clisp.org>
22016 * lib/poll.c (poll): Further micro-optimization.
22018 2008-08-06 Jim Meyering <meyering@redhat.com>
22020 inet_pton.c: use locale-independent tolower
22021 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22022 (inet_pton6): Use c_tolower rather than tolower.
22023 * modules/inet_pton (Depends-on): Add c-ctype.
22025 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
22027 * lib/poll.c (poll): Avoid division when timeout is 0, cache
22028 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
22030 2008-08-06 Jim Meyering <meyering@redhat.com>
22032 * modules/inet_pton (License): Relicense under LGPLv2+.
22034 2008-08-03 Bruno Haible <bruno@clisp.org>
22036 Additional non-aborting API for lock and tls.
22037 * lib/lock.h: Include <errno.h>.
22038 (glthread_lock_init): New macro/function.
22039 (gl_lock_init): Define as wrapper around glthread_lock_init.
22040 (glthread_lock_lock): New macro/function.
22041 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22042 (glthread_lock_unlock): New macro/function.
22043 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22044 (glthread_lock_destroy): New macro/function.
22045 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22046 (glthread_rwlock_init): New macro/function.
22047 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22048 (glthread_rwlock_rdlock): New macro/function.
22049 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22050 (glthread_rwlock_wrlock): New macro/function.
22051 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22052 (glthread_rwlock_unlock): New macro/function.
22053 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22054 (glthread_rwlock_destroy): New macro/function.
22055 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22056 (glthread_recursive_lock_init): New macro/function.
22057 (gl_recursive_lock_init): Define as wrapper around
22058 glthread_recursive_lock_init.
22059 (glthread_recursive_lock_lock): New macro/function.
22060 (gl_recursive_lock_lock): Define as wrapper around
22061 glthread_recursive_lock_lock.
22062 (glthread_recursive_lock_unlock): New macro/function.
22063 (gl_recursive_lock_unlock): Define as wrapper around
22064 glthread_recursive_lock_unlock.
22065 (glthread_recursive_lock_destroy): New macro/function.
22066 (gl_recursive_lock_destroy): Define as wrapper around
22067 glthread_recursive_lock_destroy.
22068 (glthread_once): New macro/function.
22069 (gl_once): Define as wrapper around glthread_once.
22070 Update function declarations.
22071 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22072 glthread_rwlock_init. Return error code.
22073 (glthread_rwlock_rdlock_multithreaded): Renamed from
22074 glthread_rwlock_rdlock. Return error code.
22075 (glthread_rwlock_wrlock_multithreaded): Renamed from
22076 glthread_rwlock_wrlock. Return error code.
22077 (glthread_rwlock_unlock_multithreaded): Renamed from
22078 glthread_rwlock_unlock. Return error code.
22079 (glthread_rwlock_destroy_multithreaded): Renamed from
22080 glthread_rwlock_destroy. Return error code.
22081 (glthread_recursive_lock_init_multithreaded): Renamed from
22082 glthread_recursive_lock_init. Return error code.
22083 (glthread_recursive_lock_lock_multithreaded): Renamed from
22084 glthread_recursive_lock_lock. Return error code.
22085 (glthread_recursive_lock_unlock_multithreaded): Renamed from
22086 glthread_recursive_lock_unlock. Return error code.
22087 (glthread_recursive_lock_destroy_multithreaded): Renamed from
22088 glthread_recursive_lock_destroy. Return error code.
22089 (glthread_once_call): Make static.
22090 (glthread_once_multithreaded): Renamed from glthread_once.
22091 * lib/tls.h: Include <errno.h>.
22092 (glthread_tls_key_init): New macro/function.
22093 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22094 (glthread_tls_set): New macro/function.
22095 (gl_tls_set): Define as wrapper around glthread_tls_set.
22096 (glthread_tls_key_destroy): New macro/function.
22097 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22098 Update function declarations.
22099 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22101 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22103 2008-08-04 Eric Blake <ebb9@byu.net>
22105 gnumakefile: use space, not TAB, outside of targets
22106 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22108 2008-08-02 Jim Meyering <meyering@redhat.com>
22110 getdate.y: avoid locale-dependent date parsing failure
22111 In Turkish locales, getdate would fail to recognize keywords
22112 containing a lowercase "i". The solution is not to rely on
22113 locale-sensitive case-conversion.
22114 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22115 (lookup_word): Use c_toupper in place of toupper.
22116 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22117 Reported by Vefa Bicakci <bicave@superonline.com> in
22118 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22119 * modules/getdate (Depends-on): Add c-ctype.
22121 2008-08-02 Bruno Haible <bruno@clisp.org>
22123 * gnulib-tool (func_import): When updating or creating a .gitignore
22124 file, prepend each added line with a slash, and ignore leading slashes
22125 from the existing lines.
22126 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22128 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22130 Portability fix for GNU make 3.79.1.
22131 * top/GNUmakefile: Avoid 'else COND', which older GNU make
22132 versions do not understand.
22134 2008-08-01 Bruno Haible <bruno@clisp.org>
22136 Work around bug of HP-UX 10.20 cc with -0.0 literal.
22137 * tests/test-isnanf.h (zero): New variable.
22138 (main): Avoid literal -0.0f.
22139 * tests/test-isnand.h (zero): New variable.
22140 (main): Avoid literal -0.0.
22141 * tests/test-isnanl.h (zero): New variable.
22142 (main): Avoid literal -0.0L.
22143 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22144 (test_float, test_double, test_long_double): Avoid literals -0.0f,
22146 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22147 (test_signbitd): Avoid literal -0.0.
22148 (test_signbitl): Avoid literal -0.0L.
22149 * tests/test-ceilf1.c (zero): New variable.
22150 (main): Avoid literal -0.0f.
22151 * tests/test-ceill.c (zero): New variable.
22152 (main): Avoid literal -0.0L.
22153 * tests/test-floorf1.c (zero): New variable.
22154 (main): Avoid literal -0.0f.
22155 * tests/test-floorl.c (zero): New variable.
22156 (main): Avoid literal -0.0L.
22157 * tests/test-roundf1.c (zero): New variable.
22158 (main): Avoid literal -0.0f.
22159 * tests/test-round1.c (zero): New variable.
22160 (main): Avoid literal -0.0.
22161 * tests/test-roundl.c (zero): New variable.
22162 (main): Avoid literal -0.0L.
22163 * tests/test-truncf1.c (zero): New variable.
22164 (main): Avoid literal -0.0f.
22165 * tests/test-trunc1.c (zero): New variable.
22166 (main): Avoid literal -0.0.
22167 * tests/test-truncl.c (zero): New variable.
22168 (main): Avoid literal -0.0L.
22169 * tests/test-frexp.c (zero): New variable.
22170 (main): Avoid literal -0.0.
22171 * tests/test-frexpl.c (zero): New variable.
22172 (main): Avoid literal -0.0L.
22173 * tests/test-ldexpl.c (zero): New variable.
22174 (main): Avoid literal -0.0L.
22175 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22176 (zerod, zerol): New variables.
22177 (test_function): Avoid literals -0.0, -0.0L.
22178 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22179 (zerod, zerol): New variables.
22180 (test_function): Avoid literals -0.0, -0.0L.
22181 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22182 (zerod, zerol): New variables.
22183 (test_function): Avoid literals -0.0, -0.0L.
22184 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22185 (zerod, zerol): New variables.
22186 (test_function): Avoid literals -0.0, -0.0L.
22187 * tests/test-strtod.c (zero): New variable.
22188 (main): Avoid literal -0.0.
22189 Reported by Jonathan C. Patschke <jp@centtech.com>.
22191 2008-07-31 Jim Meyering <meyering@redhat.com>
22193 sha256.h: correct definition of SHA224_DIGEST_SIZE
22194 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22195 Reported by Paulie Pena IV <paulie4@gmail.com>.
22196 Define as 224 / 8, rather than as a literal.
22197 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22198 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22199 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22201 2008-07-31 Bruno Haible <bruno@clisp.org>
22203 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22204 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22205 Reported by Jonathan Patschke <jp@centtech.com>.
22207 2008-07-31 Bruno Haible <bruno@clisp.org>
22209 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22210 Reported by Paolo Bonzini <bonzini@gnu.org>.
22212 2008-07-30 Eric Blake <ebb9@byu.net>
22214 test-strtod: allow compilation without -lm
22215 * tests/test-strtod.c (main): Avoid link dependence on fabs.
22216 Reported by Dennis Clarke <blastwave@gmail.com>.
22218 2008-07-28 Jim Meyering <meyering@redhat.com>
22220 bootstrap: work also when there are no .po files in po/
22221 * build-aux/bootstrap (update_po_files): Complete the change
22222 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22224 2008-07-27 Jim Meyering <meyering@redhat.com>
22226 * users.txt: Add zile.
22228 2008-07-26 Ben Pfaff <blp@gnu.org>
22230 Add missing dependencies on new m4/exponent[fdl].m4 files.
22231 * modules/isnanf-nolibm: Add m4/exponentf.m4.
22232 * modules/isnand-nolibm: Add m4/exponentd.m4.
22233 * modules/isnanl-nolibm: Add m4/exponentl.m4.
22234 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22235 m4/isnan[fdl].m4, because the macros actually used moved.
22236 Reported by Jim Meyering.
22238 2008-07-14 Ben Pfaff <blp@gnu.org>
22241 * lib/isinf.c: New file.
22242 * lib/math.in.h: Define isinf macro if we have decided to replace
22244 * m4/isinf.m4: New file.
22245 * m4/math_h.m4: Initialize and substitute variables for isinf
22247 * modules/isinf: New file.
22248 * modules/isinf-tests: New file.
22249 * modules/math: Add substitutions for new module.
22250 * tests/test-isinf.c: New file.
22251 * doc/posix-functions/isinf.texi: Mention new module.
22252 * MODULES.html.sh: Mention new module.
22254 2008-07-14 Ben Pfaff <blp@gnu.org>
22256 Factor out some macros for use by additional modules.
22257 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22259 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22261 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22263 * m4/exponentf.m4: New file.
22264 * m4/exponentd.m4: New file.
22265 * m4/exponentl.m4: New file.
22266 * modules/isnanf: Use new file m4/exponentf.m4.
22267 * modules/isnand: Use new file m4/exponentd.m4.
22268 * modules/isnanl: Use new file m4/exponentl.m4.
22270 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22272 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22273 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22274 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22275 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22277 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22278 readlink on platforms without PATH_MAX.
22280 2008-07-21 Eric Blake <ebb9@byu.net>
22282 Warn, not fail, on stale version.
22283 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22285 Don't allow installation with stale devel version number.
22286 * top/GNUmakefile (_is-install-target): New macro.
22287 (_curr-ver): Forbid installation with stale version number.
22289 2008-07-20 Bruno Haible <bruno@clisp.org>
22291 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22293 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22295 2008-07-20 Bruno Haible <bruno@clisp.org>
22297 * lib/c-stack.h (c_stack_action): Add documentation.
22298 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22300 2008-07-20 Bruno Haible <bruno@clisp.org>
22302 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22303 * modules/readlink (License): Likewise.
22305 2008-07-17 Eric Blake <ebb9@byu.net>
22307 * modules/c-stack (Link): Fix typo.
22309 Make c-stack use libsigsegv, when available.
22310 * modules/c-stack (Depends-on): Add libsigsegv.
22311 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22313 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22314 (segv_handler, overflow_handler, c_stack_action)
22315 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22316 implementation when libsigsegv is available, but only when using
22317 the library is necessary.
22318 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22319 comment, explaining why XSI check fails on Linux.
22320 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22321 * tests/test-c-stack2.sh: Tweak skip message.
22322 * NEWS: Document new link-time requirements.
22324 2008-07-16 Eric Blake <ebb9@byu.net>
22326 c-stack: Expose false positives when not using libsigsegv.
22327 * modules/c-stack-tests (Files): Expand test.
22328 * tests/test-c-stack.c (main): Add means to conditionally trigger
22329 non-overflow SIGSEGV.
22330 * tests/test-c-stack2.sh: New file.
22332 2008-07-14 Bruno Haible <bruno@clisp.org>
22334 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22335 Reported by Eric Blake.
22337 2008-07-14 Sam Steingold <sds@gnu.org>
22338 Bruno Haible <bruno@clisp.org>
22340 New module libsigsegv.
22341 * modules/libsigsegv: New file.
22342 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22344 * MODULES.html.sh (Signal handling): New section.
22346 2008-07-14 Bruno Haible <bruno@clisp.org>
22348 * modules/unictype/ctype-* (Description): Add the word "function".
22349 Improves the resulting doc in MODULES.html.
22351 2008-07-12 Ben Pfaff <blp@gnu.org>
22353 Add longlong module.
22354 * modules/longlong: New file.
22356 2008-07-12 Bruno Haible <bruno@clisp.org>
22358 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22361 2008-07-10 Ben Pfaff <blp@gnu.org>
22364 * doc/posix-functions/isnan.texi: Mention new module.
22365 * lib/math.in.h: Define isnan macro if we have decided to replace
22367 * m4/isnan.m4: New file.
22368 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22369 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22371 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22373 * m4/math_h.m4: Initialize and substitute variables for isnan
22375 * modules/isnan: New file.
22376 * modules/isnan-tests: New file.
22377 * modules/math: Add substitutions for new module.
22378 * tests/test-isnan.c: New file.
22379 * MODULES.html.sh: Mention new module.
22381 2008-07-10 Ben Pfaff <blp@gnu.org>
22384 * lib/isnanf.m4: New file.
22385 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22386 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22387 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22388 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22389 * modules/isnanf: New file.
22390 * modules/isnanf-tests: New file.
22391 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22393 * tests/test-isnanf-nolibm.c: factored most of its contents into
22394 new file tests/test-isnanf.h.
22395 * tests/test-isnanf.h: New file.
22396 * tests/test-isnanf.c: New file.
22397 * MODULES.html.sh: Mention new module.
22398 * doc/glibc-functions/isnanf.texi: Mention new module.
22400 2008-07-10 Ben Pfaff <blp@gnu.org>
22403 * lib/isnand.h: New file.
22404 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22405 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22406 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22407 functionality also.
22408 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22409 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22410 (gl_HAVE_ISNAND_IN_LIBM): New macro.
22411 * modules/isnand: New file.
22412 * modules/isnand-tests: New file.
22413 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22415 * tests/test-isnand-nolibm.c: factored most of its contents into
22416 new file tests/test-isnand.h.
22417 * tests/test-isnand.h: New file.
22418 * tests/test-isnand.c: New file.
22419 * MODULES.html.sh: Mention new module.
22421 2008-07-10 Ben Pfaff <blp@gnu.org>
22423 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22424 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22425 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22426 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22427 * modules/isnanf-nolibm: Update references to renamed files.
22428 * modules/isnand-nolibm: Likewise.
22429 * modules/isnanf-nolibm-tests: Likewise.
22430 * modules/isnand-nolibm-tests: Likewise.
22431 * lib/frexp.c: Likewise.
22432 * lib/isfinite.c: Likewise.
22433 * lib/signbitd.c: Likewise.
22434 * lib/signbitf.c: Likewise.
22435 * lib/vasnprintf.c: Likewise.
22436 * tests/test-ceilf1.c: Likewise.
22437 * tests/test-ceilf2.c: Likewise.
22438 * tests/test-floorf1.c: Likewise.
22439 * tests/test-floorf2.c: Likewise.
22440 * tests/test-frexp.c: Likewise.
22441 * tests/test-round1.c: Likewise.
22442 * tests/test-round2.c: Likewise.
22443 * tests/test-roundf1.c: Likewise.
22444 * tests/test-strtod.c: Likewise.
22445 * tests/test-trunc1.c: Likewise.
22446 * tests/test-trunc2.c: Likewise.
22447 * tests/test-truncf1.c: Likewise.
22448 * tests/test-truncf2.c: Likewise.
22449 * NEWS: Mention the renamed header files.
22451 2008-07-11 Jim Meyering <meyering@redhat.com>
22453 vc-list-files: make the last-resort awk code more portable
22454 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22455 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22456 does not support it.
22458 2008-07-10 Eric Blake <ebb9@byu.net>
22460 Work with tar's bootstrap.
22461 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22462 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22465 2008-07-09 Jim Meyering <meyering@redhat.com>
22467 posix-shell.m4: fix typo that made this test malfunction
22468 * m4/posix-shell.m4: Remove capitalization in variable name.
22470 2008-07-08 Bruno Haible <bruno@clisp.org>
22472 * m4/onceonly.m4: Update comments.
22473 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22475 2008-07-04 Jim Meyering <meyering@redhat.com>
22477 * users.txt: Add vc-dwim.
22478 (bison, coreutils): Use the gitweb URL.
22480 2008-07-03 Jim Meyering <meyering@redhat.com>
22482 * users.txt: Add libffcall. From Sam Steingold.
22484 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22486 getdate.y: do not ignore TZ with relative day, month or year offset
22487 * lib/getdate.y (get_date): Move the tz-handling block to follow the
22488 relative-date-handling, since otherwise, the latter would clobber the
22489 sole output (an updated Start value) of the tz-handling block.
22490 * tests/test-getdate.c: Tests for the fix
22492 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22494 Recognize 'foo_LIBRARIES += libgnu.a'.
22495 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22496 makefile snippet has already specified an installation location,
22499 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22501 getdate.y: factor out common actions
22502 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22503 Use them in place of open-coded actions.
22505 2008-07-01 Simon Josefsson <simon@josefsson.org>
22507 Add self-test for getdate module.
22508 * modules/getdate-tests: New file.
22509 * tests/test-getdate.c: New file.
22511 2008-06-29 Bruno Haible <bruno@clisp.org>
22513 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22515 Reported by Sylvain Beucler <beuc@beuc.net>.
22517 2008-06-29 Bruno Haible <bruno@clisp.org>
22519 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22520 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22522 2008-06-29 Bruno Haible <bruno@clisp.org>
22524 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22526 Reported by Sylvain Beucler <beuc@beuc.net>.
22528 2008-06-26 Jim Meyering <meyering@redhat.com>
22530 make several modules depend on the "open" module
22531 This provides slightly increased consistency when opening-for-write
22532 the name of a non-directory spelled with a trailing slash.
22533 * modules/chdir-safer: Likewise.
22534 * modules/chown: Likewise.
22535 * modules/clean-temp: Likewise.
22536 * modules/copy-file: Likewise.
22537 * modules/fchdir: Likewise.
22538 * modules/fcntl-safer: Likewise.
22539 * modules/pipe: Likewise.
22540 * modules/utime: Likewise.
22541 Prompted by Eric Blake and Bruno Haible.
22543 2008-06-24 Andreas Schwab <schwab@suse.de>
22545 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22546 literals can be used as initializers for global variables.
22548 2008-06-23 Eric Blake <ebb9@byu.net>
22550 Make gnulib-cache.m4 easier to diff.
22551 * gnulib-tool (func_import): Allow newlines when reading cached
22552 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22554 2008-06-23 Bruno Haible <bruno@clisp.org>
22556 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22557 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22558 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22559 m4/signalblocking.m4.
22560 (gl_PREREQ_SIGACTION): Don't invoke it.
22561 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22562 gl_PREREQ_SIG_HANDLER_H.
22563 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22564 Don't check for sigaction here.
22566 2008-06-23 Bruno Haible <bruno@clisp.org>
22568 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22569 (install_handlers): Don't set the SA_RESETHAND flag.
22571 2008-06-23 Bruno Haible <bruno@clisp.org>
22573 * m4/sigaction.m4: Comment fixes.
22574 * lib/signal.in.h: Likewise.
22576 2008-06-23 Eric Blake <ebb9@byu.net>
22579 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22581 Avoid SA_ namespace.
22582 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22583 Reported by Ralf Wildenhues.
22585 Avoid test failure due to SA_RESTORER.
22586 * tests/test-sigaction.c (SA_MASK): New macro.
22587 (main): Avoid failing due to extension flags being set.
22588 Reported by Jim Meyering.
22590 Revert use of sig-handler.h in sigprocmask.c.
22591 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22592 it requires the existence of struct sigaction.
22593 * lib/sigprocmask.c (handler_t): Restore typedef.
22594 (rpl_signal, old_handlers): Use local type.
22596 2008-06-22 Bruno Haible <bruno@clisp.org>
22598 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22600 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22602 2008-06-22 Bruno Haible <bruno@clisp.org>
22604 * doc/posix-functions/siginterrupt.texi: Move note.
22606 * lib/signal.in.h (SA_RESTART): New macro.
22607 * lib/sigaction.c: Update comment.
22609 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22611 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22612 (gl_PREREQ_SIGPROCMASK): Invoke it.
22613 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22615 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22617 * lib/sigprocmask.c: Update a comment.
22619 2008-06-21 Eric Blake <ebb9@byu.net>
22621 Use sigaction module rather than signal().
22622 * modules/c-stack (Depends-on): Add sigaction.
22623 * modules/fatal-signal (Depends-on): Likewise.
22624 * modules/nanosleep (Depends-on): Likewise.
22625 * modules/sigprocmask (Files): Add sig-handler.h.
22626 * modules/sigaction (Files): Likewise.
22627 * lib/sig-handler.h (get_handler): New file, suggested by Paul
22629 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22630 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22631 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22632 (init_fatal_signals): Likewise.
22633 * lib/nanosleep.c (rpl_nanosleep): Likewise.
22634 (siginterrupt): Delete fallback.
22635 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22637 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22640 New module sigaction, for mingw.
22641 * modules/sigaction: New module...
22642 * modules/sigaction-tests: ...and its test.
22643 * m4/sigaction.m4: New file.
22644 * lib/sigaction.c: Likewise.
22645 * tests/test-sigaction.c: Likewise.
22646 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22647 * modules/signal (Makefile.am): Likewise.
22648 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22650 * doc/posix-headers/signal.texi (signal.h): Mention provided
22652 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22653 that sigaction is preferable.
22654 * doc/posix-functions/sigaction.texi (sigaction): Mention new
22656 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22659 Improve robustness of sigprocmask by overriding signal.
22660 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22662 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22663 (SIGKILL, SIGSTOP): Provide fallbacks.
22664 (rpl_signal): Implement.
22665 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22666 signal can be called inside handlers.
22668 Fix nanosleep module on mingw.
22669 * modules/nanosleep (Depends-on): Add sys_select.
22670 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22672 Fix licensing of sigprocmask.
22673 * modules/raise (License): Relicense as LGPL.
22675 2008-06-21 Bruno Haible <bruno@clisp.org>
22677 * lib/propername.c (proper_name_utf8): Don't use the transliterated
22678 result if it contains question marks.
22679 Reported by Michael Geng <linux@michaelgeng.de>.
22681 2008-06-19 Bruno Haible <bruno@clisp.org>
22684 * doc/gnulib.texi: Include updated-stamp.texi.
22685 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22686 (updated-stamp.texi): New rule.
22687 (gnulib.info): Depend on it.
22688 * doc/.gitignore: Add updated-stamp.texi.
22689 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22691 2008-06-19 Bruno Haible <bruno@clisp.org>
22693 * doc/Makefile (gnulib.info): Update and simplify dependencies.
22694 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22696 2008-06-19 Eric Blake <ebb9@byu.net>
22698 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22699 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22700 Reported by Stepan Kasal.
22702 2008-06-18 Bruno Haible <bruno@clisp.org>
22704 * lib/fatal-signal.c (init_fatal_signals): Add comment.
22705 Reported by Eric Blake.
22707 2008-06-18 Eric Blake <ebb9@byu.net>
22709 Work around cygwin 1.5.25 strsignal bug.
22710 * tests/test-strsignal.c: Allow for const char *.
22711 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22713 2008-06-18 Simon Josefsson <simon@josefsson.org>
22715 * users.txt: Update URL to article and add author/date
22718 2008-06-17 Bruno Haible <bruno@clisp.org>
22720 New macro gl_DISABLE_THREADS.
22721 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22722 if the user did not pass --enable-threads or --disable-threads option.
22723 (gl_DISABLE_THREADS): New macro.
22724 Reported by Eric Blake <ebb9@byu.net>.
22726 2008-06-17 Bruno Haible <bruno@clisp.org>
22728 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22729 when the macro ignores it.
22730 Based on a patch by Eric Blake <ebb9@byu.net>.
22732 2008-06-17 Bruno Haible <bruno@clisp.org>
22734 * modules/tls (License): Change to LGPLv2+.
22735 Reported by Eric Blake.
22737 2008-06-17 Eric Blake <ebb9@byu.net>
22739 Simplify c-stack prerequisites.
22740 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22741 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22742 no longer requires <ucontext.h> to exist. Optimize setrlimit
22744 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22747 Move c-stack test into testsuite.
22748 * modules/c-stack-tests: New file.
22749 * lib/c-stack.c [DEBUG]: Move test program...
22750 * tests/test-c-stack.c: ...into this new file. Skip rather than
22751 fail test if sigaltstack is lacking.
22752 * tests/test-c-stack.sh: New driver file.
22754 2008-06-16 Eric Blake <ebb9@byu.net>
22756 Use raise module consistently.
22757 * modules/fatal-signal (Depends-on): Add raise.
22758 * modules/sigprocmask (Depends-on): Likewise.
22759 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22760 * lib/sigprocmask.c (sigprocmask): Likewise.
22761 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22762 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22764 Fix compliance bug in sigpending.
22765 * lib/sigprocmask.c (sigpending): Return pending array via
22766 parameter, not return value.
22768 2008-06-14 Eric Blake <ebb9@byu.net>
22770 Improve obstack-printf test code.
22771 * tests/test-obstack-printf.c (test_function): Fix comment, and
22772 simplify usage of obstack_* in macros. Add a test for coverage.
22773 Reported by Bruno Haible.
22775 2008-06-14 Bruno Haible <bruno@clisp.org>
22777 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22778 array size as a constant, not as a const variable.
22779 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22780 AC_USE_SYSTEM_EXTENSIONS.
22781 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22782 Test whether the obstack_printf function actually exists.
22783 * modules/obstack-printf (Depends-on): Add extensions.
22784 (Include): Remove obstack.h.
22785 * modules/obstack-printf-posix (Depends-on): Add extensions.
22786 (Include): Remove obstack.h.
22788 2008-06-13 Eric Blake <ebb9@byu.net>
22790 Add obstack-printf and obstack-printf-posix modules.
22791 * modules/obstack-printf: New file.
22792 * modules/obstack-printf-posix: Likewise.
22793 * MODULES.html.sh (Misc): Mention them.
22794 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22796 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22798 * modules/stdio (Makefile.am): Accomodate new modules.
22799 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22800 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22802 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22804 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22805 (gl_REPLACE_OBSTACK_PRINTF): New macros
22806 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22807 * tests/test-obstack-printf.c: New file.
22808 * modules/obstack-printf-tests: Likewise.
22809 * modules/obstack-printf-posix-tests: Likewise.
22811 2008-06-11 Bruno Haible <bruno@clisp.org>
22813 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22814 * lib/open.c: Include errno.h.
22815 (open): Fail when attempting to write to a file that has a trailing
22817 * tests/test-open.c (main): Test against trailing slash bug.
22818 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22820 2008-06-10 Bruno Haible <bruno@clisp.org>
22822 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22823 for $? to work inside the trap command, with various /bin/sh-s.
22824 * tests/test-vc-list-files-cvs.sh: Likewise.
22826 2008-06-10 Bruno Haible <bruno@clisp.org>
22828 * lib/acl-internal.h: Don't include gettext.h here.
22829 * lib/set-mode-acl.c: Include gettext.h here.
22830 * lib/copy-acl.c: Likewise.
22832 2008-06-10 Bruno Haible <bruno@clisp.org>
22834 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22835 * lib/wait-process.c (wait_subprocess): Likewise.
22836 * lib/execute.h (execute): Add termsigp argument.
22837 * lib/execute.c (execute): Likewise.
22838 * lib/csharpcomp.c (compile_csharp_using_pnet,
22839 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22840 * lib/csharpexec.c (execute_csharp_using_pnet,
22841 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22842 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22843 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22844 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22845 is_jikes_present): Update.
22846 * lib/javaexec.c (execute_java_class): Update.
22847 * lib/javaversion.c (execute_and_read_line): Update.
22848 * NEWS: Document the changes.
22849 Reported by Eric Blake.
22851 2008-06-10 Eric Blake <ebb9@byu.net>
22853 Add missing include.
22854 * tests/test-strstr.c (includes): Add <signal.h>.
22855 * tests/test-strcasestr.c (includes): Likewise.
22856 * tests/test-memmem.c (includes): Likewise.
22858 2008-06-10 Bruno Haible <bruno@clisp.org>
22860 * lib/wait-process.c (wait_subprocess): Add an assertion.
22862 2008-06-10 Bruno Haible <bruno@clisp.org>
22864 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22866 2008-06-10 Bruno Haible <bruno@clisp.org>
22868 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22870 * tests/test-strcasestr.c (main): Likewise.
22871 * tests/test-strstr.c (main): Likewise.
22873 2008-06-09 Bruno Haible <bruno@clisp.org>
22875 Work around the Solaris 10 ACE ACLs ABI change.
22876 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22877 declare if ACL_NO_TRIVIAL is present.
22878 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22879 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22880 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22881 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22882 define if ACL_NO_TRIVIAL is present.
22883 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22884 and use the current ABI.
22885 (file_has_acl): Use same #if condition as elsewhere.
22886 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22887 in use, and use the current ABI.
22888 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22889 Reported by Jim Meyering.
22891 2008-06-09 Eric Blake <ebb9@byu.net>
22893 Work around environments that (stupidly) ignore SIGALRM.
22894 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22895 before using alarm().
22896 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22897 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22898 Reported by Ian Beckwith <ianb@erislabs.net>.
22900 Produce autobuild blurb earlier in log.
22901 * modules/autobuild (configure.ac-early): Move AB_INIT here.
22903 2008-06-09 Jim Meyering <meyering@redhat.com>
22904 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22906 utimens.c: correct kernel bug work-around
22907 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
22908 failure, not success, and the kernel bug we're trying to work
22909 around affects not just the utimensat call, but also the fallback
22911 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22913 [HAVE_FUTIMENS]: Use the same work-around, here.
22915 2008-06-09 Jim Meyering <meyering@redhat.com>
22917 add more guards around definition of ACE_-related code
22918 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22919 ALLOW and ACE_OWNER are also defined.
22921 2008-06-08 Bruno Haible <bruno@clisp.org>
22923 * lib/acl-internal.h: Add me as co-author.
22924 * lib/file-has-acl.c: Likewise.
22925 * lib/set-mode-acl.c: Likewise.
22926 * lib/copy-acl.c: Likewise.
22928 2008-06-08 Bruno Haible <bruno@clisp.org>
22930 Add support for AIX ACLs.
22931 * lib/acl-internal.h (acl_nontrivial): New declaration.
22932 * lib/file-has-acl.c (acl_nontrivial): New function.
22933 (file_has_acl): Add implementation using AIX 4 ACL API.
22934 * lib/set-mode-acl.c (qset_acl): Likewise.
22935 * lib/copy-acl.c (qcopy_acl): Likewise.
22937 2008-06-08 Bruno Haible <bruno@clisp.org>
22939 Add support for HP-UX ACLs.
22940 * lib/acl-internal.h (acl_nontrivial): New declaration.
22941 * lib/file-has-acl.c (acl_nontrivial): New function.
22942 (file_has_acl): Add implementation using HP-UX 11 ACL API.
22943 * lib/set-mode-acl.c (qset_acl): Likewise.
22944 * lib/copy-acl.c (qcopy_acl): Likewise.
22946 2008-06-08 Bruno Haible <bruno@clisp.org>
22948 Add support for Cygwin ACLs.
22949 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22950 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22951 the chmod_or_fchmod call.
22952 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22954 2008-06-08 Bruno Haible <bruno@clisp.org>
22956 Fix bug with setuid modes in Solaris 10+ code.
22957 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22958 succeeded, when the mode contains some special bits.
22960 2008-06-08 Bruno Haible <bruno@clisp.org>
22962 Add support for Solaris 7..10 ACLs.
22963 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22965 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22967 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22968 * lib/set-mode-acl.c (qset_acl): Likewise.
22969 * lib/copy-acl.c (qcopy_acl): Likewise.
22971 2008-06-08 Bruno Haible <bruno@clisp.org>
22973 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22975 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22976 (acl_access_nontrivial): Remove MacOS X case.
22977 (file_has_acl): Use acl_extended_nontrivial.
22978 * lib/copy-acl.c (qcopy_acl): Likewise.
22980 2008-06-08 Bruno Haible <bruno@clisp.org>
22982 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22984 2008-06-08 Jim Meyering <meyering@redhat.com>
22986 * modules/acl (Maintainer): Add Bruno Haible.
22988 2008-06-07 Bruno Haible <bruno@clisp.org>
22990 Improve support for Tru64 ACLs.
22991 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22994 2008-06-07 Bruno Haible <bruno@clisp.org>
22996 Add support for MacOS X ACLs.
22997 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22998 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22999 * lib/set-mode-acl.c (qset_acl): Likewise.
23000 * lib/copy-acl.c (qcopy_acl): Likewise.
23002 2008-06-07 Bruno Haible <bruno@clisp.org>
23004 Fix memory leak introduced on 2008-05-22.
23005 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23008 2008-06-07 Bruno Haible <bruno@clisp.org>
23010 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23011 to construct an empty ACL.
23013 2008-06-07 Bruno Haible <bruno@clisp.org>
23015 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23017 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23019 2008-06-07 Bruno Haible <bruno@clisp.org>
23021 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23022 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23024 2008-06-07 Bruno Haible <bruno@clisp.org>
23026 * doc/posix-functions/_setjmp.texi: Explain the use of this function
23027 regardless of POSIX.
23028 * doc/posix-functions/_longjmp.texi: Likewise.
23029 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23030 SystemV platform in this case.
23032 2008-06-06 Eric Blake <ebb9@byu.net>
23034 Document abort() bugs.
23035 * doc/posix-functions/abort.texi (abort): Mention anomalies.
23037 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23038 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23040 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23041 siglongjmp, but only as a macro.
23042 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23044 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23046 Tweak documentation to cover cygwin argz bugs.
23047 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23048 argz bug fix; no code change needed since no cygwin releases
23049 occurred between the last fix and the bug being tested.
23050 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23051 module and recently fixed cygwin bugs.
23052 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23053 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23054 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23055 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23056 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23058 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23059 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23060 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23061 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23062 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23063 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23066 Avoid gcc warning on cygwin.
23067 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23068 !ACL_NO_TRIVIAL]: Avoid unused variable.
23070 2008-06-05 Eric Blake <ebb9@byu.net>
23072 Be tolerant of UNKNOWN version in gnulib-tool test dir.
23073 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23074 git-version-gen fails to come up with a version.
23075 Reported by Simon Josefsson.
23077 2008-06-05 Jim Meyering <meyering@redhat.com>
23078 Paul Eggert <eggert@cs.ucla.edu>
23080 utimens.c: work around a probable Linux kernel bug
23081 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23082 appears to be a kernel bug that causes utimensat to return 280
23083 instead of 0, indicating success.
23085 2008-06-04 Bruno Haible <bruno@clisp.org>
23087 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23090 2008-06-04 Bruno Haible <bruno@clisp.org>
23092 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23093 * lib/file-has-acl.c (acl_access_nontrivial): New function.
23094 (file_has_acl): Use it. Save errno afterwards.
23095 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23097 2008-06-03 Bruno Haible <bruno@clisp.org>
23099 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23100 draft code. Simplify #ifs.
23101 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23102 Put Solaris code after POSIX-draft code. Fix comments regarding
23103 Solaris 10, HP-UX. Mention Cygwin.
23104 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23106 2008-06-03 Eric Blake <ebb9@byu.net>
23108 Provide fallback for older kernels.
23109 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23110 Provide runtime fallback if kernel lacks support.
23111 Reported by Mike Frysinger.
23113 2008-06-02 Bruno Haible <bruno@clisp.org>
23115 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23118 2008-06-02 Bruno Haible <bruno@clisp.org>
23120 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23121 * lib/copy-acl.c (qcopy_acl): Update comment.
23123 2008-06-02 Bruno Haible <bruno@clisp.org>
23125 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23128 2008-06-02 Bruno Haible <bruno@clisp.org>
23130 * tests/test-file-has-acl.sh: Use different code for Cygwin.
23131 * tests/test-set-mode-acl.sh: Likewise.
23132 * tests/test-copy-acl.sh: Likewise.
23133 * tests/test-copy-file.sh: Likewise.
23135 2008-06-02 Bruno Haible <bruno@clisp.org>
23137 * tests/test-file-has-acl.sh: Remove unused code.
23139 2008-06-01 Bruno Haible <bruno@clisp.org>
23141 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23142 (copy_acl): Just a wrapper around qcopy_acl that emits the error
23144 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23146 2008-06-01 Bruno Haible <bruno@clisp.org>
23148 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23149 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23150 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23152 * modules/acl-tests (configure.ac): Remove tests now contained in
23155 2008-06-02 Jim Meyering <meyering@redhat.com>
23157 announce-gen: use a better key-server host name
23158 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23159 it may be more consistently reliable. Suggested by Werner Koch
23160 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23162 2008-06-01 Bruno Haible <bruno@clisp.org>
23164 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23165 Reported by Voroskoi Andras <voroskoi@gmail.com>.
23167 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
23169 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23171 2008-06-01 Bruno Haible <bruno@clisp.org>
23174 * tests/test-file-has-acl.sh: New file.
23175 * tests/test-file-has-acl.c: New file.
23176 * tests/test-set-mode-acl.sh: New file.
23177 * tests/test-set-mode-acl.c: New file.
23178 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23179 * tests/test-copy-acl.c: New file.
23180 * modules/acl-tests: New file, based on modules/copy-file-tests.
23181 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23182 (Depends-on): Add acl-tests.
23183 (configure.ac): Remove checks.
23184 (Makefile.am): Don't create test-sameacls program here any more.
23186 2008-06-01 Bruno Haible <bruno@clisp.org>
23188 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23189 * tests/test-sameacls.c: Include progname.h.
23190 (main): Invoke set_program_name. Portability fixes for MacOS X,
23193 2008-06-01 Bruno Haible <bruno@clisp.org>
23195 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23197 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23199 2008-06-01 Bruno Haible <bruno@clisp.org>
23201 * modules/rpmatch (Depends-on): Add strdup.
23203 2008-06-01 Bruno Haible <bruno@clisp.org>
23205 * lib/pipe.c: Include unistd-safer.h.
23206 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23207 * modules/pipe (Depends-on): Add unistd-safer.
23209 2008-05-30 Simon Josefsson <simon@josefsson.org>
23211 * modules/autobuild (configure.ac): Call AB_INIT.
23213 2008-05-30 Simon Josefsson <simon@josefsson.org>
23215 * tests/test-getaddrinfo.c: Don't print debug messages by default.
23216 Suggested by Bruno Haible <bruno@clisp.org>.
23218 2008-05-30 Simon Josefsson <simon@josefsson.org>
23220 * tests/test-base64.c: Cast size_t to unsigned long when invoking
23221 printf. Use %lu instead of %d. Reported by Bruno Haible
23224 2008-05-29 Eric Blake <ebb9@byu.net>
23226 Prefer new POSIX 200x interfaces over futimesat.
23227 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23228 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23230 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23232 2008-05-28 Bruno Haible <bruno@clisp.org>
23234 * modules/stpcpy (License): Change to LGPLv2+.
23235 Requested by David Lutterkort <dlutter@redhat.com>.
23237 2008-05-27 Bruno Haible <bruno@clisp.org>
23239 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23241 Reported by Jose E. Marchesi <jemarch@gnu.org>.
23243 2008-05-27 Bruno Haible <bruno@clisp.org>
23245 * modules/iconv_open (Link): New section, from module 'iconv'.
23246 * modules/striconv (Link): Likewise.
23247 * modules/striconveh (Link): Likewise.
23248 * modules/xstriconv (Link): Likewise.
23249 * modules/unicodeio (Link): Likewise.
23250 * modules/propername (Link): Likewise.
23251 Reported by Jim Meyering.
23253 2008-05-26 Jim Meyering <meyering@redhat.com>
23255 sha256: do not artificially restrict buffer length to be < 2^32
23256 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23257 uint32_t to size_t.
23258 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23261 avoid unaligned access errors, e.g., on sparc
23262 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23263 direct access through a possibly-unaligned uint64* pointer.
23264 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23265 direct access through a possibly-unaligned uint32* pointer.
23266 Prompted by this patch from Tom "spot" Callaway:
23267 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23269 sha512.c: fix typo in comment
23270 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23272 2008-05-25 Bruno Haible <bruno@clisp.org>
23274 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23275 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23276 (Makefile.am): Update lib_SOURCES.
23278 2008-05-25 Bruno Haible <bruno@clisp.org>
23280 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23282 2008-05-25 Jim Meyering <meyering@redhat.com>
23284 useless-if-before-free: freed expr may have white-space differences
23285 * build-aux/useless-if-before-free: Recognize cases in which the
23286 freed expression differs from the tested one in embedded white
23287 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23288 $1 was used, so we can't make any regexp shy. Improved tests now
23291 useless-if-before-free: accept white space in the expression.
23292 * build-aux/useless-if-before-free: For now, any white space
23293 in the expression must be identical in the free argument.
23295 useless-if-before-free: efficiency tweak
23296 * build-aux/useless-if-before-free: Make the expression-matching
23298 Make the *outer* regexp shy, not the expr-matching one.
23300 update code-in-comment to accept cast of free arg
23301 * build-aux/useless-if-before-free: Update regexp.
23303 2008-05-25 Bruno Haible <bruno@clisp.org>
23305 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23306 * modules/copy-file-tests (Files, Makefile.am): Update.
23307 * tests/test-copy-file.c (func_test_copy): Update.
23309 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23311 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23313 2008-05-23 Bruno Haible <bruno@clisp.org>
23315 Improve support for ACLs on OSF/1.
23316 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23317 Remove fallback for unknown flavors of ACLs.
23319 2008-05-22 Bruno Haible <bruno@clisp.org>
23321 Add support for ACLs on OSF/1.
23322 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23324 (acl_free_text): New macro fallback.
23325 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23327 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23328 acl_free_text function. Require AC_C_INLINE.
23330 2008-05-22 Bruno Haible <bruno@clisp.org>
23332 Make copy_acl work on MacOS X 10.5.
23333 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23334 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23335 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23336 If MODE_INSIDE_ACL, don't assume that every system has the same text
23337 representation for ACLs as FreeBSD.
23338 * lib/copy-acl.c (copy_acl): Add support for platforms with
23340 * lib/file-has-acl.c (file_has_acl): Likewise.
23341 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23342 FreeBSD, MacOS X, or IRIX, respectively.
23344 2008-05-22 Bruno Haible <bruno@clisp.org>
23346 * lib/acl.h: Don't include <sys/acl.h>.
23347 (GETACLCNT): Move fallback to lib/acl-internal.h.
23348 * lib/acl-internal.h: Include <sys/acl.h> here.
23349 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23351 2008-05-22 Bruno Haible <bruno@clisp.org>
23353 Split off copy_acl function to separate file.
23354 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23355 * lib/acl.c (copy_acl): Moved function to separate file.
23356 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23357 * modules/acl (Files): Add lib/copy-acl.c.
23358 (Makefiles.am): Augment lib_SOURCES.
23360 2008-05-22 Bruno Haible <bruno@clisp.org>
23362 * modules/copy-file-tests: New file.
23363 * tests/test-copy-file.sh: New file.
23364 * tests/test-copy-file.c: New file.
23365 * tests/test-copy-file-sameacls.c: New file.
23367 2008-05-22 Eric Blake <ebb9@byu.net>
23370 * tests/test-memcmp.c (main): Pass NULL indirectly.
23372 2008-05-21 Bruno Haible <bruno@clisp.org>
23374 Add reference doc about ACLs.
23375 * doc/acl-resources.txt: New file.
23376 * doc/acl-cygwin.txt: New file.
23378 2008-05-21 Bruno Haible <bruno@clisp.org>
23380 Avoid one more warning from gcc.
23381 * lib/vasnprintf.c (IF_LINT): Update comments.
23382 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23384 2008-05-21 Jim Meyering <meyering@redhat.com>
23386 avoid a warning from gcc
23387 * lib/vasnprintf.c (IF_LINT): Define.
23388 (scale10_round_decimal_long_double):
23389 Use it to avoid a "may be used uninitialized" warning.
23390 (scale10_round_decimal_double): Likewise.
23392 2008-05-21 Simon Josefsson <simon@josefsson.org>
23394 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23397 2008-05-20 Bruno Haible <bruno@clisp.org>
23399 * tests/test-memcmp.c (main): Test also the sign of the result. Test
23400 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23402 2008-05-20 Simon Josefsson <simon@josefsson.org>
23404 * modules/memcmp-tests: New file.
23405 * tests/test-memcmp.c: New file.
23407 2008-05-19 Bruno Haible <bruno@clisp.org>
23409 * modules/propername (Notice, configure.ac): Put quoted "..." into
23411 * lib/propername.h: Update comments accordingly.
23412 Reported by Eric Blake.
23414 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23416 * modules/getpass-gnu (Depends-on): Add fseeko.
23418 2008-05-19 Simon Josefsson <simon@josefsson.org>
23420 * modules/base64-tests: New file.
23422 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23424 * lib/base64.c (base64_decode_ctx): If a decode context structure
23425 was passed in use it to ignore newlines. If a context structure
23426 was _not_ passed in, continue to treat newlines as garbage (this
23427 is the historical behavior). Formerly base64_decode.
23428 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23429 takes a decode context structure.
23430 * lib/base64.h (base64_decode): Macro for four-argument calls.
23431 (base64_decode_alloc): Likewise.
23432 * lib/base64.c (base64_decode_ctx): If a decode context structure
23433 was passed in use it to ignore newlines. If a context structure
23434 was _not_ passed in, continue to treat newlines as garbage (this
23435 is the historical behavior). Formerly base64_decode.
23436 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23437 takes a decode context structure.
23438 * lib/base64.h (base64_decode): Macro for four-argument calls.
23439 (base64_decode_alloc): Likewise.
23441 2008-05-19 Jim Meyering <meyering@redhat.com>
23443 avoid a warning from gcc
23444 * lib/trim.c (IF_LINT): Define.
23445 (trim2): Use it to avoid a "may be used uninitialized" warning.
23448 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23450 2008-05-19 Bruno Haible <bruno@clisp.org>
23452 * doc/glibc-functions/getpass.texi: Document limits of other
23455 2008-05-19 Simon Josefsson <simon@josefsson.org>
23456 Bruno Haible <bruno@clisp.org>
23458 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23460 2008-05-18 Bruno Haible <bruno@clisp.org>
23462 * modules/propername: New file, from GNU gettext.
23463 * lib/propername.h: New file, from GNU gettext.
23464 * lib/propername.c: New file, from GNU gettext.
23465 * MODULES.html.sh (Internationalization functions): Add propername.
23467 2008-05-16 Jim Meyering <meyering@redhat.com>
23468 Bruno Haible <bruno@clisp.org>
23470 Avoid some warnings from "gcc -Wshadow".
23471 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23473 2008-05-15 Eric Blake <ebb9@byu.net>
23475 Extend previous patch to cygwin 1.7.0.
23476 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23477 fast implementation in cygwin >= 1.7.0.
23478 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23479 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23481 2008-05-15 Bruno Haible <bruno@clisp.org>
23483 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23484 implementation in glibc >= 2.9.
23485 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23486 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23488 2008-05-15 Bruno Haible <bruno@clisp.org>
23490 * MODULES.html.sh (Internationalization functions): Remove linebreak.
23491 (Unicode string functions): Add unilbrk/*.
23492 Reported by Karl Berry.
23494 2008-05-15 Eric Blake <ebb9@byu.net>
23496 Fix violation of <stdbool.h> replacement in regex.
23497 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23498 * lib/regexec.c (re_search_internal): Likewise.
23499 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23501 2008-05-15 Jim Meyering <meyering@redhat.com>
23503 avoid distracting test output when git or cvs is not found
23504 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23505 * tests/test-vc-list-files-git.sh: Likewise.
23507 2008-05-15 Eric Blake <ebb9@byu.net>
23509 Glibc finally accepted the memmem speedup code, bugzilla #5514.
23510 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23512 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23513 * doc/posix-functions/strstr.texi (strstr): Likewise.
23514 * lib/str-two-way.h (MAX): Sychronize with glibc.
23516 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
23518 * lib/regcomp.c (optimize_utf8): Add a note on why we test
23520 (calc_first): Initialize constraint field.
23521 (duplicate_node_closure): Use it instead of special casing ANCHORS.
23523 (duplicate_node): Merge constraint field for all node types.
23524 (calc_eclosure_iter): Look at constraint field for all node types.
23525 * lib/regex_internal.c (create_cd_newstate): Don't look at
23528 2008-05-14 Bruno Haible <bruno@clisp.org>
23530 Help GCC to do better code generation.
23531 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23532 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23533 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23534 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23535 Declare with attribute 'malloc' if supported.
23537 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
23539 use "echo STR|wc -c" rather than unportable "expr length STR"
23540 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23541 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23543 2008-05-14 Jim Meyering <meyering@redhat.com>
23545 use dd ibs=$n count=1 ... rather than less-portable head -c$n
23546 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23547 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23548 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23551 2008-05-14 Eric Blake <ebb9@byu.net>
23553 Avoid quadratic growth in gl_LIBSOURCES.
23554 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23555 Suggested by Bruno Haible.
23558 * modules/xmemdup0-tests: New file.
23559 * tests/test-xmemdup0.c: Likewise.
23561 2008-05-13 Eric Blake <ebb9@byu.net>
23563 Split xmemdup0 into its own module.
23564 * modules/xmemdup0: New file.
23565 * lib/xmemdup0.h: Likewise.
23566 * lib/xmemdup0.c: Likewise.
23567 * MODULES.html.sh (Memory management functions): Add xmemdup0.
23568 * lib/xalloc.h (xmemdup0): Remove.
23569 * lib/xmalloc.c (xmemdup0): Likewise.
23571 2008-05-13 Eric Blake <ebb9@byu.net>
23572 Bruno Haible <bruno@clisp.org>
23574 Reduce number of forks required during autoconf.
23575 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23576 and gl_LIBSOURCES_DIR.
23577 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23578 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23579 m4_syscmd per file.
23580 <m4_foreach_w>: Move...
23581 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23583 2008-05-13 Eric Blake <ebb9@byu.net>
23585 * gnulib-tool: Fix various comment typos.
23587 2008-05-12 Bruno Haible <bruno@clisp.org>
23589 Tailor the linebreaking algorithm.
23590 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23592 2008-05-12 Bruno Haible <bruno@clisp.org>
23594 Update to Unicode 5.0.0.
23595 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23596 LBP_JV, LBP_JT. Redistribute values.
23597 (unilbrk_table): Change size.
23598 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23599 Unicode TR#14 rev. 22.
23600 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23601 LBP_JV, LBP_JT. Redistribute values.
23602 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23603 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23605 * lib/unilbrk/lbrkprop1.h: Regenerated.
23606 * lib/unilbrk/lbrkprop2.h: Regenerated.
23607 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23608 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23609 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23611 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23613 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23615 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23616 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23617 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23618 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23619 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23620 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23622 2008-05-11 Bruno Haible <bruno@clisp.org>
23624 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23626 2008-05-11 Bruno Haible <bruno@clisp.org>
23628 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23629 * modules/unilbrk/gen-lbrk: New file.
23631 2008-05-11 Bruno Haible <bruno@clisp.org>
23633 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23634 * m4/sha512.m4 (gl_SHA512): Likewise.
23636 2008-05-11 Jim Meyering <meyering@redhat.com>
23638 New modules: crypto/sha256, crypto/sha512 (from coreutils)
23639 * modules/crypto/sha256: New file.
23640 * modules/crypto/sha512: Likewise.
23641 * lib/sha256.c: Likewise.
23642 * lib/sha256.h: Likewise.
23643 * lib/sha512.c: Likewise.
23644 * lib/sha512.h: Likewise.
23645 * lib/u64.h: Likewise.
23646 * m4/sha256.m4: Likewise.
23647 * m4/sha512.m4: Likewise.
23648 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23650 2008-05-10 Bruno Haible <bruno@clisp.org>
23652 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23653 (Input/Output <stdio.h>): Add xprintf.
23654 (Signal handling <signal.h>): Add strsignal.
23655 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23656 (Core language properties): Add func.
23657 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23658 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23660 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23661 (Input/output): New section.
23662 (File system functions): Add openat-die, stat-macros.
23663 (Networking functions): Add sockets.
23664 (Unicode string functions): Add unictype/*.
23665 (Support for building libraries and executables): Add gperf.
23666 (Support for building documentation): Add agpl-3.0.
23667 (Misc): Add nocrash.
23669 2008-05-10 Bruno Haible <bruno@clisp.org>
23671 * modules/unictype/gen-ctype: New file.
23673 2008-05-10 Jim Meyering <meyering@redhat.com>
23675 Make chdir-safer.c more efficient on a system with no symlinks.
23676 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23677 also if ELOOP is zero. Suggested by Bruno Haible.
23679 Make chdir-safer.c slightly safer.
23680 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23681 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23683 Avoid compile failure on systems without ELOOP (like mingw).
23684 * lib/chdir-safer.c (ELOOP): Define if not already defined.
23685 Reported by Bruno Haible.
23687 2008-05-10 Bruno Haible <bruno@clisp.org>
23689 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23690 (is_utf8_encoding): Use a case-insensitive comparison.
23691 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23694 2008-05-10 Bruno Haible <bruno@clisp.org>
23696 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23697 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23698 * lib/unilbrk/ulc-common.h (iconv_string_length,
23699 iconv_string_keeping_offsets): Remove declarations.
23700 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23701 Don't include <iconv.h>, streq.h, xsize.h.
23702 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23704 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23705 <iconv.h>, streq.h, xsize.h.
23706 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23708 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23709 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23710 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23711 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23713 2008-05-10 Bruno Haible <bruno@clisp.org>
23715 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23716 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23718 * modules/unilbrk/u32-width-linebreaks-tests: New file.
23719 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23721 * modules/unilbrk/u16-width-linebreaks-tests: New file.
23722 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23724 * modules/unilbrk/u8-width-linebreaks-tests: New file.
23725 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23727 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23728 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23730 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23731 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23733 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23734 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23736 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23737 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23739 2008-05-10 Bruno Haible <bruno@clisp.org>
23741 Split up 'linebreak' module.
23742 * lib/unilbrk.h: New file, based on lib/linebreak.h.
23743 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23744 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23746 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23747 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23748 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23750 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23752 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23754 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23755 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23756 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23758 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23760 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23762 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23764 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23766 * modules/unilbrk/base: New file.
23767 * modules/unilbrk/tables: New file.
23768 * modules/unilbrk/u8-possible-linebreaks: New file.
23769 * modules/unilbrk/u16-possible-linebreaks: New file.
23770 * modules/unilbrk/u32-possible-linebreaks: New file.
23771 * modules/unilbrk/ulc-common: New file.
23772 * modules/unilbrk/ulc-possible-linebreaks: New file.
23773 * modules/unilbrk/u8-width-linebreaks: New file.
23774 * modules/unilbrk/u16-width-linebreaks: New file.
23775 * modules/unilbrk/u32-width-linebreaks: New file.
23776 * modules/unilbrk/ulc-width-linebreaks: New file.
23777 * lib/linebreak.h: Remove file.
23778 * lib/linebreak.c: Remove file.
23779 * m4/linebreak.m4: Remove file.
23780 * modules/linebreak: Remove file.
23781 * NEWS: Mention the changes.
23783 2008-05-09 Eric Blake <ebb9@byu.net>
23786 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23788 * lib/xmalloc.c (xmemdup0): New C implementation.
23790 2008-05-08 Bruno Haible <bruno@clisp.org>
23792 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23794 2008-05-07 Eric Blake <ebb9@byu.net>
23796 Support cross-compilation of <wctype.h>.
23797 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23800 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23802 * build-aux/vc-list-files: Add support for bzr.
23804 2008-05-03 Jim Meyering <meyering@redhat.com>
23806 avoid failed assertion with tight malloc
23807 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23809 2008-05-03 Simon Josefsson <simon@josefsson.org>
23811 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23812 are needed from arpa/inet.h.
23813 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23814 Reported by Bruno Haible.
23816 2008-05-02 Jim Meyering <meyering@redhat.com>
23818 avoid compilation error on FreeBSD 6
23819 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23821 2008-05-01 Jim Meyering <meyering@redhat.com>
23823 useless-if-before-free: correct --help's exit status description
23824 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23825 for one or more matches, etc. Reported by Bruno Haible.
23827 vc-list-files: make the stand-alone gnulib test work
23828 * modules/vc-list-files-tests (configure.ac):
23829 Define and AC_SUBST abs_aux_dir.
23830 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23831 $(abs_top_srcdir) to each script and having each of them
23832 duplicate the work of setting PATH, set PATH here, using
23833 the new variable, abs_aux_dir instead.
23834 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23835 * tests/test-vc-list-files-git.sh: Likewise.
23836 Reported by Bruno Haible.
23838 2008-05-01 Bruno Haible <bruno@clisp.org>
23840 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23841 reallocation. Rename 'done' to 'found_delimiter'.
23843 2008-05-01 Jim Meyering <meyering@redhat.com>
23845 vc-list-files: accommodate /bin/sh like the one from Solaris 10
23846 * build-aux/vc-list-files: Use `...`, not $(...).
23848 2008-04-30 Jim Meyering <meyering@redhat.com>
23850 add tests for vc-list-files
23851 * modules/vc-list-files-tests: New module.
23852 * tests/test-vc-list-files-cvs.sh: New file.
23853 * tests/test-vc-list-files-git.sh: New file.
23855 avoid a warning from gcc
23856 * lib/getndelim2.c (IF_LINT): Define.
23857 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23859 vc-list-files: work properly with build-aux/cvsu, too
23860 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23861 to all cvs-based clauses.
23863 vc-list-files: work properly in the CVS+awk case, too
23864 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23866 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23867 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23868 take more than one file argument, so . Add quotes, just in case $dir
23869 ever contains a shell meta-character. Prompted by Soren Hansen in
23870 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23872 2008-04-29 Eric Blake <ebb9@byu.net>
23874 Optimize getndelim2 to use block operations when possible.
23875 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23876 freadseek, and memchr2.
23877 * lib/getndelim2.c (getndelim2): Use them for block reads.
23879 2008-04-29 Bruno Haible <bruno@clisp.org>
23881 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23882 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23883 * modules/inet_ntop (Depends-on): Add extensions.
23884 * modules/inet_pton (Depends-on): Likewise.
23885 Reported by Simon Josefsson.
23887 2008-04-29 Jim Meyering <meyering@redhat.com>
23889 When the is more than one match in a block, match all of them.
23890 * build-aux/useless-if-before-free: Iterate through each block
23891 until there are no more matches.
23893 Fix broken useless-if-before-free script.
23894 * build-aux/useless-if-before-free: Fix typo: missing "?" after
23895 the expression to match cast of argument to free-like function.
23897 2008-04-29 Eric Blake <ebb9@byu.net>
23900 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23902 2008-04-29 Jim Meyering <meyering@redhat.com>
23904 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23905 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23906 by gnulib to exist and to declare e.g., inet_ntop.
23907 Don't include "inet_ntop.h", now removed.
23909 * m4/arpa_inet_h.m4: Remove trailing blanks.
23911 2008-04-29 Eric Blake <ebb9@byu.net>
23913 Silence valgrind on safe reads beyond potential array bounds.
23914 * lib/rawmemchr.valgrind: New file.
23915 * lib/strchrnul.valgrind: Likewise.
23916 * modules/rawmemchr (Files): Distribute new file.
23917 * modules/strchrnul (Files): Likewise.
23918 Suggested by Bruno Haible.
23920 2008-04-29 Bruno Haible <bruno@clisp.org>
23922 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23923 (inet_ntop, inet_pton): Change portability warning's wording.
23924 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23925 Invoke gl_CHECK_NEXT_HEADERS.
23926 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23927 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23929 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23930 * modules/arpa_inet (Description): No longer only for systems that
23932 (Depends-on): Add include_next.
23933 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23936 2008-04-29 Jim Meyering <meyering@redhat.com>
23938 * modules/mkdir (License): Re-license as LGPLv2+.
23940 2008-04-29 Bruno Haible <bruno@clisp.org>
23942 * modules/rawmemchr (Maintainer): Set to Eric.
23943 * modules/strchrnul (Maintainer): Likewise.
23945 2008-04-29 Simon Josefsson <simon@josefsson.org>
23947 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23948 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23950 * modules/arpa_inet (arpa/inet.h): Use them.
23952 2008-04-28 Eric Blake <ebb9@byu.net>
23955 * modules/getndelim2-tests: New file.
23956 * tests/test-getndelim2.c: Likewise.
23957 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
23959 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23961 * MODULES.html.sh: Document new module.
23963 2008-04-20 Bruno Haible <bruno@clisp.org>
23965 * lib/c-stack.c (die): Use raise.
23966 * modules/c-stack (Depends-on): Add raise.
23968 2008-04-28 Bruno Haible <bruno@clisp.org>
23970 Expect rpmatch to be declared.
23971 * lib/yesno.c (rpmatch): Remove declaration.
23974 * lib/stdlib.in.h (rpmatch): New declaration.
23975 * lib/rpmatch.c: Include <stdlib.h> first.
23976 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23977 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23978 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23980 * modules/rpmatch (Depends-on): Add stdlib, extensions.
23981 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23982 (Include): Set to <stdlib.h>.
23983 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23985 * NEWS: Document the change.
23987 2008-04-28 Bruno Haible <bruno@clisp.org>
23989 Change rpmatch to use nl_langinfo when appropriate.
23990 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23992 (localized_pattern): New function/macro.
23993 (try): Remove match, nomatch arguments. Copy the pattern into safe
23994 memory before caching it.
23995 (rpmatch): Use localized_pattern. Add translator comments.
23996 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23997 Suggested by Eric Blake.
23998 * modules/rpmatch (Depends-on): Add stdbool.
24000 2008-04-28 Eric Blake <ebb9@byu.net>
24002 Add rawmemchr module, matching glibc.
24003 * modules/string (Makefile.am): New indicator.
24004 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24005 * lib/string.in.h (rawmemchr): Declare when appropriate.
24006 * modules/rawmemchr: New file.
24007 * m4/rawmemchr.m4: Likewise.
24008 * lib/rawmemchr.c: Likewise.
24009 * modules/rawmemchr-tests: Likewise.
24010 * tests/test-rawmemchr.c: Likewise.
24011 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24013 * modules/strchrnul (Depends-on): Add rawmemchr.
24014 * lib/strchrnul.c (strchrnul): Optimize a corner case.
24016 Whitespace cleanup.
24017 * tests/test-strchrnul.c: Reindent.
24018 * lib/strchrnul.c: Likewise.
24020 Optimize and test strchrnul.
24021 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24022 * modules/strchrnul-tests: New file.
24023 * tests/test-strchrnul.c: Likewise.
24025 Remove intprops dependency.
24026 * modules/memchr (Depends-on): Remove intprops.
24027 * modules/memrchr (Depends-on): Likewise.
24028 * modules/memchr2 (Depends-on): Likewise.
24029 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24030 * lib/memrchr.c (__memrchr): Likewise.
24031 * lib/memrchr2.c (memchr2): Likewise.
24032 Reported by Simon Josefsson.
24034 2008-04-28 Simon Josefsson <simon@josefsson.org>
24036 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24037 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24039 2008-04-28 Simon Josefsson <simon@josefsson.org>
24041 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24043 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24045 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24047 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24049 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24051 * m4/inet_pton.m4: Don't check for header files.
24053 * m4/inet_ntop.m4: Don't check for header files.
24055 2008-04-28 Simon Josefsson <simon@josefsson.org>
24057 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24058 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24059 trigger for cygwin).
24060 Reported by Bruno Haible <bruno@clisp.org>.
24062 2008-04-28 Bruno Haible <bruno@clisp.org>
24064 * doc/posix-functions/strdup.texi: Mention mingw problem.
24066 2008-04-27 Bruno Haible <bruno@clisp.org>
24068 * modules/stat-time-tests (Depends-on): Add sleep.
24069 * tests/test-stat-time.c (force_unlink): New function.
24071 (test_mtime): Remove the ctime related tests.
24072 (test_ctime): New function, containing the ctime related tests.
24073 (main): Call test_ctime, except on native Windows platforms.
24075 2008-04-27 Bruno Haible <bruno@clisp.org>
24077 * lib/rpmatch.c (rpmatch): Add some comments.
24078 Reported by James Youngman <jay@gnu.org>.
24080 2008-04-27 Bruno Haible <bruno@clisp.org>
24082 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24085 2008-04-27 Bruno Haible <bruno@clisp.org>
24087 Make test-yesno.sh work on mingw.
24088 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24089 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24090 (main): Set stdin to binary mode.
24091 * modules/yesno-tests (Depends-on): Add binary-io.
24093 2008-04-27 Bruno Haible <bruno@clisp.org>
24095 Fix 'isfinite' on x86, x86_64, ia64 platforms.
24096 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24097 argument that lie outside the IEEE 854 domain.
24098 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24099 (gl_ISFINITE): Use it.
24100 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24102 2008-04-27 Bruno Haible <bruno@clisp.org>
24104 Allow local renaming in config.h.
24105 * lib/memrchr.c (memrchr): Don't undefine outside libc.
24107 2008-04-27 Bruno Haible <bruno@clisp.org>
24109 * lib/memchr.c (__memchr): Change type of 'i'.
24110 * lib/memchr2.c (memchr2): Likewise.
24112 2008-04-26 Eric Blake <ebb9@byu.net>
24113 and Bruno Haible <bruno@clisp.org>
24115 Optimize and test memrchr.
24116 * modules/memrchr (Depends-on): Add intprops.
24117 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24118 * modules/memrchr-tests: New file.
24119 * tests/test-memrchr.c: New file.
24121 2008-04-26 Bruno Haible <bruno@clisp.org>
24123 Add tentative support for DragonFly BSD.
24124 * lib/stdio-impl.h: Add macros for DragonFly BSD.
24125 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24127 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24128 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24129 * lib/fpurge.c (fpurge): Likewise.
24130 * lib/freadable.c (freaadable): Likewise.
24131 * lib/freadahead.c (freadahead): Likewise.
24132 * lib/freading.c (freading): Likewise.
24133 * lib/freadptr.c (freadptr): Likewise.
24134 * lib/freadseek.c (freadptrinc): Likewise.
24135 * lib/fseeko.c (fseeko): Likewise.
24136 * lib/fseterr.c (fseterr): Likewise.
24137 * lib/fwritable.c (fwritable): Likewise.
24138 * lib/fwriting.c (fwriting): Likewise.
24140 2008-04-26 Bruno Haible <bruno@clisp.org>
24142 * lib/stdio-impl.h: New file.
24143 * lib/fbufmode.c: Include stdio-impl.h.
24144 (fbufmode): Use fp_, remove redundant #defines.
24145 * lib/fflush.c: Include stdio-impl.h.
24146 (clear_ungetc_buffer): Remove redundant #defines.
24147 * lib/fpurge.c: Include stdio-impl.h.
24148 (fpurge): Remove redundant #defines.
24149 * lib/freadable.c: Include stdio-impl.h.
24150 (freadable): Remove redundant #defines.
24151 * lib/freadahead.c: Include stdio-impl.h.
24152 (freadahead): Remove redundant #defines.
24153 * lib/freading.c: Include stdio-impl.h.
24154 (freading): Remove redundant #defines.
24155 * lib/freadptr.c: Include stdio-impl.h.
24156 (freadptr): Remove redundant #defines.
24157 * lib/freadseek.c: Include stdio-impl.h.
24158 (freadptrinc): Remove redundant #defines.
24159 * lib/fseeko.c: Include stdio-impl.h.
24160 (rpl_fseeko): Remove redundant #defines.
24161 * lib/fseterr.c: Include stdio-impl.h.
24162 (fseterr): Remove redundant #defines.
24163 * lib/fwritable.c: Include stdio-impl.h.
24164 (fwritable: Remove redundant #defines.
24165 * lib/fwriting.c: Include stdio-impl.h.
24166 (fwriting): Remove redundant #defines.
24167 * modules/fbufmode (Files): Add lib/stdio-impl.h.
24168 * modules/fflush (Files): Likewise.
24169 * modules/fpurge (Files): Likewise.
24170 * modules/freadable (Files): Likewise.
24171 * modules/freadahead (Files): Likewise.
24172 * modules/freading (Files): Likewise.
24173 * modules/freadptr (Files): Likewise.
24174 * modules/freadseek (Files): Likewise.
24175 * modules/fseeko (Files): Likewise.
24176 * modules/fseterr (Files): Likewise.
24177 * modules/fwritable (Files): Likewise.
24178 * modules/fwriting (Files): Likewise.
24180 2008-04-26 Bruno Haible <bruno@clisp.org>
24182 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24183 restore_seek_optimization, update_fpos_cache): New functions, extracted
24185 (rpl_fflush): Use them.
24186 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24187 (gl_REPLACE_FFLUSH): Use it.
24189 2008-04-26 Bruno Haible <bruno@clisp.org>
24191 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24193 * tests/test-xstrtoimax.sh: Likewise.
24194 * tests/test-xstrtoumax.sh: Likewise.
24195 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24197 2008-04-26 Bruno Haible <bruno@clisp.org>
24199 * modules/memchr-tests: New file.
24200 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24202 2008-04-26 Eric Blake <ebb9@byu.net>
24203 Bruno Haible <bruno@clisp.org>
24205 * lib/memchr.c: Include intprops.h.
24206 (__memchr): Optimize parallel detection of matching bytes. Rename local
24207 variables. Add explanatory comments.
24209 2008-04-26 Bruno Haible <bruno@clisp.org>
24211 Fix module 'memchr', broken since 2000-10-28.
24212 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24214 2008-04-26 Bruno Haible <bruno@clisp.org>
24216 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24219 2008-04-25 Eric Blake <ebb9@byu.net>
24221 Use native fstatat on cygwin 1.7.0.
24222 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24225 2008-04-23 Eric Blake <ebb9@byu.net>
24227 Improve memchr2 performance.
24228 * lib/memchr2.c (memchr2): Further optimize parallel detection of
24230 * modules/memchr2 (Depends-on): Use intprops.h.
24232 2008-04-23 Simon Josefsson <simon@josefsson.org>
24234 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24235 an inline function instead of a CPP macro. Patch by Ben Pfaff
24236 <blp@cs.stanford.edu>.
24238 2008-04-23 Simon Josefsson <simon@josefsson.org>
24240 * lib/arpa_inet.in.h: New file.
24242 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24243 (Makefile.am): Sed in substitute header file.
24245 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24246 gl_ARPA_INET_MODULE_INDICATOR. Use them.
24248 * modules/inet_ntop (configure.ac): Use
24249 gl_ARPA_INET_MODULE_INDICATOR.
24251 * modules/inet_pton (configure.ac): Use
24252 gl_ARPA_INET_MODULE_INDICATOR.
24254 2008-04-22 Jim Meyering <meyering@redhat.com>
24256 * modules/verify (License): Re-license as LGPLv2+.
24258 2008-04-22 Simon Josefsson <simon@josefsson.org>
24260 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24261 parameter to void* as per POSIX standard (MinGW uses char*).
24263 2008-04-21 Bruno Haible <bruno@clisp.org>
24265 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24266 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24267 Define to replacements if REPLACE_ISWCNTRL is 1.
24268 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24269 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24270 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24271 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24273 * doc/posix-functions/iswalpha.texi: Likewise.
24274 * doc/posix-functions/iswblank.texi: Likewise.
24275 * doc/posix-functions/iswcntrl.texi: Likewise.
24276 * doc/posix-functions/iswdigit.texi: Likewise.
24277 * doc/posix-functions/iswgraph.texi: Likewise.
24278 * doc/posix-functions/iswlower.texi: Likewise.
24279 * doc/posix-functions/iswprint.texi: Likewise.
24280 * doc/posix-functions/iswpunct.texi: Likewise.
24281 * doc/posix-functions/iswspace.texi: Likewise.
24282 * doc/posix-functions/iswupper.texi: Likewise.
24283 * doc/posix-functions/iswxdigit.texi: Likewise.
24284 Reported by Alain Guibert.
24286 2008-04-21 Bruno Haible <bruno@clisp.org>
24288 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24289 Patch by Alain Guibert.
24291 2008-04-21 Bruno Haible <bruno@clisp.org>
24293 Fix test failures on mingw.
24294 * tests/test-xstrtol.c (print_no_progname): New function.
24295 (main): Install it in error_print_progname hook.
24296 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24297 * tests/test-xstrtoimax.sh: Likewise.
24298 * tests/test-xstrtoumax.sh: Likewise.
24300 2008-04-21 Bruno Haible <bruno@clisp.org>
24302 Fix test failure on mingw.
24303 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24305 2008-04-21 Bruno Haible <bruno@clisp.org>
24307 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24308 Actually assign a value.
24310 2008-04-20 Bruno Haible <bruno@clisp.org>
24312 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24314 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24315 'canonicalize-lgpl' module is also used.
24316 * lib/canonicalize-lgpl.c: Undo last change.
24317 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24319 2008-04-20 Bruno Haible <bruno@clisp.org>
24321 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24322 config.h. Provide _mkdir based fallback for mingw.
24323 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24324 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24325 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24326 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24327 rather than defining mkdir in config.h.
24328 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24329 (gl_SYS_STAT_H_DEFAULTS): New macro.
24330 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24331 HAVE_IO_H any more.
24332 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24333 HAVE_DECL_MKDIR and HAVE_IO_H.
24335 2008-04-20 Bruno Haible <bruno@clisp.org>
24337 * lib/isapipe.c: Port to native Windows platforms.
24339 2008-04-20 Bruno Haible <bruno@clisp.org>
24341 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24343 2008-04-21 Eric Blake <ebb9@byu.net>
24345 Work around preprocessors that don't handle UINTMAX_MAX.
24346 * lib/memchr2.c (memchr2): Avoid embedded #if.
24347 Reported by Alain Guibert, fix suggested by Bruno Haible.
24349 2008-04-21 Simon Josefsson <simon@josefsson.org>
24351 * doc/posix-functions/strftime.texi (strftime): Explain better
24352 Windows incompatibility. Suggested by Micah Cowan
24353 <micah@cowan.name>.
24355 2008-04-20 Bruno Haible <bruno@clisp.org>
24357 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24360 2008-04-20 Bruno Haible <bruno@clisp.org>
24362 Fix test failure on platforms with non-GNU iconv.
24363 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24364 (U_TO_U8): Use it, rather than u16_to_u8.
24365 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24366 units at the end of the input string.
24367 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24369 2008-04-20 Bruno Haible <bruno@clisp.org>
24371 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24372 when the resulting length is 0.
24373 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24375 2008-04-20 Bruno Haible <bruno@clisp.org>
24377 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24379 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24381 2008-04-20 Bruno Haible <bruno@clisp.org>
24383 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24384 * modules/tsearch-tests (configure.ac): Test for initstate function.
24386 2008-04-20 Bruno Haible <bruno@clisp.org>
24388 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24389 for nlink_t if missing.
24390 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24392 2008-04-19 Bruno Haible <bruno@clisp.org>
24394 Work around snprintf bug on Linux libc5.
24395 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24396 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24398 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24399 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24401 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24402 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24403 * modules/snprintf (Files): Add m4/printf.m4.
24404 * modules/vsnprintf (Files): Likewise.
24405 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24406 * doc/posix-functions/vsnprintf.texi: Likewise.
24408 2008-04-19 Bruno Haible <bruno@clisp.org>
24410 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24411 from 0.0058 to less than 10^-7.
24413 2008-04-19 Bruno Haible <bruno@clisp.org>
24415 Fix rounding when a precision is given.
24416 * lib/vasnprintf.c (is_borderline): New function.
24417 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24419 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24421 * tests/test-vasprintf-posix.c (test_function): Likewise.
24422 * tests/test-snprintf-posix.h (test_function): Likewise.
24423 * tests/test-sprintf-posix.h (test_function): Likewise.
24424 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24425 * tests/test-printf-posix.h (test_function): Likewise.
24426 * tests/test-printf-posix.output: Update.
24427 Reported by John Darrington <john@darrington.wattle.id.au> via
24428 Ben Pfaff <blp@cs.stanford.edu>.
24430 2008-04-18 Simon Josefsson <simon@josefsson.org>
24432 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24433 Suggested by Bruno Haible <bruno@clisp.org>.
24435 2008-04-17 Bruno Haible <bruno@clisp.org>
24437 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24438 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24440 Patch by Bruce Merry <bmerry@gmail.com>.
24442 2008-04-17 Simon Josefsson <simon@josefsson.org>
24444 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24445 doesn't work under Windows.
24447 2008-04-16 Bruno Haible <bruno@clisp.org>
24449 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24451 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24452 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24453 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24454 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24455 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24456 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24457 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24459 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24460 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24461 Northern Sotho, Uighur.
24463 2008-04-16 Bruno Haible <bruno@clisp.org>
24465 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24466 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24467 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24468 Reported by Daniel Bergström <daniel@octocode.com>.
24470 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24471 Bruno Haible <bruno@clisp.org>
24473 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24475 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24476 New functions, mostly extracted from gl_locale_name_default.
24477 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24479 2008-04-16 Eric Blake <ebb9@byu.net>
24481 Adjust strtod detection to catch glibc 2.7 bug.
24482 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24483 Reported by John Gatewood Ham.
24485 2008-04-16 Bruno Haible <bruno@clisp.org>
24487 Add tentative support for Linux libc5.
24488 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24489 * lib/fpurge.c (fpurge): Likewise.
24490 * lib/freadable.c (freadable): Likewise.
24491 * lib/freadahead.c (freadahead): Likewise.
24492 * lib/freading.c (freading): Likewise.
24493 * lib/freadptr.c (freadptr): Likewise.
24494 * lib/freadseek.c (freadptrinc): Likewise.
24495 * lib/fseeko.c (rpl_fseeko): Likewise.
24496 * lib/fseterr.c (fseterr): Likewise.
24497 * lib/fwritable.c (fwritable): Likewise.
24498 * lib/fwriting.c (fwriting): Likewise.
24499 Reported by Alain Guibert <alguibert+bts@free.fr>.
24501 2008-04-15 Bruno Haible <bruno@clisp.org>
24503 * modules/mathl (configure.ac): Define module indicator.
24505 2008-04-15 Bruno Haible <bruno@clisp.org>
24507 * lib/logl.c (logl): Remove unused variables.
24509 2008-04-15 Bruno Haible <bruno@clisp.org>
24511 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24514 2008-04-15 Bruno Haible <bruno@clisp.org>
24516 * lib/trim.c (trim2): Fix argument of isspace() macro.
24518 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
24520 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24522 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24524 2008-04-14 Bruno Haible <bruno@clisp.org>
24526 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24527 AC_LANG_PROGRAM argument.
24528 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24529 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24530 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24531 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24532 * m4/math_h.m4 (gl_MATH_H): Likewise.
24533 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24534 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24535 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24536 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24537 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24538 * m4/regex.m4 (gl_REGEX): Likewise.
24539 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24540 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24541 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24542 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24543 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24544 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24545 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24546 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24548 2008-04-14 Jim Meyering <meyering@redhat.com>
24550 test-strtod: fix typos: s/abs/fabs/
24551 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24553 2008-04-13 Bruno Haible <bruno@clisp.org>
24555 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24556 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24557 module is also used and while not building the reloc-wrapper.
24559 2008-04-13 Bruno Haible <bruno@clisp.org>
24561 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24563 2008-04-13 Bruno Haible <bruno@clisp.org>
24565 Fix AIX compilation failure introduced on 2008-04-02.
24566 * tests/test-frexp.c (exp): Undefine before redefining.
24567 * tests/test-frexpl.c (exp): Likewise.
24569 2008-04-13 Bruno Haible <bruno@clisp.org>
24571 Work around a HP-UX stdio bug.
24572 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24573 * tests/test-ftello.c (main): Likewise.
24574 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24575 * doc/posix-functions/ftello.texi: Likewise.
24577 2008-04-13 Bruno Haible <bruno@clisp.org>
24579 Make test-signbit pass on HP-UX/hppa.
24580 * tests/test-signbit.c (minus_zerol): New variable.
24581 (test_signbitl): Use it.
24583 2008-04-13 Bruno Haible <bruno@clisp.org>
24585 Make truncl work on OSF/1 4.0.
24586 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24587 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24588 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24589 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24591 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24593 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24595 2008-04-13 Bruno Haible <bruno@clisp.org>
24597 * lib/unictype.h: Remove trailing comma from enumeration definitions.
24599 2008-04-13 Bruno Haible <bruno@clisp.org>
24601 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24602 expression, so as to avoid HP-UX 11 cc compiler bug.
24604 2008-04-13 Bruno Haible <bruno@clisp.org>
24606 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24608 2008-04-13 Bruno Haible <bruno@clisp.org>
24610 * lib/git-merge-changelog.c: Remove empty declaration outside of
24613 2008-04-13 Bruno Haible <bruno@clisp.org>
24615 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24617 2008-04-13 Bruno Haible <bruno@clisp.org>
24619 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24620 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24621 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24622 also if it exists but lacks definitions of the SHUT_* macros.
24623 * modules/sys_socket (Description): Update.
24624 Reported by Elbert Pol <e.pol@chello.nl>.
24626 2008-04-13 Bruno Haible <bruno@clisp.org>
24628 * lib/localcharset.c (OS2): Don't redefine if already defined.
24629 Reported by Elbert Pol <e.pol@chello.nl>.
24631 2008-04-13 Bruno Haible <bruno@clisp.org>
24633 * lib/binary-io.h [__EMX__]: Include <io.h>.
24634 Reported by Elbert Pol <e.pol@chello.nl>.
24636 2008-04-12 Bruno Haible <bruno@clisp.org>
24638 * lib/fpucw.h: Enable the definitions also for x86_64.
24639 Needed for NetBSD/x86_64.
24640 Reported by Thomas Klausner <tk@giga.or.at>.
24642 2008-04-12 Bruno Haible <bruno@clisp.org>
24644 * tests/test-strtod.c: Include isnand.h.
24645 (main): Use isnand instead of isnan.
24646 Reported by Jim Meyering.
24648 2008-04-12 Bruno Haible <bruno@clisp.org>
24650 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24651 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24653 2008-04-12 Jim Meyering <meyering@redhat.com>
24655 * m4/math_h.m4 (gl_MATH_H): Fix typos.
24657 2008-04-12 Bruno Haible <bruno@clisp.org>
24659 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24660 Reported by Elbert Pol <e.pol@chello.nl>.
24662 2008-04-12 Eric Blake <ebb9@byu.net>
24664 Work around Solaris 10 math.h bug.
24665 * m4/math_h.m4 (gl_MATH_H): Check for bug.
24666 (gl_MATH_H_DEFAULTS): Set up default.
24667 * modules/math (Makefile.am): Replace new indicators.
24668 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24669 * tests/test-math.c (main): Test this.
24670 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24671 * doc/posix-headers/math.texi (math.h): Mention bug.
24672 Reported by Nelson H. F. Beebe and Jim Meyering.
24674 2008-04-11 Bruno Haible <bruno@clisp.org>
24676 Adapt to future versions of Apple GCC.
24677 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24678 Reported by Peter O'Gorman <peter@pogma.com>.
24680 2008-04-11 Bruno Haible <bruno@clisp.org>
24682 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24684 2008-04-11 Bruno Haible <bruno@clisp.org>
24686 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24688 * modules/getaddrinfo-tests (Makefile.am): Define
24689 test_getaddrinfo_LDADD.
24691 2008-04-11 Bruno Haible <bruno@clisp.org>
24693 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24694 (init): Fix syntax error.
24695 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24698 2008-04-11 Bruno Haible <bruno@clisp.org>
24700 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24701 * modules/glob (Depends-on): Add stdbool.
24703 2008-04-11 Bruno Haible <bruno@clisp.org>
24705 * lib/trim.c: Include <string.h>.
24707 2008-04-11 Eric Blake <ebb9@byu.net>
24709 Avoid compile failure on OS/2.
24710 * lib/regex_internal.h (internal_function): Disable optimization
24711 on OS/2 (__EMX__), where it caused compiler error.
24712 Reported by Elbert Pol.
24714 2008-04-11 Bruno Haible <bruno@clisp.org>
24716 Flush the standard error stream before aborting. Needed on mingw.
24717 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24718 * tests/test-array_list.c (ASSERT): Likewise.
24719 * tests/test-array_oset.c (ASSERT): Likewise.
24720 * tests/test-avltree_list.c (ASSERT): Likewise.
24721 * tests/test-avltree_oset.c (ASSERT): Likewise.
24722 * tests/test-avltreehash_list.c (ASSERT): Likewise.
24723 * tests/test-binary-io.c (ASSERT): Likewise.
24724 * tests/test-byteswap.c (ASSERT): Likewise.
24725 * tests/test-c-ctype.c (ASSERT): Likewise.
24726 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24727 * tests/test-c-strcasestr.c (ASSERT): Likewise.
24728 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24729 * tests/test-c-strstr.c (ASSERT): Likewise.
24730 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24731 * tests/test-canonicalize.c (ASSERT): Likewise.
24732 * tests/test-carray_list.c (ASSERT): Likewise.
24733 * tests/test-ceilf1.c (ASSERT): Likewise.
24734 * tests/test-ceilf2.c (ASSERT): Likewise.
24735 * tests/test-ceill.c (ASSERT): Likewise.
24736 * tests/test-count-one-bits.c (ASSERT): Likewise.
24737 * tests/test-fbufmode.c (ASSERT): Likewise.
24738 * tests/test-fflush2.c (ASSERT): Likewise.
24739 * tests/test-floorf1.c (ASSERT): Likewise.
24740 * tests/test-floorf2.c (ASSERT): Likewise.
24741 * tests/test-floorl.c (ASSERT): Likewise.
24742 * tests/test-fopen.c (ASSERT): Likewise.
24743 * tests/test-fpending.c (ASSERT): Likewise.
24744 * tests/test-fprintf-posix.c (ASSERT): Likewise.
24745 * tests/test-fpurge.c (ASSERT): Likewise.
24746 * tests/test-freadable.c (ASSERT): Likewise.
24747 * tests/test-freadahead.c (ASSERT): Likewise.
24748 * tests/test-freading.c (ASSERT): Likewise.
24749 * tests/test-freadptr.c (ASSERT): Likewise.
24750 * tests/test-freadptr2.c (ASSERT): Likewise.
24751 * tests/test-freadseek.c (ASSERT): Likewise.
24752 * tests/test-freopen.c (ASSERT): Likewise.
24753 * tests/test-frexp.c (ASSERT): Likewise.
24754 * tests/test-frexpl.c (ASSERT): Likewise.
24755 * tests/test-fseek.c (ASSERT): Likewise.
24756 * tests/test-fseeko.c (ASSERT): Likewise.
24757 * tests/test-fstrcmp.c (ASSERT): Likewise.
24758 * tests/test-ftell.c (ASSERT): Likewise.
24759 * tests/test-ftello.c (ASSERT): Likewise.
24760 * tests/test-func.c (ASSERT): Likewise.
24761 * tests/test-fwritable.c (ASSERT): Likewise.
24762 * tests/test-fwriting.c (ASSERT): Likewise.
24763 * tests/test-getdelim.c (ASSERT): Likewise.
24764 * tests/test-getline.c (ASSERT): Likewise.
24765 * tests/test-i-ring.c (ASSERT): Likewise.
24766 * tests/test-iconv-utf.c (ASSERT): Likewise.
24767 * tests/test-iconv.c (ASSERT): Likewise.
24768 * tests/test-isfinite.c (ASSERT): Likewise.
24769 * tests/test-isnand.c (ASSERT): Likewise.
24770 * tests/test-isnanf.c (ASSERT): Likewise.
24771 * tests/test-isnanl.h (ASSERT): Likewise.
24772 * tests/test-ldexpl.c (ASSERT): Likewise.
24773 * tests/test-linked_list.c (ASSERT): Likewise.
24774 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24775 * tests/test-localename.c (ASSERT): Likewise.
24776 * tests/test-lseek.c (ASSERT): Likewise.
24777 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24778 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24779 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24780 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24781 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24782 * tests/test-mbschr.c (ASSERT): Likewise.
24783 * tests/test-mbscspn.c (ASSERT): Likewise.
24784 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24785 * tests/test-mbspbrk.c (ASSERT): Likewise.
24786 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24787 * tests/test-mbsrchr.c (ASSERT): Likewise.
24788 * tests/test-mbsspn.c (ASSERT): Likewise.
24789 * tests/test-mbsstr1.c (ASSERT): Likewise.
24790 * tests/test-mbsstr2.c (ASSERT): Likewise.
24791 * tests/test-mbsstr3.c (ASSERT): Likewise.
24792 * tests/test-memchr2.c (ASSERT): Likewise.
24793 * tests/test-memmem.c (ASSERT): Likewise.
24794 * tests/test-open.c (ASSERT): Likewise.
24795 * tests/test-printf-frexp.c (ASSERT): Likewise.
24796 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24797 * tests/test-printf-posix.c (ASSERT): Likewise.
24798 * tests/test-quotearg.c (ASSERT): Likewise.
24799 * tests/test-rbtree_list.c (ASSERT): Likewise.
24800 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24801 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24802 * tests/test-round1.c (ASSERT): Likewise.
24803 * tests/test-roundf1.c (ASSERT): Likewise.
24804 * tests/test-roundl.c (ASSERT): Likewise.
24805 * tests/test-signbit.c (ASSERT): Likewise.
24806 * tests/test-sleep.c (ASSERT): Likewise.
24807 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24808 * tests/test-snprintf.c (ASSERT): Likewise.
24809 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24810 * tests/test-stat-time.c (ASSERT): Likewise.
24811 * tests/test-strcasestr.c (ASSERT): Likewise.
24812 * tests/test-strerror.c (ASSERT): Likewise.
24813 * tests/test-striconv.c (ASSERT): Likewise.
24814 * tests/test-striconveh.c (ASSERT): Likewise.
24815 * tests/test-striconveha.c (ASSERT): Likewise.
24816 * tests/test-strsignal.c (ASSERT): Likewise.
24817 * tests/test-strstr.c (ASSERT): Likewise.
24818 * tests/test-strtod.c (ASSERT): Likewise.
24819 * tests/test-trunc1.c (ASSERT): Likewise.
24820 * tests/test-trunc2.c (ASSERT): Likewise.
24821 * tests/test-truncf1.c (ASSERT): Likewise.
24822 * tests/test-truncf2.c (ASSERT): Likewise.
24823 * tests/test-truncl.c (ASSERT): Likewise.
24824 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24825 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24826 * tests/test-vasnprintf.c (ASSERT): Likewise.
24827 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24828 * tests/test-vasprintf.c (ASSERT): Likewise.
24829 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24830 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24831 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24832 * tests/test-vsnprintf.c (ASSERT): Likewise.
24833 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24834 * tests/test-wcwidth.c (ASSERT): Likewise.
24835 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24836 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24837 * tests/test-xvasprintf.c (ASSERT): Likewise.
24838 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24839 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24840 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24841 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24842 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24843 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24844 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24845 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24846 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24847 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24848 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24849 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24850 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24851 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24852 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24853 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24854 * tests/unictype/test-block_list.c (ASSERT): Likewise.
24855 * tests/unictype/test-block_of.c (ASSERT): Likewise.
24856 * tests/unictype/test-block_test.c (ASSERT): Likewise.
24857 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24858 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24859 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24860 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24861 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24862 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24863 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24864 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24865 * tests/unictype/test-combining.c (ASSERT): Likewise.
24866 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24867 * tests/unictype/test-digit.c (ASSERT): Likewise.
24868 * tests/unictype/test-mirror.c (ASSERT): Likewise.
24869 * tests/unictype/test-numeric.c (ASSERT): Likewise.
24870 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24871 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24872 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24873 * tests/unictype/test-scripts.c (ASSERT): Likewise.
24874 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24875 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24876 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24877 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24878 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24879 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24880 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24881 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24882 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24883 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24884 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24885 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24886 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24887 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24888 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24889 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24890 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24891 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24892 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24893 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24894 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24895 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24896 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24897 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24898 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24899 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24900 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24901 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24902 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24903 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24904 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24905 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24906 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24907 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24908 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24909 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24910 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24911 Reported by Eric Blake.
24913 2008-04-11 Bruno Haible <bruno@clisp.org>
24915 * lib/wchar.in.h: Tweak comment.
24917 2008-04-11 Bruno Haible <bruno@clisp.org>
24919 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24920 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24922 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24924 2008-04-11 Bruno Haible <bruno@clisp.org>
24926 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24928 2008-04-11 Simon Josefsson <simon@josefsson.org>
24930 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24931 of attempting to use non-existing /dev/*random. Based on patch
24932 from Adam Strzelecki <ono@java.pl> in
24933 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24935 2008-04-08 Bruno Haible <bruno@clisp.org>
24937 Add tentative support for emx+gcc.
24938 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24939 * lib/fpurge.c (fpurge): Likewise.
24940 * lib/freadable.c (freadable): Likewise.
24941 * lib/freadahead.c (freadahead): Likewise.
24942 * lib/freading.c (freading): Likewise.
24943 * lib/freadptr.c (freadptr): Likewise.
24944 * lib/freadseek.c (freadptrinc): Likewise.
24945 * lib/fseeko.c (rpl_fseeko): Likewise.
24946 * lib/fseterr.c (fseterr): Likewise.
24947 * lib/fwritable.c (fwritable): Likewise.
24948 * lib/fwriting.c (fwriting): Likewise.
24949 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24951 2008-04-09 Eric Blake <ebb9@byu.net>
24953 Avoid some autoconf warnings.
24954 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24955 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24956 * m4/afs.m4 (gl_AFS): Likewise.
24957 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24958 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24959 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24960 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24961 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24962 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24963 (AC_CHECK_DECLS_ONCE): Likewise.
24965 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24966 gnulib-tool requires autoconf 2.59 or better.
24967 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24969 2008-04-08 Eric Blake <ebb9@byu.net>
24971 Use 'git describe --match' if present (added in git 1.5.5).
24972 * build-aux/git-version-gen: Limit result to tags that match 'v*'
24975 2008-04-08 Bruno Haible <bruno@clisp.org>
24977 Add tentative support for OpenServer.
24978 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24980 * lib/fpurge.c (fpurge): Likewise.
24981 * lib/freadable.c (freadable): Likewise.
24982 * lib/freadahead.c (freadahead): Likewise.
24983 * lib/freading.c (freading): Likewise.
24984 * lib/freadptr.c (freadptr): Likewise.
24985 * lib/freadseek.c (freadptrinc): Likewise.
24986 * lib/fseeko.c (rpl_fseeko): Likewise.
24987 * lib/fseterr.c (fseterr): Likewise.
24988 * lib/fwritable.c (fwritable): Likewise.
24989 * lib/fwriting.c (fwriting): Likewise.
24990 Reported by Roger Cornelius <rac@tenzing.org> and
24991 Brian K. White <brian@aljex.com>.
24993 2008-04-06 Jim Meyering <meyering@redhat.com>
24995 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24997 2008-04-06 Bruno Haible <bruno@clisp.org>
24999 Avoid possible error with non-ASCII bytes in UTF-8 locales.
25000 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25001 * tests/test-printf-posix.sh: Likewise.
25002 * tests/test-vfprintf-posix.sh: Likewise.
25003 * tests/test-vprintf-posix.sh: Likewise.
25004 * tests/test-xprintf-posix.sh: Likewise.
25006 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25008 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25009 hide error from 'ls', needed on OS/2.
25010 Report by Elbert Pol <elbert.pol@gmail.com>.
25012 2008-04-04 Eric Blake <ebb9@byu.net>
25014 Make test-fseeko.c failures meaningful.
25015 * tests/test-fseeko.c: Print line number on failure.
25016 * tests/test-fseek.c: Likewise.
25017 Reported by Nelson H. F. Beebe.
25019 Improve strtod bug detection check.
25020 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25021 required for Solaris 10.
25022 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25024 2008-04-04 Bruno Haible <bruno@clisp.org>
25026 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25029 2008-04-03 Eric Blake <ebb9@byu.net>
25031 Ensure sane .version contents.
25032 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25034 * build-aux/git-version-gen: Improve documentation.
25036 Make GNU make output nicer.
25037 * top/GNUmakefile [!_have-Makefile]: Add dependency on
25038 MAKECMDGOALS to enforce message for all command line targets. Set
25039 srcdir for use in maint.mk.
25041 Another maintainer tweak.
25042 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25043 a target that regenerates version.
25045 2008-04-03 Jim Meyering <meyering@redhat.com>
25047 vc-list-files: don't cause coreutils "make po-check" failure
25048 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25050 2008-04-03 Eric Blake <ebb9@byu.net>
25052 Allow VPATH usage of vc-list-files.
25053 * build-aux/vc-list-files (scriptversion): Add timestamp.
25054 (options): Add --help, --version, -C.
25055 (CVS): Support installed cvsu.
25057 2008-04-02 Bruno Haible <bruno@clisp.org>
25059 Avoid some "statement with no effect" warnings from gcc.
25060 * tests/test-wctype.c (main): Explicitly ignore unused values.
25061 Reported by Jim Meyering.
25063 2008-04-02 Jim Meyering <meyering@redhat.com>
25065 Avoid some warnings from "gcc -Wshadow".
25066 * tests/test-frexp.c (exp): Define to a different identifier.
25067 * tests/test-frexpl.c (exp): Likewise.
25069 2008-04-03 Jim Meyering <meyering@redhat.com>
25071 bootstrap: remove dangling *.[ch] symlinks from lib
25072 * build-aux/bootstrap [dangling symlink removal]: Move find's
25073 -depth option to precede all others, to avoid a warning.
25074 Remove *.[ch] files too, and from "$source_base" (usually lib/).
25076 2008-04-02 Bruno Haible <bruno@clisp.org>
25078 Avoid some warnings from "gcc -Wshadow".
25079 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25080 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25081 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25082 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25083 Reported by Jim Meyering.
25085 2008-04-01 Bruno Haible <bruno@clisp.org>
25087 Fix test to work on IRIX 6.5 with cc.
25088 * tests/test-math.c (numeric_equal): New function.
25091 2008-04-01 Bruno Haible <bruno@clisp.org>
25093 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25095 2008-04-01 Bruno Haible <bruno@clisp.org>
25097 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25098 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25099 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25100 (Depends-on): Remove math.
25102 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25103 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25104 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25105 (Depends-on): Remove math.
25107 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25108 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25109 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25110 (Depends-on): Remove math.
25111 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25112 (Depends-on): Remove math.
25114 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25115 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25116 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25117 (Depends-on): Remove math.
25118 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25119 (Depends-on): Remove math.
25121 * tests/test-round1.c: Include nan.h.
25122 (main): Use NaNd instead of NAN.
25123 * modules/round-tests (Files): Add tests/nan.h.
25125 * tests/test-trunc1.c: Include nan.h.
25126 (main): Use NaNd instead of NAN.
25127 * modules/trunc-tests (Files): Add tests/nan.h.
25129 * tests/test-roundf1.c: Include nan.h.
25130 (main): Use NaNf instead of NAN.
25131 * modules/roundf-tests (Files): Add tests/nan.h.
25133 * tests/test-truncf1.c: Include nan.h.
25134 (main): Use NaNf instead of NAN.
25135 * modules/truncf-tests (Files): Add tests/nan.h.
25137 * tests/test-ceilf1.c: Include nan.h.
25138 (main): Use NaNf instead of NAN.
25139 * modules/ceilf-tests (Files): Add tests/nan.h.
25141 * tests/test-floorf1.c: Include nan.h.
25142 (main): Use NaNf instead of NAN.
25143 * modules/floorf-tests (Files): Add tests/nan.h.
25145 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25146 (main): Use NaNf instead of NAN.
25147 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25149 * tests/test-isnand.c: Include nan.h instead of <math.h>.
25150 (main): Use NaNd instead of NAN.
25151 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25153 * tests/test-frexp.c: Include nan.h.
25154 (main): Use NaNd instead of NAN.
25155 * modules/frexp-tests (Files): Add tests/nan.h.
25157 * lib/isnan.c: Don't include <math.h>.
25158 (FUNC): Don't use NAN macro.
25159 * modules/isnand-nolibm (Depends-on): Remove math.
25160 * modules/isnanf-nolibm (Depends-on): Remove math.
25161 * modules/isnanl (Depends-on): Remove math.
25162 * modules/isnanl-nolibm (Depends-on): Remove math.
25164 * tests/nan.h: New file.
25166 2008-04-01 Eric Blake <ebb9@byu.net>
25169 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25170 values to be the right type.
25172 For now, cater to gnulib strtod inaccuracies.
25173 * tests/test-strtod.c (main): Allow 1-ulp error on expected
25174 fractional results. While not as nice from a QoI perspective, it
25175 is a quicker patch than correctly implementing decimal to binary
25178 2008-03-31 Eric Blake <ebb9@byu.net>
25180 Guarantee a definition of NAN.
25181 * lib/math.in.h (NAN): Define if missing.
25182 * tests/test-math.c (main): Test it.
25183 * doc/posix-headers/math.texi (math.h): Document this.
25184 * lib/isnan.c (rpl_isnand): Use it.
25185 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25186 * tests/test-floorf1.c (NaN): Likewise.
25187 * tests/test-frexp.c (NaN): Likewise.
25188 * tests/test-isnand.c (NaN): Likewise.
25189 * tests/test-isnanf.c (NaN): Likewise.
25190 * tests/test-round1.c (NaN): Likewise.
25191 * tests/test-roundf1.c (NaN): Likewise.
25192 * tests/test-snprintf-posix.h (NaN): Likewise.
25193 * tests/test-sprintf-posix.h (NaN): Likewise.
25194 * tests/test-trunc1.c (NaN): Likewise.
25195 * tests/test-truncf1.c (NaN): Likewise.
25196 * tests/test-vasnprintf-posix.c (NaN): Likewise.
25197 * tests/test-vasprintf-posix.c (NaN): Likewise.
25198 * modules/isnand-nolibm (Depends-on): Add math.
25199 * modules/isnanf-nolibm (Depends-on): Likewise.
25200 * modules/isnanl (Depends-on): Likewise.
25201 * modules/isnanl-nolibm (Depends-on): Likewise.
25202 * modules/snprintf-posix-tests (Depends-on): Likewise.
25203 * modules/sprintf-posix-tests (Depends-on): Likewise.
25204 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25205 * modules/vsprintf-posix-tests (Depends-on): Likewise.
25206 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25207 * modules/vasprintf-posix-tests (Depends-on): Likewise.
25209 2008-03-31 Bruno Haible <bruno@clisp.org>
25211 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25212 * doc/posix-functions/strtod.texi: Likewise.
25214 2008-03-31 Bruno Haible <bruno@clisp.org>
25216 * tests/test-strtod.c (main): Don't use C99 syntax.
25218 2008-03-31 Bruno Haible <bruno@clisp.org>
25220 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25221 Reported by Eric Blake.
25223 2008-03-31 Jim Meyering <meyering@redhat.com>
25225 Don't compare actual signbit return values.
25226 * tests/test-strtod.c (main): Rather, compare only their
25227 zero/non-zero nature.
25229 2008-03-31 Eric Blake <ebb9@byu.net>
25231 More strtod documentation.
25232 * doc/posix-functions/strtod.texi (strtod): Interpret more test
25233 failures as distinct bugs.
25235 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
25237 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25238 Problem reported by Erik Benada in
25239 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25241 2008-03-30 Bruno Haible <bruno@clisp.org>
25243 * tests/test-strtod.c: Add comments about which assertion fails on which
25245 * doc/posix-functions/strtod.texi: Add info about many more platforms.
25247 2008-03-30 Eric Blake <ebb9@byu.net>
25249 Test signbit behavior on zeros.
25250 * tests/test-signbit.c (test_signbitf): Add tests for zero.
25251 (test_signbitd, test_signbitl): Likewise.
25253 More strtod touchups.
25254 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25255 sign of negative underflow, for now. Use .5, not .1.
25256 * doc/posix-functions/strtod.texi (strtod): Mention these
25258 Reported by Jim Meyering.
25260 2008-03-30 Bruno Haible <bruno@clisp.org>
25262 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25263 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25265 2008-03-30 Bruno Haible <bruno@clisp.org>
25267 Avoid failure when attempting to return empty iconv results on some
25269 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25270 allocation, don't report ENOMEM when the resulting string is empty.
25272 2008-03-30 Bruno Haible <bruno@clisp.org>
25274 Fix buffer overrun.
25275 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25276 Don't consider the width for tmp_length. Check count against tmp_length
25277 before doing the padding. Ensure enough allocation during padding.
25279 2008-03-30 Eric Blake <ebb9@byu.net>
25282 * lib/strtod.c (strtod): Avoid compiler warnings.
25283 Reported by Jim Meyering.
25285 2008-03-30 Bruno Haible <bruno@clisp.org>
25287 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25288 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25289 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25290 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25291 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25292 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25293 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25294 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25296 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25297 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25298 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25299 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25300 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25301 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25302 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25303 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25305 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25306 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25307 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25308 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25309 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25310 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25311 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25312 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25314 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25315 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25317 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25318 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25320 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25321 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25323 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25324 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25325 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25327 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25328 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25329 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25331 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25332 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25333 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25335 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25336 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25337 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25339 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25340 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25341 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25342 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25343 (Depends-on): Add EOVERFLOW.
25344 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25345 (Depends-on): Add EOVERFLOW.
25346 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25347 (Depends-on): Add EOVERFLOW.
25348 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25349 (Depends-on): Add EOVERFLOW.
25350 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25351 (Depends-on): Add EOVERFLOW.
25352 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25353 (Depends-on): Add EOVERFLOW.
25354 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25355 (Depends-on): Add EOVERFLOW.
25356 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25357 (Depends-on): Add EOVERFLOW.
25359 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25360 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25361 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25363 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25364 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25365 * modules/snprintf (Depends-on): Add EOVERFLOW.
25367 * lib/poll.c (EOVERFLOW): Remove fallback.
25368 * modules/poll (Depends-on): Add EOVERFLOW.
25370 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25371 * modules/getugroups (Depends-on): Add EOVERFLOW.
25373 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25374 * modules/getdelim (Depends-on): Add EOVERFLOW.
25376 * lib/ftell.c (EOVERFLOW): Remove fallback.
25377 * modules/ftell (Depends-on): Add EOVERFLOW.
25379 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25380 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25381 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25383 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25385 * modules/EOVERFLOW-tests: New file.
25386 * tests/test-EOVERFLOW.c: New file.
25388 * modules/EOVERFLOW: New file.
25389 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25391 2008-03-30 Bruno Haible <bruno@clisp.org>
25393 Fix bug introduced on 2007-06-10.
25394 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25395 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25397 2008-03-30 Bruno Haible <bruno@clisp.org>
25399 Improve freadseek's efficiency after ungetc.
25400 * lib/freadseek.c: Include freadahead.h.
25401 (freadptrinc): New function, extracted from freadseek.
25402 (freadseek): Use it in a loop. Use freadahead to determine the number
25403 of loop iterations.
25404 * modules/freadseek (Depends-on): Add freadahead.
25405 (configure.ac): Require AC_C_INLINE.
25407 2008-03-30 Bruno Haible <bruno@clisp.org>
25409 * lib/freadseek.c (freadseek): Don't ignore the return value of
25412 2008-03-29 Eric Blake <ebb9@byu.net>
25414 Add hex float support.
25415 * modules/strtod (Depends-on): Add c-ctype.
25416 (Link): Mention POW_LIB.
25417 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25418 whitespace between 'e' and exponent.
25419 * tests/test-strtod.c (main): Enable hex float tests.
25420 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25423 Document various strtod bugs, with some fixes.
25424 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25425 "-0x", "inf", "nan", and hex constants.
25426 * doc/posix-functions/atof.texi (atof): Likewise.
25427 * modules/stdlib (Makefile.am): Support strtod.
25428 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25429 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25430 detect additional strtod bugs.
25431 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25432 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25433 bool where appropriate. Parse 'inf' and 'nan'.
25434 * tests/test-strtod.c: New file.
25435 * modules/strtod (Depends-on): Add stdbool, stdlib.
25436 (configure.ac): Turn on module indicator.
25437 * modules/strtod-tests: New module.
25439 2008-03-29 Eric Blake <ebb9@byu.net>
25441 Fix ftell on mingw.
25442 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25443 * modules/ftell-tests (Depends-on): Add binary-io.
25444 * modules/ftello-tests (Depends-on): Likewise.
25445 * tests/test-ftell.c (main): Enhance test to cover behavior after
25446 ungetc. Enforce binary mode.
25447 * tests/test-ftello.c (main): Likewise.
25449 Pass test-freadseek on cygwin.
25450 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25451 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25454 * tests/test-fflush2.c (main): Fix typo.
25456 2008-03-29 Bruno Haible <bruno@clisp.org>
25458 * tests/test-fflush2.c (main): Temporarily disable the contents of
25460 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25461 Reported by Eric Blake.
25463 2008-03-28 Simon Josefsson <simon@josefsson.org>
25465 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25466 (GC_SHA224_DIGEST_SIZE): Add.
25468 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25469 (gc_hash_digest_length): Likewise.
25470 (gc_hash_buffer): Likewise.
25472 2008-03-25 Bruno Haible <bruno@clisp.org>
25474 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25475 detail which gettext release to use.
25476 Reported by Simon Josefsson.
25478 2008-03-26 Jim Meyering <meyering@redhat.com>
25480 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25481 * modules/gnumakefile (clean-GNUmakefile): Also, use
25482 test ... && ... || : syntax rather than if-then ... fi.
25484 gnumakefile: Don't double-quote-expand $(VPATH) value.
25485 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25487 2008-03-24 Eric Blake <ebb9@byu.net>
25489 Alter GNUmakefile to install into top directory.
25490 * modules/maintainer-makefile: Split, and add dependency...
25491 * modules/gnumakefile: to this new module.
25492 * build-aux/GNUmakefile: Move...
25493 * top/GNUmakefile: ...here.
25494 * build-aux/maint.mk: Move...
25495 * top/maint.mk: ...here.
25496 * MODULES.html.sh (Support for maintaining...): Document new
25499 2008-03-23 Bruno Haible <bruno@clisp.org>
25501 * gnulib-tool: New options --vc-files, --no-vc-files.
25502 (func_usage): Document them.
25503 (vc_files): New variable.
25504 (func_import): Consider vc_files.
25505 (func_create_testdir): Set vc_files to empty.
25506 Suggested by Jim Meyering and Karl Berry.
25508 2008-03-23 Bruno Haible <bruno@clisp.org>
25510 Fix regex compilation error on HP-UX 11.
25511 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25512 * modules/regex (Files): Add m4/mbstate_t.m4.
25513 Reported by Ton Voon <ton.voon@altinity.com>.
25515 2008-03-23 Bruno Haible <bruno@clisp.org>
25517 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25519 2008-03-23 Eric Blake <ebb9@byu.net>
25520 Bruno Haible <bruno@clisp.org>
25522 Install files from top/ in the destination directory.
25523 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25524 augmentation also for the files from top/.
25525 (func_import, func_create_testdir): Rewrite file names:
25526 top/filename -> filename.
25528 2008-03-23 Bruno Haible <bruno@clisp.org>
25530 Tweak "gnulib --version" output.
25531 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25533 2008-03-23 Bruno Haible <bruno@clisp.org>
25535 Tweak "gnulib --version" output.
25536 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25537 rather than contents of ChangeLog, when possible.
25539 2008-03-21 Eric Blake <ebb9@byu.net>
25541 More --version tweaks.
25542 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
25543 date of last ChangeLog entry.
25545 2008-03-21 Jim Meyering <meyering@redhat.com>
25547 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25549 2008-03-20 Eric Blake <ebb9@byu.net>
25552 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25554 2008-03-20 Simon Josefsson <simon@josefsson.org>
25556 * build-aux/GNUmakefile: Make git-version-gen optional. Add
25557 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
25559 2008-03-20 Eric Blake <ebb9@byu.net>
25561 Sync GNUmakefile with coreutils.
25562 * build-aux/GNUmakefile (have-Makefile): Rename...
25563 (_have-Makefile): ...to this, for namespace consideration.
25564 (GNUmakefile.cfg): Include, if present.
25565 (_autoreconf): Define a default.
25566 (_is-dist-target): New rule for rebuilds to pick up intra-release
25568 (maint-cfg.mk): Rename...
25569 (cfg.mk): ...to this.
25571 2008-03-18 Jim Meyering <meyering@redhat.com>
25573 New script and module: mktempd
25574 * MODULES.html.sh (maint+release support): Add mktempd.
25575 * build-aux/mktempd: New file.
25576 * modules/mktempd: New file.
25578 2008-03-15 Jim Meyering <meyering@redhat.com>
25581 * lib/sha1.c, lib/md5.c: 63 != ~63.
25582 Reported by Andreas Schwab.
25584 sha1.c, md5.c: Hoist a redundant expression.
25585 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25586 "ctx->buflen" only once, before calling *_process_block.
25587 * lib/md5.c (md5_process_bytes): Likewise.
25589 2008-03-14 Eric Blake <ebb9@byu.net>
25591 Bump copyright year in files generated by gnulib-tool.
25592 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25593 gnulib-tool, rather than hard-coding it.
25595 Fix 'gnulib-tool --version' output to work with git.
25596 * gnulib-tool (func_gnulib_dir): New function, extracted from...
25597 (startup): ...here.
25598 (func_version): Use it to invoke git-version-gen, rather than
25599 relying on CVS keyword expansion. Modernize wording.
25600 (cvsdatestamp, last_checkin_date, version): Kill unused
25603 2008-03-12 Jim Meyering <meyering@redhat.com>
25605 Recognize optional cast of the argument to free.
25606 * build-aux/useless-if-before-free: Update regexps.
25608 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25610 2008-03-11 Bruno Haible <bruno@clisp.org>
25612 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25613 by a single package.
25614 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25615 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25616 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25617 Reported by Sam Steingold <sds@gnu.org>.
25619 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
25621 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25624 2008-03-11 Bruno Haible <bruno@clisp.org>
25626 Avoid conflicts between local macro definitions.
25627 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25628 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25630 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
25631 Bruno Haible <bruno@clisp.org>
25633 Make va_copy work with some version of xlc on AIX 5.1.
25634 * lib/stdarg.in.h: New file.
25635 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25636 On AIX, use a <stdarg.h> file substitute.
25637 * modules/stdarg (Files): Add lib/stdarg.in.h.
25638 (Depends-on): Add include_next.
25639 (Makefile.am): Build a stdarg.h substitute if requested.
25640 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25642 2008-03-10 Bruno Haible <bruno@clisp.org>
25644 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25645 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25646 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25648 2008-03-10 Bruno Haible <bruno@clisp.org>
25650 * modules/stdlib (Depends-on): Add include_next, remove
25653 2008-03-09 Bruno Haible <bruno@clisp.org>
25655 * lib/freadahead.h (freadahead): Document more precisely.
25656 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25657 the sum of both buffer sizes.
25658 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25659 * NEWS: Document the change.
25661 2008-03-09 Bruno Haible <bruno@clisp.org>
25663 Extend freadptr to return also the buffer size.
25664 * lib/freadptr.h (freadptr): Add sizep argument.
25665 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25666 (freadptr): Add sizep argument. Determine buffer size like freadahead
25668 * tests/test-freadptr.c: Don't include freadahead.h.
25669 (main): Adapt for new calling convention of freadptr.
25670 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25671 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25672 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25673 tests/test-freadptr2.sh.
25674 (Depends): Remove freadahead.
25675 (TESTS): Add test-freadptr2.sh.
25676 (check_PROGRAMS): Add test-freadptr2.
25678 2008-03-09 Bruno Haible <bruno@clisp.org>
25680 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25681 Report and solution by Simon Josefsson.
25683 2008-03-06 Bruno Haible <bruno@clisp.org>
25685 Make fflush after ungetc work on BSD platforms.
25686 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25687 * tests/test-fflush2.c: New file.
25688 * tests/test-fflush2.sh: New file.
25689 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25690 tests/test-fflush2.c.
25691 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25692 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25694 2008-03-06 Eric Blake <ebb9@byu.net>
25696 Likewise for ftello.
25697 * modules/ftello (Dependencies): Add extensions.
25698 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25700 2008-03-06 Bruno Haible <bruno@clisp.org>
25702 * modules/fseeko (Dependencies): Add extensions.
25703 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25704 Needed on glibc systems.
25706 2008-03-06 Bruno Haible <bruno@clisp.org>
25708 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25710 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25712 2008-03-06 Bruno Haible <bruno@clisp.org>
25714 * users.txt: Add libgnupdf.
25716 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25718 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25719 (Header File Substitutes, Function Substitutes,
25720 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25721 (Build robot for gnulib): Fix typo.
25723 2008-03-06 Bruno Haible <bruno@clisp.org>
25725 * doc/gnulib-tool.texi (VCS Issues): Small updates.
25726 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25728 2008-03-06 Bruno Haible <bruno@clisp.org>
25730 * doc/func.texi: New file, extracted from doc/gnulib.texi.
25731 * doc/gnulib.texi: Include it.
25733 2008-03-06 Simon Josefsson <simon@josefsson.org>
25735 * modules/func (License): Change license to unlimited; there was
25736 no LGPL parts in the module anyway.
25738 2008-03-06 Simon Josefsson <simon@josefsson.org>
25740 * modules/__func__: Renamed to modules/func.
25741 * modules/__func__-tests: Renamed to modules/func-tests.
25742 * tests/test-__func__.c: Renamed to tests/test-func.c.
25743 * m4/__func__.m4: Renamed to m4/func.m4.
25744 * doc/gnulib.texi (__func__): Section renamed to func.
25745 Suggested by Eric Blake <ebb9@byu.net>.
25747 2008-03-06 Simon Josefsson <simon@josefsson.org>
25749 * doc/gnulib.texi (__func__): Use C99 terminology when talking
25750 about __func__. Make example self-contained. Suggested by Eric
25751 Blake <ebb9@byu.net>.
25753 * tests/test-__func__.c (main): Avoid extraneous () around __func.
25754 Suggested by Eric Blake <ebb9@byu.net>.
25756 2008-03-06 Simon Josefsson <simon@josefsson.org>
25758 * modules/__func__: New file.
25759 * modules/__func__-tests: New file.
25760 * tests/test-__func__.c: New file.
25761 * m4/__func__.m4: New file.
25762 * doc/gnulib.texi (__func__): Document __func__ module.
25764 2008-03-05 Simon Josefsson <simon@josefsson.org>
25766 * modules/byteswap (License): Re-license as LGPLv2+.
25768 2008-03-05 Simon Josefsson <simon@josefsson.org>
25770 * doc/Makefile: Add pdf target.
25772 2008-03-05 Simon Josefsson <simon@josefsson.org>
25774 * modules/inline (License): Use 'unlimited', since there are only
25775 *.m4 files in this module.
25777 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25778 Bruno Haible <bruno@clisp.org>
25780 Add support for HP C 7.1 on OpenVMS 8.3.
25781 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25783 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25785 Update VMS specifics.
25786 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25788 2008-03-02 Jim Meyering <meyering@redhat.com>
25790 Remove the last dependency on the "free" module.
25791 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25792 Reported by Bob Proulx.
25794 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25796 Remove useless "if" tests before free. Deprecate "free" module.
25797 * doc/posix-functions/free.texi: Mention that this
25798 module is no longer useful.
25799 * modules/free (Notice): Say this module is obsolete.
25800 * modules/readutmp (Depends-on): Remove free.
25801 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25802 * lib/putenv.c (putenv): Likewise.
25803 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25804 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25805 * tests/test-c-strcasestr.c (main): Likewise.
25806 * tests/test-c-strstr.c (main): Likewise.
25807 * tests/test-mbscasestr1.c (main): Likewise.
25808 * tests/test-mbscasestr2.c (main): Likewise.
25809 * tests/test-mbsstr1.c (main): Likewise.
25810 * tests/test-mbsstr2.c (main): Likewise.
25811 * tests/test-memmem.c (main): Likewise.
25812 * tests/test-strcasestr.c (main): Likewise.
25813 * tests/test-striconv.c (main): Likewise.
25814 * tests/test-striconveh.c (main): Likewise.
25815 * tests/test-striconveha.c (main): Likewise.
25816 * tests/test-strstr.c (main): Likewise.
25818 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25820 bootstrap: sync from coreutils again
25821 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25823 2008-03-01 Jim Meyering <meyering@redhat.com>
25825 bootstrap: sync from coreutils
25826 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25827 also when the target doesn't exist.
25829 2008-03-01 Eric Blake <ebb9@byu.net>
25831 Fix bugs in last patch.
25832 * lib/memchr2.c (memchr2): Fix typo.
25833 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25835 Reported by Bruce Korb.
25837 New module 'memchr2'.
25838 * modules/memchr2: New file.
25839 * modules/memchr2-tests: Likewise.
25840 * lib/memchr2.h: Likewise.
25841 * lib/memchr2.c: Likewise, based on memchr.c.
25842 * tests/test-memchr2.c: New test.
25843 * MODULES.html.sh (String handling): Add memchr2.
25845 2008-02-29 Bruno Haible <bruno@clisp.org>
25847 * modules/freadseek-tests: New file.
25848 * tests/test-freadseek.sh: New file.
25849 * tests/test-freadseek.c: New file.
25851 New module 'freadseek'.
25852 * modules/freadseek: New file.
25853 * lib/freadseek.h: New file.
25854 * lib/freadseek.c: New file.
25855 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25857 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
25859 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25862 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25863 program_invocation_name and program_invocation_short_name are
25866 2008-02-28 Bruno Haible <bruno@clisp.org>
25868 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25869 * tests/test-freadptr.sh: Also test non-seekable stdin.
25871 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
25873 * build-aux/bootstrap (source_base, m4_base)
25874 (doc_base, tests_base): New variables.
25875 (gnulib_tool_options): Do not hardcode base directories, use
25876 the above variables instead.
25878 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
25880 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25882 2008-02-28 Bruno Haible <bruno@clisp.org>
25884 * modules/freadptr-tests: New file.
25885 * tests/test-freadptr.sh: New file.
25886 * tests/test-freadptr.c: New file.
25888 New module 'freadptr'.
25889 * modules/freadptr: New file.
25890 * lib/freadptr.h: New file.
25891 * lib/freadptr.c: New file.
25892 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25894 2008-02-26 Karl Berry <karl@freefriends.org>
25897 * libltdl/argz.c (argz_add, argz_count): New functions.
25898 * libltdl/argz.in.h: Declare them.
25899 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25901 2008-02-22 Bruno Haible <bruno@clisp.org>
25903 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25904 is a pointer type. Needed for HP-UX 10.
25905 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25906 * doc/posix-functions/gmtime_r.texi: Likewise.
25907 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25909 2008-02-24 Bruno Haible <bruno@clisp.org>
25911 * modules/environ-tests: New file.
25912 * tests/test-environ.c: New file.
25914 New module 'environ'.
25915 * modules/environ: New file.
25916 * lib/unistd.in.h (environ): New declaration.
25917 * m4/environ.m4: New file.
25918 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25920 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25922 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25924 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25925 wrong claim that 'environ' is missing on some systems.
25926 * modules/execute (Depends-on): Add environ.
25927 * lib/execute.c (environ): Remove fallback declaration.
25928 * modules/pipe (Depends-on): Add environ.
25929 * lib/pipe.c (environ): Remove fallback declaration.
25930 * modules/setenv (Depends-on): Add environ.
25931 * lib/setenv.c (environ): Remove fallback declaration.
25932 * modules/unsetenv (Depends-on): Add environ.
25933 * lib/unsetenv.c (environ): Remove fallback declaration.
25934 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25936 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25937 (gl_PREREQ_UNSETENV): Likewise.
25939 2008-02-24 Bruno Haible <bruno@clisp.org>
25941 * doc/posix-functions/environ.texi: Document the MacOS X problem.
25943 2008-02-20 Bob Proulx <bob@proulx.com>
25945 Enable use of older two part flavor 'git describe'.
25946 * build-aux/git-version-gen: If using the older two part flavor of
25947 git version then recreate the third part now present in the
25948 newer three part flavor of git describe.
25950 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
25952 * lib/fts.c (fts_build): Typo correction to comment.
25954 2008-02-17 Bruno Haible <bruno@clisp.org>
25956 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25957 generating no-op conflicts.
25959 2008-02-17 Bruno Haible <bruno@clisp.org>
25962 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25963 result_entries, rather than an index-based loop.
25965 2008-02-17 Bruno Haible <bruno@clisp.org>
25968 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25970 (entry_create): New function.
25971 (entry_hashcode): Use the cached hashcode if possible.
25972 (read_changelog_file, try_split_merged_entry): Use entry_create.
25974 2008-02-17 Bruno Haible <bruno@clisp.org>
25976 Speed up from O(n^2) to O(n) for long ChangeLog files.
25977 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25978 (read_changelog_file): Change implementation of entries_reversed list
25980 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25982 2008-02-17 Bruno Haible <bruno@clisp.org>
25984 New option --split-merged-entry.
25985 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25986 (find_paragraph_end, try_split_merged_entry): New functions.
25987 (long_options): Add option --split-merged-entry.
25988 (usage): Document option --split-merged-entry.
25989 (main): Implement option --split-merged-entry.
25990 Reported by Eric Blake.
25992 2008-02-17 Bruno Haible <bruno@clisp.org>
25994 * lib/git-merge-changelog.c: Include c-strstr.h.
25995 (main): Support the "git pull --rebase" situation.
25996 * modules/git-merge-changelog (Depends-on): Add c-strstr.
25997 Reported by Eric Blake.
25999 2008-02-16 Eric Blake <ebb9@byu.net>
26001 Avoid doubling \ in common case of "c-maybe" quoting style.
26002 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26003 eliding outer quotes.
26004 * lib/quotearg.h: Document this.
26005 * tests/test-quotearg.c (result_strings, inputs, results_g)
26006 (flag_results, locale_results): Test it by adding a new string to
26008 (compare_strings): Test new string.
26010 2008-02-13 Eric Blake <ebb9@byu.net>
26012 Avoid trigraph quoting in default output.
26013 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26014 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26015 unless explicitly requested.
26016 * tests/test-quotearg.c (flag_results, main): Add additional tests.
26018 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
26020 Don't rely on signed integer overflowing to negative value.
26021 * lib/getugroups.c (getugroups): Include <limits.h>.
26022 Instead, compare against INT_MAX, and increment only if the test passes.
26024 2008-02-13 Jim Meyering <meyering@redhat.com>
26025 and Eric Blake <ebb9@byu.net>
26027 Avoid shadowing warning and compile errors on Linux.
26028 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26029 forwarding macros on Linux.
26030 (dcgettext): Define a stub, for Linux.
26031 (results_g, main): Avoid warnings.
26033 2008-02-12 Eric Blake <ebb9@byu.net>
26035 Silence warning in last patch.
26036 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26038 Quotearg part 4: add tests, fix c-maybe colon quoting.
26039 * lib/quotearg.h: Improve documentation.
26040 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26041 escapes when adding outer quotes. When quoting trigraphs, use
26042 valid C notation. When quoting NUL, omit extra characters if next
26043 character is not digit. Alter prototype.
26044 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26046 * modules/quotearg-tests: New module.
26047 * tests/test-quotearg.c: New test.
26049 2008-02-07 Eric Blake <ebb9@byu.net>
26051 Quotearg part 3: add flag to control outer quote elision.
26052 * lib/quotearg.h (c_maybe_quoting_style): New style.
26053 (enum quoting_flags): Better documentation of flags.
26054 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26056 (quotearg_buffer_restyled): Handle new flag to elide outer
26059 Quotearg part 2: add flag that can control NUL elision.
26060 * lib/quotearg.h (set_quoting_flags): New prototype.
26061 * lib/quotearg.c (struct quoting_options): Add flag field.
26062 (set_quoting_flags): New function.
26063 (quotearg_buffer_restyled): Add flags parameter.
26064 (quotearg_alloc_mem): Set the flag if length cannot be returned.
26065 (quotearg_n_options): Set the flag, since length cannot be
26067 (quoting_options_from_style): Default flags correctly.
26069 Quotearg part 1: more wrappers, restore quotearg_char state.
26070 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26071 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26072 (quotearg_colon_mem): New wrappers.
26073 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26074 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26076 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26077 (quotearg_colon_mem): New functions.
26079 2008-02-11 Bruno Haible <bruno@clisp.org>
26081 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26082 library in the current directory: it does not work with parallel make.
26083 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26085 2008-02-11 Bruno Haible <bruno@clisp.org>
26087 * .gitattributes: New file.
26089 2008-02-11 Jim Meyering <meyering@redhat.com>
26091 useless-if-before-free: Fix reversed exit values.
26092 * build-aux/useless-if-before-free: Use correct values
26093 for EXIT_MATCH and EXIT_NO_MATCH.
26095 * build-aux/useless-if-before-free: Close stdout carefully.
26097 2008-02-10 Bruno Haible <bruno@clisp.org>
26099 New module 'git-merge-changelog'.
26100 * modules/git-merge-changelog: New file.
26101 * lib/git-merge-changelog.c: New file.
26103 2008-02-10 Jim Meyering <meyering@redhat.com>
26105 useless-if-before-free: New option: --list (-l).
26107 useless-if-before-free: Don't exit immediately upon open failure.
26108 * build-aux/useless-if-before-free: Exit 2 for errors.
26109 Upon failure to open a file, don't exit immediately.
26110 Rather, just warn and continue with any remaining files.
26112 2008-02-10 Bruno Haible <bruno@clisp.org>
26114 New abstract list operation 'node_set_value'.
26115 * lib/gl_list.h (gl_list_node_set_value): New function.
26116 (struct gl_list_implementation): New field node_set_value.
26117 * lib/gl_list.c (gl_list_node_set_value): New function.
26118 * lib/gl_array_list.c (gl_array_node_set_value): New function.
26119 (gl_array_list_implementation): Update.
26120 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26121 (gl_carray_list_implementation): Update.
26122 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26123 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26124 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26125 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26126 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26127 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26128 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26130 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26131 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26132 (gl_sublist_list_implementation): Update.
26134 2008-02-10 Bruno Haible <bruno@clisp.org>
26136 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26137 Needed when ELEMENT is #defined to 'some_type *'.
26139 2008-02-10 Jim Meyering <meyering@redhat.com>
26141 New script and module: useless-if-before-free
26142 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26143 * build-aux/useless-if-before-free: New file.
26144 * modules/useless-if-before-free: New file.
26146 * build-aux/gitlog-to-changelog: Use committer date, not author date.
26148 xstrtol_error: Fix typo.
26149 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26150 s/exit_failure/exit_status/.
26152 2008-02-09 Jim Meyering <meyering@redhat.com>
26154 New script and module: gitlog-to-changelog
26155 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26156 * modules/gitlog-to-changelog: New file.
26157 * build-aux/gitlog-to-changelog: New file.
26159 2008-02-08 Jim Meyering <meyering@redhat.com>
26161 Avoid two "parameter unused" warnings.
26162 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26165 Use "git COMMAND", not "git-COMMAND".
26166 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26167 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26168 * build-aux/git-version-gen: Use "git status", not "git-status".
26170 2008-02-07 Bruno Haible <bruno@clisp.org>
26172 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26173 Avoids a crash on Windows Vista.
26174 Reported by Adam Strzelecki <ono@java.pl> via
26175 Simon Josefsson <simon@josefsson.org>.
26177 2008-02-06 Bruno Haible <bruno@clisp.org>
26179 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26180 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26181 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26182 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26183 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26184 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26185 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26186 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26187 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26188 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26189 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26190 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26191 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26192 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26193 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26194 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26196 * tests/test-snprintf-posix.h (test_function): Likewise.
26197 * tests/test-sprintf-posix.h (test_function): Likewise.
26198 * tests/test-vasprintf-posix.c (test_function): Likewise.
26199 * doc/posix-functions/fprintf.texi: Update.
26200 * doc/posix-functions/printf.texi: Update.
26201 * doc/posix-functions/snprintf.texi: Update.
26202 * doc/posix-functions/sprintf.texi: Update.
26203 * doc/posix-functions/vfprintf.texi: Update.
26204 * doc/posix-functions/vprintf.texi: Update.
26205 * doc/posix-functions/vsnprintf.texi: Update.
26206 * doc/posix-functions/vsprintf.texi: Update.
26207 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26209 2008-02-06 Bruno Haible <bruno@clisp.org>
26211 Fix bug introduced on 2008-01-26.
26212 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26214 2008-02-06 Bruno Haible <bruno@clisp.org>
26216 Fix bug introduced on 2007-06-10.
26217 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26218 !NEED_PRINTF_FLAG_ZERO.
26220 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
26222 getloadavg: use libperfstat on AIX5
26223 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26225 2008-02-03 Bruno Haible <bruno@clisp.org>
26227 * lib/diffseq.h: Add comments about required #includes.
26228 Reported by Michael Biggs <gnulib@doubleplum.net>.
26230 2008-02-01 Bruno Haible <bruno@clisp.org>
26232 * users.txt: Add gnuit.
26234 2008-01-31 Bruno Haible <bruno@clisp.org>
26236 * lib/md4.c (set_uint32): Mark as inline.
26237 * lib/md5.c (set_uint32): Likewise.
26238 * lib/sha1.c (set_uint32): Likewise.
26239 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26240 * m4/md5.m4 (gl_MD5): Likewise.
26241 * m4/sha1.m4 (gl_SHA1): Likewise.
26243 2008-01-31 Jim Meyering <meyering@redhat.com>
26245 Use "sizeof VAR", rather than a literal "4".
26246 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26247 * lib/md4.c (md4_read_ctx): Likewise.
26248 * lib/sha1.c (sha1_read_ctx): Likewise.
26250 2008-01-31 Simon Josefsson <simon@josefsson.org>
26252 * tests/test-sha1.c: New file, based on test-md5.c.
26254 * modules/crypto/sha1-tests: New file.
26256 2008-01-31 Simon Josefsson <simon@josefsson.org>
26258 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26260 2008-01-31 Jim Meyering <meyering@redhat.com>
26262 Prefer "sizeof v" over the equivalent "4".
26263 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26264 * lib/md5.c (set_uint32): Likewise.
26265 * lib/sha1.c (set_uint32): Likewise.
26267 2008-01-31 Simon Josefsson <simon@josefsson.org>
26269 * lib/sha1.c (set_uint32): Mark function as static.
26271 2008-01-31 Simon Josefsson <simon@josefsson.org>
26273 md2: clarify comments to say that alignment is not required.
26274 * lib/md2.h: Remove warning about alignment in comment.
26275 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26276 never been required.
26278 2008-01-31 Simon Josefsson <simon@josefsson.org>
26280 md4: adapt alignment constraint fix from sha1.
26281 * lib/md4.c (set_uint32): New function, from sha1.c
26282 (md4_read_ctx): Use it.
26283 (md4_finish_ctx): Doc fix.
26284 * lib/md4.h: Doc fix.
26286 2008-01-31 Simon Josefsson <simon@josefsson.org>
26288 md5: adapt alignment constraint fix from sha1.
26289 * lib/md5.c (set_uint32): New function, from sha1.c
26290 (md5_read_ctx): Use it.
26291 (md5_finish_ctx): Doc fix.
26292 * lib/md5.h: Doc fix.
26294 2008-01-30 Peter Palfrader <weasel@debian.org>
26296 sha1: remove the result buffer alignment constraint
26297 * lib/sha1.c (set_uint32): New function.
26298 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26300 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26301 * lib/sha1.h: Likewise.
26303 2008-01-30 Andreas Schwab <schwab@suse.de>
26304 Bruno Haible <bruno@clisp.org>
26306 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26307 correct definition of LDBL_MIN_EXP.
26309 2008-01-30 Karl Berry <karl@gnu.org>
26311 * config/srclist-update: try to preserve x bit on updates.
26312 * config/srclistvars.sh: update for karl.
26314 2008-01-29 Jim Meyering <meyering@redhat.com>
26316 vasnprintf.c: Avoid warning about unused label
26317 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26318 "overflow" label definition and associated code with the
26319 same cpp condition that guards the sole use of that label.
26321 2008-01-26 Bruno Haible <bruno@clisp.org>
26323 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26324 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26325 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26326 * lib/isnanl-nolibm.h (isnanl): Likewise.
26327 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26329 2008-01-26 Bruno Haible <bruno@clisp.org>
26331 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26332 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26334 2008-01-26 Bruno Haible <bruno@clisp.org>
26336 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26337 GCC >= 4.0 built-in.
26338 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26340 2008-01-26 Bruno Haible <bruno@clisp.org>
26342 Rename isnan, applicable to 'double' only, to isnand.
26343 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26344 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26345 (configure.ac): Update.
26346 (Include): Replace "isnan.h" with "isnand.h".
26347 * m4/isnand.m4: Renamed from m4/isnan.m4.
26348 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26349 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26350 instead of isnan.c.
26351 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26352 instead of HAVE_ISNAN_IN_LIBC.
26353 (isnand): Renamed from isnan.
26354 * lib/isnand.c: New file.
26355 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26356 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26357 (Makefile.am): Update.
26358 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26359 Include isnand.h instead of isnan.h.
26360 (main): Test isnand instead of isnan.
26361 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26363 * modules/frexp (Depends-on): Likewise.
26364 * modules/frexp-tests (Depends-on): Likewise.
26365 * modules/frexp-nolibm (Depends-on): Likewise.
26366 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26367 * modules/isfinite (Depends-on): Likewise.
26368 * modules/round-tests (Depends-on): Likewise.
26369 * modules/signbit (Depends-on): Likewise.
26370 * modules/signbit-tests (Depends-on): Likewise.
26371 * modules/snprintf-posix (Depends-on): Likewise.
26372 * modules/sprintf-posix (Depends-on): Likewise.
26373 * modules/trunc-tests (Depends-on): Likewise.
26374 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26375 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26376 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26377 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26378 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26379 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26380 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26381 * modules/vasnprintf-posix (Depends-on): Likewise.
26382 * modules/vasprintf-posix (Depends-on): Likewise.
26383 * modules/vfprintf-posix (Depends-on): Likewise.
26384 * modules/vsnprintf-posix (Depends-on): Likewise.
26385 * modules/vsprintf-posix (Depends-on): Likewise.
26386 * lib/frexp.c: Include isnand.h instead of isnan.h.
26387 (ISNAN): Set to isnand instead of isnan.
26388 * lib/isfinite.c: Include isnand.h instead of isnan.h.
26389 (gl_isfinited): Use isnand instead of isnan.
26390 * lib/signbitd.c: Include isnand.h instead of isnan.h.
26391 (gl_signbitd): Use isnand instead of isnan.
26392 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26393 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26394 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26395 (main): Use isnand instead of isnan.
26396 * tests/test-round1.c: Include isnand.h.
26397 (main): Use isnand instead of isnan.
26398 * tests/test-round2.c: Include isnand.h instead of isnan.h.
26399 (ISNAN): Set to isnand instead of isnan.
26400 * tests/test-trunc1.c: Include isnand.h.
26401 (main): Use isnand instead of isnan.
26402 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26403 (equal): Use isnand instead of isnan.
26404 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26406 * NEWS: Mention the change.
26408 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
26409 Bruno Haible <bruno@clisp.org>
26411 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26412 the GCC builtins for signbits are present and set
26413 REPLACE_SIGNBIT_USING_GCC if so.
26414 * lib/math.in.h (signbit): Define using GCC builtins if
26415 REPLACE_SIGNBIT_USING_GCC is set.
26416 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26417 REPLACE_SIGNBIT_USING_GCC.
26418 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26420 2008-01-25 Jim Meyering <meyering@redhat.com>
26422 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26423 * lib/poll.c: Include <config.h>, not "config.h".
26424 * tests/test-getaddrinfo.c: Likewise.
26426 2008-01-25 Simon Josefsson <simon@josefsson.org>
26428 * modules/sockets-tests: New file.
26430 2008-01-24 Simon Josefsson <simon@josefsson.org>
26432 * modules/sockets: New module, can be used to call WSA_Startup and
26433 WSA_Cleanup when needed.
26435 * lib/sockets.h, lib/sockets.c: New files.
26437 * m4/sockets.m4: New file.
26439 * tests/test-sockets.c: New file.
26441 2008-01-19 Bruno Haible <bruno@clisp.org>
26443 * doc/posix-headers: Renamed from doc/headers.
26444 * doc/posix-functions: Renamed from doc/functions.
26445 * doc/gnulib.texi: Update.
26447 2008-01-19 Bruno Haible <bruno@clisp.org>
26449 * doc/glibc-functions/strcasestr.texi: Include contents of
26450 doc/functions/strcasestr.texi, fixing the list of platforms.
26451 * doc/functions/strcasestr.texi: Remove file.
26453 2008-01-19 Bruno Haible <bruno@clisp.org>
26455 * doc/glibc-functions/memmem.texi: Include contents of
26456 doc/functions/memmem.texi.
26457 * doc/functions/memmem.texi: Remove file.
26459 2008-01-18 Bruno Haible <bruno@clisp.org>
26461 * doc/glibc-functions/*.texi: New files.
26462 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26463 to use the new files.
26465 2008-01-17 Bruno Haible <bruno@clisp.org>
26467 * tests/test-gethostname.c (main): Fix printf statement.
26469 2008-01-17 Simon Josefsson <simon@josefsson.org>
26471 * modules/gethostname-tests: New file.
26473 * tests/test-gethostname.c: New file.
26475 2008-01-17 Simon Josefsson <simon@josefsson.org>
26477 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26478 used by the UNAME case. Reported by Bruno Haible
26481 2008-01-17 Eric Blake <ebb9@byu.net>
26483 Convert c-strcasestr to be more efficient.
26484 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26485 (Depends-on): Add c-strcase, remove malloca, strnlen.
26486 * tests/test-c-strcasestr.c (main): Enhance test.
26487 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26489 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
26491 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26492 Use it in creating po/Makevars.
26494 2008-01-15 Simon Josefsson <simon@josefsson.org>
26496 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26497 Applications that requires it should initialize libgcrypt
26500 2008-01-16 Simon Josefsson <simon@josefsson.org>
26502 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26504 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
26506 Fix problem with getdate on mingw32 reported by Simon Josefsson
26507 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26508 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26509 tzname", when deciding whether to declare tzname.
26510 * lib/strftime.c (tzname): Likewise.
26512 2008-01-15 Bruno Haible <bruno@clisp.org>
26514 Work around a MacOS X 10.5 bug in frexpl().
26515 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26516 * doc/functions/frexpl.texi: Document the bug.
26517 Reported by Elias Pipping <pipping@gentoo.org>.
26519 2008-01-14 Eric Blake <ebb9@byu.net>
26521 Touch up previous patch.
26522 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26523 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26525 Convert strcasestr module to use Two-Way algorithm.
26526 * modules/strcasestr-simple: New module, based on the old
26527 strcasestr, but with Two-Way rather than KMP.
26528 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26529 * lib/string.in.h (rpl_strcasestr): Declare.
26530 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26532 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26533 * modules/string (Makefile.am): Support strcasestr.
26534 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26535 * modules/strcasestr-tests (Depends-on): Check for alarm.
26536 * tests/test-strcasestr.c: Augment test.
26537 * lib/str-two-way.h: Clean up stray macro.
26538 * NEWS: Document new module.
26539 * MODULES.html.sh (string handling): Likewise.
26540 * doc/functions/strcasestr.texi: New file.
26541 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
26542 here, since it is not a POSIX function.
26544 2008-01-14 Colin Watson <cjwatson@debian.org>
26545 Bruno Haible <bruno@clisp.org>
26547 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26548 works fine; if not, set REPLACE_STRSIGNAL.
26549 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26550 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26552 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26553 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26554 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26556 2008-01-14 Bruno Haible <bruno@clisp.org>
26558 * modules/strsignal (Include): Change to <string.h>.
26560 2008-01-14 Colin Watson <cjwatson@debian.org>
26562 * modules/argp (Notice): Add a notice recommending to change
26564 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26566 2008-01-13 Colin Watson <cjwatson@debian.org>
26568 * modules/strsignal-tests: New file.
26569 * tests/test-strsignal.c: New file.
26571 * lib/strsignal.c: New file, from glibc with modifications.
26572 * lib/siglist.h: New file, from glibc with modifications.
26573 * lib/string.in.h (strsignal): New declaration.
26574 * m4/strsignal.m4: New file.
26575 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26576 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26577 * modules/strsignal: New file.
26578 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26579 HAVE_DECL_STRSIGNAL.
26581 2008-01-13 Bruno Haible <bruno@clisp.org>
26583 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26584 locale encoding is not ASCII. Needed for OpenBSD 4.0.
26585 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26586 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26588 2008-01-13 Bruno Haible <bruno@clisp.org>
26590 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26591 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26592 * lib/argp.h (__attribute__): Likewise.
26593 * lib/c-stack.c (__attribute__): Likewise.
26594 * lib/error.h (__attribute__): Likewise.
26595 * lib/fts.c (__attribute__): Likewise.
26596 * lib/openat.h (__attribute__): Likewise.
26597 * lib/stdio.in.h (__attribute__): Likewise.
26598 * lib/string.in.h (__attribute__): Likewise.
26599 * lib/utimens.c (__attribute__): Likewise.
26600 * lib/vasnprintf.h (__attribute__): Likewise.
26601 * lib/xalloc.h (__attribute__): Likewise.
26602 * lib/xprintf.h (__attribute__): Likewise.
26603 * lib/xstrtol.h (__attribute__): Likewise.
26604 * lib/xvasprintf.h (__attribute__): Likewise.
26606 2008-01-12 Bruno Haible <bruno@clisp.org>
26608 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26609 * doc/glibc-headers/a.out.texi: New file.
26610 * doc/glibc-headers/aliases.texi: New file.
26611 * doc/glibc-headers/alloca.texi: New file.
26612 * doc/glibc-headers/ar.texi: New file.
26613 * doc/glibc-headers/argp.texi: New file.
26614 * doc/glibc-headers/argz.texi: New file.
26615 * doc/glibc-headers/byteswap.texi: New file.
26616 * doc/glibc-headers/crypt.texi: New file.
26617 * doc/glibc-headers/endian.texi: New file.
26618 * doc/glibc-headers/envz.texi: New file.
26619 * doc/glibc-headers/err.texi: New file.
26620 * doc/glibc-headers/error.texi: New file.
26621 * doc/glibc-headers/execinfo.texi: New file.
26622 * doc/glibc-headers/fpu_control.texi: New file.
26623 * doc/glibc-headers/fstab.texi: New file.
26624 * doc/glibc-headers/fts.texi: New file.
26625 * doc/glibc-headers/getopt.texi: New file.
26626 * doc/glibc-headers/ieee754.texi: New file.
26627 * doc/glibc-headers/ifaddrs.texi: New file.
26628 * doc/glibc-headers/libintl.texi: New file.
26629 * doc/glibc-headers/mcheck.texi: New file.
26630 * doc/glibc-headers/mntent.texi: New file.
26631 * doc/glibc-headers/obstack.texi: New file.
26632 * doc/glibc-headers/paths.texi: New file.
26633 * doc/glibc-headers/printf.texi: New file.
26634 * doc/glibc-headers/pty.texi: New file.
26635 * doc/glibc-headers/resolv.texi: New file.
26636 * doc/glibc-headers/shadow.texi: New file.
26637 * doc/glibc-headers/sysexits.texi: New file.
26638 * doc/glibc-headers/ttyent.texi: New file.
26640 2008-01-12 Jim Meyering <meyering@redhat.com>
26642 announce-gen: emit Gnulib's git-based version string.
26643 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26644 New option --gnulib-version=V, where V is expected to be
26645 the output of running git describe in the gnulib directory.
26646 (get_tool_versions): Request feedback on xdelta. I suspect it's
26647 not useful, and plan to stop publishing an xdelta file with each
26650 * build-aux/announce-gen: Also check for lzma-compressed files.
26652 2008-01-11 Bruno Haible <bruno@clisp.org>
26654 * tests/test-memmem.c (main): Increase maximum allowed time.
26655 * tests/test-strstr.c (main): Likewise.
26657 2008-01-11 Bruno Haible <bruno@clisp.org>
26659 * doc/functions/memmem.texi: Add more precisions about platforms.
26660 * doc/functions/strstr.texi: Likewise.
26662 2008-01-10 Eric Blake <ebb9@byu.net>
26664 * m4/strstr.m4: Delete cruft from copy-n-paste.
26665 Reported by Bruno Haible.
26667 2008-01-10 Bruno Haible <bruno@clisp.org>
26669 Make c-strstr rely on strstr.
26670 * lib/c-strstr.c: Don't include str-kmp.h.
26671 (c_strstr): Define in terms of strstr.
26672 * modules/c-strstr (Files): Remove lib/str-kmp.h.
26673 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26675 2008-01-10 Bruno Haible <bruno@clisp.org>
26677 * doc/gnulib.texi (String Functions in C Locale): New section.
26678 * doc/c-ctype.texi: New file.
26679 * doc/c-strcase.texi: New file.
26680 * doc/c-strcaseeq.texi: New file.
26681 * doc/c-strcasestr.texi: New file.
26682 * doc/c-strstr.texi: New file.
26683 * doc/c-strtod.texi: New file.
26684 * doc/c-strtold.texi: New file.
26686 2008-01-10 Eric Blake <ebb9@byu.net>
26688 * lib/relocatable.h: Fix a comment.
26690 2008-01-10 Eric Blake <ebb9@byu.net>
26692 Share two-way algorithm.
26693 * lib/str-two-way.h: New file, merged from...
26694 * lib/memmem.c: ...here...
26695 * lib/strstr.c: ...and here.
26696 * modules/memmem (Files): Use it.
26697 * modules/strstr (Files): Likewise.
26699 Avoid quadratic strstr implementations.
26700 * lib/strstr.c: New file.
26701 * m4/strstr.m4: Likewise.
26702 * modules/strstr: Likewise.
26703 * modules/strstr-tests: Likewise.
26704 * tests/test-strstr.c: Likewise.
26705 * lib/string.in.h (rpl_strstr): Declare.
26706 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26707 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26708 * modules/string (Makefile.am): Likewise.
26709 * MODULES.html.sh (string handling): Mention new module.
26710 * doc/functions/strstr.texi (strstr): Document the bug.
26712 2008-01-10 Bruno Haible <bruno@clisp.org>
26714 * lib/relocatable.h (relocate): State whether result is freshly
26716 * lib/relocatable.c (relocate): Return a freshly allocated string
26717 instead of a pointer to a privately held string.
26718 Reported by Sylvain Beucler <beuc@gnu.org>.
26720 2008-01-10 Colin Watson <cjwatson@debian.org>
26722 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26723 s/S_ISNLK/S_ISLNK/.
26725 2008-01-09 Bruno Haible <bruno@clisp.org>
26727 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26729 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26730 if it's only a guess.
26731 * modules/memmem: Simplify by depending on memmem-simple.
26733 2008-01-09 Bruno Haible <bruno@clisp.org>
26735 Work around OpenBSD 4.0 tdelete() bug.
26736 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26737 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26738 macros and don't redefine the enum values.
26739 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26740 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26741 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26743 2008-01-09 Bruno Haible <bruno@clisp.org>
26745 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26746 (main): Don't perform the tests if setlocale did not install a UTF-8
26747 locale. Needed on OpenBSD 4.0.
26748 * modules/wcwidth-tests (Depends-on): Add localcharset.
26750 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
26752 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26753 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26754 * NEWS: announce this.
26755 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26757 2008-01-09 Simon Josefsson <simon@josefsson.org>
26758 and Eric Blake <ebb9@byu.net>
26760 Add memmem-simple module.
26761 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26762 (gl_FUNC_MEMMEM): Separate performance from presence checks.
26763 * modules/memmem-simple: New file.
26764 * modules/memmem (Description): Tweak.
26765 * MODULES.html.sh (string handling): Mention new module.
26766 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26767 addressed by memmem-simple.
26768 * NEWS: Document the difference.
26770 2008-01-09 Eric Blake <ebb9@byu.net>
26772 Give gcc some memmem optimization hints.
26773 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26774 (strcasestr): Declare as pure.
26775 * modules/memmem (Maintainer): Claim my implementation.
26777 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26779 Support AIX 6.1 and higher.
26780 * build-aux/config.libpath: Likewise.
26781 * build-aux/config.rpath: Likewise.
26783 2008-01-08 Jim Meyering <meyering@redhat.com>
26784 Bruno Haible <bruno@clisp.org>
26786 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26787 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26788 Reported by Peter Fales in
26789 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26791 2008-01-08 Bruno Haible <bruno@clisp.org>
26793 * modules/unictype/category-of (Depends-on): Add
26794 unictype/category-none.
26795 * modules/unictype/category-and-tests (Depends-on): Add
26796 unictype/category-{L,N,Lu,Nd}.
26797 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26798 * modules/unictype/category-or-tests (Depends-on): Add
26799 unictype/category-{L,N}.
26800 * modules/unictype/category-name-tests (Depends-on): Add
26801 unictype/category-{Z,Nl}.
26802 Reported by Simon Josefsson.
26804 2008-01-08 Bruno Haible <bruno@clisp.org>
26806 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26808 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26809 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26810 Reported by Peter Miller <millerp@canb.auug.org.au>.
26812 2008-01-08 Eric Blake <ebb9@byu.net>
26814 Rewrite memmem to guarantee linear complexity without malloc.
26815 * lib/memmem.c (memmem): Use Two-Way rather than
26816 Knuth-Morris-Pratt, to allow O(1) space usage.
26817 (critical_factorization, two_way_short_needle)
26818 (two_way_long_needle): New functions.
26819 (knuth_morris_pratt): Delete.
26820 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26822 * tests/test-memmem.c (main): Add tests for periodic needle and
26823 sublinear performance.
26824 * doc/functions/memmem.texi (memmem): Document other deficiencies
26825 in cygwin and older glibc.
26827 2008-01-08 Bruno Haible <bruno@clisp.org>
26829 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26832 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26834 Add a configure time option: --disable-acl.
26835 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26836 AC_ARG_ENABLE(acl).
26838 2008-01-06 Simon Josefsson <simon@josefsson.org>
26840 * tests/test-localename.c: Don't include obsolete "setenv.h".
26842 * modules/localename-tests (Depends-on): Need unsetenv.
26844 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26846 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26848 2008-01-06 Colin Watson <cjwatson@debian.org>
26850 * users.txt: Add man-db.
26852 2008-01-07 Bruno Haible <bruno@clisp.org>
26854 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26855 previous section name.
26857 2008-01-07 Bruno Haible <bruno@clisp.org>
26859 * lib/progname.c (set_program_name): Don't strip off a leading
26860 "lt-" prefix outside a .libs directory.
26861 Suggested by Paul Eggert.
26863 2008-01-01 Sylvain Beucler <beuc@gnu.org>
26864 Bruno Haible <bruno@clisp.org>
26866 Improve memory cleanup in 'relocatable' module.
26867 * lib/relocatable.h (compute_curr_prefix): Change return type to
26869 * lib/relocatable.c (compute_curr_prefix): Change return type to
26870 'char *'. Free curr_installdir after use.
26871 (relocate): Free curr_prefix_better after use.
26872 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26874 2008-01-01 Bruno Haible <bruno@clisp.org>
26876 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26877 failure on older glibc systems.
26878 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26880 2008-01-05 Eric Blake <ebb9@byu.net>
26882 Avoid quadratic system memmem.
26883 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26884 Reported by Ralf Wildenhues.
26886 Fix memmem test for mingw.
26887 * modules/memmem-tests (configure.ac): Check for alarm.
26888 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26890 * doc/functions/memmem.texi: New file.
26891 * doc/gnulib.texi (Function Substitutes): Add memmem.
26892 Reported by Bruno Haible.
26894 2008-01-04 Bruno Haible <bruno@clisp.org>
26896 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26897 Require gl_HEADER_STRINGS_H_DEFAULTS, not
26898 gl_HEADER_STRING_H_DEFAULTS.
26900 2008-01-04 Eric Blake <ebb9@byu.net>
26902 Shorten duration of memmem test.
26903 * tests/test-memmem.c (main): Use alarm to declare failure if test
26904 is taking too long.
26905 Reported by Ralf Wildenhues.
26907 2007-12-21 Simon Josefsson <simon@josefsson.org>
26909 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26910 string, needed by strerror.
26912 2008-01-03 Colin Watson <cjwatson@debian.org>
26913 Bruno Haible <bruno@clisp.org>
26915 * doc/gnulib-tool.texi (Localization): New section.
26917 2008-01-02 Bruno Haible <bruno@clisp.org>
26919 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26920 variables to 'unsigned char *' type.
26921 Reported by Paul Eggert.
26923 2008-01-02 Jim Meyering <jim@meyering.net>
26925 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26927 2007-12-31 Jim Meyering <jim@meyering.net>
26929 Avoid use of private FTS type name.
26930 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26932 2007-12-30 Karl Berry <karl@gnu.org>
26934 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26935 work around defect in Texinfo and/or the standalone Info browser.
26937 2007-12-30 Bruno Haible <bruno@clisp.org>
26939 Unify 5 copies of the KMP code.
26940 * lib/str-kmp.h: New file.
26941 * lib/c-strcasestr.c: Include str-kmp.h.
26942 (knuth_morris_pratt): Remove function.
26943 (c_strcasestr): Update.
26944 * lib/c-strstr.c: Include str-kmp.h.
26945 (knuth_morris_pratt): Remove function.
26946 (c_strcasestr): Update.
26947 * lib/mbscasestr.c: Include str-kmp.h.
26948 (knuth_morris_pratt_unibyte): Remove function.
26949 * lib/mbsstr.c: Include str-kmp.h.
26950 (knuth_morris_pratt_unibyte): Remove function.
26951 * lib/strcasestr.c: Include str-kmp.h.
26952 (knuth_morris_pratt): Remove function.
26953 (strcasestr): Update.
26954 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26955 * modules/c-strstr (Files): Likewise.
26956 * modules/mbscasestr (Files): Likewise.
26957 * modules/mbsstr (Files): Likewise.
26958 * modules/strcasestr (Files): Likewise.
26959 Suggested by Paul Eggert.
26961 2007-12-30 Bruno Haible <bruno@clisp.org>
26963 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26966 2007-12-30 Bruno Haible <bruno@clisp.org>
26968 * lib/xmalloca.h: Include xalloc.h.
26969 (xnmalloca): New macro.
26971 2007-12-30 Bruno Haible <bruno@clisp.org>
26973 * lib/malloca.h (nmalloca): New macro.
26974 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26975 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26976 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26977 knuth_morris_pratt_multibyte): Likewise.
26978 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26979 knuth_morris_pratt_multibyte): Likewise.
26980 * lib/memmem.c (knuth_morris_pratt): Likewise.
26981 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26983 2007-12-25 Bruno Haible <bruno@clisp.org>
26985 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26986 * lib/glob.c: Don't include openat.h.
26987 (link_exists2_p): Add back the code that deals with the
26988 !GLOB_ALTDIRFUNC case.
26989 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26990 let it do the filename concatenation.
26991 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26992 * modules/glob (Depends-on): Remove openat.
26994 2007-12-31 Bruno Haible <bruno@clisp.org>
26996 * modules/dirfd (License): Change to LGPLv2+.
26997 Approved by Jim Meyering.
26999 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
27001 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27002 when multiplying M by sizeof (size_t).
27004 2007-12-10 Martin Lambers <marlam@marlam.de>
27006 Override getpagesize on mingw.
27007 * lib/getpagesize.c: New file.
27008 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27009 * modules/getpagesize (Files): Add lib/getpagesize.c.
27010 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27011 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27012 REPLACE_GETPAGESIZE.
27013 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27015 2007-12-25 Bruno Haible <bruno@clisp.org>
27017 * modules/localcharset (Notice): New field.
27018 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27019 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27021 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
27022 Bruno Haible <bruno@clisp.org>
27024 Avoid using the syntax symbol() in formatted documentation.
27025 * MODULES.html.sh (func_module): When replacing symbol() with a
27026 hyperlink, remove the parentheses. Show an error if some remain.
27027 Recognize and render the '...' syntax.
27028 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27029 Rework. Add paragraph about GCC's inlining.
27030 * doc/alloca.texi: Likewise.
27031 * doc/error.texi: Remove parentheses from symbol reference.
27032 * doc/gnulib-intro.texi: Likewise.
27033 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27034 * modules/fnmatch (Description): Reword to say "the ... function".
27035 * modules/full-read (Description): Likewise.
27036 * modules/full-write (Description): Likewise.
27037 * modules/safe-read (Description): Likewise.
27038 * modules/safe-write (Description): Likewise.
27039 * modules/strchrnul (Description): Likewise.
27040 * modules/trim (Description): Likewise.
27041 * modules/error (Description): Remove parentheses from symbol
27043 * modules/verror (Description): Likewise.
27044 Reported by Karl Berry.
27046 2007-12-25 Bruno Haible <bruno@clisp.org>
27048 Fixup after 2007-10-16 commit.
27049 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27051 2007-12-24 Bruno Haible <bruno@clisp.org>
27053 Make --enable-relocatable work with DESTDIR.
27054 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27055 to compute installdir from destprog.
27056 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27057 also set the RELOC_DESTDIR variable.
27058 Reported by Левашев Иван <octagram@bluebottle.com>.
27060 2007-12-24 Bruno Haible <bruno@clisp.org>
27062 Fix link error due to xalloc_die().
27063 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27065 * lib/relocwrapper.c: Update comments.
27066 * build-aux/install-reloc: Remove xreadlink.c from file list.
27067 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27069 Reported by Левашев Иван <octagram@bluebottle.com>.
27071 2007-12-24 Bruno Haible <bruno@clisp.org>
27073 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27074 * lib/setenv.h: Remove file.
27075 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27077 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27078 (Depends-on): Add stdlib.
27079 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27081 (Include): Replace setenv.h with <stdlib.h>.
27082 * modules/unsetenv: New file.
27083 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27084 * lib/unsetenv.c: Include <stdlib.h> first.
27085 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27086 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27087 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27088 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27089 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27090 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27091 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27092 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27093 * doc/functions/unsetenv.texi: Update.
27094 * modules/xsetenv (Depends-on): Add unsetenv.
27095 * modules/getdate (Depends-on): Likewise.
27096 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27097 * lib/xsetenv.c: Don't include setenv.h.
27098 * lib/getdate.y: Likewise.
27099 * lib/relocwrapper.c: Likewise.
27100 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27101 (Depends-on): Add stdlib.
27102 * NEWS: Mention the changes.
27103 Reported by Левашев Иван <octagram@bluebottle.com>.
27105 2007-12-23 Bruno Haible <bruno@clisp.org>
27107 * lib/memmem.c (memmem): Use lowercase variable names. Tab
27110 2007-12-23 Bruno Haible <bruno@clisp.org>
27112 * lib/c-strcasestr.c: Add more comments.
27113 * lib/c-strstr.c: Likewise.
27114 * lib/mbscasestr.c: Likewise.
27115 * lib/mbsstr.c: Likewise.
27116 * lib/strcasestr.c: Likewise.
27117 * lib/memmem.c: Likewise.
27119 2007-12-23 Bruno Haible <bruno@clisp.org>
27121 * tests/test-memmem.c: Include <string.h> first.
27123 2007-12-22 Bruno Haible <bruno@clisp.org>
27125 * gnulib-tool (func_create_testdir): Change $auxdir while generating
27126 the contents of $testsbase.
27127 Reported by Ralf Wildenhues.
27129 2007-12-22 Bruno Haible <bruno@clisp.org>
27131 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27132 two variables local_ldadd_before, local_ldadd_last.
27134 2007-12-20 Eric Blake <ebb9@byu.net>
27136 Work around circular library issue when cross-compiling.
27137 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27138 that progname.o does not need to pull in rpl_memcmp.
27140 2007-12-19 Eric Blake <ebb9@byu.net>
27142 Fix memmem to avoid O(n^2) worst-case complexity.
27143 * lib/memmem.c (knuth_morris_pratt): New function.
27144 (memmem): Use it if first few naive iterations fail.
27145 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27146 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27147 * modules/memchr (License): Likewise.
27148 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27150 * tests/test-memmem.c: Rewrite, borrowing ideas from
27151 test-mbsstr1.c; the old version wouldn't even compile!
27152 * modules/memmem-tests: New file.
27153 * lib/string.in.h (rpl_memmem): Add declaration.
27154 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27155 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27158 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
27160 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27161 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27162 before any system include files, and undef after them all. This
27163 should fix a problem on VMS reported by John E. Malmberg in
27164 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27166 2007-12-17 Eric Blake <ebb9@byu.net>
27168 Revert addition of verify, for BSD/OS.
27169 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27170 can't handle large files, for the sake of obsolete platforms.
27171 * modules/fseeko (Depends-on): Remove verify.
27172 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27173 * doc/functions/ftello.texi (ftello): Likewise.
27174 * doc/functions/fgetpos.texi (fgetpos): Likewise.
27175 Reported by Larry Jones.
27177 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
27179 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27180 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27182 2007-12-17 Jim Meyering <meyering@redhat.com>
27184 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27185 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27186 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27187 * modules/getcwd (Depends-on): Add openat.
27188 Reported by Petr Salinger.
27190 2007-12-17 Bruno Haible <bruno@clisp.org>
27192 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27193 avoid a segmentation fault of the configure test on x86_64 systems.
27195 2007-12-15 Jim Meyering <meyering@redhat.com>
27197 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27199 2007-12-13 Eric Blake <ebb9@byu.net>
27201 Another fseek test.
27202 * tests/test-fseek.c (main): Also test ungetc handling.
27203 * tests/test-fseeko.c (main): Likewise.
27204 * modules/fseeko (Depends-on): Add verify.
27205 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27207 Reported by Larry Jones.
27209 Fix fseeko on mingw.
27210 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27213 Beef up fseek tests.
27214 * tests/test-fseek.c (main): Also test eof handling.
27215 * tests/test-fseeko.c (main): Likewise.
27216 Reported by Larry Jones.
27218 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
27220 Fix fseeko on BSD-based platforms.
27221 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27224 2007-12-12 Eric Blake <ebb9@byu.net>
27226 Allow circular dependency of separate libtests.a
27227 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27230 2007-12-11 Eric Blake <ebb9@byu.net>
27232 Fix bug with -0.0L in previous patch.
27233 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27234 * tests/test-isnan.c (main): Also test on zeroes.
27235 * tests/test-isnanf.c (main): Likewise.
27236 * tests/test-isnanl.h (main): Likewise.
27238 Detect pseudo-denormals on x86 even when cross-compiling.
27239 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27240 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27241 invalid bit patterns that happen to satisfy ==.
27243 Avoid link failures with separate libtests.a.
27244 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27245 last, to satisfy circular dependencies.
27247 2007-12-11 Eric Blake <ebb9@byu.net>
27248 and Bruno Haible <bruno@clisp.org>
27250 Fix OpenBSD 4.0 <float.h> handling of long double.
27251 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27252 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27253 * doc/headers/float.texi (float.h): Document OpenBSD bug.
27255 2007-12-11 Jim Meyering <meyering@redhat.com>
27257 * users.txt: Add libvirt.
27259 Support versions of autoconf prior to 2.59c.
27260 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27261 if it is not already defined.
27263 2007-12-09 Bruno Haible <bruno@clisp.org>
27265 Let 'gnulib-tool --import' collect sources needed for the tests in
27266 tests/ rather than in lib/.
27267 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27268 argument. If true, add rules to generate libtests.a, and put libtests.a
27269 into $(LDADD). Consider source files in subdirectories and set
27271 (func_emit_initmacro_start, func_emit_initmacro_end,
27272 func_emit_initmacro_done): Pass all arguments explicitly.
27273 (func_import): Determine two module lists main_modules,
27274 testsrelated_modules. Determine use_libtests. Determine two variables
27275 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27276 instead of just sed_transform_lib_file. Determine two variables
27277 main_files and testsrelated_files. Compute 'files' as the union of
27278 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27279 func_add_or_update. In the generated gnulib-comp.m4, collect the
27280 object files for tests/ in different variables than those for lib/.
27281 Substitute LIBTESTS_LIBDEPS.
27282 (func_create_testdir): Combine the uses_subdirs results from
27283 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27285 2007-12-09 Bruno Haible <bruno@clisp.org>
27287 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27288 the build-aux directory.
27290 2007-12-09 Bruno Haible <bruno@clisp.org>
27292 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27293 introduced on 2006-09-09.
27295 2007-12-07 Jim Meyering <meyering@redhat.com>
27297 Let these macros work also with autoconf-2.59.
27298 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27299 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27300 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27302 2007-12-06 Jim Meyering <meyering@redhat.com>
27304 Avoid a configure-time syntax error in gl_FUNC_ACL.
27305 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27306 function in each branch, before testing the cache variable.
27308 2007-12-04 Eric Blake <ebb9@byu.net>
27310 Make scripts executable.
27311 * build-aux/config.guess: Add execute permissions.
27312 * build-aux/config.sub: Likewise.
27313 * build-aux/gendocs.sh: Likewise.
27315 Fix frexp on mingw.
27316 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27318 * doc/functions/frexp.texi (frexp): Document the bug.
27320 Make cygwin fseeko check more reliable.
27321 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27322 version numbers, rather than unrelated feature check.
27323 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27324 * doc/functions/ftello.texi (ftello): Likewise.
27325 Reported by Bruno Haible.
27327 * m4/strerror.m4: Bump version number.
27329 2007-12-03 Bruno Haible <bruno@clisp.org>
27331 * doc/functions/mprotect.texi: Mention the mingw problem.
27333 2007-12-03 Eric Blake <ebb9@byu.net>
27335 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27336 REPLACE_STRERROR is initialized before this macro.
27338 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27340 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27341 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27342 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27343 put -lsec in even for programs other than 'ls'. This fixes a problem
27344 for gettext reported by Bruno Haible in
27345 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27346 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27347 Add support for Solaris 10. This isn't efficient, but should get the
27350 2007-12-03 James Youngman <jay@gnu.org>
27352 * doc/regexprops-generic.texi: change "an close-group" to "a
27353 close-group" and "illegal" to "not allowed".
27355 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27357 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27358 pr_byname.h. Needed for the rare case when the maintainer has done
27359 "make maintainer-clean" in the source directory and then attempts a
27360 build outside the source directory.
27361 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27364 2007-12-02 Martin Lambers <marlam@marlam.de>
27365 Bruno Haible <bruno@clisp.org>
27367 * lib/getpagesize.h: Remove file.
27368 * lib/unistd.in.h: Include declaration of getpagesize here.
27369 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27370 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27372 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27373 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27374 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27375 (Depends-on): Add unistd.
27376 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27377 (Include): Use <unistd.h> instead of getpagesize.h.
27378 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27379 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27380 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27381 gl_GETPAGESIZE invocation, already handled by module dependency.
27382 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27384 2007-12-02 Bruno Haible <bruno@clisp.org>
27386 * modules/strings-tests: New file.
27387 * tests/test-strings.c: New file.
27389 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27390 * lib/strings.in.h: New file.
27391 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27392 * m4/strings_h.m4: New file.
27393 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27394 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27395 * modules/strings: New file.
27396 * modules/string (Makefile.am): Update.
27397 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27398 Reported by Karl Berry.
27400 2007-12-01 Eric Blake <ebb9@byu.net>
27402 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27403 accomodate fix in cygwin 1.5.25.
27405 2007-12-01 Jim Meyering <meyering@redhat.com>
27407 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27408 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27409 that would inhibit utf8-optimization of a regexp containing line-
27410 or buffer-anchors, e.g., `^', `$'.
27412 2007-11-30 Bruno Haible <bruno@clisp.org>
27414 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27415 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27416 glthread_recursive_lock_init.
27417 * lib/lock.c (glthread_recursive_lock_init)
27418 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27419 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27421 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27423 New function qset_acl, like set_acl but with syscall semantics.
27424 * lib/acl.h (qset_acl): New decl.
27425 * lib/acl.c (qset_acl): New function.
27426 (set_acl): Use new function. Use more-consistent diagnostics.
27428 2007-11-28 Jim Meyering <meyering@redhat.com>
27430 * modules/physmem (License): Change from GPL to LGPLv2+.
27432 2007-11-26 Bruno Haible <bruno@clisp.org>
27434 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27435 'long double' type has excess precision.
27436 Reported by Jim Meyering in
27437 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27439 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27441 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27442 Sync from <http://gnu.org/licenses>.
27443 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27444 with license text from same location.
27445 * doc/maintain.texi, doc/standards.texi: Sync from
27446 <http://savannah.gnu.org/projects/gnustandards>.
27448 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
27449 and Jim Meyering <meyering@redhat.com>
27451 Adjust getdate' grammar to accept a slightly more regular language.
27452 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27453 Before, the former was rejected.
27454 * lib/getdate.y (digits_to_date_time): New function, factored
27456 (number): ...here. Just call digits_to_date_time.
27457 (hybrid): New non-terminal to handle an <unsigned number,
27458 signed relative offset> sequence consistently.
27460 2007-11-18 Jim Meyering <meyering@redhat.com>
27462 Pull my changes from coreutils:
27463 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27464 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27465 use of $gnulib_tool_option_extras, so that it's separated from the
27466 preceding argument.
27468 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27469 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27470 parent destination directories before copying a file into place.
27472 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27474 bootstrap: work also with 4-argument variant of AC_INIT
27475 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27477 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27479 Port test-getaddrinfo to Solaris.
27480 Problem reported by Bruno Haible in
27481 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27482 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27483 explanation of setting 'hints'.
27484 Don't reject an implementation merely because it returns EAI_SERVICE.
27485 (EAI_SERVICE): Define to 0 if not defined.
27487 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
27489 The license of gnu-make and posix-shell is now "GPLed build tool".
27490 * modules/gnu-make (License): Likewise.
27491 * modules/posix-shell (License): Likewise.
27493 New module posix-shell, for determining a POSIX shell
27494 or perhaps something that is close enough to a POSIX shell.
27495 * m4/posix-shell.m4: New file.
27496 * modules/posix-shell: New file.
27498 * MODULES.html.sh: Mention new module.
27500 New module gnu-make, for determining whether we're using GNU Make.
27501 * m4/gnu-make.m4: New file.
27502 * modules/gnu-make: New file.
27503 * MODULES.html.sh: Mention new module.
27505 2007-11-14 Jim Meyering <meyering@redhat.com>
27507 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27508 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27509 use this macro to create a function _definition_.
27510 Remove useless "#undef ARGMATCH_DIE".
27512 2007-11-14 Bruno Haible <bruno@clisp.org>
27514 * lib/config.charset: Update for OpenBSD 4.1.
27515 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27517 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
27519 Document 64-bit #if problems in stdint.texi.
27520 * doc/headers/stdint.texi (stdint.h): Mention problems with
27521 64-bit-#if, and how to work around them.
27523 Don't insist on 'long long int' support in the preprocessor. It
27524 breaks too many things. For example, PRIdMAX still uses a 'long
27525 long int' format with the latest Sun compiler, even though
27526 HAVE_LONG_LONG_INT isn't defined due to that compiler's
27527 preprocessor problem. This causes the latest coreutils to dump
27528 core on Solaris 10 sparc with the Sun C compiler.
27529 Instead, fix the 2007-10-16 problem in a different way, by evaluating
27530 the troublesome expressions at configure-time, not at #if-time.
27531 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27533 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27534 compile-time C checks, done at 'configure'-time.
27535 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27536 * modules/inttypes (Makefile): Substitute the new symbols that
27537 gl_INTTYPES_H now generates.
27538 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27540 2007-11-12 Bruno Haible <bruno@clisp.org>
27542 Tests for Unicode character classification functions.
27544 * modules/unictype/bidicategory-byname-tests: New file.
27545 * modules/unictype/bidicategory-name-tests: New file.
27546 * modules/unictype/bidicategory-of-tests: New file.
27547 * modules/unictype/bidicategory-test-tests: New file.
27548 * modules/unictype/block-list-tests: New file.
27549 * modules/unictype/block-of-tests: New file.
27550 * modules/unictype/block-test-tests: New file.
27551 * modules/unictype/category-C-tests: New file.
27552 * modules/unictype/category-Cc-tests: New file.
27553 * modules/unictype/category-Cf-tests: New file.
27554 * modules/unictype/category-Cn-tests: New file.
27555 * modules/unictype/category-Co-tests: New file.
27556 * modules/unictype/category-Cs-tests: New file.
27557 * modules/unictype/category-L-tests: New file.
27558 * modules/unictype/category-Ll-tests: New file.
27559 * modules/unictype/category-Lm-tests: New file.
27560 * modules/unictype/category-Lo-tests: New file.
27561 * modules/unictype/category-Lt-tests: New file.
27562 * modules/unictype/category-Lu-tests: New file.
27563 * modules/unictype/category-M-tests: New file.
27564 * modules/unictype/category-Mc-tests: New file.
27565 * modules/unictype/category-Me-tests: New file.
27566 * modules/unictype/category-Mn-tests: New file.
27567 * modules/unictype/category-N-tests: New file.
27568 * modules/unictype/category-Nd-tests: New file.
27569 * modules/unictype/category-Nl-tests: New file.
27570 * modules/unictype/category-No-tests: New file.
27571 * modules/unictype/category-P-tests: New file.
27572 * modules/unictype/category-Pc-tests: New file.
27573 * modules/unictype/category-Pd-tests: New file.
27574 * modules/unictype/category-Pe-tests: New file.
27575 * modules/unictype/category-Pf-tests: New file.
27576 * modules/unictype/category-Pi-tests: New file.
27577 * modules/unictype/category-Po-tests: New file.
27578 * modules/unictype/category-Ps-tests: New file.
27579 * modules/unictype/category-S-tests: New file.
27580 * modules/unictype/category-Sc-tests: New file.
27581 * modules/unictype/category-Sk-tests: New file.
27582 * modules/unictype/category-Sm-tests: New file.
27583 * modules/unictype/category-So-tests: New file.
27584 * modules/unictype/category-Z-tests: New file.
27585 * modules/unictype/category-Zl-tests: New file.
27586 * modules/unictype/category-Zp-tests: New file.
27587 * modules/unictype/category-Zs-tests: New file.
27588 * modules/unictype/category-and-not-tests: New file.
27589 * modules/unictype/category-and-tests: New file.
27590 * modules/unictype/category-byname-tests: New file.
27591 * modules/unictype/category-name-tests: New file.
27592 * modules/unictype/category-none-tests: New file.
27593 * modules/unictype/category-of-tests: New file.
27594 * modules/unictype/category-or-tests: New file.
27595 * modules/unictype/category-test-withtable-tests: New file.
27596 * modules/unictype/combining-class-tests: New file.
27597 * modules/unictype/ctype-alnum-tests: New file.
27598 * modules/unictype/ctype-alpha-tests: New file.
27599 * modules/unictype/ctype-blank-tests: New file.
27600 * modules/unictype/ctype-cntrl-tests: New file.
27601 * modules/unictype/ctype-digit-tests: New file.
27602 * modules/unictype/ctype-graph-tests: New file.
27603 * modules/unictype/ctype-lower-tests: New file.
27604 * modules/unictype/ctype-print-tests: New file.
27605 * modules/unictype/ctype-punct-tests: New file.
27606 * modules/unictype/ctype-space-tests: New file.
27607 * modules/unictype/ctype-upper-tests: New file.
27608 * modules/unictype/ctype-xdigit-tests: New file.
27609 * modules/unictype/decimal-digit-tests: New file.
27610 * modules/unictype/digit-tests: New file.
27611 * modules/unictype/mirror-tests: New file.
27612 * modules/unictype/numeric-tests: New file.
27613 * modules/unictype/property-alphabetic-tests: New file.
27614 * modules/unictype/property-ascii-hex-digit-tests: New file.
27615 * modules/unictype/property-bidi-arabic-digit-tests: New file.
27616 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27617 * modules/unictype/property-bidi-block-separator-tests: New file.
27618 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27619 * modules/unictype/property-bidi-common-separator-tests: New file.
27620 * modules/unictype/property-bidi-control-tests: New file.
27621 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27622 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27623 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27624 * modules/unictype/property-bidi-european-digit-tests: New file.
27625 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27626 * modules/unictype/property-bidi-left-to-right-tests: New file.
27627 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27628 * modules/unictype/property-bidi-other-neutral-tests: New file.
27629 * modules/unictype/property-bidi-pdf-tests: New file.
27630 * modules/unictype/property-bidi-segment-separator-tests: New file.
27631 * modules/unictype/property-bidi-whitespace-tests: New file.
27632 * modules/unictype/property-byname-tests: New file.
27633 * modules/unictype/property-combining-tests: New file.
27634 * modules/unictype/property-composite-tests: New file.
27635 * modules/unictype/property-currency-symbol-tests: New file.
27636 * modules/unictype/property-dash-tests: New file.
27637 * modules/unictype/property-decimal-digit-tests: New file.
27638 * modules/unictype/property-default-ignorable-code-point-tests: New file.
27639 * modules/unictype/property-deprecated-tests: New file.
27640 * modules/unictype/property-diacritic-tests: New file.
27641 * modules/unictype/property-extender-tests: New file.
27642 * modules/unictype/property-format-control-tests: New file.
27643 * modules/unictype/property-grapheme-base-tests: New file.
27644 * modules/unictype/property-grapheme-extend-tests: New file.
27645 * modules/unictype/property-grapheme-link-tests: New file.
27646 * modules/unictype/property-hex-digit-tests: New file.
27647 * modules/unictype/property-hyphen-tests: New file.
27648 * modules/unictype/property-id-continue-tests: New file.
27649 * modules/unictype/property-id-start-tests: New file.
27650 * modules/unictype/property-ideographic-tests: New file.
27651 * modules/unictype/property-ids-binary-operator-tests: New file.
27652 * modules/unictype/property-ids-trinary-operator-tests: New file.
27653 * modules/unictype/property-ignorable-control-tests: New file.
27654 * modules/unictype/property-iso-control-tests: New file.
27655 * modules/unictype/property-join-control-tests: New file.
27656 * modules/unictype/property-left-of-pair-tests: New file.
27657 * modules/unictype/property-line-separator-tests: New file.
27658 * modules/unictype/property-logical-order-exception-tests: New file.
27659 * modules/unictype/property-lowercase-tests: New file.
27660 * modules/unictype/property-math-tests: New file.
27661 * modules/unictype/property-non-break-tests: New file.
27662 * modules/unictype/property-not-a-character-tests: New file.
27663 * modules/unictype/property-numeric-tests: New file.
27664 * modules/unictype/property-other-alphabetic-tests: New file.
27665 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27666 * modules/unictype/property-other-grapheme-extend-tests: New file.
27667 * modules/unictype/property-other-id-continue-tests: New file.
27668 * modules/unictype/property-other-id-start-tests: New file.
27669 * modules/unictype/property-other-lowercase-tests: New file.
27670 * modules/unictype/property-other-math-tests: New file.
27671 * modules/unictype/property-other-uppercase-tests: New file.
27672 * modules/unictype/property-paired-punctuation-tests: New file.
27673 * modules/unictype/property-paragraph-separator-tests: New file.
27674 * modules/unictype/property-pattern-syntax-tests: New file.
27675 * modules/unictype/property-pattern-white-space-tests: New file.
27676 * modules/unictype/property-private-use-tests: New file.
27677 * modules/unictype/property-punctuation-tests: New file.
27678 * modules/unictype/property-quotation-mark-tests: New file.
27679 * modules/unictype/property-radical-tests: New file.
27680 * modules/unictype/property-sentence-terminal-tests: New file.
27681 * modules/unictype/property-soft-dotted-tests: New file.
27682 * modules/unictype/property-space-tests: New file.
27683 * modules/unictype/property-terminal-punctuation-tests: New file.
27684 * modules/unictype/property-test-tests: New file.
27685 * modules/unictype/property-titlecase-tests: New file.
27686 * modules/unictype/property-unassigned-code-value-tests: New file.
27687 * modules/unictype/property-unified-ideograph-tests: New file.
27688 * modules/unictype/property-uppercase-tests: New file.
27689 * modules/unictype/property-variation-selector-tests: New file.
27690 * modules/unictype/property-white-space-tests: New file.
27691 * modules/unictype/property-xid-continue-tests: New file.
27692 * modules/unictype/property-xid-start-tests: New file.
27693 * modules/unictype/property-zero-width-tests: New file.
27694 * modules/unictype/scripts-tests: New file.
27695 * modules/unictype/syntax-c-ident-tests: New file.
27696 * modules/unictype/syntax-c-whitespace-tests: New file.
27697 * modules/unictype/syntax-java-ident-tests: New file.
27698 * modules/unictype/syntax-java-whitespace-tests: New file.
27699 * tests/unictype/test-bidi_byname.c: New file.
27700 * tests/unictype/test-bidi_name.c: New file.
27701 * tests/unictype/test-bidi_of.c: New file.
27702 * tests/unictype/test-bidi_test.c: New file.
27703 * tests/unictype/test-block_list.c: New file.
27704 * tests/unictype/test-block_of.c: New file.
27705 * tests/unictype/test-block_test.c: New file.
27706 * tests/unictype/test-categ_and.c: New file.
27707 * tests/unictype/test-categ_and_not.c: New file.
27708 * tests/unictype/test-categ_byname.c: New file.
27709 * tests/unictype/test-categ_name.c: New file.
27710 * tests/unictype/test-categ_none.c: New file.
27711 * tests/unictype/test-categ_of.c: New file.
27712 * tests/unictype/test-categ_or.c: New file.
27713 * tests/unictype/test-categ_test_withtable.c: New file.
27714 * tests/unictype/test-combining.c: New file.
27715 * tests/unictype/test-decdigit.c: New file.
27716 * tests/unictype/test-digit.c: New file.
27717 * tests/unictype/test-mirror.c: New file.
27718 * tests/unictype/test-numeric.c: New file.
27719 * tests/unictype/test-pr_byname.c: New file.
27720 * tests/unictype/test-pr_test.c: New file.
27721 * tests/unictype/test-predicate-part1.h: New file.
27722 * tests/unictype/test-predicate-part2.h: New file.
27723 * tests/unictype/test-scripts.c: New file.
27724 * tests/unictype/test-sy_c_ident.c: New file.
27725 * tests/unictype/test-sy_java_ident.c: New file.
27727 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27729 * tests/unictype/test-categ_Cc.c: Likewise.
27730 * tests/unictype/test-categ_Cf.c: Likewise.
27731 * tests/unictype/test-categ_Cn.c: Likewise.
27732 * tests/unictype/test-categ_Co.c: Likewise.
27733 * tests/unictype/test-categ_Cs.c: Likewise.
27734 * tests/unictype/test-categ_L.c: Likewise.
27735 * tests/unictype/test-categ_Ll.c: Likewise.
27736 * tests/unictype/test-categ_Lm.c: Likewise.
27737 * tests/unictype/test-categ_Lo.c: Likewise.
27738 * tests/unictype/test-categ_Lt.c: Likewise.
27739 * tests/unictype/test-categ_Lu.c: Likewise.
27740 * tests/unictype/test-categ_M.c: Likewise.
27741 * tests/unictype/test-categ_Mc.c: Likewise.
27742 * tests/unictype/test-categ_Me.c: Likewise.
27743 * tests/unictype/test-categ_Mn.c: Likewise.
27744 * tests/unictype/test-categ_N.c: Likewise.
27745 * tests/unictype/test-categ_Nd.c: Likewise.
27746 * tests/unictype/test-categ_Nl.c: Likewise.
27747 * tests/unictype/test-categ_No.c: Likewise.
27748 * tests/unictype/test-categ_P.c: Likewise.
27749 * tests/unictype/test-categ_Pc.c: Likewise.
27750 * tests/unictype/test-categ_Pd.c: Likewise.
27751 * tests/unictype/test-categ_Pe.c: Likewise.
27752 * tests/unictype/test-categ_Pf.c: Likewise.
27753 * tests/unictype/test-categ_Pi.c: Likewise.
27754 * tests/unictype/test-categ_Po.c: Likewise.
27755 * tests/unictype/test-categ_Ps.c: Likewise.
27756 * tests/unictype/test-categ_S.c: Likewise.
27757 * tests/unictype/test-categ_Sc.c: Likewise.
27758 * tests/unictype/test-categ_Sk.c: Likewise.
27759 * tests/unictype/test-categ_Sm.c: Likewise.
27760 * tests/unictype/test-categ_So.c: Likewise.
27761 * tests/unictype/test-categ_Z.c: Likewise.
27762 * tests/unictype/test-categ_Zl.c: Likewise.
27763 * tests/unictype/test-categ_Zp.c: Likewise.
27764 * tests/unictype/test-categ_Zs.c: Likewise.
27765 * tests/unictype/test-ctype_alnum.c: Likewise.
27766 * tests/unictype/test-ctype_alpha.c: Likewise.
27767 * tests/unictype/test-ctype_blank.c: Likewise.
27768 * tests/unictype/test-ctype_cntrl.c: Likewise.
27769 * tests/unictype/test-ctype_digit.c: Likewise.
27770 * tests/unictype/test-ctype_graph.c: Likewise.
27771 * tests/unictype/test-ctype_lower.c: Likewise.
27772 * tests/unictype/test-ctype_print.c: Likewise.
27773 * tests/unictype/test-ctype_punct.c: Likewise.
27774 * tests/unictype/test-ctype_space.c: Likewise.
27775 * tests/unictype/test-ctype_upper.c: Likewise.
27776 * tests/unictype/test-ctype_xdigit.c: Likewise.
27777 * tests/unictype/test-decdigit.h: Likewise.
27778 * tests/unictype/test-digit.h: Likewise.
27779 * tests/unictype/test-numeric.h: Likewise.
27780 * tests/unictype/test-pr_alphabetic.c: Likewise.
27781 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27782 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27783 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27784 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27785 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27786 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27787 * tests/unictype/test-pr_bidi_control.c: Likewise.
27788 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27789 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27790 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27791 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27792 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27793 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27794 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27795 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27796 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27797 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27798 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27799 * tests/unictype/test-pr_combining.c: Likewise.
27800 * tests/unictype/test-pr_composite.c: Likewise.
27801 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27802 * tests/unictype/test-pr_dash.c: Likewise.
27803 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27804 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27805 * tests/unictype/test-pr_deprecated.c: Likewise.
27806 * tests/unictype/test-pr_diacritic.c: Likewise.
27807 * tests/unictype/test-pr_extender.c: Likewise.
27808 * tests/unictype/test-pr_format_control.c: Likewise.
27809 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27810 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27811 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27812 * tests/unictype/test-pr_hex_digit.c: Likewise.
27813 * tests/unictype/test-pr_hyphen.c: Likewise.
27814 * tests/unictype/test-pr_id_continue.c: Likewise.
27815 * tests/unictype/test-pr_id_start.c: Likewise.
27816 * tests/unictype/test-pr_ideographic.c: Likewise.
27817 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27818 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27819 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27820 * tests/unictype/test-pr_iso_control.c: Likewise.
27821 * tests/unictype/test-pr_join_control.c: Likewise.
27822 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27823 * tests/unictype/test-pr_line_separator.c: Likewise.
27824 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27825 * tests/unictype/test-pr_lowercase.c: Likewise.
27826 * tests/unictype/test-pr_math.c: Likewise.
27827 * tests/unictype/test-pr_non_break.c: Likewise.
27828 * tests/unictype/test-pr_not_a_character.c: Likewise.
27829 * tests/unictype/test-pr_numeric.c: Likewise.
27830 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27831 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27832 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27833 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27834 * tests/unictype/test-pr_other_id_start.c: Likewise.
27835 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27836 * tests/unictype/test-pr_other_math.c: Likewise.
27837 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27838 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27839 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27840 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27841 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27842 * tests/unictype/test-pr_private_use.c: Likewise.
27843 * tests/unictype/test-pr_punctuation.c: Likewise.
27844 * tests/unictype/test-pr_quotation_mark.c: Likewise.
27845 * tests/unictype/test-pr_radical.c: Likewise.
27846 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27847 * tests/unictype/test-pr_soft_dotted.c: Likewise.
27848 * tests/unictype/test-pr_space.c: Likewise.
27849 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27850 * tests/unictype/test-pr_titlecase.c: Likewise.
27851 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27852 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27853 * tests/unictype/test-pr_uppercase.c: Likewise.
27854 * tests/unictype/test-pr_variation_selector.c: Likewise.
27855 * tests/unictype/test-pr_white_space.c: Likewise.
27856 * tests/unictype/test-pr_xid_continue.c: Likewise.
27857 * tests/unictype/test-pr_xid_start.c: Likewise.
27858 * tests/unictype/test-pr_zero_width.c: Likewise.
27859 * tests/unictype/test-sy_c_whitespace.c: Likewise.
27860 * tests/unictype/test-sy_java_whitespace.c: Likewise.
27862 2007-11-12 Bruno Haible <bruno@clisp.org>
27864 Unicode character classification functions.
27865 * lib/unictype.h: New file.
27866 * modules/unictype/base: New file.
27867 * modules/unictype/category-L: New file.
27868 * modules/unictype/category-Lu: New file.
27869 * modules/unictype/category-Ll: New file.
27870 * modules/unictype/category-Lt: New file.
27871 * modules/unictype/category-Lm: New file.
27872 * modules/unictype/category-Lo: New file.
27873 * modules/unictype/category-M: New file.
27874 * modules/unictype/category-Mn: New file.
27875 * modules/unictype/category-Mc: New file.
27876 * modules/unictype/category-Me: New file.
27877 * modules/unictype/category-N: New file.
27878 * modules/unictype/category-Nd: New file.
27879 * modules/unictype/category-Nl: New file.
27880 * modules/unictype/category-No: New file.
27881 * modules/unictype/category-P: New file.
27882 * modules/unictype/category-Pc: New file.
27883 * modules/unictype/category-Pd: New file.
27884 * modules/unictype/category-Ps: New file.
27885 * modules/unictype/category-Pe: New file.
27886 * modules/unictype/category-Pi: New file.
27887 * modules/unictype/category-Pf: New file.
27888 * modules/unictype/category-Po: New file.
27889 * modules/unictype/category-S: New file.
27890 * modules/unictype/category-Sm: New file.
27891 * modules/unictype/category-Sc: New file.
27892 * modules/unictype/category-Sk: New file.
27893 * modules/unictype/category-So: New file.
27894 * modules/unictype/category-Z: New file.
27895 * modules/unictype/category-Zs: New file.
27896 * modules/unictype/category-Zl: New file.
27897 * modules/unictype/category-Zp: New file.
27898 * modules/unictype/category-C: New file.
27899 * modules/unictype/category-Cc: New file.
27900 * modules/unictype/category-Cf: New file.
27901 * modules/unictype/category-Cs: New file.
27902 * modules/unictype/category-Co: New file.
27903 * modules/unictype/category-Cn: New file.
27904 * modules/unictype/category-or: New file.
27905 * modules/unictype/category-of: New file.
27906 * modules/unictype/category-test: New file.
27907 * modules/unictype/category-test-withtable: New file.
27908 * modules/unictype/category-byname: New file.
27909 * modules/unictype/category-none: New file.
27910 * modules/unictype/category-and: New file.
27911 * modules/unictype/category-and-not: New file.
27912 * modules/unictype/category-name: New file.
27913 * modules/unictype/combining-class: New file.
27914 * modules/unictype/category-all: New file.
27915 * modules/unictype/bidicategory-all: New file.
27916 * modules/unictype/bidicategory-byname: New file.
27917 * modules/unictype/bidicategory-name: New file.
27918 * modules/unictype/bidicategory-of: New file.
27919 * modules/unictype/bidicategory-test: New file.
27920 * modules/unictype/decimal-digit: New file.
27921 * modules/unictype/digit: New file.
27922 * modules/unictype/numeric: New file.
27923 * modules/unictype/mirror: New file.
27924 * modules/unictype/property-white-space: New file.
27925 * modules/unictype/property-alphabetic: New file.
27926 * modules/unictype/property-other-alphabetic: New file.
27927 * modules/unictype/property-not-a-character: New file.
27928 * modules/unictype/property-default-ignorable-code-point: New file.
27929 * modules/unictype/property-other-default-ignorable-code-point: New
27931 * modules/unictype/property-deprecated: New file.
27932 * modules/unictype/property-logical-order-exception: New file.
27933 * modules/unictype/property-variation-selector: New file.
27934 * modules/unictype/property-private-use: New file.
27935 * modules/unictype/property-unassigned-code-value: New file.
27936 * modules/unictype/property-uppercase: New file.
27937 * modules/unictype/property-other-uppercase: New file.
27938 * modules/unictype/property-lowercase: New file.
27939 * modules/unictype/property-other-lowercase: New file.
27940 * modules/unictype/property-titlecase: New file.
27941 * modules/unictype/property-soft-dotted: New file.
27942 * modules/unictype/property-id-start: New file.
27943 * modules/unictype/property-other-id-start: New file.
27944 * modules/unictype/property-id-continue: New file.
27945 * modules/unictype/property-other-id-continue: New file.
27946 * modules/unictype/property-xid-start: New file.
27947 * modules/unictype/property-xid-continue: New file.
27948 * modules/unictype/property-pattern-white-space: New file.
27949 * modules/unictype/property-pattern-syntax: New file.
27950 * modules/unictype/property-join-control: New file.
27951 * modules/unictype/property-grapheme-base: New file.
27952 * modules/unictype/property-grapheme-extend: New file.
27953 * modules/unictype/property-other-grapheme-extend: New file.
27954 * modules/unictype/property-grapheme-link: New file.
27955 * modules/unictype/property-bidi-control: New file.
27956 * modules/unictype/property-bidi-left-to-right: New file.
27957 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27958 * modules/unictype/property-bidi-arabic-right-to-left: New file.
27959 * modules/unictype/property-bidi-european-digit: New file.
27960 * modules/unictype/property-bidi-eur-num-separator: New file.
27961 * modules/unictype/property-bidi-eur-num-terminator: New file.
27962 * modules/unictype/property-bidi-arabic-digit: New file.
27963 * modules/unictype/property-bidi-common-separator: New file.
27964 * modules/unictype/property-bidi-block-separator: New file.
27965 * modules/unictype/property-bidi-segment-separator: New file.
27966 * modules/unictype/property-bidi-whitespace: New file.
27967 * modules/unictype/property-bidi-non-spacing-mark: New file.
27968 * modules/unictype/property-bidi-boundary-neutral: New file.
27969 * modules/unictype/property-bidi-pdf: New file.
27970 * modules/unictype/property-bidi-embedding-or-override: New file.
27971 * modules/unictype/property-bidi-other-neutral: New file.
27972 * modules/unictype/property-hex-digit: New file.
27973 * modules/unictype/property-ascii-hex-digit: New file.
27974 * modules/unictype/property-ideographic: New file.
27975 * modules/unictype/property-unified-ideograph: New file.
27976 * modules/unictype/property-radical: New file.
27977 * modules/unictype/property-ids-binary-operator: New file.
27978 * modules/unictype/property-ids-trinary-operator: New file.
27979 * modules/unictype/property-zero-width: New file.
27980 * modules/unictype/property-space: New file.
27981 * modules/unictype/property-non-break: New file.
27982 * modules/unictype/property-iso-control: New file.
27983 * modules/unictype/property-format-control: New file.
27984 * modules/unictype/property-dash: New file.
27985 * modules/unictype/property-hyphen: New file.
27986 * modules/unictype/property-punctuation: New file.
27987 * modules/unictype/property-line-separator: New file.
27988 * modules/unictype/property-paragraph-separator: New file.
27989 * modules/unictype/property-quotation-mark: New file.
27990 * modules/unictype/property-sentence-terminal: New file.
27991 * modules/unictype/property-terminal-punctuation: New file.
27992 * modules/unictype/property-currency-symbol: New file.
27993 * modules/unictype/property-math: New file.
27994 * modules/unictype/property-other-math: New file.
27995 * modules/unictype/property-paired-punctuation: New file.
27996 * modules/unictype/property-left-of-pair: New file.
27997 * modules/unictype/property-combining: New file.
27998 * modules/unictype/property-composite: New file.
27999 * modules/unictype/property-decimal-digit: New file.
28000 * modules/unictype/property-numeric: New file.
28001 * modules/unictype/property-diacritic: New file.
28002 * modules/unictype/property-extender: New file.
28003 * modules/unictype/property-ignorable-control: New file.
28004 * modules/unictype/property-test: New file.
28005 * modules/unictype/property-byname: New file.
28006 * modules/unictype/property-all: New file.
28007 * modules/unictype/scripts: New file.
28008 * modules/unictype/scripts-all: New file.
28009 * modules/unictype/block-of: New file.
28010 * modules/unictype/block-test: New file.
28011 * modules/unictype/block-list: New file.
28012 * modules/unictype/block-all: New file.
28013 * modules/unictype/syntax-c-whitespace: New file.
28014 * modules/unictype/syntax-java-whitespace: New file.
28015 * modules/unictype/syntax-c-ident: New file.
28016 * modules/unictype/syntax-java-ident: New file.
28017 * modules/unictype/ctype-alnum: New file.
28018 * modules/unictype/ctype-alpha: New file.
28019 * modules/unictype/ctype-cntrl: New file.
28020 * modules/unictype/ctype-digit: New file.
28021 * modules/unictype/ctype-graph: New file.
28022 * modules/unictype/ctype-lower: New file.
28023 * modules/unictype/ctype-print: New file.
28024 * modules/unictype/ctype-punct: New file.
28025 * modules/unictype/ctype-space: New file.
28026 * modules/unictype/ctype-upper: New file.
28027 * modules/unictype/ctype-xdigit: New file.
28028 * modules/unictype/ctype-blank: New file.
28029 * lib/unictype/bidi_byname.c: New file.
28030 * lib/unictype/bidi_name.c: New file.
28031 * lib/unictype/bidi_of.c: New file.
28032 * lib/unictype/bidi_test.c: New file.
28033 * lib/unictype/bitmap.h: New file.
28034 * lib/unictype/block_test.c: New file.
28035 * lib/unictype/blocks.c: New file.
28036 * lib/unictype/categ_C.c: New file.
28037 * lib/unictype/categ_Cc.c: New file.
28038 * lib/unictype/categ_Cf.c: New file.
28039 * lib/unictype/categ_Cn.c: New file.
28040 * lib/unictype/categ_Co.c: New file.
28041 * lib/unictype/categ_Cs.c: New file.
28042 * lib/unictype/categ_L.c: New file.
28043 * lib/unictype/categ_Ll.c: New file.
28044 * lib/unictype/categ_Lm.c: New file.
28045 * lib/unictype/categ_Lo.c: New file.
28046 * lib/unictype/categ_Lt.c: New file.
28047 * lib/unictype/categ_Lu.c: New file.
28048 * lib/unictype/categ_M.c: New file.
28049 * lib/unictype/categ_Mc.c: New file.
28050 * lib/unictype/categ_Me.c: New file.
28051 * lib/unictype/categ_Mn.c: New file.
28052 * lib/unictype/categ_N.c: New file.
28053 * lib/unictype/categ_Nd.c: New file.
28054 * lib/unictype/categ_Nl.c: New file.
28055 * lib/unictype/categ_No.c: New file.
28056 * lib/unictype/categ_P.c: New file.
28057 * lib/unictype/categ_Pc.c: New file.
28058 * lib/unictype/categ_Pd.c: New file.
28059 * lib/unictype/categ_Pe.c: New file.
28060 * lib/unictype/categ_Pf.c: New file.
28061 * lib/unictype/categ_Pi.c: New file.
28062 * lib/unictype/categ_Po.c: New file.
28063 * lib/unictype/categ_Ps.c: New file.
28064 * lib/unictype/categ_S.c: New file.
28065 * lib/unictype/categ_Sc.c: New file.
28066 * lib/unictype/categ_Sk.c: New file.
28067 * lib/unictype/categ_Sm.c: New file.
28068 * lib/unictype/categ_So.c: New file.
28069 * lib/unictype/categ_Z.c: New file.
28070 * lib/unictype/categ_Zl.c: New file.
28071 * lib/unictype/categ_Zp.c: New file.
28072 * lib/unictype/categ_Zs.c: New file.
28073 * lib/unictype/categ_and.c: New file.
28074 * lib/unictype/categ_and_not.c: New file.
28075 * lib/unictype/categ_byname.c: New file.
28076 * lib/unictype/categ_name.c: New file.
28077 * lib/unictype/categ_none.c: New file.
28078 * lib/unictype/categ_of.c: New file.
28079 * lib/unictype/categ_or.c: New file.
28080 * lib/unictype/categ_test.c: New file.
28081 * lib/unictype/combining.c: New file.
28082 * lib/unictype/ctype_alnum.c: New file.
28083 * lib/unictype/ctype_alpha.c: New file.
28084 * lib/unictype/ctype_blank.c: New file.
28085 * lib/unictype/ctype_cntrl.c: New file.
28086 * lib/unictype/ctype_digit.c: New file.
28087 * lib/unictype/ctype_graph.c: New file.
28088 * lib/unictype/ctype_lower.c: New file.
28089 * lib/unictype/ctype_print.c: New file.
28090 * lib/unictype/ctype_punct.c: New file.
28091 * lib/unictype/ctype_space.c: New file.
28092 * lib/unictype/ctype_upper.c: New file.
28093 * lib/unictype/ctype_xdigit.c: New file.
28094 * lib/unictype/decdigit.c: New file.
28095 * lib/unictype/digit.c: New file.
28096 * lib/unictype/identsyntaxmap.h: New file.
28097 * lib/unictype/mirror.c: New file.
28098 * lib/unictype/numeric.c: New file.
28099 * lib/unictype/pr_alphabetic.c: New file.
28100 * lib/unictype/pr_ascii_hex_digit.c: New file.
28101 * lib/unictype/pr_bidi_arabic_digit.c: New file.
28102 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28103 * lib/unictype/pr_bidi_block_separator.c: New file.
28104 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28105 * lib/unictype/pr_bidi_common_separator.c: New file.
28106 * lib/unictype/pr_bidi_control.c: New file.
28107 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28108 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28109 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28110 * lib/unictype/pr_bidi_european_digit.c: New file.
28111 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28112 * lib/unictype/pr_bidi_left_to_right.c: New file.
28113 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28114 * lib/unictype/pr_bidi_other_neutral.c: New file.
28115 * lib/unictype/pr_bidi_pdf.c: New file.
28116 * lib/unictype/pr_bidi_segment_separator.c: New file.
28117 * lib/unictype/pr_bidi_whitespace.c: New file.
28118 * lib/unictype/pr_byname.c: New file.
28119 * lib/unictype/pr_byname.gperf: New file.
28120 * lib/unictype/pr_combining.c: New file.
28121 * lib/unictype/pr_composite.c: New file.
28122 * lib/unictype/pr_currency_symbol.c: New file.
28123 * lib/unictype/pr_dash.c: New file.
28124 * lib/unictype/pr_decimal_digit.c: New file.
28125 * lib/unictype/pr_default_ignorable_code_point.c: New file.
28126 * lib/unictype/pr_deprecated.c: New file.
28127 * lib/unictype/pr_diacritic.c: New file.
28128 * lib/unictype/pr_extender.c: New file.
28129 * lib/unictype/pr_format_control.c: New file.
28130 * lib/unictype/pr_grapheme_base.c: New file.
28131 * lib/unictype/pr_grapheme_extend.c: New file.
28132 * lib/unictype/pr_grapheme_link.c: New file.
28133 * lib/unictype/pr_hex_digit.c: New file.
28134 * lib/unictype/pr_hyphen.c: New file.
28135 * lib/unictype/pr_id_continue.c: New file.
28136 * lib/unictype/pr_id_start.c: New file.
28137 * lib/unictype/pr_ideographic.c: New file.
28138 * lib/unictype/pr_ids_binary_operator.c: New file.
28139 * lib/unictype/pr_ids_trinary_operator.c: New file.
28140 * lib/unictype/pr_ignorable_control.c: New file.
28141 * lib/unictype/pr_iso_control.c: New file.
28142 * lib/unictype/pr_join_control.c: New file.
28143 * lib/unictype/pr_left_of_pair.c: New file.
28144 * lib/unictype/pr_line_separator.c: New file.
28145 * lib/unictype/pr_logical_order_exception.c: New file.
28146 * lib/unictype/pr_lowercase.c: New file.
28147 * lib/unictype/pr_math.c: New file.
28148 * lib/unictype/pr_non_break.c: New file.
28149 * lib/unictype/pr_not_a_character.c: New file.
28150 * lib/unictype/pr_numeric.c: New file.
28151 * lib/unictype/pr_other_alphabetic.c: New file.
28152 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28153 * lib/unictype/pr_other_grapheme_extend.c: New file.
28154 * lib/unictype/pr_other_id_continue.c: New file.
28155 * lib/unictype/pr_other_id_start.c: New file.
28156 * lib/unictype/pr_other_lowercase.c: New file.
28157 * lib/unictype/pr_other_math.c: New file.
28158 * lib/unictype/pr_other_uppercase.c: New file.
28159 * lib/unictype/pr_paired_punctuation.c: New file.
28160 * lib/unictype/pr_paragraph_separator.c: New file.
28161 * lib/unictype/pr_pattern_syntax.c: New file.
28162 * lib/unictype/pr_pattern_white_space.c: New file.
28163 * lib/unictype/pr_private_use.c: New file.
28164 * lib/unictype/pr_punctuation.c: New file.
28165 * lib/unictype/pr_quotation_mark.c: New file.
28166 * lib/unictype/pr_radical.c: New file.
28167 * lib/unictype/pr_sentence_terminal.c: New file.
28168 * lib/unictype/pr_soft_dotted.c: New file.
28169 * lib/unictype/pr_space.c: New file.
28170 * lib/unictype/pr_terminal_punctuation.c: New file.
28171 * lib/unictype/pr_test.c: New file.
28172 * lib/unictype/pr_titlecase.c: New file.
28173 * lib/unictype/pr_unassigned_code_value.c: New file.
28174 * lib/unictype/pr_unified_ideograph.c: New file.
28175 * lib/unictype/pr_uppercase.c: New file.
28176 * lib/unictype/pr_variation_selector.c: New file.
28177 * lib/unictype/pr_white_space.c: New file.
28178 * lib/unictype/pr_xid_continue.c: New file.
28179 * lib/unictype/pr_xid_start.c: New file.
28180 * lib/unictype/pr_zero_width.c: New file.
28181 * lib/unictype/scripts.c: New file.
28182 * lib/unictype/sy_c_ident.c: New file.
28183 * lib/unictype/sy_c_whitespace.c: New file.
28184 * lib/unictype/sy_java_ident.c: New file.
28185 * lib/unictype/sy_java_whitespace.c: New file.
28187 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28189 * lib/unictype/blocks.h: Likewise.
28190 * lib/unictype/categ_C.h: Likewise.
28191 * lib/unictype/categ_Cc.h: Likewise.
28192 * lib/unictype/categ_Cf.h: Likewise.
28193 * lib/unictype/categ_Cn.h: Likewise.
28194 * lib/unictype/categ_Co.h: Likewise.
28195 * lib/unictype/categ_Cs.h: Likewise.
28196 * lib/unictype/categ_L.h: Likewise.
28197 * lib/unictype/categ_Ll.h: Likewise.
28198 * lib/unictype/categ_Lm.h: Likewise.
28199 * lib/unictype/categ_Lo.h: Likewise.
28200 * lib/unictype/categ_Lt.h: Likewise.
28201 * lib/unictype/categ_Lu.h: Likewise.
28202 * lib/unictype/categ_M.h: Likewise.
28203 * lib/unictype/categ_Mc.h: Likewise.
28204 * lib/unictype/categ_Me.h: Likewise.
28205 * lib/unictype/categ_Mn.h: Likewise.
28206 * lib/unictype/categ_N.h: Likewise.
28207 * lib/unictype/categ_Nd.h: Likewise.
28208 * lib/unictype/categ_Nl.h: Likewise.
28209 * lib/unictype/categ_No.h: Likewise.
28210 * lib/unictype/categ_P.h: Likewise.
28211 * lib/unictype/categ_Pc.h: Likewise.
28212 * lib/unictype/categ_Pd.h: Likewise.
28213 * lib/unictype/categ_Pe.h: Likewise.
28214 * lib/unictype/categ_Pf.h: Likewise.
28215 * lib/unictype/categ_Pi.h: Likewise.
28216 * lib/unictype/categ_Po.h: Likewise.
28217 * lib/unictype/categ_Ps.h: Likewise.
28218 * lib/unictype/categ_S.h: Likewise.
28219 * lib/unictype/categ_Sc.h: Likewise.
28220 * lib/unictype/categ_Sk.h: Likewise.
28221 * lib/unictype/categ_Sm.h: Likewise.
28222 * lib/unictype/categ_So.h: Likewise.
28223 * lib/unictype/categ_Z.h: Likewise.
28224 * lib/unictype/categ_Zl.h: Likewise.
28225 * lib/unictype/categ_Zp.h: Likewise.
28226 * lib/unictype/categ_Zs.h: Likewise.
28227 * lib/unictype/categ_of.h: Likewise.
28228 * lib/unictype/combining.h: Likewise.
28229 * lib/unictype/ctype_alnum.h: Likewise.
28230 * lib/unictype/ctype_alpha.h: Likewise.
28231 * lib/unictype/ctype_blank.h: Likewise.
28232 * lib/unictype/ctype_cntrl.h: Likewise.
28233 * lib/unictype/ctype_digit.h: Likewise.
28234 * lib/unictype/ctype_graph.h: Likewise.
28235 * lib/unictype/ctype_lower.h: Likewise.
28236 * lib/unictype/ctype_print.h: Likewise.
28237 * lib/unictype/ctype_punct.h: Likewise.
28238 * lib/unictype/ctype_space.h: Likewise.
28239 * lib/unictype/ctype_upper.h: Likewise.
28240 * lib/unictype/ctype_xdigit.h: Likewise.
28241 * lib/unictype/decdigit.h: Likewise.
28242 * lib/unictype/digit.h: Likewise.
28243 * lib/unictype/mirror.h: Likewise.
28244 * lib/unictype/numeric.h: Likewise.
28245 * lib/unictype/pr_alphabetic.h: Likewise.
28246 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28247 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28248 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28249 * lib/unictype/pr_bidi_block_separator.h: Likewise.
28250 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28251 * lib/unictype/pr_bidi_common_separator.h: Likewise.
28252 * lib/unictype/pr_bidi_control.h: Likewise.
28253 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28254 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28255 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28256 * lib/unictype/pr_bidi_european_digit.h: Likewise.
28257 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28258 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28259 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28260 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28261 * lib/unictype/pr_bidi_pdf.h: Likewise.
28262 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28263 * lib/unictype/pr_bidi_whitespace.h: Likewise.
28264 * lib/unictype/pr_combining.h: Likewise.
28265 * lib/unictype/pr_composite.h: Likewise.
28266 * lib/unictype/pr_currency_symbol.h: Likewise.
28267 * lib/unictype/pr_dash.h: Likewise.
28268 * lib/unictype/pr_decimal_digit.h: Likewise.
28269 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28270 * lib/unictype/pr_deprecated.h: Likewise.
28271 * lib/unictype/pr_diacritic.h: Likewise.
28272 * lib/unictype/pr_extender.h: Likewise.
28273 * lib/unictype/pr_format_control.h: Likewise.
28274 * lib/unictype/pr_grapheme_base.h: Likewise.
28275 * lib/unictype/pr_grapheme_extend.h: Likewise.
28276 * lib/unictype/pr_grapheme_link.h: Likewise.
28277 * lib/unictype/pr_hex_digit.h: Likewise.
28278 * lib/unictype/pr_hyphen.h: Likewise.
28279 * lib/unictype/pr_id_continue.h: Likewise.
28280 * lib/unictype/pr_id_start.h: Likewise.
28281 * lib/unictype/pr_ideographic.h: Likewise.
28282 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28283 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28284 * lib/unictype/pr_ignorable_control.h: Likewise.
28285 * lib/unictype/pr_iso_control.h: Likewise.
28286 * lib/unictype/pr_join_control.h: Likewise.
28287 * lib/unictype/pr_left_of_pair.h: Likewise.
28288 * lib/unictype/pr_line_separator.h: Likewise.
28289 * lib/unictype/pr_logical_order_exception.h: Likewise.
28290 * lib/unictype/pr_lowercase.h: Likewise.
28291 * lib/unictype/pr_math.h: Likewise.
28292 * lib/unictype/pr_non_break.h: Likewise.
28293 * lib/unictype/pr_not_a_character.h: Likewise.
28294 * lib/unictype/pr_numeric.h: Likewise.
28295 * lib/unictype/pr_other_alphabetic.h: Likewise.
28296 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28297 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28298 * lib/unictype/pr_other_id_continue.h: Likewise.
28299 * lib/unictype/pr_other_id_start.h: Likewise.
28300 * lib/unictype/pr_other_lowercase.h: Likewise.
28301 * lib/unictype/pr_other_math.h: Likewise.
28302 * lib/unictype/pr_other_uppercase.h: Likewise.
28303 * lib/unictype/pr_paired_punctuation.h: Likewise.
28304 * lib/unictype/pr_paragraph_separator.h: Likewise.
28305 * lib/unictype/pr_pattern_syntax.h: Likewise.
28306 * lib/unictype/pr_pattern_white_space.h: Likewise.
28307 * lib/unictype/pr_private_use.h: Likewise.
28308 * lib/unictype/pr_punctuation.h: Likewise.
28309 * lib/unictype/pr_quotation_mark.h: Likewise.
28310 * lib/unictype/pr_radical.h: Likewise.
28311 * lib/unictype/pr_sentence_terminal.h: Likewise.
28312 * lib/unictype/pr_soft_dotted.h: Likewise.
28313 * lib/unictype/pr_space.h: Likewise.
28314 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28315 * lib/unictype/pr_titlecase.h: Likewise.
28316 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28317 * lib/unictype/pr_unified_ideograph.h: Likewise.
28318 * lib/unictype/pr_uppercase.h: Likewise.
28319 * lib/unictype/pr_variation_selector.h: Likewise.
28320 * lib/unictype/pr_white_space.h: Likewise.
28321 * lib/unictype/pr_xid_continue.h: Likewise.
28322 * lib/unictype/pr_xid_start.h: Likewise.
28323 * lib/unictype/pr_zero_width.h: Likewise.
28324 * lib/unictype/scripts.h: Likewise.
28325 * lib/unictype/scripts_byname.gperf: Likewise.
28326 * lib/unictype/sy_c_ident.h: Likewise.
28327 * lib/unictype/sy_c_whitespace.h: Likewise.
28328 * lib/unictype/sy_java_ident.h: Likewise.
28329 * lib/unictype/sy_java_whitespace.h: Likewise.
28331 * lib/unictype/Makefile: New file.
28332 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28334 * lib/unictype/3level.h: New file, copied from glibc.
28335 * lib/unictype/3levelbit.h: New file.
28337 2007-11-11 Bruno Haible <bruno@clisp.org>
28339 * modules/gperf: New file.
28340 * modules/iconv_open (Depends-on): Add it.
28341 (Makefile.am): Remove the GPERF definition.
28343 2007-11-11 Bruno Haible <bruno@clisp.org>
28345 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28346 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28348 2007-11-11 Bruno Haible <bruno@clisp.org>
28350 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28351 (usage): Remove function.
28353 2007-11-11 Bruno Haible <bruno@clisp.org>
28355 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28356 gl_FUNC_CEILF_LIBS.
28357 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28359 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28360 gl_FUNC_CEILL_LIBS.
28361 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28362 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28363 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28365 2007-11-11 Bruno Haible <bruno@clisp.org>
28367 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28368 roundf were declared but do not exist on functions.
28369 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28370 roundl were declared but do not exist on functions.
28371 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28372 HAVE_FLOORL_AND_CEILL, respectively.
28373 Needed for Sun C on Solaris 10.
28375 2007-11-11 Bruno Haible <bruno@clisp.org>
28377 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28378 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28379 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28380 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28381 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28382 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28383 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28385 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28386 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28387 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28388 of HAVE_DECL_ROUND*.
28389 * modules/math (Makefile.am): Update.
28391 2007-11-10 Bruno Haible <bruno@clisp.org>
28393 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28394 ptrdiff_t as m4/intl.m4.
28396 2007-11-10 Jim Meyering <meyering@redhat.com>
28398 Avoid link failure for the argmatch test.
28399 * tests/test-argmatch.c (usage): Define function to avoid a link
28400 failure: argmatch_die requires a usage function.
28402 2007-11-09 Bruno Haible <bruno@clisp.org>
28404 * doc/functions/snprintf.texi: Mention BeOS deficiency.
28405 * doc/functions/vsnprintf.texi: Likewise.
28406 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28407 with a size argument < 2.
28409 2007-11-09 Bruno Haible <bruno@clisp.org>
28411 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28412 buffer. Fixes an inefficiency introduced on 2007-11-03.
28414 2007-11-09 Bruno Haible <bruno@clisp.org>
28416 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28417 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28419 2007-11-08 Jim Meyering <meyering@redhat.com>
28421 Change cache variable name prefix "jm_" to "gl_" everywhere.
28422 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28423 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28424 * m4/uptime.m4: s/gl_/jm_/
28426 2007-11-07 Bruno Haible <bruno@clisp.org>
28428 Update to GNU gettext 0.17.
28429 * m4/intl.m4: Update to GNU gettext 0.17.
28430 * m4/po.m4: Likewise.
28431 * modules/gettext (Files): Remove m4/ulonglong.m4.
28432 (configure.ac): Require gettext infrastructure from version 0.17.
28434 2007-11-06 Bruno Haible <bruno@clisp.org>
28436 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28437 symbolic values are not defined in a public header.
28438 * lib/freadable.c (freadable) [QNX]: Likewise.
28439 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28440 * lib/freading.c (freading) [QNX]: Likewise.
28441 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28442 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28443 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28444 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28445 Reported by Alain Magloire.
28447 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28449 2007-11-05 Bruno Haible <bruno@clisp.org>
28451 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28452 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28453 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28454 Reported by Eric Blake.
28456 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28457 Bruno Haible <bruno@clisp.org>
28459 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28460 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28461 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28462 (malloc): Undefine also before including <stdlib.h>.
28463 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28464 Needed on OSF/1 4.0.
28466 2007-11-05 Jim Meyering <meyering@redhat.com>
28468 git-version-gen: sync from coreutils.
28469 * build-aux/git-version-gen: Add comments.
28470 Change the first '-' to '.' in the snapshot version string,
28471 e.g., 6.9-377-08144 -> 6.9.377-08144
28472 Remove first parameter.
28473 Don't declare a version "-dirty" merely because a time
28476 2007-11-04 Bruno Haible <bruno@clisp.org>
28478 * lib/lock.h: Protect all macro definitions containing an 'if'
28479 statement through a "do { ... } while (0)".
28480 * lib/tls.h: Likewise.
28482 2007-11-04 Bruno Haible <bruno@clisp.org>
28484 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28486 2007-11-04 Bruno Haible <bruno@clisp.org>
28488 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28489 * modules/fprintf-posix (Depends-on): Add nocrash.
28490 * modules/snprintf-posix (Depends-on): Likewise.
28491 * modules/sprintf-posix (Depends-on): Likewise.
28492 * modules/vasnprintf-posix (Depends-on): Likewise.
28493 * modules/vasprintf-posix (Depends-on): Likewise.
28494 * modules/vfprintf-posix (Depends-on): Likewise.
28495 * modules/vsnprintf-posix (Depends-on): Likewise.
28496 * modules/vsprintf-posix (Depends-on): Likewise.
28497 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28498 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28499 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28500 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28501 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28502 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28503 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28505 2007-11-04 Bruno Haible <bruno@clisp.org>
28507 * modules/nocrash: New file.
28508 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28509 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28511 2007-11-04 Bruno Haible <bruno@clisp.org>
28513 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28514 precision handling.
28515 * tests/test-vasprintf-posix.c (test_function): Likewise.
28516 * tests/test-snprintf-posix.h (test_function): Likewise.
28517 * tests/test-sprintf-posix.h (test_function): Likewise.
28519 Fix *printf behaviour for large precisions on mingw and BeOS.
28520 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28521 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28522 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28523 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28524 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28525 gl_PRINTF_PRECISION and test its result. Invoke
28526 gl_PREREQ_VASNPRINTF_PRECISION.
28527 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28528 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28529 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28530 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28531 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28532 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28533 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28534 * doc/functions/fprintf.texi: Update.
28535 * doc/functions/printf.texi: Update.
28536 * doc/functions/snprintf.texi: Update.
28537 * doc/functions/sprintf.texi: Update.
28538 * doc/functions/vfprintf.texi: Update.
28539 * doc/functions/vprintf.texi: Update.
28540 * doc/functions/vsnprintf.texi: Update.
28541 * doc/functions/vsprintf.texi: Update.
28543 2007-11-04 Bruno Haible <bruno@clisp.org>
28545 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28547 2007-11-04 Bruno Haible <bruno@clisp.org>
28549 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28550 Reported by Sylvain Beucler <beuc@gnu.org>.
28552 2007-11-03 Bruno Haible <bruno@clisp.org>
28554 * tests/test-fprintf-posix2.sh: New file.
28555 * tests/test-fprintf-posix2.c: New file.
28556 * modules/fprintf-posix-tests (Files): Add them.
28557 (TESTS): Add test-fprintf-posix2.sh.
28558 (configure.ac): Check for getrlimit and setrlimit.
28559 (check_PROGRAMS): Add test-fprintf-posix2.
28561 * tests/test-printf-posix2.sh: New file.
28562 * tests/test-printf-posix2.c: New file.
28563 * modules/printf-posix-tests (Files): Add them.
28564 (TESTS): Add test-printf-posix2.sh.
28565 (configure.ac): Check for getrlimit and setrlimit.
28566 (check_PROGRAMS): Add test-printf-posix2.
28568 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28569 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28570 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28571 (decode_double): New function, copied from decode_long_double.
28572 (scale10_round_decimal_decoded): New function, extracted from
28573 scale10_round_decimal_long_double.
28574 (scale10_round_decimal_long_double): Use it.
28575 (scale10_round_decimal_double): New function.
28576 (floorlog10): New function.
28577 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28578 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28579 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28580 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28581 gl_PRINTF_ENOMEM and test its result. Invoke
28582 gl_PREREQ_VASNPRINTF_ENOMEM.
28583 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28584 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28585 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28586 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28587 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28588 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28589 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28590 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28591 * modules/snprintf-posix (Depends-on): Likewise.
28592 * modules/sprintf-posix (Depends-on): Likewise.
28593 * modules/vasnprintf-posix (Depends-on): Likewise.
28594 * modules/vasprintf-posix (Depends-on): Likewise.
28595 * modules/vfprintf-posix (Depends-on): Likewise.
28596 * modules/vsnprintf-posix (Depends-on): Likewise.
28597 * modules/vsprintf-posix (Depends-on): Likewise.
28598 * doc/functions/fprintf.texi: Update.
28599 * doc/functions/printf.texi: Update.
28600 * doc/functions/snprintf.texi: Update.
28601 * doc/functions/sprintf.texi: Update.
28602 * doc/functions/vfprintf.texi: Update.
28603 * doc/functions/vprintf.texi: Update.
28604 * doc/functions/vsnprintf.texi: Update.
28605 * doc/functions/vsprintf.texi: Update.
28607 2007-11-03 Bruno Haible <bruno@clisp.org>
28609 * modules/frexp-nolibm-tests: New file.
28611 * modules/frexp-nolibm: New file.
28612 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28614 2007-11-03 Bruno Haible <bruno@clisp.org>
28616 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28617 value is C99 compliant.
28618 Needed for OSF/1 5.1.
28620 2007-11-03 Bruno Haible <bruno@clisp.org>
28622 Fix out-of-memory handling of vasnprintf.
28623 * lib/printf-parse.c: Include <errno.h>.
28624 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28625 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28628 2007-11-02 Eric Blake <ebb9@byu.net>
28630 Fix tests on cygwin.
28631 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28633 2007-11-01 Bruno Haible <bruno@clisp.org>
28635 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28637 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28638 needed for POSIX compatibility.
28640 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
28642 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28643 for compatibility with GNU.
28645 2007-11-01 Bruno Haible <bruno@clisp.org>
28647 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28648 (putenv): Renamed from rpl_putenv. Change argument type from
28649 'const char *' to 'char *'.
28650 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28651 of defining putenv in config.h, just set REPLACE_PUTENV.
28652 * modules/putenv (Depends-on): Add stdlib.
28653 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28654 (Include): Use <stdlib.h>.
28655 * lib/stdlib.in.h (putenv): New declaration.
28656 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28658 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28660 Needed for MacOS X 10.5.0.
28661 Reported by Peter O'Gorman <peter@pogma.com>.
28663 2007-11-01 Jim Meyering <meyering@redhat.com>
28665 Treat an empty date string exactly like "0".
28666 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28667 if the remaining date string (to be parsed) is empty, use "0".
28668 Reported by Mischa Molhoek and discussed in this thread:
28669 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28671 2007-10-31 Bruno Haible <bruno@clisp.org>
28673 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28674 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28675 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28676 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28677 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28678 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28680 2007-10-31 Bruno Haible <bruno@clisp.org>
28682 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28683 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28684 (AC_TYPE_LONG_LONG_INT): Use it.
28685 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28687 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28689 * modules/stdint (Files): Remove m4/ulonglong.m4.
28690 * modules/strtoull (Files): Use m4/longlong.m4 instead of
28692 * modules/strtoumax (Files): Likewise.
28694 2007-10-30 Bruno Haible <bruno@clisp.org>
28696 * modules/xvasprintf-posix: New file.
28697 Suggested by Eric Blake.
28699 2007-10-30 Bruno Haible <bruno@clisp.org>
28701 * modules/xprintf-posix-tests: New file.
28702 * tests/test-xprintf-posix.sh: New file.
28703 * tests/test-xprintf-posix.c: New file.
28704 * tests/test-xfprintf-posix.c: New file.
28706 * modules/xprintf-posix: New file.
28708 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28710 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28711 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28712 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28714 2007-10-29 Bruno Haible <bruno@clisp.org>
28716 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28717 contain the special marker '_cv_'.
28718 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28719 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28720 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28721 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28722 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28723 Reported by Ralf Wildenhues.
28725 2007-10-29 Bruno Haible <bruno@clisp.org>
28727 * gnulib-tool (func_import): When --lgpl is not specified, set
28728 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28730 Reported by Simon Josefsson.
28732 2007-10-28 Bruno Haible <bruno@clisp.org>
28734 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28735 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28736 HAVE_DECL_ISFINITE.
28737 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28738 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28739 HAVE_DECL_ISFINITE.
28741 2007-10-28 Bruno Haible <bruno@clisp.org>
28743 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28744 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28746 2007-10-28 Bruno Haible <bruno@clisp.org>
28748 Fix link errors with Sun C 5.0 on Solaris 10.
28749 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28750 function is declared but not present in the compiler's libm.
28751 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28752 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28753 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28754 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28755 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28756 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28757 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28758 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28759 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28760 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28761 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28764 2007-10-28 Bruno Haible <bruno@clisp.org>
28766 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28767 gl_FUNC_FLOORL. Cache the result.
28768 (gl_FUNC_FLOORL): Use it.
28769 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28770 gl_FUNC_CEILL. Cache the result.
28771 (gl_FUNC_CEILL): Use it.
28773 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28774 gl_FUNC_FLOOR. Cache the result.
28775 (gl_FUNC_FLOOR): Use it.
28776 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28777 gl_FUNC_CEIL. Cache the result.
28778 (gl_FUNC_CEIL): Use it.
28780 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28781 gl_FUNC_FLOORF. Cache the result.
28782 (gl_FUNC_FLOORF): Use it.
28783 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28784 gl_FUNC_CEILF. Cache the result.
28785 (gl_FUNC_CEILF): Use it.
28787 2007-10-28 Bruno Haible <bruno@clisp.org>
28789 * gnulib-tool: Allow specifying the LGPL version number through
28790 --lgpl=2 or --lgpl=3.
28791 (func_usage): Document --lgpl with argument.
28792 Handle --lgpl=... arguments.
28793 (func_import): Recognize also gl_LGPL calls with an argument. When
28794 --lgpl=2 is used and the module's license is just LGPL, report an
28795 error. Set sed_transform_lib_file according to the lgpl variable. In
28796 the generated files, use --lgpl or gl_LGPL invocations with argument,
28798 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28800 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28803 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28804 Bruno Haible <bruno@clisp.org>
28806 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28807 (u16_uctomb_aux): Likewise.
28808 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28810 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28812 2007-10-28 Bruno Haible <bruno@clisp.org>
28814 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28815 Invoke AM_GETTEXT_OPTION if it exists.
28816 * modules/vasprintf: Likewise.
28817 * modules/verror: Likewise.
28818 * modules/xprintf: Likewise.
28819 * modules/xvasprintf: Likewise.
28821 2007-10-27 Ben Pfaff <blp@gnu.org>
28823 * lib/math.in.h: Define isfinite macro and prototypes for
28824 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28826 * m4/math_h.m4: New substitutions for isfinite module.
28827 * lib/isfinite.c: New file.
28828 * m4/isfinite.m4: New file.
28829 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28830 * modules/isfinite: New file.
28831 * modules/isfinite-tests: New file.
28832 * tests/tests-isfinite.c: New file.
28833 * doc/functions/isfinite.texi: Mention isfinite module.
28834 * MODULES.html.sh: Mention new module.
28836 2007-10-27 Ben Pfaff <blp@gnu.org>
28838 Ralf Wildenhues reported that Tru64 4.0D declares the round
28839 functions but does not have definitions.
28840 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28841 cannot be found in any library, set the output variable to
28842 "missing" instead of "".
28843 * m4/round.m4: Also use our substitute if we cannot find round in
28844 any library, even if it is declared.
28845 * m4/roundf.m4: Likewise for roundf.
28846 * m4/roundl.m4: Likewise for roundl.
28847 * lib/math.in.h: Undefine roundf, round, roundl before defining
28848 their replacements, to allow for hypothetical systems where these
28849 may be defined as macros but not available in libraries.
28851 2007-10-27 Bruno Haible <bruno@clisp.org>
28853 * doc/gnulib.texi: Invoke @firstparagraphindent.
28854 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28856 (Source changes): New section.
28858 2007-10-26 Bruno Haible <bruno@clisp.org>
28860 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28861 borrowed from autoconf.
28863 2007-10-26 Bruno Haible <bruno@clisp.org>
28865 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28866 strerror returned the empty string. Needed on HP-UX 11.00.
28868 2007-10-24 Micah Cowan <micah@cowan.name>
28870 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
28871 * build-aux/bootstrap: Remove support for now-unnecessary option,
28872 --cvs-user, and envvars CVS_USER, CVS_RSH.
28874 2007-10-24 Jim Meyering <meyering@redhat.com>
28876 Avoid diagnostics from sha1sum when there is no cached checksum.
28877 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28878 if the po.s1 file hasn't been created yet.
28880 * build-aux/bootstrap: Sync from coreutils:
28881 2007-10-24 Jim Meyering <meyering@redhat.com>
28882 Get gnulib from the git repository, not from an obsolete cvs one.
28883 * build-aux/bootstrap: Suggestion from Micah Cowan.
28884 2007-10-04 Jim Meyering <jim@meyering.net>
28885 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28886 (update_po_files): Work also when there are no .po files in po/.
28888 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
28890 * README: Append ".git" to git and cg examples.
28891 Problem reported by Benoit Sigoure.
28893 2007-10-23 Micah Cowan <micah@cowan.name>
28895 * users.txt: Add wget.
28897 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28899 Fix linking of some unistdio tests on FreeBSD.
28900 * modules/unistdio/u16-vsnprintf-tests
28901 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28902 * modules/unistdio/u16-vsprintf-tests
28903 (test_u16_vsnprintf1_LDADD): Likewise.
28904 * modules/unistdio/u32-vsnprintf-tests
28905 (test_u32_vsnprintf1_LDADD): Likewise.
28906 * modules/unistdio/u32-vsprintf-tests
28907 (test_u32_vsprintf1_LDADD): Likewise.
28908 * modules/unistdio/u8-vsnprintf-tests
28909 (test_u8_vsnprintf1_LDADD): Likewise.
28910 * modules/unistdio/u8-vsprintf-tests
28911 (test_u8_vsprintf1_LDADD): Likewise.
28912 * modules/unistdio/ulc-vsnprintf-tests
28913 (test_ulc_vsnprintf1_LDADD): Likewise.
28914 * modules/unistdio/ulc-vsprintf-tests
28915 (test_ulc_vsprintf1_LDADD): Likewise.
28917 Fix linking of some uniconv tests on FreeBSD.
28918 * modules/uniconv/u16-conv-from-enc-tests
28919 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28920 * modules/uniconv/u16-conv-to-enc-tests
28921 (test_u16_conv_to_enc_LDADD): Likewise.
28922 * modules/uniconv/u16-strconv-from-enc-tests
28923 (test_u16_strconv_from_enc_LDADD): Likewise.
28924 * modules/uniconv/u16-strconv-to-enc-tests
28925 (test_u16_strconv_to_enc_LDADD): Likewise.
28926 * modules/uniconv/u32-conv-from-enc-tests
28927 (test_u32_conv_from_enc_LDADD): Likewise.
28928 * modules/uniconv/u32-conv-to-enc-tests
28929 (test_u32_conv_to_enc_LDADD): Likewise.
28930 * modules/uniconv/u32-strconv-from-enc-tests
28931 (test_u32_strconv_from_enc_LDADD): Likewise.
28932 * modules/uniconv/u32-strconv-to-enc-tests
28933 (test_u32_strconv_to_enc_LDADD): Likewise.
28934 * modules/uniconv/u8-conv-from-enc-tests
28935 (test_u8_conv_from_enc_LDADD): Likewise.
28936 * modules/uniconv/u8-conv-to-enc-tests
28937 (test_u8_conv_to_enc_LDADD): Likewise.
28938 * modules/uniconv/u8-strconv-from-enc-tests
28939 (test_u8_strconv_from_enc_LDADD): Likewise.
28940 * modules/uniconv/u8-strconv-to-enc-tests
28941 (test_u8_strconv_to_enc_LDADD): Likewise.
28943 2007-10-22 Bruno Haible <bruno@clisp.org>
28945 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28948 2007-10-22 Eric Blake <ebb9@byu.net>
28950 Tweak x*printf documentation.
28951 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28952 variable name and comments.
28953 Suggested by Bruno Haible.
28955 2007-10-22 Bruno Haible <bruno@clisp.org>
28957 * lib/acl.c (copy_acl): Fix file name in comment.
28959 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28961 Fix Tru64 problem with stdbool.h.
28962 * lib/stdbool.in.h (false, true):
28963 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28964 Don't declare as an enum in this situation; it runs afoul of Tru64.
28965 Problem reported by Steven M. Schweda in
28966 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28968 2007-10-22 Eric Blake <ebb9@byu.net>
28970 Also wrap vf?printf.
28971 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28972 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28973 (xvprintf, xvfprintf): New functions.
28975 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28977 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28978 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28980 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28981 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28983 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28985 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
28988 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28991 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28992 Undef `sys' after including sys/table.h, for Tru64 4.0D.
28994 * tests/test-i-ring.c: Work for C89.
28996 2007-10-22 Bruno Haible <bruno@clisp.org>
28998 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28999 -1u, in preprocessor expression, so that we don't test for the bug
29000 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
29001 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29003 2007-10-22 Eric Blake <ebb9@byu.net>
29005 * tests/test-yesno.sh: Silence stderr during test.
29007 2007-10-22 Simon Josefsson <simon@josefsson.org>
29009 * modules/crypto/gc-camellia: New file.
29011 * m4/gc-camellia.m4: New file.
29013 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29015 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29017 2007-10-22 Simon Josefsson <simon@josefsson.org>
29019 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29020 --help to stdout. Reported by sms@antinode.org (Steven
29023 2007-10-22 Simon Josefsson <simon@josefsson.org>
29025 * users.txt: Fix link to libksba.
29027 2007-10-21 Ben Pfaff <blp@gnu.org>
29029 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29030 round.c roundf implementation that depends on floorf and ceilf to
29031 be tested unconditionally.
29033 2007-10-21 Ben Pfaff <blp@gnu.org>
29035 * m4/check-libm-func.m4: Removed.
29036 * m4/check-math-lib.m4: New file.
29037 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29038 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29039 definition and lack of AC_LIBOBJ([roundf]).
29040 * m4/roundl.m4: Ditto, and similarly for roundl.
29041 * modules/round: Reference new m4 file.
29042 * modules/roundf: Ditto.
29043 * modules/roundl: Ditto.
29044 * tests/test-round2.c (main): Use ROUND instead of round.
29045 Bug report from Bruno Haible.
29047 2007-10-21 Bruno Haible <bruno@clisp.org>
29049 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29052 2007-10-21 Bruno Haible <bruno@clisp.org>
29054 * tests/test-wcwidth.c (main): Allow negative result for some control
29057 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29058 Needed on OSF/1 5.1.
29060 2007-10-21 Bruno Haible <bruno@clisp.org>
29062 * tests/test-floorf1.c: Include isnanf.h.
29063 (main): Use isnanf() instead of isnan().
29064 * tests/test-ceilf1.c: Include isnanf.h.
29065 (main): Use isnanf() instead of isnan().
29066 * tests/test-truncf1.c: Include isnanf.h.
29067 (main): Use isnanf() instead of isnan().
29068 * tests/test-roundf1.c: Include isnanf.h.
29069 (main): Use isnanf() instead of isnan().
29071 2007-10-21 Eric Blake <ebb9@byu.net>
29073 * users.txt: Update URL for m4.
29075 2007-10-21 Bruno Haible <bruno@clisp.org>
29077 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29079 2007-10-21 Bruno Haible <bruno@clisp.org>
29081 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29082 Git's management files if the CVS files are not present.
29084 2007-10-20 Bruno Haible <bruno@clisp.org>
29086 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29089 2007-10-20 Ben Pfaff <blp@gnu.org>
29091 * lib/math.in.h: Declare round, roundf, roundl if we are providing
29093 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29094 * lib/round.c: New file.
29095 * lib/roundf.c: New file.
29096 * lib/roundl.c: New file.
29097 * m4/round.m4: New file.
29098 * m4/roundf.m4: New file.
29099 * m4/roundl.m4: New file.
29100 * m4/check-libm-func-m4: New file.
29101 * modules/math: Replace round, roundf, roundl related @VARS@ in
29103 * modules/round: New file.
29104 * modules/round-tests: New file.
29105 * modules/roundf: New file.
29106 * modules/roundf-tests: New file.
29107 * modules/roundl: New file.
29108 * modules/roundl-tests: New file.
29109 * tests/test-round1.c: New file.
29110 * tests/test-round2.c: New file.
29111 * tests/test-roundf1.c: New file.
29112 * tests/test-roundf2.c: New file.
29113 * tests/test-roundl.c: New file.
29114 * doc/functions/round.texi: Mention round module.
29115 * doc/functions/roundf.texi: Mention roundf module.
29116 * doc/functions/roundl.texi: Mention roundl module.
29117 * MODULES.html.sh: Mention new modules.
29118 Thanks to Bruno Haible for suggestions.
29120 2007-10-20 Jim Meyering <meyering@redhat.com>
29122 * lib/xprintf.c: Include <config.h> unconditionally.
29124 Change xprintf's license to GPL.
29125 * modules/xprintf (License): s/LGPL/GPL/, since this module
29126 depends on modules (exit and exitfail) which are GPL.
29127 Suggestion from Bruno Haible.
29130 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29131 Use a clearer diagnostic.
29132 Patch from Bruno Haible.
29134 2007-10-20 Bruno Haible <bruno@clisp.org>
29136 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29137 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29138 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29140 2007-10-20 Bruno Haible <bruno@clisp.org>
29142 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29143 precision in the comparison result > x - 1 or similar.
29144 * tests/test-ceilf2.c (correct_result_p): Likewise.
29145 * tests/test-truncf2.c (correct_result_p): Likewise.
29146 * tests/test-trunc2.c (correct_result_p): Likewise.
29147 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29149 2007-10-20 Bruno Haible <bruno@clisp.org>
29151 * modules/ceil: New file.
29152 * m4/ceil.m4: New file.
29153 * doc/functions/ceil.texi: Mention the 'ceil' module.
29155 2007-10-20 Bruno Haible <bruno@clisp.org>
29157 * modules/floor: New file.
29158 * m4/floor.m4: New file.
29159 * doc/functions/floor.texi: Mention the 'floor' module.
29161 2007-10-20 Bruno Haible <bruno@clisp.org>
29163 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29165 * modules/floorf-tests (Depends-on): Likewise.
29166 * modules/truncf-tests (Depends-on): Likewise.
29167 * modules/trunc-tests (Depends-on): Likewise.
29168 Reported by Ben Pfaff.
29170 2007-10-19 Jim Meyering <meyering@redhat.com>
29172 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29173 Don't bother testing specific errno values. Just test ferror.
29175 New module: xprintf
29176 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29178 2007-10-19 Bruno Haible <bruno@clisp.org>
29180 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29182 * modules/javaexec (Makefile.am): Likewise.
29183 * modules/relocatable-prog (Makefile.am): Likewise.
29184 Suggested by Jim Meyering.
29186 2007-10-18 Bruno Haible <bruno@clisp.org>
29188 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29189 Reported by Jim Meyering.
29191 2007-10-18 Eric Blake <ebb9@byu.net>
29193 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29195 2007-10-18 Bruno Haible <bruno@clisp.org>
29197 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29198 the format string into writable memory. Needed in Fortify conditions.
29200 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
29201 Bruno Haible <bruno@clisp.org>
29203 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29204 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29205 * modules/trim (Depends-on): Add mbchar.
29206 (configure.ac): Add gl_FUNC_MBRTOWC.
29207 (Makefile.am): Augment lib_SOURCES.
29209 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
29211 Modify glob.c to use fstatat and dirfd, to simplify it.
29212 Suggested by Eric Blake.
29213 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29214 Don't include <stdbool.h>; not used.
29215 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29216 (link_exists_p): Simplify implementation, since we can now assume
29218 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
29220 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29222 * gnulib-tool (func_get_dependencies): Fix sed script to
29225 2007-10-17 Bruno Haible <bruno@clisp.org>
29227 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29228 allow locale names without encoding suffix.
29229 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29230 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29232 2007-10-16 Bruno Haible <bruno@clisp.org>
29234 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29235 * lib/getgroups.c (getgroups): Likewise.
29236 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29238 2007-10-16 Bruno Haible <bruno@clisp.org>
29240 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29241 * modules/malloc-posix (License): Likewise.
29242 * modules/realloc-posix (License): Likewise.
29243 * modules/calloc-posix (License): Likewise.
29244 * modules/intprops (License): Change from GPL to LGPL, with
29245 Paul Eggert's approval.
29247 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29249 Merge glibc changes into lib/glob.c.
29251 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29252 2007-10-15 04:59:03 UTC. Here are the changes:
29254 2007-10-14 Ulrich Drepper <drepper@redhat.com>
29256 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29258 * lib/glob.c: Add some branch prediction throughout.
29260 2007-10-07 Ulrich Drepper <drepper@redhat.com>
29263 * lib/glob.c (glob): Recognize patterns starting \/.
29265 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29268 * lib/glob.c (attribute_hidden): Define if not defined.
29269 (glob): Unescape dirname, filename or username when needed and not
29270 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29271 is NULL. Handle unescaped [ in pattern without closing ].
29272 Don't pass GLOB_CHECK down to recursive glob for directories.
29273 (__glob_pattern_type): New function.
29274 (__glob_pattern_p): Implement using __glob_pattern_type.
29275 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29276 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29277 Remove unreachable code.
29279 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29281 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29282 explain why there are no leaks.
29284 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29287 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29288 time, rather allocate increasingly bigger arrays of pointers, if
29289 possible with alloca, if too large with malloc.
29291 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29293 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29294 Problem reported by H.Merijn Brand in
29295 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29296 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29297 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29299 2007-10-15 Bruno Haible <bruno@clisp.org>
29301 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29302 with explicit rpl_ prefix.
29303 * lib/fopen.c (fopen): Likewise.
29304 * lib/freopen.c (freopen): Likewise.
29305 * lib/iconv.c (iconv): Likewise.
29306 * lib/iconv_close.c (iconv_close): Likewise.
29308 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29310 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29312 2007-10-15 Bruno Haible <bruno@clisp.org>
29314 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29315 <stddef.h> instead of <stdlib.h> since we only need NULL.
29316 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29318 2007-10-15 Bruno Haible <bruno@clisp.org>
29320 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29321 Replace paragraph talking about LIBOBJS.
29322 Reported by Colin Watson <cjwatson@debian.org>.
29324 2007-10-15 Bruno Haible <bruno@clisp.org>
29326 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29327 <stdlib.h> before using NULL.
29329 2007-10-15 Simon Josefsson <simon@josefsson.org>
29331 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29332 Reported by Albert Chin <china@thewrittenword.com>.
29334 2007-10-14 Bruno Haible <bruno@clisp.org>
29336 * modules/iconv_open-utf-tests: New file.
29337 * tests/test-iconv-utf.c: New file.
29339 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29340 * modules/iconv_open-utf: New file.
29341 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29342 (iconv, iconv_close): New declarations.
29343 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29345 (iconv_open): Add special handling of conversion between UTF-8 and
29346 UTF-{16,32}{BE,LE}.
29347 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29348 * lib/iconv_close.c: New file.
29349 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29350 gl_FUNC_ICONV_OPEN.
29351 (gl_FUNC_ICONV_OPEN): Use it.
29352 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29353 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29354 and REPLACE_ICONV_UTF.
29355 * modules/iconv_open (Depends-on): Add c-strcase.
29356 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29358 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29360 2007-10-13 Albert Chin <china@thewrittenword.com>
29361 Bruno Haible <bruno@clisp.org>
29363 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29364 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29366 2007-10-13 Bruno Haible <bruno@clisp.org>
29368 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29369 defined, use the ISO C99 inline semantics.
29370 * lib/argp.h (ARGP_EI): Likewise.
29372 2007-10-13 Bruno Haible <bruno@clisp.org>
29374 Handle 'inline' change in gcc 4.3.0.
29375 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29376 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29377 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29378 argp_fmtstream_point): Disable 'extern' declaration if the function
29379 definition is going to be provided inline.
29380 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29381 semantics, not the ISO C99 inline semantics.
29382 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29383 'extern' declaration if the function definition is going to be provided
29385 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29386 the GNU C inline semantics, not the ISO C99 inline semantics. With
29387 GCC 4.2, avoid a warning.
29389 2007-10-13 Bruno Haible <bruno@clisp.org>
29391 * lib/freading.h (freading): Enable the use of __freading for
29393 * lib/freading.c (freading): Likewise.
29395 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
29397 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29398 "warning: C99 inline functions are not supported; using GNU89".
29400 2007-10-12 Bruno Haible <bruno@clisp.org>
29402 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29404 * tests/test-ceilf2.c: New file.
29405 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29407 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29408 * modules/ceilf-tests: Update.
29410 2007-10-12 Bruno Haible <bruno@clisp.org>
29412 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29414 * tests/test-floorf2.c: New file.
29415 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29417 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29418 * modules/floorf-tests: Update.
29420 2007-10-12 Bruno Haible <bruno@clisp.org>
29422 * tests/test-trunc2.c: New file.
29423 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29425 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29426 * modules/trunc-tests: Update.
29428 2007-10-12 Bruno Haible <bruno@clisp.org>
29430 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29432 * tests/test-truncf2.c: New file.
29433 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29435 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29436 * modules/truncf-tests: Update.
29438 2007-10-11 Eric Blake <ebb9@byu.net>
29440 Don't claim strerror is broken on Interix.
29441 * doc/functions/strerror.texi (strerror): Known broken systems are
29442 now Solaris 8, and not Interix.
29443 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29444 Interix on cross-compile.
29445 Reported by Martin Koeppe in
29446 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29448 2007-10-11 Bruno Haible <bruno@clisp.org>
29450 * modules/i-ring-tests: New file.
29451 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29454 2007-10-11 Bruno Haible <bruno@clisp.org>
29456 * modules/filenamecat-tests: New file.
29457 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29458 * lib/filenamecat.c: Remove test code.
29460 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29462 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29464 * lib/strerror.c: Include <string.h> always, to test interface,
29465 and to remove the need for the dummy.
29466 Include intprops.h to compute width instead of doing it ourselves
29467 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29468 (strerror): Define it to return NULL if there's no system strerror.
29469 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29470 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29471 ancient pre-strerror Unix systems well any more. Saying "unknown
29472 system error" is enough.
29473 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29474 simpler strerror.c implementation.
29475 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29476 Simplify the tests to reflect the simpler strerror implementation.
29477 * modules/strerror (Depends-on): Add intprops.
29479 2007-10-09 Eric Blake <ebb9@byu.net>
29481 Silence test-fpending.
29482 * modules/fpending-tests (Files): Add wrapper script.
29483 * tests/test-fpending.sh: New file.
29485 2007-10-09 Bruno Haible <bruno@clisp.org>
29487 * MODULES.html.sh (func_module): Don't create a hyperlink for
29488 function names like 'printf_frexp'.
29489 (Misc): Add crc, memxor.
29490 (Characteristics of floating types): New section.
29491 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29492 isnanf-nolibm, signbit, trunc, truncf, truncl.
29493 (Enhancements for ISO C 99 functions): New subsection Input/output.
29494 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29495 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29496 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29497 (Compatibility checks for POSIX:2001 functions): Add clock-time.
29498 (Enhancements for POSIX:2001 functions): Add chdir-long.
29499 (File system functions): Add areadlink, chdir-safer, read-file.
29500 Remove cycle-check.
29501 (File system as inode set): New section.
29502 (Date and time): Add gethrxtime.
29503 (Multithreading): Add openmp.
29504 (Internationalization functions): Add localename.
29505 (Unicode string functions): Add unistr/u*-mbsnlen.
29506 (Support for maintaining and releasing projects): Add git-version-gen.
29507 (Lone files): Remove directories.
29509 2007-10-08 Ben Pfaff <blp@gnu.org>
29511 * lib/xmalloca.h: Fix typo in comment.
29513 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
29515 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29516 when avoiding problems with integer overflow. Use a portable test
29519 2007-10-08 Simon Josefsson <simon@josefsson.org>
29521 * modules/dummy (License): Change to LGPLv2+.
29522 * modules/float (License): Likewise
29523 * modules/realloc (License): Likewise
29524 * modules/stdlib (License): Likewise
29526 2007-10-07 Bruno Haible <bruno@clisp.org>
29528 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29529 * floor.c (TWO_MANT_DIG): Likewise.
29530 * ceil.c (TWO_MANT_DIG): Likewise.
29531 Reported by Ben Pfaff.
29533 2007-10-07 Bruno Haible <bruno@clisp.org>
29535 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29536 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29537 * lib/frexp.c (FUNC): Likewise.
29538 * lib/printf-frexp.h (printf_frexp): Likewise.
29539 * lib/printf-frexpl.h (printf_frexpl): Likewise.
29540 * lib/printf-frexp.c (FUNC): Likewise.
29541 Suggested by Jim Meyering.
29543 2007-10-07 Jim Meyering <meyering@redhat.com>
29545 Make xnanosleep's integer overflow test more robust.
29546 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29547 so that gcc-4.3.0 doesn't optimize away this test for overflow.
29549 2007-10-07 Bruno Haible <bruno@clisp.org>
29551 * NEWS: Mention the license change.
29553 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29554 abbreviations in the modules files.
29556 Change copyright notice from GPLv2+ to GPLv3+.
29557 * README: Change copyright notice.
29558 * MODULES.html.sh: Likewise.
29559 * build-aux/bootstrap.conf: Likewise.
29560 * build-aux/config.libpath: Likewise.
29561 * build-aux/csharpcomp.sh.in: Likewise.
29562 * build-aux/csharpexec.sh.in: Likewise.
29563 * build-aux/install-reloc: Likewise.
29564 * build-aux/javacomp.sh.in: Likewise.
29565 * build-aux/javaexec.sh.in: Likewise.
29566 * build-aux/ldd.sh.in: Likewise.
29567 * build-aux/reloc-ldflags: Likewise.
29568 * build-aux/relocatable.sh.in: Likewise.
29569 * build-aux/x-to-1.in: Likewise.
29570 * check-module: Likewise.
29571 * config/srclistvars.sh: Likewise.
29572 * gnulib-tool: Likewise.
29573 * lib/acl-internal.h: Likewise.
29574 * lib/acl.c: Likewise.
29575 * lib/acl.h: Likewise.
29576 * lib/acl_entries.c: Likewise.
29577 * lib/areadlink-with-size.c: Likewise.
29578 * lib/areadlink.c: Likewise.
29579 * lib/areadlink.h: Likewise.
29580 * lib/argmatch.c: Likewise.
29581 * lib/argmatch.h: Likewise.
29582 * lib/argp-ba.c: Likewise.
29583 * lib/argp-eexst.c: Likewise.
29584 * lib/argp-fmtstream.c: Likewise.
29585 * lib/argp-fmtstream.h: Likewise.
29586 * lib/argp-fs-xinl.c: Likewise.
29587 * lib/argp-help.c: Likewise.
29588 * lib/argp-namefrob.h: Likewise.
29589 * lib/argp-parse.c: Likewise.
29590 * lib/argp-pin.c: Likewise.
29591 * lib/argp-pv.c: Likewise.
29592 * lib/argp-pvh.c: Likewise.
29593 * lib/argp-xinl.c: Likewise.
29594 * lib/argp.h: Likewise.
29595 * lib/at-func.c: Likewise.
29596 * lib/atanl.c: Likewise.
29597 * lib/backupfile.c: Likewise.
29598 * lib/backupfile.h: Likewise.
29599 * lib/basename.c: Likewise.
29600 * lib/binary-io.h: Likewise.
29601 * lib/byteswap.in.h: Likewise.
29602 * lib/c-stack.c: Likewise.
29603 * lib/c-stack.h: Likewise.
29604 * lib/c-strcasestr.c: Likewise.
29605 * lib/c-strcasestr.h: Likewise.
29606 * lib/c-strstr.c: Likewise.
29607 * lib/c-strstr.h: Likewise.
29608 * lib/c-strtod.c: Likewise.
29609 * lib/calloc.c: Likewise.
29610 * lib/canon-host.c: Likewise.
29611 * lib/canon-host.h: Likewise.
29612 * lib/canonicalize-lgpl.c: Likewise.
29613 * lib/canonicalize.c: Likewise.
29614 * lib/canonicalize.h: Likewise.
29615 * lib/ceil.c: Likewise.
29616 * lib/ceilf.c: Likewise.
29617 * lib/ceill.c: Likewise.
29618 * lib/chdir-long.c: Likewise.
29619 * lib/chdir-long.h: Likewise.
29620 * lib/chdir-safer.c: Likewise.
29621 * lib/chdir-safer.h: Likewise.
29622 * lib/chown.c: Likewise.
29623 * lib/classpath.c: Likewise.
29624 * lib/classpath.h: Likewise.
29625 * lib/clean-temp.c: Likewise.
29626 * lib/clean-temp.h: Likewise.
29627 * lib/cloexec.c: Likewise.
29628 * lib/close-stream.c: Likewise.
29629 * lib/closein.c: Likewise.
29630 * lib/closein.h: Likewise.
29631 * lib/closeout.c: Likewise.
29632 * lib/closeout.h: Likewise.
29633 * lib/concat-filename.c: Likewise.
29634 * lib/copy-file.c: Likewise.
29635 * lib/copy-file.h: Likewise.
29636 * lib/count-one-bits.h: Likewise.
29637 * lib/crc.c: Likewise.
29638 * lib/crc.h: Likewise.
29639 * lib/creat-safer.c: Likewise.
29640 * lib/csharpcomp.c: Likewise.
29641 * lib/csharpcomp.h: Likewise.
29642 * lib/csharpexec.c: Likewise.
29643 * lib/csharpexec.h: Likewise.
29644 * lib/cycle-check.c: Likewise.
29645 * lib/cycle-check.h: Likewise.
29646 * lib/diacrit.c: Likewise.
29647 * lib/diacrit.h: Likewise.
29648 * lib/diffseq.h: Likewise.
29649 * lib/dirchownmod.c: Likewise.
29650 * lib/dirent.in.h: Likewise.
29651 * lib/dirfd.c: Likewise.
29652 * lib/dirfd.h: Likewise.
29653 * lib/dirname.c: Likewise.
29654 * lib/dirname.h: Likewise.
29655 * lib/dummy.c: Likewise.
29656 * lib/dup-safer.c: Likewise.
29657 * lib/dup2.c: Likewise.
29658 * lib/eealloc.h: Likewise.
29659 * lib/error.c: Likewise.
29660 * lib/error.h: Likewise.
29661 * lib/euidaccess.c: Likewise.
29662 * lib/exclude.c: Likewise.
29663 * lib/exclude.h: Likewise.
29664 * lib/execute.c: Likewise.
29665 * lib/execute.h: Likewise.
29666 * lib/exitfail.c: Likewise.
29667 * lib/exitfail.h: Likewise.
29668 * lib/expl.c: Likewise.
29669 * lib/fatal-signal.c: Likewise.
29670 * lib/fatal-signal.h: Likewise.
29671 * lib/fbufmode.c: Likewise.
29672 * lib/fbufmode.h: Likewise.
29673 * lib/fchdir.c: Likewise.
29674 * lib/fchmodat.c: Likewise.
29675 * lib/fchownat.c: Likewise.
29676 * lib/fcntl--.h: Likewise.
29677 * lib/fcntl-safer.h: Likewise.
29678 * lib/fcntl.in.h: Likewise.
29679 * lib/fd-safer.c: Likewise.
29680 * lib/fflush.c: Likewise.
29681 * lib/file-has-acl.c: Likewise.
29682 * lib/file-set.c: Likewise.
29683 * lib/file-type.c: Likewise.
29684 * lib/file-type.h: Likewise.
29685 * lib/fileblocks.c: Likewise.
29686 * lib/filemode.c: Likewise.
29687 * lib/filemode.h: Likewise.
29688 * lib/filename.h: Likewise.
29689 * lib/filenamecat.c: Likewise.
29690 * lib/filenamecat.h: Likewise.
29691 * lib/findprog.c: Likewise.
29692 * lib/findprog.h: Likewise.
29693 * lib/float.in.h: Likewise.
29694 * lib/floor.c: Likewise.
29695 * lib/floorf.c: Likewise.
29696 * lib/floorl.c: Likewise.
29697 * lib/fopen-safer.c: Likewise.
29698 * lib/fopen.c: Likewise.
29699 * lib/fpending.c: Likewise.
29700 * lib/fpending.h: Likewise.
29701 * lib/fprintf.c: Likewise.
29702 * lib/fprintftime.h: Likewise.
29703 * lib/fpucw.h: Likewise.
29704 * lib/fpurge.c: Likewise.
29705 * lib/fpurge.h: Likewise.
29706 * lib/freadable.c: Likewise.
29707 * lib/freadable.h: Likewise.
29708 * lib/freadahead.c: Likewise.
29709 * lib/freadahead.h: Likewise.
29710 * lib/freading.c: Likewise.
29711 * lib/freading.h: Likewise.
29712 * lib/free.c: Likewise.
29713 * lib/freopen.c: Likewise.
29714 * lib/frexp.c: Likewise.
29715 * lib/frexpl.c: Likewise.
29716 * lib/fseek.c: Likewise.
29717 * lib/fseterr.c: Likewise.
29718 * lib/fseterr.h: Likewise.
29719 * lib/fstatat.c: Likewise.
29720 * lib/fstrcmp.c: Likewise.
29721 * lib/fstrcmp.h: Likewise.
29722 * lib/fsusage.c: Likewise.
29723 * lib/fsusage.h: Likewise.
29724 * lib/ftell.c: Likewise.
29725 * lib/ftello.c: Likewise.
29726 * lib/fts-cycle.c: Likewise.
29727 * lib/fts.c: Likewise.
29728 * lib/fts_.h: Likewise.
29729 * lib/full-read.c: Likewise.
29730 * lib/full-read.h: Likewise.
29731 * lib/full-write.c: Likewise.
29732 * lib/full-write.h: Likewise.
29733 * lib/fwritable.c: Likewise.
29734 * lib/fwritable.h: Likewise.
29735 * lib/fwriteerror.c: Likewise.
29736 * lib/fwriteerror.h: Likewise.
29737 * lib/fwriting.c: Likewise.
29738 * lib/fwriting.h: Likewise.
29739 * lib/gcd.c: Likewise.
29740 * lib/gcd.h: Likewise.
29741 * lib/getcwd.c: Likewise.
29742 * lib/getdate.h: Likewise.
29743 * lib/getdate.y: Likewise.
29744 * lib/getdomainname.c: Likewise.
29745 * lib/getdomainname.h: Likewise.
29746 * lib/getgroups.c: Likewise.
29747 * lib/gethostname.c: Likewise.
29748 * lib/gethrxtime.c: Likewise.
29749 * lib/gethrxtime.h: Likewise.
29750 * lib/getloadavg.c: Likewise.
29751 * lib/getndelim2.c: Likewise.
29752 * lib/getndelim2.h: Likewise.
29753 * lib/getnline.c: Likewise.
29754 * lib/getnline.h: Likewise.
29755 * lib/getopt.c: Likewise.
29756 * lib/getopt.in.h: Likewise.
29757 * lib/getopt1.c: Likewise.
29758 * lib/getopt_int.h: Likewise.
29759 * lib/getpagesize.h: Likewise.
29760 * lib/getsubopt.c: Likewise.
29761 * lib/gettime.c: Likewise.
29762 * lib/getugroups.c: Likewise.
29763 * lib/getugroups.h: Likewise.
29764 * lib/getusershell.c: Likewise.
29765 * lib/gl_anyavltree_list1.h: Likewise.
29766 * lib/gl_anyavltree_list2.h: Likewise.
29767 * lib/gl_anyhash_list1.h: Likewise.
29768 * lib/gl_anyhash_list2.h: Likewise.
29769 * lib/gl_anylinked_list1.h: Likewise.
29770 * lib/gl_anylinked_list2.h: Likewise.
29771 * lib/gl_anyrbtree_list1.h: Likewise.
29772 * lib/gl_anyrbtree_list2.h: Likewise.
29773 * lib/gl_anytree_list1.h: Likewise.
29774 * lib/gl_anytree_list2.h: Likewise.
29775 * lib/gl_anytree_oset.h: Likewise.
29776 * lib/gl_anytreehash_list1.h: Likewise.
29777 * lib/gl_anytreehash_list2.h: Likewise.
29778 * lib/gl_array_list.c: Likewise.
29779 * lib/gl_array_list.h: Likewise.
29780 * lib/gl_array_oset.c: Likewise.
29781 * lib/gl_array_oset.h: Likewise.
29782 * lib/gl_avltree_list.c: Likewise.
29783 * lib/gl_avltree_list.h: Likewise.
29784 * lib/gl_avltree_oset.c: Likewise.
29785 * lib/gl_avltree_oset.h: Likewise.
29786 * lib/gl_avltreehash_list.c: Likewise.
29787 * lib/gl_avltreehash_list.h: Likewise.
29788 * lib/gl_carray_list.c: Likewise.
29789 * lib/gl_carray_list.h: Likewise.
29790 * lib/gl_linked_list.c: Likewise.
29791 * lib/gl_linked_list.h: Likewise.
29792 * lib/gl_linkedhash_list.c: Likewise.
29793 * lib/gl_linkedhash_list.h: Likewise.
29794 * lib/gl_list.c: Likewise.
29795 * lib/gl_list.h: Likewise.
29796 * lib/gl_oset.c: Likewise.
29797 * lib/gl_oset.h: Likewise.
29798 * lib/gl_rbtree_list.c: Likewise.
29799 * lib/gl_rbtree_list.h: Likewise.
29800 * lib/gl_rbtree_oset.c: Likewise.
29801 * lib/gl_rbtree_oset.h: Likewise.
29802 * lib/gl_rbtreehash_list.c: Likewise.
29803 * lib/gl_rbtreehash_list.h: Likewise.
29804 * lib/gl_sublist.c: Likewise.
29805 * lib/gl_sublist.h: Likewise.
29806 * lib/group-member.c: Likewise.
29807 * lib/group-member.h: Likewise.
29808 * lib/hard-locale.c: Likewise.
29809 * lib/hard-locale.h: Likewise.
29810 * lib/hash-pjw.c: Likewise.
29811 * lib/hash-pjw.h: Likewise.
29812 * lib/hash-triple.c: Likewise.
29813 * lib/hash.c: Likewise.
29814 * lib/hash.h: Likewise.
29815 * lib/human.c: Likewise.
29816 * lib/human.h: Likewise.
29817 * lib/i-ring.c: Likewise.
29818 * lib/i-ring.h: Likewise.
29819 * lib/idcache.c: Likewise.
29820 * lib/imaxabs.c: Likewise.
29821 * lib/imaxdiv.c: Likewise.
29822 * lib/inet_pton.c: Likewise.
29823 * lib/inet_pton.h: Likewise.
29824 * lib/intprops.h: Likewise.
29825 * lib/inttostr.c: Likewise.
29826 * lib/inttostr.h: Likewise.
29827 * lib/inttypes.in.h: Likewise.
29828 * lib/isapipe.c: Likewise.
29829 * lib/isdir.c: Likewise.
29830 * lib/isnan.c: Likewise.
29831 * lib/isnan.h: Likewise.
29832 * lib/isnanf.c: Likewise.
29833 * lib/isnanf.h: Likewise.
29834 * lib/isnanl-nolibm.h: Likewise.
29835 * lib/isnanl.c: Likewise.
29836 * lib/isnanl.h: Likewise.
29837 * lib/javacomp.c: Likewise.
29838 * lib/javacomp.h: Likewise.
29839 * lib/javaexec.c: Likewise.
29840 * lib/javaexec.h: Likewise.
29841 * lib/javaversion.c: Likewise.
29842 * lib/javaversion.h: Likewise.
29843 * lib/javaversion.java: Likewise.
29844 * lib/lbrkprop.h: Likewise.
29845 * lib/lchmod.h: Likewise.
29846 * lib/lchown.c: Likewise.
29847 * lib/ldexpl.c: Likewise.
29848 * lib/linebreak.c: Likewise.
29849 * lib/linebreak.h: Likewise.
29850 * lib/linebuffer.c: Likewise.
29851 * lib/linebuffer.h: Likewise.
29852 * lib/locale.in.h: Likewise.
29853 * lib/logl.c: Likewise.
29854 * lib/long-options.c: Likewise.
29855 * lib/long-options.h: Likewise.
29856 * lib/lstat.c: Likewise.
29857 * lib/lstat.h: Likewise.
29858 * lib/math.in.h: Likewise.
29859 * lib/mbchar.c: Likewise.
29860 * lib/mbchar.h: Likewise.
29861 * lib/mbfile.h: Likewise.
29862 * lib/mbiter.h: Likewise.
29863 * lib/mbscasecmp.c: Likewise.
29864 * lib/mbscasestr.c: Likewise.
29865 * lib/mbschr.c: Likewise.
29866 * lib/mbscspn.c: Likewise.
29867 * lib/mbslen.c: Likewise.
29868 * lib/mbsncasecmp.c: Likewise.
29869 * lib/mbsnlen.c: Likewise.
29870 * lib/mbspbrk.c: Likewise.
29871 * lib/mbspcasecmp.c: Likewise.
29872 * lib/mbsrchr.c: Likewise.
29873 * lib/mbssep.c: Likewise.
29874 * lib/mbsspn.c: Likewise.
29875 * lib/mbsstr.c: Likewise.
29876 * lib/mbstok_r.c: Likewise.
29877 * lib/mbswidth.c: Likewise.
29878 * lib/mbswidth.h: Likewise.
29879 * lib/mbuiter.h: Likewise.
29880 * lib/memcasecmp.c: Likewise.
29881 * lib/memcasecmp.h: Likewise.
29882 * lib/memchr.c: Likewise.
29883 * lib/memcmp.c: Likewise.
29884 * lib/memcoll.c: Likewise.
29885 * lib/memcoll.h: Likewise.
29886 * lib/memcpy.c: Likewise.
29887 * lib/memrchr.c: Likewise.
29888 * lib/mkancesdirs.c: Likewise.
29889 * lib/mkdir-p.c: Likewise.
29890 * lib/mkdir-p.h: Likewise.
29891 * lib/mkdir.c: Likewise.
29892 * lib/mkdirat.c: Likewise.
29893 * lib/mkdtemp.c: Likewise.
29894 * lib/mkstemp-safer.c: Likewise.
29895 * lib/mkstemp.c: Likewise.
29896 * lib/modechange.c: Likewise.
29897 * lib/modechange.h: Likewise.
29898 * lib/mountlist.c: Likewise.
29899 * lib/mountlist.h: Likewise.
29900 * lib/mpsort.c: Likewise.
29901 * lib/nanosleep.c: Likewise.
29902 * lib/obstack.c: Likewise.
29903 * lib/obstack.h: Likewise.
29904 * lib/open-safer.c: Likewise.
29905 * lib/open.c: Likewise.
29906 * lib/openat-die.c: Likewise.
29907 * lib/openat-priv.h: Likewise.
29908 * lib/openat-proc.c: Likewise.
29909 * lib/openat.c: Likewise.
29910 * lib/openat.h: Likewise.
29911 * lib/pagealign_alloc.c: Likewise.
29912 * lib/pagealign_alloc.h: Likewise.
29913 * lib/physmem.c: Likewise.
29914 * lib/physmem.h: Likewise.
29915 * lib/pipe-safer.c: Likewise.
29916 * lib/pipe.c: Likewise.
29917 * lib/pipe.h: Likewise.
29918 * lib/posixtm.c: Likewise.
29919 * lib/posixtm.h: Likewise.
29920 * lib/posixver.c: Likewise.
29921 * lib/printf-frexp.c: Likewise.
29922 * lib/printf-frexp.h: Likewise.
29923 * lib/printf-frexpl.c: Likewise.
29924 * lib/printf-frexpl.h: Likewise.
29925 * lib/printf.c: Likewise.
29926 * lib/progname.c: Likewise.
29927 * lib/progname.h: Likewise.
29928 * lib/progreloc.c: Likewise.
29929 * lib/putenv.c: Likewise.
29930 * lib/quote.c: Likewise.
29931 * lib/quote.h: Likewise.
29932 * lib/quotearg.c: Likewise.
29933 * lib/quotearg.h: Likewise.
29934 * lib/raise.c: Likewise.
29935 * lib/readline.c: Likewise.
29936 * lib/readline.h: Likewise.
29937 * lib/readlink.c: Likewise.
29938 * lib/readtokens.c: Likewise.
29939 * lib/readtokens.h: Likewise.
29940 * lib/readtokens0.c: Likewise.
29941 * lib/readtokens0.h: Likewise.
29942 * lib/readutmp.c: Likewise.
29943 * lib/readutmp.h: Likewise.
29944 * lib/realloc.c: Likewise.
29945 * lib/relocwrapper.c: Likewise.
29946 * lib/rename-dest-slash.c: Likewise.
29947 * lib/rename.c: Likewise.
29948 * lib/rmdir.c: Likewise.
29949 * lib/rpmatch.c: Likewise.
29950 * lib/safe-read.c: Likewise.
29951 * lib/safe-read.h: Likewise.
29952 * lib/safe-write.c: Likewise.
29953 * lib/safe-write.h: Likewise.
29954 * lib/same-inode.h: Likewise.
29955 * lib/same.c: Likewise.
29956 * lib/same.h: Likewise.
29957 * lib/save-cwd.c: Likewise.
29958 * lib/save-cwd.h: Likewise.
29959 * lib/savedir.c: Likewise.
29960 * lib/savedir.h: Likewise.
29961 * lib/savewd.c: Likewise.
29962 * lib/savewd.h: Likewise.
29963 * lib/search.in.h: Likewise.
29964 * lib/setenv.c: Likewise.
29965 * lib/setenv.h: Likewise.
29966 * lib/settime.c: Likewise.
29967 * lib/sh-quote.c: Likewise.
29968 * lib/sh-quote.h: Likewise.
29969 * lib/sig2str.c: Likewise.
29970 * lib/sig2str.h: Likewise.
29971 * lib/signal.in.h: Likewise.
29972 * lib/signbitd.c: Likewise.
29973 * lib/signbitf.c: Likewise.
29974 * lib/signbitl.c: Likewise.
29975 * lib/sigprocmask.c: Likewise.
29976 * lib/sincosl.c: Likewise.
29977 * lib/sleep.c: Likewise.
29978 * lib/sprintf.c: Likewise.
29979 * lib/sqrtl.c: Likewise.
29980 * lib/stat-time.h: Likewise.
29981 * lib/stdio--.h: Likewise.
29982 * lib/stdio-safer.h: Likewise.
29983 * lib/stdlib--.h: Likewise.
29984 * lib/stdlib-safer.h: Likewise.
29985 * lib/stdlib.in.h: Likewise.
29986 * lib/stpcpy.c: Likewise.
29987 * lib/stpncpy.c: Likewise.
29988 * lib/strchrnul.c: Likewise.
29989 * lib/strcspn.c: Likewise.
29990 * lib/strerror.c: Likewise.
29991 * lib/strftime.c: Likewise.
29992 * lib/strftime.h: Likewise.
29993 * lib/striconveh.c: Likewise.
29994 * lib/striconveh.h: Likewise.
29995 * lib/striconveha.c: Likewise.
29996 * lib/striconveha.h: Likewise.
29997 * lib/stripslash.c: Likewise.
29998 * lib/strnlen1.c: Likewise.
29999 * lib/strnlen1.h: Likewise.
30000 * lib/strtod.c: Likewise.
30001 * lib/strtoimax.c: Likewise.
30002 * lib/strtok_r.c: Likewise.
30003 * lib/strtol.c: Likewise.
30004 * lib/strtoll.c: Likewise.
30005 * lib/strtoul.c: Likewise.
30006 * lib/strtoull.c: Likewise.
30007 * lib/sysexits.in.h: Likewise.
30008 * lib/tempname.c: Likewise.
30009 * lib/tempname.h: Likewise.
30010 * lib/timespec.h: Likewise.
30011 * lib/tls.c: Likewise.
30012 * lib/tls.h: Likewise.
30013 * lib/tmpdir.c: Likewise.
30014 * lib/tmpdir.h: Likewise.
30015 * lib/tmpfile-safer.c: Likewise.
30016 * lib/tmpfile.c: Likewise.
30017 * lib/trigl.c: Likewise.
30018 * lib/trigl.h: Likewise.
30019 * lib/trim.c: Likewise.
30020 * lib/trim.h: Likewise.
30021 * lib/trunc.c: Likewise.
30022 * lib/truncf.c: Likewise.
30023 * lib/truncl.c: Likewise.
30024 * lib/tsearch.c: Likewise.
30025 * lib/unicodeio.c: Likewise.
30026 * lib/unicodeio.h: Likewise.
30027 * lib/unistd--.h: Likewise.
30028 * lib/unistd-safer.h: Likewise.
30029 * lib/unistdio/ulc-fprintf.c: Likewise.
30030 * lib/unistdio/ulc-vfprintf.c: Likewise.
30031 * lib/unlinkdir.c: Likewise.
30032 * lib/unlinkdir.h: Likewise.
30033 * lib/unlocked-io.h: Likewise.
30034 * lib/unsetenv.c: Likewise.
30035 * lib/userspec.c: Likewise.
30036 * lib/utime.c: Likewise.
30037 * lib/utimecmp.c: Likewise.
30038 * lib/utimecmp.h: Likewise.
30039 * lib/utimens.c: Likewise.
30040 * lib/verify.h: Likewise.
30041 * lib/verror.c: Likewise.
30042 * lib/verror.h: Likewise.
30043 * lib/version-etc-fsf.c: Likewise.
30044 * lib/version-etc.c: Likewise.
30045 * lib/version-etc.h: Likewise.
30046 * lib/vfprintf.c: Likewise.
30047 * lib/vprintf.c: Likewise.
30048 * lib/vsprintf.c: Likewise.
30049 * lib/w32spawn.h: Likewise.
30050 * lib/wait-process.c: Likewise.
30051 * lib/wait-process.h: Likewise.
30052 * lib/wcwidth.c: Likewise.
30053 * lib/write-any-file.c: Likewise.
30054 * lib/xalloc-die.c: Likewise.
30055 * lib/xalloc.h: Likewise.
30056 * lib/xasprintf.c: Likewise.
30057 * lib/xgetcwd.c: Likewise.
30058 * lib/xgetcwd.h: Likewise.
30059 * lib/xgetdomainname.c: Likewise.
30060 * lib/xgetdomainname.h: Likewise.
30061 * lib/xgethostname.c: Likewise.
30062 * lib/xmalloc.c: Likewise.
30063 * lib/xmalloca.c: Likewise.
30064 * lib/xmalloca.h: Likewise.
30065 * lib/xmemcoll.c: Likewise.
30066 * lib/xnanosleep.c: Likewise.
30067 * lib/xreadlink.c: Likewise.
30068 * lib/xreadlink.h: Likewise.
30069 * lib/xsetenv.c: Likewise.
30070 * lib/xsetenv.h: Likewise.
30071 * lib/xstriconv.c: Likewise.
30072 * lib/xstriconv.h: Likewise.
30073 * lib/xstrndup.c: Likewise.
30074 * lib/xstrndup.h: Likewise.
30075 * lib/xstrtod.c: Likewise.
30076 * lib/xstrtod.h: Likewise.
30077 * lib/xstrtol-error.c: Likewise.
30078 * lib/xstrtol.c: Likewise.
30079 * lib/xstrtol.h: Likewise.
30080 * lib/xtime.h: Likewise.
30081 * lib/xvasprintf.c: Likewise.
30082 * lib/xvasprintf.h: Likewise.
30083 * lib/yesno.c: Likewise.
30084 * lib/yesno.h: Likewise.
30085 * posix-modules: Likewise.
30086 * tests/test-alloca-opt.c: Likewise.
30087 * tests/test-arcfour.c: Likewise.
30088 * tests/test-arctwo.c: Likewise.
30089 * tests/test-argmatch.c: Likewise.
30090 * tests/test-argp-2.sh: Likewise.
30091 * tests/test-argp.c: Likewise.
30092 * tests/test-arpa_inet.c: Likewise.
30093 * tests/test-array_list.c: Likewise.
30094 * tests/test-array_oset.c: Likewise.
30095 * tests/test-atexit.c: Likewise.
30096 * tests/test-avltree_list.c: Likewise.
30097 * tests/test-avltree_oset.c: Likewise.
30098 * tests/test-avltreehash_list.c: Likewise.
30099 * tests/test-base64.c: Likewise.
30100 * tests/test-binary-io.c: Likewise.
30101 * tests/test-byteswap.c: Likewise.
30102 * tests/test-c-ctype.c: Likewise.
30103 * tests/test-c-strcasecmp.c: Likewise.
30104 * tests/test-c-strcasestr.c: Likewise.
30105 * tests/test-c-strncasecmp.c: Likewise.
30106 * tests/test-c-strstr.c: Likewise.
30107 * tests/test-canonicalize-lgpl.c: Likewise.
30108 * tests/test-canonicalize.c: Likewise.
30109 * tests/test-carray_list.c: Likewise.
30110 * tests/test-ceilf.c: Likewise.
30111 * tests/test-ceill.c: Likewise.
30112 * tests/test-count-one-bits.c: Likewise.
30113 * tests/test-crc.c: Likewise.
30114 * tests/test-dirname.c: Likewise.
30115 * tests/test-fbufmode.c: Likewise.
30116 * tests/test-fcntl.c: Likewise.
30117 * tests/test-fflush.c: Likewise.
30118 * tests/test-floorf.c: Likewise.
30119 * tests/test-floorl.c: Likewise.
30120 * tests/test-fopen.c: Likewise.
30121 * tests/test-fprintf-posix.c: Likewise.
30122 * tests/test-fprintf-posix.h: Likewise.
30123 * tests/test-fpurge.c: Likewise.
30124 * tests/test-freadable.c: Likewise.
30125 * tests/test-freadahead.c: Likewise.
30126 * tests/test-freading.c: Likewise.
30127 * tests/test-freopen.c: Likewise.
30128 * tests/test-frexp.c: Likewise.
30129 * tests/test-frexpl.c: Likewise.
30130 * tests/test-fseek.c: Likewise.
30131 * tests/test-fseeko.c: Likewise.
30132 * tests/test-fseterr.c: Likewise.
30133 * tests/test-fstrcmp.c: Likewise.
30134 * tests/test-ftell.c: Likewise.
30135 * tests/test-ftello.c: Likewise.
30136 * tests/test-fwritable.c: Likewise.
30137 * tests/test-fwriting.c: Likewise.
30138 * tests/test-getaddrinfo.c: Likewise.
30139 * tests/test-getpass.c: Likewise.
30140 * tests/test-gettimeofday.c: Likewise.
30141 * tests/test-hmac-md5.c: Likewise.
30142 * tests/test-hmac-sha1.c: Likewise.
30143 * tests/test-iconv.c: Likewise.
30144 * tests/test-iconvme.c: Likewise.
30145 * tests/test-inttypes.c: Likewise.
30146 * tests/test-isnan.c: Likewise.
30147 * tests/test-isnanf.c: Likewise.
30148 * tests/test-isnanl-nolibm.c: Likewise.
30149 * tests/test-isnanl.c: Likewise.
30150 * tests/test-isnanl.h: Likewise.
30151 * tests/test-ldexpl.c: Likewise.
30152 * tests/test-linked_list.c: Likewise.
30153 * tests/test-linkedhash_list.c: Likewise.
30154 * tests/test-locale.c: Likewise.
30155 * tests/test-localename.c: Likewise.
30156 * tests/test-lock.c: Likewise.
30157 * tests/test-lseek.c: Likewise.
30158 * tests/test-malloca.c: Likewise.
30159 * tests/test-math.c: Likewise.
30160 * tests/test-mbscasecmp.c: Likewise.
30161 * tests/test-mbscasestr1.c: Likewise.
30162 * tests/test-mbscasestr2.c: Likewise.
30163 * tests/test-mbscasestr3.c: Likewise.
30164 * tests/test-mbscasestr4.c: Likewise.
30165 * tests/test-mbschr.c: Likewise.
30166 * tests/test-mbscspn.c: Likewise.
30167 * tests/test-mbsncasecmp.c: Likewise.
30168 * tests/test-mbspbrk.c: Likewise.
30169 * tests/test-mbspcasecmp.c: Likewise.
30170 * tests/test-mbsrchr.c: Likewise.
30171 * tests/test-mbsspn.c: Likewise.
30172 * tests/test-mbsstr1.c: Likewise.
30173 * tests/test-mbsstr2.c: Likewise.
30174 * tests/test-mbsstr3.c: Likewise.
30175 * tests/test-md5.c: Likewise.
30176 * tests/test-memmem.c: Likewise.
30177 * tests/test-netinet_in.c: Likewise.
30178 * tests/test-open.c: Likewise.
30179 * tests/test-printf-frexp.c: Likewise.
30180 * tests/test-printf-frexpl.c: Likewise.
30181 * tests/test-printf-posix.c: Likewise.
30182 * tests/test-printf-posix.h: Likewise.
30183 * tests/test-rbtree_list.c: Likewise.
30184 * tests/test-rbtree_oset.c: Likewise.
30185 * tests/test-rbtreehash_list.c: Likewise.
30186 * tests/test-read-file.c: Likewise.
30187 * tests/test-rijndael.c: Likewise.
30188 * tests/test-search.c: Likewise.
30189 * tests/test-signbit.c: Likewise.
30190 * tests/test-sleep.c: Likewise.
30191 * tests/test-snprintf-posix.c: Likewise.
30192 * tests/test-snprintf-posix.h: Likewise.
30193 * tests/test-snprintf.c: Likewise.
30194 * tests/test-sprintf-posix.c: Likewise.
30195 * tests/test-sprintf-posix.h: Likewise.
30196 * tests/test-stat-time.c: Likewise.
30197 * tests/test-stdbool.c: Likewise.
30198 * tests/test-stdint.c: Likewise.
30199 * tests/test-stdio.c: Likewise.
30200 * tests/test-stdlib.c: Likewise.
30201 * tests/test-stpncpy.c: Likewise.
30202 * tests/test-strcasestr.c: Likewise.
30203 * tests/test-striconv.c: Likewise.
30204 * tests/test-striconveh.c: Likewise.
30205 * tests/test-striconveha.c: Likewise.
30206 * tests/test-string.c: Likewise.
30207 * tests/test-sys_select.c: Likewise.
30208 * tests/test-sys_socket.c: Likewise.
30209 * tests/test-sys_stat.c: Likewise.
30210 * tests/test-sys_time.c: Likewise.
30211 * tests/test-sysexits.c: Likewise.
30212 * tests/test-time.c: Likewise.
30213 * tests/test-tls.c: Likewise.
30214 * tests/test-trunc.c: Likewise.
30215 * tests/test-truncf.c: Likewise.
30216 * tests/test-truncl.c: Likewise.
30217 * tests/test-unistd.c: Likewise.
30218 * tests/test-vasnprintf-posix.c: Likewise.
30219 * tests/test-vasnprintf-posix2.c: Likewise.
30220 * tests/test-vasnprintf.c: Likewise.
30221 * tests/test-vasprintf-posix.c: Likewise.
30222 * tests/test-vasprintf.c: Likewise.
30223 * tests/test-verify.c: Likewise.
30224 * tests/test-vfprintf-posix.c: Likewise.
30225 * tests/test-vprintf-posix.c: Likewise.
30226 * tests/test-vsnprintf-posix.c: Likewise.
30227 * tests/test-vsnprintf.c: Likewise.
30228 * tests/test-vsprintf-posix.c: Likewise.
30229 * tests/test-wchar.c: Likewise.
30230 * tests/test-wctype.c: Likewise.
30231 * tests/test-wcwidth.c: Likewise.
30232 * tests/test-xstrtol.c: Likewise.
30233 * tests/test-xvasprintf.c: Likewise.
30234 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30235 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30236 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30237 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30238 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30239 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30240 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30241 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30242 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30243 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30244 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30245 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30246 * tests/uniname/test-uninames.c: Likewise.
30247 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30248 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30249 * tests/unistdio/test-u16-printf1.h: Likewise.
30250 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30251 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30252 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30253 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30254 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30255 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30256 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30257 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30258 * tests/unistdio/test-u32-printf1.h: Likewise.
30259 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30260 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30261 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30262 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30263 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30264 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30265 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30266 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30267 * tests/unistdio/test-u8-printf1.h: Likewise.
30268 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30269 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30270 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30271 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30272 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30273 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30274 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30275 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30276 * tests/unistdio/test-ulc-printf1.h: Likewise.
30277 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30278 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30279 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30280 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30281 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30282 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30283 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30284 * tests/uniwidth/test-u16-width.c: Likewise.
30285 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30286 * tests/uniwidth/test-u32-width.c: Likewise.
30287 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30288 * tests/uniwidth/test-u8-width.c: Likewise.
30289 * tests/uniwidth/test-uc_width.c: Likewise.
30290 * config/srclist-update: Likewise.
30291 (fixlicense): Update to GPLv3+.
30293 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30294 * tests/test-tsearch.c: Change copyright notice.
30296 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30297 * lib/c-strcaseeq.h: Change copyright notice.
30298 * lib/streq.h: Likewise.
30299 * lib/uniconv.h: Likewise.
30300 * lib/uniconv/u-conv-from-enc.h: Likewise.
30301 * lib/uniconv/u-conv-to-enc.h: Likewise.
30302 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30303 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30304 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30305 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30306 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30307 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30308 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30309 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30310 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30311 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30312 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30313 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30314 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30315 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30316 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30317 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30318 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30319 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30320 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30321 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30322 * lib/uniname.h: Likewise.
30323 * lib/uniname/uniname.c: Likewise.
30324 * lib/unistdio.h: Likewise.
30325 * lib/unistdio/u-asnprintf.h: Likewise.
30326 * lib/unistdio/u-asprintf.h: Likewise.
30327 * lib/unistdio/u-printf-args.c: Likewise.
30328 * lib/unistdio/u-printf-args.h: Likewise.
30329 * lib/unistdio/u-printf-parse.h: Likewise.
30330 * lib/unistdio/u-snprintf.h: Likewise.
30331 * lib/unistdio/u-sprintf.h: Likewise.
30332 * lib/unistdio/u-vasprintf.h: Likewise.
30333 * lib/unistdio/u-vsnprintf.h: Likewise.
30334 * lib/unistdio/u-vsprintf.h: Likewise.
30335 * lib/unistdio/u16-asnprintf.c: Likewise.
30336 * lib/unistdio/u16-asprintf.c: Likewise.
30337 * lib/unistdio/u16-printf-parse.c: Likewise.
30338 * lib/unistdio/u16-snprintf.c: Likewise.
30339 * lib/unistdio/u16-sprintf.c: Likewise.
30340 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30341 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30342 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30343 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30344 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30345 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30346 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30347 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30348 * lib/unistdio/u16-vasnprintf.c: Likewise.
30349 * lib/unistdio/u16-vasprintf.c: Likewise.
30350 * lib/unistdio/u16-vsnprintf.c: Likewise.
30351 * lib/unistdio/u16-vsprintf.c: Likewise.
30352 * lib/unistdio/u32-asnprintf.c: Likewise.
30353 * lib/unistdio/u32-asprintf.c: Likewise.
30354 * lib/unistdio/u32-printf-parse.c: Likewise.
30355 * lib/unistdio/u32-snprintf.c: Likewise.
30356 * lib/unistdio/u32-sprintf.c: Likewise.
30357 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30358 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30359 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30360 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30361 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30362 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30363 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30364 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30365 * lib/unistdio/u32-vasnprintf.c: Likewise.
30366 * lib/unistdio/u32-vasprintf.c: Likewise.
30367 * lib/unistdio/u32-vsnprintf.c: Likewise.
30368 * lib/unistdio/u32-vsprintf.c: Likewise.
30369 * lib/unistdio/u8-asnprintf.c: Likewise.
30370 * lib/unistdio/u8-asprintf.c: Likewise.
30371 * lib/unistdio/u8-printf-parse.c: Likewise.
30372 * lib/unistdio/u8-snprintf.c: Likewise.
30373 * lib/unistdio/u8-sprintf.c: Likewise.
30374 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30375 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30376 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30377 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30378 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30379 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30380 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30381 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30382 * lib/unistdio/u8-vasnprintf.c: Likewise.
30383 * lib/unistdio/u8-vasprintf.c: Likewise.
30384 * lib/unistdio/u8-vsnprintf.c: Likewise.
30385 * lib/unistdio/u8-vsprintf.c: Likewise.
30386 * lib/unistdio/ulc-asnprintf.c: Likewise.
30387 * lib/unistdio/ulc-asprintf.c: Likewise.
30388 * lib/unistdio/ulc-printf-parse.c: Likewise.
30389 * lib/unistdio/ulc-snprintf.c: Likewise.
30390 * lib/unistdio/ulc-sprintf.c: Likewise.
30391 * lib/unistdio/ulc-vasnprintf.c: Likewise.
30392 * lib/unistdio/ulc-vasprintf.c: Likewise.
30393 * lib/unistdio/ulc-vsnprintf.c: Likewise.
30394 * lib/unistdio/ulc-vsprintf.c: Likewise.
30395 * lib/unistr.h: Likewise.
30396 * lib/unistr/u-cpy-alloc.h: Likewise.
30397 * lib/unistr/u-cpy.h: Likewise.
30398 * lib/unistr/u-endswith.h: Likewise.
30399 * lib/unistr/u-move.h: Likewise.
30400 * lib/unistr/u-set.h: Likewise.
30401 * lib/unistr/u-startswith.h: Likewise.
30402 * lib/unistr/u-stpcpy.h: Likewise.
30403 * lib/unistr/u-stpncpy.h: Likewise.
30404 * lib/unistr/u-strcat.h: Likewise.
30405 * lib/unistr/u-strcpy.h: Likewise.
30406 * lib/unistr/u-strcspn.h: Likewise.
30407 * lib/unistr/u-strdup.h: Likewise.
30408 * lib/unistr/u-strlen.h: Likewise.
30409 * lib/unistr/u-strncat.h: Likewise.
30410 * lib/unistr/u-strncpy.h: Likewise.
30411 * lib/unistr/u-strnlen.h: Likewise.
30412 * lib/unistr/u-strpbrk.h: Likewise.
30413 * lib/unistr/u-strspn.h: Likewise.
30414 * lib/unistr/u-strstr.h: Likewise.
30415 * lib/unistr/u-strtok.h: Likewise.
30416 * lib/unistr/u16-check.c: Likewise.
30417 * lib/unistr/u16-chr.c: Likewise.
30418 * lib/unistr/u16-cmp.c: Likewise.
30419 * lib/unistr/u16-cpy-alloc.c: Likewise.
30420 * lib/unistr/u16-cpy.c: Likewise.
30421 * lib/unistr/u16-endswith.c: Likewise.
30422 * lib/unistr/u16-mblen.c: Likewise.
30423 * lib/unistr/u16-mbsnlen.c: Likewise.
30424 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30425 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30426 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30427 * lib/unistr/u16-mbtouc.c: Likewise.
30428 * lib/unistr/u16-mbtoucr.c: Likewise.
30429 * lib/unistr/u16-move.c: Likewise.
30430 * lib/unistr/u16-next.c: Likewise.
30431 * lib/unistr/u16-prev.c: Likewise.
30432 * lib/unistr/u16-set.c: Likewise.
30433 * lib/unistr/u16-startswith.c: Likewise.
30434 * lib/unistr/u16-stpcpy.c: Likewise.
30435 * lib/unistr/u16-stpncpy.c: Likewise.
30436 * lib/unistr/u16-strcat.c: Likewise.
30437 * lib/unistr/u16-strchr.c: Likewise.
30438 * lib/unistr/u16-strcmp.c: Likewise.
30439 * lib/unistr/u16-strcpy.c: Likewise.
30440 * lib/unistr/u16-strcspn.c: Likewise.
30441 * lib/unistr/u16-strdup.c: Likewise.
30442 * lib/unistr/u16-strlen.c: Likewise.
30443 * lib/unistr/u16-strmblen.c: Likewise.
30444 * lib/unistr/u16-strmbtouc.c: Likewise.
30445 * lib/unistr/u16-strncat.c: Likewise.
30446 * lib/unistr/u16-strncmp.c: Likewise.
30447 * lib/unistr/u16-strncpy.c: Likewise.
30448 * lib/unistr/u16-strnlen.c: Likewise.
30449 * lib/unistr/u16-strpbrk.c: Likewise.
30450 * lib/unistr/u16-strrchr.c: Likewise.
30451 * lib/unistr/u16-strspn.c: Likewise.
30452 * lib/unistr/u16-strstr.c: Likewise.
30453 * lib/unistr/u16-strtok.c: Likewise.
30454 * lib/unistr/u16-to-u32.c: Likewise.
30455 * lib/unistr/u16-to-u8.c: Likewise.
30456 * lib/unistr/u16-uctomb-aux.c: Likewise.
30457 * lib/unistr/u16-uctomb.c: Likewise.
30458 * lib/unistr/u32-check.c: Likewise.
30459 * lib/unistr/u32-chr.c: Likewise.
30460 * lib/unistr/u32-cmp.c: Likewise.
30461 * lib/unistr/u32-cpy-alloc.c: Likewise.
30462 * lib/unistr/u32-cpy.c: Likewise.
30463 * lib/unistr/u32-endswith.c: Likewise.
30464 * lib/unistr/u32-mblen.c: Likewise.
30465 * lib/unistr/u32-mbsnlen.c: Likewise.
30466 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30467 * lib/unistr/u32-mbtouc.c: Likewise.
30468 * lib/unistr/u32-mbtoucr.c: Likewise.
30469 * lib/unistr/u32-move.c: Likewise.
30470 * lib/unistr/u32-next.c: Likewise.
30471 * lib/unistr/u32-prev.c: Likewise.
30472 * lib/unistr/u32-set.c: Likewise.
30473 * lib/unistr/u32-startswith.c: Likewise.
30474 * lib/unistr/u32-stpcpy.c: Likewise.
30475 * lib/unistr/u32-stpncpy.c: Likewise.
30476 * lib/unistr/u32-strcat.c: Likewise.
30477 * lib/unistr/u32-strchr.c: Likewise.
30478 * lib/unistr/u32-strcmp.c: Likewise.
30479 * lib/unistr/u32-strcpy.c: Likewise.
30480 * lib/unistr/u32-strcspn.c: Likewise.
30481 * lib/unistr/u32-strdup.c: Likewise.
30482 * lib/unistr/u32-strlen.c: Likewise.
30483 * lib/unistr/u32-strmblen.c: Likewise.
30484 * lib/unistr/u32-strmbtouc.c: Likewise.
30485 * lib/unistr/u32-strncat.c: Likewise.
30486 * lib/unistr/u32-strncmp.c: Likewise.
30487 * lib/unistr/u32-strncpy.c: Likewise.
30488 * lib/unistr/u32-strnlen.c: Likewise.
30489 * lib/unistr/u32-strpbrk.c: Likewise.
30490 * lib/unistr/u32-strrchr.c: Likewise.
30491 * lib/unistr/u32-strspn.c: Likewise.
30492 * lib/unistr/u32-strstr.c: Likewise.
30493 * lib/unistr/u32-strtok.c: Likewise.
30494 * lib/unistr/u32-to-u16.c: Likewise.
30495 * lib/unistr/u32-to-u8.c: Likewise.
30496 * lib/unistr/u32-uctomb.c: Likewise.
30497 * lib/unistr/u8-check.c: Likewise.
30498 * lib/unistr/u8-chr.c: Likewise.
30499 * lib/unistr/u8-cmp.c: Likewise.
30500 * lib/unistr/u8-cpy-alloc.c: Likewise.
30501 * lib/unistr/u8-cpy.c: Likewise.
30502 * lib/unistr/u8-endswith.c: Likewise.
30503 * lib/unistr/u8-mblen.c: Likewise.
30504 * lib/unistr/u8-mbsnlen.c: Likewise.
30505 * lib/unistr/u8-mbtouc-aux.c: Likewise.
30506 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30507 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30508 * lib/unistr/u8-mbtouc.c: Likewise.
30509 * lib/unistr/u8-mbtoucr.c: Likewise.
30510 * lib/unistr/u8-move.c: Likewise.
30511 * lib/unistr/u8-next.c: Likewise.
30512 * lib/unistr/u8-prev.c: Likewise.
30513 * lib/unistr/u8-set.c: Likewise.
30514 * lib/unistr/u8-startswith.c: Likewise.
30515 * lib/unistr/u8-stpcpy.c: Likewise.
30516 * lib/unistr/u8-stpncpy.c: Likewise.
30517 * lib/unistr/u8-strcat.c: Likewise.
30518 * lib/unistr/u8-strchr.c: Likewise.
30519 * lib/unistr/u8-strcmp.c: Likewise.
30520 * lib/unistr/u8-strcpy.c: Likewise.
30521 * lib/unistr/u8-strcspn.c: Likewise.
30522 * lib/unistr/u8-strdup.c: Likewise.
30523 * lib/unistr/u8-strlen.c: Likewise.
30524 * lib/unistr/u8-strmblen.c: Likewise.
30525 * lib/unistr/u8-strmbtouc.c: Likewise.
30526 * lib/unistr/u8-strncat.c: Likewise.
30527 * lib/unistr/u8-strncmp.c: Likewise.
30528 * lib/unistr/u8-strncpy.c: Likewise.
30529 * lib/unistr/u8-strnlen.c: Likewise.
30530 * lib/unistr/u8-strpbrk.c: Likewise.
30531 * lib/unistr/u8-strrchr.c: Likewise.
30532 * lib/unistr/u8-strspn.c: Likewise.
30533 * lib/unistr/u8-strstr.c: Likewise.
30534 * lib/unistr/u8-strtok.c: Likewise.
30535 * lib/unistr/u8-to-u16.c: Likewise.
30536 * lib/unistr/u8-to-u32.c: Likewise.
30537 * lib/unistr/u8-uctomb-aux.c: Likewise.
30538 * lib/unistr/u8-uctomb.c: Likewise.
30539 * lib/unitypes.h: Likewise.
30540 * lib/uniwidth.h: Likewise.
30541 * lib/uniwidth/cjk.h: Likewise.
30542 * lib/uniwidth/u16-strwidth.c: Likewise.
30543 * lib/uniwidth/u16-width.c: Likewise.
30544 * lib/uniwidth/u32-strwidth.c: Likewise.
30545 * lib/uniwidth/u32-width.c: Likewise.
30546 * lib/uniwidth/u8-strwidth.c: Likewise.
30547 * lib/uniwidth/u8-width.c: Likewise.
30548 * lib/uniwidth/width.c: Likewise.
30550 2007-10-07 Bruno Haible <bruno@clisp.org>
30552 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30553 The file is still under LGPL (see modules/inttypes).
30555 2007-10-06 Bruno Haible <bruno@clisp.org>
30557 * modules/trunc (Dependencies): Add 'extensions'.
30558 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30559 Reported by Ben Pfaff <blp@gnu.org>.
30561 2007-10-06 Bruno Haible <bruno@clisp.org>
30563 * modules/freopen-tests: New file.
30564 * tests/test-freopen.c: New file.
30566 * modules/fopen-tests: New file.
30567 * tests/test-fopen.c: New file.
30569 * modules/fopen: New file.
30570 * lib/fopen.c: New file.
30571 * m4/fopen.m4: New file.
30572 * modules/freopen: New file.
30573 * lib/freopen.c: New file.
30574 * m4/freopen.m4: New file.
30575 * lib/stdio.in.h (fopen, freopen): New declarations.
30576 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30577 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30578 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30579 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30580 * doc/functions/fopen.texi: Mention the 'fopen' module.
30581 * doc/functions/freopen.texi: Mention the 'freopen' module.
30583 2007-10-06 Bruno Haible <bruno@clisp.org>
30585 * modules/open-tests: New file.
30586 * tests/test-open.c: New file.
30588 * modules/open: New file.
30589 * lib/open.c: New file.
30590 * m4/open.m4: New file.
30591 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30593 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30594 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30596 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30597 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30599 * doc/functions/open.texi: Mention the 'open' module.
30601 2007-10-04 Bruno Haible <bruno@clisp.org>
30603 * modules/ceill-tests: New file.
30604 * tests/test-ceill.c: New file.
30606 * modules/ceill: New file.
30607 * lib/ceill.c: Replace entire file.
30608 * m4/ceill.m4: New file.
30609 * lib/math.in.h (ceill): Replace declaration.
30610 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30611 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30612 * doc/functions/ceill.texi: Mention the 'ceill' module.
30613 * modules/mathl (Files): Remove lib/ceill.c.
30614 (Depends-on): Add ceill.
30616 2007-10-04 Bruno Haible <bruno@clisp.org>
30618 * modules/ceilf-tests: New file.
30619 * tests/test-ceilf.c: New file.
30621 * modules/ceilf: New file.
30622 * lib/ceil.c: New file.
30623 * lib/ceilf.c: New file.
30624 * m4/ceilf.m4: New file.
30625 * lib/math.in.h (ceilf): New declaration.
30626 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30628 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30630 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30632 2007-10-04 Bruno Haible <bruno@clisp.org>
30634 * modules/floorl-tests: New file.
30635 * tests/test-floorl.c: New file.
30637 * modules/floorl: New file.
30638 * lib/floorl.c: Replace entire file.
30639 * m4/floorl.m4: New file.
30640 * lib/math.in.h (floorl): Replace declaration.
30641 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30642 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30643 * doc/functions/floorl.texi: Mention the 'floorl' module.
30644 * modules/mathl (Files): Remove lib/floorl.c.
30645 (Depends-on): Add floorl.
30647 2007-10-04 Bruno Haible <bruno@clisp.org>
30649 * modules/floorf-tests: New file.
30650 * tests/test-floorf.c: New file.
30652 * modules/floorf: New file.
30653 * lib/floor.c: New file.
30654 * lib/floorf.c: New file.
30655 * m4/floorf.m4: New file.
30656 * lib/math.in.h (floorf): New declaration.
30657 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30659 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30661 * doc/functions/floorf.texi: Mention the 'floorf' module.
30663 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
30664 Bruno Haible <bruno@clisp.org>
30666 Advertise for the Git server instead of the CVS server.
30667 * doc/gnulib-intro.texi (Steady Development): Mention the Git
30668 repository instead of the CVS one.
30669 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30670 about all VCS systems generically.
30671 * doc/gnulib.texi (Introduction): Capitalize `Git'.
30673 2007-10-04 Bruno Haible <bruno@clisp.org>
30675 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30677 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30679 2007-10-04 Bruno Haible <bruno@clisp.org>
30681 * modules/truncl-tests: New file.
30682 * tests/test-truncl.c: New file.
30684 * modules/truncl: New file.
30685 * lib/truncl.c: New file.
30686 * m4/truncl.m4: New file.
30687 * lib/math.in.h (truncl): New declaration.
30688 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30690 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30692 * doc/functions/truncl.texi: Mention the 'truncl' module.
30694 2007-10-04 Bruno Haible <bruno@clisp.org>
30696 * modules/truncf-tests: New file.
30697 * tests/test-truncf.c: New file.
30699 * modules/truncf: New file.
30700 * lib/trunc.c: Make paramerizable through USE_* macros.
30701 * lib/truncf.c: New file.
30702 * m4/truncf.m4: New file.
30703 * lib/math.in.h (truncf): New declaration.
30704 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30706 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30708 * doc/functions/truncf.texi: Mention the 'truncf' module.
30710 2007-10-03 Bruno Haible <bruno@clisp.org>
30712 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30713 augmentation also for tests modules.
30714 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30715 * modules/atexit-tests (Makefile.am): Likewise.
30716 * modules/binary-io-tests (Makefile.am): Likewise.
30717 * modules/c-strcase-tests (Makefile.am): Likewise.
30718 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30719 * modules/canonicalize-tests (Makefile.am): Likewise.
30720 * modules/closein-tests (Makefile.am): Likewise.
30721 * modules/fprintf-posix-tests (Makefile.am): Likewise.
30722 * modules/freadahead-tests (Makefile.am): Likewise.
30723 * modules/fseek-tests (Makefile.am): Likewise.
30724 * modules/fseeko-tests (Makefile.am): Likewise.
30725 * modules/ftell-tests (Makefile.am): Likewise.
30726 * modules/ftello-tests (Makefile.am): Likewise.
30727 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30728 * modules/isnanl-tests (Makefile.am): Likewise.
30729 * modules/lseek-tests (Makefile.am): Likewise.
30730 * modules/mbscasecmp-tests (Makefile.am): Likewise.
30731 * modules/mbscasestr-tests (Makefile.am): Likewise.
30732 * modules/mbschr-tests (Makefile.am): Likewise.
30733 * modules/mbscspn-tests (Makefile.am): Likewise.
30734 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30735 * modules/mbspbrk-tests (Makefile.am): Likewise.
30736 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30737 * modules/mbsrchr-tests (Makefile.am): Likewise.
30738 * modules/mbsspn-tests (Makefile.am): Likewise.
30739 * modules/mbsstr-tests (Makefile.am): Likewise.
30740 * modules/printf-posix-tests (Makefile.am): Likewise.
30741 * modules/snprintf-posix-tests (Makefile.am): Likewise.
30742 * modules/sprintf-posix-tests (Makefile.am): Likewise.
30743 * modules/tsearch-tests (Makefile.am): Likewise.
30744 * modules/uniname/uniname-tests (Makefile.am): Likewise.
30745 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30746 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30747 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30748 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30749 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30750 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30751 * modules/vprintf-posix-tests (Makefile.am): Likewise.
30752 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30753 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30754 * modules/xstrtoimax-tests (Makefile.am): Likewise.
30755 * modules/xstrtol-tests (Makefile.am): Likewise.
30756 * modules/xstrtoumax-tests (Makefile.am): Likewise.
30757 * modules/yesno-tests (Makefile.am): Likewise.
30759 2007-10-03 Bruno Haible <bruno@clisp.org>
30761 * modules/trunc-tests: New file.
30762 * tests/test-trunc.c: New file.
30764 * modules/trunc: New file.
30765 * lib/trunc.c: New file.
30766 * m4/trunc.m4: New file.
30767 * lib/math.in.h (trunc): New declaration.
30768 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30770 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30772 * doc/functions/trunc.texi: Mention the 'trunc' module.
30774 2007-10-03 Bruno Haible <bruno@clisp.org>
30776 * tests/test-fpending.c: New file, mostly copied
30777 from coreutils/lib/t-fpending.c.
30778 * modules/fpending-tests: New file.
30780 2007-10-03 Bruno Haible <bruno@clisp.org>
30782 Port the stdio extensions to QNX (untested).
30783 * lib/fseterr.c (fseterr): Add support for QNX.
30784 * lib/fbufmode.c (fbufmode): Likewise.
30785 * lib/freadable.c (freadable): Likewise.
30786 * lib/fwritable.c (fwritable): Likewise.
30787 * lib/freading.c (freading): Likewise.
30788 * lib/fwriting.c (fwriting): Likewise.
30789 * lib/freadahead.c (freadahed): Likewise.
30790 * lib/fpurge.c (fpurge): Likewise.
30791 * lib/fseeko.c (rpl_fseeko): Likewise.
30793 2007-10-03 Bruno Haible <bruno@clisp.org>
30794 Jim Meyering <jim@meyering.net>
30795 Eric Blake <ebb9@byu.net>
30797 * doc/relocatable.texi: Use @command instead of @program.
30799 2007-10-02 Jim Meyering <jim@meyering.net>
30801 Perform one more "_.h" -> ".in.h" substitution.
30802 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30803 instead of unistd_.h here, too.
30805 2007-10-01 Bruno Haible <bruno@clisp.org>
30807 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30808 Needed for the alloca-opt module.
30810 2007-09-30 Bruno Haible <bruno@clisp.org>
30812 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30813 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30815 * lib/argz.in.h: Renamed from lib/argz_.h.
30816 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30817 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30818 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30820 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30821 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30823 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30824 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30826 * lib/float.in.h: Renamed from lib/float_.h.
30827 * modules/float (Files, Makefile.am): Use float.in.h instead of
30829 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30830 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30832 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30833 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30835 * lib/glob.in.h: Renamed from lib/glob_.h.
30836 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30837 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30838 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30840 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30841 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30843 * lib/locale.in.h: Renamed from lib/locale_.h.
30844 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30846 * lib/math.in.h: Renamed from lib/math_.h.
30847 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30848 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30849 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30850 of netinet_in_.h. Add dependency.
30851 * lib/poll.in.h: Renamed from lib/poll_.h.
30852 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30853 * lib/search.in.h: Renamed from lib/search_.h.
30854 * modules/search (Files, Makefile.am): Use search.in.h instead of
30856 * lib/signal.in.h: Renamed from lib/signal_.h.
30857 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30859 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30860 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30862 * lib/stdint.in.h: Renamed from lib/stdint_.h.
30863 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30865 * lib/stdio.in.h: Renamed from lib/stdio_.h.
30866 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30868 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30869 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30871 * lib/string.in.h: Renamed from lib/string_.h.
30872 * modules/string (Files, Makefile.am): Use string.in.h instead of
30874 * doc/gnulib-tool.texi (Initial import): Update.
30875 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30876 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30877 of sys_select_.h. Add dependency.
30878 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30879 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30881 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30882 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30884 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30885 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30887 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30888 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30890 * lib/time.in.h: Renamed from lib/time_.h.
30891 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30892 * lib/unistd.in.h: Renamed from lib/unistd_.h.
30893 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30895 * lib/wchar.in.h: Renamed from lib/wchar_.h.
30896 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30898 * lib/wctype.in.h: Renamed from lib/wctype_.h.
30899 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30901 * build-aux/bootstrap (slurp): Update.
30902 * lib/.cppi-disable: Update.
30904 2007-09-30 Bruno Haible <bruno@clisp.org>
30906 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30909 2007-09-30 Bruno Haible <bruno@clisp.org>
30911 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30913 2007-09-29 Bruno Haible <bruno@clisp.org>
30915 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30917 2007-09-29 Bruno Haible <bruno@clisp.org>
30919 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30920 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30921 * build-aux/install-reloc: Compile also areadlink.c.
30922 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30924 2007-09-29 Bruno Haible <bruno@clisp.org>
30926 * gnulib-tool (func_emit_initmacro_done): Indentation.
30928 2007-09-29 Bruno Haible <bruno@clisp.org>
30930 * README: Add CVS checkout update instructions.
30931 Info from Bob Proulx <bob@proulx.com>.
30933 2007-09-28 Eric Blake <ebb9@byu.net>
30935 Provide move-if-change.
30936 * build-aux/move-if-change: New file, based on best practice
30937 rather than any canonical upstream location.
30939 2007-09-28 Jim Meyering <jim@meyering.net>
30941 Fix canonicalize loop-detection corner case.
30942 Do not attempt to stat the symlink values stored via seen_triple.
30943 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30944 on linux-2.6.18, (but not 2.6.22).
30945 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30946 triple_compare. The former compares dev,ino,filename, while the latter
30947 would actually stat dirname(filename) when dev and ino were equal.
30948 * lib/hash-triple.c: Install <string.h>.
30950 (triple_compare_ino_str): New function.
30951 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30953 2007-09-28 Eric Blake <ebb9@byu.net>
30955 Enforce that AC_REPLACE_FUNCS files exist.
30956 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30957 override check for typos.
30959 Fix test-closein on Solaris 10.
30960 * tests/test-closein.c (main): Don't assume stdin can be inherited
30961 closed on all systems.
30962 * tests/test-closein.sh: Likewise.
30963 Reported by Piotr Tarnowski.
30965 2007-09-28 Jim Meyering <jim@meyering.net>
30967 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30969 2007-09-27 Jim Meyering <jim@meyering.net>
30971 canonicalize: Avoid a false-positive cycle failure.
30972 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30973 Sort. Remove cycle-check.
30974 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30976 (seen_triple): New function.
30977 (canonicalize_filename_mode): Use it instead of cycle-check.
30978 * tests/test-canonicalize.c: Add a test for this bug.
30979 * tests/test-canonicalize.sh: Set up and run the test.
30981 New module, file-set, from coreutils.
30982 * modules/file-set: Define it.
30983 * lib/file-set.c, lib/file-set.h: Implement.
30985 New module, hash-triple, from coreutils.
30986 * modules/hash-triple: Define it.
30987 * lib/hash-triple.c, lib/hash-triple.h: Implement.
30989 2007-09-25 Eric Blake <ebb9@byu.net>
30991 Fix strerror on Interix.
30992 * lib/string_.h (strerror): Declare replacement.
30993 * doc/functions/strerror.texi (strerror): Document the Interix
30995 * modules/string (Makefile.am): Support new hooks.
30996 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30997 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30998 gl_FUNC_STRERROR_SEPARATE.
30999 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31000 * lib/strerror.c (rpl_strerror): Provide replacement.
31001 * modules/strerror (Depends-on): Add string.
31002 (configure.ac): Detect use of module.
31003 * tests/test-strerror.c: New file.
31004 * modules/strerror-tests: New test module.
31005 * modules/argp (Depends-on): Add strerror.
31006 * modules/error (Depends-on): Likewise.
31007 Reported by Martin Koeppe.
31009 2007-09-24 Bruno Haible <bruno@clisp.org>
31011 * README: Update git instructions.
31013 2007-09-24 Eric Blake <ebb9@byu.net>
31015 Revert fpending breakage from 2007-09-08.
31016 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31019 2007-09-24 Jim Meyering <jim@meyering.net>
31021 filenamecat.c: Add a test.
31022 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31023 showing how the function works when DIR is the empty string.
31025 2007-09-21 Simon Josefsson <simon@josefsson.org>
31027 * tests/test-canonicalize.sh: Turn on executable bit.
31029 2007-09-19 Eric Blake <ebb9@byu.net>
31031 * README: Update CVS instructions.
31033 2007-09-18 Bruno Haible <bruno@clisp.org>
31035 * modules/areadlink: New file.
31036 * lib/areadlink.h (areadlink): New declaration.
31037 * lib/areadlink.c: New file, based on lib/xreadlink.c.
31039 2007-09-17 Jim Meyering <jim@meyering.net>
31041 * lib/savewd.c (ESTALE) [!defined]: Define.
31042 Reported to be required on Interix by Martin Koeppe.
31044 2007-09-17 Bruno Haible <bruno@clisp.org>
31046 * gnulib-tool (func_version): Use $version.
31048 2007-09-16 Bruno Haible <bruno@clisp.org>
31050 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31051 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31052 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31053 Reported by Greg Schafer <gschafer@zip.com.au>.
31055 2007-09-15 Bruno Haible <bruno@clisp.org>
31057 * gnulib-tool (sed): Try a little harder to make bash understand the
31059 Reported by Bruce Korb <bruce.korb@gmail.com>.
31061 2007-09-13 Eric Blake <ebb9@byu.net>
31063 * ChangeLog: Remove conflict markers.
31065 2007-09-13 Simon Josefsson <simon@josefsson.org>
31067 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31068 Reported by Bruno Haible <bruno@clisp.org>.
31070 2007-09-12 Bruno Haible <bruno@clisp.org>
31072 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31073 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31076 2007-09-12 Eric Blake <ebb9@byu.net>
31078 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31079 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31080 Autoconf definition.
31081 * modules/euidaccess (Depends-on): Add extensions, for
31082 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31083 * modules/fnmatch (Depends-on): Likewise.
31084 * modules/getaddrinfo (Depends-on): Likewise.
31085 * modules/getdelim (Depends-on): Likewise.
31086 * modules/getline (Depends-on): Likewise.
31087 * modules/getsubopt (Depends-on): Likewise.
31088 * modules/gettext (Depends-on): Likewise.
31089 * modules/group-member (Depends-on): Likewise.
31090 * modules/mbchar (Depends-on): Likewise.
31091 * modules/memmem (Depends-on): Likewise.
31092 * modules/mempcpy (Depends-on): Likewise.
31093 * modules/memrchr (Depends-on): Likewise.
31094 * modules/pagealign_alloc (Depends-on): Likewise.
31095 * modules/readutmp (Depends-on): Likewise.
31096 * modules/stpcpy (Depends-on): Likewise.
31097 * modules/stpncpy (Depends-on): Likewise.
31098 * modules/strchrnul (Depends-on): Likewise.
31099 * modules/strndup (Depends-on): Likewise.
31100 * modules/strsep (Depends-on): Likewise.
31101 * modules/strverscmp (Depends-on): Likewise.
31102 * modules/vasprintf (Depends-on): Likewise.
31103 * modules/wcwidth (Depends-on): Likewise.
31104 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31105 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31106 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31107 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31108 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31109 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31110 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31111 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31112 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31113 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31114 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31115 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31116 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31117 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31118 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31119 * m4/readutmp.m4 (gl_READUTMP): Likewise.
31120 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31121 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31122 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31123 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31124 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31125 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31126 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31127 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31128 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31129 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31130 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31131 so that lock.m4 can be used in gettext without extensions module.
31133 2007-09-11 Bruno Haible <bruno@clisp.org>
31135 * m4/isc-posix.m4: Remove file.
31136 Suggested by Eric Blake.
31138 2007-09-11 Eric Blake <ebb9@byu.net>
31140 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31142 2007-09-10 Bruno Haible <bruno@clisp.org>
31144 * posix-modules: Fix typo in error message.
31145 Reported by Matt <mkraai@beckman.com>.
31147 2007-09-09 Bruno Haible <bruno@clisp.org>
31149 * doc/functions/getdelim.texi: Update list of platforms lacking the
31151 * doc/functions/getline.texi: Likewise.
31153 2007-09-09 Jim Meyering <jim@meyering.net>
31155 * lib/hash.c (hash_initialize): Detect calloc failure.
31156 Reported by Bruno Haible.
31158 2007-09-09 Bruno Haible <bruno@clisp.org>
31160 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31161 malloc or realloc fails.
31163 2007-09-09 Bruno Haible <bruno@clisp.org>
31165 * modules/getcwd (Depends-on): Add malloc-posix.
31166 * modules/glob (Depends-on): Likewise.
31167 * modules/putenv (Depends-on): Likewise.
31168 * modules/strdup (Depends-on): Likewise.
31169 * modules/getdelim (Depends-on): Add realloc-posix.
31170 * modules/read-file (Depends-on): Likewise.
31172 2007-09-09 Bruno Haible <bruno@clisp.org>
31174 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31175 (gl_FUNC_MALLOC_POSIX): Require it.
31176 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31177 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31178 * modules/realloc (Files): Add m4/malloc.m4.
31179 * modules/calloc (Files): Likewise.
31181 2007-09-09 Bruno Haible <bruno@clisp.org>
31183 * modules/malloc-posix: New file.
31184 * modules/malloc (Depends-on): Add malloc-posix.
31185 * lib/malloc.c: Include errno.h.
31186 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31187 and a POSIX-compatible malloc into a single function. Set ENOMEM
31188 when returning NULL.
31189 * m4/malloc.m4: New file.
31190 * doc/functions/malloc.texi: Mention the malloc-posix module.
31191 * lib/stdlib_.h (malloc): New declaration.
31192 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31193 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31194 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31195 and HAVE_MALLOC_POSIX.
31197 2007-09-09 Bruno Haible <bruno@clisp.org>
31199 * modules/realloc-posix: New file.
31200 * modules/realloc (Depends-on): Add realloc-posix.
31201 * lib/realloc.c: Include errno.h.
31202 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31203 and a POSIX-compatible realloc into a single function. Set ENOMEM
31204 when returning NULL.
31205 * m4/realloc.m4: New file.
31206 * doc/functions/realloc.texi: Mention the realloc-posix module.
31207 * lib/stdlib_.h (realloc): New declaration.
31208 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31209 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31210 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31211 and HAVE_REALLOC_POSIX.
31213 2007-09-09 Bruno Haible <bruno@clisp.org>
31215 * modules/calloc-posix: New file.
31216 * modules/calloc (Depends-on): Add calloc-posix.
31217 * lib/calloc.c: Include errno.h.
31218 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31219 and a POSIX-compatible calloc into a single function. Set ENOMEM
31220 when returning NULL.
31221 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31222 * doc/functions/calloc.texi: Mention the calloc-posix module.
31223 * lib/stdlib_.h (calloc): New declaration.
31224 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31225 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31226 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31227 and HAVE_CALLOC_POSIX.
31229 2007-09-09 Bruno Haible <bruno@clisp.org>
31231 Allow for modules to show an arbitrary notice.
31232 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31233 * gnulib-tool: New option --extract-notice.
31234 (func_usage): Document it.
31235 (sed_extract_prog): Update.
31236 (func_get_notice): New function.
31237 (func_modules_notice): New function.
31238 (func_import, func_create_testdir): Invoke it.
31239 Suggested by Jim Meyering.
31241 2007-09-09 Bruno Haible <bruno@clisp.org>
31243 * gnulib-tool: New options --verbose, --quiet.
31244 (func_usage): Document them.
31245 (verbose): New variable.
31246 (func_execute_command): New function.
31247 (func_import): Don't show the module list and the file list if
31249 (func_create_testdir): Likewise. Use func_execute_command.
31250 (func_create_megatestdir): Use func_execute_command.
31252 2007-09-08 Bruno Haible <bruno@clisp.org>
31254 * gnulib-tool (func_import): Prefer rsync over wget when available,
31255 for fetching the PO files.
31257 2007-09-08 Bruno Haible <bruno@clisp.org>
31259 * posix-modules: New file. Portions copied from gnulib-tool.
31260 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31262 2007-09-08 Jim Meyering <jim@meyering.net>
31264 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31265 * lib/fpending.h: Rename from __fpending.h.
31266 * lib/fpending.c: Rename from __fpending.c.
31267 Include "fpending.h", not "__fpending.h".
31268 * lib/__fpending.h, lib/__fpending.c: Remove files.
31269 * modules/fpending (Files): Reflect new file names.
31270 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31272 2007-09-08 Bruno Haible <bruno@clisp.org>
31274 * m4/inttypes-h.m4: Remove stub file.
31276 2007-09-07 Simon Josefsson <simon@josefsson.org>
31278 * doc/headers/stdint.texi: Discuss #include_next issue.
31280 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31282 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31284 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31286 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31289 2007-09-03 Jim Meyering <jim@meyering.net>
31291 New module: git-version-gen.
31292 * modules/git-version-gen: New file.
31294 Import changes from coreutils for bootstrap script.
31296 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31298 bootstrap: uses rsync to download the .po files
31299 * build-aux/bootstrap (po_download_command_format): New global.
31300 (download_po_files): Use rsync.
31301 (update_po_files): Don't remove .po files after download,
31302 so future rsync runs can take advantage of the copies.
31304 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31306 Solve the unnecessary-.po-file-regeneration problem once and for all.
31307 * build-aux/bootstrap (download_po_files): New function, renamed from
31308 get_translations. Now, downloads, but doesn't update LINGUAS.
31309 (update_po_files): New function.
31311 bootstrap: Ignore more.
31312 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31313 uniwidth to e.g., lib/.gitignore.
31314 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31316 * build-aux/bootstrap: New setting: vc_ignore.
31317 (insert_sorted_if_absent): Create $file if absent.
31318 Adapt to new, possibly empty, list: $vc_ignore.
31320 bootstrap: generate more ignorable names
31321 * build-aux/bootstrap (slurp): When generating ignorable names,
31322 also map .sin to .sed, .gperf to .c, and .y to .c.
31324 2007-09-03 Jim Meyering <jim@meyering.net>
31326 * build-aux/git-version-gen: New file, from coreutils. For details, see
31327 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31329 2007-09-02 Bruno Haible <bruno@clisp.org>
31331 Fix mis-recognition of 'mcs' on QNX 6.
31332 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31333 output contains the string "Mono".
31334 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31335 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31337 2007-09-01 Bruno Haible <bruno@clisp.org>
31339 Fix collision between uniwidth/* and linebreak modules.
31340 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31341 u32_width): Remove declarations.
31342 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31343 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31344 streq3, streq2, streq1, streq0): Remove functions.
31345 (STREQ): Remove macro.
31346 (is_cjk_encoding): Remove function.
31347 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31348 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31349 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31350 * NEWS: Document the change.
31352 2007-09-01 Bruno Haible <bruno@clisp.org>
31354 * lib/streq.h: Add double-inclusion guard.
31356 2007-09-01 Karl Berry <karl@gnu.org>
31358 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31360 2007-08-28 Jim Meyering <jim@meyering.net>
31362 Rename mreadlink_with_size to areadlink_with_size.
31363 * NEWS: Document the change.
31364 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31365 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31366 * lib/mreadlink.h: Rename this to...
31367 * lib/areadlink.h: ...this.
31368 * modules/mreadlink-with-size: Rename this to...
31369 * modules/areadlink-with-size: ...this.
31370 * lib/canonicalize.c: Reflect the renaming.
31371 * modules/canonicalize: Likewise.
31373 2007-08-26 Bruno Haible <bruno@clisp.org>
31375 * gnulib-tool (func_import): When deciding which files to remove,
31376 consider also dangling symbolic links.
31377 Reported by Eric Blake.
31379 2007-08-26 Bruno Haible <bruno@clisp.org>
31381 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31383 2007-08-23 Simon Josefsson <simon@josefsson.org>
31385 * lib/readline.c: Don't include getline.h, the prototype is now
31388 2007-08-23 Jim Meyering <jim@meyering.net>
31391 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31392 around the funlockfile call, since funlockfile never sets errno.
31393 Don't set errno upon failed realloc.
31395 2007-08-22 Eric Blake <ebb9@byu.net>
31398 * lib/getdelim.c (getdelim): Revert regression that required *n to
31399 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
31400 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31401 getdelim, rather than whether implementation is missing.
31402 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31403 * lib/stdio_.h (getline): Also declare if replacement is
31405 * doc/functions/getdelim.texi: New file.
31406 * doc/functions/getline.texi: Likewise.
31407 * doc/gnulib.texi (Function Substitutes): Add new files.
31408 Reported by Bruno Haible.
31410 2007-08-22 Ludovic Courtès <ludo@gnu.org>
31412 * users.txt: Add Guile.
31414 2007-08-22 Eric Blake <ebb9@byu.net>
31416 * tests/test-getdelim.c (main): Use remove, not unlink.
31417 * tests/test-getline.c (main): Likewise.
31419 Move getline and getdelim into stdio.h, per POSIX 200x.
31420 * modules/getline (Files): Remove getline.h.
31421 (Depends-on): Add stdio.
31422 (configure.ac): Add module indicator.
31423 * modules/getdelim (Files): Remove getdelim.h.
31424 (Depends-on): Add stdio.
31425 (configure.ac): Add module indicator.
31426 * modules/stdio (Makefile.am): Work with new indicators.
31427 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31428 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31429 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31430 * lib/getdelim.h: Delete.
31431 * lib/getline.h: Delete.
31432 * lib/stdio_.h (getdelim, getline): Declare.
31433 * modules/getdelim-tests: New module.
31434 * modules/getline-tests: Likewise.
31435 * tests/test-getdelim.c: New file.
31436 * tests/test-getline.c: Likewise.
31437 * NEWS: Document the change.
31438 * lib/getline.c: Update choice of header.
31439 * lib/csharpcomp.c: Likewise.
31440 * lib/getpass.c: Likewise.
31441 * lib/javacomp.c: Likewise.
31442 * lib/javaversion.c: Likewise.
31443 * lib/yesno.c: Likewise.
31444 * lib/getdelim.c: Likewise.
31445 (getdelim): Set errno on failure, and avoid memory leak.
31447 2007-08-19 Bruno Haible <bruno@clisp.org>
31449 * modules/closein (Depends-on): Add freadahead.
31450 * lib/closein.c: Include freadahead.h.
31451 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31454 2007-08-19 Bruno Haible <bruno@clisp.org>
31456 * modules/freadahead-tests: New file.
31457 * tests/test-freadahead.sh: New file.
31458 * tests/test-freadahead.c: New file.
31460 * modules/freadahead: New file.
31461 * lib/freadahead.h: New file.
31462 * lib/freadahead.c: New file.
31463 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31464 fbufmode, fpurge, freadable, fwritable.
31466 2007-08-19 Eric Blake <ebb9@byu.net>
31468 Test yesno in combination with closein.
31469 * lib/yesno.c (yesno): Document use of stdin.
31470 * modules/yesno-tests (Files): New module.
31471 * tests/test-yesno.c (main): New file.
31472 * tests/test-yesno.sh: Likewise.
31474 2007-08-19 Bruno Haible <bruno@clisp.org>
31476 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31477 * lib/fseeko.c (rpl_fseeko): Likewise.
31478 * lib/fseterr.c (fseterr): Likewise.
31480 2007-08-19 Bruno Haible <bruno@clisp.org>
31482 * tests/test-lseek.c (main): Disable a test for BeOS.
31483 * doc/functions/lseek.texi: Document the BeOS bug.
31485 2007-08-19 Bruno Haible <bruno@clisp.org>
31486 Eric Blake <ebb9@byu.net>
31488 * lib/lseek.c: Include <sys/stat.h>.
31489 (rpl_lseek): Add workaround code also for Unix platforms.
31491 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31492 * doc/functions/lseek.texi: Document BeOS definiency.
31494 2007-08-18 Bruno Haible <bruno@clisp.org>
31496 * modules/fstrcmp-tests: New file.
31497 * tests/test-fstrcmp.c: New file.
31499 2007-08-18 Bruno Haible <bruno@clisp.org>
31501 * modules/fstrcmp: New file, from GNU gettext with modifications.
31502 * lib/fstrcmp.h: New file, from GNU gettext.
31503 * lib/fstrcmp.c: New file, from GNU gettext.
31504 * MODULES.html.sh (String handling): Add fstrcmp.
31506 2007-08-18 Bruno Haible <bruno@clisp.org>
31508 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31510 (diag, compareseq): Remove const from the ctxt argument.
31511 (USE_HEURISTIC): Undefine at the end.
31513 2007-08-18 Jim Meyering <jim@meyering.net>
31515 New file: lib/idcache.h
31516 * NEWS: Mention the addition.
31517 * modules/idcache (Files): Add lib/idcache.h
31518 * lib/idcache.c: Include "idcache.h".
31519 Don't include <sys/types.h>.
31520 Add a FIXME comment.
31521 Move file-scoped "static" declarations to the top.
31522 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
31524 2007-08-17 Bruno Haible <bruno@clisp.org>
31525 and Paul Eggert <eggert@cs.ucla.edu>
31527 * MODULES.html.sh: Add diffseq.
31528 * modules/diffseq: New file.
31529 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31530 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31532 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
31534 Import changes from coreutils for bootstrap script.
31536 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
31538 * build-aux/bootstrap (slurp): Work even in environments where
31539 "ls" defaults to "ls -A". Put in a FIXME, though, since the
31540 current code does not slurp files whose names start with ".", and
31541 this looks like it might be a troublesome area.
31543 2007-07-11 Jim Meyering <jim@meyering.net>
31545 If there's a GPL vN copyright comment, require that N == 3.
31547 2007-07-08 Jim Meyering <jim@meyering.net>
31549 Run the coreutils-specific code only if tests/Makefile.am.in exists.
31550 * build-aux/bootstrap (mam_template): Move definition out of loop.
31552 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31554 * build-aux/bootstrap (symlink_to_dir): Rename function from
31555 symlink_to_gnulib. Add a directory parameter. Update all
31557 (cp_mark_as_generated): Also check for -- and link to -- files in
31560 2007-07-08 Jim Meyering <jim@meyering.net>
31562 Adapt to deeper hierarchy in gnulib.
31563 * build-aux/bootstrap (symlink_to_dir): If the destination
31564 directory doesn't exist, create it. This is required at least for
31565 "lib/uniwidth/cjk.h".
31567 2007-05-15 Jim Meyering <jim@meyering.net>
31569 * build-aux/bootstrap: Now that generated Makefile.am files
31570 are no longer under version control, they must be created at
31573 2007-08-14 Ben Pfaff <blp@gnu.org>
31575 * lib/count-one-bits.h: Add comments. From Bruno Haible.
31577 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
31579 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31580 given the changes below.
31581 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
31582 even on hosts that have padding bits beyond the supported 64.
31584 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
31586 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31587 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31588 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
31590 (xstrtol_error): Remove.
31591 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31592 but with a different signature.
31593 (ATTRIBUTE_NORETURN, __attribute__): New macros.
31594 * lib/xstrtol-error.c: Include exitfail.h.
31595 (xstrtol_fatal): New function, with a different signature from the
31596 old xstrtol_error, so that the caller need not worry about passing
31597 in an exit status, or about storage management of the option argument.
31598 (xstrtol_error): Now a static function. Redo signature to
31599 implement xstrtol_fatal. Output the correct number of hyphens in
31600 front of the option so that the caller need not worry about
31601 storage management.
31603 (_): Remove; not used now.
31604 * modules/xstrtol: Depend on getopt.
31605 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31606 of old STRTOL_FATAL_ERROR macro.
31607 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31609 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31610 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31612 2007-08-08 Eric Blake <ebb9@byu.net>
31614 * lib/xstrtol-error.c: Add missing include.
31616 Move xstrtol messages into gnulib domain, when --pobase is used.
31617 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31618 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31619 * modules/xstrtol (Files): Distribute new file.
31620 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31621 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31622 * tests/test-xstrtol.c: ...into new file.
31623 * tests/test-xstrtoul.c: Also test xstrtoul.
31624 * tests/test-xstrtoimax.c: Also test xstrtoimax.
31625 * tests/test-xstrtoumax.c: Also test xstrtoumax.
31626 * tests/test-xstrtol.sh: Drive the tests.
31627 * tests/test-xstrtoimax.sh: Likewise.
31628 * tests/test-xstrtoumax.sh: Likewise.
31629 * modules/xstrtol-tests: New module.
31630 * modules/xstrtoimax-tests: Likewise.
31631 * modules/xstrtoumax-tests: Likewise.
31633 2007-08-08 Jim Meyering <jim@meyering.net>
31635 New function: mfile_name_concat.
31636 * lib/filenamecat.c (mfile_name_concat): New function, just like
31637 file_name_concat, but return NULL upon failure rather than exiting
31639 * lib/filenamecat.h: Declare it.
31641 2007-08-07 Bruno Haible <bruno@clisp.org>
31643 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31644 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31646 Reported by Eric Blake.
31648 2007-08-07 Simon Josefsson <simon@josefsson.org>
31650 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31651 * modules/crypto/arcfour (License): Likewise.
31652 * modules/crypto/des-tests (License): Likewise.
31653 * modules/crypto/gc-arctwo-tests (License): Likewise.
31654 * modules/crypto/gc-des-tests (License): Likewise.
31655 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31656 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31657 * modules/crypto/gc-md2-tests (License): Likewise.
31658 * modules/crypto/gc-md4-tests (License): Likewise.
31659 * modules/crypto/gc-md5-tests (License): Likewise.
31660 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31661 * modules/crypto/gc-rijndael-tests (License): Likewise.
31662 * modules/crypto/gc-sha1-tests (License): Likewise.
31663 * modules/crypto/gc-tests (License): Likewise.
31664 * modules/crypto/hmac-md5 (License): Likewise.
31665 * modules/crypto/hmac-sha1 (License): Likewise.
31666 * modules/crypto/md2-tests (License): Likewise.
31667 * modules/crypto/md4-tests (License): Likewise.
31668 * modules/crypto/md5 (License): Likewise.
31669 * modules/crypto/rijndael (License): Likewise.
31670 * modules/crypto/sha1 (License): Likewise.
31671 * modules/memxor (License): Likewise.
31673 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
31674 and Bruno Haible <bruno@clisp.org>
31676 * NEWS: Describe interface changes to human, xstrtol.
31677 * lib/human.h: Include <xstrtol.h>.
31678 (human_options): Return enum strtol_error, not int. Remove
31679 bool arg; take int * instead.
31680 * lib/human.c: Don't include "gettext.h".
31681 (_): Remove; no longer used.
31682 Don't include <xstrtol.h>, since human.h does it.
31683 (human_options): Adjust to abovementioned interface changes.
31684 Do not report error to stderr; that's now the caller's
31686 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31688 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31689 Str, Argument_type_string. All uses changed. Put " argument"
31690 in diagnostics to make them clearer. Change wording of suffix
31691 message for clarity.
31692 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31693 Argument_type_string.
31694 (STRTOL_FATAL_WARN): Remove; no longer used.
31695 * modules/human (Depends-on): Remove gettext-h.
31697 2007-08-06 Simon Josefsson <simon@josefsson.org>
31699 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31701 2007-07-31 Bruno Haible <bruno@clisp.org>
31703 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31704 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31705 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31707 2007-07-31 Bruno Haible <bruno@clisp.org>
31709 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31710 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31712 2007-07-30 Bruno Haible <bruno@clisp.org>
31714 * modules/base64 (License): Use the synonymous term "LGPLv2+".
31715 * modules/c-ctype (License): Likewise.
31716 * modules/c-strcase (License): Likewise.
31717 * modules/check-version (License): Likewise.
31718 * modules/iconv (License): Likewise.
31719 * modules/iconv_open (License): Likewise.
31720 * modules/read-file (License): Likewise.
31721 * modules/striconv (License): Likewise.
31722 * modules/strverscmp (License): Likewise.
31723 * modules/vasprintf (License): Likewise.
31724 * modules/crypto/des (License): Likewise.
31725 * modules/crypto/gc (License): Likewise.
31726 * modules/crypto/gc-arcfour (License): Likewise.
31727 * modules/crypto/gc-arctwo (License): Likewise.
31728 * modules/crypto/gc-des (License): Likewise.
31729 * modules/crypto/gc-hmac-md5 (License): Likewise.
31730 * modules/crypto/gc-hmac-sha1 (License): Likewise.
31731 * modules/crypto/gc-md2 (License): Likewise.
31732 * modules/crypto/gc-md4 (License): Likewise.
31733 * modules/crypto/gc-md5 (License): Likewise.
31734 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31735 * modules/crypto/gc-random (License): Likewise.
31736 * modules/crypto/gc-rijndael (License): Likewise.
31737 * modules/crypto/gc-sha1 (License): Likewise.
31738 * modules/crypto/md2 (License): Likewise.
31739 * modules/crypto/md4 (License): Likewise.
31741 2007-07-30 Jim Meyering <jim@meyering.net>
31743 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31744 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31745 it has valid stat data. This bug would cause du not to count the
31746 sizes of inaccessible directories.
31747 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31748 in <http://bugzilla.redhat.com/250077>.
31750 2007-07-25 Peter O'Gorman <peter@pogma.com>
31751 Bruno Haible <bruno@clisp.org>
31753 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31754 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31755 #include_next, gives a diagnostic about it, but reports no error in
31757 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31759 2007-07-24 Ben Pfaff <blp@gnu.org>
31761 Improve name: "count-one-bits" is better than "popcount".
31762 * MODULES.html.sh: Update name.
31763 * lib/popcount.h: Renamed lib/count-one-bits.h.
31764 (popcount): Renamed count_one_bits.
31765 (popcountl): Renamed count_one_bits_l.
31766 (popcountll): Renamed count_one_bits_ll.
31767 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31768 * modules/popcount: Renamed module/count-one-bits.
31769 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31770 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31772 2007-07-23 Ben Pfaff <blp@gnu.org>
31774 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31775 better code generation, and add U to large constants to avoid
31776 warnings, in non-GCC case.
31777 Suggested by Bruno Haible.
31779 2007-07-23 Ben Pfaff <blp@gnu.org>
31781 * lib/popcount.h: Use verify_true instead of if...abort.
31782 * modules/popcount: Depend on verify module.
31783 Suggested by Jim Meyering.
31785 2007-07-23 Bruno Haible <bruno@clisp.org>
31787 * gnulib-tool (func_import): Create a .cvsignore file also when the
31788 directory is not yet in CVS but the toplevel directory is. When
31789 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31790 Reported by Karl Berry.
31792 2007-07-22 Ben Pfaff <blp@gnu.org>
31794 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31796 Suggested by Eric Blake.
31798 2007-07-22 Ben Pfaff <blp@gnu.org>
31800 New module: popcount.
31801 * MODULES.html.sh: Add popcount.
31802 * modules/popcount: New file.
31803 * modules/popcount-tests: New file.
31804 * tests/test-popcount.c: New file.
31805 * lib/popcount.h: New file.
31806 * m4/popcount.m4: New file.
31808 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31810 * build-aux/announce-gen: Update to GPLv3.
31812 * build-aux/config.guess: Update from config.
31814 2007-07-21 Bruno Haible <bruno@clisp.org>
31816 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31817 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31819 2007-07-20 Jim Meyering <jim@meyering.net>
31821 * check-module: Diagnose a self-dependency.
31823 2007-07-19 Bruno Haible <bruno@clisp.org>
31825 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31827 Reported by Eric Blake.
31829 2007-07-18 Bruno Haible <bruno@clisp.org>
31831 * gnulib-tool: New options --po-base, --po-domain.
31832 (func_usage): Document them.
31833 (pobase, po_domain): New variables.
31834 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31835 DEFAULT_TEXT_DOMAIN.
31836 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31837 (func_import): Consider pobase and po_domain. Create a po/ directory.
31838 (func_create_testdir): Set pobase and po_domain to empty.
31839 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31840 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31842 2007-07-18 Bruno Haible <bruno@clisp.org>
31844 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31845 EXTRA_DIST augmentation for files in build-aux/.
31847 2007-07-16 Bruno Haible <bruno@clisp.org>
31849 * modules/lseek (License): Use the synonymous term "LGPLv2+".
31850 * modules/getdelim (License): Likewise.
31852 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31854 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31855 * modules/d-type (License): Likewise.
31856 * modules/extensions (License): Likewise.
31857 * modules/fnmatch (License): Likewise.
31858 * modules/fseeko (License): Likewise.
31859 * modules/getaddrinfo (License): Likewise.
31860 * modules/getline (License): Likewise.
31861 * modules/getlogin_r (License): Likewise.
31862 * modules/getpass (License): Likewise.
31863 * modules/gettimeofday (License): Likewise.
31864 * modules/glob (License): Likewise.
31865 * modules/inet_ntop (License): Likewise.
31866 * modules/malloc (License): Likewise.
31867 * modules/malloca (License): Likewise.
31868 * modules/memmem (License): Likewise.
31869 * modules/mempcpy (License): Likewise.
31870 * modules/memset (License): Likewise.
31871 * modules/minmax (License): Likewise.
31872 * modules/mktime (License): Likewise.
31873 * modules/netinet_in (License): Likewise.
31874 * modules/pathmax (License): Likewise.
31875 * modules/poll (License): Likewise.
31876 * modules/regex (License): Likewise.
31877 * modules/snprintf (License): Likewise.
31878 * modules/stdbool (License): Likewise.
31879 * modules/stdint (License): Likewise.
31880 * modules/stdio (License): Likewise.
31881 * modules/strcase (License): Likewise.
31882 * modules/strcasestr (License): Likewise.
31883 * modules/strdup (License): Likewise.
31884 * modules/string (License): Likewise.
31885 * modules/strndup (License): Likewise.
31886 * modules/strnlen (License): Likewise.
31887 * modules/strpbrk (License): Likewise.
31888 * modules/strptime (License): Likewise.
31889 * modules/strsep (License): Likewise.
31890 * modules/sys_select (License): Likewise.
31891 * modules/sys_socket (License): Likewise.
31892 * modules/sys_stat (License): Likewise.
31893 * modules/sys_time (License): Likewise.
31894 * modules/time (License): Likewise.
31895 * modules/time_r (License): Likewise.
31896 * modules/timegm (License): Likewise.
31897 * modules/unistd (License): Likewise.
31898 * modules/vsnprintf (License): Likewise.
31899 * modules/wctype (License): Likewise.
31901 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31903 * modules/argz (License): LGPLv2+.
31905 2007-07-15 Karl Berry <karl@gnu.org>
31907 * doc/gnulib.texi: revise node structure per new fdl.texi.
31909 2007-07-14 Bruno Haible <bruno@clisp.org>
31911 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31913 * lib/uniname/uninames.h: Regenerated.
31915 2007-07-14 Karl Berry <karl@gnu.org>
31917 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31918 omitting sectioning and index commands.
31920 2007-07-13 Bruno Haible <bruno@clisp.org>
31922 New gnulib-tool option --more-symlinks.
31923 * gnulib-tool (func_usage): Document --more-symlinks.
31924 (do_copyrights): New variable.
31925 Recognize option --more-symlinks.
31926 (func_import): Don't add a copyright notice transform to
31927 sed_transform_lib_file if do_copyrights is empty.
31929 2007-07-13 Bruno Haible <bruno@clisp.org>
31931 * lib/vasnprintf.c (decimal_point_char): Define also if
31932 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31933 && !NEED_PRINTF_DIRECTIVE_A.
31934 Reported by Clemens Koller <clemens.koller@anagramm.de> via
31935 Gary V. Vaughan <gary@gnu.org>.
31937 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
31939 * lib/inttypes_.h: Undo previous change, since it was fixed
31940 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31942 2007-07-13 Bruno Haible <bruno@clisp.org>
31944 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31945 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31947 2007-07-13 Jim Meyering <jim@meyering.net>
31949 df: Don't fail for Tru64's "file-on-file mount".
31950 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31951 so we fall through and use statfs instead. Details here:
31952 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31953 Reported by Albert Chin.
31955 2007-07-13 Bruno Haible <bruno@clisp.org>
31957 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31958 * modules/configmake (License): Likewise.
31959 * modules/gettext (License): Likewise.
31960 * modules/gettext-h (License): Likewise.
31961 * modules/include_next (License): Likewise.
31962 * modules/link-warning (License): Likewise.
31963 * modules/localcharset (License): Likewise.
31964 * modules/localename (License): Likewise.
31965 * modules/lock (License): Likewise.
31966 * modules/relocatable-lib-lgpl (License): Likewise.
31967 * modules/size_max (License): Likewise.
31968 * modules/vasnprintf (License): Likewise.
31969 * modules/wchar (License): Likewise.
31970 * modules/xsize (License): Likewise.
31972 2007-07-13 Bruno Haible <bruno@clisp.org>
31974 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31975 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31977 2007-07-12 Bruno Haible <bruno@clisp.org>
31979 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31980 in the modules files.
31982 2007-07-11 Karl Berry <karl@gnu.org>
31984 * MODULES.html.sh (func_module): use
31985 sed -e '\|^'"${includefile}"'$|d'
31986 instead of /.../d, to avoid errors on $includefile's containing /.
31988 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
31990 * gnulib-tool (func_import): Avoid duplication of --avoid
31992 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31993 names to `_' in variable names.
31995 2007-07-10 Eric Blake <ebb9@byu.net>
31997 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31998 * NEWS: Document this change.
32000 2007-07-08 Bruno Haible <bruno@clisp.org>
32002 Update to Unicode 5.0.
32003 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32004 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32005 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32006 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32007 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32008 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32009 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32010 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32011 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32012 U+10A3F, U+1D242..U+1D244.
32013 (nonspacing_table_ind): Update.
32014 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32015 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32017 2007-07-08 Bruno Haible <bruno@clisp.org>
32019 Update to Unicode 5.0.
32020 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32021 code transform. Extend the name index field of unicode_name_to_code and
32022 unicode_code_to_name from 16 to 24 bits.
32023 * lib/uniname/uniname.c (unicode_character_name,
32024 unicode_name_character): Add the range 0x12xxx to the code transform.
32025 * lib/uniname/uninames.h: Regenerated.
32026 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32028 2007-07-07 Bruno Haible <bruno@clisp.org>
32030 * modules/wcwidth-tests: New file.
32031 * tests/test-wcwidth.c: New file.
32033 Work around MacOS X wcwidth() bug.
32034 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32035 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32036 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32037 original wcwidth in non-UTF-8 locales.
32038 * modules/wcwidth (Depends-on): Add localcharset, streq,
32040 * doc/functions/wcwidth.texi: Update.
32042 2007-07-07 Bruno Haible <bruno@clisp.org>
32044 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32045 (wcwidth): New declaration.
32046 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32048 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32049 here. Prepare for creating <wchar.h> unconditionally.
32050 * modules/wchar (Depends-on): Add link-warning.
32051 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32052 REPLACE_WCWIDTH, and GL_LINK_WARNING.
32053 * lib/wcwidth.h: Remove file.
32054 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32055 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32056 * modules/wcwidth (Files): Remove lib/wcwidth.h.
32057 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32058 (Include): Replace wcwidth.h with <wchar.h>.
32059 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32060 * lib/mbchar.h: Don't include wcwidth.h.
32061 * lib/mbswidth.c: Likewise.
32062 * NEWS: Mention the change.
32064 2007-07-07 Bruno Haible <bruno@clisp.org>
32066 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32067 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32068 definition with an external declaration.
32069 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32070 defined as a function. Remove AC_C_INLINE requirement.
32071 * modules/wcwidth (Files): Add lib/wcwidth.c.
32072 (Makefile.am): Remove redundant statement.
32074 2007-07-07 Bruno Haible <bruno@clisp.org>
32076 * MODULES.html.sh (Unicode string functions): Add the new modules.
32078 * tests/uniwidth/test-u32-strwidth.c: New file.
32079 * modules/uniwidth/u32-strwidth-tests: New file.
32081 * lib/uniwidth/u32-strwidth.c: New file.
32082 * modules/uniwidth/u32-strwidth: New file.
32084 * tests/uniwidth/test-u16-strwidth.c: New file.
32085 * modules/uniwidth/u16-strwidth-tests: New file.
32087 * lib/uniwidth/u16-strwidth.c: New file.
32088 * modules/uniwidth/u16-strwidth: New file.
32090 * tests/uniwidth/test-u8-strwidth.c: New file.
32091 * modules/uniwidth/u8-strwidth-tests: New file.
32093 * lib/uniwidth/u8-strwidth.c: New file.
32094 * modules/uniwidth/u8-strwidth: New file.
32096 * tests/uniwidth/test-u32-width.c: New file.
32097 * modules/uniwidth/u32-width-tests: New file.
32099 * lib/uniwidth/u32-width.c: New file.
32100 * modules/uniwidth/u32-width: New file.
32102 * tests/uniwidth/test-u16-width.c: New file.
32103 * modules/uniwidth/u16-width-tests: New file.
32105 * lib/uniwidth/u16-width.c: New file.
32106 * modules/uniwidth/u16-width: New file.
32108 * tests/uniwidth/test-u8-width.c: New file.
32109 * modules/uniwidth/u8-width-tests: New file.
32111 * lib/uniwidth/u8-width.c: New file.
32112 * modules/uniwidth/u8-width: New file.
32114 * tests/uniwidth/test-uc_width.c: New file.
32115 * modules/uniwidth/width-tests: New file.
32117 * lib/uniwidth/width.c: New file, from GNU libiconv.
32118 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32119 * modules/uniwidth/width: New file.
32121 * lib/uniwidth.h: New file, from GNU libiconv.
32122 * modules/uniwidth/base: New file.
32124 2007-07-07 Bruno Haible <bruno@clisp.org>
32126 * lib/uniname.h: New file, from GNU gettext.
32127 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32128 * lib/uniname/uninames.h: New file, from GNU gettext.
32129 * lib/uniname/uniname.c: New file, from GNU gettext.
32130 * tests/uniname/test-uninames.sh: New file.
32131 * tests/uniname/test-uninames.c: New file, from GNU gettext.
32132 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32133 * modules/uniname/base: New file.
32134 * modules/uniname/uniname: New file.
32135 * modules/uniname/uniname-tests: New file.
32136 * MODULES.html.sh (Unicode string functions): Add the new modules.
32138 2007-07-06 Bruno Haible <bruno@clisp.org>
32140 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32142 2007-07-06 Bruno Haible <bruno@clisp.org>
32144 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32145 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32146 includes <cygwin/sys_time.h> which includes <sys/select.h> which
32147 include <sys/time.h>.
32148 Reported by Eric Blake.
32150 2007-07-06 Eric Blake <ebb9@byu.net>
32152 Fix testing canonicalize on cygwin.
32153 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32154 Revert patch from 2007-06-19.
32155 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32156 canonicalize module is also in use.
32157 * tests/test-canonicalize.c: New file.
32158 * tests/test-canonicalize.sh: Likewise.
32159 * modules/canonicalize-tests: Likewise.
32161 2007-07-06 Jim Meyering <jim@meyering.net>
32163 * lib/getugroups.c (getugroups): Detect getgrent failure.
32164 Adjust comment to reflect reality: this function may return -1.
32166 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
32168 * build-aux/bootstrap (TP_URL,get_translations): Update to use
32169 the new TP address.
32171 (gnulib_mk): New variable.
32173 2007-07-05 Jim Meyering <jim@meyering.net>
32175 Don't let endgrent clobber errno, no matter how improbable.
32176 * lib/getugroups.c (getugroups): Save and restore errno around
32179 Close the group DB even when failing with 2^31 or more members.
32180 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32182 2007-07-04 Jim Meyering <jim@meyering.net>
32184 * lib/getugroups.h: New file.
32185 * lib/getugroups.c: Include "getugroups.h".
32186 Remove uses of "register" keyword.
32187 Move local variable, "cp", down into scope where used.
32188 Give "username" parameter the "const" attribute.
32189 * modules/getugroups (Files): Add lib/getugroups.h
32191 2007-07-04 Karl Berry <karl@gnu.org>
32193 * MODULES.html.sh (func_all_modules): Complete rename of
32194 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32196 2007-07-02 Bruno Haible <bruno@clisp.org>
32198 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32199 mode, when inttypes.h comes from gnulib.
32200 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32202 2007-07-02 Simon Josefsson <simon@josefsson.org>
32204 * NEWS: Mention lgpl module name change.
32206 * modules/lgpl-2.1: Renamed from lgpl.
32208 * NEWS: Mention gpl module name change.
32210 * modules/gpl-3.0: New file, based on gpl-2.0.
32212 * modules/gpl-2.0: Renamed from gpl.
32214 * modules/gpl: Fix filename, doc/gpl.texi is now found at
32217 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
32219 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32220 #define __STDC_LIMIT_MACROS temporarily while including
32221 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32222 Problem reported by Joel E. Denny in
32223 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32225 2007-07-01 Bruno Haible <bruno@clisp.org>
32227 * lib/unistdio.h: New file.
32228 * lib/unistdio/u-asnprintf.h: New file.
32229 * lib/unistdio/u-asprintf.h: New file.
32230 * lib/unistdio/u-printf-args.c: New file.
32231 * lib/unistdio/u-printf-args.h: New file.
32232 * lib/unistdio/u-printf-parse.h: New file.
32233 * lib/unistdio/u-snprintf.h: New file.
32234 * lib/unistdio/u-sprintf.h: New file.
32235 * lib/unistdio/u-vasprintf.h: New file.
32236 * lib/unistdio/u-vsnprintf.h: New file.
32237 * lib/unistdio/u-vsprintf.h: New file.
32238 * lib/unistdio/ulc-asnprintf.c: New file.
32239 * lib/unistdio/ulc-asprintf.c: New file.
32240 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32241 * lib/unistdio/ulc-printf-parse.c: New file.
32242 * lib/unistdio/ulc-snprintf.c: New file.
32243 * lib/unistdio/ulc-sprintf.c: New file.
32244 * lib/unistdio/ulc-vasnprintf.c: New file.
32245 * lib/unistdio/ulc-vasprintf.c: New file.
32246 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32247 * lib/unistdio/ulc-vsnprintf.c: New file.
32248 * lib/unistdio/ulc-vsprintf.c: New file.
32249 * lib/unistdio/u8-asnprintf.c: New file.
32250 * lib/unistdio/u8-asprintf.c: New file.
32251 * lib/unistdio/u8-printf-parse.c: New file.
32252 * lib/unistdio/u8-snprintf.c: New file.
32253 * lib/unistdio/u8-sprintf.c: New file.
32254 * lib/unistdio/u8-vasnprintf.c: New file.
32255 * lib/unistdio/u8-vasprintf.c: New file.
32256 * lib/unistdio/u8-vsnprintf.c: New file.
32257 * lib/unistdio/u8-vsprintf.c: New file.
32258 * lib/unistdio/u8-u8-asnprintf.c: New file.
32259 * lib/unistdio/u8-u8-asprintf.c: New file.
32260 * lib/unistdio/u8-u8-snprintf.c: New file.
32261 * lib/unistdio/u8-u8-sprintf.c: New file.
32262 * lib/unistdio/u8-u8-vasnprintf.c: New file.
32263 * lib/unistdio/u8-u8-vasprintf.c: New file.
32264 * lib/unistdio/u8-u8-vsnprintf.c: New file.
32265 * lib/unistdio/u8-u8-vsprintf.c: New file.
32266 * lib/unistdio/u16-asnprintf.c: New file.
32267 * lib/unistdio/u16-asprintf.c: New file.
32268 * lib/unistdio/u16-printf-parse.c: New file.
32269 * lib/unistdio/u16-snprintf.c: New file.
32270 * lib/unistdio/u16-sprintf.c: New file.
32271 * lib/unistdio/u16-vasnprintf.c: New file.
32272 * lib/unistdio/u16-vasprintf.c: New file.
32273 * lib/unistdio/u16-vsnprintf.c: New file.
32274 * lib/unistdio/u16-vsprintf.c: New file.
32275 * lib/unistdio/u16-u16-asnprintf.c: New file.
32276 * lib/unistdio/u16-u16-asprintf.c: New file.
32277 * lib/unistdio/u16-u16-snprintf.c: New file.
32278 * lib/unistdio/u16-u16-sprintf.c: New file.
32279 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32280 * lib/unistdio/u16-u16-vasprintf.c: New file.
32281 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32282 * lib/unistdio/u16-u16-vsprintf.c: New file.
32283 * lib/unistdio/u32-asnprintf.c: New file.
32284 * lib/unistdio/u32-asprintf.c: New file.
32285 * lib/unistdio/u32-printf-parse.c: New file.
32286 * lib/unistdio/u32-snprintf.c: New file.
32287 * lib/unistdio/u32-sprintf.c: New file.
32288 * lib/unistdio/u32-vasnprintf.c: New file.
32289 * lib/unistdio/u32-vasprintf.c: New file.
32290 * lib/unistdio/u32-vsnprintf.c: New file.
32291 * lib/unistdio/u32-vsprintf.c: New file.
32292 * lib/unistdio/u32-u32-asnprintf.c: New file.
32293 * lib/unistdio/u32-u32-asprintf.c: New file.
32294 * lib/unistdio/u32-u32-snprintf.c: New file.
32295 * lib/unistdio/u32-u32-sprintf.c: New file.
32296 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32297 * lib/unistdio/u32-u32-vasprintf.c: New file.
32298 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32299 * lib/unistdio/u32-u32-vsprintf.c: New file.
32300 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32301 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32302 * tests/unistdio/test-ulc-printf1.h: New file.
32303 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32304 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32305 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32306 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32307 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32308 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32309 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32310 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32311 * tests/unistdio/test-u8-asnprintf1.c: New file.
32312 * tests/unistdio/test-u8-asnprintf1.h: New file.
32313 * tests/unistdio/test-u8-printf1.h: New file.
32314 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32315 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32316 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32317 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32318 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32319 * tests/unistdio/test-u8-vasprintf1.c: New file.
32320 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32321 * tests/unistdio/test-u8-vsprintf1.c: New file.
32322 * tests/unistdio/test-u16-asnprintf1.c: New file.
32323 * tests/unistdio/test-u16-asnprintf1.h: New file.
32324 * tests/unistdio/test-u16-printf1.h: New file.
32325 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32326 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32327 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32328 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32329 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32330 * tests/unistdio/test-u16-vasprintf1.c: New file.
32331 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32332 * tests/unistdio/test-u16-vsprintf1.c: New file.
32333 * tests/unistdio/test-u32-asnprintf1.c: New file.
32334 * tests/unistdio/test-u32-asnprintf1.h: New file.
32335 * tests/unistdio/test-u32-printf1.h: New file.
32336 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32337 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32338 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32339 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32340 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32341 * tests/unistdio/test-u32-vasprintf1.c: New file.
32342 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32343 * tests/unistdio/test-u32-vsprintf1.c: New file.
32344 * modules/unistdio/base: New file.
32345 * modules/unistdio/u-printf-args: New file.
32346 * modules/unistdio/ulc-asnprintf: New file.
32347 * modules/unistdio/ulc-asprintf: New file.
32348 * modules/unistdio/ulc-fprintf: New file.
32349 * modules/unistdio/ulc-printf-parse: New file.
32350 * modules/unistdio/ulc-snprintf: New file.
32351 * modules/unistdio/ulc-sprintf: New file.
32352 * modules/unistdio/ulc-vasnprintf: New file.
32353 * modules/unistdio/ulc-vasprintf: New file.
32354 * modules/unistdio/ulc-vfprintf: New file.
32355 * modules/unistdio/ulc-vsnprintf: New file.
32356 * modules/unistdio/ulc-vsprintf: New file.
32357 * modules/unistdio/u8-asnprintf: New file.
32358 * modules/unistdio/u8-asprintf: New file.
32359 * modules/unistdio/u8-printf-parse: New file.
32360 * modules/unistdio/u8-snprintf: New file.
32361 * modules/unistdio/u8-sprintf: New file.
32362 * modules/unistdio/u8-vasnprintf: New file.
32363 * modules/unistdio/u8-vasprintf: New file.
32364 * modules/unistdio/u8-vsnprintf: New file.
32365 * modules/unistdio/u8-vsprintf: New file.
32366 * modules/unistdio/u8-u8-asnprintf: New file.
32367 * modules/unistdio/u8-u8-asprintf: New file.
32368 * modules/unistdio/u8-u8-snprintf: New file.
32369 * modules/unistdio/u8-u8-sprintf: New file.
32370 * modules/unistdio/u8-u8-vasnprintf: New file.
32371 * modules/unistdio/u8-u8-vasprintf: New file.
32372 * modules/unistdio/u8-u8-vsnprintf: New file.
32373 * modules/unistdio/u8-u8-vsprintf: New file.
32374 * modules/unistdio/u16-asnprintf: New file.
32375 * modules/unistdio/u16-asprintf: New file.
32376 * modules/unistdio/u16-printf-parse: New file.
32377 * modules/unistdio/u16-snprintf: New file.
32378 * modules/unistdio/u16-sprintf: New file.
32379 * modules/unistdio/u16-vasnprintf: New file.
32380 * modules/unistdio/u16-vasprintf: New file.
32381 * modules/unistdio/u16-vsnprintf: New file.
32382 * modules/unistdio/u16-vsprintf: New file.
32383 * modules/unistdio/u16-u16-asnprintf: New file.
32384 * modules/unistdio/u16-u16-asprintf: New file.
32385 * modules/unistdio/u16-u16-snprintf: New file.
32386 * modules/unistdio/u16-u16-sprintf: New file.
32387 * modules/unistdio/u16-u16-vasnprintf: New file.
32388 * modules/unistdio/u16-u16-vasprintf: New file.
32389 * modules/unistdio/u16-u16-vsnprintf: New file.
32390 * modules/unistdio/u16-u16-vsprintf: New file.
32391 * modules/unistdio/u32-asnprintf: New file.
32392 * modules/unistdio/u32-asprintf: New file.
32393 * modules/unistdio/u32-printf-parse: New file.
32394 * modules/unistdio/u32-snprintf: New file.
32395 * modules/unistdio/u32-sprintf: New file.
32396 * modules/unistdio/u32-vasnprintf: New file.
32397 * modules/unistdio/u32-vasprintf: New file.
32398 * modules/unistdio/u32-vsnprintf: New file.
32399 * modules/unistdio/u32-vsprintf: New file.
32400 * modules/unistdio/u32-u32-asnprintf: New file.
32401 * modules/unistdio/u32-u32-asprintf: New file.
32402 * modules/unistdio/u32-u32-snprintf: New file.
32403 * modules/unistdio/u32-u32-sprintf: New file.
32404 * modules/unistdio/u32-u32-vasnprintf: New file.
32405 * modules/unistdio/u32-u32-vasprintf: New file.
32406 * modules/unistdio/u32-u32-vsnprintf: New file.
32407 * modules/unistdio/u32-u32-vsprintf: New file.
32408 * modules/unistdio/ulc-asnprintf-tests: New file.
32409 * modules/unistdio/ulc-vasnprintf-tests: New file.
32410 * modules/unistdio/ulc-vasprintf-tests: New file.
32411 * modules/unistdio/ulc-vsnprintf-tests: New file.
32412 * modules/unistdio/ulc-vsprintf-tests: New file.
32413 * modules/unistdio/u8-asnprintf-tests: New file.
32414 * modules/unistdio/u8-vasnprintf-tests: New file.
32415 * modules/unistdio/u8-vasprintf-tests: New file.
32416 * modules/unistdio/u8-vsnprintf-tests: New file.
32417 * modules/unistdio/u8-vsprintf-tests: New file.
32418 * modules/unistdio/u16-asnprintf-tests: New file.
32419 * modules/unistdio/u16-vasnprintf-tests: New file.
32420 * modules/unistdio/u16-vasprintf-tests: New file.
32421 * modules/unistdio/u16-vsnprintf-tests: New file.
32422 * modules/unistdio/u16-vsprintf-tests: New file.
32423 * modules/unistdio/u32-asnprintf-tests: New file.
32424 * modules/unistdio/u32-vasnprintf-tests: New file.
32425 * modules/unistdio/u32-vasprintf-tests: New file.
32426 * modules/unistdio/u32-vsnprintf-tests: New file.
32427 * modules/unistdio/u32-vsprintf-tests: New file.
32428 * MODULES.html.sh (Unicode string functions): Add the new modules.
32430 2007-07-01 Bruno Haible <bruno@clisp.org>
32432 * lib/sprintf.c (sprintf): Limit the available length estimation,
32433 to avoid address wraparound.
32434 * lib/vsprintf.c (vsprintf): Likewise.
32435 * modules/sprintf-posix (Dependencies): Add stdint.
32436 * modules/vsprintf-posix (Dependencies): Likewise.
32438 2007-07-01 Bruno Haible <bruno@clisp.org>
32440 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32441 Windows PATH as well. Conservative double-quoting. Comments.
32443 2007-07-01 Bruno Haible <bruno@clisp.org>
32444 Eric Blake <ebb9@byu.net>
32445 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32447 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32448 empty components in $PATH, denoting '.'.
32450 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32452 * gnulib-tool: Fix indentation.
32453 (func_create_megatestdir): Likewise.
32454 Report by Bruno Haible.
32456 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32458 Sync from Automake.
32459 * build-aux/gnupload: Fix shell portability issues with for loops.
32460 Report by Karl Berry.
32462 2007-06-29 Simon Josefsson <simon@josefsson.org>
32464 * build-aux/maint.mk (POURL): Use translationproject.org.
32466 2007-06-27 Simon Josefsson <simon@josefsson.org>
32467 Bruno Haible <bruno@clisp.org>
32469 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32470 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32471 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32472 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32473 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32475 2007-06-27 Bruno Haible <bruno@clisp.org>
32477 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32478 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32480 2007-06-26 Karl Berry <karl@gnu.org>
32482 * MODULES.html.sh: remove xreadlink-with-size.
32484 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32486 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32487 method that I hope also handles the double-include problem noted
32489 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32491 2007-06-23 Bruno Haible <bruno@clisp.org>
32493 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32494 Don't let the 'mostlyclean' target fail if the last subdirectory could
32496 Reported by Karl Berry.
32498 2007-06-23 Bruno Haible <bruno@clisp.org>
32500 * gnulib-tool (echo): Add a speedier workaround for ksh.
32501 * tests/test-echo.sh: Likewise.
32503 2007-06-23 Bruno Haible <bruno@clisp.org>
32505 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32506 * tests/test-echo.sh: Likewise.
32508 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32510 * gnulib-tool (IFS): Initialize early, so we don't set it to
32512 (self_abspathname): Rewrite algorithm to set it, reindent.
32513 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32514 (func_create_megatestdir): Merge some sed scripts.
32516 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32518 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32519 exposed by Sun Studio 11 cc on Solaris 8.
32521 2007-06-22 Bruno Haible <bruno@clisp.org>
32523 * gnulib-tool (echo): Ensure the echo primitive does not interpret
32525 * tests/test-echo.sh: New file.
32527 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32529 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32530 simplify `sed_replace_build_aux' scripts, they are portable but
32531 echoing them with `echo' is not.
32532 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32534 2007-06-21 Karl Berry <karl@gnu.org>
32536 * config/srclist.txt: guess we can't handle the licenses via
32537 srclist at the moment.
32539 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
32541 * MODULES.html.sh: Add include_next.
32542 * modules/include_next: New file.
32544 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
32546 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32548 (gl_CHECK_NEXT_HEADERS): New macro.
32549 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32550 the obsolescent gl_ABSOLUTE_HEADER.
32551 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32552 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32553 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32554 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32555 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32556 * m4/math_h.m4 (gl_MATH_H): Likewise.
32557 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32558 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32559 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32560 * m4/stdint.m4 (gl_STDINT_H): Likewise.
32561 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32562 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32563 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32564 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32565 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32566 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32567 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32568 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32569 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32570 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32571 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32572 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32573 * m4/inttypes.m4 (gl_INTTYPES_H): Define
32574 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32575 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32576 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32577 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32578 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32579 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32580 * lib/float_.h: Likewise.
32581 * lib/inttypes_.h: Likewise.
32582 * lib/math_.h: Likewise.
32583 * lib/search_.h: Likewise.
32584 * lib/signal_.h: Likewise.
32585 * lib/stdint_.h: Likewise.
32586 * lib/stdio_.h: Likewise.
32587 * lib/stdlib_.h: Likewise.
32588 * lib/string_.h: Likewise.
32589 * lib/sys_stat_.h: Likewise.
32590 * lib/sys_time_.h: Likewise.
32591 * lib/time_.h: Likewise.
32592 * lib/unistd_.h: Likewise.
32593 * lib/wchar_.h: Likewise.
32594 * lib/wctype_.h: Likewise.
32595 * lib/dirent_.h: Likewise.
32596 * lib/iconv_.h: Likewise.
32597 * lib/locale_.h: Likewise.
32598 * lib/netinet_in_.h: Likewise.
32599 * lib/sys_select_.h: Likewise.
32600 * lib/sys_socket_.h: Likewise.
32601 * lib/sysexits_.h: Likewise.
32602 * modules/fcntl (Depends-on): Depend on include_next, not
32604 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32605 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32606 * modules/fchdir: Likewise.
32607 * modules/float: Likewise.
32608 * modules/iconv_open: Likewise.
32609 * modules/inttypes: Likewise.
32610 * modules/locale: Likewise.
32611 * modules/math: Likewise.
32612 * modules/netinet_in: Likewise.
32613 * modules/search: Likewise.
32614 * modules/signal: Likewise.
32615 * modules/stdint: Likewise.
32616 * modules/stdio: Likewise.
32617 * modules/stdlib: Likewise.
32618 * modules/string: Likewise.
32619 * modules/sys_select: Likewise.
32620 * modules/sys_socket: Likewise.
32621 * modules/sys_stat: Likewise.
32622 * modules/sys_time: Likewise.
32623 * modules/sysexits: Likewise.
32624 * modules/time: Likewise.
32625 * modules/unistd: Likewise.
32626 * modules/wchar: Likewise.
32627 * modules/wctype: Likewise.
32628 * modules/sys_stat: Change maintainer to "all".
32629 * modules/unistd: Likewise.
32631 2007-06-20 Karl Berry <karl@gnu.org>
32633 * config/srclist.txt: track www changes in license files.
32635 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
32637 * build-aux/bootstrap: Remove stray dot.
32638 Make sure build_aux settings are honored when linking
32639 gnulib_extra_files.
32641 2007-06-19 Eric Blake <ebb9@byu.net>
32643 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32644 Allow compilation on cygwin.
32646 2007-06-19 Jim Meyering <jim@meyering.net>
32648 xreadlink-with-size: Remove module. No longer used.
32649 Ex-callers now use xreadlink or mreadlink-with-size.
32650 * modules/xreadlink-with-size: Remove module.
32651 * lib/xreadlink-with-size.c: Remove file.
32652 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32653 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
32654 just before the function definition *is* accurate.
32656 Eliminate one way canonicalize_filename_mode could exit.
32657 * lib/canonicalize.c (canonicalize_filename_mode):
32658 Use mreadlink_with_size, not xreadlink_with_size.
32660 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
32662 Detect porting problems to FreeBSD/arm, which has time_t wider than
32663 long int. Original problem reported for GNU diff by Xin Li in
32664 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32665 * modules/getdate (Depends-on): Add intprops, verify.
32666 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
32667 is an integer type no wider than long int.
32669 2007-06-18 Jim Meyering <jim@meyering.net>
32671 New module: mreadlink-with-size.
32672 * MODULES.html.sh: Add mreadlink-with-size.
32673 * modules/mreadlink-with-size: New module
32674 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32675 not xreadlink-with-size.
32676 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32678 2007-06-16 Bruno Haible <bruno@clisp.org>
32680 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32681 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32682 Reported by Gary V. Vaughan <gary@gnu.org>.
32684 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
32686 Revamp lchown so that it lives in unistd.h where it belongs.
32687 * lib/lchown.h: Remove.
32688 * lib/dirchownmod.c: Don't include lib/lchown.h.
32689 * lib/fchownat.c: Likewise.
32690 * lib/openat.c: Likewise.
32691 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32692 does not follow symlinks.
32693 (EOPNOTSUPP): Define if not defined.
32694 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32696 (lchown): New decl.
32697 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32698 Do not check for lchown decl.
32699 Set REPLACE_LCHOWN.
32700 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32702 * modules/chown: Make it clear it follows symlinks.
32703 * modules/lchown: Make it clear it doesn't follow symlinks.
32704 (Files): Remove lib/lchown.h
32705 (Depends-on): Add unistd.
32706 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32707 (Include): Include <unistd.h>, not "lchown.h".
32708 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32711 2007-06-15 Jim Meyering <jim@meyering.net>
32713 Change license (GPL to LGPL) of fsusage and dependents.
32714 * modules/fsusage (License): Change to LGPL.
32715 * modules/full-read (License): Likewise.
32716 * modules/full-write (License): Likewise.
32717 * modules/safe-read (License): Likewise.
32718 * modules/safe-write (License): Likewise.
32720 2007-06-14 Ben Pfaff <blp@gnu.org>
32722 Missing part of allocsa -> malloca transition.
32723 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32726 2007-06-12 Bruno Haible <bruno@clisp.org>
32728 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32729 to ia64, x86_64, i386.
32730 Reported by Eric Blake.
32732 2007-06-12 Bruno Haible <bruno@clisp.org>
32734 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32735 cross-compiling to x86_64.
32737 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
32739 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32740 glitch reported by Ralf Wildenhues in
32741 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32743 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32746 2007-06-11 Bruno Haible <bruno@clisp.org>
32748 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32749 replacement string.
32750 Reported by Eric Blake.
32752 2007-06-10 Bruno Haible <bruno@clisp.org>
32754 Prepare vasnprintf code for use with Unicode strings.
32755 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32756 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32758 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32759 a_u32_string variants.
32760 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32761 * lib/printf-args.c: Don't include config.h and the specification
32762 header if PRINTF_FETCHARGS is already defined.
32763 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32764 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32765 TYPE_U16_STRING, TYPE_U32_STRING.
32766 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32767 u16_directive, u16_directives, u32_directive, u32_directives): New
32769 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32771 * lib/printf-parse.c: Don't include config.h and the specification
32772 header if PRINTF_PARSE is already defined. Eliminate the set of
32773 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32774 them now. Include c-ctype.h.
32775 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32776 directive and CHAR_T_ONLY_ASCII.
32777 * lib/vasnprintf.c: Don't include config.h and the specification header
32778 if VASNPRINTF is already defined.
32779 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32780 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32781 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32782 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32783 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32784 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32786 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32787 pad_ourselves also in this case, with the 'c' and 's' directives, and
32788 with a different notion of "width".
32789 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32791 2007-06-10 Bruno Haible <bruno@clisp.org>
32793 * modules/unistr/u32-mbsnlen: New file.
32794 * lib/unistr/u32-mbsnlen.c: New file.
32796 * modules/unistr/u16-mbsnlen: New file.
32797 * lib/unistr/u16-mbsnlen.c: New file.
32799 * modules/unistr/u8-mbsnlen: New file.
32800 * lib/unistr/u8-mbsnlen.c: New file.
32802 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32805 2007-06-10 Bruno Haible <bruno@clisp.org>
32807 * lib/string_.h (mbsnlen): New declaration.
32808 * lib/mbsnlen.c: New file.
32809 * m4/mbsnlen.m4: New file.
32810 * modules/mbsnlen: New file.
32811 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32812 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32813 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32815 2007-06-10 Bruno Haible <bruno@clisp.org>
32817 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32819 2007-06-10 Bruno Haible <bruno@clisp.org>
32821 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32822 * lib/mbuiter.h: Likewise.
32824 2007-06-10 Bruno Haible <bruno@clisp.org>
32826 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32829 2007-06-10 Karl Berry <karl@gnu.org>
32831 * config/srclist.txt: remove gettext entries, Bruno prefers
32832 to update individually.
32834 2007-06-10 Bruno Haible <bruno@clisp.org>
32836 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32837 'maxlen'. Ensure only length + width bytes are allocated, not
32838 length + 1 + width.
32840 2007-06-09 Bruno Haible <bruno@clisp.org>
32842 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32843 (CHAR_T): Remove macro.
32844 (VASNPRINTF): Update.
32846 2007-06-09 Bruno Haible <bruno@clisp.org>
32848 * MODULES.html.sh (Unicode string functions): Add the new modules.
32850 * modules/uniconv/u32-conv-to-enc: New file.
32851 * lib/uniconv/u32-conv-to-enc.c: New file.
32852 * modules/uniconv/u32-conv-to-enc-tests: New file.
32853 * tests/uniconv/test-u32-conv-to-enc.c: New file.
32855 * modules/uniconv/u16-conv-to-enc: New file.
32856 * lib/uniconv/u16-conv-to-enc.c: New file.
32857 * lib/uniconv/u-conv-to-enc.h: New file.
32858 * modules/uniconv/u16-conv-to-enc-tests: New file.
32859 * tests/uniconv/test-u16-conv-to-enc.c: New file.
32861 * modules/uniconv/u8-conv-to-enc: New file.
32862 * lib/uniconv/u8-conv-to-enc.c: New file.
32863 * modules/uniconv/u8-conv-to-enc-tests: New file.
32864 * tests/uniconv/test-u8-conv-to-enc.c: New file.
32866 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32867 u32_conv_to_encoding): New declarations.
32869 2007-06-09 Bruno Haible <bruno@clisp.org>
32871 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32873 2007-06-09 Bruno Haible <bruno@clisp.org>
32875 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32876 * modules/malloca: Renamed from modules/allocsa, updated.
32877 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32878 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32879 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32880 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32881 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32882 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32883 * modules/xmalloca: Renamed from modules/xallocsa, updated.
32884 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32885 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32886 * modules/c-strcasestr (Depends-on): Update.
32887 * lib/c-strcasestr.c: Update.
32888 * modules/c-strstr (Depends-on): Update.
32889 * lib/c-strstr.c: Update.
32890 * modules/canonicalize-lgpl (Depends-on): Update.
32891 * lib/canonicalize-lgpl.c: Update.
32892 * modules/clean-temp (Depends-on): Update.
32893 * lib/clean-temp.c: Update.
32894 * modules/csharpcomp (Depends-on): Update.
32895 * lib/csharpcomp.c: Update.
32896 * modules/csharpexec (Depends-on): Update.
32897 * lib/csharpexec.c: Update.
32898 * modules/javacomp (Depends-on): Update.
32899 * lib/javacomp.c: Update.
32900 * modules/javaexec (Depends-on): Update.
32901 * lib/javaexec.c: Update.
32902 * modules/mbscasestr (Depends-on): Update.
32903 * lib/mbscasestr.c: Update.
32904 * modules/mbsstr (Depends-on): Update.
32905 * lib/mbsstr.c: Update.
32906 * modules/setenv (Depends-on): Update.
32907 * lib/setenv.c: Update.
32908 * modules/strcasestr (Depends-on): Update.
32909 * lib/strcasestr.c: Update.
32910 * modules/striconveha (Depends-on): Update.
32911 * lib/striconveha.c: Update.
32912 * modules/relocatable-prog-wrapper (Files): Update.
32913 * lib/relocwrapper.c: Update.
32914 * build-aux/install-reloc: Update.
32915 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32917 2007-06-08 Bruno Haible <bruno@clisp.org>
32920 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32921 * lib/fpurge.c (fpurge): Likewise.
32922 * lib/freading.c (freading): Likewise.
32923 * lib/fseeko.c (rpl_fseeko): Likewise.
32924 * lib/fseterr.c (fseterr): Likewise.
32925 * lib/fwriting.c (fwriting): Likewise.
32926 * tests/test-fflush.c (main): Avoid a failure on uClibc.
32928 2007-06-08 Bruno Haible <bruno@clisp.org>
32930 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32931 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32932 * modules/gettext (Files): Add m4/intlmacosx.m4.
32934 2007-06-07 Bruno Haible <bruno@clisp.org>
32936 * modules/localename-tests: New file.
32937 * tests/test-localename.c: New file.
32939 New module 'localename'.
32940 * lib/localename.h: New file.
32941 * lib/localename.c: New file, from GNU gettext.
32942 * m4/localename.m4: New file.
32943 * modules/localename: New file.
32945 2007-06-07 Bruno Haible <bruno@clisp.org>
32947 Work around the lack of <wchar.h> on some builds of uClibc.
32948 * doc/headers/wchar.texi: Update.
32949 * lib/wchar_.h: Include <wchar.h> only if it exists.
32950 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32951 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32952 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32954 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32955 * modules/mbfile (Depends-on): Add wchar.
32956 * modules/mbiter (Depends-on): Likewise.
32957 * modules/mbuiter (Depends-on): Likewise.
32958 Reported by Simon Josefsson.
32960 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
32962 Work around problem reported by Steven M. Schweda in
32963 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32964 Tru64 5.1B with the Compaq compiler environment installed declares
32965 an 'isblank' function but does not define it in the C library.
32966 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32967 * lib/regex_internal.h (isblank): Likewise.
32968 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32969 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32971 2007-06-05 Bruno Haible <bruno@clisp.org>
32973 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32975 * modules/printf-safe: New file.
32976 * modules/fprintf-posix (Depends-on): Add printf-safe.
32977 * modules/printf-posix (Depends-on): Likewise.
32978 * modules/snprintf-posix (Depends-on): Likewise.
32979 * modules/sprintf-posix (Depends-on): Likewise.
32980 * modules/vasnprintf-posix (Depends-on): Likewise.
32981 * modules/vasprintf-posix (Depends-on): Likewise.
32982 * modules/vfprintf-posix (Depends-on): Likewise.
32983 * modules/vprintf-posix (Depends-on): Likewise.
32984 * modules/vsnprintf-posix (Depends-on): Likewise.
32985 * modules/vsprintf-posix (Depends-on): Likewise.
32986 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32987 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32988 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32989 "no" on i386, x86_64, ia64.
32990 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32991 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32992 on i386, x86_64, ia64.
32993 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32994 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32995 on i386, x86_64, ia64.
32996 * tests/test-vasnprintf-posix.c: Include float.h.
32997 (LDBL80_WORDS): New macro.
32998 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32999 on i386, x86_64, ia64.
33000 * tests/test-vasprintf-posix.c: Include float.h.
33001 (LDBL80_WORDS): New macro.
33002 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33003 on i386, x86_64, ia64.
33004 * tests/test-snprintf-posix.c: Include float.h.
33005 * tests/test-sprintf-posix.c: Likewise.
33006 * tests/test-vsnprintf-posix.c: Likewise.
33007 * tests/test-vsprintf-posix.c: Likewise.
33009 2007-06-05 Bruno Haible <bruno@clisp.org>
33011 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33012 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33013 non-IEEE numbers on i386, x86_64, ia64.
33014 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33015 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33016 * tests/test-isnanl.h: Include float.h.
33017 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33019 2007-06-05 Bruno Haible <bruno@clisp.org>
33021 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33022 also the %a / %A. Handle the %a / %A code before this extra handling.
33024 2007-06-05 Bruno Haible <bruno@clisp.org>
33026 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33027 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33029 2007-06-05 Bruno Haible <bruno@clisp.org>
33031 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33032 typo in variable name.
33034 2007-06-05 Eric Blake <ebb9@byu.net>
33036 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33037 Reported by Simon Josefsson.
33039 2007-06-04 Bruno Haible <bruno@clisp.org>
33041 Avoid test failures on some PowerPC platforms.
33042 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33043 Define differently for PowerPC.
33044 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33045 Reported by Gary V. Vaughan <gary@gnu.org>.
33047 2007-06-02 Bruno Haible <bruno@clisp.org>
33049 Fix test-stdint failure on FreeBSD/ia64.
33050 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33051 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33052 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33053 * doc/headers/stdint.texi: Update.
33055 2007-06-01 Bruno Haible <bruno@clisp.org>
33057 * tests/test-binary-io.c (main): Pass a third argument to open().
33058 Reported by Gary V. Vaughan <gary@gnu.org>.
33060 2007-06-01 Bruno Haible <bruno@clisp.org>
33062 * doc/functions/frexpl.texi: Update for mingw.
33064 2007-06-01 Bruno Haible <bruno@clisp.org>
33066 * tests/test-lseek.c (main): Disable test of errno for invalid third
33068 * doc/functions/lseek.texi: Update.
33069 Reported by Gary V. Vaughan <gary@gnu.org>.
33071 2007-05-28 Bruno Haible <bruno@clisp.org>
33073 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33075 2007-05-31 Eric Blake <ebb9@byu.net>
33077 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33080 2007-05-30 Eric Blake <ebb9@byu.net>
33081 and Bruno Haible <bruno@clisp.org>
33083 Work around mingw test failures exposed by m4-1.4.9b.
33084 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33085 * tests/test-unistd.c: Disable uid_t and git_t tests for the
33088 2007-05-30 Bruno Haible <bruno@clisp.org>
33090 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33091 assuming that they are closed. Needed on HP-UX 11.
33093 2007-05-29 Bruno Haible <bruno@clisp.org>
33095 Fix a problem with #include_next.
33096 * lib/dirent_.h: Split the double-inclusion guard.
33097 * lib/fcntl_.h: Likewise.
33098 * lib/float_.h: Likewise.
33099 * lib/iconv_.h: Likewise.
33100 * lib/inttypes_.h: Likewise.
33101 * lib/locale_.h: Likewise.
33102 * lib/math_.h: Likewise.
33103 * lib/netinet_in_.h: Likewise.
33104 * lib/search_.h: Likewise.
33105 * lib/signal_.h: Likewise.
33106 * lib/stdint_.h: Likewise.
33107 * lib/stdio_.h: Likewise.
33108 * lib/stdlib_.h: Likewise.
33109 * lib/string_.h: Likewise.
33110 * lib/sys_select_.h: Likewise.
33111 * lib/sys_socket_.h: Likewise.
33112 * lib/sys_stat_.h: Likewise.
33113 * lib/sys_time_.h: Likewise.
33114 * lib/sysexits_.h: Likewise.
33115 * lib/time_.h: Likewise.
33116 * lib/unistd_.h: Likewise.
33117 * lib/wchar_.h: Likewise.
33118 * lib/wctype_.h: Likewise.
33120 2007-05-29 Bruno Haible <bruno@clisp.org>
33122 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33125 2007-05-29 Bruno Haible <bruno@clisp.org>
33127 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33129 Reported by Eric Blake.
33131 2007-05-29 Bruno Haible <bruno@clisp.org>
33133 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33136 2007-05-29 Eric Blake <ebb9@byu.net>
33137 Bruno Haible <bruno@clisp.org>
33139 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33142 2007-05-28 Eric Blake <ebb9@byu.net>
33144 * modules/closein-tests (test_closein_LDADD): Support test on
33145 cygwin with libtool.
33147 2007-05-28 Bruno Haible <bruno@clisp.org>
33149 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33150 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33151 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33152 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33153 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33154 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33155 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33156 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33157 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33159 2007-05-28 Eric Blake <ebb9@byu.net>
33161 Unconditionally include <config.h> in unit tests.
33162 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33163 * tests/test-allocsa.c, tests/test-arcfour.c,
33164 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33165 tests/test-array_list.c, tests/test-array_oset.c,
33166 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33167 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33168 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33169 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33170 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33171 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33172 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33173 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33174 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33175 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33176 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33177 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33178 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33179 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33180 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33181 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33182 test-md5.c, test-memmem.c, test-printf-posix.c,
33183 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33184 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33185 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33186 test-strcasestr.c, test-striconv.c, test-striconveh.c,
33187 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33188 test-vasnprintf-posix2.c, test-vasnprintf.c,
33189 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33190 test-vfprintf-posix.c, test-vprintf-posix.c,
33191 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33192 test-xvasprintf.c: Likewise.
33194 2007-05-28 Bruno Haible <bruno@clisp.org>
33196 * gnulib-tool (func_import): Remember the --with-tests command-line
33197 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33198 Reported by Eric Blake.
33200 2007-05-28 Bruno Haible <bruno@clisp.org>
33202 * modules/ftell-tests: New file.
33203 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33204 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33206 * lib/ftell.c: New file.
33207 * modules/ftell: New file.
33208 * m4/ftell.m4: New file.
33209 * doc/functions/ftell.texi: Update.
33210 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33212 * lib/stdio_.h (rpl_ftell): New declaration.
33213 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33216 2007-05-28 Eric Blake <ebb9@byu.net>
33218 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33220 2007-05-28 Bruno Haible <bruno@clisp.org>
33222 * modules/fseek-tests: New file.
33223 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33224 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33226 * lib/fseek.c: New file.
33227 * modules/fseek: New file.
33228 * m4/fseek.m4: New file.
33229 * doc/functions/fseek.texi: Update.
33230 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33232 * lib/stdio_.h (rpl_fseek): New declaration.
33233 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33236 2007-05-28 Bruno Haible <bruno@clisp.org>
33238 * lib/stdio_.h (fflush): More comments.
33240 2007-05-28 Bruno Haible <bruno@clisp.org>
33242 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33245 2007-05-28 Eric Blake <ebb9@byu.net>
33247 Improve lseek module.
33248 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33249 * lib/unistd_.h (lseek): Scale back link warning message.
33250 * tests/test-lseek.c: Beef up test.
33251 * tests/test-lseek.sh: Exercise more facets of lseek.
33252 Reported by Bruno Haible.
33254 2007-05-28 Bruno Haible <bruno@clisp.org>
33256 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33259 2007-05-27 Bruno Haible <bruno@clisp.org>
33261 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33263 2007-05-27 Bruno Haible <bruno@clisp.org>
33265 * modules/openmp: New file.
33266 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33269 2007-05-26 Bruno Haible <bruno@clisp.org>
33271 * modules/chdir-long (Depends-on): Add fchdir.
33272 * modules/chdir-safer (Depends-on): Likewise.
33273 * modules/fts (Depends-on): Likewise.
33274 * modules/fts-lgpl (Depends-on): Likewise.
33275 * modules/openat (Depends-on): Likewise.
33276 * modules/savewd (Depends-on): Likewise.
33278 2007-05-24 Eric Blake <ebb9@byu.net>
33280 Fix lseek on mingw.
33281 * modules/lseek: New module.
33282 * m4/lseek.m4: New file.
33283 * lib/lseek.c: New file.
33284 * modules/lseek-tests: New file.
33285 * tests/test-lseek.c: New file.
33286 * tests/test-lseek.sh: New file.
33287 * MODULES.html.sh: Document lseek module.
33288 * modules/fflush (Depends-on): Add lseek, fseeko.
33289 * modules/fseeko (Depends-on): Likewise.
33290 * modules/ftello (Depends-on): Likewise.
33291 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33293 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33295 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33296 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33297 * lib/ftello.c (rpl_ftello): Likewise.
33298 * tests/test-fseeko.c (main): Test this.
33299 * tests/test-fseeko.sh: Likewise.
33300 * tests/test-ftello.c (main): Likewise.
33301 * tests/test-ftello.sh: Likewise.
33302 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33303 implies replacing fseek.
33304 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33306 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33307 * modules/unistd (Makefile.am): Likewise.
33308 * lib/unistd_.h (lseek): Declare a replacement.
33309 * doc/functions/lseek.texi (lseek): Document this fix.
33310 * doc/functions/fseek.texi (fseek): Likewise.
33311 * doc/functions/ftell.texi (ftell): Likewise.
33313 2007-05-24 Bruno Haible <bruno@clisp.org>
33315 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33316 in the printed representation of a NaN.
33317 * tests/test-vasprintf-posix.c (test_function): Likewise.
33318 * tests/test-snprintf-posix.h (test_function): Likewise.
33319 * tests/test-sprintf-posix.h (test_function): Likewise.
33320 Reported by Eric Blake.
33322 2007-05-23 Eric Blake <ebb9@byu.net>
33324 Fix fseeko/ftello on cygwin 1.5.24.
33325 * doc/functions/fseeko.texi (fseeko): Document the fix.
33326 * doc/functions/ftello.texi (ftello): Document the fix.
33327 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33328 * doc/functions/stdout.text (stdout): New file.
33329 * doc/functions/stderr.text (stderr): New file.
33330 * doc/gnulib.texi (Function Substitutes): Use new files.
33331 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33333 * tests/test-ftello.c (main): Likewise for ftello.
33334 * tests/test-fseeko.sh: New file.
33335 * tests/test-ftello.sh: New file.
33336 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33337 with seekable stdin.
33338 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33339 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33340 (gl_REPLACE_FSEEKO): New macro.
33341 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33342 * modules/fseeko (Files): Distribute fseeko.c.
33343 * modules/ftello (Files): Distribute ftello.c.
33344 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33346 * lib/ftello.c (rpl_ftello): New file.
33347 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33349 (gl_STDIN_LARGE_OFFSET): New macro.
33350 * modules/stdio (Makefile.am): Perform the replacement.
33351 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33353 2007-05-23 Bruno Haible <bruno@clisp.org>
33355 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33356 GNULIB_POSIXCHECK is defined.
33358 2007-05-21 Bruno Haible <bruno@clisp.org>
33360 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33361 Check also the output for NaN arguments. When cross-compiling, guess
33363 * lib/vasnprintf.c: Update comments.
33364 * tests/test-vasnprintf-posix.c (strisnan): New function.
33365 (test_function): Use it.
33366 * tests/test-vasprintf-posix.c (strisnan): New function.
33367 (test_function): Use it.
33368 * tests/test-snprintf-posix.h (strisnan): New function.
33369 (test_function): Use it.
33370 * tests/test-sprintf-posix.h (strisnan): New function.
33371 (test_function): Use it.
33372 Reported by Eric Blake.
33374 2007-05-20 Bruno Haible <bruno@clisp.org>
33376 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33377 numbers that fails on BeOS.
33378 * doc/functions/frexpl.texi: Update.
33380 2007-05-20 Jim Meyering <jim@meyering.net>
33382 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33383 forced upon us by glibc-2.6.
33385 2007-05-20 Bruno Haible <bruno@clisp.org>
33387 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33388 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33389 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33390 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33391 NEED_PRINTF_INFINITE.
33392 (is_infinitel): New function.
33393 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33394 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33395 gl_PREREQ_VASNPRINTF_INFINITE.
33396 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33397 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33398 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33399 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33400 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33401 gl_PREREQ_VASNPRINTF_INFINITE.
33402 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33403 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33404 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33405 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33406 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33407 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33408 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33409 * doc/functions/fprintf.texi: Update.
33410 * doc/functions/printf.texi: Update.
33411 * doc/functions/snprintf.texi: Update.
33412 * doc/functions/sprintf.texi: Update.
33413 * doc/functions/vfprintf.texi: Update.
33414 * doc/functions/vprintf.texi: Update.
33415 * doc/functions/vsnprintf.texi: Update.
33416 * doc/functions/vsprintf.texi: Update.
33418 2007-05-20 Bruno Haible <bruno@clisp.org>
33420 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33421 was not found in libc.
33422 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33424 2007-05-20 Bruno Haible <bruno@clisp.org>
33426 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33427 printed as "-nan" instead of "nan".
33428 * tests/test-vasprintf-posix.c (test_function): Likewise.
33429 * tests/test-snprintf-posix.h (test_function): Likewise.
33430 * tests/test-sprintf-posix.h (test_function): Likewise.
33431 Needed for HP-UX 11.
33433 2007-05-20 Jim Meyering <jim@meyering.net>
33435 Fix buggy test for the fchownat-deref bug.
33436 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33437 symlink required for the run-test. Without it, this test would
33438 always declare that fchownat doesn't work, and client code would
33439 unnecessarily use the replacement function with fixed libc.
33440 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33441 Reported by Greg Schafer.
33443 2007-05-19 Bruno Haible <bruno@clisp.org>
33445 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33446 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33447 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33448 Needed for IRIX 6.5 and Solaris 2.5.1.
33450 2007-05-19 Bruno Haible <bruno@clisp.org>
33452 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33453 (test_function): Skip tests involving -0.0 on platforms where
33455 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33456 (test_function): Skip tests involving -0.0 on platforms where
33458 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33459 (test_function): Skip tests involving -0.0 on platforms where
33461 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33462 (test_function): Skip tests involving -0.0 on platforms where
33464 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33466 * tests/test-printf-posix.h (test_function): Likewise.
33467 * tests/test-printf-posix.output: Remove all -0.0 related results.
33468 Needed for IRIX 6.5.
33470 2007-05-19 Bruno Haible <bruno@clisp.org>
33472 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33473 printed as "nan0x7fffffff" instead of "nan".
33474 * tests/test-vasprintf-posix.c (test_function): Likewise.
33475 * tests/test-snprintf-posix.h (test_function): Likewise.
33476 * tests/test-sprintf-posix.h (test_function): Likewise.
33477 * tests/test-fprintf-posix.h (NaN): Remove macro.
33478 (test_function): Remove all NaN related tests.
33479 * tests/test-printf-posix.h (NaN): Remove macro.
33480 (test_function): Remove all NaN related tests.
33481 * tests/test-printf-posix.output: Remove all NaN related results.
33482 Needed for IRIX 6.5.
33484 2007-05-19 Bruno Haible <bruno@clisp.org>
33486 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33487 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33489 2007-05-19 Bruno Haible <bruno@clisp.org>
33491 * lib/float_.h: New file.
33492 * m4/float_h.m4: New file.
33493 * modules/float: New file.
33494 * modules/isnanl (Dependencies): Add float.
33495 * modules/isnanl-nolibm (Dependencies): Likewise.
33496 * modules/mathl (Dependencies): Likewise.
33497 * modules/printf-frexpl (Dependencies): Likewise.
33498 * modules/signbit (Dependencies): Likewise.
33499 * modules/vasnprintf (Dependencies): Likewise.
33500 * doc/headers/float.texi: Update.
33502 2007-05-19 Jim Meyering <jim@meyering.net>
33504 * lib/utimens.c (gl_futimens): Rename from futimens,
33505 now that glibc-2.6 declares futimens.
33506 * lib/utimens.h: Likewise.
33508 2007-05-19 Bruno Haible <bruno@clisp.org>
33510 Avoid test failures on mingw.
33511 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33512 * tests/test-printf-posix.sh: Likewise.
33513 * tests/test-vfprintf-posix.sh: Likewise.
33514 * tests/test-vprintf-posix.sh: Likewise.
33516 2007-05-19 Bruno Haible <bruno@clisp.org>
33518 Fix *printf result for NaN, Inf, -0.0 on mingw.
33519 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33520 * lib/vasnprintf.c: Include math.h and isnan.h.
33521 (is_infinite_or_zero): New function.
33522 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33523 values in the %f, %F, %e, %E, %g, %G directives.
33524 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33525 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33526 gl_PRINTF_INFINITE and test its result. Invoke
33527 gl_PREREQ_VASNPRINTF_INFINITE.
33528 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33529 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33530 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33531 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33532 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33533 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33534 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33535 * doc/functions/fprintf.texi: Update.
33536 * doc/functions/printf.texi: Update.
33537 * doc/functions/snprintf.texi: Update.
33538 * doc/functions/sprintf.texi: Update.
33539 * doc/functions/vfprintf.texi: Update.
33540 * doc/functions/vprintf.texi: Update.
33541 * doc/functions/vsnprintf.texi: Update.
33542 * doc/functions/vsprintf.texi: Update.
33544 2007-05-19 Bruno Haible <bruno@clisp.org>
33546 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33547 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33548 Instead of multiplying with 10^k, set extra_zeroes to k.
33549 (scale10_round_long_double): Remove function.
33551 2007-05-18 Bruno Haible <bruno@clisp.org>
33553 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33554 introduced on 2007-05-06.
33556 2007-05-18 Bruno Haible <bruno@clisp.org>
33558 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33560 * tests/test-vasprintf-posix.c (test_function): Likewise.
33561 * tests/test-snprintf-posix.h (test_function): Likewise.
33562 * tests/test-sprintf-posix.h (test_function): Likewise.
33564 2007-05-18 Bruno Haible <bruno@clisp.org>
33566 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33567 (strmatch): New function.
33568 (test_function): Test the %f directive on numbers of various exponents.
33569 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33570 (strmatch): New function.
33571 (test_function): Test the %f directive on numbers of various exponents.
33572 * tests/test-snprintf-posix.h (strmatch): New function.
33573 (test_function): Test the %f directive on numbers of various exponents.
33574 * tests/test-sprintf-posix.h (strmatch): New function.
33575 (test_function): Test the %f directive on numbers of various exponents.
33576 * tests/test-snprintf-posix.c (SIZEOF): New macro.
33577 * tests/test-sprintf-posix.c (SIZEOF): New macro.
33578 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33579 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33581 2007-05-18 Bruno Haible <bruno@clisp.org>
33583 Add support for 'long double' number output.
33584 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33585 * lib/vasnprintf.c: Include math.h and float+.h.
33586 (mp_limb_t): New type.
33587 (GMP_LIMB_BITS): New macro.
33588 (mp_twolimb_t): New type.
33589 (GMP_TWOLIMB_BITS): New macro.
33591 (multiply, divide, convert_to_decimal, decode_long_double,
33592 scale10_round_long_double, scale10_round_decimal_long_double,
33593 floorlog10l): New functions.
33594 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33595 for the %f, %F, %e, %E, %g, %G directives.
33596 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33597 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33598 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33599 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33600 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33601 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33602 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33603 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33604 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33605 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33606 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33607 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33608 * modules/snprintf-posix (Depends-on): Likewise.
33609 * modules/sprintf-posix (Depends-on): Likewise.
33610 * modules/vasnprintf-posix (Depends-on): Likewise.
33611 * modules/vasprintf-posix (Depends-on): Likewise.
33612 * modules/vfprintf-posix (Depends-on): Likewise.
33613 * modules/vsnprintf-posix (Depends-on): Likewise.
33614 * modules/vsprintf-posix (Depends-on): Likewise.
33615 * modules/vasnprintf (Files): Add lib/float+.h.
33616 * doc/functions/fprintf.texi: Update.
33617 * doc/functions/printf.texi: Update.
33618 * doc/functions/snprintf.texi: Update.
33619 * doc/functions/sprintf.texi: Update.
33620 * doc/functions/vfprintf.texi: Update.
33621 * doc/functions/vprintf.texi: Update.
33622 * doc/functions/vsnprintf.texi: Update.
33623 * doc/functions/vsprintf.texi: Update.
33625 2007-05-18 Bruno Haible <bruno@clisp.org>
33627 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33629 2007-05-18 Bruno Haible <bruno@clisp.org>
33631 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33632 for printing 64-bit integers. Needed for mingw.
33634 2007-05-18 Bruno Haible <bruno@clisp.org>
33636 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33637 gl_FUNC_FREXPL_WORKS.
33638 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33640 2007-05-18 Bruno Haible <bruno@clisp.org>
33642 * modules/frexpl-nolibm-tests: New file.
33644 * modules/frexpl-nolibm: New file.
33645 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33647 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
33649 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33650 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33651 GCC 4.2, which otherwise issues a lot of warnings.
33652 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33653 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33655 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33656 * modules/iconv_open (iconv.h): Likewise.
33657 * modules/locale (locale.h): Likewise.
33658 * modules/netinet_in (netinet/in.h): Likewise.
33659 * modules/sys_select (sys_select.h): Likewise.
33660 * modules/sys_socket (sys/socket.h): Likewise.
33661 * modules/sys_stat (sys/stat.h): Likewise.
33662 * modules/sysexits (sysexits.h): Likewise.
33663 * modules/unistd (unistd.h): Likewise.
33665 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33667 * modules/closein-tests (Makefile.am): Distribute
33670 2007-05-17 Bruno Haible <bruno@clisp.org>
33672 * tests/test-printf-posix.output: Renamed from
33673 tests/test-fprintf-posix.out.
33674 * modules/fprintf-posix-tests: Update.
33675 * modules/printf-posix-tests: Update.
33676 * modules/vfprintf-posix-tests: Update.
33677 * modules/vprintf-posix-tests: Update.
33678 * tests/test-fprintf-posix.sh: Update.
33679 * tests/test-printf-posix.sh: Update.
33680 * tests/test-vfprintf-posix.sh: Update.
33681 * tests/test-vprintf-posix.sh: Update.
33682 Reported by Ralf Wildenhues.
33684 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
33686 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33687 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33688 GCC 4.2, which otherwise issues a lot of warnings.
33689 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33690 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33691 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33692 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33693 it should no longer be needed.
33694 * lib/string_.h: Likewise.
33695 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33696 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33697 * modules/inttypes (inttypes.h): Likewise.
33698 * modules/math (math.h): Likewise.
33699 * modules/search (search.h): Likewise.
33700 * modules/signal (signal.h): Likewise.
33701 * modules/stdint (stdint.h): Likewise.
33702 * modules/stdio (stdio.h): Likewise.
33703 * modules/stdlib (stdlib.h): Likewise.
33704 * modules/string (string.h): Likewise.
33705 * modules/sys_time (sys/time.h): Likewise.
33706 * modules/time (time.h): Likewise.
33707 * modules/wchar (wchar.h): Likewise.
33708 * modules/wctype (wtype.h): Likewise.
33710 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
33712 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33714 2007-05-13 Bruno Haible <bruno@clisp.org>
33716 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33717 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33718 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33719 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33720 (gl_PREREQ_STRTOK_R): Don't require it here.
33722 2007-05-13 Bruno Haible <bruno@clisp.org>
33724 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33725 when used in C++ mode.
33727 2007-05-12 Bruno Haible <bruno@clisp.org>
33729 * lib/linebuffer.h: Tweak doc.
33730 * lib/linebuffer.c: Likewise.
33732 2007-05-12 James Youngman <jay@gnu.org>
33734 * lib/linebuffer.c (readlinebuffer_delim): New function,
33735 like readlinebuffer, but use a caller-specified delimiter.
33736 (readlinebuffer): Just call readlinebuffer_delim with '\n'
33738 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33740 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
33742 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33743 * modules/openat (Files): Remove openat-die.c.
33744 (Depends-on): Add openat-die.
33745 * modules/openat-die: New module.
33747 2007-05-06 Bruno Haible <bruno@clisp.org>
33749 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33750 Update with info about Cygwin.
33751 * doc/functions/fprintf.texi: Update.
33752 * doc/functions/printf.texi: Update.
33753 * doc/functions/snprintf.texi: Update.
33754 * doc/functions/sprintf.texi: Update.
33755 * doc/functions/vfprintf.texi: Update.
33756 * doc/functions/vprintf.texi: Update.
33757 * doc/functions/vsnprintf.texi: Update.
33758 * doc/functions/vsprintf.texi: Update.
33759 Reported by Eric Blake.
33761 2007-05-06 Bruno Haible <bruno@clisp.org>
33763 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33764 padding ourselves for the floating-point directives.
33765 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33766 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33767 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33768 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33769 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33770 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33771 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33772 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33773 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33774 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33775 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33776 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33777 * tests/test-snprintf-posix.h (test_function): Also check the width
33778 and some flags in the %f directive.
33779 * tests/test-sprintf-posix.h (test_function): Likewise.
33780 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33781 * tests/test-vasprintf-posix.c (test_function): Likewise.
33782 * doc/functions/fprintf.texi: Update.
33783 * doc/functions/printf.texi: Update.
33784 * doc/functions/snprintf.texi: Update.
33785 * doc/functions/sprintf.texi: Update.
33786 * doc/functions/vfprintf.texi: Update.
33787 * doc/functions/vprintf.texi: Update.
33788 * doc/functions/vsnprintf.texi: Update.
33789 * doc/functions/vsprintf.texi: Update.
33791 2007-05-06 Bruno Haible <bruno@clisp.org>
33793 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33794 pass the ' flag character to sprintf or snprintf.
33795 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33796 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33797 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33798 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33799 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33800 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33801 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33802 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33803 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33804 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33805 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33806 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33807 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33809 * tests/test-sprintf-posix.h (test_function): Likewise.
33810 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33811 * tests/test-vasprintf-posix.c (test_function): Likewise.
33812 * doc/functions/fprintf.texi: Update.
33813 * doc/functions/printf.texi: Update.
33814 * doc/functions/snprintf.texi: Update.
33815 * doc/functions/sprintf.texi: Update.
33816 * doc/functions/vfprintf.texi: Update.
33817 * doc/functions/vprintf.texi: Update.
33818 * doc/functions/vsnprintf.texi: Update.
33819 * doc/functions/vsprintf.texi: Update.
33821 2007-05-01 Bruno Haible <bruno@clisp.org>
33823 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33825 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33827 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33828 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33830 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33832 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33833 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33834 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33836 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33838 * lib/argp-help.c (struct hol_entry): New member `ord'.
33839 (HOL_ENTRY_PTRCMP): Use ord for comparison
33840 (hol_sort): Initialize ord.
33842 2007-05-01 Bruno Haible <bruno@clisp.org>
33844 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33845 Reported by Eric Blake.
33846 * doc/gnulib.texi (Function Substitutes): Update.
33848 2007-05-01 Bruno Haible <bruno@clisp.org>
33850 * doc/functions.texi: Remove file, now redundant through
33851 doc/functions/*.texi.
33853 2007-05-01 Bruno Haible <bruno@clisp.org>
33855 * modules/argp (Depends-on): Add sleep.
33857 2007-05-01 Bruno Haible <bruno@clisp.org>
33859 * modules/sleep-tests: New file.
33860 * tests/test-sleep.c: New file.
33862 * modules/sleep: New file.
33863 * lib/sleep.c: New file.
33864 * m4/sleep.m4: New file.
33865 * lib/unistd_.h (sleep): New declaration.
33866 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33868 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33869 * doc/functions/sleep.texi: Document the sleep module.
33871 2007-05-01 Bruno Haible <bruno@clisp.org>
33873 * lib/sigprocmask.h: Remove file.
33874 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33875 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33876 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33877 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33878 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33879 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33880 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33881 HAVE_SIGSET_T as a shell variable.
33882 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33883 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33884 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33885 (Depends-on): Add signal. Remove verify.
33886 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33887 (Include): Mention <signal.h> instead of sigprocmask.h.
33888 * NEWS: Mention the change.
33889 * lib/fatal-signal.c: Don't include sigprocmask.h.
33891 2007-05-01 Bruno Haible <bruno@clisp.org>
33893 * modules/signal: New file.
33894 * lib/signal_.h: New file.
33895 * m4/signal_h.m4: New file.
33897 2007-05-01 Bruno Haible <bruno@clisp.org>
33899 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33900 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33901 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33902 HAVE_WCTYPE_CTMP_BUG into wctype.h.
33904 2007-05-01 Bruno Haible <bruno@clisp.org>
33906 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33908 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33909 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33910 * modules/sys_stat (Makefile.am): Substitute their values into
33913 2007-05-01 Bruno Haible <bruno@clisp.org>
33915 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33916 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33917 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33919 2007-05-01 Bruno Haible <bruno@clisp.org>
33921 * doc/header/assert.texi: Undo last change: don't mention the gnulib
33922 'assert' module here.
33924 2007-05-01 Bruno Haible <bruno@clisp.org>
33926 * doc/functions/*.texi: New files.
33927 * doc/functions/google-ranking.txt: New file.
33928 * doc/gnulib.texi (Function Substitutes): New chapter.
33929 (ctime, inet_ntoa): Remove sections.
33930 * doc/ctime.texi: Remove file.
33931 * doc/inet_ntoa.texi: Remove file.
33932 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33934 (%.info): New rule, specifying a --reference-limit.
33936 2007-05-01 Bruno Haible <bruno@clisp.org>
33938 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33940 2007-05-01 Bruno Haible <bruno@clisp.org>
33942 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33943 the portability of 'mkdir' to mingw systems.
33945 2007-05-01 Bruno Haible <bruno@clisp.org>
33947 * doc/headers/google-ranking.txt: New file.
33949 2007-04-30 Eric Blake <ebb9@byu.net>
33951 Prefer fseeko to fseek.
33952 * modules/getpass (Depends-on): Add fseeko.
33953 * lib/getpass.c (getpass): Use fseeko, not fseek.
33955 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
33957 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33958 assumes the sorting is stable, while most qsort implementations
33959 are not. Use argument addresses to ensure they never compare as
33962 * tests/test-argp-2.sh (usage-indent test): Fix output
33963 (func_compare): Restore diff options
33964 * tests/test-argp.c: Restore #include "progname.h"
33966 2007-04-29 Bruno Haible <bruno@clisp.org>
33968 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33969 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33970 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33971 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33972 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33973 (configure.ac): Define CHECK_SNPRINTF_POSIX.
33974 (TESTS, check_PROGRAMS): Add test-snprintf.
33975 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33976 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33977 (TESTS, check_PROGRAMS): Add test-vsnprintf.
33978 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33979 assertions that fail on HP-UX, OSF/1, or IRIX.
33980 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33982 2007-04-29 Bruno Haible <bruno@clisp.org>
33984 * MODULES.html.sh (posix_functions): Remove 'contents'.
33986 2007-04-29 Karl Berry <karl@gnu.org>
33988 * config/srclist.txt (gendocs_template_min): new entry.
33990 2007-04-29 Bruno Haible <bruno@clisp.org>
33992 Work around fpurge bug on BSD systems.
33993 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33994 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33995 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33996 fpurge to rpl_fpurge if the system already has this function.
33997 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33998 the case where the system already has this function. Correct invariants
34000 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34003 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
34005 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
34006 proposed by Sven Verdoolaege.
34008 * tests/test-argp.c: Fix option ordering. Test deeply clustered
34010 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34011 (usage and help tests): Update
34013 2007-04-29 Bruno Haible <bruno@clisp.org>
34015 * tests/test-fflush.c (main): Use a file of size 17, not 10.
34016 Print more information in case of failure. Disable a test on BeOS.
34018 2007-04-29 Bruno Haible <bruno@clisp.org>
34020 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34021 This helps debugging on systems on which no gdb is available.
34023 2007-04-29 Bruno Haible <bruno@clisp.org>
34025 * lib/freading.h: Improve comments.
34026 * lib/fwriting.h: Likewise.
34027 * tests/test-freading.c (main): Don't check freading immediately after
34028 repositioning. Needed for glibc.
34030 2007-04-29 Bruno Haible <bruno@clisp.org>
34032 * lib/freading.c (freading): Trivial simplification.
34034 2007-04-28 Bruno Haible <bruno@clisp.org>
34036 * tests/test-fwriting.c (main): Also test the interaction between
34037 fflush and fwriting.
34038 * modules/fwriting-tests (Depends-on): Add fflush.
34040 * tests/test-freading.c (main): Also test the interaction between
34041 fflush and freading.
34042 * modules/freading-tests (Depends-on): Add fflush.
34044 2007-04-28 Bruno Haible <bruno@clisp.org>
34046 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34048 Suggested by Eric Blake.
34050 2007-04-28 Jim Meyering <jim@meyering.net>
34052 Avoid false-negative in gl_STDINT_H's C99 conformance test.
34053 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34054 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34056 2007-04-27 Eric Blake <ebb9@byu.net>
34058 * doc/headers/assert.texi (assert.h): Document assert module use.
34060 2007-04-27 Bruno Haible <bruno@clisp.org>
34062 * doc/headers/*.texi: New files.
34063 * doc/gnulib.texi (Header File Substitutes): New chapter.
34064 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34066 (standards.info ,standards.html, standards.dvi): Update dependencies.
34067 (mostlyclean, clean): New targets.
34069 2007-04-27 Bruno Haible <bruno@clisp.org>
34071 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34072 * modules/sysexits (Files, Makefile.am): Update.
34074 * lib/sys_socket_.h: Renamed from lib/socket_.h.
34075 * modules/sys_socket (Files, Makefile.am): Update.
34077 * lib/sys_stat_.h: Renamed from lib/stat_.h.
34078 * modules/sys_stat (Files, Makefile.am): Update.
34080 2007-04-27 Eric Blake <ebb9@byu.net>
34082 * lib/freading.h: Improve comments.
34083 * lib/fwriting.h: Likewise.
34084 * lib/fflush.c: Likewise.
34086 Fix closein for mingw.
34087 * modules/closein-tests: Add tests for closein.
34088 * tests/test-closein.c: New file.
34089 * tests/test-closein.sh: Likewise.
34090 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34091 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34093 2007-04-27 Bruno Haible <bruno@clisp.org>
34095 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34097 * lib/math_.h [__DECC]: Likewise.
34098 * lib/stdio_.h [__DECC]: Likewise.
34099 * lib/stdlib_.h [__DECC]: Likewise.
34100 * lib/string_.h [__DECC]: Likewise.
34101 * lib/time_.h [__DECC]: Likewise.
34102 * lib/wchar_.h [__DECC]: Likewise.
34103 * lib/wctype_.h [__DECC]: Likewise.
34105 2007-04-27 Bruno Haible <bruno@clisp.org>
34107 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34109 2007-04-27 Bruno Haible <bruno@clisp.org>
34111 * lib/fflush.c: Add comments.
34112 * modules/fpurge-tests (Depends-on): Add fflush.
34113 * modules/freadable-tests (Depends-on): Likewise.
34114 * modules/fwritable-tests (Depends-on): Likewise.
34116 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
34118 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34119 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
34120 Report by Bruno Haible <bruno@clisp.org>.
34122 2007-04-26 Eric Blake <ebb9@byu.net>
34124 Fix fflush on mingw.
34125 * modules/fflush (Depends-on): Add freading.
34126 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34129 2007-04-26 Eric Blake <ebb9@byu.net>
34130 and Bruno Haible <bruno@clisp.org>
34132 Implement freading and fwriting.
34133 * lib/freading.c: New file.
34134 * lib/freading.h: Likewise.
34135 * m4/freading.m4: Likewise.
34136 * modules/freading: Likewise.
34137 * modules/freading-tests: Likewise.
34138 * tests/test-freading.c: Likewise.
34139 * lib/fwriting.c: New file.
34140 * lib/fwriting.h: Likewise.
34141 * m4/fwriting.m4: Likewise.
34142 * modules/fwriting: Likewise.
34143 * modules/fwriting-tests: Likewise.
34144 * tests/test-fwriting.c: Likewise.
34145 * MODULES.html.sh (File stream based Input/Output): Mention them.
34147 2007-04-26 Bruno Haible <bruno@clisp.org>
34149 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34150 'long' when we assume it.
34151 Suggested by Eric Blake.
34153 2007-04-26 Bruno Haible <bruno@clisp.org>
34155 Ensure fseeko, ftello are declared on glibc systems.
34156 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34157 * modules/fseeko (configure.ac-early): Likewise.
34158 * modules/ftello (configure.ac-early): Likewise.
34159 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34160 AC_FUNC_FSEEKO for this.
34161 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34162 (gl_CHECK_FSEEKO): Remove macro.
34164 2007-04-26 Bruno Haible <bruno@clisp.org>
34166 * tests/test-fflush.c (main): Also check the ftell result after
34167 fflush and fseek/fseeko.
34168 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34169 file descriptor position cache in the stream.
34170 * lib/fseeko.c (rpl_fseeko): Likewise.
34172 2007-04-26 Bruno Haible <bruno@clisp.org>
34174 * modules/fflush-tests (Depends-on): Add fseeko.
34176 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
34177 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34179 * lib/argz_.h: ensure error_t definition is obtained in same
34180 mechanism system argz.h would have.
34181 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34182 argz facilities are known bad. Err on the side of caution if
34185 2007-04-25 Eric Blake <ebb9@byu.net>
34187 * lib/fpurge.c (includes): Use stdlib.h for free.
34188 * tests/test-fflush.c (main): Also test fflush-fseeko.
34190 2007-04-25 Bruno Haible <bruno@clisp.org>
34192 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34193 * lib/fseeko.c: New file.
34194 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34195 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34196 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34198 (gl_FUNC_FSEEKO): Invoke it.
34199 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34200 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34201 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34203 2007-04-25 Bruno Haible <bruno@clisp.org>
34205 * modules/fflush (Depends-on): Add ftello.
34207 2007-04-25 Bruno Haible <bruno@clisp.org>
34209 * modules/ftello-tests: New file.
34210 * tests/test-ftello.c: New file.
34212 * modules/ftello: New file.
34213 * m4/ftello.m4: New file.
34214 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34216 * lib/stdio_.h (ftello): New declaration.
34217 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34220 2007-04-25 Bruno Haible <bruno@clisp.org>
34222 * modules/fseeko-tests: New file.
34223 * tests/test-fseeko.c: New file.
34225 * modules/fseeko: New file.
34226 * m4/fseeko.m4: New file.
34227 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34229 * lib/stdio_.h (fseeko): New declaration.
34230 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34233 2007-04-25 Bruno Haible <bruno@clisp.org>
34235 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34237 2007-04-25 Bruno Haible <bruno@clisp.org>
34239 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34240 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34241 * tests/test-unistd.c: Likewise.
34242 * tests/test-fcntl.c: Likewise.
34244 2007-04-23 Eric Blake <ebb9@byu.net>
34246 * lib/fflush.c: Fix missing include.
34247 Reported by Bruno Haible.
34249 2007-04-23 Bruno Haible <bruno@clisp.org>
34251 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34252 Reported by Eric Blake.
34254 2007-04-23 Bruno Haible <bruno@clisp.org>
34256 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34258 2007-04-23 Bruno Haible <bruno@clisp.org>
34260 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34262 2007-04-23 Bruno Haible <bruno@clisp.org>
34264 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34265 Needed on HP-UX 11.
34267 2007-04-16 Eric Blake <ebb9@byu.net>
34269 Make fflush rely on fpurge.
34270 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34271 open coding all variants.
34272 * modules/fflush (Depends-on): Add fpurge and unistd.
34273 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34274 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34276 Fix --with-tests compilation on cygwin.
34277 * modules/argmatch-tests (Makefile.am): List gnulib library first
34279 * modules/argp-tests (Makefile.am): Likewise.
34280 * modules/array-list-tests (Makefile.am): Likewise.
34281 * modules/array-oset-tests (Makefile.am): Likewise.
34282 * modules/avltree-list-tests (Makefile.am): Likewise.
34283 * modules/avltree-oset-tests (Makefile.am): Likewise.
34284 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34285 * modules/carray-list-tests (Makefile.am): Likewise.
34286 * modules/dirname-tests (Makefile.am): Likewise.
34287 * modules/frexp-tests (Makefile.am): Likewise.
34288 * modules/isnanl-tests (Makefile.am): Likewise.
34289 * modules/linked-list-tests (Makefile.am): Likewise.
34290 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34291 * modules/lock-tests (Makefile.am): Likewise.
34292 * modules/rbtree-list-tests (Makefile.am): Likewise.
34293 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34294 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34295 * modules/tls-tests (Makefile.am): Likewise.
34296 * modules/tsearch-tests (Makefile.am): Likewise.
34297 * modules/xvasprintf-tests (Makefile.am): Likewise.
34299 Fix fpurge for cygwin.
34300 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34302 * modules/fpurge-tests (Depends-on): Clean up trash.
34304 2007-04-16 Simon Josefsson <simon@josefsson.org>
34306 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34308 * m4/autobuild.m4: Re-indent.
34310 2007-04-13 Bruno Haible <bruno@clisp.org>
34312 * modules/fpurge-tests: New file.
34313 * tests/test-fpurge.c: New file.
34315 * modules/fpurge: New file.
34316 * lib/fpurge.h: New file.
34317 * lib/fpurge.c: New file.
34318 * m4/fpurge.m4: New file.
34320 2007-04-13 Bruno Haible <bruno@clisp.org>
34322 * modules/fbufmode-tests: New file.
34323 * tests/test-fbufmode.c: New file.
34325 * modules/fbufmode: New file.
34326 * lib/fbufmode.h: New file.
34327 * lib/fbufmode.c: New file.
34328 * m4/fbufmode.m4: New file.
34330 2007-04-13 Bruno Haible <bruno@clisp.org>
34332 * modules/fwritable-tests: New file.
34333 * tests/test-fwritable.c: New file.
34335 * modules/fwritable: New file.
34336 * lib/fwritable.h: New file.
34337 * lib/fwritable.c: New file.
34338 * m4/fwritable.m4: New file.
34340 2007-04-13 Bruno Haible <bruno@clisp.org>
34342 * modules/freadable-tests: New file.
34343 * tests/test-freadable.c: New file.
34345 * modules/freadable: New file.
34346 * lib/freadable.h: New file.
34347 * lib/freadable.c: New file.
34348 * m4/freadable.m4: New file.
34350 2007-04-13 Bruno Haible <bruno@clisp.org>
34352 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34355 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34357 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34358 gzip bootstrap.conf to avoid dragging in i18n machinery.
34359 (gnulib_tool_option): Use it.
34361 2007-04-13 Bruno Haible <bruno@clisp.org>
34363 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34365 * tests/test-vasprintf-posix.c (test_function): Likewise.
34366 * tests/test-snprintf-posix.h (test_function): Likewise.
34367 * tests/test-sprintf-posix.h (test_function): Likewise.
34368 * tests/test-fprintf-posix.h (test_function): Likewise.
34369 * tests/test-printf-posix.h (test_function): Likewise.
34370 * tests/test-fprintf-posix.out: Likewise.
34372 2007-04-13 Bruno Haible <bruno@clisp.org>
34374 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34375 * modules/tls-tests (configure.ac): Likewise.
34376 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34378 2007-04-13 Bruno Haible <bruno@clisp.org>
34380 * lib/tls.c (glthread_tls_get): Fix return type.
34381 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34383 2007-04-12 Eric Blake <ebb9@byu.net>
34385 * modules/gettime (Depends-on): Remove gettime.
34386 Reported by Dmitry V. Levin.
34388 2007-04-12 Bruno Haible <bruno@clisp.org>
34390 * modules/fflush (Include): Mention <stdio.h>.
34391 * modules/strtoimax (Include): Mention <inttypes.h>.
34392 * modules/strtoumax (Include): Likewise.
34394 2007-04-12 Eric Blake <ebb9@byu.net>
34396 * .cvsignore: New file.
34397 * .gitignore: Likewise.
34399 2007-04-12 Bruno Haible <bruno@clisp.org>
34401 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34402 not before, since $(LDADD) often contains libgnu.a.
34403 * modules/striconv-tests (test_striconv_LDADD): Likewise.
34404 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34405 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34408 2007-04-12 Eric Blake <ebb9@byu.net>
34410 Work around glibc's failure to flush stdin on fclose.
34411 * lib/closein.c (close_stdin): Flush stdin before closing.
34413 Work around glibc's failure to reset seekable stdin on exit.
34414 * modules/closein: New module.
34415 * lib/closein.c: New file.
34416 * lib/closein.h: Likewise.
34417 * m4/closein.m4: Likewise.
34418 * MODULES.html.sh (File stream based Input/Output): Document it.
34420 2007-04-12 Simon Josefsson <simon@josefsson.org>
34422 * gnulib-tool: Rename generated 'autobuild' script to
34423 'do-autobuild' in --create-megatestdir output.
34425 * doc/gnulib.texi (Build robot for gnulib): Fix.
34427 2007-04-12 Simon Josefsson <simon@josefsson.org>
34429 * modules/sysexits (Depends-on): Add absolute-header.
34431 2007-04-12 Eric Blake <ebb9@byu.net>
34433 No need to preserve errno on success.
34434 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34435 Reported by Bruno Haible.
34437 2007-04-12 Simon Josefsson <simon@josefsson.org>
34439 * MODULES.html.sh (Support for maintaining and releasing
34440 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34442 2007-04-12 Simon Josefsson <simon@josefsson.org>
34444 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34446 2007-04-12 Simon Josefsson <simon@josefsson.org>
34448 * modules/autobuild: New module.
34450 * m4/autobuild.m4: New file.
34452 2007-04-11 Bruno Haible <bruno@clisp.org>
34454 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34455 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34456 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34457 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34458 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34459 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34460 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34461 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34462 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34463 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34464 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34465 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34466 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34467 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34468 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34469 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34470 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34471 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34472 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34473 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34474 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34475 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34476 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34477 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34478 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34479 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34480 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34481 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34482 Reported by Eric Blake.
34484 2007-04-11 Bruno Haible <bruno@clisp.org>
34486 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34488 2007-04-10 Bruno Haible <bruno@clisp.org>
34490 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34491 for NaN and Infinity. Needed on FreeBSD 6.1.
34492 * tests/test-vasnprintf-posix.c (test_function): Undo last change
34493 regarding results for "%010a" of Infinity and NaN.
34494 * tests/test-vasprintf-posix.c (test_function): Likewise.
34495 * tests/test-snprintf-posix.h (test_function): Likewise.
34496 * tests/test-sprintf-posix.h (test_function): Likewise.
34497 * tests/test-fprintf-posix.h (test_function): Likewise.
34498 * tests/test-printf-posix.h (test_function): Likewise.
34499 * tests/test-fprintf-posix.out: Likewise.
34501 2007-04-10 Bruno Haible <bruno@clisp.org>
34503 * modules/locale-tests: New file.
34504 * tests/test-locale.c: New file.
34506 * modules/locale: New file.
34507 * lib/locale_.h: New file.
34508 * m4/locale_h.m4: New file.
34510 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
34511 Bruno Haible <bruno@clisp.org>
34513 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34514 be determined, test for availability of the copysignf, copysign,
34515 copysignl functions.
34516 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34517 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34518 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34520 2007-04-09 Eric Blake <ebb9@byu.net>
34522 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34523 * modules/stdio (Makefile.am): Support fflush.
34524 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34525 * modules/fflush: New file.
34526 * lib/fflush.c: Likewise.
34527 * m4/fflush.m4: Likewise.
34528 * modules/fflush-tests: New test.
34529 * tests/test-fflush.c: Likewise.
34530 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34532 2007-04-06 Bruno Haible <bruno@clisp.org>
34534 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34535 (VASNPRINTF): Use signbit for faster determination whether to print a
34537 * modules/vasnprintf (Files): Remove lib/float+.h.
34538 * modules/fprintf-posix (Depends-on): Add signbit.
34539 * modules/snprintf-posix (Depends-on): Likewise.
34540 * modules/sprintf-posix (Depends-on): Likewise.
34541 * modules/vasnprintf-posix (Depends-on): Likewise.
34542 * modules/vasprintf-posix (Depends-on): Likewise.
34543 * modules/vfprintf-posix (Depends-on): Likewise.
34544 * modules/vsnprintf-posix (Depends-on): Likewise.
34545 * modules/vsprintf-posix (Depends-on): Likewise.
34547 2007-04-06 Bruno Haible <bruno@clisp.org>
34549 * tests/test-frexp.c (main): Test also the sign bit of zero results.
34550 * tests/test-frexpl.c (main): Likewise.
34551 * tests/test-ldexpl.c (main): Likewise.
34552 * modules/frexp-tests (Depends-on): Add signbit.
34553 * modules/frexpl-tests (Depdends-on): Likewise.
34554 * modules/ldexpl-tests (Depdends-on): Likewise.
34556 2007-04-06 Bruno Haible <bruno@clisp.org>
34558 * modules/signbit-tests: New file.
34559 * tests/test-signbit.c: New file.
34561 * modules/signbit: New file.
34562 * lib/signbitf.c: New file.
34563 * lib/signbitd.c: New file.
34564 * lib/signbitl.c: New file.
34565 * m4/signbit.m4: New file.
34566 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34567 (signbit): New macro.
34568 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34570 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34571 REPLACE_FREXPL into math.h.
34573 2007-04-06 Bruno Haible <bruno@clisp.org>
34575 * modules/isnanf-nolibm-tests: New file.
34576 * tests/test-isnanf.c: New file.
34578 * modules/isnanf-nolibm: New file.
34579 * lib/isnanf.h: New file.
34580 * lib/isnanf.c: New file.
34581 * lib/isnan.c: Consider the USE_FLOAT macro.
34582 * m4/isnanf.m4: New file.
34584 2007-04-06 Bruno Haible <bruno@clisp.org>
34586 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34587 (Link): New section.
34589 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34591 2007-04-06 Bruno Haible <bruno@clisp.org>
34593 Assume the 'long double' type.
34594 * m4/longdouble.m4: Remove file.
34595 * config/srclist.txt: Don't mention longdouble.m4.
34596 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34597 * lib/float+.h: Likewise.
34598 * lib/frexp.c: Likewise.
34599 * lib/printf-args.h: Likewise.
34600 * lib/printf-args.c: Likewise.
34601 * lib/printf-frexp.c: Likewise.
34602 * lib/printf-parse.c: Likewise.
34603 * lib/vasnprintf.c: Likewise.
34604 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34605 * m4/intl.m4: Likewise.
34606 * m4/isnanl.m4: Likewise.
34607 * m4/printf.m4: Likewise.
34608 * m4/printf-frexpl.m4: Likewise.
34609 * m4/vasnprintf.m4: Likewise.
34610 * modules/allocsa (Files): Remove m4/longdouble.m4.
34611 * modules/gettext (Files): Likewise.
34612 * modules/relocatable-prog-wrapper (Files): Likewise.
34613 * modules/vasnprintf (Files): Likewise.
34614 * modules/isnanl (Files): Likewise.
34615 (Include): Simplify.
34616 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34617 (Include): Simplify.
34618 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34619 (Include): Simplify.
34620 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34621 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34622 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34623 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34624 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34625 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34626 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34627 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34628 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34629 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34630 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34631 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34632 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34633 * tests/test-isnanl.c: Likewise.
34634 * tests/test-snprintf-posix.h: Likewise.
34635 * tests/test-sprintf-posix.h: Likewise.
34636 * tests/test-vasnprintf-posix.c: Likewise.
34637 * tests/test-vasnprintf-posix2.c: Likewise.
34638 * tests/test-vasprintf-posix.c: Likewise.
34640 2007-04-06 Bruno Haible <bruno@clisp.org>
34642 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34643 * lib/math_.h [__DECC]: Include the overridden include file through
34644 #include_next, outside the double-inclusion guard.
34645 * lib/stdio_.h [__DECC]: Likewise.
34646 * lib/stdlib_.h [__DECC]: Likewise.
34647 * lib/string_.h [__DECC]: Likewise.
34648 * lib/time_.h [__DECC]: Likewise.
34649 * lib/wchar_.h [__DECC]: Likewise.
34650 * lib/wctype_.h [__DECC]: Likewise.
34651 * lib/inttypes_.h [__DECC]: Likewise.
34652 Reported by Albert Chin <china@thewrittenword.com> in
34653 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34655 2007-04-04 Eric Blake <ebb9@byu.net>
34657 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34660 2007-04-04 Bruno Haible <bruno@clisp.org>
34662 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34663 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34665 2007-04-04 Bruno Haible <bruno@clisp.org>
34667 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34668 results for "%010a" of Infinity and NaN.
34669 * tests/test-vasprintf-posix.c (test_function): Likewise.
34670 * tests/test-snprintf-posix.h (test_function): Likewise.
34671 * tests/test-sprintf-posix.h (test_function): Likewise.
34672 * tests/test-fprintf-posix.h (test_function): Remove these tests.
34673 * tests/test-printf-posix.h (test_function): Likewise.
34674 * tests/test-fprintf-posix.out: Update.
34675 Needed for FreeBSD 6.1.
34677 2007-04-04 Bruno Haible <bruno@clisp.org>
34679 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34680 directly used by the gnulib modules nor by gnulib-tool.
34682 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
34684 * DEPENDENCIES: Give overall description of version dependency
34685 desirability. Use more-typical names for apps.
34686 Add shell, coreutils, diffutils, grep, tar, gzip.
34688 2007-04-04 Simon Josefsson <simon@josefsson.org>
34690 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
34692 2007-04-04 Karl Berry <karl@gnu.org>
34694 * MODULES.html.sh (func_module): missing '.
34696 2007-04-03 Bruno Haible <bruno@clisp.org>
34698 * modules/argmatch-tests (Makefile.am): New variable
34699 test_argmatch_LDADD.
34700 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34701 * modules/array-list-tests (Makefile.am): New variable
34702 test_array_list_LDADD.
34703 * modules/array-oset-tests (Makefile.am): New variable
34704 test_array_oset_LDADD.
34705 * modules/avltree-list-tests (Makefile.am): New variable
34706 test_avltree_list_LDADD.
34707 * modules/avltree-oset-tests (Makefile.am): New variable
34708 test_avltree_oset_LDADD.
34709 * modules/avltreehash-list-tests (Makefile.am): New variable
34710 test_avltreehash_list_LDADD.
34711 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34712 test_canonicalize_lgpl_LDADD.
34713 * modules/carray-list-tests (Makefile.am): New variable
34714 test_carray_list_LDADD.
34715 * modules/dirname-tests (Makefile.am): New variable
34716 test_dirname_LDADD.
34717 * modules/linked-list-tests (Makefile.am): New variable
34718 test_linked_list_LDADD.
34719 * modules/linkedhash-list-tests (Makefile.am): New variable
34720 test_linkedhash_list_LDADD.
34721 * modules/rbtree-list-tests (Makefile.am): New variable
34722 test_rbtree_list_LDADD.
34723 * modules/rbtree-oset-tests (Makefile.am): New variable
34724 test_rbtree_oset_LDADD.
34725 * modules/rbtreehash-list-tests (Makefile.am): New variable
34726 test_rbtreehash_list_LDADD.
34727 * modules/xvasprintf-tests (Makefile.am): New variable
34728 test_xvasprintf_LDADD.
34729 Reported by Eric Blake.
34731 2007-04-03 Eric Blake <ebb9@byu.net>
34733 * DEPENDENCIES: Weaken m4 requirements.
34735 2007-04-03 Bruno Haible <bruno@clisp.org>
34737 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34738 * modules/isnanl-tests (configure.ac): Likewise.
34740 2007-04-03 Ben Pfaff <blp@gnu.org>
34742 * modules/iconv_open: Add $(srcdir)/ to source directory
34743 references in Makefile fragments that call gperf, to fix VPATH
34746 2007-04-03 Bruno Haible <bruno@clisp.org>
34748 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34749 * lib/ldexpl.c: Undo last change.
34751 2007-04-03 Bruno Haible <bruno@clisp.org>
34753 * modules/printf-frexpl (Depends-on): Undo last change.
34754 (Files): Add m4/ldexpl.m4.
34756 2007-04-03 Bruno Haible <bruno@clisp.org>
34758 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34759 * modules/isnanl (Link): New section.
34761 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34762 * modules/frexp (Link): New section.
34764 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34765 * modules/frexpl (Link): New section.
34767 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34768 * modules/ldexpl (Link): New section.
34770 2007-04-03 Bruno Haible <bruno@clisp.org>
34772 * modules/TEMPLATE-EXTENDED: New file.
34773 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34775 2007-04-03 Bruno Haible <bruno@clisp.org>
34777 * DEPENDENCIES: New file.
34778 Suggested by Simon Josefsson.
34780 2007-04-03 Bruno Haible <bruno@clisp.org>
34782 * doc/gnulib.texi: Escape @.
34784 2007-04-03 James Youngman <jay@gnu.org>
34785 and Paul Eggert <eggert@cs.ucla.edu>
34787 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34788 birthtime on all systems that have birthtime, not just those which
34789 use st_birthtimensec rather than st_birthtim. Putting zero in
34790 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34791 that the birth time is not available for files on an NFS mount.
34793 2007-04-03 Simon Josefsson <simon@josefsson.org>
34795 * modules/memxor: Move back from crypto/, suggested by Bruno.
34796 * modules/crypto/hmac-sha1: Fix memxor dependency.
34798 * modules/crypto/gc: Moved from ../.
34800 2007-04-02 Eric Blake <ebb9@byu.net>
34802 * lib/ldexpl.c (includes): Avoid libm.
34804 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34806 2007-04-02 Bruno Haible <bruno@clisp.org>
34808 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34811 2007-04-02 Bruno Haible <bruno@clisp.org>
34813 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34814 x86 or x86_64 platforms running MacOS X.
34815 Reported by Ryan Schmidt <@ryandesign.com>.
34817 2007-04-02 Bruno Haible <bruno@clisp.org>
34819 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34822 2007-04-01 Simon Josefsson <simon@josefsson.org>
34824 * modules/crypto/arcfour: Moved from ../.
34825 * modules/crypto/arcfour-tests: Moved from ../.
34826 * modules/crypto/arctwo: Moved from ../.
34827 * modules/crypto/arctwo-tests: Moved from ../.
34828 * modules/crypto/des: Moved from ../.
34829 * modules/crypto/des-tests: Moved from ../.
34830 * modules/crypto/gc-arcfour: Moved from ../.
34831 * modules/crypto/gc-arcfour-tests: Moved from ../.
34832 * modules/crypto/gc-arctwo: Moved from ../.
34833 * modules/crypto/gc-arctwo-tests: Moved from ../.
34834 * modules/crypto/gc-des: Moved from ../.
34835 * modules/crypto/gc-des-tests: Moved from ../.
34836 * modules/crypto/gc-hmac-md5: Moved from ../.
34837 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34838 * modules/crypto/gc-hmac-sha1: Moved from ../.
34839 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34840 * modules/crypto/gc-md2: Moved from ../.
34841 * modules/crypto/gc-md2-tests: Moved from ../.
34842 * modules/crypto/gc-md4: Moved from ../.
34843 * modules/crypto/gc-md4-tests: Moved from ../.
34844 * modules/crypto/gc-md5: Moved from ../.
34845 * modules/crypto/gc-md5-tests: Moved from ../.
34846 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34847 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34848 * modules/crypto/gc-random: Moved from ../.
34849 * modules/crypto/gc-rijndael: Moved from ../.
34850 * modules/crypto/gc-rijndael-tests: Moved from ../.
34851 * modules/crypto/gc-sha1: Moved from ../.
34852 * modules/crypto/gc-sha1-tests: Moved from ../.
34853 * modules/crypto/gc-tests: Moved from ../.
34854 * modules/crypto/hmac-md5: Moved from ../.
34855 * modules/crypto/hmac-md5-tests: Moved from ../.
34856 * modules/crypto/hmac-sha1: Moved from ../.
34857 * modules/crypto/hmac-sha1-tests: Moved from ../.
34858 * modules/crypto/md2: Moved from ../.
34859 * modules/crypto/md2-tests: Moved from ../.
34860 * modules/crypto/md4: Moved from ../.
34861 * modules/crypto/md4-tests: Moved from ../.
34862 * modules/crypto/md5: Moved from ../.
34863 * modules/crypto/md5-tests: Moved from ../.
34864 * modules/crypto/memxor: Moved from ../.
34865 * modules/crypto/rijndael: Moved from ../.
34866 * modules/crypto/rijndael-tests: Moved from ../.
34867 * modules/crypto/sha1: Moved from ../.
34869 2007-03-30 James Youngman <jay@gnu.org>
34871 * tests/test-stat-time.c (prepare_test): use chmod() rather than
34872 rename() to change the ctime of a file (because ctime is unaffected
34873 by rename on jfs2 on AIX 5.1).
34874 (main): Start by doing cleanup, in case a previous run failed leaving
34877 2007-03-31 Bruno Haible <bruno@clisp.org>
34879 Support old proprietary implementations of iconv.
34880 * modules/iconv_open: New file.
34881 * lib/iconv_.h: New file.
34882 * m4/iconv_h.m4: New file.
34883 * lib/iconv_open.c: New file.
34884 * lib/iconv_open-aix.gperf: New file.
34885 * lib/iconv_open-hpux.gperf: New file.
34886 * lib/iconv_open-irix.gperf: New file.
34887 * lib/iconv_open-osf.gperf: New file.
34888 * m4/iconv_open.m4: New file.
34889 * modules/linebreak (Depends-on): Add iconv_open.
34890 * modules/striconv (Depends-on): Likewise.
34891 * modules/striconveh (Depends-on): Likewise.
34892 * modules/unicodeio (Depends-on): Likewise.
34893 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34895 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34896 conversion if cd is (iconv_t)(-1).
34897 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34900 2007-03-31 Bruno Haible <bruno@clisp.org>
34902 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34903 work on Solaris either. Protect also second use of "autodetect_jp".
34905 2007-03-31 Bruno Haible <bruno@clisp.org>
34907 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34908 the function is not present.
34910 2007-03-31 Bruno Haible <bruno@clisp.org>
34912 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34913 the function is not present.
34915 2007-03-31 Bruno Haible <bruno@clisp.org>
34917 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34918 a bug in HP-UX iconv_open().
34920 2007-03-31 Bruno Haible <bruno@clisp.org>
34922 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34923 (Mathematics <math.h>): New section, add fpieee.
34924 (Input/output <stdio.h>): Add fseterr.
34925 (Mathematics <math.h>): New section, add printf-frexp.
34926 (Container data structures): Add sublist.
34927 (Core language properties): Add fpucw, inline.
34928 (Functions for greatest-width integer types <inttypes.h>): Add
34929 imaxabs, imaxdiv, inttypes.
34930 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34931 isnanl-nolibm, ldexp.
34932 (Mathematics <math.h>): New section, add printf-frexpl.
34933 (Support for systems lacking POSIX:2001): Add fprintf-posix,
34934 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34935 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34936 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34937 (Unicode string functions): Add unistr/u*-mbtoucr.
34938 (Java): Add javacomp-script, javaexec-script.
34939 (C#): Add csharpcomp-script, csharpexec-script.
34940 (Support for building libraries and executables): Add havelib,
34942 (Support for maintaining and releasing projects): Renamed from
34943 'Support for maintaining and release projects'. Add announce-gen.
34945 2007-03-31 Bruno Haible <bruno@clisp.org>
34947 * README: Talk primarily about git.
34948 (git and CVS): Renamed from CVS.
34949 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34950 gnulib is available through git.
34951 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34953 2007-03-30 Bruno Haible <bruno@clisp.org>
34955 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34956 * lib/poll_.h: Likewise.
34957 * lib/stat_.h: Likewise.
34958 * lib/sys_time_.h: Likewise.
34959 * lib/sysexit_.h: Likewise.
34960 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34961 * lib/stdbool_.h: Likewise.
34962 * lib/byteswap_.h: Add double-inclusion guard.
34964 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
34966 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34968 2007-03-30 Karl Berry <karl@gnu.org>
34970 * config/srclist-update: double space after USA in the license
34971 substitution, since that's how it's usually (?) written.
34973 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
34975 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34976 reported by Bruno Haible.
34978 2007-03-29 Bruno Haible <bruno@clisp.org>
34980 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34981 a bug in AIX iconv().
34983 2007-03-29 Bruno Haible <bruno@clisp.org>
34985 * modules/ldexpl-tests: New file.
34986 * tests/test-ldexpl.c: New file.
34988 2007-03-29 Bruno Haible <bruno@clisp.org>
34990 * lib/ldexpl.c: Include fpucw.h.
34991 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34993 * modules/ldexpl (Depends-on): Add fpucw.
34995 2007-03-29 Bruno Haible <bruno@clisp.org>
34997 * modules/ldexpl: New file.
34998 * m4/ldexpl.m4: New file.
34999 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35001 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35003 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35005 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35006 gl_FUNC_LDEXPL_WORKS.
35007 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35008 * modules/mathl (Files): Remove lib/ldexpl.c.
35009 (Depends-on): Add ldexpl.
35011 2007-03-29 Bruno Haible <bruno@clisp.org>
35013 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35015 2007-03-29 Bruno Haible <bruno@clisp.org>
35017 * tests/test-striconveh.c (main): Don't assume that a direct conversion
35018 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35019 and possibly also HP-UX.
35020 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35021 work on AIX, IRIX, HP-UX, OSF/1.
35022 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35023 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35024 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35025 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35026 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35027 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35029 2007-03-29 Bruno Haible <bruno@clisp.org>
35031 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35033 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35035 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35036 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35038 2007-03-29 Eric Blake <ebb9@byu.net>
35040 * lib/acl-internal.h: Remove redundant include.
35041 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35042 Cygwin when a file is locked.
35044 2007-03-29 Bruno Haible <bruno@clisp.org>
35046 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35048 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35050 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35052 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35053 try to remove a parent directory if the child couldn't be removed
35054 (except for the first rmdir, which could fail because the child
35055 doesn't exist). Problem reported by Jeff Blaine in
35056 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35058 2007-03-28 Bruno Haible <bruno@clisp.org>
35060 * lib/striconveh.c (utf8conv_carefully): New function.
35061 (mem_cd_iconveh_internal): Invoke it.
35063 2007-03-28 Bruno Haible <bruno@clisp.org>
35065 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35066 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35068 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35069 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35072 2007-03-28 Bruno Haible <bruno@clisp.org>
35074 * modules/unistr/u8-mbtoucr: New file.
35075 * lib/unistr/u8-mbtoucr.c: New file.
35076 * modules/unistr/u16-mbtoucr: New file.
35077 * lib/unistr/u16-mbtoucr.c: New file.
35078 * modules/unistr/u16-mbtoucr: New file.
35079 * lib/unistr/u16-mbtoucr.c: New file.
35080 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35082 2007-03-27 Simon Josefsson <simon@josefsson.org>
35083 Bruno Haible <bruno@clisp.org>
35085 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35086 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
35087 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35089 * m4/stdio_h.m4: Add stubs for vasprintf too.
35091 * modules/stdio: Support vasprintf in sed command.
35093 * modules/vasprintf: Depend on stdio for prototypes. Remove
35094 vasprintf.h. Add stdio module indicator.
35096 * lib/stdio_.h: Declare asprintf and vasprintf, based on
35099 * lib/vasprintf.h: File removed.
35101 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35102 * lib/vasprintf.c: Ditto.
35103 * lib/xvasprintf.c: Ditto.
35104 * tests/test-vasprintf-posix.c: Ditto.
35105 * tests/test-vasprintf.c: Ditto.
35107 2007-03-27 Bruno Haible <bruno@clisp.org>
35109 Make vasnprintf multithread-safe.
35110 * lib/vasnprintf.c (decimal_point_char): New function.
35111 (VASNPRINTF): Use it.
35112 Suggested by Simon Josefsson.
35114 2007-03-27 Eric Blake <ebb9@byu.net>
35116 Support sub-second birthtime on cygwin.
35117 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35118 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35119 (get_stat_birthtime): Also work with st_birthtim.
35121 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
35123 * lib/stat-time.h (USE_BIRTHTIME): Remove.
35124 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35125 (get_stat_birthtime_ns): Do not try to use "spare" fields.
35126 (get_stat_birthtime_ns): Simplify compile-time tests.
35127 (get_stat_birthtime): Change the API to look like
35128 get_stat_mtime etc., except return a negative tv_nsec on error.
35129 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35130 Don't check for "spare" fields.
35131 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35132 or for struct stat.st_birthtime, as these tests aren't used.
35133 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35135 2007-03-27 Bruno Haible <bruno@clisp.org>
35137 * lib/stat-time.h: Include <sys/stat.h>.
35139 2007-03-27 James Youngman <jay@gnu.org>
35141 * lib/stat-time.h (get_stat_birthtime): New function for
35142 retrieving st_birthtime as provided by UFS2 (hence *BSD).
35143 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35145 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35146 * modules/stat-time-test: New file.
35147 * tests/test-stat-time.c: New test, devised by Bruno Haible.
35149 2007-03-26 Bruno Haible <bruno@clisp.org>
35151 Better support of signalling NaNs.
35152 * lib/atanl.c: Include isnanl.h.
35153 (atanl): Perform test for NaN at the beginning of the function and
35154 through a call to isnanl.
35155 * lib/cosl.c: Include isnanl.h.
35156 (cosl): Perform test for NaN at the beginning of the function and
35157 through a call to isnanl.
35158 * lib/ldexpl.c: Include isnanl.h.
35159 (ldexpl): Perform test for NaN through a call to isnanl.
35160 * lib/logl.c: Include isnanl.h.
35161 (logl): Perform test for NaN at the beginning of the function and
35162 through a call to isnanl.
35163 * lib/sinl.c: Include isnanl.h.
35164 (sinl): Perform test for NaN at the beginning of the function and
35165 through a call to isnanl.
35166 * lib/sqrtl.c: Include isnanl.h.
35167 (sqrtl): Perform test for NaN at the beginning of the function and
35168 through a call to isnanl.
35169 * lib/tanl.c: Include isnanl.h.
35170 (tanl): Perform test for NaN at the beginning of the function and
35171 through a call to isnanl.
35172 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35173 * modules/mathl (Depends-on): Add isnanl.
35175 2007-03-26 Eric Blake <ebb9@byu.net>
35177 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35178 regression in logic sense of previous patch.
35180 2007-03-26 Bruno Haible <bruno@clisp.org>
35182 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35183 unportable shell command "if ! ...".
35184 Reported by Ralf Wildenhues.
35186 2007-03-25 Bruno Haible <bruno@clisp.org>
35188 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35189 <sysexits.h> file, and only add EX_CONFIG.
35190 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35191 absolute file name and whether it is sufficient. Substitute also
35192 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35193 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35194 ABSOLUTE_SYSEXITS_H into sysexits.h.
35196 2007-03-25 Bruno Haible <bruno@clisp.org>
35198 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35201 2007-03-25 Bruno Haible <bruno@clisp.org>
35203 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35204 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35206 2007-03-25 Bruno Haible <bruno@clisp.org>
35208 * lib/vasnprintf.c: Include langinfo.h.
35209 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35211 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35212 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35213 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35214 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35215 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35216 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35217 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35218 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35219 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35220 Reported by Simon Josefsson.
35222 2007-03-25 Bruno Haible <bruno@clisp.org>
35224 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35225 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35226 * modules/vasnprintf (Depends-on): Add stdint.
35228 2007-03-25 Bruno Haible <bruno@clisp.org>
35230 * modules/fpieee: New file.
35231 * m4/fpieee.m4: New file.
35232 * modules/isnan-nolibm (Depends-on): Add fpieee.
35233 * modules/isnanl-nolibm (Depends-on): Add fpieee.
35234 * modules/isnanl (Depends-on): Add fpieee.
35236 2007-03-25 Bruno Haible <bruno@clisp.org>
35238 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35240 2007-03-25 Bruno Haible <bruno@clisp.org>
35242 Avoid test failures on IRIX 6.5.
35243 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35245 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35249 2007-03-25 Bruno Haible <bruno@clisp.org>
35251 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35252 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35253 exists but doesn't work.
35254 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35255 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35256 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35257 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35259 2007-03-25 Bruno Haible <bruno@clisp.org>
35261 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35262 returns inf. Needed on IRIX 6.5.
35264 2007-03-25 Bruno Haible <bruno@clisp.org>
35266 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35267 (main): Use isnanl instead of x != x idiom.
35268 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35270 * tests/test-frexp.c: Include isnan.h.
35271 (main): Use isnan instead of x != x idiom.
35272 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35274 2007-03-25 Bruno Haible <bruno@clisp.org>
35276 * tests/test-frexp.c (NaN): New function/macro.
35277 (main): Use it instead of 0.0 / 0.0.
35278 * tests/test-isnan.c (NaN): New function/macro.
35279 (main): Use it instead of 0.0 / 0.0.
35280 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35281 (test_function): Use it instead of 0.0 / 0.0.
35282 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35283 (test_function): Use it instead of 0.0 / 0.0.
35284 * tests/test-snprintf-posix.h (NaN): New function/macro.
35285 (test_function): Use it instead of 0.0 / 0.0.
35286 * tests/test-sprintf-posix.h (NaN): New function/macro.
35287 (test_function): Use it instead of 0.0 / 0.0.
35288 * tests/test-fprintf-posix.h (NaN): New function/macro.
35289 (test_function): Use it instead of 0.0 / 0.0.
35290 * tests/test-printf-posix.h (NaN): New function/macro.
35291 (test_function): Use it instead of 0.0 / 0.0.
35293 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35295 2007-03-25 Bruno Haible <bruno@clisp.org>
35297 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35299 2007-03-25 Bruno Haible <bruno@clisp.org>
35301 * lib/regexec.c (merge_state_with_log): Make static.
35303 2007-03-25 Bruno Haible <bruno@clisp.org>
35305 * lib/trigl.c (kernel_rem_pio2): Make static.
35307 2007-03-25 Bruno Haible <bruno@clisp.org>
35309 * lib/sincosl.c (sincosl_table): Make static.
35311 2007-03-25 Bruno Haible <bruno@clisp.org>
35313 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35314 if the compiler does not support C99.
35316 2007-03-25 Bruno Haible <bruno@clisp.org>
35318 * modules/time (Makefile.am): Ensure all rule action lines start with a
35321 2007-03-24 Bruno Haible <bruno@clisp.org>
35323 * modules/tsearch-tests: New file.
35324 * tests/test-tsearch.sh: New file.
35325 * tests/test-tsearch.c: New file, mostly copied from glibc.
35327 * modules/search-tests: New file.
35328 * tests/test-search.c: New file.
35330 * modules/search: New file.
35331 * lib/search_.h: New file, incorporating lib/tsearch.h.
35332 * m4/search_h.m4: New file.
35333 * lib/tsearch.h: Remove file.
35334 * lib/tsearch.c: Include search.h instead of tsearch.h.
35335 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35337 * modules/tsearch (Files): Remove lib/tsearch.h.
35338 (Depends-on): Add search.
35339 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35340 (Include): Change tsearch.h into search.h.
35342 2007-03-24 Bruno Haible <bruno@clisp.org>
35344 * modules/fpucw: New file.
35345 * lib/fpucw.h: New file.
35346 * lib/frexp.c: Include fpucw.h.
35347 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35349 * lib/printf-frexp.c: Include fpucw.h.
35350 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35352 * lib/vasnprintf.c: Include fpucw.h.
35353 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35354 'long double' calculations.
35355 * tests/test-frexpl.c: Include fpucw.h.
35356 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35357 * tests/test-printf-frexpl.c: Include fpucw.h.
35358 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35359 * modules/frexpl (Depends-on): Add fpucw.
35360 * modules/printf-frexpl (Depends-on): Likewise.
35361 * modules/fprintf-posix (Depends-on): Likewise.
35362 * modules/snprintf-posix (Depends-on): Likewise.
35363 * modules/sprintf-posix (Depends-on): Likewise.
35364 * modules/vasnprintf-posix (Depends-on): Likewise.
35365 * modules/vasprintf-posix (Depends-on): Likewise.
35366 * modules/vfprintf-posix (Depends-on): Likewise.
35367 * modules/vsnprintf-posix (Depends-on): Likewise.
35368 * modules/vsprintf-posix (Depends-on): Likewise.
35369 * modules/frexpl-tests (Depends-on): Likewise.
35370 * modules/printf-frexpl-tests (Depends-on): Likewise.
35372 2007-03-24 Bruno Haible <bruno@clisp.org>
35374 * lib/float+.h: New file.
35375 * lib/isnan.c: Include float+.h.
35377 (FUNC): Compare only SIZE bytes of the value.
35378 * lib/vasnprintf.c: Include float+.h.
35379 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35380 SIZEOF_LDBL or SIZEOF_DBL bytes.
35381 * modules/isnan-nolibm (Files): Add lib/float+.h.
35382 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35383 * modules/isnanl (Files): Add lib/float+.h.
35384 * modules/vasnprintf (Files): Add lib/float+.h.
35386 2007-03-24 Bruno Haible <bruno@clisp.org>
35388 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35389 include isnanl-nolibm.h.
35391 2007-03-24 Bruno Haible <bruno@clisp.org>
35393 * tests/test-read-file.c (main): Don't produce spurious output for
35394 expected situations. Make the test fail if it encountered unexpected
35397 2007-03-24 Bruno Haible <bruno@clisp.org>
35399 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35400 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35402 2007-03-24 Bruno Haible <bruno@clisp.org>
35404 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35406 2007-03-24 Bruno Haible <bruno@clisp.org>
35408 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35409 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35411 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35412 * modules/utf8-ucs4: Turn into a symbolic link to module
35415 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35417 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35418 unistr/u8-mbtouc-unsafe.
35420 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35421 * modules/utf16-ucs4: Turn into a symbolic link to module
35424 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35426 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35427 unistr/u16-mbtouc-unsafe.
35429 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35430 * modules/ucs4-utf8: Turn into a symbolic link to module
35433 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35434 * modules/ucs4-utf16: Turn into a symbolic link to module
35437 2007-03-24 Bruno Haible <bruno@clisp.org>
35439 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35440 Enable the function only if HAVE_INLINE.
35441 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35442 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35443 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35444 Enable the function only if HAVE_INLINE.
35445 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35446 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35447 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35448 Enable the function only if HAVE_INLINE.
35449 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35450 Enable the function only if HAVE_INLINE.
35451 * modules/utf8-ucs4: Update.
35452 * modules/utf8-ucs4-unsafe: Update.
35453 * modules/utf16-ucs4: Update.
35454 * modules/utf16-ucs4-unsafe: Update.
35455 * modules/ucs4-utf8: Update.
35456 * modules/ucs4-utf16: Update.
35458 2007-03-24 Bruno Haible <bruno@clisp.org>
35460 * lib/utf8-ucs4.h: Remove file.
35461 * lib/utf8-ucs4-unsafe.h: Remove file.
35462 * lib/utf16-ucs4.h: Remove file.
35463 * lib/utf16-ucs4-unsafe.h: Remove file.
35464 * lib/ucs4-utf8.h: Remove file.
35465 * lib/ucs4-utf16.h: Remove file.
35466 * lib/unistr.h: Include their previous contents.
35467 * m4/utf-ucs4.m4: Remove file.
35468 * m4/ucs4-utf.m4: Remove file.
35469 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35470 (Depends-on): Add unistr/base.
35471 (configure.ac): Remove gl_UTF_UCS4.
35472 (Makefile.am): Update.
35473 (Include): Change to unistr.h.
35474 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35475 (Depends-on): Add unistr/base.
35476 (configure.ac): Remove gl_UTF_UCS4.
35477 (Makefile.am): Update.
35478 (Include): Change to unistr.h.
35479 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35480 (Depends-on): Add unistr/base.
35481 (configure.ac): Remove gl_UTF_UCS4.
35482 (Makefile.am): Update.
35483 (Include): Change to unistr.h.
35484 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35485 (Depends-on): Add unistr/base.
35486 (configure.ac): Remove gl_UTF_UCS4.
35487 (Makefile.am): Update.
35488 (Include): Change to unistr.h.
35489 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35490 (Depends-on): Add unistr/base.
35491 (configure.ac): Remove gl_UCS4_UTF.
35492 (Makefile.am): Update.
35493 (Include): Change to unistr.h.
35494 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35495 (Depends-on): Add unistr/base.
35496 (configure.ac): Remove gl_UCS4_UTF.
35497 (Makefile.am): Update.
35498 (Include): Change to unistr.h.
35499 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35500 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35501 utf8-ucs4-unsafe.h.
35502 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35503 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35504 utf16-ucs4-unsafe.h.
35505 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35506 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35507 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35508 * lib/unistr/u8-strchr.c: Likewise.
35509 * lib/unistr/u8-strrchr.c: Likewise.
35510 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35511 * lib/unistr/u16-strchr.c: Likewise.
35512 * lib/unistr/u16-strrchr.c: Likewise.
35513 * lib/striconveh.c: Update.
35514 * lib/linebreak.c: Update.
35516 2007-03-24 Bruno Haible <bruno@clisp.org>
35518 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35519 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35521 2007-03-22 Bruno Haible <bruno@clisp.org>
35523 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35525 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
35527 * MODULES.html.sh (File system functions): New module write-any-file.
35528 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35529 * m4/write-any-file.m4: New files.
35531 2007-03-23 Eric Blake <ebb9@byu.net>
35533 * gnulib-tool: Rearrange space-tab sequences, since some editors
35536 2007-03-23 Eric Blake <ebb9@byu.net>
35538 * lib/version-etc.c (version_etc_va): Update license wording to
35539 be more concise. Recommended by Richard Stallman.
35541 2007-03-22 Bruno Haible <bruno@clisp.org>
35543 * lib/poll.c (MSG_PEEK): New fallback definition.
35545 2007-03-22 Bruno Haible <bruno@clisp.org>
35547 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35548 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35550 Fixes a compilation error on BeOS.
35552 2007-03-22 Bruno Haible <bruno@clisp.org>
35554 * modules/frexpl-tests: New file.
35555 * tests/test-frexpl.c: New file.
35557 * modules/frexpl: New file.
35558 * m4/frexpl.m4: New file.
35559 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35560 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35561 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35562 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35563 (Depends-on): Add frexpl. Remove isnanl-nolibm.
35564 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35566 2007-03-22 Bruno Haible <bruno@clisp.org>
35568 * lib/frexpl.c: Share code with lib/frexp.c.
35569 * modules/mathl (Files): Add lib/frexp.c.
35570 (Depends-on): Add isnanl-nolibm.
35572 2007-03-22 Bruno Haible <bruno@clisp.org>
35574 * modules/printf-frexp (Files): Add m4/frexp.m4.
35575 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35576 only if the found frexp function actually works.
35578 2007-03-22 Bruno Haible <bruno@clisp.org>
35580 * lib/frexp.c: Remove older implementation that uses divisions.
35582 2007-03-21 Bruno Haible <bruno@clisp.org>
35584 * modules/frexp-tests: New file.
35585 * tests/test-frexp.c: New file.
35587 * modules/frexp: New file.
35588 * lib/frexp.c: New file.
35589 * m4/frexp.m4: New file.
35590 * lib/math_.h (frexp): New declaration.
35591 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35593 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35595 2007-03-21 Bruno Haible <bruno@clisp.org>
35597 * modules/isnanl-tests: New file.
35598 * tests/test-isnanl.c: New file.
35600 * modules/isnanl: New file.
35601 * lib/isnanl.h: New file.
35602 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35603 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35604 gl_FUNC_ISNANL_WORKS.
35605 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35608 2007-03-21 Bruno Haible <bruno@clisp.org>
35610 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35613 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35614 * lib/vasnprintf.c: Update.
35615 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35616 tests/test-isnanl.h, remove tests/test-isnanl.c.
35617 (Makefile.am): Update.
35618 * tests/test-isnanl-nolibm.c: New file.
35619 * tests/test-isnanl.h: New file.
35620 * tests/test-isnanl.c: Remove file.
35622 2007-03-21 Jim Meyering <jim@meyering.net>
35624 When trying to open ".", treat ESTALE like EACCES.
35625 * lib/savewd.c (savewd_save): Resort to forking not just upon
35626 failure with EACCES, but also when errno is ESTALE.
35628 2007-03-20 Bruno Haible <bruno@clisp.org>
35630 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35631 Needed on AIX 5.1. Reported by Matthew Woehlke.
35633 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35635 Suggestions by Bruno Haible:
35636 * lib/acl-internal.h: Include "gettext.h" rather than rolling
35638 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35639 * modules/acl (Depends-on): Add gettext.
35641 2007-03-19 Bruno Haible <bruno@clisp.org>
35643 * modules/iconvme: Remove file.
35644 * lib/iconvme.h: Remove file.
35645 * lib/iconvme.c: Remove file.
35646 * m4/iconvme.m4: Remove file.
35648 2007-03-19 Bruno Haible <bruno@clisp.org>
35650 * doc/relocatable-maint.texi: Break long shell script line.
35651 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35653 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35655 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35656 handle file_has_acl.
35657 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35658 * lib/acl.c: Move header inclusions and related macro defns into
35659 lib/acl-internal.h.
35660 (S_ISLNK): Remove defn, since that's now done for us.
35661 (file_has_acl): Move to lib/file-has-acl.c.
35662 Call acl_trivial if available. This is the crucial part of the fix.
35663 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
35664 shared within the library. Rewrite a bit, partly to make it compatible
35665 with the GNU coding style.
35666 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35667 Remove unnecessary double-quotes.
35668 Don't test for acl_to_text; the build will catch that.
35669 Replace acl_entries if it doesn't exist and it is needed.
35670 Check for -lsec and acl_trivial (as used on Solaris 10).
35671 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35672 lib/file-has-acl.c.
35673 (Depends-on): Add sys_stat, for S_ISLNK.
35675 2007-03-19 Ben Pfaff <blp@gnu.org>
35677 * doc/gnulib.texi: Fix typos.
35678 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35680 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35682 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35683 If size is zero here, buf must be zero.
35685 2007-03-19 Simon Josefsson <simon@josefsson.org>
35687 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
35690 2007-03-18 Bruno Haible <bruno@clisp.org>
35692 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35693 Suggested by Eric Blake.
35695 2007-03-18 Ben Pfaff <blp@gnu.org>
35697 * doc/relocatable.texi: Recommend using as prefix a directory
35698 that does not exist and will never be created. Based on
35699 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35702 2007-03-17 Bruno Haible <bruno@clisp.org>
35704 * lib/fchownat.c: Include lchown.h.
35706 2007-03-17 Bruno Haible <bruno@clisp.org>
35708 Fix endless loop when the given allocated size was > INT_MAX.
35709 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35710 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35711 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35712 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35713 * lib/sprintf.c (sprintf): Likewise.
35715 2007-03-17 Bruno Haible <bruno@clisp.org>
35717 * tests/test-argp-2.sh (func_compare): Output a context diff.
35719 2007-03-17 Bruno Haible <bruno@clisp.org>
35721 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35722 locale's decimal-point character.
35724 2007-03-17 Bruno Haible <bruno@clisp.org>
35726 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35727 before comparing it. Needed because on some platforms (e.g. x86) a
35728 'long double' occupies less bytes than sizeof (long double).
35730 2007-03-17 Bruno Haible <bruno@clisp.org>
35732 * tests/test-crc.c (main): Make printf statements 64-bit clean.
35733 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35734 * tests/test-getaddrinfo.c (simple): Likewise.
35735 * tests/test-read-file.c (main): Likewise.
35737 2007-03-17 Bruno Haible <bruno@clisp.org>
35739 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35741 2007-03-17 Bruno Haible <bruno@clisp.org>
35743 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35746 2007-03-17 Bruno Haible <bruno@clisp.org>
35748 * tests/test-c-strcasecmp.c: Include c-strcase.h.
35749 * tests/test-c-strncasecmp.c: Likewise.
35751 2007-03-17 Bruno Haible <bruno@clisp.org>
35753 * modules/stdlib (Depends-on): Add unistd.
35754 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35755 Needed for MacOS X 10.3.
35757 2007-03-17 Bruno Haible <bruno@clisp.org>
35759 * lib/unistr/u-strdup.h: Include <stdlib.h>.
35761 2007-03-17 Bruno Haible <bruno@clisp.org>
35763 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35765 2007-03-17 Bruno Haible <bruno@clisp.org>
35767 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35768 to reflect files copied from gnulib (with or without modifications).
35769 Suggested by Jim Meyering.
35771 2007-03-17 Eric Blake <ebb9@byu.net>
35773 * NEWS: Document stdlib change from 2007-02-18.
35775 2007-03-17 Jim Meyering <jim@meyering.net>
35777 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35778 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35779 someone uses a name containing shell meta-characters.
35780 Reported by Alfred M. Szmidt.
35782 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35784 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35786 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35787 and copy gettext configuration files only if configure.ac contains
35788 a use of AM_GNU_GETTEXT_VERSION.
35790 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35792 * build-aux/bootstrap (gnulib_name): New variable.
35793 (gnulib_tool_options): Use it.
35795 2007-03-13 Simon Josefsson <simon@josefsson.org>
35797 * tests/test-des.c: Use new namespace.
35799 2007-03-15 Bruno Haible <bruno@clisp.org>
35801 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35802 Reported by James Youngman <jay@gnu.org>.
35804 2007-03-15 Bruno Haible <bruno@clisp.org>
35806 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35807 declared prototype. Needed with cc on OSF/1 5.1.
35809 2007-03-15 Bruno Haible <bruno@clisp.org>
35811 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35812 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35813 (struct gl_list_implementation): Add dispose_fn argument to the
35814 'create_empty', 'create' methods.
35815 (struct gl_list_impl_base): Add field 'dispose_fn'.
35816 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35818 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35819 dispose_fn argument.
35820 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35821 dispose_fn on the dropped values.
35822 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35823 dispose_fn argument.
35824 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35826 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35827 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35828 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35829 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35830 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35832 (gl_tree_list_free): Call dispose_fn on the dropped values.
35833 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35834 the dropped values.
35835 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35836 Add dispose_fn argument.
35837 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35838 Call dispose_fn on the dropped values.
35839 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35840 Add dispose_fn argument.
35841 (gl_sublist_create): Initialize the 'dispose_fn' field.
35842 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35843 * tests/test-array_list.c (main): Update.
35844 * tests/test-carray_list.c (main): Update.
35845 * tests/test-avltree_list.c (main): Update.
35846 * tests/test-rbtree_list.c (main): Update.
35847 * tests/test-avltreehash_list.c (main): Update.
35848 * tests/test-rbtreehash_list.c (main): Update.
35849 * tests/test-linked_list.c (main): Update.
35850 * tests/test-linkedhash_list.c (main): Update.
35851 * tests/test-array_oset.c (main): Update.
35853 2007-03-15 Bruno Haible <bruno@clisp.org>
35855 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35856 (gl_oset_create_empty): Add dispose_fn argument.
35857 (struct gl_oset_implementation): Add dispose_fn argument to
35858 'create_empty' method.
35859 (struct gl_oset_impl_base): Add dispose_fn field.
35860 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35861 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35862 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35864 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35865 (gl_tree_oset_free): Call dispose_fn on the dropped values.
35866 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35868 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35870 * tests/test-array_oset.c (main): Update.
35871 * tests/test-avltree_oset.c (main): Update.
35872 * tests/test-rbtree_oset.c (main): Update.
35873 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35875 2007-03-13 Bruno Haible <bruno@clisp.org>
35877 * tests/test-stdbool.c (i): Update after last patch.
35879 2007-03-12 Bruno Haible <bruno@clisp.org>
35881 * lib/quotearg.c: Include <wctype.h> early, before the definition of
35882 the iswprint macro. Needed on Solaris 2.5.1.
35884 2007-03-12 Bruno Haible <bruno@clisp.org>
35886 * tests/test-printf-frexp.c (main): Declare x as volatile.
35888 2007-03-12 Simon Josefsson <simon@josefsson.org>
35890 * doc/gnulib.texi (Build robot for gnulib): New section.
35892 2007-03-12 Jim Meyering <jim@meyering.net>
35894 * build-aux/bootstrap: New file.
35895 * build-aux/bootstrap.conf: New file, from coreutils.
35897 2007-03-11 Bruno Haible <bruno@clisp.org>
35899 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35901 2007-03-12 Simon Josefsson <simon@josefsson.org>
35903 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35904 avoid collisions with 'des_setkey'. Reported by Bruno Haible
35905 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
35907 2007-03-11 Bruno Haible <bruno@clisp.org>
35909 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35910 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35912 2007-03-11 Bruno Haible <bruno@clisp.org>
35914 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35915 formula. Needed for SunPRO C 5.0.
35917 2007-03-11 Bruno Haible <bruno@clisp.org>
35919 * modules/long-options (Depends-on): Add getopt.
35921 2007-03-11 Bruno Haible <bruno@clisp.org>
35923 * modules/modechange (Depends-on): Add stdbool.
35925 2007-03-11 Bruno Haible <bruno@clisp.org>
35927 * modules/i-ring (Depends-on): Add stdbool.
35929 2007-03-11 Bruno Haible <bruno@clisp.org>
35931 * modules/gc-des (Depends-on): Add stdbool.
35933 2007-03-11 Bruno Haible <bruno@clisp.org>
35935 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35937 2007-03-11 Bruno Haible <bruno@clisp.org>
35939 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35941 2007-03-11 Bruno Haible <bruno@clisp.org>
35943 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35945 2007-03-11 Bruno Haible <bruno@clisp.org>
35947 * lib/vasnprintf.c (sprintf): Undefine.
35949 2007-03-11 Bruno Haible <bruno@clisp.org>
35951 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35952 initializers in SunPRO C and Compaq C compilers.
35954 2007-03-11 Bruno Haible <bruno@clisp.org>
35956 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35957 decrementing code ANSI C compliant.
35959 2007-03-11 Bruno Haible <bruno@clisp.org>
35961 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35962 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35964 2007-03-11 Bruno Haible <bruno@clisp.org>
35966 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35967 <stdbool.h> substitute doesn't pass.
35969 2007-03-11 Bruno Haible <bruno@clisp.org>
35971 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35973 2007-03-11 Bruno Haible <bruno@clisp.org>
35975 * gnulib-tool (func_create_megatestdir): Create also an autobuild
35976 script, for submission to autobuild.josefsson.org.
35978 2007-03-10 Bruno Haible <bruno@clisp.org>
35980 * modules/canonicalize-lgpl-tests: New file.
35981 * tests/test-canonicalize-lgpl.sh: New file.
35982 * tests/test-canonicalize-lgpl.c: New file.
35984 * modules/c-strcase-tests: New file.
35985 * tests/test-c-strcase.sh: New file.
35986 * tests/test-c-strcasecmp.c: New file.
35987 * tests/test-c-strncasecmp.c: New file.
35989 * modules/atexit-tests: New file.
35990 * tests/test-atexit.sh: New file.
35991 * tests/test-atexit.c: New file.
35993 2007-03-10 Bruno Haible <bruno@clisp.org>
35995 * tests/test-binary-io.sh: Use temporary filenames that are not so
35996 likely to clash with those of other tests (in a parallel make).
35997 * tests/test-binary-io.c: Likewise.
35999 2007-03-10 Bruno Haible <bruno@clisp.org>
36001 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36002 fallback; use #error instead.
36003 Suggested by Simon Josefsson.
36005 2007-03-10 Bruno Haible <bruno@clisp.org>
36007 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36008 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36009 first and the last.
36011 2007-03-10 Bruno Haible <bruno@clisp.org>
36013 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36015 2007-03-10 Bruno Haible <bruno@clisp.org>
36017 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36019 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36020 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36021 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36023 2007-03-10 Bruno Haible <bruno@clisp.org>
36025 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36027 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36030 2007-03-09 Eric Blake <ebb9@byu.net>
36031 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
36033 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36034 types are not being provided by gnulib.
36035 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36036 types are supported.
36038 2007-03-10 Bruno Haible <bruno@clisp.org>
36040 * lib/stdio_.h (__attribute__): New macro.
36041 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36042 vsprintf): Specify __attribute__ __format__ for GCC.
36043 Suggested by Eric Blake.
36045 2007-03-09 Bruno Haible <bruno@clisp.org>
36047 * modules/printf-posix-tests: New file.
36048 * tests/test-printf-posix.sh: New file.
36049 * tests/test-printf-posix.c: New file.
36051 * modules/printf-posix: New file.
36052 * lib/printf.c: New file.
36053 * m4/printf-posix-rpl.m4: New file.
36054 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36056 * lib/stdio_.h (printf): New declaration.
36057 (format, __format__, ____printf____, ____scanf____, ____strftime____,
36058 ____strfmon____): New macros.
36059 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36062 2007-03-09 Bruno Haible <bruno@clisp.org>
36064 * tests/test-vasnprintf-posix2.sh: New file.
36065 * tests/test-vasnprintf-posix2.c: New file.
36066 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36067 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36068 (Makefile.am): Activate test-vasnprintf-posix2.sh.
36070 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36071 a locale dependent decimal point, rather than always '.'.
36073 2007-03-09 Eric Blake <ebb9@byu.net>
36075 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36076 spite of platforms like Tandem/NSK that define it to -1.
36078 2007-03-08 Bruno Haible <bruno@clisp.org>
36080 * modules/vprintf-posix-tests: New file.
36081 * tests/test-vprintf-posix.sh: New file.
36082 * tests/test-vprintf-posix.c: New file.
36083 * tests/test-printf-posix.h: New file.
36085 * modules/vprintf-posix: New file.
36086 * lib/vprintf.c: New file.
36087 * m4/vprintf-posix.m4: New file.
36088 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36090 * lib/stdio_.h (vprintf): New declaration.
36091 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36094 2007-03-08 Bruno Haible <bruno@clisp.org>
36096 * modules/fprintf-posix-tests: New file.
36097 * tests/test-fprintf-posix.sh: New file.
36098 * tests/test-fprintf-posix.c: New file.
36100 * modules/fprintf-posix: New file.
36101 * lib/fprintf.c: New file.
36102 * m4/fprintf-posix.m4: New file.
36103 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36105 * lib/stdio_.h (fprintf): New declaration.
36106 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36109 2007-03-08 Bruno Haible <bruno@clisp.org>
36111 * modules/vfprintf-posix-tests: New file.
36112 * tests/test-vfprintf-posix.sh: New file.
36113 * tests/test-vfprintf-posix.c: New file.
36114 * tests/test-fprintf-posix.h: New file.
36115 * tests/test-fprintf-posix.out: New file.
36117 * modules/vfprintf-posix: New file.
36118 * lib/vfprintf.c: New file.
36119 * m4/vfprintf-posix.m4: New file.
36120 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36122 * lib/stdio_.h (vfprintf): New declaration.
36123 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36126 2007-03-08 Bruno Haible <bruno@clisp.org>
36128 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36130 2007-03-08 Bruno Haible <bruno@clisp.org>
36132 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36133 instead of 'expr' invocations.
36134 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36135 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36136 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36137 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36138 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36139 Suggested by Paul Eggert.
36141 2007-03-08 Bruno Haible <bruno@clisp.org>
36143 * modules/fseterr-tests: New file.
36144 * tests/test-fseterr.c: New file.
36146 * modules/fseterr: New file.
36147 * lib/fseterr.h: New file.
36148 * lib/fseterr.c: New file.
36150 2007-03-08 Bruno Haible <bruno@clisp.org>
36152 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36153 * lib/getopt_.h: Likewise.
36154 * lib/mbswidth.h: Likewise.
36155 * lib/setenv.h: Likewise.
36156 * lib/vasnprintf.h: Likewise.
36157 * lib/vasprintf.h: Likewise.
36158 * lib/verror.h: Likewise.
36159 * lib/xsetenv.h: Likewise.
36160 * lib/xvasprintf.h: Likewise.
36162 2007-03-08 Jim Meyering <jim@meyering.net>
36164 * users.txt: Add parted.
36166 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36168 2007-03-07 Bruno Haible <bruno@clisp.org>
36170 * m4/printf.m4: Make the shell script snippets copy&pastable.
36172 2007-03-02 Bruno Haible <bruno@clisp.org>
36174 * lib/netinet_in_.h: New file.
36175 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36176 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36177 * modules/netinet_in (Files): Add lib/netinet_in_.h.
36178 (Depends-on): Add absolute-header.
36179 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36182 2007-03-03 Bruno Haible <bruno@clisp.org>
36184 * lib/sys_select_.h: New file.
36185 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36186 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36187 * modules/sys_select (Files): Add lib/sys_select_.h.
36188 (Depends-on): Add absolute-header.
36189 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36192 2007-03-02 Bruno Haible <bruno@clisp.org>
36194 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36195 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36197 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36198 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36199 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36200 * modules/sys_socket (Depends-on): Add absolute-header.
36201 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36202 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36203 (Include): Remove requirement of inclusion of <sys/types.h>.
36205 2007-03-02 Bruno Haible <bruno@clisp.org>
36207 * lib/byteswap_.h (bswap_32): Fix formula.
36209 2007-03-06 Bruno Haible <bruno@clisp.org>
36211 * modules/sprintf-posix-tests: New file.
36212 * tests/test-sprintf-posix.c: New file.
36214 * modules/sprintf-posix: New file.
36215 * lib/sprintf.c: New file.
36216 * m4/sprintf-posix.m4: New file.
36217 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36219 * lib/stdio_.h (sprintf): New declaration.
36220 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36223 2007-03-06 Bruno Haible <bruno@clisp.org>
36225 * modules/vsprintf-posix-tests: New file.
36226 * tests/test-vsprintf-posix.c: New file.
36227 * tests/test-sprintf-posix.h: New file.
36229 * modules/vsprintf-posix: New file.
36230 * lib/vsprintf.c: New file.
36231 * m4/vsprintf-posix.m4: New file.
36232 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36234 * lib/stdio_.h (vsprintf): New declaration.
36235 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36238 2007-03-06 Bruno Haible <bruno@clisp.org>
36240 * modules/vsnprintf (Depend-on): Remove minmax.
36242 2007-03-06 Bruno Haible <bruno@clisp.org>
36244 * modules/snprintf-posix-tests: New file.
36245 * tests/test-snprintf-posix.c: New file.
36247 * modules/snprintf-posix: New file.
36248 * m4/snprintf-posix.m4: New file.
36249 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36251 (gl_FUNC_SNPRINTF): Invoke it.
36252 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36253 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36255 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36257 2007-03-06 Bruno Haible <bruno@clisp.org>
36259 * modules/vsnprintf-posix-tests: New file.
36260 * tests/test-vsnprintf-posix.c: New file.
36261 * tests/test-snprintf-posix.h: New file.
36263 * modules/vsnprintf-posix: New file.
36264 * m4/vsnprintf-posix.m4: New file.
36265 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36267 (gl_FUNC_VSNPRINTF): Invoke it.
36268 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36269 * lib/stdio_.h (vsnprintf): Define as a replacement if
36270 REPLACE_VSNPRINTF is set.
36271 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36273 2007-03-06 Bruno Haible <bruno@clisp.org>
36275 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36276 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36278 2007-03-06 Bruno Haible <bruno@clisp.org>
36280 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36281 (asinl): Declare also if HAVE_DECL_ASINL is set.
36282 (atanl): Declare also if HAVE_DECL_ATANL is set.
36283 (ceill): Declare also if HAVE_DECL_CEILL is set.
36284 (cosl): Declare also if HAVE_DECL_COSL is set.
36285 (expl): Declare also if HAVE_DECL_EXPL is set.
36286 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36287 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36288 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36289 (logl): Declare also if HAVE_DECL_LOGL is set.
36290 (sinl): Declare also if HAVE_DECL_SINL is set.
36291 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36292 (tanl): Declare also if HAVE_DECL_TANL is set.
36293 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36294 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36295 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36296 declaration of frexpl, ldexpl.
36297 * modules/printf-frexpl (Depends-on): Add math.
36298 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36300 2007-03-05 Bruno Haible <bruno@clisp.org>
36302 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36303 frexpl and ldexpl are declared.
36304 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36306 2007-03-05 Bruno Haible <bruno@clisp.org>
36308 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36309 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36311 2007-03-05 Bruno Haible <bruno@clisp.org>
36313 * lib/stdio_.h: Include <stddef.h>.
36315 2007-03-05 Bruno Haible <bruno@clisp.org>
36317 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36319 2007-03-05 Bruno Haible <bruno@clisp.org>
36321 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36322 NetBSD 4, from Ralf Wildenhues.
36324 2007-03-04 Bruno Haible <bruno@clisp.org>
36326 * lib/vasprintf.h: Update #if logic for the case when the functions
36327 exist but are overridden.
36329 2007-03-04 Bruno Haible <bruno@clisp.org>
36331 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36332 implementations: glibc-2.4 and MacOS X 10.3.
36333 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36334 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36335 * tests/test-vasprintf-posix.c (test_function): Likewise.
36337 2007-03-04 Bruno Haible <bruno@clisp.org>
36339 * modules/vasprintf-posix-tests: New file.
36340 * tests/test-vasprintf-posix.c: New file.
36342 * modules/vasprintf-posix: New file.
36343 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36345 * m4/vasprintf-posix.m4: New file.
36346 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36348 (gl_FUNC_VASPRINTF): Invoke it.
36349 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36351 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36353 2007-03-04 Bruno Haible <bruno@clisp.org>
36355 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36356 REPLACE_GETTIMEOFDAY.
36357 * modules/sys_time (Makefile.am): Likewise.
36358 * m4/sys_time_h.m4: Likewise.
36359 * m4/gettimeofday.m4: Likewise.
36361 2007-03-04 Bruno Haible <bruno@clisp.org>
36363 * modules/vasnprintf-posix-tests: New file.
36364 * tests/test-vasnprintf-posix.c: New file.
36366 * modules/vasnprintf-posix: New file.
36367 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36369 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36370 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36371 REPLACE_VASNPRINTF is defined.
36372 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36373 gl_FUNC_VASNPRINTF.
36374 (gl_FUNC_VASNPRINTF): Invoke it.
36375 * m4/vasnprintf-posix.m4: New file.
36376 * m4/printf.m4: New file.
36378 2007-03-04 Bruno Haible <bruno@clisp.org>
36380 Compile progreloc.c only if --enable-relocatable is specified.
36381 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36382 if --enable-relocatable was specified.
36383 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36386 2007-03-04 Jim Meyering <jim@meyering.net>
36388 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36389 Use it consistently, rather than enumerating errno constants.
36391 2007-03-04 Bruno Haible <bruno@clisp.org>
36393 * modules/xvasprintf-tests: New file.
36394 * tests/test-xvasprintf.c: New file.
36396 * modules/vasprintf-tests: New file.
36397 * tests/test-vasprintf.c: New file.
36399 * modules/vasnprintf-tests: New file.
36400 * tests/test-vasnprintf.c: New file.
36402 * modules/vsnprintf-tests: New file.
36403 * tests/test-vsnprintf.c: New file.
36405 * modules/snprintf-tests: New file.
36406 * tests/test-snprintf.c: New file.
36408 2007-03-04 Bruno Haible <bruno@clisp.org>
36410 Compile relocatable.c only if --enable-relocatable is specified.
36411 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36412 gl_RELOCATABLE_LIBRARY.
36413 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36414 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36415 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36416 gl_RELOCATABLE_LIBRARY.
36417 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36418 (Makefile.am): Remove lib_SOURCES.
36419 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36420 gl_RELOCATABLE_LIBRARY.
36421 (Makefile.am): Remove lib_SOURCES.
36422 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36424 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36425 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36427 2007-03-04 Bruno Haible <bruno@clisp.org>
36429 * modules/argmatch-tests: New file.
36430 * tests/test-argmatch.c: New file.
36432 * tests/test-allocsa.c (main): Halve the number of loop runs.
36434 * modules/alloca-opt-tests: New file.
36435 * tests/test-alloca-opt.c: New file.
36437 2007-03-04 Jim Meyering <jim@meyering.net>
36439 Work around difference between Linux ACLs and Solaris 10 ZFS.
36440 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36443 2007-03-03 Bruno Haible <bruno@clisp.org>
36445 * modules/relocatable-prog (Depends-on): Add back progreloc's
36446 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36448 2007-03-03 Bruno Haible <bruno@clisp.org>
36450 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36451 * modules/relocatable-lib: New file.
36453 2007-03-03 Bruno Haible <bruno@clisp.org>
36455 * modules/relocatable-prog: Renamed from modules/relocatable.
36456 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36458 2007-03-03 Bruno Haible <bruno@clisp.org>
36460 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36461 m4/relocatable-lib.m4.
36462 (Depends-on): Remove 'relocatable'.
36463 (configure.ac): Add gl_RELOCATABLE_NOP.
36465 2007-03-03 Bruno Haible <bruno@clisp.org>
36467 * modules/relocatable-prog-wrapper: New file.
36468 * modules/relocatable (Depends-on): Add it. Remove all other
36469 dependencies except progname.
36470 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36472 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36473 (gl_FUNC_STRERROR): Nop.
36474 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36476 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36477 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36479 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36480 (gl_FUNC_READLINK): Update.
36482 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36484 2007-03-03 Bruno Haible <bruno@clisp.org>
36486 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36487 * modules/xreadlink (Depends-on): Add unistd.
36488 * modules/xreadlink-with-size (Depends-on): Likewise.
36490 2007-03-03 Bruno Haible <bruno@clisp.org>
36492 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36493 extracted from gt_FUNC_SETENV.
36494 (gt_FUNC_SETENV): Remove macro.
36495 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36496 remove gt_FUNC_SETENV.
36498 2007-03-03 Bruno Haible <bruno@clisp.org>
36500 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36501 ENABLE_RELOCATABLE here.
36502 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36504 2007-03-03 Bruno Haible <bruno@clisp.org>
36506 * modules/rbtreehash-list-tests (Depends-on): Add progname.
36507 * tests/test-rbtreehash_list.c: Include progname.h.
36508 (main): Call set_program_name.
36510 * modules/rbtree-oset-tests (Depends-on): Add progname.
36511 * tests/test-rbtree_oset.c: Include progname.h.
36512 (main): Call set_program_name.
36514 * modules/rbtree-list-tests (Depends-on): Add progname.
36515 * tests/test-rbtree_list.c: Include progname.h.
36516 (main): Call set_program_name.
36518 * modules/linked-list-tests (Depends-on): Add progname.
36519 * tests/test-linked_list.c: Include progname.h.
36520 (main): Call set_program_name.
36522 2007-03-03 Bruno Haible <bruno@clisp.org>
36524 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36525 All uses of __restrict changed to _Restrict_.
36526 * lib/glob_.h (__restrict): Remove macro.
36528 2007-03-02 Bruno Haible <bruno@clisp.org>
36530 * modules/gettext (configure.ac): Require gettext infrastructure
36531 from version 0.16.1.
36533 2007-03-02 Bruno Haible <bruno@clisp.org>
36535 * modules/linkedhash-list-tests (Depends-on): Add progname.
36536 * tests/test-linkedhash_list.c: Include progname.h.
36537 (main): Call set_program_name.
36539 * modules/carray-list-tests (Depends-on): Add progname.
36540 * tests/test-carray_list.c: Include progname.h.
36541 (main): Call set_program_name.
36543 * modules/avltreehash-list-tests (Depends-on): Add progname.
36544 * tests/test-avltreehash_list.c: Include progname.h.
36545 (main): Call set_program_name.
36547 * modules/avltree-oset-tests (Depends-on): Add progname.
36548 * tests/test-avltree_oset.c: Include progname.h.
36549 (main): Call set_program_name.
36551 * modules/avltree-list-tests (Depends-on): Add progname.
36552 * tests/test-avltree_list.c: Include progname.h.
36553 (main): Call set_program_name.
36555 * modules/array-oset-tests (Depends-on): Add progname.
36556 * tests/test-array_oset.c: Include progname.h.
36557 (main): Call set_program_name.
36559 * modules/array-list-tests (Depends-on): Add progname.
36560 * tests/test-array_list.c: Include progname.h.
36561 (main): Call set_program_name.
36563 * modules/argp-tests (Depends-on): Add progname.
36564 * tests/test-argp.c: Include argp.h first. Include progname.h.
36565 (main): Call set_program_name.
36567 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
36569 * doc/gnulib-tool.texi (Initial import): Reword description of
36570 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36571 limited effect even if defined after the first system include.
36573 2007-03-01 Bruno Haible <bruno@clisp.org>
36575 * build-aux/config.libpath: Update to libtool-1.5.22.
36576 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36578 2007-03-01 Bruno Haible <bruno@clisp.org>
36580 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36582 Reported by Ralf Wildenhues.
36584 2007-03-01 Bruno Haible <bruno@clisp.org>
36586 * build-aux/install-reloc: Remove object files left over by some
36588 Reported by Ralf Wildenhues.
36590 2007-03-01 Bruno Haible <bruno@clisp.org>
36592 * build-aux/install-reloc: Break long lines.
36594 2007-03-01 Bruno Haible <bruno@clisp.org>
36596 * doc/relocatable.texi: Document that it may not work on OpenBSD.
36597 Reported by Ralf Wildenhues.
36599 2007-03-01 Bruno Haible <bruno@clisp.org>
36601 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36602 include ordering constraints.
36604 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
36606 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36607 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36608 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36609 as another example.
36610 * lib/time_.h: Fix misspelling.
36611 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36612 Require gl_HEADER_TIME_H_DEFAULTS.
36613 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36614 * m4/time_r.m4 (gl_TIME_R): Likewise.
36615 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36617 2007-03-01 Bruno Haible <bruno@clisp.org>
36619 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36620 * m4/utimens.m4 (gl_UTIMENS): Likewise.
36622 2007-03-01 Jim Meyering <jim@meyering.net>
36624 * modules/xreadlink (Maintainer): Add my name.
36625 * modules/xreadlink-with-size (Depends-on): Alphabetize.
36627 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
36628 Bruno Haible <bruno@clisp.org>
36630 * build-aux/install-reloc: Compile also c-ctype.c.
36631 * build-aux/relocatable.sh.in: New file.
36632 * doc/relocatable.texi: New file.
36633 * doc/relocatable-maint.texi: New file.
36634 * doc/gnulib.texi: Include relocatable-maint.texi.
36635 * lib/progreloc.c: Include unistd.h unconditionally.
36636 * lib/relocwrapper.c: Include unistd.h unconditionally.
36638 (add_dotbin): Use c_tolower.
36639 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36640 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36641 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36642 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36643 to m4/relocatable-lib.m4.
36644 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36645 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36646 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36647 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36648 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36649 * modules/relocatable: New file.
36650 * modules/relocatable-lib: New file.
36651 * modules/relocatable-script: New file.
36653 2007-02-28 Bruno Haible <bruno@clisp.org>
36655 Import --enable-relocatable infrastructure.
36656 * build-aux/config.libpath: New file, from GNU gettext.
36657 * build-aux/install-reloc: New file, from GNU gettext.
36658 * build-aux/reloc-ldflags: New file, from GNU gettext.
36659 * lib/relocatable.h: New file, from GNU gettext.
36660 * lib/relocatable.c: New file, from GNU gettext.
36661 * lib/relocwrapper.c: New file, from GNU gettext.
36662 * m4/relocatable.m4: New file, from GNU gettext.
36664 2007-02-28 Bruno Haible <bruno@clisp.org>
36666 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36668 * modules/xreadlink: New file, from GNU gettext with modifications.
36669 * lib/xreadlink.c: New file, from GNU gettext.
36670 * lib/xreadlink.h: Add comments.
36671 (xreadlink): New declaration.
36673 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36674 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36675 lib/xreadlink-with-size.c.
36676 (configure.ac): Remove gl_XREADLINK invocation.
36677 (Makefile.am): Augment lib_SOURCES.
36678 * m4/xreadlink.m4: Remove file.
36679 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36680 (xreadlink_with_size): Renamed from xreadink.
36681 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36682 * modules/canonicalize (Depends-on): Replace xreadlink with
36683 xreadlink-with-size.
36684 * lib/canonicalize.c (canonicalize_filename_mode): Update.
36686 2007-02-25 Jim Meyering <jim@meyering.net>
36688 * build-aux/announce-gen: When complaining about excess arguments,
36691 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
36693 * README: Document signed integer overflow situation more
36696 2007-02-25 Bruno Haible <bruno@clisp.org>
36698 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36699 'a' or 'A' conversion.
36701 2007-02-25 Bruno Haible <bruno@clisp.org>
36703 * modules/filename: Renamed from modules/pathname.
36704 (Files): Replace lib/pathname.h with lib/filename.h. Replace
36705 lib/concatpath.c with lib/concat-filename.c.
36706 (Makefile.am): Update.
36707 (Include): Replace pathname.h with filename.h.
36708 * lib/filename.h: Renamed from lib/pathname.h.
36709 (concatenated_filename): Renamed from concatenated_pathname.
36710 * lib/concat-filename.c: Renamed from lib/concatpath.c.
36711 (concatenated_filename): Renamed from concatenated_pathname.
36712 * lib/findprog.c: Include filename.h instead of pathname.h.
36713 (find_in_path): Update.
36714 * lib/javacomp.c: Include filename.h instead of pathname.h.
36715 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36716 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36717 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36718 is_oldgcj_14_13_usable, is_javac_usable): Update.
36719 * lib/javaexec.c: Include filename.h instead of pathname.h.
36720 (execute_java_class): Update.
36721 * modules/findprog: Update.
36722 * modules/javacomp: Update.
36723 * modules/javaexec: Update.
36724 * MODULES.html.sh (File system functions): Add 'filename', remove
36727 2007-02-25 Bruno Haible <bruno@clisp.org>
36729 * modules/printf-frexpl-tests: New file.
36730 * tests/test-printf-frexpl.c: New file.
36732 * modules/printf-frexpl: New file.
36733 * lib/printf-frexpl.h: New file.
36734 * lib/printf-frexpl.c: New file.
36735 * m4/printf-frexpl.m4: New file.
36737 2007-02-25 Bruno Haible <bruno@clisp.org>
36739 * modules/printf-frexp-tests: New file.
36740 * tests/test-printf-frexp.c: New file.
36742 * modules/printf-frexp: New file.
36743 * lib/printf-frexp.h: New file.
36744 * lib/printf-frexp.c: New file.
36745 * m4/printf-frexp.m4: New file.
36747 2007-02-25 Bruno Haible <bruno@clisp.org>
36749 Assume automake >= 1.10 for the tests.
36750 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36751 * modules/arctwo-tests: Likewise.
36752 * modules/argp-tests: Likewise.
36753 * modules/avltree-list-tests: Likewise.
36754 * modules/avltree-oset-tests: Likewise.
36755 * modules/avltreehash-list-tests: Likewise.
36756 * modules/carray-list-tests: Likewise.
36757 * modules/crc-tests: Likewise.
36758 * modules/des-tests: Likewise.
36759 * modules/gc-arcfour-tests: Likewise.
36760 * modules/gc-arctwo-tests: Likewise.
36761 * modules/gc-des-tests: Likewise.
36762 * modules/gc-hmac-md5-tests: Likewise.
36763 * modules/gc-hmac-sha1-tests: Likewise.
36764 * modules/gc-md2-tests: Likewise.
36765 * modules/gc-md4-tests: Likewise.
36766 * modules/gc-md5-tests: Likewise.
36767 * modules/gc-pbkdf2-sha1-tests: Likewise.
36768 * modules/gc-rijndael-tests: Likewise.
36769 * modules/gc-sha1-tests: Likewise.
36770 * modules/gc-tests: Likewise.
36771 * modules/getaddrinfo-tests: Likewise.
36772 * modules/hmac-md5-tests: Likewise.
36773 * modules/hmac-sha1-tests: Likewise.
36774 * modules/linked-list-tests: Likewise.
36775 * modules/linkedhash-list-tests: Likewise.
36776 * modules/lock-tests: Likewise.
36777 * modules/md2-tests: Likewise.
36778 * modules/md4-tests: Likewise.
36779 * modules/md5-tests: Likewise.
36780 * modules/rbtree-list-tests: Likewise.
36781 * modules/rbtree-oset-tests: Likewise.
36782 * modules/rbtreehash-list-tests: Likewise.
36783 * modules/read-file-tests: Likewise.
36784 * modules/rijndael-tests: Likewise.
36785 * modules/stdint-tests: Likewise.
36786 * modules/tls-tests: Likewise.
36788 2007-02-24 Bruno Haible <bruno@clisp.org>
36790 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36791 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36792 function; instead check whether isnan with a double argument links.
36793 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36794 function; instead check whether isnan with a 'long double' argument
36796 Reported by Eric Blake <ebb9@byu.net>.
36798 2007-02-24 Bruno Haible <bruno@clisp.org>
36800 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36802 * lib/isnanl.c: Remove all code. Just include isnan.c.
36803 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36805 2007-02-25 Jim Meyering <jim@meyering.net>
36807 Avoid conflicting types for 'unsetenv' on FreeBSD.
36808 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36809 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36812 2007-02-24 Bruno Haible <bruno@clisp.org>
36814 * modules/isnanl-nolibm-tests: New file.
36815 * tests/test-isnanl.c: New file.
36817 * modules/isnanl-nolibm: New file.
36818 * lib/isnanl.h: New file.
36819 * lib/isnanl.c: New file.
36820 * m4/isnanl.m4: New file.
36822 2007-02-24 Bruno Haible <bruno@clisp.org>
36824 * modules/isnan-nolibm-tests: New file.
36825 * tests/test-isnan.c: New file.
36827 * modules/isnan-nolibm: New file.
36828 * lib/isnan.h: New file.
36829 * lib/isnan.c: New file.
36830 * m4/isnan.m4: New file.
36832 2007-02-24 Bruno Haible <bruno@clisp.org>
36834 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36835 assume that an exponent fits in 20 bits.
36837 2007-02-24 Jim Meyering <jim@meyering.net>
36839 * m4/regex.m4: Update the description of the configure-time option,
36840 --without-included-regex, to state accurately what the defaults are,
36841 and perhaps to give people an idea why using this option is risky.
36843 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
36845 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36846 loops on small arguments. This attempts to avoid the problem
36847 Bruno Haible reported for AIX 4.3.2 in
36848 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36850 2007-02-23 Bruno Haible <bruno@clisp.org>
36852 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36853 Needed for help2man.
36855 2007-02-23 Karl Berry <karl@gnu.org>
36857 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36858 exists, foo.h should be cvs-ignored, not committed.
36860 2007-02-23 Eric Blake <ebb9@byu.net>
36862 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
36863 * lib/stat-time.h (includes): Likewise.
36864 * lib/utimecmp.c (includes): Likewise.
36865 * lib/utimens.h (includes): Likewise.
36866 * lib/getdate.y (includes): Also include "timespec.h" for use
36867 internal to the module.
36868 * modules/utimens (Depends-on): Revert yesterday's patch.
36869 * modules/nanosleep (Depends-on): Add missing dependency.
36871 2007-02-22 Bruno Haible <bruno@clisp.org>
36873 * lib/glob.c: Don't include getlogin_r.h.
36875 2007-02-22 Jim Meyering <jim@meyering.net>
36877 * modules/utimens (Depends-on): Add timespec, required for
36878 utimens.h's inclusion of timespec.h.
36880 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
36882 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36883 long unreadable paths in GNU/Linux. Problem reported by Andreas
36885 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36886 I'll try to think of a better way to fix the Solaris problem.
36888 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36889 like glibc; on Solaris 10, it fails with errno == EINVAL.
36890 POSIX says the behavior is unspecified if the first argument is NULL,
36891 so play it safe and never pass NULL to the system getcwd.
36893 2007-02-21 Jim Meyering <jim@meyering.net>
36895 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36896 of gettimeofday. It would conflict with the one now always
36897 provided via sys_time_.h. Reported by Matthew Woehlke, as
36898 an IRIX 6.5 build failure.
36900 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
36902 Minor fixups to port to Solaris 10 with Sun C 5.8.
36903 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36904 * modules/getcwd (Depends-on): Add dirfd.
36905 * lib/putenv.c (putenv): #undef it.
36906 (rpl_putenv): New decl.
36907 (malloc, free): Include <stdlib.h> rather than prototyping separately.
36909 2007-02-20 Bruno Haible <bruno@clisp.org>
36911 * modules/stdio-tests: New file.
36912 * tests/test-stdio.c: New file.
36914 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36915 (Depends-on): Add stdio.
36916 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36917 (Include): Use <stdio.h> instead of vsnprintf.h.
36918 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36919 HAVE_DECL_VSNPRINTF.
36920 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36922 * modules/snprintf (Files): Remove lib/snprintf.h.
36923 (Depends-on): Add stdio.
36924 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36925 (Include): Use <stdio.h> instead of snprintf.h.
36926 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36927 HAVE_DECL_SNPRINTF.
36928 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36929 * lib/getaddrinfo.c: Likewise.
36931 * modules/stdio: New file.
36932 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36933 * lib/snprintf.h: Remove file.
36934 * lib/vsnprintf.h: Remove file.
36935 * lib/.cppi-disable: Remove snprintf.h.
36936 * m4/stdio_h.m4: New file.
36937 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36939 2007-02-20 Jim Meyering <jim@meyering.net>
36941 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36942 used by e.g., mingw. From Bruno Haible.
36944 2007-02-19 Bruno Haible <bruno@clisp.org>
36946 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36948 Reported by Ben Pfaff <blp@cs.stanford.edu>.
36950 2007-02-19 Bruno Haible <bruno@clisp.org>
36952 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36955 2007-02-19 Bruno Haible <bruno@clisp.org>
36957 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36959 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36961 2007-02-19 Jim Meyering <jim@meyering.net>
36963 Don't use FD after a successful "fdopendir (fd)".
36964 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36965 Reset it by calling dirfd on the just-obtained DIR*.
36967 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36968 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36970 2007-02-18 Bruno Haible <bruno@clisp.org>
36972 * lib/readlink.c: Include <unistd.h>.
36973 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36975 * modules/readlink (Depends-on): Add unistd.
36976 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36977 (Include): Add <unistd.h>.
36979 * lib/getlogin_r.h: Remove file.
36980 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36981 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36982 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36983 HAVE_DECL_GETLOGIN_R.
36984 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36985 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36986 (Include): Use <unistd.h> instead of getlogin_r.h.
36988 * lib/getcwd.h: Remove file.
36989 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36990 * lib/xgetcwd.c: Likewise.
36991 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36992 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36993 * modules/getcwd (Files): Remove lib/getcwd.h.
36994 (Depends-on): Add unistd.
36995 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36996 (Include): Use <unistd.h> instad of getcwd.h.
36998 * lib/ftruncate.c: Include <unistd.h> first.
36999 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37000 Set HAVE_FTRUNCATE.
37001 * modules/ftruncate (Depends-on): Add unistd.
37002 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37004 * lib/fchdir.c: Include <unistd.h> first.
37005 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37006 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37007 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37008 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37009 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37011 * lib/dup2.c: Include <unistd.h> first.
37012 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37014 * modules/dup2 (Depends-on): Add unistd.
37015 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37017 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37018 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37019 REPLACE_CHOWN. Don't define chown as a macro here.
37020 * modules/chown (Depends-on): Add unistd.
37021 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37023 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37024 Add definition for GL_LINK_WARNING.
37025 (chown, dup2): New declarations.
37026 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37028 (ftruncate): New declaration.
37029 (getcwd): New declaration, taken from old getcwd.h.
37030 (getlogin_r): New declaration, taken from old getlogin_r.h.
37031 (readlink): New declaration.
37032 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37033 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37034 (gl_PREREQ_UNISTD): Remove macro.
37035 (gl_UNISTD_MODULE_INDICATOR): New macro.
37036 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37037 many new variables. Don't set UNISTD_H.
37038 * modules/unistd (Description): Change.
37039 (Depends-on): Add link-warning.
37040 (configure.ac): Update.
37041 (Makefile.am): Create unistd.h always. Substitute many new variables
37044 2007-02-18 Bruno Haible <bruno@clisp.org>
37046 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37047 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37049 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37050 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37051 * lib/getsubopt.h: Remove file.
37052 * modules/getsubopt (Files): Remove lib/getsubopt.h.
37053 (Depends-on): Add stdlib.
37054 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37055 (Includes): Use <stdlib.h> instead of getsubopt.h.
37056 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37057 Set HAVE_GETSUBOPT.
37058 * lib/getsubopt.c: Don't include getsubopt.h.
37060 2007-02-18 Bruno Haible <bruno@clisp.org>
37062 * modules/fchdir (Depends-on): Add dup2.
37064 2007-02-18 Bruno Haible <bruno@clisp.org>
37066 * lib/stdlib_.h: Handle glibc's special invocation convention
37069 2007-02-18 Bruno Haible <bruno@clisp.org>
37071 * modules/stdlib-tests: New file.
37072 * tests/test-stdlib.c: New file.
37074 * modules/mkstemp (Files): Remove lib/mkstemp.h.
37075 (Depends-on): Add stdlib.
37076 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37077 (Includes): Use <stdlib.h> instead of mkstemp.h.
37078 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37079 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37080 * lib/mkstemp.c: Don't include mkstemp.h.
37081 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37082 * lib/stdlib--.h: Don't include mkstemp.h.
37084 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37085 (Depends-on): Add stdlib.
37086 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37087 (Includes): Use <stdlib.h> instead of mkdtemp.h.
37088 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37090 * lib/mkdtemp.c: Don't include mkdtemp.h.
37091 * lib/clean-temp.c: Don't include mkdtemp.h.
37093 * modules/exit (Files): Remove lib/exit.h.
37094 (Depends-on): Add stdlib.
37095 (Makefile.am): Remove lib_SOURCES.
37096 (Include): Use <stdlib.h> instead of exit.h.
37097 * lib/argmatch.c: Don't include exit.h.
37098 * lib/execute.c: Likewise.
37099 * lib/pagealign_alloc.c: Likewise.
37100 * lib/pipe.c: Likewise.
37101 * lib/wait-process.c: Likewise.
37102 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37103 * lib/exitfail.c: Likewise.
37104 * lib/savewd.c: Likewise.
37105 * lib/xsetenv.c: Likewise.
37107 * modules/stdlib: New file.
37108 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37109 and extra comments about mkstemp().
37110 * lib/exit.h: Remove file.
37111 * lib/mkdtemp.h: Remove file.
37112 * lib/mkstemp.h: Remove file.
37113 * m4/stdlib_h.m4: New file.
37114 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37116 2007-02-18 Bruno Haible <bruno@clisp.org>
37118 * modules/math-tests: New file.
37119 * tests/test-math.c: New file.
37121 * modules/math: New file.
37122 * modules/mathl (Files): Remove lib/mathl.h.
37123 (Depends-on): Add math.
37124 (Makefile.am): Don't mention mathl.h.
37125 (Include): Use <math.h> instead of mathl.h.
37126 * lib/math_.h: New file.
37127 * lib/mathl.h: Remove file.
37128 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37130 * lib/asinl.c: Likewise.
37131 * lib/atanl.c: Likewise.
37132 * lib/ceill.c: Likewise.
37133 * lib/cosl.c: Likewise.
37134 * lib/expl.c: Likewise.
37135 * lib/floorl.c: Likewise.
37136 * lib/frexpl.c: Likewise.
37137 * lib/ldexpl.c: Likewise.
37138 * lib/logl.c: Likewise.
37139 * lib/sincosl.c: Likewise.
37140 * lib/sinl.c: Likewise.
37141 * lib/sqrtl.c: Likewise.
37142 * lib/tanl.c: Likewise.
37143 * lib/trigl.c: Likewise.
37144 * m4/math_h.m4: New file.
37145 * MODULES.html.sh (Mathematics): Add math.
37147 2007-02-17 Bruno Haible <bruno@clisp.org>
37149 * modules/wctype-tests: New file.
37150 * tests/test-wctype.c: New file.
37152 * modules/wchar-tests: New file.
37153 * tests/test-wchar.c: New file.
37155 * modules/unistd-tests: New file.
37156 * tests/test-unistd.c: New file.
37158 * modules/time-tests: New file.
37159 * tests/test-time.c: New file.
37161 * modules/sysexits-tests: New file.
37162 * tests/test-sysexits.c: New file.
37164 * modules/sys_time-tests: New file.
37165 * tests/test-sys_time.c: New file.
37167 * modules/sys_stat-tests: New file.
37168 * tests/test-sys_stat.c: New file.
37170 * modules/sys_socket-tests: New file.
37171 * tests/test-sys_socket.c: New file.
37173 * modules/sys_select-tests: New file.
37174 * tests/test-sys_select.c: New file.
37176 * modules/string-tests: New file.
37177 * tests/test-string.c: New file.
37179 * modules/stdbool-tests: New file.
37180 * tests/test-stdbool.c: New file.
37182 * modules/netinet_in-tests: New file.
37183 * tests/test-netinet_in.c: New file.
37185 * modules/inttypes-tests: New file.
37186 * tests/test-inttypes.c: New file.
37188 * modules/fcntl-tests: New file.
37189 * tests/test-fcntl.c: New file.
37191 * modules/byteswap-tests: New file.
37192 * tests/test-byteswap.c: New file.
37194 * modules/arpa_inet-tests: New file.
37195 * tests/test-arpa_inet.c: New file.
37197 2007-02-17 Bruno Haible <bruno@clisp.org>
37199 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37200 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37201 if the corresponding module is not enabled. Emit link warnings if
37202 the function is used nevertheless.
37203 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37204 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37205 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37206 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37207 * modules/inttypes (Depends-on): Add link-warning.
37208 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37209 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37210 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37211 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37212 * modules/imaxdiv (configure.ac): Likewise.
37213 * modules/strtoimax (configure.ac): Likewise.
37214 * modules/strtoumax (configure.ac): Likewise.
37216 2007-02-17 Bruno Haible <bruno@clisp.org>
37218 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37219 gl_STRING_MODULE_INDICATOR_DEFAULTS.
37220 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37221 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37223 2007-02-17 Bruno Haible <bruno@clisp.org>
37225 * modules/link-warning: New file.
37226 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37227 * lib/string_.h (GL_LINK_WARNING): Remove definition.
37228 * modules/string (Depends-on): Add link-warning.
37229 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37231 * MODULES.html.sh (Support for building libraries and executables): Add
37234 2007-02-17 Bruno Haible <bruno@clisp.org>
37236 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37237 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37238 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37241 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
37242 Bruno Haible <bruno@clisp.org>
37244 * modules/tmpfile: New file.
37245 * lib/tmpfile.c: New file.
37246 * m4/tmpfile.m4: New file.
37247 * MODULES.html.sh (func_all_modules): New section "Input/output".
37249 2007-02-15 Bruno Haible <bruno@clisp.org>
37251 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37252 (supports_delete_on_close): New function.
37253 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37255 2007-02-14 Bruno Haible <bruno@clisp.org>
37257 * modules/mbspcasecmp-tests: New file.
37258 * tests/test-mbspcasecmp.sh: New file.
37259 * tests/test-mbspcasecmp.c: New file.
37261 New module mbspcasecmp.
37262 * modules/mbspcasecmp: New file.
37263 * lib/mbspcasecmp.c: New file.
37264 * lib/string_.h (strncasecmp): Change warning message.
37265 (mbspcasecmp): New declaration.
37266 * m4/mbspcasecmp.m4: New file.
37267 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37268 GNULIB_MBSPCASECMP.
37269 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37270 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37272 2007-02-14 Bruno Haible <bruno@clisp.org>
37274 * modules/mbsncasecmp-tests: New file.
37275 * tests/test-mbsncasecmp.sh: New file.
37276 * tests/test-mbsncasecmp.c: New file.
37278 New module mbsncasecmp.
37279 * modules/mbsncasecmp: New file.
37280 * lib/mbsncasecmp.c: New file.
37281 * lib/string_.h (mbsncasecmp): New declaration.
37282 * m4/mbsncasecmp.m4: New file.
37283 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37284 GNULIB_MBSNCASECMP.
37285 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37286 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37288 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37290 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37291 Verify that it doesn't overlap with our flags.
37292 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37293 do not have the desired effect in multibyte locales; instead, use
37295 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37296 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37297 we don't require GNU fnmatch ourselves (if our users require it, they
37298 should do so explicitly).
37300 Fix regex code so it doesn't rely on strcasecmp.
37301 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37302 Otherwise, include gnulib's langinfo.h.
37303 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37304 undesirable behavior in non-C locales. Instead, rely on localecharset.
37305 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37306 * modules/regex (FILES): Remove m4/codeset.m4.
37307 (Depends-on): Add localcharset. Remove strcase.
37309 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37311 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37312 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37314 2007-02-13 Bruno Haible <bruno@clisp.org>
37316 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37317 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37319 2007-02-12 Bruno Haible <bruno@clisp.org>
37321 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37322 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37323 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37324 time warning rather than a link error.
37326 2007-02-12 Bruno Haible <bruno@clisp.org>
37328 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37329 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37330 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37332 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37334 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37337 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37339 New module 'time', so that apps can include <time.h> as per
37340 POSIX and GNU instead of separate include files like time_r.h
37341 and timegm.h. This implementation tries out a simpler approach
37342 for replacing decls in standard include files (as compared to
37343 the string module), somewhat as an experiment.
37345 * config/srclist.txt: Comment out mktime.c for now.
37346 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37347 since it doesn't apply any more. Use generic wording instead.
37348 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37350 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37351 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37352 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37353 Don't include <sys/types.h>; no longer needed since we assume C89.
37354 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37355 * lib/strftime.c: Likewise.
37356 * lib/time_r.c: Likewise.
37357 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37358 * lib/nanosleep.c: Include <time.h> first, to check interface.
37359 * lib/strptime.c: Likewise.
37360 * lib/time_r.c: Likewise.
37361 * lib/timegm.c: Likewise.
37362 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37364 * lib/timegm.c: Don't include timegm.h; no longer needed.
37365 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37366 time.h now handles any problems in that area.
37367 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37368 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37369 that time.h defines struct timespec.
37370 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37371 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37373 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37374 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37375 needed. Set REPLACE_LOCALTIME.
37376 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37377 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37378 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37379 nanosleep; time_h.m4 now does that. Don't require
37380 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37381 module handles this now.
37382 * modules/getdate (Depends-on): Remove timespec. Add time.
37383 * modules/nanosleep (Depends-on): Likewise.
37384 * modules/stat-time (Depends-on): Likewise.
37385 * modules/nanosleep (Include): Include time.h, not timespec.h.
37386 * modules/strptime (Files): Remove lib/strptime.h.
37387 (Depends-on): Add extensions, time.
37388 (Include): Include time.h, not strptime.h.
37389 * modules/time_r (Files): Remove lib/time_r.h.
37390 (Depends-on): Add time.
37391 (Include): Include time.h, not time_r.h.
37392 * modules/timegm: Likewise.
37393 * modules/timespec (Description): Now does timespec-related decls
37394 of our own, instead of struct timespec itself.
37395 (Depends-on): Add time; remove extensions.
37396 (Maintainer): Add self.
37397 * modules/utimecmp (Depends-on): Add time; remove timespec.
37398 * modules/utimens (Depends-on): Likewise.
37399 * modules/xnanosleep (Depends-on): Likewise.
37401 2007-02-11 Bruno Haible <bruno@clisp.org>
37403 * lib/c-strstr.c: Include allocsa.h.
37404 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37405 * lib/c-strcasestr.c: Include allocsa.h.
37406 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37407 * lib/strcasestr.c: Include allocsa.h.
37408 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37409 * lib/mbsstr.c: Include allocsa.h.
37410 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37411 allocsa/freesa instead of malloc/free.
37412 * lib/mbscasestr.c: Include allocsa.h.
37413 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37414 allocsa/freesa instead of malloc/free.
37415 * modules/c-strstr (Depends-on): Add allocsa.
37416 * modules/c-strcasestr (Depends-on): Likewise.
37417 * modules/strcasestr (Depends-on): Likewise.
37418 * modules/mbsstr (Depends-on): Likewise.
37419 * modules/mbscasestr (Depends-on): Likewise.
37421 2007-02-11 Bruno Haible <bruno@clisp.org>
37423 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37425 * modules/mbsspn-tests: New file.
37426 * tests/test-mbsspn.sh: New file.
37427 * tests/test-mbsspn.c: New file.
37429 2007-02-11 Bruno Haible <bruno@clisp.org>
37431 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37433 * modules/mbspbrk-tests: New file.
37434 * tests/test-mbspbrk.sh: New file.
37435 * tests/test-mbspbrk.c: New file.
37437 2007-02-11 Bruno Haible <bruno@clisp.org>
37439 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37442 * modules/mbscspn-tests: New file.
37443 * tests/test-mbscspn.sh: New file.
37444 * tests/test-mbscspn.c: New file.
37446 2007-02-11 Bruno Haible <bruno@clisp.org>
37448 * modules/mbscasecmp-tests: New file.
37449 * tests/test-mbscasecmp.sh: New file.
37450 * tests/test-mbscasecmp.c: New file.
37452 2007-02-11 Bruno Haible <bruno@clisp.org>
37454 Ensure O(n) worst-case complexity of mbscasestr.
37455 * lib/mbscasestr.c: Include stdbool.h.
37456 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37458 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37459 the bookkeeping indicates that it's worth it.
37460 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37462 * modules/mbscasestr-tests: New file.
37463 * tests/test-mbscasestr1.c: New file.
37464 * tests/test-mbscasestr2.sh: New file.
37465 * tests/test-mbscasestr2.c: New file.
37466 * tests/test-mbscasestr3.sh: New file.
37467 * tests/test-mbscasestr3.c: New file.
37468 * tests/test-mbscasestr4.sh: New file.
37469 * tests/test-mbscasestr4.c: New file.
37470 * m4/locale-tr.m4: New file.
37472 2007-02-11 Bruno Haible <bruno@clisp.org>
37474 Ensure O(n) worst-case complexity of mbsstr.
37475 * lib/mbsstr.c: Include stdbool.h.
37476 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37478 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37479 bookkeeping indicates that it's worth it.
37480 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37482 * modules/mbsstr-tests: New file.
37483 * tests/test-mbsstr1.c: New file.
37484 * tests/test-mbsstr2.sh: New file.
37485 * tests/test-mbsstr2.c: New file.
37486 * tests/test-mbsstr3.sh: New file.
37487 * tests/test-mbsstr3.c: New file.
37488 * m4/locale-fr.m4: New file.
37490 2007-02-11 Bruno Haible <bruno@clisp.org>
37492 * lib/mbsrchr.c (mbsrchr): Fix bug.
37494 * modules/mbsrchr-tests: New file.
37495 * tests/test-mbsrchr.sh: New file.
37496 * tests/test-mbsrchr.c: New file.
37498 2007-02-11 Bruno Haible <bruno@clisp.org>
37500 * lib/mbschr.c (mbschr): Fix bug.
37502 * modules/mbschr-tests: New file.
37503 * tests/test-mbschr.sh: New file.
37504 * tests/test-mbschr.c: New file.
37505 * m4/locale-zh.m4: New file.
37507 2007-02-11 Bruno Haible <bruno@clisp.org>
37509 Support for copying multibyte string iterators.
37510 * lib/mbiter.h: Include <string.h>.
37511 (mbiter_multi_copy): New function.
37512 (mbi_copy): New macro.
37513 * lib/mbuiter.h: Include <string.h>.
37514 (mbuiter_multi_copy): New function.
37515 (mbui_copy): New macro.
37517 2007-02-11 Bruno Haible <bruno@clisp.org>
37520 * modules/mbslen: New file.
37521 * lib/mbslen.c: New file.
37522 * lib/string_.h (mbslen): New declaration.
37523 * m4/mbslen.m4: New file.
37524 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37526 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37527 * MODULES.html.sh (Internationalization functions): Add mbslen.
37529 2007-02-11 Bruno Haible <bruno@clisp.org>
37531 Ensure O(n) worst-case complexity of strcasestr substitute.
37532 * lib/strcasestr.c: Include stdbool.h.
37533 (knuth_morris_pratt): New function.
37534 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37535 bookkeeping indicates that it's worth it.
37536 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37538 * modules/strcasestr-tests: New file.
37539 * tests/test-strcasestr.c: New file.
37541 2007-02-11 Bruno Haible <bruno@clisp.org>
37543 Ensure O(n) worst-case complexity of c_strcasestr.
37544 * lib/c-strcasestr.c: Include stdbool.h, string.h.
37545 (knuth_morris_pratt): New function.
37546 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37547 the bookkeeping indicates that it's worth it.
37548 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37550 * modules/c-strcasestr-tests: New file.
37551 * tests/test-c-strcasestr.c: New file.
37553 2007-02-11 Bruno Haible <bruno@clisp.org>
37555 Ensure O(n) worst-case complexity of c_strstr.
37556 * lib/c-strstr.c: Include stdbool.h, string.h.
37557 (knuth_morris_pratt): New function.
37558 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37559 bookkeeping indicates that it's worth it.
37560 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37562 * lib/c-strstr.c: Complete rewrite for maintainability.
37564 * modules/c-strstr-tests: New file.
37565 * tests/test-c-strstr.c: New file.
37567 2007-02-11 Bruno Haible <bruno@clisp.org>
37569 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37570 5.2.1 and earlier, whereby \055 was treated just like the range
37572 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37574 2007-02-08 Bruno Haible <bruno@clisp.org>
37576 * modules/regex (Depends-on): Add stdbool.
37577 Reported by Dalibor Topic <robilad@kaffe.org>.
37579 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
37581 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37582 Prefer returning from main to exiting from it.
37583 Remove unnecessary parens after sizeof.
37585 2007-02-05 Bruno Haible <bruno@clisp.org>
37588 * modules/mbssep: New file.
37589 * lib/mbssep.c: New file.
37590 * lib/string_.h (strsep): Add a conditional link warning.
37591 (mbssep): New declaration.
37592 * m4/mbssep.m4: New file.
37593 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37595 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37596 * MODULES.html.sh (Internationalization functions): Add mbssep.
37598 2007-02-05 Bruno Haible <bruno@clisp.org>
37600 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37601 Optimize search in case of 1 delimiter.
37603 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37605 * lib/acl.h: Include sys/types.h before sys/acl.h.
37607 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37609 Merge upstream fix for glibc bugzilla #3957:
37611 2007-02-05 Jakub Jelinek <jakub@redhat.com>
37613 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37614 bit for RE_HAT_LISTS_NOT_NEWLINE.
37615 (build_charclass_op): Remove bogus comment.
37617 2007-02-05 Simon Josefsson <simon@josefsson.org>
37619 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37621 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37623 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37624 * lib/memmem.c [!defined _LIBC]: Include config.h.
37626 2007-02-04 Bruno Haible <bruno@clisp.org>
37628 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37631 2007-02-04 Bruno Haible <bruno@clisp.org>
37633 New module mbstok_r.
37634 * modules/mbstok_r: New file.
37635 * lib/mbstok_r.c: New file.
37636 * lib/string_.h (strtok_r): Change argument names to match the
37637 comments. Add a conditional link warning.
37638 (mbstok_r): New declaration.
37639 * m4/mbstok_r.m4: New file.
37640 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37642 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37643 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37645 2007-02-04 Bruno Haible <bruno@clisp.org>
37648 * modules/mbsspn: New file.
37649 * lib/mbsspn.c: New file.
37650 * lib/string_.h (strspn): Add a conditional link warning.
37651 (mbsspn): New declaration.
37652 * m4/mbsspn.m4: New file.
37653 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37655 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37656 * MODULES.html.sh (Internationalization functions): Add mbsspn.
37658 2007-02-04 Bruno Haible <bruno@clisp.org>
37660 New module mbspbrk.
37661 * modules/mbspbrk: New file.
37662 * lib/mbspbrk.c: New file.
37663 * lib/string_.h (strpbrk): Add a conditional link warning.
37664 (mbspbrk): New declaration.
37665 * m4/mbspbrk.m4: New file.
37666 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37668 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37669 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37671 2007-02-04 Bruno Haible <bruno@clisp.org>
37673 New module mbscspn.
37674 * modules/mbscspn: New file.
37675 * lib/mbscspn.c: New file.
37676 * lib/string_.h (strcspn): Add a conditional link warning.
37677 (mbscspn): New declaration.
37678 * m4/mbscspn.m4: New file.
37679 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37681 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37682 * MODULES.html.sh (Internationalization functions): Add mbscspn.
37684 2007-02-04 Bruno Haible <bruno@clisp.org>
37686 New module mbscasestr, reduced goal of strcasestr.
37687 * modules/mbscasestr: New file.
37688 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37689 (mbscasestr): Renamed from strcasestr.
37690 * lib/strcasestr.c: Don't include mbuiter.h.
37691 (strcasestr): Remove support for multibyte locales.
37692 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37693 Change the conditional link warning.
37694 (mbscasestr): New declaration.
37695 * m4/mbscasestr.m4: New file.
37696 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37697 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37698 REPLACE_STRCASESTR.
37699 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37700 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37701 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37702 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37703 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37704 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37705 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37706 (Depends-on): Remove mbuiter.
37707 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37709 2007-02-04 Bruno Haible <bruno@clisp.org>
37711 Simplify handling of strncasecmp.
37712 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37713 the conditional link warning.
37714 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37715 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37716 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37717 * modules/strcase (configure.ac): Don't invoke
37718 gl_STRING_MODULE_INDICATOR.
37719 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37721 2007-02-04 Bruno Haible <bruno@clisp.org>
37723 New module mbscasecmp, reduced goal of strcasecmp.
37724 * modules/mbscasecmp: New file.
37725 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37726 (mbscasecmp): Renamed from strcasecmp.
37727 * lib/strcasecmp.c: Don't include mbuiter.h.
37728 (strcasecmp): Remove support for multibyte locales.
37729 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37730 Change the conditional link warning.
37731 (mbscasecmp): New declaration.
37732 * m4/mbscasecmp.m4: New file.
37733 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37734 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37735 REPLACE_STRCASECMP.
37736 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37737 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37739 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37740 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37741 * modules/strcase (Files): Remove m4/mbrtowc.m4.
37742 (Depends-on): Remove mbuiter.
37743 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37745 2007-02-04 Bruno Haible <bruno@clisp.org>
37747 New module mbsstr. Remove module strstr.
37748 * modules/mbsstr: New file.
37749 * modules/strstr: Remove file.
37750 * lib/mbsstr.c: Renamed from lib/strstr.c.
37751 (mbsstr): Renamed from strstr.
37752 * lib/string_.h (strstr): Remove declaration. Change the conditional
37754 (mbsstr): New declaration.
37755 * m4/mbsstr.m4: New file.
37756 * m4/strstr.m4: Remove file.
37757 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37759 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37760 Don't initialize GNULIB_STRSTR.
37761 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37762 substitute GNULIB_STRSTR and REPLACE_STRSTR.
37763 * MODULES.html.sh (Internationalization functions): Add mbsstr.
37764 (Support for systems lacking ANSI C 89): Remove strstr.
37766 2007-02-04 Bruno Haible <bruno@clisp.org>
37768 New module mbsrchr.
37769 * modules/mbsrchr: New file.
37770 * lib/mbsrchr.c: New file.
37771 * lib/string_.h (strrchr): Add a conditional link warning.
37772 (mbsrchr): New declaration.
37773 * m4/mbsrchr.m4: New file.
37774 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37776 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37777 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37779 2007-02-04 Bruno Haible <bruno@clisp.org>
37782 * modules/mbschr: New file.
37783 * lib/mbschr.c: New file.
37784 * lib/string_.h (strchr): Add a conditional link warning.
37785 (mbschr): New declaration.
37786 * m4/mbschr.m4: New file.
37787 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37789 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37790 * MODULES.html.sh (Internationalization functions): Add mbschr.
37792 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37794 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37796 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37798 2007-02-04 Bruno Haible <bruno@clisp.org>
37800 New module description section 'configure.ac-early'.
37801 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37802 (func_get_autoconf_early_snippet): New function.
37803 (func_import, func_create_testdir): Use it. Remove special cases for
37804 modules 'extensions' and 'lock'.
37805 * modules/extensions (configure.ac-early): Require
37806 gl_USE_SYSTEM_EXTENSIONS.
37807 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37809 2007-02-04 Bruno Haible <bruno@clisp.org>
37811 Make use of gcj-4.3's -fsource and -ftarget option.
37812 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37813 and if so try the options -fsource and -ftarget.
37814 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37815 source_version, ftarget_option, target_version arguments.
37816 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37817 (is_envjavac_oldgcj_14_14_usable): Renamed from
37818 is_envjavac_gcj_14_14_usable.
37819 (is_envjavac_oldgcj_14_13_usable): Renamed from
37820 is_envjavac_gcj_14_13_usable.
37821 (is_gcj_present): Update.
37822 (is_gcj_43, is_gcj43_usable): New functions.
37823 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37824 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37825 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37826 try the options -fsource and -ftarget.
37828 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37830 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37831 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37834 2007-02-03 Jim Meyering <jim@meyering.net>
37836 Give tools a better chance to allocate space for very large buffers.
37837 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37839 Make pwd and readlink work also when run with an unreadable parent dir
37840 on systems with openat support.
37841 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37842 provided getcwd function, even when we have openat support.
37843 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37845 2007-02-02 Bruno Haible <bruno@clisp.org>
37847 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37848 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37849 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37850 portability problems if one of these functions is only used on specific
37852 Reported by Paul Eggert.
37854 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
37856 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37857 is causing more trouble than it's curing.
37858 * lib/regex_internal.h (__mempcpy): Remove.
37859 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37860 (and make the code a tad smaller to boot).
37861 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37863 2007-02-02 Jim Meyering <jim@meyering.net>
37865 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37866 section, not in the Makefile.am: one.
37868 2007-02-02 Eric Blake <ebb9@byu.net>
37870 * lib/strchrnul.c: Always include config.h first.
37872 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37873 gnulib strstr is not necessary here.
37875 2007-02-02 Simon Josefsson <simon@josefsson.org>
37877 * m4/socklen.m4: Fix typo.
37879 2007-02-02 Eric Blake <ebb9@byu.net>
37881 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37882 * modules/netinet_in (Makefile.am): Likewise.
37884 2007-02-01 Bruno Haible <bruno@clisp.org>
37886 * lib/string_.h (GL_LINK_WARNING): New macro.
37887 (strcasecmp, strstr, strcasestr): If provided by the system,
37888 conditionally define as a macro that leads to a warning instead of to
37890 (strncasecmp): Conditionally define as a macro that leads to a warning.
37892 2007-02-01 Karl Berry <karl@gnu.org>
37894 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37896 2007-02-01 Bruno Haible <bruno@clisp.org>
37898 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37901 2007-02-01 Eric Blake <ebb9@byu.net>
37903 * modules/regex (Depends-on): Revert dependence on mempcpy.
37904 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37905 module's definition of mempcpy.
37906 Reported by Paul Eggert.
37908 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
37910 * lib/string_.h: If the gnulib module XYZ is not present, undefine
37911 the symbol XYZ before redefining it. This fixes a problem with
37912 programs that don't use XYZ, when compiled on systems that define
37913 XYZ to something else.
37915 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
37917 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37918 occurs when "mkdir -m foo" creates a setgid directory that is (1)
37919 writeable to group or other and (2) is intended to have a special
37920 mode bit that is set or cleared. In such a case, the directory
37921 should be neither group- nor other-writeable until the special
37922 mode bits are right.
37924 2007-01-31 Eric Blake <ebb9@byu.net>
37926 * modules/mountlist (Depends-on): Add strstr.
37928 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37930 * modules/string (Makefile.am): Remove redundant replacement.
37931 * modules/regex (Depends-on): Add mempcpy.
37933 2007-01-31 Bruno Haible <bruno@clisp.org>
37935 New module description field 'Link'.
37936 * gnulib-tool (func_usage): Document --extract-link-directive.
37937 (sed_extract_prog): Recognize 'Link' directive.
37938 (func_get_link_directive): New function.
37939 (func_import): Show summary of link directives.
37940 Handle --extract-link-directive option.
37941 * modules/acl (Link): New section.
37942 * modules/clock-time (Link): New section.
37943 * modules/euidaccess (Link): New section.
37944 * modules/gettext (Link): New section.
37945 * modules/iconv (Link): New section.
37946 * modules/lock (Link): New section.
37947 * modules/nanosleep (Link): New section.
37948 * modules/readline (Link): New section.
37950 2007-01-27 Bruno Haible <bruno@clisp.org>
37952 Enforce the use of gnulib modules for unportable <string.h> functions.
37953 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37954 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37955 (gl_HEADER_STRING_H_BODY): Require it.
37956 * lib/string_.h: If the gnulib module XYZ is not present, redefine
37957 the symbol XYZ to one that gives a link error.
37958 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37959 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37960 * modules/mempcpy (configure.ac): Likewise.
37961 * modules/memrchr (configure.ac): Likewise.
37962 * modules/stpcpy (configure.ac): Likewise.
37963 * modules/stpncpy (configure.ac): Likewise.
37964 * modules/strcase (configure.ac): Likewise.
37965 * modules/strcasestr (configure.ac): Likewise.
37966 * modules/strchrnul (configure.ac): Likewise.
37967 * modules/strdup (configure.ac): Likewise.
37968 * modules/strndup (configure.ac): Likewise.
37969 * modules/strnlen (configure.ac): Likewise.
37970 * modules/strpbrk (configure.ac): Likewise.
37971 * modules/strsep (configure.ac): Likewise.
37972 * modules/strstr (configure.ac): Likewise.
37973 * modules/strtok_r (configure.ac): Likewise.
37975 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
37977 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37979 2007-01-30 Jim Meyering <jim@meyering.net>
37981 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37983 2007-01-29 Bruno Haible <bruno@clisp.org>
37985 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37986 * lib/execute.c: Likewise.
37987 * lib/pipe.c: Likewise.
37988 * lib/printf-args.h: Likewise.
37989 * lib/printf-args.c: Likewise.
37990 * lib/printf-parse.c: Likewise.
37991 * lib/vasnprintf.c: Likewise.
37993 2007-01-29 Eric Blake <ebb9@byu.net>
37995 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37998 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
38000 * lib/strptime.h (strptime): Use 'restrict' for args where
38001 POSIX requires this.
38002 * lib/strptime.c (strptime): Likewise.
38003 Change license notice from LGPL to GPL, since gnulib-tool will
38004 change this as needed.
38005 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38007 Include "strptime.h" first, to check interface.
38008 Do not #undef _LIBC and _NL_CURRENT.
38009 Do not include <stdlib.h>; no longer needed.
38010 Include "time_r.h" and declare ptime_locale_status
38011 only if _LIBC is not defined.
38012 (__P): Remove unused macro.
38013 (match_string): Bring back glibc version, but use it only if _LIBC
38015 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38016 Remove unnecessary assertion and abort() call.
38017 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38018 * m4/strptime.m4: Fix serial number comment.
38019 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38020 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38021 (Depends-on): Add time_r.
38023 2007-01-29 Bruno Haible <bruno@clisp.org>
38025 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38027 * modules/strptime (Depends-on): Add stdbool.
38028 * lib/strptime.h: Include <time.h> always. Add comments.
38030 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
38032 * modules/strptime: New file.
38033 * lib/strptime.h: New file.
38034 * lib/strptime.c: New file.
38035 * m4/strptime.m4: New file.
38037 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
38039 * MODULES.html.sh: New module mpsort.
38040 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38042 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38043 a circularity problem with HP-UX ia64 reported by Bob Proulx in
38044 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38046 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38048 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38050 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38051 the parameter matches the prototype.
38053 2007-01-28 Jim Meyering <jim@meyering.net>
38055 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38056 sys/time.h here, reverting that part of the previous patch:
38057 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38059 2007-01-28 Bruno Haible <bruno@clisp.org>
38061 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38062 value of $(SYS_TIME_H).
38063 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38064 remove it conditionally, too. [added by Jim Meyering]
38065 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38066 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38067 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38068 GETTIMEOFDAY_REPLACEMENT to 1.
38070 2007-01-28 Bruno Haible <bruno@clisp.org>
38072 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38073 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38074 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38075 Set UNISTD_H instead of UNISTD_H2.
38076 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38078 2007-01-28 Bruno Haible <bruno@clisp.org>
38080 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38081 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38083 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38085 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38086 (func_create_testdir): Ensure C locale for `grep' and `tr'
38088 (func_create_megatestdir): Avoid one `grep'. Fix bug in
38089 ACLOCAL_AMFLAGS parsing state machine.
38091 2007-01-27 Bruno Haible <bruno@clisp.org>
38093 * modules/unistr/base: Update.
38095 2007-01-27 Bruno Haible <bruno@clisp.org>
38097 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38098 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38099 * modules/unistr/u32-mbtouc-unsafe: Renamed from
38100 modules/unistr/u32-mbtouc.
38101 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38102 * lib/unistr.h: Update.
38103 * lib/linebreak.c: Update.
38104 * modules/unistr/u32-mbtouc: Renamed from
38105 modules/unistr/u32-mbtouc-safe.
38106 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38107 * lib/unistr.h: Update.
38108 * lib/unistr/u32-to-u8.c: Update.
38109 * lib/unistr/u32-to-u16.c: Update.
38111 2007-01-27 Bruno Haible <bruno@clisp.org>
38113 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38114 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38115 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38116 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38117 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38118 * modules/unistr/u16-mbtouc-unsafe: Renamed from
38119 modules/unistr/u16-mbtouc.
38120 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38121 * lib/unistr.h: Update.
38122 * lib/linebreak.c: Update.
38123 * modules/linebreak: Update.
38124 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38125 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38126 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38127 * modules/unistr/u16-mbtouc: Renamed from
38128 modules/unistr/u16-mbtouc-safe.
38129 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38130 * lib/unistr.h: Update.
38131 * lib/unistr/u16-to-u8.c: Update.
38132 * modules/unistr/u16-to-u8: Update.
38133 * lib/unistr/u16-to-u32.c: Update.
38134 * modules/unistr/u16-to-u32: Update.
38136 2007-01-27 Bruno Haible <bruno@clisp.org>
38138 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38139 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38140 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38141 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38142 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38143 * modules/unistr/u8-mbtouc-unsafe: Renamed from
38144 modules/unistr/u8-mbtouc.
38145 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38146 * lib/unistr.h: Update.
38147 * lib/striconveh.c: Update.
38148 * modules/striconveh: Update.
38149 * lib/linebreak.c: Update.
38150 * modules/linebreak: Update.
38151 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38152 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38153 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38154 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38155 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38156 * lib/unistr.h: Update.
38157 * lib/striconveh.c: Update.
38158 * modules/striconveh: Update.
38159 * lib/unistr/u8-to-u16.c: Update.
38160 * modules/unistr/u8-to-u16: Update.
38161 * lib/unistr/u8-to-u32.c: Update.
38162 * modules/unistr/u8-to-u32: Update.
38164 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38167 * lib/argz.c: Do not include strings.h nor memory.h, include
38168 string.h unconditionally. Patch by Simon Josefsson.
38170 2007-01-27 Bruno Haible <bruno@clisp.org>
38172 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38173 from gl_HEADER_STRING_H_BODY.
38174 (gl_HEADER_STRING_H_BODY): Require it.
38175 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38176 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38177 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38178 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38179 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38180 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38181 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38182 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38183 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38184 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38185 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38186 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38187 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38188 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38189 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38191 2007-01-27 Bruno Haible <bruno@clisp.org>
38193 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38194 check_PROGRAMS into noinst_PROGRAMS.
38195 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38196 check_PROGRAMS in this case.
38197 (func_import): Set for_test to false.
38198 (func_create_testdir): Set for_test to true.
38200 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38201 Bruno Haible <bruno@clisp.org>
38203 * modules/strcasestr (Files): Remove lib/strcasestr.h.
38204 (Depends-on): Add string.
38205 (Includes): Use <string.h> instead of strcasestr.h.
38206 * modules/string (Makefile.am): Also substitute the value of
38207 REPLACE_STRCASESTR.
38208 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38209 assume strcasestr is declared in <string.h> not <strings.h>. Also
38210 set REPLACE_STRCASESTR.
38211 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38212 REPLACE_STRCASESTR.
38213 * lib/strcasestr.h: Remove file.
38214 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38215 * lib/string_.h (strcasestr): New declaration.
38217 2007-01-27 Bruno Haible <bruno@clisp.org>
38219 * lib/string_.h: Use 'extern'.
38221 2007-01-27 Jim Meyering <jim@meyering.net>
38223 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38224 of set-but-not-used local, "q".
38226 * lib/mempcpy.c: Include <config.h> before <string.h>.
38227 This fixes a compilation error on HP-UX, due to the system's
38228 "restrict"-using mempcpy prototype.
38230 2007-01-26 Bruno Haible <bruno@clisp.org>
38232 Small optimization.
38233 * lib/javacomp.c: Include c-strstr.h.
38234 (is_envjavac_gcj): Use c_strstr instead of strstr.
38235 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38237 2007-01-26 Bruno Haible <bruno@clisp.org>
38239 * MODULES.html.sh (Unicode string functions): Add the new modules.
38241 * modules/uniconv/u32-strconv-to-locale: New file.
38242 * lib/uniconv/u32-strconv-to-locale.c: New file.
38244 * modules/uniconv/u16-strconv-to-locale: New file.
38245 * lib/uniconv/u16-strconv-to-locale.c: New file.
38247 * modules/uniconv/u8-strconv-to-locale: New file.
38248 * lib/uniconv/u8-strconv-to-locale.c: New file.
38250 * modules/uniconv/u32-strconv-from-locale: New file.
38251 * lib/uniconv/u32-strconv-from-locale.c: New file.
38253 * modules/uniconv/u16-strconv-from-locale: New file.
38254 * lib/uniconv/u16-strconv-from-locale.c: New file.
38256 * modules/uniconv/u8-strconv-from-locale: New file.
38257 * lib/uniconv/u8-strconv-from-locale.c: New file.
38259 * modules/uniconv/u32-strconv-to-enc: New file.
38260 * lib/uniconv/u32-strconv-to-enc.c: New file.
38261 * modules/uniconv/u32-strconv-to-enc-tests: New file.
38262 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38264 * modules/uniconv/u16-strconv-to-enc: New file.
38265 * lib/uniconv/u16-strconv-to-enc.c: New file.
38266 * lib/uniconv/u-strconv-to-enc.h: New file.
38267 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38268 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38270 * modules/uniconv/u8-strconv-to-enc: New file.
38271 * lib/uniconv/u8-strconv-to-enc.c: New file.
38272 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38273 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38275 * modules/uniconv/u32-strconv-from-enc: New file.
38276 * lib/uniconv/u32-strconv-from-enc.c: New file.
38277 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38278 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38280 * modules/uniconv/u16-strconv-from-enc: New file.
38281 * lib/uniconv/u16-strconv-from-enc.c: New file.
38282 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38283 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38285 * modules/uniconv/u8-strconv-from-enc: New file.
38286 * lib/uniconv/u8-strconv-from-enc.c: New file.
38287 * lib/uniconv/u-strconv-from-enc.h: New file.
38288 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38289 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38291 * modules/uniconv/u32-conv-from-enc: New file.
38292 * lib/uniconv/u32-conv-from-enc.c: New file.
38293 * modules/uniconv/u32-conv-from-enc-tests: New file.
38294 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38296 * modules/uniconv/u16-conv-from-enc: New file.
38297 * lib/uniconv/u16-conv-from-enc.c: New file.
38298 * lib/uniconv/u-conv-from-enc.h: New file.
38299 * modules/uniconv/u16-conv-from-enc-tests: New file.
38300 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38302 * modules/uniconv/u8-conv-from-enc: New file.
38303 * lib/uniconv/u8-conv-from-enc.c: New file.
38304 * modules/uniconv/u8-conv-from-enc-tests: New file.
38305 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38307 * modules/uniconv/base: New file.
38308 * lib/uniconv.h: New file.
38310 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38312 * doc/gnulib-tool.texi (Initial import): Update to match current
38313 behavior with strdup module.
38314 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38315 * lib/memmem.h: Remove; all uses removed. This is now done
38317 * lib/mempcpy.h: Likewise.
38318 * lib/memrchr.h: Likewise.
38319 * lib/stpcpy.h: Likewise.
38320 * lib/stpncpy.h: Likewise.
38321 * lib/strcase.h: Likewise.
38322 * lib/strchrnul.h: Likewise.
38323 * lib/strdup.h: Likewise.
38324 * lib/strndup.h: Likewise.
38325 * lib/strnlen.h: Likewise.
38326 * lib/strpbrk.h: Likewise.
38327 * lib/strsep.h: Likewise.
38328 * lib/strstr.h: Likewise.
38329 * lib/strtok_r.h: Likewise.
38330 * lib/string_.h: New file.
38331 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38332 Rely on <string.h> instead.
38333 * lib/canon-host.c: Likewise.
38334 * lib/chdir-long.c: Likewise.
38335 * lib/concatpath.c: Likewise.
38336 * lib/exclude.c: Likewise.
38337 * lib/fchdir.c: Likewise.
38338 * lib/getaddrinfo.c: Likewise.
38339 * lib/getcwd.c: Likewise.
38340 * lib/getsubopt.c: Likewise.
38341 * lib/glob.c: Likewise.
38342 * lib/hard-locale.c: Likewise.
38343 * lib/iconvme.c: Likewise.
38344 * lib/javacomp.c: Likewise.
38345 * lib/mempcpy.c: Likewise.
38346 * lib/memrchr.c: Likewise.
38347 * lib/regex_internal.h: Likewise.
38348 * lib/stpncpy.c: Likewise.
38349 * lib/strcasecmp.c: Likewise.
38350 * lib/strchrnul.c: Likewise.
38351 * lib/strdup.c: Likewise.
38352 * lib/striconv.c: Likewise.
38353 * lib/striconveh.c: Likewise.
38354 * lib/striconveha.c: Likewise.
38355 * lib/strncasecmp.c: Likewise.
38356 * lib/strndup.c: Likewise.
38357 * lib/strnlen.c: Likewise.
38358 * lib/strsep.c: Likewise.
38359 * lib/strstr.c: Likewise.
38360 * lib/strtok_r.c: Likewise.
38361 * lib/userspec.c: Likewise.
38362 * lib/w32spawn.h: Likewise.
38363 * lib/xstrndup.c: Likewise.
38364 * lib/mountlist.c (strstr): Remove decl.
38365 * m4/string_h.m4: New file.
38366 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38367 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38368 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38369 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38370 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38371 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38372 Set REPLACE_STRCASECMP if necessary.
38373 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38374 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38375 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38376 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38377 HAVE_DECL_STRDUP if necessary.
38378 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38379 since gl_FUNC_STRNDUP does that now.
38380 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38381 Check for decl here...
38382 (gl_PREREQ_STRNLEN): ... not here.
38383 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38384 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38385 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38386 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38388 * modules/string: New file.
38389 * modules/memmem (Files): Remove special-purpose include file.
38390 (Depends-on): Add string.
38391 (Include): Include <string.h>, not the removed file.
38392 * modules/mempcpy: Likewise.
38393 * modules/memrchr: Likewise.
38394 * modules/stpcpy: Likewise.
38395 * modules/stpncpy: Likewise.
38396 * modules/strcase: Likewise.
38397 * modules/strchrnul: Likewise.
38398 * modules/strdup: Likewise.
38399 * modules/strndup: Likewise.
38400 * modules/strnlen: Likewise.
38401 * modules/strpbrk: Likewise.
38402 * modules/strsep: Likewise.
38403 * modules/strstr: Likewise.
38404 * modules/strtok_r: Likewise.
38405 * tests/test-dirname.c: Don't include "strdup.h", since
38406 <string.h> now suffices.
38407 * tests/test-memmem.c: Don't include "memmem.h", since
38408 <string.h> now suffices.
38410 2007-01-25 Bruno Haible <bruno@clisp.org>
38412 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38415 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38416 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38417 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38418 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38420 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38421 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38422 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38423 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38424 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38425 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38427 2007-01-24 Bruno Haible <bruno@clisp.org>
38429 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38430 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38431 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38432 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38434 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38435 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38436 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38437 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38438 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38439 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38441 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38443 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38444 Reported by Ralf Wildenhues.
38446 2007-01-24 Bruno Haible <bruno@clisp.org>
38448 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38449 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38451 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38452 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38453 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38455 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38457 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38458 Don't use 'exit'; just return from 'main'.
38459 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38461 * lib/fnmatch_.h: Readjust white space and comments to match
38462 glibc, to avoid spurious diffs.
38464 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38466 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38467 2004-12-01 change by Jakub Jelinek, since this code won't compile
38468 if !LIBC. Problem reported by Bob Proulx.
38470 2007-01-23 Bruno Haible <bruno@clisp.org>
38472 * lib/striconveh.c: Include c-strcaseeq.h.
38473 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38474 * modules/striconveh (Depends-on): Add c-strcaseeq.
38476 2007-01-23 Bruno Haible <bruno@clisp.org>
38478 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38480 * modules/c-strcaseeq: New file.
38481 * lib/c-strcaseeq.h: New file.
38483 * modules/streq: New file.
38484 * lib/streq.h: New file.
38486 2007-01-23 Bruno Haible <bruno@clisp.org>
38488 * modules/striconveha-tests: New file.
38489 * tests/test-striconveha.c: New file.
38491 * lib/striconveha.h: Include <stdbool.h>.
38492 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38493 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38494 (mem_iconveha_notranslit): Renamed from mem_iconveha.
38495 (mem_iconveha): New function.
38496 (str_iconveha_notranslit): Renamed from str_iconveha.
38497 (str_iconveha): New function.
38498 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38501 2007-01-23 Bruno Haible <bruno@clisp.org>
38503 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38504 encodings without forgiving before trying any encoding with handler.
38505 (str_iconveha): Try all encodings without forgiving before trying any
38506 encoding with handler.
38508 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38510 Import the following changes from libc.
38512 2005-10-14 Ulrich Drepper <drepper@redhat.com>
38514 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38516 2004-12-01 Jakub Jelinek <jakub@redhat.com>
38518 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38519 normal_bracket label.
38521 2004-09-01 Jakub Jelinek <jakub@redhat.com>
38524 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38525 to normal_bracket after fetching the next character.
38527 2007-01-22 Bruno Haible <bruno@clisp.org>
38529 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38531 * lib/striconveh.c (iconv_carefully_1): New function.
38532 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38534 (str_cd_iconveh): Update.
38535 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38536 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38537 * tests/test-striconveh.c (MAGIC): New macro.
38538 (new_offsets): New function.
38539 (main): Test call with and without offsets.
38541 2007-01-22 Bruno Haible <bruno@clisp.org>
38543 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38544 * modules/sys_select (Makefile.am): Likewise.
38545 * modules/sys_socket (Makefile.am): Likewise.
38546 * modules/sys_time (Makefile.am): Likewise.
38548 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
38550 * modules/gettimeofday (License): Change from GPL to LGPL, since
38551 gettimeofday is a library function.
38553 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38555 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38557 2007-01-21 Bruno Haible <bruno@clisp.org>
38559 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38561 2007-01-21 Bruno Haible <bruno@clisp.org>
38563 * modules/striconveha: New file.
38564 * lib/striconveha.h: New file.
38565 * lib/striconveha.c: New file.
38566 * MODULES.html.sh (Internationalization functions): Add striconveha.
38567 * lib/striconv.c (str_iconv): Optimize the case of an empty input
38569 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38571 2007-01-21 Bruno Haible <bruno@clisp.org>
38573 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38574 * lib/striconveh.c (str_iconveh): Likewise.
38576 2007-01-21 Bruno Haible <bruno@clisp.org>
38578 * lib/striconveh.h (mem_iconveh): New declaration.
38579 * lib/striconveh.c (mem_iconveh): New function.
38580 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38582 2007-01-21 Bruno Haible <bruno@clisp.org>
38584 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38586 * lib/striconveh.h (mem_cd_iconveh): Change specification.
38587 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38588 original result buffer.
38589 (str_cd_iconveh): Update.
38590 * tests/test-striconveh.c (main): Update.
38592 * lib/striconv.h (mem_cd_iconv): Change specification.
38593 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38595 (str_cd_iconv): Update.
38596 * tests/test-striconv.c (main): Update.
38598 2007-01-21 Bruno Haible <bruno@clisp.org>
38600 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38602 2007-01-20 Jim Meyering <jim@meyering.net>
38604 * lib/userspec.c (parse_with_separator): If a user or group string
38605 starts with "+", skip the corresponding name-to-ID look-up, since
38606 such a look-up must fail: user and group names may not include "+".
38608 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
38610 * lib/poll.c: Include sys/time.h and time.h unconditionally,
38611 since we now assume the sys_time module.
38612 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38613 check for sys/time.h; no longer needed.
38614 * modules/poll (Depends-on): Depend on sys_time.
38616 2007-01-18 Bruno Haible <bruno@clisp.org>
38618 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38619 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38621 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38624 * tests/test-gettimeofday.c: Include <time.h>.
38625 (dummy): Remove variable.
38627 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38628 gl_HEADER_SYS_TIME_H.
38629 (gl_HEADER_SYS_TIME_H): New macro.
38631 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38632 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38633 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38634 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38635 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38636 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38637 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38638 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38639 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38640 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38641 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38643 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38644 last change; it caused a compilation error when cross-compiling to
38647 2007-01-18 Jim Meyering <jim@meyering.net>
38649 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38650 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38651 than the race-prone "test -d sys || mkdir sys".
38652 (configure.ac): Use AC_PROG_MKDIR_P.
38653 * modules/sys_select: Likewise.
38654 * modules/sys_socket: Likewise.
38655 * modules/sys_time: Likewise.
38657 2007-01-18 Eric Blake <ebb9@byu.net>
38659 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38660 replace gettimeofday.
38661 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38662 name, to avoid infinite recursion.
38664 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
38666 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38668 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38669 assume timespec.h defines struct timeval.
38670 * lib/settime.c: Likewise.
38671 * lib/utimens.c: Likewise.
38672 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38673 since we now assume the gettimeofday module.
38674 * lib/tempname.c (__gen_tempname): Likewise.
38675 * lib/gettimeofday.h: Remove.
38676 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38677 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38678 Include <time.h>, for 'time()'.
38679 (localtime_buffer_addr): Also use this workaround if
38680 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
38681 to simplify the uses. All uses changed.
38682 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38683 that #undef is inside {}, and 'const' follows type name consistently.
38684 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38685 (gettimeofday): Do not use the maximum possible value for
38686 tv->tv_usec, since that might break usages other than ls.c.
38687 Instead, we'll leave ls.c alone. This undoes today's patch
38688 by Bruno. Add a compile-time warning for 1s-clock resolution;
38689 we've never observed the problem but might as well keep the
38691 * lib/nanosleep.c: Include timespec.h first, for interface check.
38692 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38693 now assume the sys_time module.
38694 * lib/tempname.c: Likewise.
38695 * lib/timespec.h: Likewise.
38696 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38698 * lib/strftime.c: Likewise.
38699 * lib/timespec.h: Likewise.
38700 * lib/posixtm.c: Include posixtm.h first, for interface check.
38701 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38702 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38703 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38704 * lib/sys_time_.h: New file.
38705 * lib/timespec.h (struct timespec): Use long int, not long.
38706 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38707 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38708 Remove obsolescent call to AC_HEADER_TIME.
38709 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38710 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38711 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38712 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38714 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38715 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38716 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38717 into the sys_time module. Check for gettimeofday just once.
38718 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
38719 for gettimeofday signature to just check the signature. Merely
38720 compile it, since linking doesn't test signature. Improve test for
38721 whether gettimeofday.o is actually needed.
38722 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38723 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
38724 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
38725 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38726 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38727 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38728 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38729 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38730 than worrying about sys/time.h.
38731 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38732 Don't bother worrying about TIME_WITH_SYS_TIME.
38733 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38734 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38735 * m4/sys_time_h.m4: New file.
38736 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38737 Don't include sys/time.h. Return from main rather than exiting.
38738 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38740 * modules/gethrxtime (Depends-on): Add sys_time.
38741 * modules/gettime (Depends-on): Likewise.
38742 * modules/gettimeofday (Depends-on): Likewise.
38743 * modules/nanosleep (Depends-on): Likewise.
38744 * modules/settime (Depends-on): Likewise.
38745 * modules/tempname (Depends-on): Likewise.
38746 * modules/utimens (Depends-on): Likewise.
38747 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38748 (Include:) Change back to <sys/time.h>.
38749 (Maintainer:) Add self.
38750 * modules/sys_time: New file.
38751 * modules/tempname (Depends-on): Add gettimeofday.
38752 * tests/test-gettimeofday.c: Include <sys/time.h>
38753 rather than gettimeofday.h.
38755 2007-01-17 Bruno Haible <bruno@clisp.org>
38757 * gnulib-tool (func_get_license): Revert last patch. Instead, let
38758 the license default to GPL.
38759 (func_create_testdir): Don't complain if a module is LGPL and its
38760 tests module depends on GPLed modules.
38762 2007-01-17 Bruno Haible <bruno@clisp.org>
38764 * lib/gettimeofday.c (gettimeofday): Add code for the case
38765 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38766 maximum possible value for tv->tv_usec, rather than the minimum one.
38768 2005-10-08 Martin Lambers <marlam@marlam.de>
38769 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38770 2007-01-16 Bruno Haible <bruno@clisp.org>
38772 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38773 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38774 gl_FUNC_GETTIMEOFDAY.
38775 (Include): Add gettimeofday.h.
38776 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38777 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38778 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38779 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38780 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38781 * lib/gettimeofday.h: New file.
38782 * lib/gettimeofday.c: Include <sys/timeb.h>.
38783 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38784 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38785 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38786 fall back on time().
38788 * tests/test-gettimeofday.c: New file.
38789 * modules/gettimeofday-tests: New file.
38791 2007-01-16 Eric Blake <ebb9@byu.net>
38793 * modules/fnmatch (Depends-on): Depend on wchar.
38794 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38795 * m4/fnmatch.m4: Likewise.
38796 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38797 * m4/mbchar.m4: Likewise.
38798 * modules/mbswidth (Depends-on): Depend on wchar.
38799 * lib/mbswidth.c: Assume <wchar.h>.
38800 * m4/mbswidth.m4: Likewise.
38801 * modules/quotearg (Depends-on): Depend on wchar.
38802 * lib/quotearg.c: Assume <wchar.h>.
38803 * m4/quotearg.m4: Likewise.
38804 * modules/regex (Depends-on): Depend on wchar.
38805 * lib/regex_internal.h: Assume <wchar.h>.
38806 * m4/regex.m4: Likewise.
38807 * modules/stdint (Depends-on): Depend on wchar.
38808 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38809 * m4/stdint.m4: Likewise.
38810 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38811 * modules/strftime (Depends-on): Depend on wchar.
38812 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38813 * modules/strtol (Depends-on): Depend on wchar.
38814 * lib/strtol.c: Assume <wchar.h>.
38815 * modules/wcwidth (Depends-on): Depend on wchar.
38816 * lib/wcwidth.h: Assume <wchar.h>.
38817 * m4/wcwidth.m4: Likewise.
38819 2007-01-16 Bruno Haible <bruno@clisp.org>
38821 * modules/csharpexec-script: New, created from...
38822 * modules/csharpexec: ... this.
38824 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38826 * modules/javaexec-script: New, created from...
38827 * modules/javaexec: ... this.
38829 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38831 * modules/poll (Dependencies): Add sys_select.
38833 2007-01-15 Jim Meyering <jim@meyering.net>
38835 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38836 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38837 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38838 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38840 2007-01-15 Bruno Haible <bruno@clisp.org>
38842 * modules/striconveh: New file.
38843 * lib/striconveh.h: New file.
38844 * lib/striconveh.c: New file.
38845 * MODULES.html.sh (Internationalization functions): Add striconveh.
38847 * modules/striconveh-tests: New file.
38848 * tests/test-striconveh.c: New file.
38850 2007-01-15 Bruno Haible <bruno@clisp.org>
38852 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38853 not from GNU libiconv or GNU libc.
38855 2007-01-15 Bruno Haible <bruno@clisp.org>
38857 * doc/gnulib-intro.texi (Copyright): Explain the different license
38858 terms for module descriptions, autoconf macros, tests, documentation.
38860 2007-01-14 Bruno Haible <bruno@clisp.org>
38862 * modules/striconv-tests: New file.
38863 * tests/test-striconv.c: New file.
38865 2007-01-14 Bruno Haible <bruno@clisp.org>
38867 * modules/iconv-tests: New file.
38868 * tests/test-iconv.c: New file.
38870 2007-01-14 Bruno Haible <bruno@clisp.org>
38872 * gnulib-tool (func_get_license): For test modules, use the license of
38875 2007-01-14 Bruno Haible <bruno@clisp.org>
38877 * modules/iconv (Include): Clarify that <iconv.h> can only be included
38878 if iconv is found to exist.
38880 2007-01-14 Bruno Haible <bruno@clisp.org>
38882 * modules/c-ctype-tests: New file.
38883 * tests/test-c-ctype.c: New file.
38885 2007-01-14 Bruno Haible <bruno@clisp.org>
38887 * modules/binary-io-tests: New file.
38888 * tests/test-binary-io.sh: New file.
38889 * tests/test-binary-io.c: New file.
38891 2007-01-14 Bruno Haible <bruno@clisp.org>
38893 * modules/array-oset-tests: New file.
38894 * tests/test-array_oset.c: New file.
38896 2007-01-14 Bruno Haible <bruno@clisp.org>
38898 * modules/array-list-tests: New file.
38899 * tests/test-array_list.c: New file.
38901 2007-01-14 Bruno Haible <bruno@clisp.org>
38903 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38905 Reported by Simon Josefsson in
38906 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38908 2007-01-14 Bruno Haible <bruno@clisp.org>
38910 * modules/allocsa-tests: New file.
38911 * tests/test-allocsa.c: New file.
38913 2007-01-14 Bruno Haible <bruno@clisp.org>
38915 * modules/fchdir (Depends-on): Add absolute-header.
38916 * modules/unistd (Depends-on): Likewise.
38918 2006-12-30 Bruno Haible <bruno@clisp.org>
38920 * modules/fchdir: New file.
38921 * modules/unistd (Files): Add lib/unistd_.h.
38922 (Makefile.am): Generate unistd.h from unistd_.h.
38923 * lib/fchdir.c: New file.
38924 * lib/dirent_.h: New file.
38925 * lib/unistd_.h: New file.
38926 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38927 * m4/fchdir.m4: New file.
38928 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38929 (gl_HEADER_UNISTD): Invoke it.
38930 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38932 * lib/backupfile.c (opendir, closedir): Undefine.
38933 * lib/chown.c (open, close): Undefine.
38934 * lib/clean-temp.c (open, close): Undefine.
38935 * lib/copy-file.c (open, close): Undefine.
38936 * lib/execute.c (open, close): Undefine.
38937 * lib/fsusage.c (open, close): Undefine.
38938 * lib/gc-gnulib.c (open, close): Undefine.
38939 * lib/getcwd.c (opendir, closedir): Undefine.
38940 * lib/glob.c (opendir, closedir): Undefine.
38941 * lib/javacomp.c (open, close): Undefine.
38942 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38943 * lib/openat-proc.c (open, close): Undefine.
38944 * lib/pagealign_alloc.c (open, close): Undefine.
38945 * lib/pipe.c (open, close): Undefine.
38946 * lib/progreloc.c (open, close): Undefine.
38947 * lib/savedir.c (opendir, closedir): Undefine.
38948 * lib/utime.c (open, close): Undefine.
38949 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38951 2007-01-10 Bruno Haible <bruno@clisp.org>
38953 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38955 2007-01-12 Eric Blake <ebb9@byu.net>
38957 Provide a robust <wchar.h>. Further simplifications are now
38958 possible in other modules, but not included here.
38959 * modules/wchar: New module.
38960 * m4/wchar.m4: New file.
38961 * lib/wchar_.h: Likewise.
38962 * modules/mbchar (Depends-on): Depend on wchar, as the first use
38964 * MODULES.html.sh (Extended multibyte and wide character utilities):
38967 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
38969 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38970 to a reasonable default for memory allocation.
38971 (xreadlink): Don't allocate a huge buffer, to work around a buggy
38972 file system that reports garbage st_size values for symlinks.
38973 Problem reported by Liyang Hu.
38975 2007-01-11 Simon Josefsson <simon@josefsson.org>
38977 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38978 Emacs .#* auto-save files).
38980 2007-01-11 Bruno Haible <bruno@clisp.org>
38982 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38985 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
38987 Use @...@ consistently in lib/wctype_.h.
38988 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38989 on it being set to 1 or 0.
38990 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38991 go back to AC_SUBSTing it.
38992 * modules/wctype (Makefile.am): Undo previous change.
38994 2007-01-10 Eric Blake <ebb9@byu.net>
38996 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38997 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38998 * modules/wctype (Makefile.am): Likewise.
38999 Reported by Chris McGuire.
39001 2007-01-10 Jim Meyering <jim@meyering.net>
39003 fts.c: a small readability/maintainability improvement
39004 * lib/fts.c (fts_read): Make this code slightly more readable and
39005 maintainable by hoisting the "sp->fts_cur = p" assignments to
39006 immediately follow the statements that set P. Derived from
39007 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39009 2007-01-10 Eric Blake <ebb9@byu.net>
39011 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39012 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39013 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39014 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39015 Reported by Chris McGuire.
39017 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39019 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39022 2007-01-09 Bruno Haible <bruno@clisp.org>
39024 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39025 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39027 (func_module): Use them.
39029 2007-01-09 Bruno Haible <bruno@clisp.org>
39031 * modules/unistr/base: New file.
39032 * lib/unistr.h: New file.
39034 * modules/unistr/u8-to-u16: New file.
39035 * lib/unistr/u8-to-u16.c: New file.
39037 * modules/unistr/u8-to-u32: New file.
39038 * lib/unistr/u8-to-u32.c: New file.
39040 * modules/unistr/u16-to-u8: New file.
39041 * lib/unistr/u16-to-u8.c: New file.
39043 * modules/unistr/u16-to-u32: New file.
39044 * lib/unistr/u16-to-u32.c: New file.
39046 * modules/unistr/u32-to-u8: New file.
39047 * lib/unistr/u32-to-u8.c: New file.
39049 * modules/unistr/u32-to-u16: New file.
39050 * lib/unistr/u32-to-u16.c: New file.
39052 * modules/unistr/u8-check: New file.
39053 * modules/unistr/u16-check: New file.
39054 * modules/unistr/u32-check: New file.
39055 * lib/unistr/u8-check.c: New file.
39056 * lib/unistr/u16-check.c: New file.
39057 * lib/unistr/u32-check.c: New file.
39059 * modules/unistr/u8-chr: New file.
39060 * modules/unistr/u16-chr: New file.
39061 * modules/unistr/u32-chr: New file.
39062 * lib/unistr/u8-chr.c: New file.
39063 * lib/unistr/u16-chr.c: New file.
39064 * lib/unistr/u32-chr.c: New file.
39066 * modules/unistr/u8-cmp: New file.
39067 * modules/unistr/u16-cmp: New file.
39068 * modules/unistr/u32-cmp: New file.
39069 * lib/unistr/u8-cmp.c: New file.
39070 * lib/unistr/u16-cmp.c: New file.
39071 * lib/unistr/u32-cmp.c: New file.
39073 * modules/unistr/u8-cpy: New file.
39074 * modules/unistr/u16-cpy: New file.
39075 * modules/unistr/u32-cpy: New file.
39076 * lib/unistr/u8-cpy.c: New file.
39077 * lib/unistr/u16-cpy.c: New file.
39078 * lib/unistr/u32-cpy.c: New file.
39079 * lib/unistr/u-cpy.h: New file.
39081 * modules/unistr/u8-cpy-alloc: New file.
39082 * modules/unistr/u16-cpy-alloc: New file.
39083 * modules/unistr/u32-cpy-alloc: New file.
39084 * lib/unistr/u8-cpy-alloc.c: New file.
39085 * lib/unistr/u16-cpy-alloc.c: New file.
39086 * lib/unistr/u32-cpy-alloc.c: New file.
39087 * lib/unistr/u-cpy-alloc.h: New file.
39089 * modules/unistr/u8-endswith: New file.
39090 * modules/unistr/u16-endswith: New file.
39091 * modules/unistr/u32-endswith: New file.
39092 * lib/unistr/u8-endswith.c: New file.
39093 * lib/unistr/u16-endswith.c: New file.
39094 * lib/unistr/u32-endswith.c: New file.
39095 * lib/unistr/u-endswith.h: New file.
39097 * modules/unistr/u8-mblen: New file.
39098 * modules/unistr/u16-mblen: New file.
39099 * modules/unistr/u32-mblen: New file.
39100 * lib/unistr/u8-mblen.c: New file.
39101 * lib/unistr/u16-mblen.c: New file.
39102 * lib/unistr/u32-mblen.c: New file.
39104 * modules/unistr/u8-mbtouc: New file.
39105 * modules/unistr/u16-mbtouc: New file.
39106 * modules/unistr/u32-mbtouc: New file.
39107 * lib/unistr/u8-mbtouc.c: New file.
39108 * lib/unistr/u16-mbtouc.c: New file.
39109 * lib/unistr/u32-mbtouc.c: New file.
39111 * modules/unistr/u8-mbtouc-safe: New file.
39112 * modules/unistr/u16-mbtouc-safe: New file.
39113 * modules/unistr/u32-mbtouc-safe: New file.
39114 * lib/unistr/u8-mbtouc-safe.c: New file.
39115 * lib/unistr/u16-mbtouc-safe.c: New file.
39116 * lib/unistr/u32-mbtouc-safe.c: New file.
39118 * modules/unistr/u8-move: New file.
39119 * modules/unistr/u16-move: New file.
39120 * modules/unistr/u32-move: New file.
39121 * lib/unistr/u8-move.c: New file.
39122 * lib/unistr/u16-move.c: New file.
39123 * lib/unistr/u32-move.c: New file.
39124 * lib/unistr/u-move.h: New file.
39126 * modules/unistr/u8-next: New file.
39127 * modules/unistr/u16-next: New file.
39128 * modules/unistr/u32-next: New file.
39129 * lib/unistr/u8-next.c: New file.
39130 * lib/unistr/u16-next.c: New file.
39131 * lib/unistr/u32-next.c: New file.
39133 * modules/unistr/u8-prev: New file.
39134 * modules/unistr/u16-prev: New file.
39135 * modules/unistr/u32-prev: New file.
39136 * lib/unistr/u8-prev.c: New file.
39137 * lib/unistr/u16-prev.c: New file.
39138 * lib/unistr/u32-prev.c: New file.
39140 * modules/unistr/u8-set: New file.
39141 * modules/unistr/u16-set: New file.
39142 * modules/unistr/u32-set: New file.
39143 * lib/unistr/u8-set.c: New file.
39144 * lib/unistr/u16-set.c: New file.
39145 * lib/unistr/u32-set.c: New file.
39146 * lib/unistr/u-set.h: New file.
39148 * modules/unistr/u8-startswith: New file.
39149 * modules/unistr/u16-startswith: New file.
39150 * modules/unistr/u32-startswith: New file.
39151 * lib/unistr/u8-startswith.c: New file.
39152 * lib/unistr/u16-startswith.c: New file.
39153 * lib/unistr/u32-startswith.c: New file.
39154 * lib/unistr/u-startswith.h: New file.
39156 * modules/unistr/u8-stpcpy: New file.
39157 * modules/unistr/u16-stpcpy: New file.
39158 * modules/unistr/u32-stpcpy: New file.
39159 * lib/unistr/u8-stpcpy.c: New file.
39160 * lib/unistr/u16-stpcpy.c: New file.
39161 * lib/unistr/u32-stpcpy.c: New file.
39162 * lib/unistr/u-stpcpy.h: New file.
39164 * modules/unistr/u8-stpncpy: New file.
39165 * modules/unistr/u16-stpncpy: New file.
39166 * modules/unistr/u32-stpncpy: New file.
39167 * lib/unistr/u8-stpncpy.c: New file.
39168 * lib/unistr/u16-stpncpy.c: New file.
39169 * lib/unistr/u32-stpncpy.c: New file.
39170 * lib/unistr/u-stpncpy.h: New file.
39172 * modules/unistr/u8-strcat: New file.
39173 * modules/unistr/u16-strcat: New file.
39174 * modules/unistr/u32-strcat: New file.
39175 * lib/unistr/u8-strcat.c: New file.
39176 * lib/unistr/u16-strcat.c: New file.
39177 * lib/unistr/u32-strcat.c: New file.
39178 * lib/unistr/u-strcat.h: New file.
39180 * modules/unistr/u8-strchr: New file.
39181 * modules/unistr/u16-strchr: New file.
39182 * modules/unistr/u32-strchr: New file.
39183 * lib/unistr/u8-strchr.c: New file.
39184 * lib/unistr/u16-strchr.c: New file.
39185 * lib/unistr/u32-strchr.c: New file.
39187 * modules/unistr/u8-strcmp: New file.
39188 * modules/unistr/u16-strcmp: New file.
39189 * modules/unistr/u32-strcmp: New file.
39190 * lib/unistr/u8-strcmp.c: New file.
39191 * lib/unistr/u16-strcmp.c: New file.
39192 * lib/unistr/u32-strcmp.c: New file.
39194 * modules/unistr/u8-strcpy: New file.
39195 * modules/unistr/u16-strcpy: New file.
39196 * modules/unistr/u32-strcpy: New file.
39197 * lib/unistr/u8-strcpy.c: New file.
39198 * lib/unistr/u16-strcpy.c: New file.
39199 * lib/unistr/u32-strcpy.c: New file.
39200 * lib/unistr/u-strcpy.h: New file.
39202 * modules/unistr/u8-strcspn: New file.
39203 * modules/unistr/u16-strcspn: New file.
39204 * modules/unistr/u32-strcspn: New file.
39205 * lib/unistr/u8-strcspn.c: New file.
39206 * lib/unistr/u16-strcspn.c: New file.
39207 * lib/unistr/u32-strcspn.c: New file.
39208 * lib/unistr/u-strcspn.h: New file.
39210 * modules/unistr/u8-strdup: New file.
39211 * modules/unistr/u16-strdup: New file.
39212 * modules/unistr/u32-strdup: New file.
39213 * lib/unistr/u8-strdup.c: New file.
39214 * lib/unistr/u16-strdup.c: New file.
39215 * lib/unistr/u32-strdup.c: New file.
39216 * lib/unistr/u-strdup.h: New file.
39218 * modules/unistr/u8-strlen: New file.
39219 * modules/unistr/u16-strlen: New file.
39220 * modules/unistr/u32-strlen: New file.
39221 * lib/unistr/u8-strlen.c: New file.
39222 * lib/unistr/u16-strlen.c: New file.
39223 * lib/unistr/u32-strlen.c: New file.
39224 * lib/unistr/u-strlen.h: New file.
39226 * modules/unistr/u8-strmblen: New file.
39227 * modules/unistr/u16-strmblen: New file.
39228 * modules/unistr/u32-strmblen: New file.
39229 * lib/unistr/u8-strmblen.c: New file.
39230 * lib/unistr/u16-strmblen.c: New file.
39231 * lib/unistr/u32-strmblen.c: New file.
39233 * modules/unistr/u8-strmbtouc: New file.
39234 * modules/unistr/u16-strmbtouc: New file.
39235 * modules/unistr/u32-strmbtouc: New file.
39236 * lib/unistr/u8-strmbtouc.c: New file.
39237 * lib/unistr/u16-strmbtouc.c: New file.
39238 * lib/unistr/u32-strmbtouc.c: New file.
39240 * modules/unistr/u8-strncat: New file.
39241 * modules/unistr/u16-strncat: New file.
39242 * modules/unistr/u32-strncat: New file.
39243 * lib/unistr/u8-strncat.c: New file.
39244 * lib/unistr/u16-strncat.c: New file.
39245 * lib/unistr/u32-strncat.c: New file.
39246 * lib/unistr/u-strncat.h: New file.
39248 * modules/unistr/u8-strncmp: New file.
39249 * modules/unistr/u16-strncmp: New file.
39250 * modules/unistr/u32-strncmp: New file.
39251 * lib/unistr/u8-strncmp.c: New file.
39252 * lib/unistr/u16-strncmp.c: New file.
39253 * lib/unistr/u32-strncmp.c: New file.
39255 * modules/unistr/u8-strncpy: New file.
39256 * modules/unistr/u16-strncpy: New file.
39257 * modules/unistr/u32-strncpy: New file.
39258 * lib/unistr/u8-strncpy.c: New file.
39259 * lib/unistr/u16-strncpy.c: New file.
39260 * lib/unistr/u32-strncpy.c: New file.
39261 * lib/unistr/u-strncpy.h: New file.
39263 * modules/unistr/u8-strnlen: New file.
39264 * modules/unistr/u16-strnlen: New file.
39265 * modules/unistr/u32-strnlen: New file.
39266 * lib/unistr/u8-strnlen.c: New file.
39267 * lib/unistr/u16-strnlen.c: New file.
39268 * lib/unistr/u32-strnlen.c: New file.
39269 * lib/unistr/u-strnlen.h: New file.
39271 * modules/unistr/u8-strpbrk: New file.
39272 * modules/unistr/u16-strpbrk: New file.
39273 * modules/unistr/u32-strpbrk: New file.
39274 * lib/unistr/u8-strpbrk.c: New file.
39275 * lib/unistr/u16-strpbrk.c: New file.
39276 * lib/unistr/u32-strpbrk.c: New file.
39277 * lib/unistr/u-strpbrk.h: New file.
39279 * modules/unistr/u8-strrchr: New file.
39280 * modules/unistr/u16-strrchr: New file.
39281 * modules/unistr/u32-strrchr: New file.
39282 * lib/unistr/u8-strrchr.c: New file.
39283 * lib/unistr/u16-strrchr.c: New file.
39284 * lib/unistr/u32-strrchr.c: New file.
39286 * modules/unistr/u8-strspn: New file.
39287 * modules/unistr/u16-strspn: New file.
39288 * modules/unistr/u32-strspn: New file.
39289 * lib/unistr/u8-strspn.c: New file.
39290 * lib/unistr/u16-strspn.c: New file.
39291 * lib/unistr/u32-strspn.c: New file.
39292 * lib/unistr/u-strspn.h: New file.
39294 * modules/unistr/u8-strstr: New file.
39295 * modules/unistr/u16-strstr: New file.
39296 * modules/unistr/u32-strstr: New file.
39297 * lib/unistr/u8-strstr.c: New file.
39298 * lib/unistr/u16-strstr.c: New file.
39299 * lib/unistr/u32-strstr.c: New file.
39300 * lib/unistr/u-strstr.h: New file.
39302 * modules/unistr/u8-strtok: New file.
39303 * modules/unistr/u16-strtok: New file.
39304 * modules/unistr/u32-strtok: New file.
39305 * lib/unistr/u8-strtok.c: New file.
39306 * lib/unistr/u16-strtok.c: New file.
39307 * lib/unistr/u32-strtok.c: New file.
39308 * lib/unistr/u-strtok.h: New file.
39310 * modules/unistr/u8-uctomb: New file.
39311 * modules/unistr/u16-uctomb: New file.
39312 * modules/unistr/u32-uctomb: New file.
39313 * lib/unistr/u8-uctomb.c: New file.
39314 * lib/unistr/u16-uctomb.c: New file.
39315 * lib/unistr/u32-uctomb.c: New file.
39317 * MODULES.html.sh (Unicode string functions): Add the new modules.
39319 2007-01-08 Bruno Haible <bruno@clisp.org>
39321 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39322 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39325 2007-01-08 Karl Berry <karl@gnu.org>
39327 * doc/error.texi: mention that main() fns must set program_name
39328 when progname is used.
39330 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39332 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39333 WCTYPE_H is empty, for the benefit of builds from non-distclean
39334 directories. Problem reported by Eric Blake in
39335 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39337 2007-01-08 Bruno Haible <bruno@clisp.org>
39339 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39340 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39341 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39342 PROVIDE_CANONICALIZE_FILENAME_MODE.
39343 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39345 2007-01-08 Bruno Haible <bruno@clisp.org>
39347 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39348 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39349 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39350 * lib/fts.c: Likewise.
39351 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39353 2006-12-25 Bruno Haible <bruno@clisp.org>
39355 * modules/utf8-ucs4-safe: New file.
39356 * lib/utf8-ucs4-safe.h: New file.
39357 * lib/unistr/utf8-ucs4-safe.c: New file.
39359 * modules/utf16-ucs4-safe: New file.
39360 * lib/utf16-ucs4-safe.h: New file.
39361 * lib/unistr/utf16-ucs4-safe.c: New file.
39363 * MODULES.html.sh (Unicode string functions): Add the new modules.
39365 2007-01-08 Bruno Haible <bruno@clisp.org>
39367 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39368 (Depends-on): Add unitypes.
39369 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39370 (u8_mbtouc_aux): Move out to separate file.
39371 (u8_mbtouc): Use ucs4_t, uint8_t types.
39372 * lib/unistr/utf8-ucs4.c: New file.
39374 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39375 (Depends-on): Add unitypes.
39376 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39377 (u16_mbtouc_aux): Move out to separate file.
39378 (u16_mbtouc): Use ucs4_t, uint16_t types.
39379 * lib/unistr/utf16-ucs4.c: New file.
39381 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39382 (Depends-on): Add unitypes.
39383 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39384 (u8_uctomb_aux): Move out to separate file.
39385 (u8_uctomb): Use ucs4_t, uint8_t types.
39386 * lib/unistr/ucs4-utf8.c: New file.
39388 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39389 (Depends-on): Add unitypes.
39390 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39391 (u16_uctomb_aux): Move out to separate file.
39392 (u16_uctomb): Use ucs4_t, uint16_t types.
39393 * lib/unistr/ucs4-utf16.c: New file.
39395 2006-12-25 Bruno Haible <bruno@clisp.org>
39397 * modules/unitypes: New file.
39398 * lib/unitypes.h: New file.
39399 * MODULES.html.sh (func_all_modules): New section "Unicode string
39400 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39401 this section. Add unitypes.
39403 2007-01-08 Bruno Haible <bruno@clisp.org>
39405 Avoid variable names that conflict with those from libtool.
39406 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39407 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39408 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39409 library_names_spec to acl_library_names_spec, hardcode_* to
39411 Reported by Ralf Wildenhues.
39413 2007-01-08 Bruno Haible <bruno@clisp.org>
39415 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39417 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39419 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39420 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39422 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39424 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39425 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39426 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39427 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39429 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39431 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39432 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39433 GC_USE_<algorithm>.
39434 * lib/gc-libgcrypt.c: Likewise.
39435 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39436 * modules/gc-arctwo (configure.ac): Likewise.
39437 * modules/gc-des (configure.ac): Likewise.
39438 * modules/gc-hmac-md5 (configure.ac): Likewise.
39439 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39440 * modules/gc-md2 (configure.ac): Likewise.
39441 * modules/gc-md4 (configure.ac): Likewise.
39442 * modules/gc-md5 (configure.ac): Likewise.
39443 * modules/gc-random (configure.ac): Likewise.
39444 * modules/gc-rijndael (configure.ac): Likewise.
39445 * modules/gc-sha1 (configure.ac): Likewise.
39447 2007-01-08 Bruno Haible <bruno@clisp.org>
39449 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39451 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39453 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39455 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39456 * modules/fcntl-safer (configure.ac): Likewise.
39457 * modules/fopen-safer (configure.ac): Likewise.
39458 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39459 GNULIB_FWRITEERROR macro definition.
39461 2007-01-08 Bruno Haible <bruno@clisp.org>
39463 * m4/gnulib-common.m4: New file.
39464 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39465 (func_get_filelist): Add m4/gnulib-common.m4.
39467 2007-01-08 Bruno Haible <bruno@clisp.org>
39469 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39472 2007-01-08 Jim Meyering <jim@meyering.net>
39474 Use a more robust test for a "can't happen" condition.
39475 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39476 narrowed the st_size value. Presuming the "can't happen" condition
39477 is true, that narrowing could conceivably convert an invalid st_size
39478 value into a valid one. Instead, use a change based on Matthew
39479 Woehlke's original patch.
39481 Slight readability improvement: use an assert-like macro
39482 in place of literal "abort ()" uses.
39483 * lib/fts.c (fts_assert): Define.
39484 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39485 Use this macro instead of a bare 'abort'.
39487 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
39489 Don't worry about using IRIX 5.3's wctype.h broken definitions;
39490 simply work around them.
39491 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39492 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39493 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39495 Don't bother to define as macros, since the standard doesn't require it.
39496 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39497 longer worry about IRIX 5.3.
39498 (HAVE_WCTYPE_CTMP_BUG): Remove.
39500 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
39502 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39503 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
39504 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39505 Problems reported by Georg Schwarz for IRIX 5.3.
39507 * gnulib-tool (autoconf_minversion): Take the maximum version number
39508 found, not the minimum. Problem reported by James Youngman.
39510 2007-01-03 Karl Berry <karl@gnu.org>
39512 * doc/error.texi: new file, explaining interaction with progname.
39513 * doc/gnulib.texi: include it. Update copyright.
39515 2007-01-03 Simon Josefsson <simon@josefsson.org>
39517 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39518 AC_CANONICAL_HOST, to improve autobuild outputs.
39520 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
39521 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39523 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39524 sockets, server sockets, and other file descriptors. Count errors
39525 to compute the return value. Reorder the code a bit to be easier
39526 to follow. Don't set event bits that were not requested (except
39527 POLLERR and POLLHUP).
39529 2007-01-01 Bruno Haible <bruno@clisp.org>
39531 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39533 2007-01-03 Jim Meyering <jim@meyering.net>
39535 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
39537 2007-01-02 Bruno Haible <bruno@clisp.org>
39539 * modules/settime (Include): Require timespec.h.
39540 * modules/nanosleep (Include): Likewise.
39542 2007-01-01 Bruno Haible <bruno@clisp.org>
39544 * gnulib-tool (func_emit_copyright_notice): Bump year.
39545 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39547 2007-01-01 Bruno Haible <bruno@clisp.org>
39549 Improve support for OpenBSD.
39550 * build-aux/config.rpath (libname_spec): Export.
39551 (library_names_spec): New variable. Export.
39552 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39553 library_names_spec from the config.rpath output. Locate shared library
39554 through the name pattern in library_names_spec.
39556 2007-01-01 Eric Blake <ebb9@byu.net>
39558 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39560 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
39562 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39563 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
39564 assume the C locale, and avoid an "eval" that could cause trouble.
39565 Problem with SORT reported by Bob Proulx.
39567 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39568 Define. Trivial patch from Henning Nielsen Lund, originally
39569 sent to bug-grep@gnu.org today.
39571 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
39573 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39574 struct stat. Problem reported by Henning Nielsen Lund.
39575 * lib/acl.c: Include acl.h first, to check interface. Don't
39576 bother to include sys/types.h and sys/stat.h again.
39578 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
39580 Import the following change from libc; problem reported by
39583 2005-10-13 Ulrich Drepper <drepper@redhat.com>
39586 * lib/argp.h: Remove __NTH for __argp_usage inline function.
39588 2006-12-28 Jim Meyering <jim@meyering.net>
39590 * build-aux/announce-gen: Do not assume that the package
39591 builds any of tar.gz, tar.bz2, and .xdelta files.
39592 Suggestion from Simon Josefsson.
39594 2006-12-28 Simon Josefsson <simon@josefsson.org>
39596 * modules/announce-gen: New file.
39598 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
39600 * lib/mbchar.h: Just include <wctype.h>; the wctype module
39601 handles its gotchas now.
39602 * lib/mbswidth.c: Likewise.
39603 * lib/wcwidth.h: Likewise.
39604 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39605 and iswcntrl; the wctype module does this stuff now.
39606 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39607 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39608 * modules/mbchar (Depends-on): Add wctype.
39609 * modules/mbswidth (Depends-on): Likewise.
39610 * modules/wcwidth (Depends-on): Likewise.
39612 2006-12-27 Eric Blake <ebb9@byu.net>
39614 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39615 module uses more than what <wctype.h> is required to provide.
39617 2006-12-26 Eric Blake <ebb9@byu.net>
39619 * gnulib-tool (sed_extract_prog): Avoid space-tab.
39621 2006-12-26 Eric Blake <ebb9@byu.net>
39623 * modules/absolute-header: New module.
39624 * modules/fcntl (Depends-on): Depend on it.
39625 * modules/inttypes (Depends-on): Likewise.
39626 * modules/stdint (Depends-on): Likewise.
39627 * modules/sys_stat (Depends-on): Likewise.
39628 * modules/wctype (Depends-on): Likewise.
39629 * MODULES.html.sh (Support for building libraries and
39630 executables): Document it.
39632 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
39634 * gnulib-tool (SED): Remove, undoing previous change.
39635 The problem was that it broke coreutils on Solaris, because
39636 "sed --posix" leaked into a makefile.
39637 (sed): New alias, if 'alias' and GNU sed.
39639 2006-12-24 Jim Meyering <jim@meyering.net>
39641 Work around an fchownat bug in glibc-2.4:
39642 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39643 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39644 in spite of the -P option.
39645 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39647 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39648 * modules/openat (Files): Add lib/fchownat.c.
39649 * lib/openat.c (fchownat): Don't define here. Move to...
39650 * lib/fchownat.c: ...this new file.
39652 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
39654 Fix bug reported by Bruno Haible in
39655 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39656 where quotearg.c didn't compile on Mac OS X 10.2 because it
39657 lacks <wchar.h> and wint_t.
39658 * lib/wctype_.h (__wctype_wint_t): New type.
39659 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39660 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39661 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39662 Arg is now of type __wctype_wint_t, not wint_t.
39663 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39664 substitute HAVE_WINT_T.
39665 * modules/wctype (Files): Add m4/wint_t.m4.
39666 (wctype.h): Substitute HAVE_WINT_T.
39668 2006-12-23 Bruno Haible <bruno@clisp.org>
39670 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39672 2006-12-23 Bruno Haible <bruno@clisp.org>
39674 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39676 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39679 2006-12-22 Bruno Haible <bruno@clisp.org>
39681 * lib/copy-file.c: Include acl.h.
39682 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39683 Close the file descriptors only after being done with copy_acl.
39684 * modules/copy-file (Depends-on): Add acl.
39686 2006-12-22 Bruno Haible <bruno@clisp.org>
39688 * gnulib-tool (SED): New variable.
39689 Use $SED instead of sed everywhere.
39691 2006-12-22 Bruno Haible <bruno@clisp.org>
39693 * modules/no-c++: New file.
39694 * m4/no-c++.m4: New file.
39695 * MODULES.html.sh (Support for building libraries and executables):
39698 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
39700 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39701 Include <limits.h>, and use its INT_MAX to rewrite the
39702 j loop so that it does not overflow 'int'. Problem reported by
39704 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39705 Play it safe by shifting left by 1 rather than multiplying by 2,
39706 as GCC is less likely to optimize this away when the value
39707 is signed (when it assumes overflow leads to undefined behavior).
39708 Also, don't assume time_t uses two's complement.
39710 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
39712 * MODULES.html.sh: New module wctype.
39713 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39714 * lib/fnmatch.c: Don't bother to include <wchar.h> before
39715 <wctype.h>, since the new wctype module should fix this.
39716 * lib/quotearg.c: Include <wctype.h> unconditionally, since
39717 the wctype module should arrange for it.
39718 * lib/regex_internal.h: Likewise.
39719 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39720 since the wctype module should handle this now.
39721 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39722 * modules/fnmatch (Depends-on): Add wctype.
39723 * modules/quotearg (Depends-on): Likewise.
39724 * modules/regex (Depends-on): Likewise.
39726 2006-12-19 Bruno Haible <bruno@clisp.org>
39728 * lib/strdup.h [C++]: Wrap definitions in extern "C".
39729 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39731 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39733 * modules/savewd (Depends-on): Fix dependency on fcntl.
39735 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39737 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39738 conforms to C99, rather than relying on the user's environment
39739 setting of STDINT_H.
39741 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39742 and Eric Blake <ebb9@byu.net>
39744 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39745 This is more consistent with the other defines here.
39746 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39747 Port to z/OS. Problem reported by Paul Gilmartin.
39748 Change local vars to use gl_ prefix rather than ac_.
39749 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39750 with other defines.
39751 * modules/double-slash-root: New module.
39752 * modules/dirname (Files): Remove m4/double-slash-root.m4.
39753 (Depends-on): Add double-slash-root.
39754 * MODULES.html.sh (File system functions): Mention new module.
39756 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
39758 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39759 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39760 This is for the benefit of gzip, which doesn't do i18n.
39762 2006-12-12 Jim Meyering <jim@meyering.net>
39764 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39765 Reported by Andreas Schwab <schwab@suse.de>.
39767 2006-12-12 Bruno Haible <bruno@clisp.org>
39769 Merge these changes.
39770 2006-09-05 Bruno Haible <bruno@clisp.org>
39771 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39772 iconv_alloc succeeded.
39773 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39774 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39775 test for " && dest " at the end - dest is always != NULL there. Call
39776 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39777 with 2xNULL arguments, also to flush the state storage. Handle the
39778 IRIX iconv behaviour. Realloc the final result, to throw away unused
39781 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39783 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39784 and fchmodat unconditionally, since glibc 2.4 has them.
39785 Problem reported by Arkadiusz Miskiewicz.
39787 2006-12-10 Bruno Haible <bruno@clisp.org>
39789 * gnulib-tool (func_import): Show the include files only for those
39790 modules that are copied and specified.
39791 Reported by Karl Berry.
39793 2006-12-08 Jim Meyering <jim@meyering.net>
39795 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39796 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39798 * build-aux/announce-gen: Add two new options, both optional:
39799 --bootstrap-tools=TOOL_LIST
39800 a comma-separated list of tools, e.g.,
39801 autoconf,automake,bison,gnulib
39802 --gnulib-snapshot-date=DATE
39803 if gnulib is in the bootstrap tool list,
39804 then report this as the snapshot date.
39805 If not specified, use the current date/time.
39806 If you specify a date here, be sure it's UTC.
39808 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39810 * tests/test-argp-2.sh: Fix test to match actual output.
39811 (func_compare): Fix sed script to be portable.
39813 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39815 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39816 workaround for this case. It is not autoconfigured now; offhand
39817 it's hard to see how to autoconfigure it.
39819 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39821 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39822 a directory that is about to be chowned. Such a directory's
39823 initial file permissions should permit the owner only and this
39824 should not be changed until after the chown, since the group and
39825 other bits would be incorrect if they granted permission before
39828 Fix porting problem for iswctype reported by Georg Schwarz in:
39829 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39830 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39831 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39832 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39833 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39835 2006-12-03 Jim Meyering <jim@meyering.net>
39837 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39838 p->fts_statp may not yet be defined.
39839 (fts_read): Instead, set it in the caller, once p->fts_statp is
39840 sure to be defined, and corresponds to a top-level directory.
39841 This bug made du -x fail. Here's the coreutils test case:
39842 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39843 Reported by Mike Frysinger.
39845 2006-12-01 Jim Meyering <jim@meyering.net>
39847 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39848 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39849 Reported by Simon Josefsson.
39851 2006-11-30 Jim Meyering <jim@meyering.net>
39853 * m4/warning.m4: Use the all-permissive copyright notice
39854 recommended by RMS (rather than LGPL).
39855 * m4/vararrays.m4: Likewise.
39856 * m4/flexmember.m4: Likewise.
39858 2006-11-29 Bruno Haible <bruno@clisp.org>
39860 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39861 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39863 Reported by Simon Josefsson <simon@josefsson.org>.
39865 2006-11-28 James Youngman <jay@gnu.org>
39867 * README: Advise users that they might find the bug-gnulib@gnu.org
39868 and autotools-announce@gnu.org mailing lists useful.
39870 2006-11-28 Bruno Haible <bruno@clisp.org>
39872 * m4/ptrdiff_max.m4: Remove file.
39874 2006-11-21 Bruno Haible <bruno@clisp.org>
39876 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39878 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39879 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39881 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39882 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39884 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39886 2006-11-28 Jim Meyering <jim@meyering.net>
39888 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39889 warning from "gcc -Wshadow" about shadowing the builtin.
39891 2006-11-27 Bruno Haible <bruno@clisp.org>
39893 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39895 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39897 2006-11-27 Bruno Haible <bruno@clisp.org>
39898 Paul Eggert <eggert@cs.ucla.edu>
39900 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39902 2006-11-26 Bruno Haible <bruno@clisp.org>
39904 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39905 noinst_LTLIBRARIES.
39907 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
39908 Bruno Haible <bruno@clisp.org>
39910 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39911 if compiling with "gcc -ansi".
39913 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
39915 Fix some incompatibilities with gcc -ansi -pedantic.
39916 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39917 if compiling pedantically with GCC, unless it's C99 or later.
39918 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39919 it mishandles gcc -ansi -pedantic as well.
39920 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39922 * lib/regexec.c (check_node_accept_bytes): Don't use auto
39923 initializers for struct if -pedantic, unless it's C99 or later.
39925 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
39927 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39928 Don't close an fd more than once. Identical atimes indicate
39929 success, not failure.
39931 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
39933 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39935 2006-11-23 Jim Meyering <jim@meyering.net>
39937 * build-aux/announce-gen: New file. From coreutils.
39939 2006-11-22 Jim Meyering <jim@meyering.net>
39941 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39942 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39943 (fts_read): Use a temporary to narrow the overused st_size member
39944 before using it in a switch statement. Reported by Matthew Woehlke.
39946 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39947 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39949 2006-11-20 Bruno Haible <bruno@clisp.org>
39951 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39952 changequote instead of pairs of brackets.
39953 Reported by Andreas Schwab <schwab@suse.de>.
39955 2006-11-21 Jim Meyering <jim@meyering.net>
39957 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39958 so as to remain compatible with older compilers.
39959 Patch from Michael Deutschmann.
39961 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39963 * MODULES.html.sh (File system functions): Add openat.
39965 * lib/openat.h (rpl_fstatat): New macro, if
39966 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39967 (fstatat): Define to rpl_fstatat under the same conditions,
39968 unless COMPILING_FSTATAT.
39969 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39970 seems to have the bug.
39971 * lib/fstatat.c: New file.
39972 * modules/openat (Files): Add it.
39974 2006-11-20 Bruno Haible <bruno@clisp.org>
39976 * Makefile: New file.
39978 2006-11-20 Jim Meyering <jim@meyering.net>
39980 The beginnings of syntax-related checks for gnulib.
39981 * lib/Makefile: New file.
39982 * lib/t-idcache: New script. Ensure that the two halves of
39983 idcache.c stay in sync.
39985 * lib/idcache.c: Adjust comments in user- and group- portions to
39986 be more accurate, and to be consistent with one another.
39988 2006-11-20 Jim Meyering <jim@meyering.net>
39990 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39991 continue using the flexible array member (thus, this module performs
39992 half as many malloc calls), with the addition that...
39993 (getgroup, getuser): Consistently record a non-match via an empty
39994 "name" string, and map an empty string match to a NULL return value.
39995 * modules/idcache (Depends-on): Re-add flexmember.
39997 * lib/idcache.c (getuser): Remove all uses of the register keyword.
39998 (getuidbyname, getgroup, getgidbyname): Likewise.
40000 Use cleaner syntax: NULL rather than 0.
40001 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40003 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40005 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40006 It mishandled the case where the group was missing.
40007 Problem reported by Greg Schafer.
40008 * modules/idcache: Likewise.
40010 2006-11-18 Jim Meyering <jim@meyering.net>
40012 * check-module (%exempt_header): Add exception for some
40013 conditionally-included headers.
40015 * modules/i-ring (Depends-on): Add verify.
40016 (License): Change to LGPL.
40018 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
40020 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40021 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40022 and inttostr.h. Use snprintf rather than uinttostr, so that
40023 LGPLed code doesn't depend on GPLed.
40025 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
40027 * modules/inline (License): Change from GPL to LGPL.
40029 2006-11-17 Jim Meyering <jim@meyering.net>
40031 * modules/d-type (License): Switch to LGPL.
40033 2006-11-15 Bruno Haible <bruno@clisp.org>
40035 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40037 2006-11-15 Eric Blake <ebb9@byu.net>
40039 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40040 the module dependency.
40042 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40043 Bruno Haible <bruno@clisp.org>
40045 * gnulib-tool (func_create_testdir): Add license consistency check.
40047 2006-11-15 Eric Blake <ebb9@byu.net>
40049 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40050 random "(cached)" in configure output.
40052 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40054 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40055 test for conforming inttypes.h is both announced and cached.
40057 * MODULES.html.sh (seen_modules, seen_files): New variables.
40058 (func_module): Rewrite to use a few less gnulib-tool and sed
40059 invocations. Avoid a couple of quadratic algorithms for ...
40060 (missed_modules, missed_files): ... these, with ...
40061 (func_append, func_tmpdir): ... these new functions, from
40062 gnulib-tool. Analogously, install traps for cleanup.
40064 * tests/test-gc.c (main): Remove unused variables.
40065 * tests/test-read-file.c: Include stdlib.h, for 'free'.
40067 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
40069 * modules/inttostr (License): Change to LGPL.
40071 2006-11-14 Eric Blake <ebb9@byu.net>
40073 * modules/tempname (License): Change to LGPL.
40075 2006-11-14 Eric Blake <ebb9@byu.net>
40077 * doc/functions.texi (Function Portability): *printf functions on
40078 Cygwin now understand all POSIX size specifiers.
40080 2006-11-14 Bruno Haible <bruno@clisp.org>
40082 * modules/c-ctype (License): Change to LGPL.
40084 2006-11-12 Bruno Haible <bruno@clisp.org>
40086 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40087 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40088 for GNOME libraries, for which the include files are installed in
40089 subdirectories of $prefix/include.
40091 2006-11-12 Bruno Haible <bruno@clisp.org>
40093 * m4/lib-link.m4: Require at least autoconf-2.54.
40094 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40095 name to underscores for the --with option.
40097 2006-11-13 Bruno Haible <bruno@clisp.org>
40099 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40100 the tests directory.
40101 Reported by Ralf Wildenhues.
40103 2006-11-13 Bruno Haible <bruno@clisp.org>
40105 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40106 (func_emit_initmacro_end): Undo the override here.
40107 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40108 Works around the famous automake error in coreutils.
40110 2006-11-13 Eric Blake <ebb9@byu.net>
40112 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40113 element, not its node.
40115 2006-11-12 Bruno Haible <bruno@clisp.org>
40117 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40118 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40120 2006-11-12 Bruno Haible <bruno@clisp.org>
40122 * gnulib-tool: New option --local-symlink.
40123 (func_usage): Document it.
40124 (lsymbolic): New variable.
40125 (func_import, func_create_testdir): If --symlink was not specified,
40126 test whether --local-symlink was specified and the file comes from
40127 the local_gnulib_dir.
40129 2006-11-12 Bruno Haible <bruno@clisp.org>
40131 * gnulib-tool (func_ln): New function.
40132 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40134 2006-11-12 Bruno Haible <bruno@clisp.org>
40136 Finish support for source files in subdirectories.
40137 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40138 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40140 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40142 2006-11-12 Bruno Haible <bruno@clisp.org>
40144 * gnulib-tool (func_get_automake_snippet): Synthesize also an
40145 EXTRA_lib_SOURCES augmentation.
40146 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40148 2006-11-12 Jim Meyering <jim@meyering.net>
40150 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40151 file descriptors. This also averts a failure on systems with
40152 native openat support when a traversed directory lacks "x" access.
40153 * lib/fts_.h: Include "i-ring.h"
40154 (struct FTS) [fts_fd_ring]: New member.
40155 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40156 (FCHDIR): Add parentheses.
40157 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40158 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
40159 When descending, rather than simply closing the previous
40160 fts_cwd_fd value, push that file descriptor onto the ring.
40161 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40162 (fts_open): Initialize the new fd_ring member.
40163 (fts_close): Clear the ring.
40164 (fts_safe_changedir): When possible, use our new fd_ring to skip
40165 the diropen and fstat and dev/ino comparison that would normally
40166 accompany a virtual `chdir ("..")'.
40168 * modules/fts (Depends-on): Add i-ring.
40169 * modules/i-ring: New module.
40170 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40171 * m4/i-ring.m4: New file.
40173 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40175 * gnulib-tool (func_create_testdir): Fix replacement of
40176 `build-aux' in configure.ac. Run autotools in gltests
40178 (func_create_testdir, func_create_megatestdir, test): There is
40179 no need for '--force' in most autotool invocations in a new
40180 tree. Actually fail the whole test if any of the tools, or the
40181 configure or make stages fail.
40183 Sync from Automake.
40184 * build-aux/gnupload: Revert last change. Add pointer to upload
40185 instructions of the GNU Maintenance Instructions.
40186 Suggestion by Karl Berry.
40188 2006-11-10 Jim Meyering <jim@meyering.net>
40190 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40192 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40194 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40195 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40196 (bind_textdomain_codeset) [! ENABLE_NLS]:
40197 Evaluate all the arguments. That way, callers get compatible behavior
40198 if the arguments have side effects. Also, it avoids some GCC
40199 diagnostics in some cases; Joel E. Denny reported problems when Bison
40200 was configured with --enable-gcc-warnigs.
40202 2006-11-10 Jim Meyering <jim@meyering.net>
40204 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40205 relevant options in CFLAGS (like -O, -fno-inline) are taken into
40208 2006-11-10 Jim Meyering <jim@meyering.net>
40210 * modules/inline: New file/module.
40211 * modules/xalloc (Files): Remove m4/inline.m4.
40212 (Depends-on): Add inline, instead.
40213 * modules/oset: Likewise.
40214 * modules/list: Likewise.
40216 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40218 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40219 Problem reported by Matthew Woehlke.
40221 2006-11-09 Bruno Haible <bruno@clisp.org>
40223 * lib/tempname.c (gen_tempname): Remove variant that invokes
40225 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40228 2006-11-08 Bruno Haible <bruno@clisp.org>
40230 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40231 to 'yes' instead of 'cross-compiling'.
40233 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
40235 * lib/quotearg.h (quotearg_free): New decl.
40236 * lib/quotearg.c (quotearg_free): New function.
40237 (slot0, nslots, slotvec0, slotvec):
40238 Now file-scope so that quotearg_free can get at them.
40240 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40242 Sync from Automake.
40243 * build-aux/gnupload: Add missing 'gnu' to example URL.
40244 Report by Karl Berry.
40246 2006-11-08 Bruno Haible <bruno@clisp.org>
40248 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40249 Suggested by Paul Eggert.
40251 2006-11-08 Jim Meyering <jim@meyering.net>
40253 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40254 It's already included if !_LIBC.
40255 (fts_safe_changedir): Add a comment.
40257 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40259 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40260 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40263 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40264 definitions up, to avoid colliding with change below.
40265 (static_inline) [HAVE_INLINE]: New macro.
40266 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40267 Provide extern decls when !HAVE_INLINE. Do not define unless
40268 static_inline is defined, either by us or by xmalloc.c. Use
40269 static_inline rather than static inline.
40270 (XCALLOC): Optimize sizeof(T) = 1 case.
40271 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40273 2006-11-07 Bruno Haible <bruno@clisp.org>
40275 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40276 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40278 * modules/xalloc (Files): Add m4/inline.m4.
40280 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40282 * README: Fix typo.
40283 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40284 (Miscellanous Notes): ...from this.
40286 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40288 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40289 Mention that offsetof should be used instead of sizeof.
40292 2006-11-07 Bruno Haible <bruno@clisp.org>
40294 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40296 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40298 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40299 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40300 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40301 (gl_tree_add_before, gl_tree_add_after):
40302 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40303 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40304 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40305 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40306 (gl_linked_add_after, gl_linked_add_at): Likewise.
40307 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40308 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40309 (gl_tree_add_before, gl_tree_add_after): Likewise.
40310 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40311 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40312 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40314 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40316 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40318 2006-11-06 Bruno Haible <bruno@clisp.org>
40320 * m4/inline.m4: New file.
40321 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40322 * modules/list (Files): Add m4/inline.m4.
40323 * modules/oset (Files): Likewise.
40325 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40327 * lib/idcache.c: Include <stddef.h>, for offsetof.
40328 (struct userid.name): Change from char * to a flexible array member.
40330 * modules/idcache (Depends-on): Add flexmember.
40332 * MODULES.html.sh (Core language properties): New module flexmember.
40333 * modules/flexmember, m4/flexmember.m4: New files.
40335 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40336 inline functions that are identical with the old xnmalloc_inline,
40337 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40338 that we can avoid some unnecessary integer multiplications and
40339 divisions in the common case where the element size is known at
40341 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40343 (xnboundedmalloc): Remove.
40344 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40345 arguments, for consistency with rest of this header.
40346 (xcharalloc): Rewrite using XNMALLOC.
40347 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40348 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40349 versions have been moved to lib/xalloc.h and renamed to be the
40350 non-*_inline versions.
40351 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40352 and xnrealloc functions, since those functions are now inline and
40354 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40355 renaming described above.
40356 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40357 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40358 captures the dependency in AC_C_INLINE.
40360 New module canonicalize-lgpl, proposed by Charles Wilson in
40361 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40362 with a few small changes afterwards.
40363 * MODULES.html.sh (File system functions): New module
40365 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40366 and canonicalize_file_name.
40367 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40368 * modules/canonicalize-lgpl: New files.
40370 2006-11-05 Bruno Haible <bruno@clisp.org>
40372 * gnulib-tool (func_import, func_create_testdir): Create directories
40373 also for files in subdirectories of lib/.
40375 2006-11-05 Bruno Haible <bruno@clisp.org>
40377 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40380 2006-11-03 Bruno Haible <bruno@clisp.org>
40382 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40383 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40384 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40385 (xnboundedmalloc): New inline function.
40386 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40387 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40389 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40391 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40392 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40393 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40395 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40396 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40398 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40399 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40400 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40402 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40403 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40404 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40405 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40406 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40407 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40408 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40410 2006-11-03 Bruno Haible <bruno@clisp.org>
40412 * lib/c-ctype.h [C++]: Define functions without name mangling.
40413 * lib/fwriteerror.h [C++]: Likewise.
40414 * lib/gcd.h [C++]: Likewise.
40415 * lib/linebreak.h [C++]: Likewise.
40417 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40419 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40420 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40421 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40422 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40423 Check for functions and headers just once.
40424 Check for declaration of canonicalize_file_name.
40425 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40427 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40429 * gnulib-tool (func_import): Fix typo in actioncmd.
40431 2006-11-02 Bruno Haible <bruno@clisp.org>
40433 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40434 newline sequence in the Makefile.am snippet as a space, like "make"
40436 Reported by Roger Persson <perrog@gmail.com>.
40438 2006-11-01 Bruno Haible <bruno@clisp.org>
40440 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40441 already declared in <string.h>.
40442 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40444 2006-11-01 Bruno Haible <bruno@clisp.org>
40446 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40447 * lib/strcase.h: Include <string.h>.
40448 (strcasecmp): Define to rpl_strcasecmp here.
40450 2006-11-01 Bruno Haible <bruno@clisp.org>
40452 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40454 2006-11-01 Eric Blake <ebb9@byu.net>
40456 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40458 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40460 2006-10-29 Bruno Haible <bruno@clisp.org>
40462 Make it compile in C++ mode.
40463 * lib/full-write.c (full_rw): Add a cast.
40465 2006-11-01 Bruno Haible <bruno@clisp.org>
40467 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40468 be POSIX compliant.
40469 Reported by Roger Persson <perrog@gmail.com>.
40471 2006-11-01 Eric Blake <ebb9@byu.net>
40473 * lib/getopt_.h: Fix comments.
40475 2006-10-31 Eric Blake <ebb9@byu.net>
40477 * modules/tmpdir (Depends-on): Add sys_stat.
40478 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40479 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40480 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40481 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40484 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40486 Avoid some C++ diagnostics reported by Bruno Haible.
40487 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40489 (quotearg_alloc): Use xcharalloc rather than xmalloc.
40490 (struct slotvec): Move to top level.
40491 (quotearg_n_options): Rewrite to avoid xmalloc.
40492 * lib/xalloc.h (xcharalloc): New function.
40493 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40494 [defined __cplusplus]: Add function template that provides result
40495 type propagation. This part of the change is from Bruno Haible.
40497 2006-10-29 Bruno Haible <bruno@clisp.org>
40499 Make it compile in C++ mode.
40500 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40501 * lib/strnlen1.c (strnlen1): Cast memchr result.
40502 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40503 * lib/clean-temp.c (string_equals, string_hash): Add casts.
40504 (create_temp_dir): Rename local variable 'template'.
40505 (compile_csharp_using_sscli): Add cast.
40506 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40507 * lib/findprog.c (find_in_path): Likewise.
40508 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40509 * lib/wait-process.c (register_slave_subprocess): Likewise.
40511 2006-10-22 Bruno Haible <bruno@clisp.org>
40513 * modules/tsearch: New file.
40514 * lib/tsearch.h: New file.
40515 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40516 * m4/tsearch.m4: New file.
40517 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40519 2006-10-29 Eric Blake <ebb9@byu.net>
40521 * lib/arcfour.c: Assume config.h.
40522 * lib/arctwo.c: Likewise.
40523 * lib/base64.c: Likewise.
40524 * lib/check-version.c: Likewise.
40525 * lib/crc.c: Likewise.
40526 * lib/des.c: Likewise.
40527 * lib/gc-gnulib.c: Likewise.
40528 * lib/gc-libgcrypt.c: Likewise.
40529 * lib/gc-pbkdf2-sha1.c: Likewise.
40530 * lib/getaddrinfo.c: Likewise.
40531 * lib/getdelim.c: Likewise.
40532 * lib/getline.c: Likewise.
40533 * lib/hmac-md5.c: Likewise.
40534 * lib/hmac-sha1.c: Likewise.
40535 * lib/iconvme.c: Likewise.
40536 * lib/md2.c: Likewise.
40537 * lib/md4.c: Likewise.
40538 * lib/memxor.c: Likewise.
40539 * lib/read-file.c: Likewise.
40540 * lib/readline.c: Likewise.
40541 * lib/rijndael-alg-fst.c: Likewise.
40542 * lib/rijndael-api-fst.c: Likewise.
40543 * lib/xgetdomainname.c: Likewise.
40545 2006-10-28 Eric Blake <ebb9@byu.net>
40547 * lib/xstrndup.c: Assume config.h.
40549 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
40551 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40552 stat-macros.h is now for our own macros, whereas stat_h is for
40553 macros in the <sys/stat.h> name space.
40554 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40555 (STAT_MACROS_H): Remove.
40556 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40557 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40558 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40559 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40560 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40561 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40562 Move these macros to ...
40563 * lib/stat_.h: here. Don't include stat-macros.h.
40564 * lib/canonicalize.c: Don't include stat-macros.h.
40565 * lib/chown.c: Likewise.
40566 * lib/euidaccess.c: Likewise.
40567 * lib/file-type.c: Likewise.
40568 * lib/filemode.c: Likewise.
40569 * lib/glob.c: Likewise.
40570 * lib/isapipe.c: Likewise.
40571 * lib/lchown.c: Likewise.
40572 * lib/lstat.c: Likewise.
40573 * lib/mkdir-p.c: Likewise.
40574 * lib/rmdir.c: Likewise.
40575 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40576 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40577 unless mkdir isn't declared, to speed up 'configure'.
40578 Always create sys/stat.h, since it's unlikely any real sys/stat.h
40579 would define all the S_* symbols.
40580 * modules/canonicalize (Depends-on):
40581 Depend on sys_stat, not stat-macros.
40582 * modules/chown: Likewise.
40583 * modules/euidaccess: Likewise.
40584 * modules/filemode: Likewise.
40585 * modules/file-type: Likewise.
40586 * modules/glob: Likewise.
40587 * modules/isapipe: Likewise.
40588 * modules/lchown: Likewise.
40589 * modules/lstat: Likewise.
40590 * modules/mkancesdirs: Likewise.
40591 * modules/rmdir: Likewise.
40592 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40593 * modules/modechange: Likewise.
40594 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40595 (configure.ac): Remove gl_STAT_MACROS.
40596 * modules/sys_stat (Depends-on): Remove stat-macros.
40598 2006-10-27 Bruno Haible <bruno@clisp.org>
40600 * m4/signed.m4: Remove file.
40601 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40603 * modules/vasnprintf (Files): Remove m4/signed.m4.
40605 2006-10-27 Bruno Haible <bruno@clisp.org>
40607 Update to GNU gettext 0.16.
40608 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40609 m4/inttypes-h.m4, m4/signed.m4.
40610 * m4/gettext.m4: Update to GNU gettext 0.16.
40611 * m4/intl.m4: New file, from GNU gettext.
40612 * m4/intldir.m4: New file, from GNU gettext.
40613 * config/srclist.txt: Update
40615 2006-10-27 Eric Blake <ebb9@byu.net>
40617 * MODULES.html.sh: Document tempname.
40618 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40620 (Files): Move lib/tempname.c...
40621 * modules/tempname: ...to this new module.
40622 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40623 (gl_PREREQ_TEMPNAME): Move...
40624 * m4/tempname.m4: ...to this new file.
40625 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40626 * modules/sys_stat (Depends-on): Add stat-macros.
40627 * lib/stat_.h (includes): Pick up stat macros.
40628 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40629 if stat macros are broken.
40630 * lib/tempname.c (includes): No need to include "stat-macros.h".
40631 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40632 (direxists, __path_search) [!_LIBC]: Don't compile these in
40633 gnulib; the tmpdir module covers that.
40634 * lib/tempname.h: New file.
40636 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
40638 * COPYING: Explain how gnulib-tool converts licence headers.
40639 Almost all wording by Eric Blake.
40641 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
40643 * lib/mbchar.h (is_basic_table): Make read-only.
40644 * lib/mbchar.c (is_basic_table): Likewise.
40645 Reported by John Darrington.
40647 2006-10-25 Bruno Haible <bruno@clisp.org>
40649 * lib/progname.h (set_program_name): Undefine before defining.
40651 2006-10-25 Bruno Haible <bruno@clisp.org>
40653 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40654 false for non-gcc C++ compilers.
40655 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40657 2006-10-24 Bruno Haible <bruno@clisp.org>
40659 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40660 iconv implementations like Irix iconv.
40662 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40664 * modules/vararrays: New file.
40665 * m4/vararrays.m4: New file, taken from diffutils.
40666 * MODULES.html.sh: New module vararrays.
40668 2006-10-24 Karl Berry <karl@gnu.org>
40670 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40671 Don't call GNU Unix.
40673 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40675 * users.txt: Add Libtool.
40679 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40681 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40682 to gnulib's policy of including config.h unconditionally.
40684 2006-10-24 Bruno Haible <bruno@clisp.org>
40686 * modules/wcwidth (Files): Add m4/wint_t.m4.
40687 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40688 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40690 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40692 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40693 to pacify GCC with some -W flags enabled. Problem reported by
40696 2006-10-24 Jim Meyering <jim@meyering.net>
40698 * MODULES.html.sh: Remove uinttostr. It's not a module.
40699 Reported by Karl Berry.
40701 2006-10-23 Bruno Haible <bruno@clisp.org>
40703 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40705 2006-10-24 Bruno Haible <bruno@clisp.org>
40707 * lib/gl_list.h: Use C comment style, not C++ comment style.
40709 2006-10-23 Eric Blake <ebb9@byu.net>
40711 * lib/getaddrinfo.c (includes): Add missing include.
40713 2006-10-23 Bruno Haible <bruno@clisp.org>
40714 Paul Eggert <eggert@cs.ucla.edu>
40716 Ability to rename obstack_free.
40717 * lib/obstack.h (__obstack_free): New macro. Declare instead of
40719 (obstack_free): Invoke the __obstack_free macro.
40720 * lib/obstack.c (obstack_free): Use __obstack_free macro.
40722 2006-10-23 Bruno Haible <bruno@clisp.org>
40723 Paul Eggert <eggert@cs.ucla.edu>
40725 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40726 __argc, __argv from the declaration. (They are defined as macros on
40729 2006-10-22 Bruno Haible <bruno@clisp.org>
40731 * doc/gnulib-intro.texi: New file.
40732 * doc/gnulib.texi: Include it.
40734 2006-10-21 Bruno Haible <bruno@clisp.org>
40736 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40737 "Introduction", "Miscellanous Notes", "Particular Modules".
40739 2006-10-21 Bruno Haible <bruno@clisp.org>
40741 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40742 Change mostlyclean-local rule to avoid sh syntax error from bash
40743 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40745 2006-10-23 Jim Meyering <jim@meyering.net>
40747 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40748 in place of snprintf.
40750 * modules/inttostr (Files): Add lib/uinttostr.c.
40751 * lib/uinttostr.c (inttostr): New file/function.
40752 * lib/inttostr.h (uinttostr): Declare.
40753 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40754 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40756 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
40758 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40760 * lib/canonicalize.c (ELOOP): Define if not already defined.
40761 Problem reported by Bruno Haible in
40762 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40764 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40766 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40767 Problem reported by Perry Smith and Ville Laurikari.
40769 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40772 2006-10-19 Bruno Haible <bruno@clisp.org>
40774 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40777 2006-10-19 Bruno Haible <bruno@clisp.org>
40779 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40782 2006-10-19 Bruno Haible <bruno@clisp.org>
40784 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40786 2006-10-19 Bruno Haible <bruno@clisp.org>
40788 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40791 2006-10-19 Bruno Haible <bruno@clisp.org>
40793 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40796 2006-10-19 Bruno Haible <bruno@clisp.org>
40798 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40799 mountlist by default.
40801 2006-10-16 Bruno Haible <bruno@clisp.org>
40803 * lib/c-strstr.c: Include c-strstr.h.
40805 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40807 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40810 2006-10-18 Bruno Haible <bruno@clisp.org>
40812 * lib/lock.h [C++]: Wrap definitions in extern "C".
40814 2006-10-18 Bruno Haible <bruno@clisp.org>
40816 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40819 2006-10-18 Bruno Haible <bruno@clisp.org>
40821 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40823 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40825 * lib/xstrtol.h: Include gettext.h.
40826 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40827 Problem reported by Eric Blake.
40828 * modules/xstrtol (Depends-on): Add gettext-h.
40830 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40832 * lib/strftime.c (advance): New macro.
40833 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40834 incomplete type, so you can't add 0 to it. Problem and patch
40835 reported by Eelco Dolstra for dietlibc.
40837 2006-10-18 Jim Meyering <jim@meyering.net>
40839 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40840 type for a local, and rename it: s/up/user_proc/.
40842 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40844 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40845 READ_UTMP_USER_PROCESS.
40846 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40848 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
40850 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40851 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40853 2006-10-17 Eric Blake <ebb9@byu.net>
40855 * lib/sigprocmask.c (sigprocmask): Fix typo.
40857 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40859 * modules/clean-temp (Makefile.am): Don't add to make output...
40860 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40863 2006-10-17 Bruno Haible <bruno@clisp.org>
40865 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40866 differently if DEFAULT_TEXT_DOMAIN is set.
40868 2006-10-16 Bruno Haible <bruno@clisp.org>
40870 * lib/clean-temp.c: Include fwriteerror.h.
40872 2006-10-16 Bruno Haible <bruno@clisp.org>
40874 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40876 2006-10-16 Bruno Haible <bruno@clisp.org>
40878 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40879 * lib/sigprocmask.h: Include <sys/types.h>.
40880 (sigset_t): Use the system's definition if present.
40882 2006-10-17 Eric Blake <ebb9@byu.net>
40884 * lib/xvasprintf.c (includes): Assume config.h.
40885 * lib/xasprintf.c (includes): Likewise.
40887 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
40889 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40890 at least as wide as intmax_t.
40892 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
40894 (Imported from Automake.)
40895 * build-aux/gnupload: Update to version 1.1 of directive file.
40897 2006-10-16 Eric Blake <ebb9@byu.net>
40899 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40900 match Automake 1.10a.
40902 2006-10-14 Bruno Haible <bruno@clisp.org>
40904 * modules/sigprocmask: New file.
40905 * lib/sigprocmask.h: New file.
40906 * lib/sigprocmask.c: New file.
40907 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40908 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40909 request sigprocmask.o.
40910 (gl_PREREQ_SIGPROCMASK): New macro.
40911 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40912 (Depends-on): Add sigprocmask.
40913 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40914 gt_SIGNALBLOCKING. Test for 'raise' only once.
40915 * lib/fatal-signal.c: Include sigprocmask.h.
40916 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40917 unblock_fatal_signals): Define always.
40918 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40921 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
40923 Sync from Automake.
40924 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40925 which incorrectly sets the mode of an existing destination
40926 directory. In some cases the unpatched install-sh could do the
40927 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40928 system. We hope this is rare in practice, but it's clearly worth
40929 fixing. Problem reported by Alex Unleashed in
40930 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40931 Also, don't bother to check for -m bugs unless we're using -m;
40932 suggested by Stepan Kasal.
40934 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40936 Sync from Automake.
40937 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40938 `-c' flag, so they appear at the same position as in %FASTDEP%
40939 mode in depend2.am. Fixes build failure for FreeBSD's c89,
40940 which ignores unknown options only after the first non-option.
40941 Bug report against M4 by Nelson H. F. Beebe.
40943 2006-10-13 Jim Meyering <jim@meyering.net>
40945 Fix a bug in yesterday's change.
40946 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40947 p->fts_statp->st_dev would be used uninitialized.
40948 Ensures that we always call fts_stat on the very first entry.
40949 Miklos Szeredi reported that find -xdev stopped working.
40951 2006-10-12 Bruno Haible <bruno@clisp.org>
40953 * gnulib-tool (func_get_automake_snippet): Append an automatically
40954 computed EXTRA_DIST augmentation.
40955 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40956 * modules/alloca-opt (Makefile.am): Likewise.
40957 * modules/allocsa (Makefile.am): Likewise.
40958 * modules/arcfour (Makefile.am): Likewise.
40959 * modules/arctwo (Makefile.am): Likewise.
40960 * modules/argmatch (Makefile.am): Likewise.
40961 * modules/argz (Makefile.am): Likewise.
40962 * modules/atexit (Makefile.am): Likewise.
40963 * modules/backupfile (Makefile.am): Likewise.
40964 * modules/byteswap (Makefile.am): Likewise.
40965 * modules/c-strtod (Makefile.am): Likewise.
40966 * modules/c-strtold (Makefile.am): Likewise.
40967 * modules/calloc (Makefile.am): Likewise.
40968 * modules/canon-host (Makefile.am): Likewise.
40969 * modules/canonicalize (Makefile.am): Likewise.
40970 * modules/chdir-long (Makefile.am): Likewise.
40971 * modules/chdir-safer (Makefile.am): Likewise.
40972 * modules/check-version (Makefile.am): Likewise.
40973 * modules/chown (Makefile.am): Likewise.
40974 * modules/cloexec (Makefile.am): Likewise.
40975 * modules/close-stream (Makefile.am): Likewise.
40976 * modules/closeout (Makefile.am): Likewise.
40977 * modules/crc (Makefile.am): Likewise.
40978 * modules/csharpexec (Makefile.am): Likewise.
40979 * modules/cycle-check (Makefile.am): Likewise.
40980 * modules/des (Makefile.am): Likewise.
40981 * modules/dev-ino (Makefile.am): Likewise.
40982 * modules/dirfd (Makefile.am): Likewise.
40983 * modules/dirname (Makefile.am): Likewise.
40984 * modules/dup2 (Makefile.am): Likewise.
40985 * modules/eealloc (Makefile.am): Likewise.
40986 * modules/error (Makefile.am): Likewise.
40987 * modules/euidaccess (Makefile.am): Likewise.
40988 * modules/exclude (Makefile.am): Likewise.
40989 * modules/exitfail (Makefile.am): Likewise.
40990 * modules/fcntl-safer (Makefile.am): Likewise.
40991 * modules/fcntl (Makefile.am): Likewise.
40992 * modules/file-type (Makefile.am): Likewise.
40993 * modules/fileblocks (Makefile.am): Likewise.
40994 * modules/filemode (Makefile.am): Likewise.
40995 * modules/filenamecat (Makefile.am): Likewise.
40996 * modules/fnmatch (Makefile.am): Likewise.
40997 * modules/fopen-safer (Makefile.am): Likewise.
40998 * modules/fpending (Makefile.am): Likewise.
40999 * modules/fprintftime (Makefile.am): Likewise.
41000 * modules/free (Makefile.am): Likewise.
41001 * modules/fsusage (Makefile.am): Likewise.
41002 * modules/ftruncate (Makefile.am): Likewise.
41003 * modules/fts (Makefile.am): Likewise.
41004 * modules/gc-arcfour (Makefile.am): Likewise.
41005 * modules/gc-des (Makefile.am): Likewise.
41006 * modules/gc-hmac-md5 (Makefile.am): Likewise.
41007 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41008 * modules/gc-md4 (Makefile.am): Likewise.
41009 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41010 * modules/gc-sha1 (Makefile.am): Likewise.
41011 * modules/gc (Makefile.am): Likewise.
41012 * modules/getaddrinfo (Makefile.am): Likewise.
41013 * modules/getcwd (Makefile.am): Likewise.
41014 * modules/getdelim (Makefile.am): Likewise.
41015 * modules/getdomainname (Makefile.am): Likewise.
41016 * modules/getgroups (Makefile.am): Likewise.
41017 * modules/gethostname (Makefile.am): Likewise.
41018 * modules/gethrxtime (Makefile.am): Likewise.
41019 * modules/getline (Makefile.am): Likewise.
41020 * modules/getloadavg (Makefile.am): Likewise.
41021 * modules/getlogin_r (Makefile.am): Likewise.
41022 * modules/getndelim2 (Makefile.am): Likewise.
41023 * modules/getopt (Makefile.am): Likewise.
41024 * modules/getpagesize (Makefile.am): Likewise.
41025 * modules/getpass-gnu (Makefile.am): Likewise.
41026 * modules/getpass (Makefile.am): Likewise.
41027 * modules/getsubopt (Makefile.am): Likewise.
41028 * modules/gettime (Makefile.am): Likewise.
41029 * modules/gettimeofday (Makefile.am): Likewise.
41030 * modules/getugroups (Makefile.am): Likewise.
41031 * modules/getusershell (Makefile.am): Likewise.
41032 * modules/glob (Makefile.am): Likewise.
41033 * modules/group-member (Makefile.am): Likewise.
41034 * modules/hard-locale (Makefile.am): Likewise.
41035 * modules/hash (Makefile.am): Likewise.
41036 * modules/hmac-md5 (Makefile.am): Likewise.
41037 * modules/hmac-sha1 (Makefile.am): Likewise.
41038 * modules/human (Makefile.am): Likewise.
41039 * modules/idcache (Makefile.am): Likewise.
41040 * modules/imaxabs (Makefile.am): Likewise.
41041 * modules/imaxdiv (Makefile.am): Likewise.
41042 * modules/inet_ntop (Makefile.am): Likewise.
41043 * modules/inet_pton (Makefile.am): Likewise.
41044 * modules/intprops (Makefile.am): Likewise.
41045 * modules/inttostr (Makefile.am): Likewise.
41046 * modules/inttypes (Makefile.am): Likewise.
41047 * modules/isapipe (Makefile.am): Likewise.
41048 * modules/javaversion (Makefile.am): Likewise.
41049 * modules/lchmod (Makefile.am): Likewise.
41050 * modules/lchown (Makefile.am): Likewise.
41051 * modules/localcharset (Makefile.am): Likewise.
41052 * modules/long-options (Makefile.am): Likewise.
41053 * modules/lstat (Makefile.am): Likewise.
41054 * modules/malloc (Makefile.am): Likewise.
41055 * modules/mathl (Makefile.am): Likewise.
41056 * modules/mbchar (Makefile.am): Likewise.
41057 * modules/md2 (Makefile.am): Likewise.
41058 * modules/md4 (Makefile.am): Likewise.
41059 * modules/md5 (Makefile.am): Likewise.
41060 * modules/memcasecmp (Makefile.am): Likewise.
41061 * modules/memchr (Makefile.am): Likewise.
41062 * modules/memcmp (Makefile.am): Likewise.
41063 * modules/memcoll (Makefile.am): Likewise.
41064 * modules/memcpy (Makefile.am): Likewise.
41065 * modules/memmem (Makefile.am): Likewise.
41066 * modules/memmove (Makefile.am): Likewise.
41067 * modules/mempcpy (Makefile.am): Likewise.
41068 * modules/memrchr (Makefile.am): Likewise.
41069 * modules/memset (Makefile.am): Likewise.
41070 * modules/memxor (Makefile.am): Likewise.
41071 * modules/mkancesdirs (Makefile.am): Likewise.
41072 * modules/mkdir-p (Makefile.am): Likewise.
41073 * modules/mkdir (Makefile.am): Likewise.
41074 * modules/mkdtemp (Makefile.am): Likewise.
41075 * modules/mkstemp (Makefile.am): Likewise.
41076 * modules/mktime (Makefile.am): Likewise.
41077 * modules/modechange (Makefile.am): Likewise.
41078 * modules/mountlist (Makefile.am): Likewise.
41079 * modules/nanosleep (Makefile.am): Likewise.
41080 * modules/obstack (Makefile.am): Likewise.
41081 * modules/openat (Makefile.am): Likewise.
41082 * modules/pagealign_alloc (Makefile.am): Likewise.
41083 * modules/pathmax (Makefile.am): Likewise.
41084 * modules/physmem (Makefile.am): Likewise.
41085 * modules/poll (Makefile.am): Likewise.
41086 * modules/posixtm (Makefile.am): Likewise.
41087 * modules/posixver (Makefile.am): Likewise.
41088 * modules/putenv (Makefile.am): Likewise.
41089 * modules/quote (Makefile.am): Likewise.
41090 * modules/quotearg (Makefile.am): Likewise.
41091 * modules/raise (Makefile.am): Likewise.
41092 * modules/read-file (Makefile.am): Likewise.
41093 * modules/readline (Makefile.am): Likewise.
41094 * modules/readlink (Makefile.am): Likewise.
41095 * modules/readtokens (Makefile.am): Likewise.
41096 * modules/readutmp (Makefile.am): Likewise.
41097 * modules/realloc (Makefile.am): Likewise.
41098 * modules/regex (Makefile.am): Likewise.
41099 * modules/rename-dest-slash (Makefile.am): Likewise.
41100 * modules/rename (Makefile.am): Likewise.
41101 * modules/rijndael (Makefile.am): Likewise.
41102 * modules/rmdir (Makefile.am): Likewise.
41103 * modules/rpmatch (Makefile.am): Likewise.
41104 * modules/safe-read (Makefile.am): Likewise.
41105 * modules/safe-write (Makefile.am): Likewise.
41106 * modules/same-inode (Makefile.am): Likewise.
41107 * modules/same (Makefile.am): Likewise.
41108 * modules/save-cwd (Makefile.am): Likewise.
41109 * modules/savedir (Makefile.am): Likewise.
41110 * modules/setenv (Makefile.am): Likewise.
41111 * modules/settime (Makefile.am): Likewise.
41112 * modules/sha1 (Makefile.am): Likewise.
41113 * modules/sig2str (Makefile.am): Likewise.
41114 * modules/snprintf (Makefile.am): Likewise.
41115 * modules/stat-macros (Makefile.am): Likewise.
41116 * modules/stat-time (Makefile.am): Likewise.
41117 * modules/stdbool (Makefile.am): Likewise.
41118 * modules/stdint (Makefile.am): Likewise.
41119 * modules/stdlib-safer (Makefile.am): Likewise.
41120 * modules/stpcpy (Makefile.am): Likewise.
41121 * modules/stpncpy (Makefile.am): Likewise.
41122 * modules/strcase (Makefile.am): Likewise.
41123 * modules/strcasestr (Makefile.am): Likewise.
41124 * modules/strchrnul (Makefile.am): Likewise.
41125 * modules/strcspn (Makefile.am): Likewise.
41126 * modules/strdup (Makefile.am): Likewise.
41127 * modules/strerror (Makefile.am): Likewise.
41128 * modules/strftime (Makefile.am): Likewise.
41129 * modules/strndup (Makefile.am): Likewise.
41130 * modules/strnlen (Makefile.am): Likewise.
41131 * modules/strpbrk (Makefile.am): Likewise.
41132 * modules/strsep (Makefile.am): Likewise.
41133 * modules/strstr (Makefile.am): Likewise.
41134 * modules/strtod (Makefile.am): Likewise.
41135 * modules/strtoimax (Makefile.am): Likewise.
41136 * modules/strtok_r (Makefile.am): Likewise.
41137 * modules/strtol (Makefile.am): Likewise.
41138 * modules/strtoll (Makefile.am): Likewise.
41139 * modules/strtoul (Makefile.am): Likewise.
41140 * modules/strtoull (Makefile.am): Likewise.
41141 * modules/strtoumax (Makefile.am): Likewise.
41142 * modules/strverscmp (Makefile.am): Likewise.
41143 * modules/sys_socket (Makefile.am): Likewise.
41144 * modules/sys_stat (Makefile.am): Likewise.
41145 * modules/sysexits (Makefile.am): Likewise.
41146 * modules/time_r (Makefile.am): Likewise.
41147 * modules/timegm (Makefile.am): Likewise.
41148 * modules/timespec (Makefile.am): Likewise.
41149 * modules/tmpfile-safer (Makefile.am): Likewise.
41150 * modules/trim (Makefile.am): Likewise.
41151 * modules/unistd-safer (Makefile.am): Likewise.
41152 * modules/unlinkdir (Makefile.am): Likewise.
41153 * modules/unlocked-io (Makefile.am): Likewise.
41154 * modules/userspec (Makefile.am): Likewise.
41155 * modules/utime (Makefile.am): Likewise.
41156 * modules/utimecmp (Makefile.am): Likewise.
41157 * modules/utimens (Makefile.am): Likewise.
41158 * modules/vasnprintf (Makefile.am): Likewise.
41159 * modules/vasprintf (Makefile.am): Likewise.
41160 * modules/vsnprintf (Makefile.am): Likewise.
41161 * modules/xalloc (Makefile.am): Likewise.
41162 * modules/xgetcwd (Makefile.am): Likewise.
41163 * modules/xnanosleep (Makefile.am): Likewise.
41164 * modules/xreadlink (Makefile.am): Likewise.
41165 * modules/xstrtod (Makefile.am): Likewise.
41166 * modules/xstrtol (Makefile.am): Likewise.
41167 * modules/xstrtold (Makefile.am): Likewise.
41168 * modules/yesno (Makefile.am): Likewise.
41169 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41171 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41173 * modules/error (Makefile.am): Distribute files through
41174 EXTRA_DIST, not lib_SOURCES.
41176 2006-10-12 Eric Blake <ebb9@byu.net>
41178 * modules/error (Makefile.am): Distribute files in /lib.
41179 * modules/obstack (Makefile.am): Likewise.
41181 2006-10-12 Bruno Haible <bruno@clisp.org>
41183 * modules/acl (Makefile.am): Distribute all files in lib/ through
41185 * modules/arcfour (Makefile.am): Likewise.
41186 * modules/arctwo (Makefile.am): Likewise.
41187 * modules/argmatch (Makefile.am): Likewise.
41188 * modules/argz (Makefile.am): Likewise.
41189 * modules/atexit (Makefile.am): Likewise.
41190 * modules/backupfile (Makefile.am): Likewise.
41191 * modules/c-strtod (Makefile.am): Likewise.
41192 * modules/c-strtold (Makefile.am): Likewise.
41193 * modules/calloc (Makefile.am): Likewise.
41194 * modules/canon-host (Makefile.am): Likewise.
41195 * modules/canonicalize (Makefile.am): Likewise.
41196 * modules/chdir-long (Makefile.am): Likewise.
41197 * modules/chdir-safer (Makefile.am): Likewise.
41198 * modules/check-version (Makefile.am): Likewise.
41199 * modules/chown (Makefile.am): Likewise.
41200 * modules/cloexec (Makefile.am): Likewise.
41201 * modules/close-stream (Makefile.am): Likewise.
41202 * modules/closeout (Makefile.am): Likewise.
41203 * modules/crc (Makefile.am): Likewise.
41204 * modules/cycle-check (Makefile.am): Likewise.
41205 * modules/des (Makefile.am): Likewise.
41206 * modules/dirfd (Makefile.am): Likewise.
41207 * modules/dirname (Makefile.am): Likewise.
41208 * modules/dup2 (Makefile.am): Likewise.
41209 * modules/euidaccess (Makefile.am): Likewise.
41210 * modules/exclude (Makefile.am): Likewise.
41211 * modules/exitfail (Makefile.am): Likewise.
41212 * modules/fcntl-safer (Makefile.am): Likewise.
41213 * modules/file-type (Makefile.am): Likewise.
41214 * modules/fileblocks (Makefile.am): Likewise.
41215 * modules/filemode (Makefile.am): Likewise.
41216 * modules/filenamecat (Makefile.am): Likewise.
41217 * modules/fnmatch (Makefile.am): Likewise.
41218 * modules/fopen-safer (Makefile.am): Likewise.
41219 * modules/fpending (Makefile.am): Likewise.
41220 * modules/fprintftime (Makefile.am): Likewise.
41221 * modules/free (Makefile.am): Likewise.
41222 * modules/fsusage (Makefile.am): Likewise.
41223 * modules/ftruncate (Makefile.am): Likewise.
41224 * modules/fts (Makefile.am): Likewise.
41225 * modules/gc (Makefile.am): Likewise.
41226 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41227 * modules/getaddrinfo (Makefile.am): Likewise.
41228 * modules/getcwd (Makefile.am): Likewise.
41229 * modules/getdelim (Makefile.am): Likewise.
41230 * modules/getdomainname (Makefile.am): Likewise.
41231 * modules/getgroups (Makefile.am): Likewise.
41232 * modules/gethostname (Makefile.am): Likewise.
41233 * modules/gethrxtime (Makefile.am): Likewise.
41234 * modules/getline (Makefile.am): Likewise.
41235 * modules/getloadavg (Makefile.am): Likewise.
41236 * modules/getlogin_r (Makefile.am): Likewise.
41237 * modules/getopt (Makefile.am): Likewise.
41238 * modules/getpass (Makefile.am): Likewise.
41239 * modules/getpass-gnu (Makefile.am): Likewise.
41240 * modules/getsubopt (Makefile.am): Likewise.
41241 * modules/gettime (Makefile.am): Likewise.
41242 * modules/gettimeofday (Makefile.am): Likewise.
41243 * modules/getugroups (Makefile.am): Likewise.
41244 * modules/getusershell (Makefile.am): Likewise.
41245 * modules/glob (Makefile.am): Likewise.
41246 * modules/group-member (Makefile.am): Likewise.
41247 * modules/hard-locale (Makefile.am): Likewise.
41248 * modules/hash (Makefile.am): Likewise.
41249 * modules/hmac-md5 (Makefile.am): Likewise.
41250 * modules/hmac-sha1 (Makefile.am): Likewise.
41251 * modules/human (Makefile.am): Likewise.
41252 * modules/idcache (Makefile.am): Likewise.
41253 * modules/imaxabs (Makefile.am): Likewise.
41254 * modules/imaxdiv (Makefile.am): Likewise.
41255 * modules/inet_ntop (Makefile.am): Likewise.
41256 * modules/inet_pton (Makefile.am): Likewise.
41257 * modules/inttostr (Makefile.am): Likewise.
41258 * modules/isapipe (Makefile.am): Likewise.
41259 * modules/lchown (Makefile.am): Likewise.
41260 * modules/long-options (Makefile.am): Likewise.
41261 * modules/lstat (Makefile.am): Likewise.
41262 * modules/malloc (Makefile.am): Likewise.
41263 * modules/mathl (Makefile.am): Likewise.
41264 * modules/mbchar (Makefile.am): Likewise.
41265 * modules/md2 (Makefile.am): Likewise.
41266 * modules/md4 (Makefile.am): Likewise.
41267 * modules/md5 (Makefile.am): Likewise.
41268 * modules/memcasecmp (Makefile.am): Likewise.
41269 * modules/memchr (Makefile.am): Likewise.
41270 * modules/memcmp (Makefile.am): Likewise.
41271 * modules/memcoll (Makefile.am): Likewise.
41272 * modules/memcpy (Makefile.am): Likewise.
41273 * modules/memmem (Makefile.am): Likewise.
41274 * modules/memmove (Makefile.am): Likewise.
41275 * modules/mempcpy (Makefile.am): Likewise.
41276 * modules/memrchr (Makefile.am): Likewise.
41277 * modules/memset (Makefile.am): Likewise.
41278 * modules/memxor (Makefile.am): Likewise.
41279 * modules/mkancesdirs (Makefile.am): Likewise.
41280 * modules/mkdir (Makefile.am): Likewise.
41281 * modules/mkdir-p (Makefile.am): Likewise.
41282 * modules/mkdtemp (Makefile.am): Likewise.
41283 * modules/mkstemp (Makefile.am): Likewise.
41284 * modules/mktime (Makefile.am): Likewise.
41285 * modules/modechange (Makefile.am): Likewise.
41286 * modules/mountlist (Makefile.am): Likewise.
41287 * modules/nanosleep (Makefile.am): Likewise.
41288 * modules/openat (Makefile.am): Likewise.
41289 * modules/pagealign_alloc (Makefile.am): Likewise.
41290 * modules/physmem (Makefile.am): Likewise.
41291 * modules/poll (Makefile.am): Likewise.
41292 * modules/posixtm (Makefile.am): Likewise.
41293 * modules/posixver (Makefile.am): Likewise.
41294 * modules/putenv (Makefile.am): Likewise.
41295 * modules/quote (Makefile.am): Likewise.
41296 * modules/quotearg (Makefile.am): Likewise.
41297 * modules/raise (Makefile.am): Likewise.
41298 * modules/read-file (Makefile.am): Likewise.
41299 * modules/readline (Makefile.am): Likewise.
41300 * modules/readlink (Makefile.am): Likewise.
41301 * modules/readtokens (Makefile.am): Likewise.
41302 * modules/readutmp (Makefile.am): Likewise.
41303 * modules/realloc (Makefile.am): Likewise.
41304 * modules/regex (Makefile.am): Likewise.
41305 * modules/rename (Makefile.am): Likewise.
41306 * modules/rename-dest-slash (Makefile.am): Likewise.
41307 * modules/rijndael (Makefile.am): Likewise.
41308 * modules/rmdir (Makefile.am): Likewise.
41309 * modules/rpmatch (Makefile.am): Likewise.
41310 * modules/safe-read (Makefile.am): Likewise.
41311 * modules/safe-write (Makefile.am): Likewise.
41312 * modules/same (Makefile.am): Likewise.
41313 * modules/save-cwd (Makefile.am): Likewise.
41314 * modules/savedir (Makefile.am): Likewise.
41315 * modules/setenv (Makefile.am): Likewise.
41316 * modules/settime (Makefile.am): Likewise.
41317 * modules/sha1 (Makefile.am): Likewise.
41318 * modules/sig2str (Makefile.am): Likewise.
41319 * modules/snprintf (Makefile.am): Likewise.
41320 * modules/stdlib-safer (Makefile.am): Likewise.
41321 * modules/stpcpy (Makefile.am): Likewise.
41322 * modules/stpncpy (Makefile.am): Likewise.
41323 * modules/strcase (Makefile.am): Likewise.
41324 * modules/strcasestr (Makefile.am): Likewise.
41325 * modules/strchrnul (Makefile.am): Likewise.
41326 * modules/strcspn (Makefile.am): Likewise.
41327 * modules/strdup (Makefile.am): Likewise.
41328 * modules/strerror (Makefile.am): Likewise.
41329 * modules/strftime (Makefile.am): Likewise.
41330 * modules/strndup (Makefile.am): Likewise.
41331 * modules/strnlen (Makefile.am): Likewise.
41332 * modules/strpbrk (Makefile.am): Likewise.
41333 * modules/strsep (Makefile.am): Likewise.
41334 * modules/strstr (Makefile.am): Likewise.
41335 * modules/strtod (Makefile.am): Likewise.
41336 * modules/strtoimax (Makefile.am): Likewise.
41337 * modules/strtok_r (Makefile.am): Likewise.
41338 * modules/strtol (Makefile.am): Likewise.
41339 * modules/strtoll (Makefile.am): Likewise.
41340 * modules/strtoul (Makefile.am): Likewise.
41341 * modules/strtoull (Makefile.am): Likewise.
41342 * modules/strtoumax (Makefile.am): Likewise.
41343 * modules/strverscmp (Makefile.am): Likewise.
41344 * modules/time_r (Makefile.am): Likewise.
41345 * modules/timegm (Makefile.am): Likewise.
41346 * modules/tmpfile-safer (Makefile.am): Likewise.
41347 * modules/unistd-safer (Makefile.am): Likewise.
41348 * modules/unlinkdir (Makefile.am): Likewise.
41349 * modules/userspec (Makefile.am): Likewise.
41350 * modules/utime (Makefile.am): Likewise.
41351 * modules/utimecmp (Makefile.am): Likewise.
41352 * modules/utimens (Makefile.am): Likewise.
41353 * modules/vasnprintf (Makefile.am): Likewise.
41354 * modules/vasprintf (Makefile.am): Likewise.
41355 * modules/vsnprintf (Makefile.am): Likewise.
41356 * modules/xalloc (Makefile.am): Likewise.
41357 * modules/xgetcwd (Makefile.am): Likewise.
41358 * modules/xnanosleep (Makefile.am): Likewise.
41359 * modules/xreadlink (Makefile.am): Likewise.
41360 * modules/xstrtod (Makefile.am): Likewise.
41361 * modules/xstrtol (Makefile.am): Likewise.
41362 * modules/xstrtold (Makefile.am): Likewise.
41363 * modules/yesno (Makefile.am): Likewise.
41365 2006-10-12 Jim Meyering <jim@meyering.net>
41367 * m4/getloadavg.m4: Revert the change below.
41369 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41370 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41371 fail with a symlink, which is what coreutils' ./bootstrap now
41372 creates by default.
41374 2006-10-12 Bruno Haible <bruno@clisp.org>
41376 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41378 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41379 MSVC and mingw explicitly.
41381 2006-10-11 Simon Josefsson <jas@extundo.com>
41382 Bruno Haible <bruno@clisp.org>
41384 Add support for multiple gnulib-tool invocations in the scope of a
41385 single configure.ac file.
41386 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41387 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41388 with the same contents as the _LIBADD variable.
41389 (func_emit_initmacro_start, func_emit_initmacro_end,
41390 func_emit_initmacro_done): New functions.
41391 (func_import, func_create_testdir): Invoke them. Allow the identifiers
41392 gl_LIBOBJS and gl_LTLIBOBJS.
41394 2006-10-11 Bruno Haible <bruno@clisp.org>
41396 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41397 (func_create_testdir): Don't create po/Makefile.am, don't invoke
41398 autoreconf. Instead, invoke autopoint explicitly but move back the
41399 *.m4 files from gnulib.
41401 2006-10-11 Bruno Haible <bruno@clisp.org>
41403 * gnulib-tool (func_usage): Make module names after --create-testdir
41405 (func_create_testdir): If no module was specified, use nearly all
41408 2006-10-12 Jim Meyering <jim@meyering.net>
41410 Big performance improvement for fts-based tools that use FTS_NOSTAT.
41411 Avoid spurious inode-mismatch problems on non-POSIX file systems.
41412 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41413 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41414 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41415 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41416 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41417 (fts_set_stat_required): New function.
41418 (fts_open): Defer the calls to fts_stat, if possible or requested.
41419 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41420 into fts_stat itself.
41421 (fts_read): Perform any required (deferred) fts_stat call.
41422 (fts_build): Likewise, for the directory we're about to open and read.
41423 In the readdir loop, carefully decide whether each entry will require
41424 an eventual call to fts_stat, using dirent.d_type info if available.
41425 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41426 a command line argument into this function. Update all callers.
41427 Map a return value of FTS_DOT to FTS_D for a command line argument.
41428 * modules/fts (Depends-on): Add d-type. Alphabetize.
41429 Thanks to Miklos Szeredi for his tenacity and for the initial
41430 bug report about "find" failing on a FUSE-based file system.
41432 * lib/fts.c (fts_open): Use consistent indentation.
41434 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41436 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41437 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41438 reported by Jim Meyering. All uses of cache variables renamed
41439 to match Autoconf's.
41440 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41443 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41444 Fix misspelling in diagnostic.
41446 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41448 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41449 defined. Problem reported by Matthew Woehlke.
41451 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41452 Add support for Tandem NonStop R series.
41453 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41456 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41457 (has_trailing_slash): Omit size arg; all callers changed.
41458 Omit 'inline', since it doesn't help performance and we'd
41459 need to configure it.
41460 Don't count //, ///, etc. as having a trailing slash.
41461 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41462 (rpl_rename_dest_slash): On failure, use rename's errno rather
41463 than (in some cases) an incorrect or junk errno.
41464 Simplify code by removing need to compute length; this does
41465 cause it to make two passes instead of one over the file name,
41468 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41469 change, since Autoconf's version may no longer be appropriate now
41470 that we are using CVS Autoconf's version. Add support for Tandem.
41472 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41473 Bruno Haible <bruno@clisp.org>
41475 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41476 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41477 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41478 gl_AC_TYPE_LONG_LONG.
41480 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41481 instead of HAVE_LONG_LONG.
41482 * lib/printf-args.c (printf_fetchargs): Likewise.
41483 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41484 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41485 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41486 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41487 gl_AC_TYPE_LONG_LONG.
41489 2006-10-11 Bruno Haible <bruno@clisp.org>
41491 * m4/longlong.m4: Add comments.
41492 * m4/ulonglong.m4: Likewise.
41494 2006-10-10 Bruno Haible <bruno@clisp.org>
41496 Make it possible to #define stpcpy, strdup to aliases.
41497 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41498 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41500 2006-10-10 Bruno Haible <bruno@clisp.org>
41502 Make it possible to #define gcd to an alias.
41503 * lib/gcd.c: Include config.h.
41505 2006-10-10 Bruno Haible <bruno@clisp.org>
41507 Make it possible to #define c_isascii to an alias.
41508 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41509 defined. Undefine the macros before defining them, to avoid gcc
41511 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41512 define NO_C_CTYPE_MACROS early.
41514 2006-10-10 Bruno Haible <bruno@clisp.org>
41516 Make it possible to #define set_program_name to an alias.
41517 * lib/progname.c: Don't undefine set_program_name; instead, undefine
41518 ENABLE_RELOCATABLE early.
41520 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
41522 Port to Tandem NSK OSS, which has 64-bit signed int but at most
41523 32-bit unsigned int. Problem reported by Matthew Woehlke in:
41524 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41525 More generally, don't assume that 64-bit signed int is available
41526 if unsigned int is, and vice versa.
41527 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41528 unsigned symbols, not on their signed counterparts.
41529 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41530 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41531 (UINT64_C, UINTMAX_C):
41533 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41534 unsigned counterparts.
41535 (Have_long_long, Unsigned): New macros.
41536 (Int): Renamed from INT.
41537 (strtoimax): Use the new macros.
41538 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41539 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41540 * modules/inttypes (inttypes.h): Substitute
41541 HAVE_UNSIGNED_LONG_LONG_INT.
41542 * modules/stdint (stdint.h): Likewise.
41543 (Files): Add m4/ulonglong.m4.
41545 2006-10-10 Bruno Haible <bruno@clisp.org>
41547 Fix a gcc -Wshadow warning.
41548 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41550 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41551 gl_linked_indexof_from_to): Likewise.
41552 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41554 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41556 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41557 Reported by Eric Blake.
41559 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
41561 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41562 for NetBSD. Problem reported by Bruno Haible.
41564 2006-10-09 Jim Meyering <jim@meyering.net>
41566 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41567 Patch from Bruno Haible.
41569 2006-10-09 Jim Meyering <jim@meyering.net>
41571 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41572 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41573 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41575 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
41577 Don't include <config.h> twice; this doesn't work in some cases,
41578 e.g., when config.h has "#define intmax_t long long int" and
41579 we include <config.h>, <inttypes.h>, <config.h> in that order.
41580 Problem reported by Matthew Woehlke in:
41581 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41582 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41583 * lib/fts-cycle.c: Don't include config.h.
41584 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41585 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41586 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
41587 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41589 * lib/xstrtoumax.c: Likewise.
41590 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41591 __strtol and the like, so that this module is more like its siblings.
41592 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41593 Remove; no longer needed now that we assume gnulib inttypes.h.
41595 2006-10-08 Bruno Haible <bruno@clisp.org>
41597 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41600 2006-10-07 Jim Meyering <jim@meyering.net>
41602 * modules/inttypes (inttypes.h): Revert what seems to have been
41603 an inadvertent part of today's change: use "|", not "/" in the
41604 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41606 2006-10-07 Bruno Haible <bruno@clisp.org>
41608 * modules/sublist: New file.
41610 2006-10-07 Bruno Haible <bruno@clisp.org>
41612 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41613 * modules/argz (argz.h): Likewise.
41614 * modules/arpa_inet (arpa/inet.h): Likewise.
41615 * modules/byteswap (byteswap.h): Likewise.
41616 * modules/configmake (configmake.h): Likewise.
41617 * modules/fcntl (fcntl.h): Likewise.
41618 * modules/fnmatch (fnmatch.h): Likewise.
41619 * modules/getopt (getopt.h): Likewise.
41620 * modules/glob (glob.h): Likewise.
41621 * modules/inttypes (inttypes.h): Likewise.
41622 * modules/netinet_in (netinet/in.h): Likewise.
41623 * modules/poll (poll.h): Likewise.
41624 * modules/stdbool (stdbool.h): Likewise.
41625 * modules/stdint (stdint.h): Likewise.
41626 * modules/sys_select (sys/select.h): Likewise.
41627 * modules/sys_socket (sys/socket.h): Likewise.
41628 * modules/sys_stat (sys/stat.h): Likewise.
41629 * modules/sysexits (sysexits.h): Likewise.
41630 * modules/unistd (unistd.h): Likewise.
41631 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41632 Add a "DO NOT EDIT" comment to the generated file.
41633 (func_import): Likewise for gnulib-comp.m4.
41635 2006-10-07 Bruno Haible <bruno@clisp.org>
41637 * lib/gl_sublist.h: New file.
41638 * lib/gl_sublist.c: New file.
41640 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
41642 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41643 name (relative to the original working directory) and the file
41644 name component (relative to the temporary working directory). All
41646 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41647 * lib/mkdir-p.c (make_dir_parents): Likewise.
41648 * lib/mkdir-p.h (make_dir_parents): Likewise.
41650 2006-10-06 Eric Blake <ebb9@byu.net>
41652 Define several macros for use by the clean-temp module.
41653 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41654 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41655 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41657 * lib/clean-temp.h (close_stream_temp): New declaration.
41658 * lib/clean-temp.c (includes): Pull in headers according to what
41659 other modules are in use.
41660 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41662 2006-10-06 Bruno Haible <bruno@clisp.org>
41664 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41665 instead of fopen, fwriteerror.
41667 2006-10-06 Bruno Haible <bruno@clisp.org>
41669 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41670 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41672 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41673 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41674 Return an error indicator.
41675 Suggested by Eric Blake.
41677 2006-10-06 Bruno Haible <bruno@clisp.org>
41679 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41680 Reported by Eric Blake.
41682 2006-10-06 Bruno Haible <bruno@clisp.org>
41684 * modules/closeout (Description): Mention stderr too.
41686 2006-10-06 Bruno Haible <bruno@clisp.org>
41687 and Paul Eggert <eggert@cs.ucla.edu>
41689 * lib/closeout.c (close_stdout): Also close stderr.
41690 * lib/closeout.h: Update comment.
41692 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
41694 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41695 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41696 * lib/dirchownmod.c: Include lchown.h.
41697 * lib/lchown.c: Don't include files that lchown.h now includes.
41698 Don't declare chown, since lchown.h now does that.
41699 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41700 (lchown): Define to rpl_chown if lchown is declared but
41701 does not exist. Declare using a prototype if lchown is not
41702 declared. Add a copyright notice.
41703 * lib/mkstemp.h: Include <unistd.h>.
41704 * lib/openat.c: Include lchown.h.
41706 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41707 we now test for that separately.
41708 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41709 rather than O_NOFOLLOW, when testing whether it's possible to
41710 avoid a race condition reliably.
41711 * lib/savewd.c (savewd_chdir): Likewise.
41713 Remove macros that are no longer needed now that stdint.h is
41715 * lib/fsusage.c (UINTMAX_MAX): Remove.
41716 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41717 * lib/utimecmp.c (SIZE_MAX): Remove.
41719 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41721 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41722 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
41725 2006-10-05 Bruno Haible <bruno@clisp.org>
41727 * lib/gl_list.h (gl_sortedlist_search_from_to,
41728 gl_sortedlist_indexof_from_to): New declarations.
41729 (gl_list_implementation): New fields sortedlist_search_from_to,
41730 sortedlist_indexof_from_to.
41731 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41733 * lib/gl_list.c (gl_sortedlist_search_from_to,
41734 gl_sortedlist_indexof_from_to): New functions.
41735 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41737 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41738 (gl_array_sortedlist_search_from_to): New function.
41739 (gl_array_list_implementation): Update.
41740 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41742 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41743 (gl_carray_sortedlist_search_from_to): New function.
41744 (gl_carray_list_implementation): Update.
41745 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41746 gl_linked_sortedlist_indexof_from_to): New functions.
41747 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41748 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41749 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41750 gl_tree_sortedlist_indexof_from_to): New functions.
41751 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41752 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41754 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41755 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41758 2006-10-05 Bruno Haible <bruno@clisp.org>
41760 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41761 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41762 (struct gl_list_implementation): Add fields search_from_to,
41763 indexof_from_to. Remove fields search, indexof.
41764 (gl_list_search): Use the search_from_to method.
41765 (gl_list_search_from, gl_list_search_from_to): New functions.
41766 (gl_list_indexof): Use the indexof_from_to method.
41767 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41768 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41769 (gl_list_search_from, gl_list_search_from_to): New functions.
41770 (gl_list_indexof): Use the indexof_from_to method.
41771 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41772 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41773 gl_array_indexof. Add start_index, end_index arguments.
41774 (gl_array_search_from_to): Renamed from gl_array_search. Add
41775 start_index, end_index arguments.
41776 (gl_array_remove, gl_array_list_implementation): Update.
41777 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41778 gl_carray_indexof. Add start_index, end_index arguments.
41779 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41780 start_index, end_index arguments.
41781 (gl_carray_remove, gl_carray_list_implementation): Update.
41782 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41783 gl_linked_search. Add start_index, end_index arguments.
41784 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41785 start_index, end_index arguments.
41786 (gl_linked_remove): Update.
41787 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41788 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41789 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41791 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41792 gl_tree_search. Add start_index, end_index arguments.
41793 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41794 start_index, end_index arguments.
41795 (gl_tree_remove): Update.
41796 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41797 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41798 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41800 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41801 gl_tree_search. Add start_index, end_index arguments.
41802 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41803 start_index, end_index arguments.
41804 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41806 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41808 2006-10-05 Bruno Haible <bruno@clisp.org>
41810 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41812 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41813 fwriteerror_temp): New declarations.
41814 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41815 (descriptors): New variable.
41816 (cleanup): First, close the descriptors.
41817 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41818 fclose_temp, fwriteerror_temp): New functions.
41820 2006-10-04 Jim Meyering <jim@meyering.net>
41822 * lib/fts.c (fts_open): Tiny comment change.
41824 2006-10-04 Bruno Haible <bruno@clisp.org>
41826 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41827 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41829 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41830 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41831 gl_LOCK_EARLY_BODY.
41832 (gl_LOCK): Require gl_LOCK_BODY.
41834 2006-10-04 Bruno Haible <bruno@clisp.org>
41836 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41837 (gl_oset_search_atleast): New declaration.
41838 (struct gl_oset_implementation): Add field 'search_atleast'.
41839 (gl_oset_search_atleast): New inline function.
41840 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41841 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41842 (gl_array_oset_implementation): Update.
41843 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41844 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41845 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41847 2006-10-04 Bruno Haible <bruno@clisp.org>
41849 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41851 2006-10-03 Bruno Haible <bruno@clisp.org>
41853 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41854 from gl_avltreehash_list_implementation.
41856 2006-10-03 Bruno Haible <bruno@clisp.org>
41858 * lib/gl_oset.c (gl_oset_add): Fix return type.
41860 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
41862 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41864 2006-10-02 Eric Blake <ebb9@byu.net>
41866 * modules/strnlen (Depends-on): Add extensions.
41868 2006-10-02 Eric Blake <ebb9@byu.net>
41870 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41871 definition in 2.60+.
41873 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
41875 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41878 2006-10-02 Bruno Haible <bruno@clisp.org>
41880 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41881 to the AUTOMAKE_OPTIONS.
41882 Reported by Jim Meyering.
41884 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
41886 Work around bug in Solaris 10 /proc file system:
41887 /proc/self/fd/NNN/.. isn't the parent directory of
41888 the directory whose file descriptor is NNN. This needs to
41889 be worked around at run time, not compile time, since a
41890 program might be built on Solaris 8, where things work, and
41892 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
41893 to use the following interface instead:
41894 (OPENAT_BUFFER_SIZE): New macro.
41895 (openat_proc_name): New function.
41896 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41897 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41899 * lib/openat-proc.c: New file.
41900 * modules/openat (Files): Add lib/openat-proc.c.
41901 (Depends-on): Add same-inode, stdbool.
41902 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41904 2006-09-29 Bruno Haible <bruno@clisp.org>
41906 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41907 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41908 argument. Set stdout_closed before testing for ferror, not after.
41909 (fwriteerror, fwriteerror_no_ebadf): New functions.
41911 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41913 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41915 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
41917 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41918 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41920 2006-09-28 Jim Meyering <jim@meyering.net>
41922 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41923 Include <unistd.h>.
41925 2006-09-28 Bruno Haible <bruno@clisp.org>
41927 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41928 * modules/linkedhash-list (Depends-on): Likewise.
41929 * modules/rbtreehash-list (Depends-on): Likewise.
41931 2006-09-28 Bruno Haible <bruno@clisp.org>
41933 * lib/strndup.h: Simplify the redefinition of strndup.
41934 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41935 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41937 2006-09-28 Bruno Haible <bruno@clisp.org>
41939 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41940 * lib/gl_linkedhash_list.c: Likewise.
41941 * lib/gl_rbtreehash_list.c: Likewise.
41943 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
41945 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41948 * lib/__fpending.h: Don't include <stdio_ext.h> unless
41949 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
41950 it causes <stdio_ext.h> to cause a compile-time error.
41951 Problem reported by Nelson H. F. Beebe.
41952 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41953 of HAVE_DECL___PENDING.
41955 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41956 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41959 2006-09-27 Jim Meyering <jim@meyering.net>
41961 This file could end up with a definition for a function
41962 named __strndup, rather than rpl_strndup on a system with
41963 incomplete weak_alias support.
41964 * lib/strndup.c (strndup): Rename from __strndup.
41965 Remove #defines that used to map __strndup to strndup.
41966 Don't use K&R prototypes.
41967 Remove LIBC-related code, since this file is not sync'd with glibc.
41968 * lib/strndup.h: Revamp, accordingly.
41969 * m4/strndup.m4: Modernize.
41971 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
41973 * modules/savewd (Depends-on): Add 'raise'.
41974 * lib/savewd.c: Include <signal.h>, for 'raise'.
41976 2006-09-26 Jim Meyering <jim@meyering.net>
41978 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41979 when we detect Darwin 8.7.0's acl_get_file bug.
41980 Rearrange to perform the new (below) run-test while $LIBS
41981 contains any acl-related library. Set USE_ACL at the end.
41982 (gl_ACL_GET_FILE): New function.
41984 2006-09-26 Eric Blake <ebb9@byu.net>
41986 * lib/verror.c: Include <config.h> unconditionally.
41988 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
41990 * modules/clock-time (Maintainer): Add self.
41991 * modules/getlogin_r (Depends-on): Add extensions.
41993 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41995 * modules/clock-time: New module.
41996 * modules/nanosleep (Depends-on): Add clock-time.
41997 * modules/gethrxtime (Depends-on): Likewise.
41998 * modules/gettime (Depends-on): Likewise.
41999 * modules/settime (Depends-on): Likewise.
42001 * modules/fts-lgpl: Depend on openat.
42002 * modules/mkancesdirs: Depend on savewd.
42003 * modules/mkdir-p: Likewise.
42005 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42007 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42009 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42010 `gl_have_arbitrary_file_name_length_limit' to
42011 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42012 actually works between configure runs.
42014 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42015 Bruno Haible <bruno@clisp.org>
42017 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42019 2006-09-25 Jim Meyering <jim@meyering.net>
42021 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42022 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42024 2006-09-25 Eric Blake <ebb9@byu.net>
42026 * gnulib-tool (func_import, func_create_testdir): Fix typos in
42027 exec's in 2006-09-18 patch when shuffling fds.
42029 2006-09-25 Bruno Haible <bruno@clisp.org>
42031 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42032 Reported by Jim Meyering.
42034 2006-09-24 Jim Meyering <jim@meyering.net>
42036 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42037 compare a pointer against a literal "0". That caused failures with
42038 at least HP-UX's hpcc.
42040 2006-09-22 Simon Josefsson <jas@extundo.com>
42044 * modules/gc-hmac-sha1:
42045 * modules/gc-hmac-md5:
42047 * modules/gc-arcfour: Distribute more files.
42049 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42051 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42052 (gl_linked_iterator_from_to): Initialize struct completely.
42053 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42054 (gl_tree_iterator_from_to): Likewise
42055 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42056 * lib/gl_array_list.c [lint] (gl_array_iterator)
42057 (gl_array_iterator_from_to): Likewise.
42058 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42059 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42060 (gl_carray_iterator_from_to): Likewise.
42062 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42063 * lib/md4.c (md4_process_block): Remove unused variable.
42064 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42065 parentheses for clarity.
42067 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42069 * modules/bison-i18n (Depends-on): Add gettext.
42071 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42073 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42074 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42075 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42076 also add missing comma that caused broken test.
42077 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42078 stdlib.h, for `abort'.
42079 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42081 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42082 include unistd.h if present, for `rmdir'.
42083 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42085 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42086 in the process include standard headers for prototypes.
42087 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42088 gets declared on GNU/Linux.
42089 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42090 unistd.h, for `rmdir'.
42091 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42093 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42095 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42097 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42099 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42101 * gnulib-tool (func_version): Create output all at once. This
42102 may help avoid triggering unnecessary SIGPIPEs, and at any
42103 rate it doesn't hurt.
42105 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42106 Bruno Haible <bruno@clisp.org>
42108 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42109 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42110 * m4/signed.m4 (bh_C_SIGNED): Likewise.
42112 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42113 (gl_FUNC_VASPRINTF): Invoke it.
42115 2006-09-22 Bruno Haible <bruno@clisp.org>
42117 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42118 getloadavg.c as first argument.
42120 2006-09-22 Bruno Haible <bruno@clisp.org>
42122 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42123 at the beginning of the gl_INIT macro.
42124 * modules/getloadavg (configure.ac): Pass $gl_source_base to
42127 2006-09-22 Bruno Haible <bruno@clisp.org>
42129 * gnulib-tool (func_create_megatestdir): Don't include the config-h
42131 Suggested by Ralf Wildenhues.
42133 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
42135 Import this patch from libc:
42137 2006-09-06 Jakub Jelinek <jakub@redhat.com>
42139 * lib/regex_internal.c (re_string_reconstruct): Handle
42140 offset < pstr->valid_raw_len && pstr->offsets_needed case.
42141 Ensure no bytes read before raw_mbs array. Pass a saved copy of
42142 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42143 re_string_context_at.
42145 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42147 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42148 gl_REGEX now does it for us.
42149 (gl_REGEX): Add test taken from
42150 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42152 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42153 Check that large offsets work. Modernize Autoconf usages.
42154 Prefer "yes" to mean a good thing rather than a bad.
42155 Don't put "#define mkstemp" in config.h, as this might interfere
42156 with standard system headers that "#define mkstemp mkstemp64".
42158 * modules/mkstemp (Depends-on): Add extensions, so that
42159 mkstemp is visible on some platforms.
42160 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42161 (Include): Change to "mkstemp.h" from <stdlib.h>.
42162 (Files): Add mkstemp.h.
42164 * lib/mkstemp.h: New file, since some standard headers
42166 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42167 Include "mkstemp.h".
42168 Make the _LIBC code resemble glibc original more,
42169 e.g., use K&R style.
42170 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42171 (mkstemp): Remove, since mkstemp.h does this for us.
42172 * lib/stdlib--.h: Include mkstemp.h.
42174 Import this patch from libc:
42176 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42178 * lib/tempname.c (__gen_tempname): Change attempts_min
42179 into a macro. Use preprocessor to decide how to initialize
42180 attempts [Coverity CID 67].
42182 2006-09-20 Bruno Haible <bruno@clisp.org>
42184 * lib/mkdtemp.c: Import from libc.
42185 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42186 * sysdeps/posix/tempname.c (__gen_tempname): Change
42187 attempts_min into a macro. Use preprocessor to decide how to
42188 initialize attempts [Coverity CID 67].
42189 2001-11-27 Paul Eggert <eggert@twinsun.com>
42190 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42191 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42193 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42195 * gnulib-tool (func_exit): New function, to allow to pass the
42196 exit status portably through the trap. Use everywhere.
42197 (--help, --version): Signal a write error.
42198 (trap): catch SIGPIPE, for write errors.
42199 Exit at the end of the trap, with the correct exit status.
42201 2006-09-19 Karl Berry <karl@gnu.org>
42203 * doc/gnulib.texi: note about the license texinfo files.
42205 2006-09-19 Eric Blake <ebb9@byu.net>
42207 * gnulib-tool: Avoid space-tab.
42209 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42211 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42212 that prevented coreutils 6.1 from building. Problem reported
42213 by Petter Reinholdtsen.
42215 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42217 * gnulib-tool (avoidlist): Fix typo that broke options like
42218 --avoid=lock that are used by coreutils bootstrap.
42220 2006-09-18 Mark D. Baushke <mdb@gnu.org>
42222 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42223 more systematically.
42225 2006-09-18 Jim Meyering <jim@meyering.net>
42227 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42229 2006-09-18 Bruno Haible <bruno@clisp.org>
42231 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42233 2006-09-18 Bruno Haible <bruno@clisp.org>
42235 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42236 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42237 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42238 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42239 * m4/gettext.m4: Require autoconf >= 2.52.
42240 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42241 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42242 of gl_cv_header_inttypes_h.
42244 2006-09-18 Bruno Haible <bruno@clisp.org>
42246 * lib/javaversion.c: Include configmake.h.
42248 2006-09-18 Bruno Haible <bruno@clisp.org>
42250 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42251 avoid that the while loops be executed in a subshell.
42253 2006-09-18 Bruno Haible <bruno@clisp.org>
42255 * MODULES.html.sh (func_module): Break long lines.
42256 Suggested by Bruce Korb <bkorb@gnu.org>.
42258 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42260 Speed up by a factor of 1.12.
42261 * gnulib-tool (nl): New variable.
42262 (func_import): Rewrite include directive extraction to only read each
42265 2006-09-17 Bruno Haible <bruno@clisp.org>
42267 * modules/javaversion (Makefile.am): Remove DEFS setting.
42268 (Depends-on): Add configmake, for PKGDATADIR definition.
42270 2006-09-17 Bruno Haible <bruno@clisp.org>
42272 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42274 2006-09-17 Bruno Haible <bruno@clisp.org>
42276 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42277 (func_modules_transitive_closure, func_modules_add_dummy,
42278 func_modules_to_filelist, func_import, func_create_testdir,
42279 func_create_megatestdir, ...): Use it wherever possible.
42280 Suggested by Ralf Wildenhues.
42282 2006-09-16 Karl Berry <karl@gnu.org>
42284 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42285 to avoid sectioning errors.
42286 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42287 [ifinfo]: blank line after @center-ed titles.
42288 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42289 Spell FSF address consistently with others.
42290 (These changes approved by rms.)
42292 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42294 Speed up by a factor of 1.61.
42295 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42296 already checked module names again.
42298 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42300 Speed up by a factor of 1.13.
42301 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42302 for new_files, and the input to func_add_or_update.
42304 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42306 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42307 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42309 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42311 * modules/mkancesdirs (Depends-on): Add fcntl.
42312 * modules/savewd: New file.
42313 * MODULES.html.sh (File system functions): Add savewd.
42315 * modules/configmake (Makefile.am): Add support for the
42316 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42318 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42320 * m4/savewd.m4: New file.
42322 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42324 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42325 (dirchownmod): New arg FD. All callers changed.
42326 Use FD rather than opening the directory ourself, as opening is
42327 now the caller's responsibility.
42328 * lib/dirchownmod.h: Likewise.
42329 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42330 hosts that require <sys/types.h> before <sys/stat.h>. Include
42331 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42332 (test_dir): Remove.
42333 (mkancesdirs): Return length of prefix of FILE that has already
42334 been made, or -2 if there is a child doing the work. Redo
42335 algorithm so that it is O(N) rather than O(N**2). Optimize away
42336 ".", and treat ".." specially since it might stray back into
42337 already-created areas. Use a subprocess if necessary. New arg
42338 WD; all users changed. MAKE_DIR function should now return 1
42339 if it creates a directory that is not readable. Return -2 if
42340 a child process is spun off.
42341 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42342 Adjust signature to match code.
42343 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42344 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42346 * lib/savewd.c, lib/savewd.h: New files.
42348 2006-09-15 Jim Meyering <jim@meyering.net>
42350 * modules/rename-dest-slash: New module.
42351 * MODULES.html.sh (posix_compat): Add it here.
42353 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42355 2006-09-15 Jim Meyering <jim@meyering.net>
42357 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42360 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42362 2006-09-15 Jim Meyering <jim@meyering.net>
42364 * lib/rename-dest-slash.c (has_trailing_slash): Use
42365 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42366 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42367 test before testing whether SRC is a directory.
42368 Suggestions from Bruno Haible.
42370 Avoid a warning about an unused variable.
42371 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42372 into the #ifdef block where it's used.
42374 * lib/rename-dest-slash.c: New file.
42376 2006-09-14 Bruno Haible <bruno@clisp.org>
42378 * lib/allocsa.c: Include <config.h> unconditionally.
42379 * lib/asnprintf.c: Likewise.
42380 * lib/asprintf.c: Likewise.
42381 * lib/c-strcasecmp.c: Likewise.
42382 * lib/c-strcasestr.c: Likewise.
42383 * lib/c-strncasecmp.c: Likewise.
42384 * lib/c-strstr.c: Likewise.
42385 * lib/classpath.c: Likewise.
42386 * lib/clean-temp.c: Likewise.
42387 * lib/concatpath.c: Likewise.
42388 * lib/copy-file.c: Likewise.
42389 * lib/csharpcomp.c: Likewise.
42390 * lib/csharpexec.c: Likewise.
42391 * lib/execute.c: Likewise.
42392 * lib/fatal-signal.c: Likewise.
42393 * lib/findprog.c: Likewise.
42394 * lib/fwriteerror.c: Likewise.
42395 * lib/gl_array_list.c: Likewise.
42396 * lib/gl_array_oset.c: Likewise.
42397 * lib/gl_avltree_list.c: Likewise.
42398 * lib/gl_avltree_oset.c: Likewise.
42399 * lib/gl_avltreehash_list.c: Likewise.
42400 * lib/gl_carray_list.c: Likewise.
42401 * lib/gl_linked_list.c: Likewise.
42402 * lib/gl_linkedhash_list.c: Likewise.
42403 * lib/gl_list.c: Likewise.
42404 * lib/gl_oset.c: Likewise.
42405 * lib/gl_rbtree_list.c: Likewise.
42406 * lib/gl_rbtree_oset.c: Likewise.
42407 * lib/gl_rbtreehash_list.c: Likewise.
42408 * lib/imaxabs.c: Likewise.
42409 * lib/imaxdiv.c: Likewise.
42410 * lib/javacomp.c: Likewise.
42411 * lib/javaexec.c: Likewise.
42412 * lib/javaversion.c: Likewise.
42413 * lib/linebreak.c: Likewise.
42414 * lib/localcharset.c: Likewise.
42415 * lib/lock.c: Likewise.
42416 * lib/mbchar.c: Likewise.
42417 * lib/mbswidth.c: Likewise.
42418 * lib/mkdtemp.c: Likewise.
42419 * lib/pipe.c: Likewise.
42420 * lib/printf-args.c: Likewise.
42421 * lib/printf-parse.c: Likewise.
42422 * lib/progname.c: Likewise.
42423 * lib/progreloc.c: Likewise.
42424 * lib/readlink.c: Likewise.
42425 * lib/sh-quote.c: Likewise.
42426 * lib/stpcpy.c: Likewise.
42427 * lib/stpncpy.c: Likewise.
42428 * lib/strcasecmp.c: Likewise.
42429 * lib/strcasestr.c: Likewise.
42430 * lib/strcspn.c: Likewise.
42431 * lib/striconv.c: Likewise.
42432 * lib/strncasecmp.c: Likewise.
42433 * lib/strnlen1.c: Likewise.
42434 * lib/strstr.c: Likewise.
42435 * lib/strtok_r.c: Likewise.
42436 * lib/tls.c: Likewise.
42437 * lib/tmpdir.c: Likewise.
42438 * lib/unicodeio.c: Likewise.
42439 * lib/unsetenv.c: Likewise.
42440 * lib/vasnprintf.c: Likewise.
42441 * lib/vasprintf.c: Likewise.
42442 * lib/wait-process.c: Likewise.
42443 * lib/xallocsa.c: Likewise.
42444 * lib/xsetenv.c: Likewise.
42445 * lib/xstriconv.c: Likewise.
42447 2006-09-13 Simon Josefsson <jas@extundo.com>
42449 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42450 that internally, suggested by Ralf Wildenhues
42451 <Ralf.Wildenhues@gmx.de>.
42453 2006-09-13 Simon Josefsson <jas@extundo.com>
42455 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42457 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42459 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42461 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42462 longer worry about uses that don't define HAVE_CONFIG_H.
42463 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42464 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42465 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42466 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42467 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42468 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42469 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42470 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42471 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42472 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42473 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42474 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42475 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42476 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42477 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42478 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42479 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42480 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42481 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42482 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42483 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42484 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42485 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42486 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42487 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42488 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42489 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42490 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42491 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42492 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42493 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42494 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42495 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42496 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42497 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42498 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42499 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42500 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42501 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42502 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42503 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42506 2006-09-13 Eric Blake <ebb9@byu.net>
42508 * lib/getopt.c: Fix typo in last commit.
42510 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
42512 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42515 2006-09-12 Jim Meyering <jim@meyering.net>
42517 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42518 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42519 Reported by Nelson H. F. Beebe.
42521 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
42523 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42524 program_invocation_name and program_invocation_short_name are
42526 * lib/argp-namefrob.h: Move declarations of program_invocation_name
42527 and program_invocation_short_name to argp.h, so they are visible
42529 * lib/argp.h: Likewise
42531 2006-09-10 Bruno Haible <bruno@clisp.org>
42533 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42534 m4/inttypes_h.m4, m4/uintmax_t.m4.
42536 2006-09-10 Bruno Haible <bruno@clisp.org>
42538 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42539 gl_AC_TYPE_UINTMAX_T.
42541 2006-09-10 Bruno Haible <bruno@clisp.org>
42543 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42545 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
42547 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42548 convention. Text proposed by Bruno Haible.
42549 (struct argp_option): Document the use of N_() wrappers.
42551 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42552 '\v', and translate the two parts separately, instead of feeding
42553 the whole string to gettext. This allows to exclude
42554 '\v' from the strings visible to the translator by writing doc
42555 strings as N_("..") "\v" N_("..").
42557 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
42559 * config/srclist.txt: Undo latest change; the bug was fixed.
42561 2006-09-09 Bruno Haible <bruno@clisp.org>
42563 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42564 assignments if building a library without libtool.
42565 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42566 in func_emit_lib_Makefile_am.
42567 (func_import): When building a static library libfoo.a, arrange to
42568 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42569 (func_create_testdir): Likewise.
42570 * modules/gc (configure.ac, Makefile.am): If building statically,
42571 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42572 * modules/iconvme (configure.ac, Makefile.am): Likewise.
42573 * modules/striconv (configure.ac, Makefile.am): Likewise.
42574 Based on a suggestion by Ralf Wildenhues.
42576 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42578 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42579 Check for unistd.h too, since Autoconf doesn't assume POSIX.
42582 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42583 Add year_2050_test to catch glibc bug 2821
42584 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42586 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42587 Prefer #ifdef to #if.
42589 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
42590 Return from 'main' instead of calling 'exit'.
42592 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42594 * lib/mktime.c (guess_time_tm): Fix bug where mktime
42595 returned the maximum time_t value rather than (time_t) -1.
42596 Problem originally reported by William Bardwell
42597 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42599 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42601 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42604 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42606 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42609 2006-09-08 Jim Meyering <jim@meyering.net>
42611 Don't make generated files read-only. That would bother too many
42612 people. However, do retain the ability to work when targets are
42613 read-only: remove the destination and temporary files before writing
42614 them (when generated via sed or echo), or by using the -f option for
42615 both cp and mv commands. Suggestion to use -f from Paul Eggert.
42616 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42617 * modules/byteswap, modules/configmake, modules/fcntl:
42618 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42619 * modules/localcharset, modules/netinet_in, modules/poll:
42620 * modules/stdbool, modules/stdint, modules/sys_select:
42621 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42623 2006-09-08 Jim Meyering <jim@meyering.net>
42625 Avoid new build failure on FreeBSD 6.0.
42626 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42627 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
42628 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42630 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42632 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42634 2006-09-07 Jim Meyering <jim@meyering.net>
42636 Fix global typo in last change: use chmod u-w, not chmod u-x.
42637 Spotted by Paul Eggert and Bruce Korb.
42638 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42639 * modules/byteswap, modules/configmake, modules/fcntl:
42640 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42641 * modules/localcharset, modules/netinet_in, modules/poll:
42642 * modules/stdbool, modules/stdint, modules/sys_select:
42643 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42645 2006-09-06 Jim Meyering <jim@meyering.net>
42647 Make generated files be read-only.
42648 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42649 Ensure that each generated file is now read-only.
42650 * modules/argz: Likewise.
42651 * modules/arpa_inet: Likewise.
42652 * modules/byteswap: Likewise.
42653 * modules/configmake: Likewise.
42654 * modules/fcntl: Likewise.
42655 * modules/fnmatch: Likewise.
42656 * modules/getopt: Likewise.
42657 * modules/glob: Likewise.
42658 * modules/inttypes: Likewise.
42659 * modules/netinet_in: Likewise.
42660 * modules/poll: Likewise.
42661 * modules/stdbool: Likewise.
42662 * modules/stdint: Likewise.
42663 * modules/sys_select: Likewise.
42664 * modules/sys_socket: Likewise.
42665 * modules/sys_stat: Likewise.
42666 * modules/sysexits: Likewise.
42667 * modules/localcharset: Same as above, but continue using temporary
42668 file named "t-$@" (why different?) rather than the "$@-t" used
42671 * modules/sysexits (Makefile.am): Replace literal occurrences
42672 of "sysexit.h" more readable, and more consistent, "$@".
42674 2006-09-06 Bruno Haible <bruno@clisp.org>
42676 * modules/striconv: New file.
42677 * modules/xstriconv: New file.
42678 * MODULES.html.sh (Internationalization functions): Add striconv,
42681 2006-09-06 Bruno Haible <bruno@clisp.org>
42683 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42684 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42685 not using libtool correctly.
42687 2006-09-06 Bruno Haible <bruno@clisp.org>
42689 * lib/striconv.h: New file.
42690 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42692 * lib/xstriconv.h: New file.
42693 * lib/xstriconv.c: New file.
42695 2006-09-06 Bruno Haible <bruno@clisp.org>
42697 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42700 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42702 * lib/argz_.h: Sync from Libtool.
42704 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
42705 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42707 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42709 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42711 * modules/trim: New file.
42713 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42715 * lib/trim.h: New file.
42716 * lib/trim.c: New file.
42718 2006-09-05 Bruno Haible <bruno@clisp.org>
42720 * MODULES.html.sh (String handling): Add trim.
42722 2006-09-04 Karl Berry <karl@gnu.org>
42724 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42725 until next release.
42727 2006-09-03 Bruno Haible <bruno@clisp.org>
42729 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42732 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42734 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42735 not gl_GETLOADAVG. Omit unneeded semicolons.
42736 Problems reported by Ralf Wildenhues in
42737 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42738 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
42739 at the end, which is the usual gnulib style.
42741 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42742 of doing all the work ourselves.
42743 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42744 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42746 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42748 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42749 Problem reported by Ralf Wildenhues in
42750 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42752 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42753 HAVE_STRUCT_STATFS_F_FSTYPENAME.
42755 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42757 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42758 yesterday's patch by changing test -n to test -z.
42760 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42762 * modules/getloadavg (Files): Add m4/getloadavg.m4.
42763 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42764 the former is now obsolescent.
42766 * modules/chdir-long (Depends-on): Add fcntl.
42768 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42770 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42771 obsolescent, and programs should use gnulib instead.
42772 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42773 but with prefixes changed.
42775 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42777 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42778 or stdbool.h, because they might not exist while configuring.
42780 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42781 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42783 (O_DIRECTORY): Remove.
42785 2006-08-31 Eric Blake <ebb9@byu.net>
42787 * gnulib-tool: Don't let emacs change spaces to TAB.
42789 2006-08-31 Bruno Haible <bruno@clisp.org>
42791 * gnulib-tool: When calling func_import more than once, do it in a
42793 Reported by Eric Blake <ebb9@byu.net>.
42795 2006-08-31 Bruno Haible <bruno@clisp.org>
42797 * gnulib-tool (nl): Remove variable.
42798 (sed_transform_lib_file): Use more robust test for config-h module.
42799 (func_import): Fix typo in 2006-08-25 patch.
42801 2006-08-31 Bruno Haible <bruno@clisp.org>
42803 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42804 specified, augment Makefile.am variables instead of assigning them.
42806 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42808 Work around a bug in both the Linux and SunOS 64-bit kernels:
42809 nanosleep mishandles sleeps for longer than 2**31 seconds.
42810 Problem reported by Frank v Waveren in
42811 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42812 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42813 Check for nanosleep bug.
42814 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42816 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42818 Work around a bug in both the Linux and SunOS 64-bit kernels:
42819 nanosleep mishandles sleeps for longer than 2**31 seconds.
42820 Problem reported by Frank v Waveren in
42821 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42822 * lib/nanosleep.c (BILLION): New constant.
42823 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42824 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42827 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42829 * modules/nanosleep (Depends-on): Add gettime.
42831 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42832 and Simon Josefsson <jas@extundo.com>
42833 and Oskar Liljeblad <oskar@osk.mine.nu>
42835 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42836 * gnulib-tool (func_import): New license type 'unmodifiable license
42838 * modules/fdl: Use it. Longer description.
42839 * module/gpl, module/lgpl: New files.
42841 2006-08-30 Jim Meyering <jim@meyering.net>
42843 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42844 shadowing the parameter.
42846 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42850 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42852 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42853 sharing with gnulib. Report by Eric Blake.
42855 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42857 * modules/isapipe: New file.
42858 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42860 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42862 * modules/configmake (Makefile.am): Add a comment, and omit
42863 the CONFIGMAKE_ prefix from generated macro names. Suggested
42866 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42868 * m4/isapipe.m4: New file.
42870 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42872 * lib/isapipe.c, lib/isapipe.h: New files.
42874 2006-08-29 Jim Meyering <jim@meyering.net>
42876 * modules/configmake (Makefile.am): Make configmake.h depend on
42877 Makefile. Otherwise, a stale configmake.h could hang around.
42879 2006-08-29 Eric Blake <ebb9@byu.net>
42881 * lib/error.c (error_at_line, print_errno_message): Match libc, after
42882 resolution of upstream bug 3044.
42884 2006-08-29 Bruno Haible <bruno@clisp.org>
42886 * modules/localcharset (Depends-on): Add configmake.
42887 (Makefile.am): Remove setting of LIBDIR through DEFS.
42889 2006-08-29 Bruno Haible <bruno@clisp.org>
42891 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42894 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42896 * modules/fcntl: New file.
42897 * modules/chdir-safer (Depends-on): Add fcntl.
42898 * modules/fts: Likewise.
42899 * modules/mkdir-p: Likewise.
42901 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42902 This undoes the most recent change, since we're now addressing the
42903 problem in a different way.
42905 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42906 into output, since the output might be called Makefile.am even
42907 if $makefile_name is something different.
42908 (func_import): Use $makefile_am rather than
42909 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42912 * modules/inttypes (Files): Add m4/inttypes-h.m4.
42914 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42916 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42917 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
42918 recent change to stdint.m4, since we're now addressing the problem in a
42921 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42923 * m4/fcntl_h.m4: New file.
42925 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42927 * lib/fcntl_.h: New file.
42928 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42930 * lib/dirchownmod.c: Likewise.
42931 * lib/fts.c: Likewise.
42933 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42934 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42935 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42936 just before including <inttypes.h>, to avoid circular inclusion.
42938 2006-08-28 Jim Meyering <jim@meyering.net>
42940 * doc/visibility.texi: Actually read and correct the grammar of the
42941 sentence affected by yesterday's change.
42943 2006-08-28 Eric Blake <ebb9@byu.net>
42945 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42948 2006-08-28 Eric Blake <ebb9@byu.net>
42950 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42952 2006-08-28 Eric Blake <ebb9@byu.net>
42954 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42956 2006-08-28 Bruno Haible <bruno@clisp.org>
42958 * modules/c-strstr: New file, from GNU gettext.
42959 * MODULES.html.sh (String handling): Add c-strstr.
42961 2006-08-28 Bruno Haible <bruno@clisp.org>
42963 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42965 Reported by Eric Blake.
42967 2006-08-28 Bruno Haible <bruno@clisp.org>
42969 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42970 (VASNPRINTF): Return a string of length > INT_MAX without failing.
42971 * lib/vasprintf.c: Include errno.h, limits.h.
42972 (EOVERFLOW): New fallback definition.
42973 (vasprintf): Test here whether the string length is > INT_MAX.
42974 * lib/vsnprintf.c: Include errno.h, limits.h.
42975 (EOVERFLOW): New fallback definition.
42976 (vsnprintf): Fix bug when generated string was too long for the buffer.
42977 Test here whether the string length is > INT_MAX.
42979 2006-08-28 Bruno Haible <bruno@clisp.org>
42981 * lib/inttypes_.h (SCNX*): Remove definitions.
42982 Reported by Eric Blake.
42984 2006-08-28 Bruno Haible <bruno@clisp.org>
42986 * lib/c-strstr.h: New file, from GNU gettext.
42987 * lib/c-strstr.c: New file, from GNU gettext.
42989 2006-08-28 Bruno Haible <bruno@clisp.org>
42991 * gnulib-tool: Reorder some statements.
42993 2006-08-28 Bruno Haible <bruno@clisp.org>
42995 * gnulib-tool: New option --makefile-name.
42996 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42998 (func_import): Write $makefile_name to the cache file, and read it from
42999 there unless explicitly specified. Use $makefile_name as file name
43000 instead of Makefile.am. Adjust the recommendations accordingly.
43002 2006-08-28 Bruno Haible <bruno@clisp.org>
43004 * gnulib-tool (func_verify_module): Check against misapplying patch.
43006 2006-08-28 Bruno Haible <bruno@clisp.org>
43008 * gnulib-tool (func_relativize, func_relconcat): New functions.
43009 Give an error if --local-dir is given with --update.
43010 Remove trailing slashes from $local_gnulib_dir.
43011 (func_import): Store the relativized $local_gnulib_dir in
43012 gnulib-cache.m4, and read it from there if not specified explicitly.
43014 2006-08-28 Bruno Haible <bruno@clisp.org>
43016 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43017 is the current directory. Respect also $local_gnulib_dir.
43019 2006-08-28 Bruno Haible <bruno@clisp.org>
43020 Simon Josefsson <jas@extundo.com>
43023 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43025 2006-08-27 Jim Meyering <jim@meyering.net>
43027 * doc/visibility.texi: Remove duplicate word: "pointer".
43029 2006-08-26 Bruno Haible <bruno@clisp.org>
43031 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43032 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43033 (Makefile.am): Create inttypes.h from inttypes_.h.
43034 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43036 * modules/imaxabs: New file.
43038 * modules/imaxdiv: New file.
43040 2006-08-26 Bruno Haible <bruno@clisp.org>
43042 * m4/inttypes.m4: New file.
43043 * m4/_inttypes_h.m4: Remove file.
43044 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43046 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43048 * m4/imaxabs.m4: New file.
43050 * m4/imaxdiv.m4: New file.
43052 2006-08-26 Bruno Haible <bruno@clisp.org>
43054 * lib/inttypes_.h: New file.
43055 * lib/inttypes.h: Remove file.
43056 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43058 * lib/imaxabs.c: New file.
43060 * lib/imaxdiv.c: New file.
43062 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43064 New config-h module, so that "make" output needn't be cluttered
43065 by -DHAVE_CONFIG_H.
43066 * MODULES.html.sh (Support for building libraries and executables):
43068 * modules/config-h: New file.
43069 * gnulib-tool (nl, sed_transform_lib_file): New vars.
43070 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43071 the config-h module is used.
43073 New configmake module, so that "make" output needn't be cluttered
43074 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43075 * MODULES.html.sh (Support for building libraries and executables):
43077 * modules/configmake: New file.
43079 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43081 * m4/config-h.m4: New file.
43083 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43085 * config/srclist.txt: Add elisp-comp.
43087 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43089 * MODULES.html.sh (Support for building libraries and executables):
43091 * build-aux/elisp-comp: New file.
43092 * modules/elisp-comp: New file.
43094 2006-08-24 Bruno Haible <bruno@clisp.org>
43096 * gnulib-tool (func_create_testdir): Use non-default values of
43097 sourcebase and m4base.
43099 2006-08-24 Bruno Haible <bruno@clisp.org>
43101 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43104 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
43106 * modules/openat (Depends-on): Add lchown.
43108 2006-08-23 Bruno Haible <bruno@clisp.org>
43110 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43111 of gl_LOCK_EARLY instead of gl_LOCK.
43113 2006-08-23 Bruno Haible <bruno@clisp.org>
43115 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43117 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43119 2006-08-23 Bruno Haible <bruno@clisp.org>
43121 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43124 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43125 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43126 (gl_LOCK): New macro.
43128 2006-08-22 Simon Josefsson <jas@extundo.com>
43130 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43133 2006-08-22 Simon Josefsson <jas@extundo.com>
43135 * MODULES.html.sh: Add "Support for maintaining and release
43138 * build-aux/gnupload: New file, from coreutils.
43140 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43142 Avoid the need for AC_LIBSOURCES in m4 macros.
43143 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43144 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43145 * modules/check-version (EXTRA_DIST): Add check-version.h.
43146 * modules/crc (EXTRA_DIST): Add crc.h.
43147 * modules/des (EXTRA_DIST): Add des.h.
43148 * modules/gc (EXTRA_DIST): Add gc.h.
43149 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43150 * modules/getline (EXTRA_DIST): Add getline.h.
43151 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43152 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43153 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43154 * modules/md2 (EXTRA_DIST): Add md2.h.
43155 * modules/md4 (EXTRA_DIST): Add md4.h.
43156 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43157 * modules/read-file (EXTRA_DIST): Add read-file.h.
43158 * modules/readline (EXTRA_DIST): Add readline.h.
43159 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43160 rijndael-api-fst.h.
43162 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43164 * m4/rijndael.m4 (gl_ARCFOUR):
43165 * m4/arctwo.m4 (gl_ARCTWO):
43166 * m4/check-version.m4 (gl_CHECK_VERSION):
43167 * m4/crc.m4 (gl_CRC):
43168 * m4/des.m4 (gl_DES):
43169 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43170 * m4/gc.m4 (gl_GC):
43171 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43172 * m4/getline.m4 (gl_FUNC_GETLINE):
43173 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43174 * m4/hmac-md5.m4 (gl_HMAC_MD5):
43175 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43176 * m4/md2.m4 (gl_MD2):
43177 * m4/md4.m4 (gl_MD4):
43178 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43179 * m4/read-file.m4 (gl_FUNC_READ_FILE):
43180 * m4/readline.m4 (gl_FUNC_READLINE):
43181 * m4/rijndael.m4 (gl_RIJNDAEL):
43182 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43183 to get the necessary .h files and whatnot.
43185 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43187 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43188 gnulib rather than the other way around.
43189 * config/srclistvars.sh (COREUTILS): Remove.
43191 2006-08-22 Jim Meyering <jim@meyering.net>
43193 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43195 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43197 2006-08-22 Eric Blake <ebb9@byu.net>
43199 * modules/regexprops-generic: New file.
43200 * MODULES.html.sh (Support for building documentation): List it.
43202 2006-08-22 Eric Blake <ebb9@byu.net>
43204 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43205 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43206 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43207 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43209 2006-08-22 Bruno Haible <bruno@clisp.org>
43211 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43212 and lib_LTLIBRARIES like the other lib_* variables.
43214 2006-08-22 Bruno Haible <bruno@clisp.org>
43216 * build-aux/x-to-1.in: New file, from GNU gettext.
43218 2006-08-22 Bruno Haible <bruno@clisp.org>
43220 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43223 2006-08-22 Bruno Haible <bruno@clisp.org>
43225 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43228 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43231 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43233 Problem reported by Bruno Haible.
43235 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43237 Avoid the need for AC_LIBSOURCES in m4 macros.
43238 * modules/acl (EXTRA_DIST): Add acl.h.
43239 * modules/argmatch (Files): Add m4/argmatch.m4.
43240 (configure.ac): Add gl_ARGMATCH.
43241 (EXTRA_DIST): Renamed from lib_SOURCES, for
43242 consistency with the other modules. Remove argmatch.c.
43243 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43244 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43245 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43246 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43247 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43248 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43249 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43250 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43251 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43252 * modules/closeout (EXTRA_DIST): Add closeout.h.
43253 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43254 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43255 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43256 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
43257 dirname.h; remove basename.c and stripslash.c.
43258 * modules/exclude (EXTRA_DIST): Add exclude.h.
43259 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43260 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43261 * modules/file-type (EXTRA_DIST): Add file-type.h.
43262 * modules/filemode (EXTRA_DIST): Add filemode.h.
43263 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43264 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43265 * modules/fpending (EXTRA_DIST): Add __fpending.h.
43266 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43267 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43268 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43269 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43270 * modules/getdate (EXTRA_DIST): Add getdate.c.
43271 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43272 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43273 * modules/getpass (EXTRA_DIST): Add getpass.h.
43274 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43275 * modules/group-member (EXTRA_DIST): Add group-member.h.
43276 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43277 * modules/hash (EXTRA_DIST): Add hash.h.
43278 * modules/human (EXTRA_DIST): Add human.h.
43279 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43280 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43281 * modules/lchown (EXTRA_DIST): Add lchown.h.
43282 * modules/long-options (EXTRA_DIST): Add long-options.h.
43283 * modules/lstat (EXTRA_DIST): Add lstat.h.
43284 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43285 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43286 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43287 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43288 * modules/memxor (EXTRA_DIST): Add memxor.h.
43289 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43290 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43291 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43292 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43293 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43294 * modules/physmem (EXTRA_DIST): Add physmem.h.
43295 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43296 * modules/posixver (EXTRA_DIST): Add posixver.h.
43297 * modules/quote (EXTRA_DIST): Add quote.h.
43298 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43299 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43300 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43301 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43302 regex_internal.h regexec.c.
43303 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43304 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43305 * modules/same (EXTRA_DIST): Add same.h.
43306 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43307 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43308 * modules/savedir (EXTRA_DIST): Add savedir.h.
43309 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43310 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43311 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43312 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43313 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43314 * modules/strdup (EXTRA_DIST): Add strdup.h.
43315 * modules/strftime (EXTRA_DIST): Add strftime.h.
43316 * modules/strndup (EXTRA_DIST): Add strndup.h.
43317 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43318 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43319 * modules/time_r (EXTRA_DIST): Add time_r.h.
43320 * modules/timespec (EXTRA_DIST): Add timespec.h.
43321 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43322 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43323 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43324 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43325 * modules/userspec (EXTRA_DIST): Add userspec.h.
43326 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43327 * modules/utimens (EXTRA_DIST): Add utimens.h.
43328 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43329 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43330 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43331 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43332 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43333 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43334 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43335 * modules/yesno (EXTRA_DIST): Add yesno.h.
43337 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43339 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43341 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43342 * m4/dev-ino.m4, same-inode.m4: Remove.
43344 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43345 * m4/acl.m4 (AC_FUNC_ACL):
43346 * m4/backupfile.m4 (gl_BACKUPFILE):
43347 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43348 * m4/canon-host.m4 (gl_CANON_HOST):
43349 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43350 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43351 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43352 * m4/cloexec.m4 (gl_CLOEXEC):
43353 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43354 * m4/closeout.m4 (gl_CLOSEOUT):
43355 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43356 * m4/dirname.m4 (gl_DIRNAME):
43357 * m4/exclude.m4 (gl_EXCLUDE):
43358 * m4/exitfail.m4 (gl_EXITFAIL):
43359 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43360 * m4/file-type.m4 (gl_FILE_TYPE):
43361 * m4/filemode.m4 (gl_FILEMODE):
43362 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43363 * m4/fpending.m4 (gl_FUNC_FPENDING):
43364 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43365 * m4/fts.m4 (gl_FUNC_FTS):
43366 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43367 * m4/getdate.m4 (gl_GETDATE):
43368 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43369 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43370 * m4/getpass.m4 (gl_FUNC_GETPASS):
43371 * m4/gettime.m4 (gl_GETTIME):
43372 * m4/getugroups.m4 (gl_GETUGROUPS):
43373 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43374 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43375 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43376 * m4/hash.m4 (gl_HASH):
43377 * m4/idcache.m4 (gl_IDCACHE):
43378 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43379 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43380 * m4/long-options.m4 (gl_LONG_OPTIONS):
43381 * m4/lstat.m4 (gl_FUNC_LSTAT):
43382 * m4/md5.m4 (gl_MD5):
43383 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43384 * m4/memcoll.m4 (gl_MEMCOLL):
43385 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43386 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43387 * m4/memxor.m4 (gl_MEMXOR):
43388 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43389 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43390 * m4/modechange.m4 (gl_MODECHANGE):
43391 * m4/mountlist.m4 (gl_MOUNTLIST):
43392 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43393 * m4/openat.m4 (gl_FUNC_OPENAT):
43394 * m4/pathmax.m4 (gl_PATHMAX):
43395 * m4/physmem.m4 (gl_PHYSMEM):
43396 * m4/posixtm.m4 (gl_POSIXTM):
43397 * m4/posixver.m4 (gl_POSIXVER):
43398 * m4/quote.m4 (gl_QUOTE):
43399 * m4/quotearg.m4 (gl_QUOTEARG):
43400 * m4/readtokens.m4 (gl_READTOKENS):
43401 * m4/readutmp.m4 (gl_READUTMP):
43402 * m4/regex.m4 (gl_REGEX):
43403 * m4/safe-read.m4 (gl_SAFE_READ):
43404 * m4/safe-write.m4 (gl_SAFE_WRITE):
43405 * m4/same.m4 (gl_SAME):
43406 * m4/save-cwd.m4 (gl_SAVE_CWD):
43407 * m4/savedir.m4 (gl_SAVEDIR):
43408 * m4/settime.m4 (gl_SETTIME):
43409 * m4/sha1.m4 (gl_SHA1):
43410 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43411 * m4/stat-macros.m4 (gl_STAT_MACROS):
43412 * m4/stat-time.m4 (gl_STAT_TIME):
43413 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43414 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43415 * m4/strdup.m4 (gl_FUNC_STRDUP):
43416 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43417 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43418 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43419 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43420 * m4/time_r.m4 (gl_TIME_R):
43421 * m4/timespec.m4 (gl_TIMESPEC):
43422 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43423 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43424 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43425 * m4/userspec.m4 (gl_USERSPEC):
43426 * m4/utimecmp.m4 (gl_UTIMECMP):
43427 * m4/utimens.m4 (gl_UTIMENS):
43428 * m4/xalloc.m4 (gl_XALLOC):
43429 * m4/xgetcwd.m4 (gl_XGETCWD):
43430 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43431 * m4/xreadlink.m4 (gl_XREADLINK):
43432 * m4/xstrtod.m4 (gl_XSTRTOD):
43433 * m4/yesno.m4 (gl_YESNO):
43434 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43435 to get the necessary .h files and whatnot.
43437 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43438 Bruno Haible <bruno@clisp.org>
43440 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43441 /bin/sh understanding of '!' conditional negation.
43443 2006-08-21 Jim Meyering <jim@meyering.net>
43445 * modules/openat (Depends-on): Really alphabetize.
43447 * modules/acl (Depends-on): Add error and quote.
43449 * check-module (find_included_lib_files): Add at-func.c to the
43450 ok-to-include-more-than-once white list.
43452 * modules/openat (Depends-on): Add lstat. Alphabetize.
43454 2006-08-21 Bruno Haible <bruno@clisp.org>
43456 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43457 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43458 Reported by Martin Lambers <marlam@marlam.de>.
43460 2006-08-21 Bruno Haible <bruno@clisp.org>
43462 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43463 specify an installation location, don't emit a noinst_LIBRARIES or
43464 noinst_LTLIBRARIES assignment.
43466 2006-08-21 Bruno Haible <bruno@clisp.org>
43469 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43470 BeOS has mbrtowc() but no <wctype.h>.
43472 2006-08-21 Bruno Haible <bruno@clisp.org>
43475 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43478 2006-08-21 Bruno Haible <bruno@clisp.org>
43481 * lib/mbchar.h: Include <wctype.h> only if it exists.
43483 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43485 Remove files that are no longer needed by their respective modules.
43486 * m4/obstack.m4: Remove.
43487 * m4/strerror_r.m4: Remove.
43488 * m4/uint32_t.m4: Remove.
43489 * m4/uintptr_t.m4: Remove.
43490 * m4/ullong_max.m4: Remove.
43491 * m4/xstrtoimax.m4: Remove.
43492 * m4/xstrtoumax.m4: Remove.
43494 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43495 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43496 dependencies now capture this.
43498 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43499 Do not use AC_LIBSOURCES, since gnulib modules now do this.
43500 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43501 * m4/human.m4 (gl_HUMAN): Likewise.
43502 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43503 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43505 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43507 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43508 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43510 * m4/human.m4 (gl_HUMAN): Likewise.
43511 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43512 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43513 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43514 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43515 * m4/xstrtol (gl_XSTRTOL): Likewise.
43517 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43518 AC_TYPE_LONG_LONG_INT.
43519 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43520 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43521 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43522 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43524 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43527 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43528 (gl_PREREQ_XSTRTOUL): Remove.
43530 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43532 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43535 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43537 Add and change modules to make it easier for coreutils to use
43539 * modules/backupfile (Files): Remove m4/d-ino.m4.
43540 (Depends-on): Add d-ino.
43541 * modules/cycle-check (Depends-on): Add stdint.
43542 (lib_SOURCES): Add cycle-check.h.
43543 * modules/d-ino: New module.
43544 * modules/d-type: New module.
43545 * modules/error (Files): Remove m4/strerror_r.m4.
43546 * modules/filemode (Files): Add m4/st_dm_mode.m4.
43547 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43548 m4/inttypes_h.m4, m4/uintmax_t.m4.
43549 (Depends-on): Add stdint.
43550 (lib_SOURCES): Add fsusage.h.
43551 * modules/getcwd (Files): Remove d-ino.m4.
43552 (Depends-on): Add d-ino.
43553 * modules/getndelim2 (Depends-on): Add stdint.
43554 * modules/glob (Files): Remove m4/d-type.m4.
43555 (Depends-on): Add d-type.
43556 * modules/host-os: New module.
43557 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43558 m4/inttypes_h.m4, m4/uintmax_t.m4.
43559 * Depends-on: Add stdint.
43560 (lib_SOURCES): Add human.h.
43561 * modules/inttostr (Files): Remove m4/intmax_t.m4,
43562 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43563 m4/uintmax_t.m4, m4/ulonglong.m4.
43564 (Depends-on): Add stdint.
43565 (EXTRA_DIST): Add inttostr.h.
43566 * modules/lchmod: New module.
43567 * modules/link-follow: New module.
43568 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43569 (Depends-on): Add lchmod.
43570 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43571 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43572 (Depends-on): Add stdint.
43573 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43574 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43575 (Depends-on): Add stdint.
43576 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43577 * modules/perl: New module.
43578 * modules/regex (Depends-on): Add stdint.
43579 * modules/rmdir-errno: New module.
43580 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43582 (Depends-on): Add stdint.
43583 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43585 (Depends-on): Add stdint.
43586 * modules/unlink-busy: New module.
43587 * modules/utimecmp (Depends-on): Add stdint.
43588 * modules/uptime: New module.
43589 * modules/winsz-ioctl: New module.
43590 * modules/winsz-termios: New module.
43591 * modules/xnanosleep (Depends-on): Add nanosleep.
43592 * modules/ullong_max: Remove.
43593 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43594 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43595 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43596 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43597 (Depends-on): Add inttypes.
43598 (lib_SOURCES): Add xstrtol.h.
43599 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43600 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43601 * MODULES.html.sh: Move 'assert' into the assert section.
43602 Move 'dummy' into the linking section.
43604 Add section for compatibility checks for POSIX:2001 functions,
43605 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43606 winsz-ioctl, and winsz-termios into it.
43608 Add top-level Misc section and put host-os, perl, and uptime
43611 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43613 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43614 now assume the stdint module. Do not include inttypes.h.
43615 * lib/fsusage.h: Likewise.
43616 * lib/getndelim2.c: Likewise.
43617 * lib/human.h: Likewise.
43618 * lib/inttostr.h: Likewise.
43619 * lib/obstack.c: Likewise.
43620 * lib/regex_internal.h: Likewise.
43621 * lib/tempname.c: Likewise.
43622 * lib/utimecmp.c: Likewise.
43623 * lib/xstrtol.h: Likewise.
43625 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43627 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43628 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43629 * lib/xtime.h: Likewise.
43631 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43633 * modules/openat (Files): Add lib/fchmodat.c.
43634 Fixes problem reported by Jay Youngman.
43636 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43638 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
43639 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
43641 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
43642 Bruno Haible <bruno@clisp.org>
43644 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43645 and is a script that invokes bison. Tighten the code. Add comments.
43647 2006-08-18 Jim Meyering <jim@meyering.net>
43649 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43650 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43651 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
43652 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43654 2006-08-18 Bruno Haible <bruno@clisp.org>
43656 * modules/bison-i18n: New file.
43657 * MODULES.html.sh (Internationalization functions): Add it.
43659 2006-08-18 Bruno Haible <bruno@clisp.org>
43661 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43662 sys/statvfs.h. When getmntinfo was found, check its declaration and
43663 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43665 2006-08-18 Bruno Haible <bruno@clisp.org>
43667 * m4/bison-i18n.m4: New file, from bison.
43669 2006-08-18 Bruno Haible <bruno@clisp.org>
43671 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43672 (ME_DUMMY): Treat "kernfs" as a dummy.
43673 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43675 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43677 Update from coreutils.
43679 2006-08-15 Jim Meyering <jim@meyering.net>
43681 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43683 2006-01-17 Jim Meyering <jim@meyering.net>
43685 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43687 2006-01-11 Jim Meyering <jim@meyering.net>
43689 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43690 Check for the lchmod function.
43692 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43694 Update from coreutils.
43696 * lib/__fpending.h: Add copyright notice.
43697 * lib/fprintftime.h: Likewise.
43698 * lib/savedir.c: Use (C) in copyright notice.
43699 * lib/savedir.h: Likewise.
43701 2006-08-15 Jim Meyering <jim@meyering.net>
43703 * lib/at-func.c: New file, with the logic of all emulated at-functions.
43704 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43705 in support of the EXPECTED_ERRNO macro.
43706 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43707 definitions. Instead, define the appropriate symbols and include
43709 * lib/mkdirat.c (mkdirat): Likewise.
43710 * lib/fchmodat.c (fchmodat): Likewise.
43711 (ENOSYS): Remove definition.
43712 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43713 it. Don't include "unistd--.h" -- it wasn't ever used.
43715 2006-01-17 Jim Meyering <jim@meyering.net>
43717 Rewrite fts.c not to change the current working directory,
43718 by using openat, fstatat, fdopendir, etc..
43720 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43721 (HAVE_OPENAT_SUPPORT): Define.
43722 [_LIBC] (fchdir): Don't undef or define; no longer used.
43723 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43724 Now, this `function' always succeeds, and consumes its file descriptor
43725 parameter -- so callers must not close such FDs. Update callers.
43726 (diropen_fd, opendirat, cwd_advance_fd): New functions.
43727 (diropen): Add parameter, SP. Adjust all callers.
43728 Implement using diropen_fd, rather than open.
43729 (fts_open): Initialize new member, fts_cwd_fd.
43730 Remove fts_rft-setting code.
43731 (fts_close): Close fts_cwd_fd, if necessary.
43732 (__opendir2): Define in terms of opendir or opendirat,
43733 depending on whether the FST_NOCHDIR flag is set.
43734 (fts_build): Since fts_safe_changedir consumes its FD, and since
43735 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43736 and close the dup'd file descriptor upon failure.
43737 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43738 (fts_safe_changedir): Tweak semantics to reflect that this function
43739 now calls cwd_advance_fd and hence consumes its FD argument.
43740 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43741 [struct FTS] (fts_rft): Remove now-unused member.
43742 [struct FTS] (fts_cycle.state): Improve comment.
43744 * lib/openat.c (openat_needs_fchdir): New function.
43745 * lib/openat.h (openat_needs_fchdir): Declare it.
43747 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
43749 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43750 Problem and fix reported by Pádraig Brady in
43751 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43753 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43755 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43757 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43759 * lib/memcoll.c (memcoll): Optimize for the common case where the
43760 arguments are bytewise equal.
43762 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43764 * doc/regexprops-generic.texi: Add a copyright notice.
43766 2006-08-15 Bruno Haible <bruno@clisp.org>
43768 * modules/tmpdir (License): Change to LGPL.
43770 2006-08-15 Bruno Haible <bruno@clisp.org>
43772 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43775 2006-08-14 Simon Josefsson <jas@extundo.com>
43777 * config/srclist.txt: Add gnupload.
43779 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43781 Change copyright notice from LGPL 2 to GPL 2, since that's the
43782 standard form used in the gnulib repository.
43783 * tests/test-lock.c: Likewise.
43784 * tests/test-stdint.c: Likewise.
43785 * tests/test-tls.c: Likewise.
43787 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43788 prelude-manager. User shorter URLs for GNU projects, without '?'.
43789 Add copyright notice.
43791 * check-module: Add copyright notice. Output a copyright
43792 notice if "--version" is specified.
43793 * modules/COPYING: New file.
43794 * tests/test-getaddrinfo.c: Add copyright notice.
43795 * tests/test-verify.c: Likewise.
43797 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43799 Change copyright notice from LGPL 2 to GPL 2, since that's the
43800 standard form used in the gnulib repository.
43801 * lib/lock.c: LGPL -> GPL.
43802 * lib/lock.h: Likewise.
43803 * lib/strnlen1.c: Likewise.
43804 * lib/strnlen1.h: Likewise.
43805 * lib/tls.c: Likewise.
43806 * lib/tls.h: Likewise.
43807 * lib/tmpdir.c: Likewise.
43809 * lib/TODO: Remove; this belongs only in coreutils.
43811 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43813 Add copyright notices to long-enough files that lack them, since
43814 otherwise the files aren't clearly free. Use the same notice that
43815 getdate.texi already uses.
43816 * doc/alloca-opt.texi: Add copyright notice.
43817 * doc/alloca.texi: Likewise.
43818 * doc/ctime.texi: Likewise.
43819 * doc/functions.texi: Likewise.
43820 * doc/gcd.texi: Likewise.
43821 * doc/gnulib-tool.texi: Likewise.
43822 * doc/inet_ntoa.texi: Likewise.
43823 * doc/visibility.texi: Likewise.
43825 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43826 * doc/quote.texi: Add copyright notice.
43828 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43829 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43830 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43831 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43832 is now obsolete, and give a pointer to the Sun list.
43833 Add copyright notice.
43835 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43837 * config/srclistvars.sh: Add copyright notice.
43839 2006-08-14 Eric Blake <ebb9@byu.net>
43841 Import the following change from libc:
43843 2006-08-12 Ulrich Drepper <drepper@redhat.com>
43846 * lib/misc/error.c: Add space between program name and message if file
43849 2006-08-12 Karl Berry <karl@gnu.org>
43851 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43852 remove, these originate in gnulib now.
43854 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43856 * doc/Makefile (standards.info standards.html standards.dvi):
43857 Also depend on make-stds.texi.
43859 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
43861 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43862 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
43864 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43865 in wchar_t. Problem reported by Eric Blake.
43867 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43868 LEN is smaller than SIZE. Suggested by Bruno Haible.
43869 Also, help the compiler to keep LEN in a register.
43871 2006-08-11 Eric Blake <ebb9@byu.net>
43873 * users.txt: Sort. Add tar.
43875 2006-08-11 Bruno Haible <bruno@clisp.org>
43877 * users.txt: New file.
43879 2006-08-11 Bruno Haible <bruno@clisp.org>
43881 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43882 before <wchar.h>. Needed for OSF/1 and BSD/OS.
43884 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43886 * modules/snprintf (Depends-on): Remove minmax.
43887 (Maintainer): Add self and Bruno.
43889 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43891 * lib/.cppi-disable: Add snprintf.h, socket_.h.
43892 * lib/snprintf.c: Include <errno.h> and <limits.h>.
43893 (EOVERFLOW): Define if the system does not.
43894 Do not include "minmax.h"; it wasn't used.
43895 (snprintf): Don't assume size_t promotes to an unsigned type.
43896 Fix bug when generated string was too long for the buffer: the
43897 buffer's contents are supposed to be the initial prefix of the
43898 output. Don't assume vasnprintf returns EOVERFLOW if the size
43899 exceeds INT_MAX; do the check ourselves.
43901 Import the following changes from libc:
43903 2006-06-02 Jakub Jelinek <jakub@redhat.com>
43905 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43906 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
43907 set wc to the byte which couldn't be converted.
43908 (re_string_reconstruct): Don't clear valid_raw_len before calling
43909 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
43910 tip_context using re_string_context_at.
43912 2006-05-02 Ulrich Drepper <drepper@redhat.com>
43914 * lib/posix/regex.h: g++ still cannot handled [restrict].
43916 2006-04-21 Ulrich Drepper <drepper@redhat.com>
43918 * lib/posix/regex.h: Remove special handling for VMS.
43920 2006-08-10 Jim Meyering <jim@meyering.net>
43922 * modules/same-inode: New module.
43923 * modules/dev-ino: New module.
43924 * modules/cycle-check: Depend on these modules, rather than simply
43925 including their .h files.
43926 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43927 required via m4/cycle-check.m4.
43928 * modules/same: Depend on new same-inode module, rather than
43929 including same-inode.h.
43930 * modules/chdir-safer: New file.
43932 * modules/chown (Depends-on): Add stat-macros.
43934 2006-08-10 Jim Meyering <jim@meyering.net>
43936 * m4/cycle-check.m4: New file.
43937 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43938 * m4/dev-ino.m4, m4/same-inode.m4: New files.
43940 2006-08-10 Eric Blake <ebb9@byu.net>
43942 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43943 in from original proposal.
43945 2006-08-10 Eric Blake <ebb9@byu.net>
43946 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43948 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43951 2006-08-10 Bruno Haible <bruno@clisp.org>
43953 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43956 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43958 Sync from coreutils.
43960 2006-07-19 Mike Frysinger <vapier@gentoo.org>
43962 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43963 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43965 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43967 * modules/restrict: Remove; no longer needed now that we assume
43968 Autoconf 2.59 or later.
43969 * MODULES.html.sh: Remove 'restrict'.
43970 * modules/argp (Depends-on): Remove 'restrict'.
43971 * modules/base64 (Depends-on): Likewise.
43972 * modules/gc (Depends-on): Likewise.
43973 * modules/getaddrinfo (Depends-on): Likewise.
43974 * modules/glob (Depends-on): Likewise.
43975 * modules/inet_ntop (Depends-on): Likewise.
43976 * modules/inet_pton (Depends-on): Likewise.
43977 * modules/memxor (Depends-on): Likewise.
43978 * modules/regex (Depends-on): Likewise.
43979 * modules/strtok_r (Depends-on): Likewise.
43980 * modules/time_r (Depends-on): Likewise.
43982 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43984 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43985 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43986 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43987 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43988 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43989 * m4/memxor.m4 (gl_MEMXOR): Likewise.
43990 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
43991 gl_C_RESTRICT replaced by AC_C_RESTRICT.
43993 Merge from coreutils.
43994 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43995 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43996 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43997 * m4/time_r.m4 (gl_TIME_R): Likewise.
43999 2006-08-09 Karl Berry <karl@gnu.org>
44001 * config/srclist.txt: no more gettext-tools, per Bruno.
44003 2006-08-08 Eric Blake <ebb9@byu.net>
44005 * modules/verror: New module.
44006 * MODULES.html.sh: Document it.
44008 2006-08-08 Eric Blake <ebb9@byu.net>
44010 * lib/verror.h, lib/verror.c: New files.
44012 2006-08-08 Eric Blake <ebb9@byu.net>
44014 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44015 verror_at_line output complies with GNU Coding Standards even when
44018 2006-08-07 Bruno Haible <bruno@clisp.org>
44020 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44022 Reported by Ralf Wildenhues.
44024 2006-08-07 Bruno Haible <bruno@clisp.org>
44026 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44027 in an AC_DEFUN. Needed so that the autoconf snippets can use
44030 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44032 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44033 Initialize pkgdata_DATA.
44034 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44037 2006-08-06 Eric Blake <ebb9@byu.net>
44039 * lib/error.h: Fold in some upstream changes from glibc.
44040 * lib/error.c: Likewise.
44042 2006-08-04 Bruno Haible <bruno@clisp.org>
44044 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44045 Make the mostlyclean-local rule depend on mostlyclean-generic.
44046 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44048 2006-07-31 Bruno Haible <bruno@clisp.org>
44050 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44051 <stdlib.h>, <string.h>.
44053 2006-07-30 Bruno Haible <bruno@clisp.org>
44055 * modules/readlink (License): Change to LGPL.
44057 2006-07-30 Bruno Haible <bruno@clisp.org>
44059 * modules/javaversion (Makefile.am): Distribute javaversion.java and
44060 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44061 set PKGDATADIR to point to it.
44063 2006-07-30 Bruno Haible <bruno@clisp.org>
44065 * modules/csharpexec (configure.ac): Comment out macro invocation.
44066 * modules/javaexec (configure.ac): Likewise.
44067 * modules/javacomp-script (configure.ac): Likewise.
44069 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44071 2006-07-30 Bruno Haible <bruno@clisp.org>
44073 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44076 2006-07-30 Bruno Haible <bruno@clisp.org>
44078 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44080 2006-07-30 Bruno Haible <bruno@clisp.org>
44082 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44083 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44086 2006-07-29 Bruno Haible <bruno@clisp.org>
44088 Make it possible for gnulib-tool to work with locally modified or
44089 augmented gnulib repositories.
44090 * gnulib-tool (func_usage): Document --local-dir option.
44091 (local_gnulib_dir): New variable.
44092 Handle --local-dir option.
44093 (func_lookup_file): New function.
44094 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44095 (func_get_description, func_get_filelist, func_get_description,
44096 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44097 func_get_automake_snippet, func_get_include_directive,
44098 func_get_license, func_get_maintainer): Use func_lookup_file.
44099 (func_import, func_create_testdir): Use func_lookup_file.
44101 2006-07-29 Bruno Haible <bruno@clisp.org>
44103 * modules/setenv (Depends-on): Add unistd.
44105 2006-07-29 Bruno Haible <bruno@clisp.org>
44107 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44109 2006-07-29 Bruno Haible <bruno@clisp.org>
44111 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44113 2006-07-29 Bruno Haible <bruno@clisp.org>
44115 * gnulib-tool (import, update): If there is no Makefile.am, look at
44116 aclocal.m4, instead of bailing out.
44118 2006-07-29 Bruno Haible <bruno@clisp.org>
44120 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44121 Categorize the options by when they are useful.
44123 2006-07-29 Bruno Haible <bruno@clisp.org>
44125 * gnulib-tool (func_usage): Document option --no-libtool.
44126 Handle option --no-libtool.
44127 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44128 for changed semantics of $libtool variable.
44129 (func_import): Likewise. If libtool is not used, show this through
44130 an option --no-libtool.
44131 (func_create_testdir): Update.
44133 2006-07-29 Bruno Haible <bruno@clisp.org>
44135 * gnulib-tool (func_import): Extend error message about missing
44138 2006-07-29 Bruno Haible <bruno@clisp.org>
44140 * gnulib-tool (func_import): Don't create the $docbase directory if
44141 there is no file to store there.
44143 2006-07-29 Bruno Haible <bruno@clisp.org>
44145 * gnulib-tool (autoconf_minversion): If a --dir option is given and
44146 relevant, look for configure.ac there, not in the current directory.
44147 Also use a simple search for AC_PREREQ, not "autoconf --trace".
44149 2006-07-29 Bruno Haible <bruno@clisp.org>
44151 * gnulib-tool (SORT): New variable.
44152 (func_usage): Undocument --assume-autoconf option.
44153 Remove --assume-autoconf option handling.
44154 (autoconf_minversion): Determine from the contents of configure.ac.
44155 (func_import): Remove autoconf_minversion handling.
44156 Suggested by Eric Blake.
44158 2006-07-29 Bruno Haible <bruno@clisp.org>
44160 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44162 2006-07-29 Bruno Haible <bruno@clisp.org>
44164 * config/srclist.txt (*setenv.[ch]): Remove rules.
44166 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44168 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44170 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44172 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44175 2006-07-28 Simon Josefsson <jas@extundo.com>
44177 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44178 * modules/inet_pton (Depends-on): Likewise.
44180 2006-07-28 Simon Josefsson <jas@extundo.com>
44182 * m4/netinet_in_h.m4: New file.
44184 2006-07-28 Simon Josefsson <jas@extundo.com>
44186 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44189 2006-07-28 Simon Josefsson <jas@extundo.com>
44191 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44194 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
44196 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44197 setgid on directories only if they set these bits.
44198 * lib/modechange.h: Remove obsolete comment about masks.
44200 2006-07-28 Eric Blake <ebb9@byu.net>
44202 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44205 2006-07-28 Bruno Haible <bruno@clisp.org>
44207 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44209 2006-07-28 Bruno Haible <bruno@clisp.org>
44211 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44213 2006-07-28 Bruno Haible <bruno@clisp.org>
44215 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44216 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44218 Avoids link error on FreeBSD 4.x.
44219 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44221 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44223 * lib/mbswidth.c (iswcntrl): Likewise.
44225 2006-07-27 Bruno Haible <bruno@clisp.org>
44227 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44230 2006-07-27 Bruno Haible <bruno@clisp.org>
44232 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44233 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44236 2006-07-26 Eric Blake <ebb9@byu.net>
44238 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44240 2006-07-26 Eric Blake <ebb9@byu.net>
44242 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44243 like mingw that lack mkstemp.
44244 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44245 avoid compilation warning on mingw.
44247 2006-07-26 Bruno Haible <bruno@clisp.org>
44249 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44250 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44251 INT_FAST*_MIN, INTPTR_MIN.
44253 2006-07-25 Bruno Haible <bruno@clisp.org>
44255 * modules/version-etc (Depends-on): Add stdarg.
44257 2006-07-25 Bruno Haible <bruno@clisp.org>
44259 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44262 2006-07-25 Bruno Haible <bruno@clisp.org>
44264 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44265 defined in <stdarg.h> or config.h.
44267 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44269 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44270 (gl_STDIO_SAFER): Remove.
44272 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44274 * MODULES.html.sh (File stream based Input/Output):
44275 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44276 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44277 * modules/fopen-safer, modules/tmpfile-safer: New files.
44278 * modules/stdio-safer: Remove.
44280 2006-07-24 Bruno Haible <bruno@clisp.org>
44282 * modules/tmpdir: New file.
44283 * MODULES.html.sh (File system functions): Add it.
44285 2006-07-24 Bruno Haible <bruno@clisp.org>
44287 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44288 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44290 2006-07-24 Bruno Haible <bruno@clisp.org>
44292 * modules/clean-temp: New file.
44294 2006-07-24 Bruno Haible <bruno@clisp.org>
44296 * m4/tmpdir.m4: New file, from GNU gettext.
44298 2006-07-24 Bruno Haible <bruno@clisp.org>
44300 * lib/tmpdir.h: New file, from GNU gettext.
44301 * lib/tmpdir.c: New file, from GNU gettext.
44303 2006-07-24 Bruno Haible <bruno@clisp.org>
44305 * lib/clean-temp.h: New file, from GNU gettext.
44306 * lib/clean-temp.c: New file, from GNU gettext.
44308 2006-07-23 Eric Blake <ebb9@byu.net>
44310 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44311 (Depends-on): Add binary-io.
44313 2006-07-23 Eric Blake <ebb9@byu.net>
44315 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44317 2006-07-23 Eric Blake <ebb9@byu.net>
44319 * lib/tmpfile-safer.c: New file.
44320 * lib/stdio-safer.h (fopen_safer): Add prototype.
44321 * lib/stdio--.h (tmpfile): Make safer.
44323 2006-07-23 Bruno Haible <bruno@clisp.org>
44325 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44326 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44327 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44328 gl_linked_remove_at): Use it.
44330 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44331 and Simon Josefsson <jas@extundo.com>
44333 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44335 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44337 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44339 * modules/close-stream: New file.
44340 * modules/closeout (Description): Make it clear that it exits
44341 with a diagnostic on error.
44342 (Depends-on): Add close-stream. Remove fpending, stdbool.
44343 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44345 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44347 * m4/close-stream.m4: New file.
44349 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44351 * lib/close-stream.c, lib/close-stream.h: New files.
44353 2006-07-22 Bruno Haible <bruno@clisp.org>
44355 Merge from GNU gettext 0.15.
44357 2006-05-01 Bruno Haible <bruno@clisp.org>
44359 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44361 2006-07-22 Bruno Haible <bruno@clisp.org>
44363 * modules/javaversion: New file.
44364 * MODULES.html.sh (Java): Add javaversion.
44366 2006-03-12 Bruno Haible <bruno@clisp.org>
44368 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44370 2005-12-04 Bruno Haible <bruno@clisp.org>
44372 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44375 2006-06-21 Bruno Haible <bruno@clisp.org>
44377 Avoid warnings from recent versions of mcs.
44378 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44379 -o, -L, -r any more. Use options documented since mcs-1.0
44380 instead. Similarly for -g.
44382 2005-12-04 Bruno Haible <bruno@clisp.org>
44384 * build-aux/csharpcomp.sh.in: Suffix for resources is
44385 .resources, not .resource.
44387 2005-07-09 Bruno Haible <bruno@clisp.org>
44389 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44391 Reported by Mark Junker <mjscod@gmx.de>.
44393 2006-07-22 Bruno Haible <bruno@clisp.org>
44395 * modules/gettext: Upgrade to gettext-0.15.
44396 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44398 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44400 2006-07-22 Bruno Haible <bruno@clisp.org>
44402 Merge from GNU gettext 0.15.
44404 2006-03-25 Bruno Haible <bruno@clisp.org>
44406 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44408 2006-07-21 Bruno Haible <bruno@clisp.org>
44410 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44413 2006-05-09 Bruno Haible <bruno@clisp.org>
44415 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44416 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44417 for the conftestver execution.
44419 2006-05-01 Bruno Haible <bruno@clisp.org>
44421 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44422 optional target-version argument. Verify that the compiler
44423 groks source of the specified source-version, or add -source
44424 option as necessary. Verify that the compiler produces
44425 bytecode in the specified target-version, or add -target and
44426 -source options as necessary. Make the result of the test
44427 available as variable CONF_JAVAC. Also log error output in
44430 2006-03-11 Bruno Haible <bruno@clisp.org>
44432 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44434 2006-05-09 Bruno Haible <bruno@clisp.org>
44436 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44437 CLASSPATH_SEPARATOR to a semicolon.
44439 2006-03-12 Bruno Haible <bruno@clisp.org>
44441 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44442 available as variable CONF_JAVA, for subsequent autoconf
44443 tests. Also log error output in config.log.
44445 2006-07-19 Bruno Haible <bruno@clisp.org>
44447 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44448 that getline works on glibc2 systems. Needed to avoid trouble
44450 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44452 2005-12-04 Bruno Haible <bruno@clisp.org>
44454 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44455 launcher (untested).
44457 2005-12-04 Bruno Haible <bruno@clisp.org>
44459 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44461 2006-07-22 Bruno Haible <bruno@clisp.org>
44463 * gettext.m4: Update from GNU gettext-0.15.
44464 * nls.m4: Likewise.
44466 * inttypes-pri.m4: Likewise.
44467 * inttypes-h.m4: Renamed from inttypes.m4.
44468 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44470 2006-07-22 Bruno Haible <bruno@clisp.org>
44472 Merge from GNU gettext 0.15.
44474 2005-07-05 Bruno Haible <bruno@clisp.org>
44476 * printf-args.c (printf_fetchargs): Work around broken
44477 definition of wint_t on mingw.
44479 2005-02-12 Bruno Haible <bruno@clisp.org>
44481 * xallocsa.h: Add extern "C" for C++.
44483 2006-05-17 Bruno Haible <bruno@clisp.org>
44485 Cygwin portability.
44486 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44488 2006-04-30 Bruno Haible <bruno@clisp.org>
44490 * progreloc.c: Include <mach-o/dyld.h> if available.
44491 (find_executable): Use _NSGetExecutablePath when possible.
44493 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
44495 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44498 2005-12-29 Bruno Haible <bruno@clisp.org>
44500 * progreloc.c (set_program_name_and_installdir): Fix
44503 2005-12-04 Bruno Haible <bruno@clisp.org>
44505 Cygwin portability.
44506 * progreloc.c: Include <windows.h> also on Cygwin.
44507 (find_executable): Add support for Cygwin.
44508 (set_program_name_and_installdir): Handle also platforms with
44511 2006-07-11 Bruno Haible <bruno@clisp.org>
44513 * javacomp.c: Fix a comment.
44514 Reported by Jim Meyering.
44516 2006-04-30 Bruno Haible <bruno@clisp.org>
44518 * javacomp.h (compile_java_class): Add source_version,
44519 target_version arguments.
44520 * javacomp.c: Rewritten to choose only a compiler that
44521 respects the specified source_version and target_version.
44523 2006-06-27 Bruno Haible <bruno@clisp.org>
44525 Assume correct S_ISDIR macro.
44526 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44528 2006-07-22 Bruno Haible <bruno@clisp.org>
44530 * javaversion.h: New file, from GNU gettext.
44531 * javaversion.c: New file, from GNU gettext.
44532 * javaversion.java: New file, from GNU gettext.
44533 * javaversion.class: New file, from GNU gettext.
44535 2006-05-17 Bruno Haible <bruno@clisp.org>
44537 Cygwin portability.
44538 * javaexec.c (execute_java_class): Test for jview program
44541 2006-04-09 Bruno Haible <bruno@clisp.org>
44543 * fatal-signal.c: Don't include string.h.
44544 (at_fatal_signal): Use a copying loop instead of memcpy.
44546 2005-12-04 Bruno Haible <bruno@clisp.org>
44548 * csharpexec.c: Add support for 'clix' launcher (untested).
44549 (execute_csharp_using_sscli): New function.
44550 (execute_csharp_program): Call it.
44552 2006-06-21 Bruno Haible <bruno@clisp.org>
44554 Avoid warnings from recent versions of mcs.
44555 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44556 -o, -L, -r any more. Use options documented since mcs-1.0
44557 instead. Similarly for -g.
44559 2005-07-09 Bruno Haible <bruno@clisp.org>
44561 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44563 Reported by Mark Junker <mjscod@gmx.de>.
44565 2006-06-17 Bruno Haible <bruno@clisp.org>
44567 * config.charset: Update for NetBSD 3.0.
44569 2006-05-17 Bruno Haible <bruno@clisp.org>
44571 Cygwin portability.
44572 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44574 2006-05-16 Bruno Haible <bruno@clisp.org>
44576 * localcharset.c [CYGWIN]: Include <windows.h>.
44577 (get_charset_aliases): For Cygwin, return the same CPxxx
44578 aliases list as under WIN32.
44579 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44580 the environment variables. Fall back to GetACP().
44582 2006-04-05 Bruno Haible <bruno@clisp.org>
44584 * config.charset: Update Juan Manuel Guerrero's address.
44586 2005-02-12 Bruno Haible <bruno@clisp.org>
44588 * allocsa.h: Add extern "C" for C++.
44590 2005-02-10 Bruno Haible <bruno@clisp.org>
44592 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44593 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44595 2006-07-22 Bruno Haible <bruno@clisp.org>
44597 * gettext.h: Update to GNU gettext-0.15.
44599 2006-07-22 Bruno Haible <bruno@clisp.org>
44601 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44602 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44603 lib-prefix.m4, longdouble.m4, ssize_t.m4.
44605 2006-07-21 Eric Blake <ebb9@byu.net>
44607 * modules/stdlib-safer: New file.
44608 * MODULES.html.sh (File stream based Input/Output): Add
44611 2006-07-21 Eric Blake <ebb9@byu.net>
44613 * lib/stdlib-safer.h: New file from coreutils, required by
44616 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
44618 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44620 2006-07-20 Bruno Haible <bruno@clisp.org>
44622 * gnulib-tool: Recognize new option --assume-autoconf.
44623 (autoconf_minversion): New variable.
44624 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44626 2006-07-20 Bruno Haible <bruno@clisp.org>
44628 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44630 2006-07-19 Derek R. Price <derek@ximbiot.com>
44632 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44633 Reindent and repaginate.
44635 2006-07-19 Derek Price <derek@ximbiot.com>
44637 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
44640 2006-07-17 Bruno Haible <bruno@clisp.org>
44642 * modules/list: New file.
44643 * modules/array-list: New file.
44644 * modules/carray-list, modules/carray-list-tests: New files.
44645 * modules/linked-list, modules/linked-list-tests: New files.
44646 * modules/avltree-list, modules/avltree-list-tests: New files.
44647 * modules/rbtree-list, modules/rbtree-list-tests: New files.
44648 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44649 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44650 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44651 * modules/oset: New file.
44652 * modules/array-oset: New file.
44653 * modules/avltree-oset, modules/avltree-oset-tests: New files.
44654 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44655 * tests/test-carray_list.c: New file.
44656 * tests/test-linked_list.c: New file.
44657 * tests/test-avltree_list.c: New file.
44658 * tests/test-rbtree_list.c: New file.
44659 * tests/test-linkedhash_list.c: New file.
44660 * tests/test-avltreehash_list.c: New file.
44661 * tests/test-rbtreehash_list.c: New file.
44662 * tests/test-avltree_oset.c: New file.
44663 * tests/test-rbtree_oset.c: New file.
44664 * MODULES.html.sh (Container data structures): New section.
44666 2006-07-17 Bruno Haible <bruno@clisp.org>
44668 * m4/gl_list.m4: New file.
44670 2006-07-17 Bruno Haible <bruno@clisp.org>
44672 * lib/gl_list.h: New file.
44673 * lib/gl_list.c: New file.
44674 * lib/gl_array_list.h: New file.
44675 * lib/gl_array_list.c: New file.
44676 * lib/gl_carray_list.h: New file.
44677 * lib/gl_carray_list.c: New file.
44678 * lib/gl_linked_list.h: New file.
44679 * lib/gl_linked_list.c: New file.
44680 * lib/gl_anylinked_list1.h: New file.
44681 * lib/gl_anylinked_list2.h: New file.
44682 * lib/gl_avltree_list.h: New file.
44683 * lib/gl_avltree_list.c: New file.
44684 * lib/gl_anyavltree_list1.h: New file.
44685 * lib/gl_anyavltree_list2.h: New file.
44686 * lib/gl_rbtree_list.h: New file.
44687 * lib/gl_rbtree_list.c: New file.
44688 * lib/gl_anyrbtree_list1.h: New file.
44689 * lib/gl_anyrbtree_list2.h: New file.
44690 * lib/gl_anytree_list1.h: New file.
44691 * lib/gl_anytree_list2.h: New file.
44692 * lib/gl_linkedhash_list.h: New file.
44693 * lib/gl_linkedhash_list.c: New file.
44694 * lib/gl_anyhash_list1.h: New file.
44695 * lib/gl_anyhash_list2.h: New file.
44696 * lib/gl_avltreehash_list.h: New file.
44697 * lib/gl_avltreehash_list.c: New file.
44698 * lib/gl_rbtreehash_list.h: New file.
44699 * lib/gl_rbtreehash_list.c: New file.
44700 * lib/gl_anytreehash_list1.h: New file.
44701 * lib/gl_anytreehash_list2.h: New file.
44703 * lib/gl_oset.h: New file.
44704 * lib/gl_oset.c: New file.
44705 * lib/gl_array_oset.h: New file.
44706 * lib/gl_array_oset.c: New file.
44707 * lib/gl_avltree_oset.h: New file.
44708 * lib/gl_avltree_oset.c: New file.
44709 * lib/gl_rbtree_oset.h: New file.
44710 * lib/gl_rbtree_oset.c: New file.
44711 * lib/gl_anytree_oset.h: New file.
44713 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44715 * m4/mkancesdirs.m4: New file.
44716 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44717 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44718 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44721 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44723 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44724 * lib/mkancesdirs.h: New files.
44725 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44726 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44727 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
44728 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44729 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
44730 callers changed. Revamp internals significantly, by not
44731 attempting to create directories that are temporarily more
44732 permissive than the final results. Do not attempt to use
44733 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44734 This removes some race conditions, fixes some bugs, and simplifies
44735 things. Use new dirchownmod function to do owner and mode changes.
44736 * lib/mkdir-p.h: Likewise.
44737 * lib/modechange.c (octal_to_mode): New function.
44738 (struct mode_change): New member mentioned.
44739 (make_node_op_equals): New arg mentioned. All callers changed.
44740 (mode_compile): Keep track of which mode bits the user has explicitly
44742 (mode_adjust): New arg DIR, so that we implement the X op correctly.
44743 New arg PMODE_BITS, to keep track of which mode bits the user
44744 mentioned; it treats S_ISUID and S_ISGID speciall.
44745 All callers changed.
44746 * lib/modechange.h: Likewise.
44748 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44750 * MODULES.html.sh: Add mkancestors.
44751 * modules/mkancesdirs: New module.
44752 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44753 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44754 The chdir-safer and afs files are now orphans; I'll remove them
44755 unless someone speaks up.
44756 Add lib/dirchownmod.c, lib/dirchownmod.h.
44757 (Depends-on): Remove alloca, chown, save-cwd, dirname.
44758 Add lchown, mkancesdirs.
44759 (Maintainer): Add self.
44761 2006-07-15 Karl Berry <karl@gnu.org>
44763 * gnulib-tool: help message wording/arrangement.
44765 2006-07-14 Simon Josefsson <jas@extundo.com>
44767 * doc/gnulib.texi (Libtool and Windows): New section.
44769 2006-07-12 Simon Josefsson <jas@extundo.com>
44771 * modules/gendocs (License): Fix license, approved by Karl.
44773 2006-07-12 Eric Blake <ebb9@byu.net>
44775 * MODULES.html.sh: Add gendocs.
44777 2006-07-11 Eric Blake <ebb9@byu.net>
44779 * modules/fdl: New module, to install doc/fdl.texi.
44780 * MODULES.html.sh: Add new section for documentation modules.
44781 * gnulib-tool: Avoid space-tab.
44782 (--doc-base): New option, to manage files from doc.
44784 2006-07-11 Eric Blake <ebb9@byu.net>
44786 * m4/absolute-header.m4: Fix comments to match recent change.
44788 2006-07-11 Eric Blake <ebb9@byu.net>
44790 * gnulib-tool: List --doc-base before --tests-base.
44792 2006-07-11 Derek R. Price <derek@ximbiot.com>
44794 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44796 2006-07-11 Bruno Haible <bruno@clisp.org>
44798 * README: Mention where to put documentation.
44800 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44802 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44804 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44806 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44809 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44811 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44812 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44813 "no/such/file/stdint.h" when there is no such file, so that
44814 the resulting C code can be parsed by dodgy compilers.
44815 Problems reported by Bob Proulx.
44817 2006-07-10 Derek R. Price <derek@ximbiot.com>
44819 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44820 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44821 macros into the GNU _D_EXACT_NAMLEN.
44822 * lib/savedir.c: Likewise.
44823 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44825 2006-07-10 Derek R. Price <derek@ximbiot.com>
44826 and Paul Eggert <eggert@cs.ucla.edu>
44828 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44830 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44831 macros into the GNU _D_EXACT_NAMLEN.
44833 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44835 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44836 around the absolute name, to work around a problem with the HP-UX
44837 11.23 native C compiler, reported by Bob Proulx.
44839 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44841 * doc/maintain.texi, make-stds.texi: Sync from
44842 <http://savannah.gnu.org/projects/gnustandards>.
44844 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44846 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44848 2006-07-09 Jim Meyering <jim@meyering.net>
44850 * m4/glob.m4: Remove a doubled word in a comment.
44852 2006-07-09 Jim Meyering <jim@meyering.net>
44854 * lib/argp-pv.c: Remove a doubled word in a comment.
44855 * lib/check-version.c (check_version): Likewise.
44856 * lib/javacomp.c (compile_java_class): Likewise.
44858 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
44860 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44861 for the benefit of people using Autoconf 2.60. If you want to
44862 support older Autoconf versions you can copy m4/onceonly_2_57.m4
44863 (or m4/onceonly.m4, if pre-2.57) manually.
44865 2006-07-08 Jim Meyering <jim@meyering.net>
44867 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44869 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44870 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44873 2006-07-08 Jim Meyering <jim@meyering.net>
44875 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44877 2006-07-07 Simon Josefsson <jas@extundo.com>
44879 * tests/test-crc.c: Change expected crc value, the test vector
44880 were probably computed using the old broken crc.c?
44882 2006-07-06 Simon Josefsson <jas@extundo.com>
44884 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44885 now the canonical place for the M4 file).
44887 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44888 from the sys_socket dependency now.
44890 * modules/inet_pton (Files): Ditto.
44892 * modules/inet_ntop (Files): Ditto.
44894 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44896 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44897 not gl_PREREQ_GETUSERSHELL.
44899 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44901 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44902 with only one argument, for Autoconf 2.60.
44903 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44904 expand to nothing, so add a shell command to avoid syntax error.
44905 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44907 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44909 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44911 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44913 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44914 no longer needed. Check for isblank decl.
44915 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44916 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44919 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44921 * lib/getloadavg.c: Use __VMS, not VMS.
44922 * lib/getopt.c: Likewise.
44923 * lib/getpagesize.h: Likewise.
44924 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44925 and probably does not work.
44927 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44929 * lib/.cppi-disable: Add wcwidth.
44930 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
44931 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44932 (ISGRAPH): Remove. All uses changed to isgraph.
44933 (FOLD) [!defined _LIBC]: Remove special case.
44934 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44935 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44937 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44940 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44942 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44943 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44944 brackets. Other minor changes to suppress some compiler
44947 2006-07-06 Derek R. Price <derek@ximbiot.com>
44948 and Paul Eggert <eggert@cs.ucla.edu>
44950 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44951 of invoking obsolescent AC_HEADER_DIRENT macro.
44952 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44953 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44954 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44955 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44956 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44957 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44958 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44959 * m4/readdir.m4: Remove; no longer needed.
44961 2006-07-06 Derek R. Price <derek@ximbiot.com>
44962 and Paul Eggert <eggert@cs.ucla.edu>
44964 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44965 Don't worry about this obsolete case any more.
44966 (HAVE_DIR): Remove. All uses removed; we now assume you can read
44968 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44969 worry about this obsolete case any more.
44970 * lib/fts.c: Likewise.
44971 * lib/getcwd.c: Likewise.
44972 * lib/glob.h: Likewise.
44973 * lib/savedir.c: Likewise.
44975 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44977 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44978 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44979 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44982 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44983 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44984 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44986 * m4/getdate.m4 (gl_GETDATE): Likewise.
44987 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44988 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44989 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44990 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44991 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44992 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44993 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44996 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44998 * lib/memcasecmp.c: Include <limits.h>.
44999 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45000 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45001 Don't assume isdigit succeeds only on '0' through '9'.
45003 2006-07-05 Eric Blake <ebb9@byu.net>
45005 * modules/getaddrinfo (Depends-on): Add snprintf.
45007 2006-07-05 Eric Blake <ebb9@byu.net>
45009 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45010 to avoid 'header present but could not be compiled' on cygwin.
45012 2006-07-05 Eric Blake <ebb9@byu.net>
45014 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45015 missing from netdb.h.
45016 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45018 2006-07-05 Derek R. Price <derek@ximbiot.com>
45020 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45022 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45023 * m4/getdate.m4 (gl_GETDATE): Likewise.
45024 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45025 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45026 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45027 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45028 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45030 2006-07-05 Derek R. Price <derek@ximbiot.com>
45032 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45033 All uses of is_space replaced by isspace.
45034 * lib/exit.h: Don't talk about STDC_HEADERS.
45035 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
45036 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45037 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
45038 replaced by isprint etc.
45039 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45040 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45041 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45042 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45043 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45044 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45046 2006-07-05 Bruno Haible <bruno@clisp.org>
45048 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45049 the function exists, before testing against AIX.
45050 Reported by Martin Lambers <marlam@marlam.de>.
45052 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45054 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45055 From Mark D. Baushke.
45057 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45059 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45060 to the absolute name, not just one, to bypass Sun C 5.8's
45061 "warning: #include of /usr/include/... may be non-portable".
45063 2006-07-04 Eric Blake <ebb9@byu.net>
45065 * modules/dirname-tests: New test module.
45066 * tests/test-dirname.c: New file, replacing dirname.c
45067 TEST_DIRNAME section that was recently deleted.
45069 2006-07-04 Bruno Haible <bruno@clisp.org>
45071 Assume ANSI C header files and <ctype.h> functions.
45072 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45073 (mbsnwidth): Use isprint, iscntrl instead.
45075 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45077 Merge from coreutils.
45078 * MODULES.html.sh: Add xstrtold.
45079 * modules/xstrtold: New file.
45080 * modules/cycle-check (Files): Add lib/same-inode.h.
45081 * modules/dirname (Files): Add m4/double-slash-root.m4.
45082 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45083 * modules/mkdir-p (Files): Add lib/same-inode.h.
45084 * modules/same (Files): Add lib/same-inode.h.
45086 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45088 * m4/absolute-header.m4: Renamed from full-header-path.m4.
45089 This is to keep the terminology clean; POSIX talks about
45090 "absolute pathnames", not "full pathnames", but the GNU
45091 Coding Standards say to use "path" for something else;
45092 so use "absolute" to keep both sides happy.
45093 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45094 Set gl_absolute_header, not gl_full_header_path.
45095 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45096 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45099 Merge from coreutils.
45101 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45103 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45104 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45105 want to require the building of c-strtod.o.
45106 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45107 needs -lm directly.
45108 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45110 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45112 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45113 --as-needed option if available. Problem reported by Albert Chin in
45114 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45115 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45116 cc merely issues a bunch of annoying warnings for --as-needed
45117 (this problem was reported by Bob Proulx). Also, try linking with
45118 -lm to detect a bug in binutils 2.16 (this problem was reported
45119 by Ralf Wildenhues).
45121 2006-06-18 Jim Meyering <jim@meyering.net>
45123 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45124 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45126 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45127 also check for glibc-2.4's abort-inducing bug.
45129 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45130 Low-probability clean-up should be to use rmdir to get rid of
45131 the just-created directory, not unlink.
45133 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45134 configure fail, and request a bug report to inform us about it.
45135 Add a comment that, barring reports to the contrary, in 2007 we'll
45136 assume ftruncate is universally available.
45138 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45140 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45142 2006-03-12 Jim Meyering <jim@meyering.net>
45144 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45145 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45146 * m4/same.m4 (gl_SAME): Likewise.
45147 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45149 2006-03-11 Eric Blake <ebb9@byu.net>
45151 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45152 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45153 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45154 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45156 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45158 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45159 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
45160 reported by Mark D. Baushke, one in
45161 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45163 Merge from coreutils.
45165 * lib/.cppi-disable: Add stdint_.h.
45166 * lib/.cvsignore: Add stdint.h.
45168 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45170 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45171 both double and long double versions.
45172 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
45173 * lib/xstrtold.c: New file.
45174 * lib/xstrtod.h (xstrtold): New decl.
45176 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
45178 * lib/filemode.c (setst): Remove.
45179 (strmode): Rewrite to avoid setst. This makes the code shorter,
45180 (arguably) clearer, and the generated code is a bit smaller on my
45181 Debian GNU/Linux stable x86 host.
45183 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45185 * lib/filemode.c: Include "filemode.h" first, to test the interface.
45186 Assume that filemode.h includes sys/types.h and sys/stat.h.
45187 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45188 (ftypelet): Reorder to put common cases first, for efficiency.
45189 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
45191 (strmode): Renamed from mode_string, and now stores 12 bytes instead
45192 of 10, for compatibility with FreeBSD. All callers changed.
45193 (filemodestring): Now stores 12 bytes instead of 10, and sets file
45194 types that can't be deduced solely from st_mode. First arg is now a
45196 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45197 (strmode): Renamed from mode_string.
45198 (filemodestring): New decl.
45199 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45200 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45202 (S_ISPORT, S_ISWHT): New macros, if not already defined.
45204 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
45206 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45207 fsusage.h now does that. Include fsusage.h first, to test interface.
45208 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
45209 at most one method (the old code could have generated decls that
45210 didn't conform to C89, not that this was ever exercised).
45211 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45213 2006-03-19 Jim Meyering <jim@meyering.net>
45215 Work even in a chroot where d_ino values for entries in "/"
45216 don't match the stat.st_ino values for the same names.
45217 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45218 number, iterate through all entries again, using lstat instead.
45219 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45220 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45222 * lib/getcwd.c (__getcwd): Clarify a comment.
45223 Use memcpy in place of a call to strcpy.
45225 2006-03-12 Jim Meyering <jim@meyering.net>
45227 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45228 matches that of the current directory (which we're about to chdir ".."
45229 out of), then save the dev-ino of the parent, instead.
45231 * lib/same-inode.h (SAME_INODE): New file/macro.
45232 * lib/chdir-safer.c (SAME_INODE): Remove definition.
45233 Include "same-inode.h", instead.
45234 * lib/same.c: Likewise.
45235 * lib/cycle-check.h: Include "same-inode.h".
45236 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45237 * lib/cycle-check.c (SAME_INODE): Remove definition.
45238 * lib/root-dev-ino.h: Include "same-inode.h".
45240 2006-03-11 Eric Blake <ebb9@byu.net>
45242 * lib/same.c (same_name): s/base_name/last_component/
45243 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45244 * lib/filenamecat.c (file_name_concat): Likewise.
45246 2006-03-11 Eric Blake <ebb9@byu.net>,
45247 Paul Eggert <eggert@cs.ucla.edu>
45249 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45250 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45252 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45253 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45254 (last_component): New method.
45255 * lib/dirname.c (dir_len): Determine when drive letters need a
45256 subsequent slash. Preserve // when it is special.
45257 (dir_name): Don't append dot when drive letter is absolute.
45258 [TEST_DIRNAME]: Move into a full-blown gnulib test.
45259 * lib/basename.c (base_name): New semantics - malloc the result.
45260 Preserve // when it is special. Preserve relative files that look
45261 like drive letters.
45262 (base_len): Preserve // when it is special.
45263 (last_component): New method, similar to old base_name semantics.
45264 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45265 base_name. Strip redundant slashes from ///.
45267 2006-07-03 Jim Meyering <jim@meyering.net>
45269 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45270 macro is used before the first cycle_check call.
45272 2006-07-03 Eric Blake <ebb9@byu.net>
45274 * modules/dirname (Depends-on): Add xstrndup.
45276 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45278 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45279 test cases, so that config.log is a bit easier to follow.
45281 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45283 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45284 both are 64 bits, since this seems to be the tradition, and this
45285 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45286 we ever run into a host that prefers long long to long in this
45287 case, we'll need another configure-time test. Problem reported by
45290 2006-07-02 Eric Blake <ebb9@byu.net>
45292 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45294 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45296 * modules/inttypes (Depends-on): No longer depends on stdint.
45297 * modules/stdint (Description): Say more about assumptions.
45298 Say that the fast types might differ. Say macros are used.
45299 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45300 (Makefile.am): Revise list of substituted symbols to match
45302 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45303 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45304 * tests/test-stdint.c (verify_same_types)
45305 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45306 the code conforms to C99/C89.
45307 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45308 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45310 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45312 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45313 but fix a bug, by requiring at least 64 bits.
45314 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45315 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45316 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45317 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45319 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45320 changes. Make 2.59 a prerequisite. Check and substitute for
45321 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45322 inttypes.h. Do not use special include files; just use the
45323 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45324 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45325 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45326 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45327 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45328 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45329 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45330 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45331 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45332 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45333 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45334 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45335 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45336 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45337 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45338 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45339 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45340 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45341 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45342 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45343 WINT_MAX. Check for C99 conformance more strictly, by detecting
45344 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45345 not check for things that C99 does not require, e.g., int8_t. If
45346 a test isn't needed unless <stdint.h> isn't working, and is
45347 unlikely to be needed for any other reason, then don't do it
45348 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45349 size_t, since we assume C89 freestanding at least. Do not check
45350 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45351 the right thing even if the types are not defined. Instead use:
45352 (gl_STDINT_TYPE_PROPERTIES): New macro.
45353 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45354 testing whether <sys/types.h> clashes, as Autoconf does this for
45355 us now. All uses removed.
45356 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45357 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45358 (gl_CHECK_TYPE_SAME):
45359 Remove; no longer needed.
45360 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45361 exists, since we'll return 0 anyway in that case.
45362 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45364 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45366 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45367 possible collision with system files.
45368 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45369 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45370 WCHAR_MIN and WCHAR_MAX in this case.
45371 (<stddef.h>): Do not include; no longer needed.
45372 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45373 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45374 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45375 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45376 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45377 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45378 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45379 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45380 !defined(__c99))]: Include in this case too, since it's harmless
45382 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45383 dangerous to do so.
45384 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45385 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45386 (_STDINT_MIN, _STDINT_MAX): New macros.
45387 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45388 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45389 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45390 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45391 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45392 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45393 macros, not typedefs; this simplifies things quite a bit.
45394 Use long int for all types narrower than int64_t.
45395 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45396 Define in terms of long long int or int64_t or long int,
45397 not int64_t or int32_t. This saves some compile-time testing.
45398 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45399 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45400 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45401 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45402 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45403 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45404 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45405 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45406 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45407 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45408 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45409 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45410 undef any previous version and define our own version, for
45411 simplicity and consistency with the new macros for types.
45412 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45413 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45414 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45415 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45416 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45417 @WINT_T_SUFFIX@ to keep things simple here.
45418 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45419 Simplify by assuming typical 8/16/32/64 host, since we're
45420 already doing that elsewhere anyway.
45421 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45422 and assume long long int is 64 bits if available. This
45423 speeds up 'configure'.
45425 2006-07-01 Eric Blake <ebb9@byu.net>
45427 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45428 Reported by Andreas Buening.
45430 2006-07-01 Eric Blake <ebb9@byu.net>
45432 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45434 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45436 * lib/getaddrinfo.c: fixed typo
45438 2006-06-29 Jim Meyering <jim@meyering.net>
45440 * modules/strftime (Maintainer): Add my name, since with the
45441 FPRINTFTIME changes strftime.c has forked from glibc.
45443 2006-06-29 Eric Blake <ebb9@byu.net>
45445 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45447 2006-06-29 Eric Blake <ebb9@byu.net>
45449 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45451 2006-06-29 Eric Blake <ebb9@byu.net>
45453 * lib/stat_.h: New file.
45455 2006-06-29 Eric Blake <ebb9@byu.net>
45457 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45458 unused static function.
45460 2006-06-29 Eric Blake <ebb9@byu.net>
45462 * doc/functions.texi (Function Portability): Document missing lstat
45465 2006-06-29 Eric Blake <ebb9@byu.net>
45467 * MODULES.html.sh: Add sys_stat.
45468 * modules/sys_stat: New module.
45469 * modules/mkstemp (Depends-on): Add sys_stat.
45471 2006-06-29 Derek R. Price <derek@ximbiot.com>
45473 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45475 2006-06-29 Derek R. Price <derek@ximbiot.com>
45477 * m4/c-bs-a.m4: Removed.
45479 2006-06-29 Derek R. Price <derek@ximbiot.com>
45481 * lib/strftime.c: Assume strftime() exists.
45483 2006-06-29 Derek Price <derek@ximbiot.com>
45485 * modules/c-bs-a: Removed - \a is C89.
45486 * MODULES.html.sh: Remove c-bs-a.
45488 2006-06-29 Bruno Haible <bruno@clisp.org>
45490 * modules/wcwidth (License): Change to LGPL.
45492 2006-06-28 Simon Josefsson <jas@extundo.com>
45494 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
45497 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45500 2006-06-28 Simon Josefsson <jas@extundo.com>
45502 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45504 2006-06-28 Simon Josefsson <jas@extundo.com>
45506 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45507 functions there. It will succeed on Windows XP, but on Windows
45508 2000 and (presumably) earlier, it will fail, and use the internal
45510 (use_win32_p): New function.
45511 (getaddrinfo): Use strtoul on servname, to support numeric ports.
45512 Support AI_NUMERICSERV to disable getservbyname.
45513 (getnameinfo): New function, only supports
45514 NI_NUMERICHOST|NI_NUMERICSERV for now.
45516 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45517 only have some of them. Add AI_NUMERICSERV. Add prototype for
45520 2006-06-28 Eric Blake <ebb9@byu.net>
45522 * modules/wcwidth: New file.
45523 * modules/mbchar (Depends-on): Add wcwidth.
45524 * modules/mbswidth (Depends-on): Add wcwidth.
45525 * MODULES.html.sh: Add wcwidth.
45527 2006-06-28 Eric Blake <ebb9@byu.net>
45529 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45530 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45532 2006-06-28 Eric Blake <ebb9@byu.net>
45534 * lib/xvasprintf.h: Fix comments.
45536 2006-06-28 Eric Blake <ebb9@byu.net>
45538 * lib/mbchar.h (wcwidth): Include wcwidth.h.
45539 * lib/mbswidth.c (wcwidth): Move from here...
45540 * lib/wcwidth.h: ...to this new file.
45542 2006-06-28 Derek R. Price <derek@ximbiot.com>
45544 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45546 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45548 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45550 2006-06-28 Derek R. Price <derek@ximbiot.com>
45552 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
45553 Autoconf 2.60 says this stuff was obsolete.
45555 2006-06-28 Bruno Haible <bruno@clisp.org>
45557 * modules/wcwidth (Files): Add m4/wchar_t.m4.
45559 2006-06-28 Bruno Haible <bruno@clisp.org>
45561 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45564 2006-06-28 Bruno Haible <bruno@clisp.org>
45566 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45567 declaration for wcwidth.
45568 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45570 2006-06-28 Bruno Haible <bruno@clisp.org>
45572 * lib/mkdtemp.c [MINGW]: Include <io.h>.
45573 (mkdir): Define using _mkdir.
45575 2006-06-28 Bruno Haible <bruno@clisp.org>
45577 * lib/getaddrinfo.h: Fix POSIX URL.
45578 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45580 (use_win32_p): Make static.
45581 (getaddrinfo): Reject service name if it is empty or does not consist
45582 solely of decimal digits, or if its value is > 65535.
45583 (getnameinfo): Remove useless casts.
45585 2006-06-27 Simon Josefsson <jas@extundo.com>
45587 * modules/sys_select: New file, suggested by Bruno Haible, Paul
45588 Eggert and Martin Lambers.
45590 2006-06-27 Simon Josefsson <jas@extundo.com>
45592 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45593 Eggert and Martin Lambers.
45595 2006-06-27 Bruno Haible <bruno@clisp.org>
45597 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45598 result to 0, not to empty.
45599 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45601 2006-06-27 Bruno Haible <bruno@clisp.org>
45603 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45605 2006-06-26 Simon Josefsson <jas@extundo.com>
45607 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45610 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
45612 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45613 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
45614 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45616 2006-06-26 Mark D. Baushke <mdb@gnu.org>
45618 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45620 2006-06-26 Bruno Haible <bruno@clisp.org>
45622 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45624 2006-06-26 Bruno Haible <bruno@clisp.org>
45626 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45628 2006-06-26 Bruno Haible <bruno@clisp.org>
45630 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45631 SGI C compiler in pre-C99 mode.
45632 Suggested by Mark D. Baushke and Larry Jones.
45634 2006-06-26 Bruno Haible <bruno@clisp.org>
45636 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45638 Reported by Mark D. Baushke and Larry Jones.
45640 2006-06-26 Bruno Haible <bruno@clisp.org>
45642 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45644 Suggested by Mark D. Baushke and Larry Jones.
45646 2006-06-23 Simon Josefsson <jas@extundo.com>
45647 Bruno Haible <bruno@clisp.org>
45649 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45650 Emit mostlyclean-local rule.
45651 (func_emit_tests_Makefile_am): Likewise.
45652 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45654 2006-06-23 Mark D. Baushke <mdb@gnu.org>
45656 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45658 2006-06-23 Bruno Haible <bruno@clisp.org>
45660 * tests/test-stdint.c: Update to match ISO C 99 Technical
45663 2006-06-23 Bruno Haible <bruno@clisp.org>
45665 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45667 2006-06-23 Bruno Haible <bruno@clisp.org>
45669 * lib/stdint_.h: Treat IRIX like OpenBSD.
45671 2006-06-23 Bruno Haible <bruno@clisp.org>
45673 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45674 ISO C 99 Technical Corrigendum 1.
45676 2006-06-22 Simon Josefsson <jas@extundo.com>
45678 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45681 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
45683 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45684 needed. Some compiler complained about some of them. Problem reported
45686 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45688 2006-06-21 Simon Josefsson <jas@extundo.com>
45690 * tests/test-getaddrinfo.c: New file.
45692 * modules/getaddrinfo-tests: New file.
45694 * MODULES.html.sh: Add inet_pton.
45696 * modules/inet_pton: New file.
45698 2006-06-21 Simon Josefsson <jas@extundo.com>
45700 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
45701 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
45702 of using the (limited) gnulib implementation on Windows XP.
45704 * m4/inet_pton.m4: New file.
45706 2006-06-21 Simon Josefsson <jas@extundo.com>
45708 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45711 * lib/socket_.h: Don't define WINVER.
45713 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45714 slightly modified to work in gnulib.
45716 2006-06-21 Simon Josefsson <jas@extundo.com>
45718 * doc/gnulib.texi (Windows sockets): Add.
45720 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
45722 * lib/read-file.c (fread_file): Start with buffer allocation of
45723 0 bytes rather than 1 byte; this simplifies the code.
45724 Don't invoke feof; it's not needed. Refactor to avoid duplicate
45725 code to free buffer and save/restore errno.
45726 (internal_read_file): Remove unused local.
45728 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
45730 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45731 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45732 Problem reported by Denis Excoffier in
45733 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45735 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45737 * modules/sys_socket, modules/socklen: Include sys/types since
45738 FreeBSD 4.x's sys/socket.h needs it.
45740 2006-06-19 Simon Josefsson <jas@extundo.com>
45742 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45744 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45746 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45748 2006-06-19 Bruno Haible <bruno@clisp.org>
45750 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45751 and FULL_PATH_INTTYPES_H in angle brackets.
45752 Reported by Mark D. Baushke <mdb@gnu.org>.
45754 2006-06-17 Eric Blake <ebb9@byu.net>
45756 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45759 2006-06-17 Bruno Haible <bruno@clisp.org>
45761 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45764 2006-06-17 Bruno Haible <bruno@clisp.org>
45766 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45767 whether errno is declared. Assume <errno.h> declares errno.
45769 2006-06-17 Bruno Haible <bruno@clisp.org>
45771 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45773 2006-06-17 Bruno Haible <bruno@clisp.org>
45775 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45776 problem on Solaris 2.5.1.
45778 2006-06-16 Eric Blake <ebb9@byu.net>
45780 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45781 * lib/unicodeio.c [!defined errno]: Likewise.
45782 * lib/strtol.c [!defined errno]: Likewise.
45783 * lib/strtod.c [!defined errno]: Likewise.
45785 2006-06-15 Eric Blake <ebb9@byu.net>
45787 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45789 2006-06-15 Eric Blake <ebb9@byu.net>
45791 * config/srclist.txt (ssize_t.m4): Lose sync.
45793 2006-06-15 Bruno Haible <bruno@clisp.org>
45795 * modules/stdint (Files): Include m4/full-header-path.m4,
45796 m4/size_max.m4, m4/wchar_t.m4.
45797 (Makefile.am): Many more substitutions.
45798 * modules/stdint-tests: New file.
45799 * tests/test-stdint.c: New file.
45801 2006-06-15 Bruno Haible <bruno@clisp.org>
45803 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45804 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45805 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45806 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45807 gl_CHECK_TYPE_SAME): New macros.
45809 2006-06-15 Bruno Haible <bruno@clisp.org>
45811 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45813 2006-06-15 Bruno Haible <bruno@clisp.org>
45815 * lib/stdint_.h: Rewritten to be fully auto-configured.
45816 Fixes bug on HP-UX/IA64.
45818 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45820 * lib/getdate.y (__attribute__): Don't define if already defined.
45821 Problem reported by Larry Jones.
45822 * lib/utimens.c (__attribute__): Likewise.
45824 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45826 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45827 reported by Andreas Schwab.
45829 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45830 Bruno Haible <bruno@clisp.org>
45832 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45833 check for the declaration of strnlen and a run test that exposes the
45834 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45837 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45838 Bruno Haible <bruno@clisp.org>
45840 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45842 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45844 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45845 compile test, for Tru64 4.0D.
45847 2006-05-28 Karl Berry <karl@gnu.org>
45849 * config/srclist.txt (printf-args.c): lose sync.
45851 2006-05-26 Martin Lambers <marlam@marlam.de>
45853 * lib/getpass.c: Updates the test for the native W32 API, and adds
45854 missing includes, thus fixing compilation warnings.
45856 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
45858 * lib/exclude.c (exclude_fnmatch): New function.
45859 (excluded_file_name): Call exclude_fnmatch.
45860 * lib/exclude.h (excluded_file_name): New prototype
45862 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
45864 * lib/tempname.c (small_open, large_open): New macros.
45865 (__open, __open64) [!_LIBC]: Remove.
45866 (__gen_tempname): Use small_open and large_open instead of __open
45867 and __open64. This fixes a portability bug on HP-UX 11.11i
45868 reported by Simon Wing-Tang in
45869 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45871 2006-05-24 Bruno Haible <bruno@clisp.org>
45873 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45874 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45875 Reported by Thorsten Maerz <torte@netztorte.de> via
45876 Aaron Stone <aaron@serendipity.cx>.
45878 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45880 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45881 gl_ rather than jm_. Link, don't run, so that cross-compiles are
45882 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
45883 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45884 not really conditional on the cache.
45885 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45887 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45889 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45890 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45891 (my_usleep): Don't mishandle maximum value.
45893 2006-05-19 Jim Meyering <jim@meyering.net>
45895 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
45897 2006-05-17 Bruno Haible <bruno@clisp.org>
45899 Cygwin portability.
45900 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45902 2006-05-17 Bruno Haible <bruno@clisp.org>
45904 * lib/stdint_.h: Fix recognition of Cygwin.
45906 2006-05-15 Bruno Haible <bruno@clisp.org>
45908 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45909 on libtool patch by Ralf Wildenhues.
45911 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
45913 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45914 test for C99 conformance; (bool) 0.5 is an integer constant
45915 expression, but (bool) -0.5 is not. Problem reported by Fedor
45916 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45918 2006-05-11 Simon Josefsson <jas@extundo.com>
45920 * m4/xvasprintf.m4: Fix obvious typo.
45922 2006-05-11 Jim Meyering <jim@meyering.net>
45924 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
45927 2006-05-10 Simon Josefsson <jas@extundo.com>
45929 * lib/md4.c: Typo fix, update copyright years.
45930 (K1, K2): Don't use L because it turn computations into 64-bit on
45933 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
45935 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45936 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45937 unwanted sign propagation, e.g., on hosts with 64-bit int.
45938 There still are some problems with reeelly weird theoretical hosts
45939 (e.g., 33-bit int) but it's not worth worrying about now.
45940 * lib/sha1.c (rol): Likewise.
45941 (K1, K2, K3, K4): Remove unnecessary L suffix.
45943 2006-05-10 Bruno Haible <bruno@clisp.org>
45945 * lib/des.c: Cast to avoid warnings.
45947 2006-05-09 Bruno Haible <bruno@clisp.org>
45949 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45950 (Depends-on): Depend also on xsize, stdarg.
45951 (configure.ac): Add gl_XVASPRINTF.
45953 2006-05-09 Bruno Haible <bruno@clisp.org>
45955 * m4/xvasprintf.m4: New file.
45957 2006-05-09 Bruno Haible <bruno@clisp.org>
45959 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45960 (EOVERFLOW): Define fallback value.
45961 (xstrcat): New function.
45962 (xvasprintf): Recognize the special case of a string concatenation.
45964 2006-05-08 Eric Blake <ebb9@byu.net>
45966 * gnulib-tool (func_version): Base copyright year on CVS date.
45967 (func_emit_copyright_notice): New function.
45968 (func_emit_lib_Makefile_am): Use it.
45969 (func_emit_tests_Makefile_am): Likewise.
45970 (func_import): Likewise.
45972 2006-05-08 Bruno Haible <bruno@clisp.org>
45974 * modules/stdarg: New file.
45975 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45977 2006-05-08 Bruno Haible <bruno@clisp.org>
45979 * m4/stdarg.m4: New file, from GNU gettext.
45981 2006-05-08 Bruno Haible <bruno@clisp.org>
45983 * config/srclist.txt (build-aux/config.rpath): different from latest
45986 2006-05-08 Bruno Haible <bruno@clisp.org>
45988 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45990 2006-05-05 Jim Meyering <jim@meyering.net>
45992 * m4/warning.m4: New file, derived from bison's file by the same name.
45994 2006-05-03 Bruno Haible <bruno@clisp.org>
45996 * lib/stdint_.h: Shorter URL.
45997 * lib/inttypes.h: Likewise.
45999 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46001 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46003 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46005 * lib/verify.h: Document the internals better. Most of this change
46006 was written by Bruno Haible.
46008 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46010 * doc/verify.texi: New file, partly based on a proposal by
46013 2006-05-02 Bruno Haible <bruno@clisp.org>
46015 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46017 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46019 2006-04-29 Bruno Haible <bruno@clisp.org>
46021 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46022 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46024 2006-04-29 Bruno Haible <bruno@clisp.org>
46026 * gnulib-tool: Make --update option actually work.
46028 2006-04-29 Bruno Haible <bruno@clisp.org>
46030 * doc/gcd.texi: New file.
46031 * doc/gnulib.texi: Include it.
46033 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
46035 * lib/getdate.y (get_date): When adding relative date, start with the
46036 initial time, not with the result of the first mktime call.
46038 2006-04-25 Bruno Haible <bruno@clisp.org>
46040 * gnulib-tool (func_import): Output the include directives in three
46041 blocks, sorted separately.
46042 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46044 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46046 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46047 to define main with arguments, for C++. Reported by Eric Blake.
46048 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46049 Prefer 'int main ()' to 'int main (void)', for C++.
46050 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46051 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46052 for 'main', for C99 and C++.
46054 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46056 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46057 Don't assume that exit status -1 is valid.
46058 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46059 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46060 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46061 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46062 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46063 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46064 not AC_TRY_RUN. Use return, not exit. Don't assume that
46065 functions can be used without declaring them, or that you can
46066 exit with status -1.
46067 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46069 2006-04-24 Karl Berry <karl@gnu.org>
46071 * config/srclist.txt (longdouble.m4): sync lost.
46073 2006-04-24 Eric Blake <ebb9@byu.net>
46075 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46077 2006-04-24 Bruno Haible <bruno@clisp.org>
46079 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46080 poll() implementation in AIX.
46081 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46083 2006-04-24 Bruno Haible <bruno@clisp.org>
46085 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46086 assigned exactly once.
46088 2006-04-23 Claudio Fontana <claudio@gnu.org>
46089 Bruno Haible <bruno@clisp.org>
46091 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46092 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46095 2006-04-23 Bruno Haible <bruno@clisp.org>
46097 * modules/copy-file: Depend on unistd.
46098 * modules/execute: Likewise.
46099 * modules/fatal-signal: Likewise.
46100 * modules/findprog: Likewise.
46101 * modules/mkdtemp : Likewise.
46102 * modules/pipe: Likewise.
46103 * modules/wait-process: Likewise.
46105 2006-04-23 Bruno Haible <bruno@clisp.org>
46107 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46108 condition was already detected.
46109 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46111 2006-04-23 Bruno Haible <bruno@clisp.org>
46113 * lib/copy-file.c: Include <unistd.h> unconditionally.
46114 * lib/execute.c: Likewise.
46115 * lib/fatal-signal.c: Likewise.
46116 * lib/findprog.c: Likewise.
46117 * lib/mkdtemp.c: Likewise.
46118 * lib/pipe.h: Likewise.
46119 * lib/pipe.c: Likewise.
46120 * lib/wait-process.h: Likewise.
46122 2006-04-23 Bruno Haible <bruno@clisp.org>
46124 * gnulib-tool (func_usage): Fix --import description. Document
46126 (func_import): Create temporary file in a temporary directory, if
46127 --dry-run is specified. Silence errors from 'grep' when there are no
46128 m4 files in $m4dir.
46129 (func_create_testdir): Silence errors from 'grep' when there are no
46130 m4 files in $m4dir.
46131 Reported by Karl Berry <karl@freefriends.org>.
46133 2006-04-20 Bruno Haible <bruno@clisp.org>
46135 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46136 one argument, so that the code will be portable to Autoconf 2.60.
46137 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46138 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46139 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46141 2006-04-19 Derek Price <derek@ximbiot.com>
46142 Eric Blake <ebb9@byu.net>
46144 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46145 rather than "/full/path.h". Update comment to match. Shorten &
46146 generalize m4_translit call via AS_TR_CPP.
46148 2006-04-19 Derek Price <derek@ximbiot.com>
46149 Eric Blake <ebb9@byu.net>
46151 * lib/inttypes.h: Correct grammar in comment.
46153 2006-04-18 Derek Price <derek@ximbiot.com>
46154 Paul Eggert <eggert@cs.ucla.edu>
46156 * modules/inttypes: New file.
46157 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46159 2006-04-18 Derek Price <derek@ximbiot.com>
46160 Paul Eggert <eggert@cs.ucla.edu>
46162 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46165 2006-04-18 Derek Price <derek@ximbiot.com>
46166 Paul Eggert <eggert@cs.ucla.edu>
46168 * lib/inttypes.h: New file.
46169 * lib/strtoimax.c: Assume <inttypes.h>.
46171 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
46173 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46174 isn't mounted. Problem reported by Kir Kolyshkin.
46176 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
46178 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46179 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
46181 * lib/regex.h (RE_DUP_MAX): Update comment to match current
46184 2006-04-12 Eric Blake <ebb9@byu.net>
46186 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46187 is now done automatically by the corresponding Autoconf macro.
46189 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
46191 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46194 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46196 Merge regex changes from libc, removing some of our
46197 POSIX-conformance changes that were rejected and redoing them in a
46198 less-intrusive way.
46200 * lib/regcomp.c (re_compile_internal, init_dfa):
46201 Length arg is now size_t, not Idx. All uses changed.
46202 (peek_token): Forward decl now says internal_function.
46203 (__re_error_msgid, __re_error_msgid_idx):
46204 Now static rather than extern with attribute_hidden.
46205 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46206 For some reason libc prefers K&R style defns for external functions.
46207 (regerror) [!defined _LIBC]: Likewise.
46208 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46209 (seek_collating_symbol_entry, lookup_collation_sequence_value):
46210 (build_range_exp, build_collating_symbol):
46211 Use K&R-style defn.
46212 (re_compile_fastmap): Use '\0' to memset, not 0.
46213 (utf8_sb_map): Make the calculations more obvious.
46214 (init_dfa, parse_bracket_exp, build_charclass_op):
46215 Call calloc and cast result, as glibc does.
46216 (init_word_char, fetch_token, peek_token, peek_token_bracket):
46217 (build_range_exp, build_collating_symbol):
46218 Now internal functions.
46220 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46222 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
46223 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46224 Don't depend on VMS; depend on __VMS instead, for POSIX
46225 namespace cleanness.
46226 (regoff_t): Define to ssize_t, not long int.
46228 Remove the REG_ macros named below. Instead, make the old names
46229 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46231 (REG_BACKSLASH_ESCAPE_IN_LISTS):
46232 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46233 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46234 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46235 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46236 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46237 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46238 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46239 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46240 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46241 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46242 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46243 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46244 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46245 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46246 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46247 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46249 Remove. All uses replaced by the old RE_* names.
46250 (RE_BACKSLASH_ESCAPE_IN_LISTS):
46251 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46252 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46253 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46254 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46255 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46256 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46257 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46258 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46259 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46260 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46261 Don't bother having these macros be independent of each others'
46262 values, since they no longer exist in the POSIX name space.
46264 Rename the following member names back to their old names,
46265 unless !__USE_GNU_REGEX. All uses changed back.
46266 (buffer): Renamed from re_buffer.
46267 (allocated): Renamed from re_allocated.
46268 (used): Renamed from re_used.
46269 (syntax): Renamed from re_syntax.
46270 (fastmap): Renamed from re_fastmap.
46271 (translate): Renamed from re_translate.
46272 (can_be_null): Renamed from re_can_be_null.
46273 (regs_allocated): Renamed from re_regs_allocated.
46274 (fastmap_accurate): Renamed from re_fastmap_accurate.
46275 (no_sub): Renamed from re_no_sub.
46276 (not_bol): Renamed from re_not_bol.
46277 (not_eol): Renamed from re_not_eol.
46278 (newline_anchor): Renamed from re_newline_anchor.
46279 (num_regs): Renamed from rm_num_regs.
46280 (start): Renamed from rm_start.
46281 (end): Renamed from rm_end.
46283 (free_state): Move up a bit.
46285 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46286 #define to be empty.
46287 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46288 when that is what is intended.
46289 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46290 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46292 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46293 All uses changed back to re_malloc, etc. It's now the caller's
46294 responsibility to check for overflow; all callers changed.
46295 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46296 (re_x2nrealloc): Remove.
46297 (free_state): Remove decl.
46299 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46300 (re_set_registers, re_exec):
46301 Use K&R-style defn.
46303 2006-01-31 Roland McGrath <roland@redhat.com>
46305 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46306 Reported by Mike Frysinger <vapier@gentoo.org>.
46308 2006-01-15 Andreas Jaeger <aj@suse.de>
46311 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46312 build_wcs_upper_buffer change.
46313 (build_wcs_upper_buffer): Change return type.
46315 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46317 * lib/regex_internal.h: Include <stdint.h> if available.
46319 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46321 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46323 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46325 * lib/regcomp.c: Adjust for changed secondary hash function.
46327 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46329 * lib/regex.h: Pretty printing.
46330 Clean up namespace a bit.
46332 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46334 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46335 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46337 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46338 Ulrich Drepper <drepper@redhat.com>
46341 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46343 (bitset_word_t): Renamed from bitset_word. All uses changed.
46345 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46348 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46349 * lib/regcomp.c: Remove unnecessary uses of
46350 unsigned RE_TRANSLATE_TYPE.
46351 * lib/regex_internal.h: Likewise.
46352 * lib/regex_internal.c: Likewise.
46353 * lib/regexec.c: Likewise.
46354 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46356 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46358 * lib/regexec.c (find_recover_state): Remove unnecessary
46360 (transit_state_bkref): Make DFA a const pointer.
46361 (get_subexp): Likewise.
46362 (check_arrival): Likewise.
46363 (update_cur_sifted_state): Likewise.
46364 (re_search_internal): Likewise.
46365 (prune_impossible_nodes): Likewise.
46366 (acquire_init_state_context): Likewise.
46367 (proceed_next_node): Likewise.
46368 (set_regs): Likewise.
46369 (free_fail_stack_return): Likewise.
46370 (check_arrival_expand_ecl): Mark DFA parameter as const.
46371 (check_arrival_expand_ecl_sub): Likewise.
46372 (check_subexp_limits): Likewise.
46373 (sub_epsilon_src_nodes): Likewise.
46374 (add_epsilon_src_nodes): Likewise.
46375 (merge_state_array): Likewise.
46376 (update_regs): Likewise.
46377 (build_trtable): Likewise.
46378 (sift_states_backward): Mark MCTX parameter as const.
46379 (build_sifted_states): Likewise.
46380 (update_cur_sifted_state): Likewise.
46381 (sift_states_mkref): Likewise.
46382 (check_arrival_expand_ecl): Mark eclosure as const.
46383 (check_dst_limits_calc_pos_1): Likewise.
46384 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46387 2005-09-06 Ulrich Drepper <drepper@redhat.com>
46389 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46390 (transit_state_sb): Likewise.
46391 (transit_state_mb): Likewise.
46392 (sift_states_iter_mb): Likewise.
46393 (check_arrival_add_next_nodes): Likewise.
46394 (check_node_accept_bytes): Change first parameter to pointer-to-const.
46395 [_LIBC] (re_search_2_stub): Use mempcpy.
46397 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46398 mbrtowc for very simple UTF-8 case.
46400 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46401 a pointer-to-const.
46402 (re_acquire_state_context): Likewise.
46403 * lib/regex_internal.h: Adjust prototypes.
46405 * lib/regex.c: Prevent using C++ compilers.
46407 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46408 (re_acquire_state_context): Likewise.
46410 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46412 * modules/regex (Depends-on): Add ssize_t.
46414 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46416 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46419 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46421 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46423 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46424 Bruno Haible <bruno@clisp.org>
46426 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46427 <sys/types.h> and <inttypes.h>.
46429 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46431 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46432 `__error_t_defined', so argp.h will not typedef the former.
46434 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46436 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46437 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46438 glibc names. Even if glibc is changed to conform to POSIX, the
46439 traditional names will be available anyway, since regex depends on
46440 the extensions module. Also, fix a longstanding typo in the
46441 implementation of Spencer ERE test #75 from grep 2.3. Problems
46442 reported by Emanuele Giaquinta. Also, change sense of cached
46443 variable, so that the message makes sense.
46445 2006-03-24 Simon Josefsson <jas@extundo.com>
46447 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46448 including some doc fixes.
46449 (base64_encode_alloc): Fix +1 bug on allocation failures.
46451 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46453 * lib/base64.c (base64_encode): Do not read past end of array with
46454 unsanitized input on systems with CHAR_BIT > 8.
46456 2006-03-24 Eric Blake <ebb9@byu.net>
46458 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46460 2006-03-22 Karl Berry <karl@gnu.org>
46462 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46463 * config/srclistvars.sh (COREUTILS): new var.
46465 2006-03-17 Jim Meyering <jim@meyering.net>
46467 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46468 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46470 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46472 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46473 no longer needs it. Instead, check that regoff_t is as least
46474 as wide as ptrdiff_t.
46476 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46477 so that our regex.h stays compatible with the installed regex.
46478 This is helpful for installers who configure --without-included-regex.
46479 Problem reported by Emanuele Giaquinta.
46481 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46483 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46484 Typedef to long int, not to off_, as POSIX will likely change
46487 2006-03-15 Eric Blake <ebb9@byu.net>
46489 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46491 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
46493 * lib/argp-help.c (validate_uparams): Fix typo
46494 * lib/argp-parse.c (argp_default_options): Consistently begin help
46495 messages with a lowercase letter.
46497 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
46499 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
46500 overrun buffers and shouldn't be used (much as gets shouldn't be
46502 * lib/time_r.c (asctime_r, ctime_r): Likewise.
46504 2006-03-08 Simon Josefsson <jas@extundo.com>
46506 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46507 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46509 2006-03-08 Simon Josefsson <jas@extundo.com>
46511 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46512 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46514 2006-03-08 Simon Josefsson <jas@extundo.com>
46516 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46517 signal that configure disabled the device.
46519 2006-03-08 Simon Josefsson <jas@extundo.com>
46521 * build-aux/maint.mk: Fix refresh-po, to handle no translated
46524 2006-03-07 Simon Josefsson <jas@extundo.com>
46526 * modules/getopt (Depends-on): Add unistd.
46528 * modules/unistd: New file.
46530 2006-03-07 Simon Josefsson <jas@extundo.com>
46532 * modules/gc-random: New file.
46534 2006-03-07 Simon Josefsson <jas@extundo.com>
46536 * m4/unistd_h.m4: New file.
46538 2006-03-07 Simon Josefsson <jas@extundo.com>
46540 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46541 test to be side-effect free by storing the result in the cache
46542 variable gl_cv_lib_readline, and moving the assignment of
46543 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46544 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46546 2006-03-07 Simon Josefsson <jas@extundo.com>
46548 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
46549 error on missing devices (the functions will return an error).
46551 * m4/gc.m4: Move random stuff to gc-random.m4
46553 2006-03-07 Simon Josefsson <jas@extundo.com>
46555 * lib/unistd_.h: New file.
46557 2006-03-07 Simon Josefsson <jas@extundo.com>
46559 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46561 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46563 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46564 Problem reported by Juan Manuel Guerrero.
46566 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46568 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46570 * lib/getlogin_r.c: Likewise.
46571 * lib/getlogin_r.h: Likewise.
46572 * lib/glob.c: Likewise.
46573 * lib/pagealign_alloc.c: Likewise.
46574 * lib/unistd_.h: Remove; no longer needed.
46576 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46578 * MODULES.html.sh (Support for systems lacking POSIX:2001):
46580 * modules/c-stack (Depends-on): Add unistd.
46581 * modules/getlogin_r: Likewise.
46582 * modules/glob: Likewise.
46583 * modules/pagealign_alloc: Likewise.
46584 * modules/unistd (Files): Remove lib/unistd_.h.
46585 (EXTRA_DIST): Remove.
46586 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46588 (MOSTLYCLEANFILES): Remove unistd.h-t.
46590 2006-03-03 Simon Josefsson <jas@extundo.com>
46592 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46594 2006-03-03 Simon Josefsson <jas@extundo.com>
46596 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46599 2006-03-03 Simon Josefsson <jas@extundo.com>
46601 * build-aux/maint.mk: Add indent target.
46603 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46605 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46606 our replacement poll.h in any case, to avoid a differing
46607 declaration from a system header. Seen on AIX.
46609 2006-03-01 Simon Josefsson <jas@extundo.com>
46611 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46614 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46616 * modules/gettime (Depends-on): Add extensions module.
46617 * modules/nanosleep (Depends-on): Likewise.
46618 * modules/settime (Depends-on): Likewise.
46620 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46622 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46623 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46625 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46626 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46628 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46629 not "==". Reported by Ralf Wildenhues.
46631 2006-03-01 Karl Berry <karl@gnu.org>
46633 * doc/Copyright/request-*: new files, synced from gnuorg.
46635 2006-03-01 Karl Berry <karl@gnu.org>
46637 * config/srclist.txt (Copyright/*): new entries.
46639 2006-02-28 Simon Josefsson <jas@extundo.com>
46641 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46643 2006-02-27 Simon Josefsson <jas@extundo.com>
46645 * lib/base64.h: Indent #define's. From Jim Meyering
46646 <jim@meyering.net>.
46648 2006-02-27 Jim Meyering <jim@meyering.net>
46650 Revert the change of 2006-02-24, so these files can continue
46651 to be sync'd from gettext.
46652 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46655 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
46657 * modules/intprops: New file.
46658 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46660 * modules/getloadavg (Files): Remove lib/intprops.h.
46661 (Depends-on): Add intprops.
46662 * modules/human: Likewise.
46663 * modules/inttostr: Likewise.
46664 * modules/openat: Likewise.
46665 * modules/sig2str: Likewise.
46666 * modules/userspec: Likewise.
46667 * modules/utimecmp: Likewise.
46668 * modules/xnanosleep: Likewise.
46669 * modules/xstrtol: Likewise.
46671 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
46673 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46674 * modules/lock-tests (TESTS): Use $(EXEEXT).
46675 * modules/tls-tests: Likewise.
46676 * modules/argp-tests: Likewise.
46677 (check_PROGRAMS): New var, replacing...
46678 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46680 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46682 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46685 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
46687 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46689 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46691 Sync from coreutils.
46692 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46695 2006-02-22 Jim Meyering <jim@meyering.net>
46697 Sync from coreutils.
46698 * m4/chdir-safer.m4: New file.
46700 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
46702 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46703 AT_FDCWD exceeds INT_MAX.
46704 * lib/openat.h (AT_FDCWD): Likewise.
46706 2006-02-17 Eric Blake <address@hidden>
46708 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46710 2006-02-16 Simon Josefsson <jas@extundo.com>
46712 * modules/getaddrinfo (Depends-on): Add sys_socket.
46714 2006-02-15 Simon Josefsson <jas@extundo.com>
46716 * build-aux/maint.mk: Add dsyntax-check rule.
46718 2006-02-15 Eric Blake <ebb9@byu.net>
46720 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46721 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46722 'present but cannot compile' warnings on cygwin.
46723 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
46724 use ws2tcpip.h if sys/socket.h works.
46725 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46726 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46728 2006-02-14 Simon Josefsson <jas@extundo.com>
46730 * modules/maintainer-makefile (Files): Rename.
46732 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46733 and (the local) Makefile.cfg to maint-cfg.mk.
46735 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46738 * modules/maintainer-makefile: New module.
46740 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46741 severaly stripped to make it possible to build it up from scratch
46742 with reliable tests.
46744 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46745 fixes to permit overriding the default actions when configure and
46746 makefile are not available.
46748 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
46750 Sync from coreutils.
46751 * modules/lstat (Depends-on): Don't depend on xalloc.
46752 (License): Change from GPL to LGPL, since this is now simply a
46753 replacement for a libc function.
46755 2006-02-14 Jim Meyering <jim@meyering.net>
46757 Sync from coreutils.
46759 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46760 failure on deficient systems, and simplify gnulib lgpl dependencies.
46761 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46762 xmalloc/lstat combination. Based on a patch from Bruno Haible.
46764 * lib/xalloc-die.c: Remove unused definition of N_.
46766 2006-02-14 Jim Meyering <jim@meyering.net>
46768 Sync from coreutils.
46769 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46770 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46771 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46772 double-quote uses of that variable, to accommodate the rare case in
46773 which getmntent is available in none of the libraries checked. This
46774 happens at least on FreeBSD 5.0.
46776 2006-02-13 Simon Josefsson <jas@extundo.com>
46778 * gnulib-tool (Usage): Fix --import, from
46779 karl@freefriends.org (Karl Berry).
46781 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46783 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46785 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46787 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46788 "autoupdate" on 2005-12-12.
46790 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46792 * modules/closeout (Depends-on): Remove atexit.
46794 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46796 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46797 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46799 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46801 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46802 __EXTENSIONS__ if this causes compilation to fail. Problem
46803 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46804 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46806 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46808 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46809 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46810 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46813 2006-01-26 Simon Josefsson <jas@extundo.com>
46815 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46816 prototype is visible on mingw32.
46818 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46821 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46824 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46826 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46827 attempt to open for write; this always fails, at least on POSIX
46828 hosts. This reinstates the 2006-01-09 change, which was
46829 inadvertently removed.
46831 2006-01-26 Bruno Haible <bruno@clisp.org>
46833 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46834 Reported by Paul Eggert.
46836 2006-01-26 Bruno Haible <bruno@clisp.org>
46837 Paul Eggert <eggert@cs.ucla.edu>
46839 * lib/stdbool_.h (_Bool)
46840 [(! (defined __cplusplus || defined __BEOS__)
46841 && !defined __GNUC__
46842 && !(defined __HP_cc || defined __xlc__
46843 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46844 || defined __sgi))]:
46845 #define to signed char in these cases too; this simplifies
46846 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46847 etc., separately) and makes it more conservative.
46849 2006-01-25 Simon Josefsson <jas@extundo.com>
46851 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46852 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
46853 ws2tcpip.h with WINVER=0x0501. All for mingw32.
46855 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
46857 * lib/argp-namefrob.h: Bugfix. Remove stray #
46859 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
46861 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46862 so that we test the test.
46863 Check for yet another HP-UX cc bug involving *bool |= bool.
46865 2006-01-25 Karl Berry <karl@gnu.org>
46867 * config/srclist.txt (vasnprintf.c): sync lost.
46869 2006-01-25 Jim Meyering <jim@meyering.net>
46871 Sync from the stable (b5) branch of coreutils:
46873 * lib/fts.c (fts_children): Don't let close() clobber errno from
46876 * lib/fts.c (fts_stat): When following a symlink-to-directory,
46877 don't necessarily interpret stat-fails+lstat-succeeds as indicating
46878 a dangling symlink. That can also happen at least for ELOOP.
46879 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46880 FYI, this bug predates the inclusion of fts.c in coreutils.
46882 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46883 in their own block, so pre-c99 compilers don't object.
46885 Avoid the double-free (first in fts_read, second in fts_close) that
46886 would occur when an `active' directory is made inaccessible (e.g.,
46887 via chmod a-x) during a traversal.
46888 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46889 before returning. Reproduce this failure by
46890 mkdir -p a/b; cd a; chmod a-x . b
46891 Reported by Stavros Passas.
46893 2006-01-25 Jim Meyering <jim@meyering.net>
46895 * lib/fileblocks.c: Remove more useless parentheses.
46896 * lib/readutmp.h: Likewise.
46898 2006-01-25 Bruno Haible <bruno@clisp.org>
46900 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46902 Reported by Paul Eggert.
46904 2006-01-25 Bruno Haible <bruno@clisp.org>
46906 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46907 rid of a trap command. For Solaris sh.
46908 Reported by Mark D. Baushke <mdb@gnu.org>.
46910 2006-01-24 Simon Josefsson <jas@extundo.com>
46912 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46915 2006-01-24 Karl Berry <karl@gnu.org>
46917 * config/srclist.txt (argp-namefrob.h): sync lost.
46919 2006-01-24 Jim Meyering <jim@meyering.net>
46921 * modules/openat (Files): Add lib/intprops.h.
46922 From Mark D. Baushke.
46924 2006-01-24 Jim Meyering <jim@meyering.net>
46926 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46927 Reported by Mark D. Baushke.
46929 2006-01-24 Jim Meyering <jim@meyering.net>
46931 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46933 2006-01-24 Bruno Haible <bruno@clisp.org>
46935 * modules/strnlen (Maintainer): Change from glibc to all.
46937 2006-01-24 Bruno Haible <bruno@clisp.org>
46939 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46940 Patch by Paul Eggert.
46942 2006-01-24 Bruno Haible <bruno@clisp.org>
46944 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46946 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
46949 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46950 'signed char' to avoid problems with the built-in _Bool type.
46951 Reported by Paul Eggert on 2005-11-26.
46953 2006-01-24 Bruno Haible <bruno@clisp.org>
46955 * gnulib-tool (func_import): Avoid constructing complicated sed
46956 expressions inside backquote.
46957 Report and solution by Mark D. Baushke <mdb@gnu.org>.
46959 2006-01-23 Ulrich Drepper <drepper@redhat.com>
46961 These changes imported from libc.
46962 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46963 test and two separate function calls.
46964 * lib/strndup.c (__strndup): Add libc_hidden_def.
46966 2006-01-23 Simon Josefsson <jas@extundo.com>
46968 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46969 Remove the test_*_SOURCES variable: automake infers it by default.
46970 * modules/tls-tests: Likewise.
46972 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46974 Work around porting bugs reported by Dieter in
46975 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46976 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46977 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46978 Include "getopt.h" first, to check interface.
46979 (getenv): Declare only if defined HAVE_DECL_GETENV &&
46981 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46982 (__strndup): Revert to K&R-style function dfns, the glibc style.
46983 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46984 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46985 Include strnlen.h first, to get prototype properly.
46986 (strnlen): Renamed from __strnlen.
46989 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46991 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46993 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46995 * config/srclist.txt: Adjust to reflect glibc reorganization.
46996 This affects only comments.
46998 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47000 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47001 Reported by Bruce Korb <bkorb@gnu.org>.
47003 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
47005 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47006 to pacify gcc -Wswitch-default.
47008 2006-01-22 Bruno Haible <bruno@clisp.org>
47010 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47011 temporary buffer for sprintf, take into account the precision also
47012 for 'd', 'i', 'u', 'o', 'x', 'X'.
47014 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47016 * modules/argp-tests: New module
47017 * tests/test-argp.c: New file
47018 * tests/test-argp-2.sh: New file
47020 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47022 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47023 (__argp_base_name): Removed
47024 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47026 (__argp_base_name): Provide macro definition or extern declaration
47027 depending on the configuration
47029 2006-01-20 Simon Josefsson <jas@extundo.com>
47031 * modules/inet_ntop (Depends-on): Depend on sys_socket.
47033 2006-01-20 Simon Josefsson <jas@extundo.com>
47035 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47037 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
47039 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47040 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47041 Suggested by Bruno Haible.
47043 2006-01-20 Karl Berry <karl@gnu.org>
47045 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47046 until changes propagate, I guess.
47048 2006-01-19 Simon Josefsson <jas@extundo.com>
47050 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47052 2006-01-19 Simon Josefsson <jas@extundo.com>
47054 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47056 2006-01-19 Simon Josefsson <jas@extundo.com>
47058 * gnulib-tool: Set check_PROGRAMS.
47060 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47061 modules/des-tests, modules/gc-arcfour-tests,
47062 modules/gc-arctwo-tests, modules/gc-des-tests,
47063 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47064 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47065 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47066 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47067 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47068 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47069 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47072 2006-01-18 Simon Josefsson <jas@extundo.com>
47074 * modules/socklen (Depends-on): Depend on sys_socket.
47076 2006-01-18 Simon Josefsson <jas@extundo.com>
47078 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47079 modules/des-tests, modules/gc-arcfour-tests,
47080 modules/gc-arctwo-tests, modules/gc-des-tests,
47081 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47082 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47083 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47084 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47085 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47086 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47087 $(EXEEXT) to automake TESTS variable, for mingw32.
47089 2006-01-17 Simon Josefsson <jas@extundo.com>
47091 * modules/socklen (Include): Need sys/socket.h.
47093 2006-01-17 Bruno Haible <bruno@clisp.org>
47095 * modules/ssize_t (Include): Add <sys/types.h>.
47097 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
47099 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47100 it's not portable and it doesn't work with cross-compiles.
47101 Problem reported by Bruno Haible. Fix missing-$ typo in
47102 'test "gl_cv_ignore_unused_libraries" ...' that prevented
47103 -zignore from being used with Sun's C compiler.
47105 2006-01-12 Simon Josefsson <jas@extundo.com>
47107 * lib/base64.c: Fix warning, reported by Bruno Haible
47108 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47110 2006-01-12 Bruno Haible <bruno@clisp.org>
47112 * modules/ldd: New file.
47113 * build-aux/ldd.sh.in: New file.
47114 * MODULES.html.sh (Support for building libraries and executables): Add
47117 2006-01-12 Bruno Haible <bruno@clisp.org>
47119 * m4/ldd.m4: New file.
47121 2006-01-12 Bruno Haible <bruno@clisp.org>
47123 * gnulib-tool (func_import, func_create_testdir): Don't go into an
47124 endless loop while replacing $auxdir with build-aux.
47126 2006-01-11 Simon Josefsson <jas@extundo.com>
47128 * lib/stdint_.h (SIZE_MAX): Add missing (.
47130 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
47132 Sync from coreutils.
47133 * lib/md5.c: Fix commentary typos.
47134 (alignof, UNALIGNED_P): No need for a GCC-specific version.
47135 * lib/md5.h (__attribute__): Remove; unused.
47136 * lib/sha1.c: Fix commentary to match md5 better.
47137 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47138 so that we don't need to worry about alignment. All uses changed.
47139 This merges the 2005-10-28 md5 change into sha1.
47141 2006-01-11 Jim Meyering <jim@meyering.net>
47143 Sync from coreutils.
47144 * lib/md5.c (OP): Fix spacing.
47146 2006-01-11 Bruno Haible <bruno@clisp.org>
47148 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47149 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47150 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47152 2006-01-11 Bruno Haible <bruno@clisp.org>
47154 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47155 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47156 the "early" section as well.
47158 2006-01-11 Bruno Haible <bruno@clisp.org>
47160 Avoid "ar: no archive members specified" error on MacOS X.
47161 * gnulib-tool (func_modules_add_dummy): New function.
47162 (func_import, func_create_testdir): Invoke it.
47164 2006-01-11 Bruno Haible <bruno@clisp.org>
47166 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47167 with $auxdir in AC_CONFIG_FILES statements.
47169 2006-01-11 Bruno Haible <bruno@clisp.org>
47171 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47172 Initialize also noinst_HEADERS to empty.
47174 2006-01-11 Bruno Haible <bruno@clisp.org>
47176 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47178 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47181 2006-01-11 Bruno Haible <bruno@clisp.org>
47183 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47184 overridable by the user.
47185 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47187 2006-01-10 Simon Josefsson <jas@extundo.com>
47189 * modules/sys_socket: New file.
47191 2006-01-10 Simon Josefsson <jas@extundo.com>
47193 * m4/sys_socket_h.m4: New file.
47195 2006-01-10 Simon Josefsson <jas@extundo.com>
47197 * lib/socket_.h: New file.
47199 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47201 * modules/readutmp (Maintainer): Add myself.
47203 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47205 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47206 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
47207 People who are still concerned with buggy memcmp implementations
47208 can invoke gl_FUNC_MEMCMP themselves.
47210 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47212 * lib/regex_internal.h (BITSET_WORD_BITS):
47213 Work around a bug in 64-bit PGC (before version 6.1-2), where the
47214 preprocessor mishandles large unsigned values as if they were signed.
47215 Problem reported by Claudio Fontana in
47216 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47218 2006-01-10 Jim Meyering <jim@meyering.net>
47220 Avoid the double-free (first in fts_read, second in fts_close) that
47221 would occur when an `active' directory is made inaccessible (e.g.,
47222 via chmod a-x) during a traversal.
47223 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47224 before returning. Reproduce this failure by
47225 mkdir -p a/b; cd a; chmod a-x . b
47226 Reported by Stavros Passas.
47228 Sync from coreutils.
47229 * lib/sha1.c: Tweak grammar in a comment.
47231 2006-01-10 Jim Meyering <jim@meyering.net>
47233 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47234 Patch by Joerg Sonnenberger.
47236 2006-01-10 Bruno Haible <bruno@clisp.org>
47238 * modules/readutmp: Depend on module free.
47239 * modules/strtok_r: Depend on module restrict.
47241 2006-01-10 Bruno Haible <bruno@clisp.org>
47243 * modules/gettext (configure.ac): Add an invocation of
47244 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47246 2006-01-10 Bruno Haible <bruno@clisp.org>
47248 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47249 Reported by Werner Lemberg <wl@gnu.org>.
47251 2006-01-10 Bruno Haible <bruno@clisp.org>
47253 * lib/localcharset.c: Update from GNU gettext.
47255 2006-01-10 Bruno Haible <bruno@clisp.org>
47257 * lib/argp.h (__const): Remove macro. Use const instead.
47258 * lib/argp-fmtstream.h (__const): Likewise.
47259 * lib/glob_.h (__const): Remove macro.
47260 * lib/glob-libc.h: Use const instead of __const.
47262 2006-01-10 Bruno Haible <bruno@clisp.org>
47264 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47266 Needed to avoid an automake error regarding the 'gettext' module.
47268 2006-01-09 Simon Josefsson <jas@extundo.com>
47270 * modules/inet_ntop (Depends-on): Add restrict.
47272 2006-01-09 Simon Josefsson <jas@extundo.com>
47274 * modules/gc-rijndael-tests (License): Put under LGPL.
47276 * modules/gc-des-tests (License): Likewise.
47278 * modules/gc-arcfour-tests (License): Likewise.
47280 * modules/gc-arctwo-tests (License): Likewise.
47282 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47284 * modules/gc-hmac-sha1-tests (Files): Likewise.
47286 * modules/gc-hmac-md5-tests (License): Likewise.
47288 * modules/gc-sha1-tests (License): Likewise.
47290 * modules/gc-md5-tests (License): Likewise.
47292 * modules/gc-md4-tests (License): Likewise.
47294 * modules/gc-md2-tests (License): Likewise.
47296 * modules/gc-tests (License): Likewise.
47298 * modules/des-tests (License): Likewise.
47300 * modules/md4-tests (License): Likewise.
47302 * modules/md2-tests (License): Likewise.
47304 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47306 Sync from coreutils:
47308 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47309 * modules/lib-ignore: New file.
47310 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47311 chdir-safer.m4, lchmod.m4.
47312 * modules/openat: Add mkdirat.c, openat-priv.h.
47314 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47316 Sync from coreutils.
47317 * m4/lib-ignore.m4: New file.
47318 * m4/lchmod.m4: New file.
47320 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47322 Sync from coreutils.
47323 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47324 for write access: POSIX says that must fail.
47325 * lib/fts.c (diropen): Likewise.
47326 * lib/save-cwd.c (save_cwd): Likewise.
47327 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47328 well, for minor improvements on hosts that lack O_DIRECTORY.
47329 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47330 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47331 Fall back on chown if open failed with EACCES.
47333 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47334 Report an error at compile-time if only a 1-second nominal clock
47335 resolution is found.
47337 * lib/lchmod.h: New file.
47338 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47339 (make_dir_parents): Use lchown rather than chown, and
47340 lchmod rather than chmod.
47342 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47343 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47344 "proc" reported by n0dalus.
47346 * lib/mountlist.c: Include <limits.h>.
47347 (dev_from_mount_options)
47348 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47349 New function. It no longer assumes "dev=" has the System V meaning
47350 on Linux (since it doesn't). It also parses "dev=" more carefully.
47351 (read_file_system_list)
47352 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47353 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47356 * lib/posixtm.h (PDS_PRE_2000): New macro.
47357 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47358 allow_century. All usages changed. Reject dates outside the range
47359 1969-1999 if PDS_PRE_2000 is used.
47361 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47363 Sync from coreutils.
47364 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47365 (Time of day items): Mention the possibility of leap seconds.
47366 Problem reported by Dr. David Alan Gilbert.
47368 2006-01-09 Jim Meyering <jim@meyering.net>
47370 Sync from coreutils.
47372 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47374 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47376 * lib/modechange.c (mode_compile): Reject an invalid mode string
47377 that starts with an octal digit. From Andreas Gruenbacher.
47379 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47380 and dup to open_safer and dup_safer, respectively.
47381 (openat_permissive): Fix typo in comment.
47383 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47384 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47385 (_): Remove; no longer needed.
47386 (openat): Renamed from rpl_openat; no need for rpl_openat
47387 since openat.h renames openat for us.
47388 Replace most of the body with a call to openat_permissive,
47389 to avoid duplicate code.
47390 Port to (probably hypothetical) environments were mode_t is
47392 (openat_permissive): Require mode arg, so that we can check
47393 types better. Put it just after flags. Change cwd failure
47394 indicator from pointer-to-bool to pointer-to-errno-value.
47395 All callers changed.
47396 Invoke openat_save_fail and/or openat_restore_fail if
47397 cwd_errno is null, so that openat can call us.
47398 (openat_permissive, fdopendir, fstatat, unlinkat):
47399 Simplify errno handling to avoid some duplicate code,
47400 as it's OK to set errno on success.
47401 * lib/openat.h: Revamp code so that function macros depend on
47402 __OPENAT_PREFIX only, not also on AT_FDCWD.
47403 (openat_ro): Remove. Caller changed to use openat_permissive.
47404 (openat_permissive): Now a macro, if not a function.
47405 (openat_restore_fail, openat_save_fail): Now always functions,
47406 since mkdirat needs them even if __OPENAT_PREFIX is defined.
47408 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47410 * lib/mkdirat.c: Include openat-priv.h.
47411 Remove definitions of macros defined therein.
47412 * lib/openat.c: Likewise.
47414 * lib/mkdirat.c (mkdirat): New file and function.
47415 * lib/openat.h (mkdirat): Declare.
47417 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47419 * lib/openat.h (openat_permissive): Declare.
47420 (openat_ro): Define.
47422 * lib/openat.c (EXPECTED_ERRNO): New macro.
47423 (openat_permissive): New function -- used in remove.c rewrite.
47424 (all functions): Set errno just before returning, only if there
47425 was an actual failure.
47426 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47428 Emulate openat-family functions using Linux's procfs, if possible.
47429 Idea and some code based on Ulrich Drepper's glibc changes.
47431 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47432 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47433 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47434 before falling back on save_cwd and restore_cwd.
47435 (fdopendir, fstatat, unlinkat): Likewise.
47437 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47438 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47440 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47441 as second argument to va_arg. Otherwise, some versions of gcc
47442 warn that `if this code is reached, the program will abort'.
47444 2006-01-09 Jim Meyering <jim@meyering.net>
47446 Sync from coreutils.
47447 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47448 Require openat-priv.h.
47450 2006-01-09 Bruno Haible <bruno@clisp.org>
47452 * modules/strnlen (Include): Use strnlen.h.
47454 2006-01-09 Bruno Haible <bruno@clisp.org>
47456 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47458 2006-01-09 Bruno Haible <bruno@clisp.org>
47460 * lib/sysexit_.h (EX_OK): New macro.
47461 Suggested by Martin Lambers <marlam@marlam.de>.
47463 2006-01-09 Bruno Haible <bruno@clisp.org>
47465 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47466 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47468 2006-01-09 Bruno Haible <bruno@clisp.org>
47470 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47473 2006-01-09 Bruno Haible <bruno@clisp.org>
47475 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47476 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47477 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47478 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47480 2006-01-09 Bruno Haible <bruno@clisp.org>
47482 * build-aux/javacomp.sh.in: New file, moved from lib/.
47483 * modules/javacomp-script (Files): Update.
47484 (configure.ac): Add AC_CONFIG_FILES invocation.
47485 (EXTRA_DIST): Remove variable.
47487 * build-aux/javaexec.sh.in: New file, moved from lib/.
47488 * modules/javaexec (Files): Update.
47489 (configure.ac): Add AC_CONFIG_FILES invocation.
47490 (EXTRA_DIST): Remove javaexec.sh.in.
47492 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47493 * modules/csharpcomp-script (Files): Update.
47494 (configure.ac): Add AC_CONFIG_FILES invocation.
47495 (EXTRA_DIST): Remove variable.
47497 * build-aux/csharpexec.sh.in: New file, moved from lib/.
47498 * modules/csharpexec (Files): Update.
47499 (configure.ac): Add AC_CONFIG_FILES invocation.
47500 (EXTRA_DIST): Remove csharpexec.sh.in.
47502 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47504 Sync from coreutils.
47506 Add POSIX ACL support
47507 * lib/acl.h (copy_acl, set_acl): Add declarations.
47508 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47509 systems other than Linux.
47510 (chmod_or_fchmod): New function: use fchmod when possible,
47511 and chmod otherwise.
47512 (file_has_acl): Add a POSIX ACL implementation, with a
47513 Linux-specific subcase.
47514 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47515 S_ISVTX from one file to another. Fall back to fchmod/chmod when
47516 acls are unsupported.
47517 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47518 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
47521 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47523 Sync from coreutils.
47524 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47526 2006-01-07 Bruno Haible <bruno@clisp.org>
47528 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47531 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47533 * lib/strftime.c (tzname): Don't declare if it is already #defined.
47534 Problem reported for Mingw by Mark Junker.
47536 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47538 * README: Gnulib normally doesn't generate a tarball.
47540 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
47542 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47543 long int, not int, for nanosecond counts, so that people who are
47544 used to POSIX struct timespec won't be surprised. Reported by Jim
47547 2005-12-28 Bruno Haible <bruno@clisp.org>
47549 * build-aux/config.rpath: Update from GNU gettext.
47551 2005-12-16 Jim Meyering <jim@meyering.net>
47553 * modules/fprintftime: New module.
47554 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47556 2005-12-16 Jim Meyering <jim@meyering.net>
47558 * m4/fprintftime.m4: New file.
47560 2005-12-16 Jim Meyering <jim@meyering.net>
47562 * lib/fprintftime.c, lib/fprintftime.h: New files.
47564 2005-12-15 Simon Josefsson <jas@extundo.com>
47566 * modules/socklen (configure.ac): Fix M4 macro name, to align with
47569 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47571 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47572 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47574 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47576 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47577 * lib/argp-help.c (fill_in_uparams): Check if the constructed
47578 struct uparams is valid. Fall back to the default values if it is
47581 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47583 * modules/argp (Files): Add argp-pin.c
47584 (Depends-on): dirname
47585 (lib_SOURCES): Add argp-pin.c
47587 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47589 * m4/argp.m4: Check if program_invocation_name and
47590 program_invocation_short_name are declared and define appropriate
47591 macros if they are not.
47593 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47595 * lib/argp-help.c (__argp_base_name): New function
47596 (__argp_short_program_name): Rewrite using __argp_base_name
47597 * lib/argp-namefrob.h: Define program_invocation_name and
47598 program_invocation_short_name if requested
47599 (__argp_base_name): Add prototype
47600 * lib/argp-parse.c (argp_def): Use gettext wrappers
47601 (argp_default_parser): Use __argp_base_name
47602 * lib/argp-pin.c: New file. Defines program_invocation_name and
47603 program_invocation_short_name on systems that lack them.
47605 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47607 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47608 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47609 porting problem reported by Georg Schwarz in
47610 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47612 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47614 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47615 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47616 porting problem reported by Georg Schwarz in
47617 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47619 2005-12-05 Bruno Haible <bruno@clisp.org>
47621 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47622 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47623 Reported by Mark Junker <mjscod@gmx.de>.
47625 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
47627 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47628 Use implementation from Albert Chin, with some
47629 comments/corrections by Stepan Kasal and myself.
47631 2005-12-02 Bruno Haible <bruno@clisp.org>
47633 * gnulib-tool (func_import): Accept GPLed build tool modules when
47635 * modules/csharpcomp-script: New file.
47636 * modules/csharpcomp: Depend on it.
47637 * modules/javacomp-script: New file.
47638 * modules/javacomp: Depend on it.
47639 Suggested by Simon Josefsson.
47641 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
47643 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47644 statement, to work around an HP-UX 10.20 compiler bug reported by
47647 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47649 * modules/savedir (Depends-on): Add openat.
47651 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47653 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47654 (uintmax_t) [defined uintmax_t]: Do not declare.
47655 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47656 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47657 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
47658 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47659 sake of portability to weird hosts that C allows (though we don't
47660 know of any practical examples).
47662 * lib/savedir.h (fdsavedir): New decl.
47663 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47664 contains most of the former guts of savedir.
47665 (savedir): Use savedirstream.
47666 Include "openat.h".
47668 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
47670 * modules/obstack (Files): Add m4/ulonglong.m4.
47671 Problem reported by Davide Angelocola.
47673 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
47675 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47676 coreutils no longer futzes with rounding modes.
47678 2005-11-14 Jim Meyering <jim@meyering.net>
47680 * lib/mkstemp-safer.c: Include <config.h>, required for possible
47681 replacement of mkstemp.
47683 2005-11-10 Simon Josefsson <jas@extundo.com>
47685 * lib/readline.c: Remove EOL.
47687 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47689 * modules/gethrxtime (Depends-on): Add gettime.
47691 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47693 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47694 or gettimeofday; no longer needed.
47696 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47698 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47700 (gethrxtime) [! (HAVE_NANOUPTIME
47701 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47702 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47703 our own approximation.
47705 2005-11-08 Eric Blake <ebb9@byu.net>
47707 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47709 2005-11-08 Eric Blake <ebb9@byu.net>
47711 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47713 2005-11-04 Bruno Haible <bruno@clisp.org>
47715 * gnulib-tool: Implement --update mode.
47717 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47719 Fix porting problem reported by Theodoros V. Kalamatianos.
47720 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47721 Don't assume that futimes failing means we must fail.
47723 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47725 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47726 variables to suggest the intended function of the PATH_MAX check.
47728 2005-10-30 Kean Johnston <jkj@sco.com>
47730 Trivial changes to support SCO systems.
47731 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47733 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47734 where __ptr is null when no I/O is pending.
47736 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
47738 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47739 leave errno alone. Problem reported by Dmitry V. Levin.
47741 2005-10-28 Simon Josefsson <jas@extundo.com>
47743 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47746 * tests/test-gc-md2.c, tests/test-md2.c: New files.
47748 * modules/md2, modules/md2-tests: New files.
47750 2005-10-28 Simon Josefsson <jas@extundo.com>
47752 * m4/inet_ntop.m4: More tests.
47754 * m4/gc-md2.m4, md2.m4: New file.
47756 2005-10-28 Simon Josefsson <jas@extundo.com>
47758 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47759 "restrict" keywords, as per POSIX. Protect the function
47760 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47761 Don't use K&R prototypes. Check the sprintf return values.
47762 Re-define EAFNOSUPPORT if not present. Indent.
47764 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47765 suggested by Bruno Haible <bruno@clisp.org>.
47767 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47769 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47771 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47774 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47776 * lib/md2.h, lib/md2.c: New files.
47778 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47780 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47781 errno alone. Problem reported by Frederic Jolliton.
47783 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47785 * modules/verify (License): Change from GPL to LGPL. This is a
47786 tiny module and there are apparently near-equivalents that are
47787 under the BSD license.
47789 2005-10-24 Simon Josefsson <jas@extundo.com>
47791 * modules/sha1: Relicense to LGPL.
47793 2005-10-24 Simon Josefsson <jas@extundo.com>
47795 * lib/md4.h: Shrink buffer size, now that we changed the type.
47797 2005-10-23 Simon Josefsson <jas@extundo.com>
47799 * gnulib-tool (func_import): Fix --tests-base.
47801 2005-10-22 Simon Josefsson <jas@extundo.com>
47803 * modules/arcfour (Depends-on): Need stdint.
47805 2005-10-22 Simon Josefsson <jas@extundo.com>
47807 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47808 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47810 2005-10-22 Simon Josefsson <jas@extundo.com>
47812 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47813 suggested by Bruno Haible <bruno@clisp.org>.
47815 2005-10-22 Simon Josefsson <jas@extundo.com>
47817 * lib/crc.h: Include stddef.h, for size_t.
47819 2005-10-22 Simon Josefsson <jas@extundo.com>
47821 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47822 arcfour_context struct (simplify test vector testing in GNU
47825 2005-10-21 Simon Josefsson <jas@extundo.com>
47827 * modules/des, modules/des-tests: New files.
47829 * modules/gc-des, modules/gc-des-tests: New files.
47831 * tests/test-des.c, tests/test-gc-des.c: New file.
47833 2005-10-21 Simon Josefsson <jas@extundo.com>
47835 * modules/arctwo, modules/arctwo-tests: New files.
47837 * tests/test-arctwo.c: New file.
47839 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47841 * tests/test-gc-arctwo.c: New file.
47843 2005-10-21 Simon Josefsson <jas@extundo.com>
47845 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47846 Bruno Haible <bruno@clisp.org>.
47848 * m4/gc-des.m4: New file.
47850 2005-10-21 Simon Josefsson <jas@extundo.com>
47852 * m4/arctwo.m4: New file.
47854 * m4/gc-arctwo.m4: New file.
47856 2005-10-21 Simon Josefsson <jas@extundo.com>
47858 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47861 2005-10-21 Simon Josefsson <jas@extundo.com>
47863 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47866 * lib/hmac-sha1.c (hmac_sha1): Likewise.
47868 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47869 Bruno Haible <bruno@clisp.org>.
47871 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47874 2005-10-21 Simon Josefsson <jas@extundo.com>
47876 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47878 2005-10-21 Simon Josefsson <jas@extundo.com>
47880 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47882 2005-10-21 Simon Josefsson <jas@extundo.com>
47884 * lib/des.h, lib/des.c: New files.
47886 * lib/gc-gnulib.c: Support DES.c
47888 2005-10-21 Simon Josefsson <jas@extundo.com>
47890 * lib/arctwo.h, lib/arctwo.c: New files.
47892 * lib/gc-gnulib.c: Support ARCTWO.
47894 2005-10-21 Simon Josefsson <jas@extundo.com>
47896 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47897 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47899 2005-10-21 Simon Josefsson <jas@extundo.com>
47901 * gnulib-tool (func_import, func_create_testdir): Define automake
47902 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47903 Makefile.am snippet),
47904 suggested by Bruno Haible <bruno@clisp.org>.
47906 * modules/gc (Makefile.am): Use it.
47908 2005-10-21 Bruno Haible <bruno@clisp.org>
47910 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47913 2005-10-19 Simon Josefsson <jas@extundo.com>
47915 * tests/test-gc-rijndael.c: New file.
47917 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47919 2005-10-19 Simon Josefsson <jas@extundo.com>
47921 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47924 2005-10-19 Simon Josefsson <jas@extundo.com>
47926 * tests/test-gc-arcfour.c: New file.
47928 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47930 2005-10-19 Simon Josefsson <jas@extundo.com>
47932 * modules/gc-md4, modules/gc-md4-tests: New file.
47934 * tests/test-gc-md4.c: New file.
47936 2005-10-19 Simon Josefsson <jas@extundo.com>
47938 * m4/gc-md4.m4: New file.
47940 2005-10-19 Simon Josefsson <jas@extundo.com>
47942 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47943 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47946 2005-10-19 Simon Josefsson <jas@extundo.com>
47948 * m4/gc-arcfour.m4: New file.
47950 * m4/gc-rijndael.m4: New file.
47952 2005-10-19 Simon Josefsson <jas@extundo.com>
47954 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47956 2005-10-19 Simon Josefsson <jas@extundo.com>
47958 * lib/gc-gnulib.c: Support ARCFOUR.
47960 2005-10-19 Simon Josefsson <jas@extundo.com>
47962 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47965 * lib/gc.h: Add ECB enum type.
47967 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47969 2005-10-18 Simon Josefsson <jas@extundo.com>
47971 * tests/test-md5.c: New file.
47973 * modules/md5-tests: New file.
47975 2005-10-18 Simon Josefsson <jas@extundo.com>
47977 * tests/test-md4.c: New file.
47979 * modules/md4, modules/md4-tests: New files.
47981 2005-10-18 Simon Josefsson <jas@extundo.com>
47983 * m4/md4.m4: New file.
47985 2005-10-18 Simon Josefsson <jas@extundo.com>
47987 * lib/md4.h, lib/md4.c: New files, based on md5.?.
47989 2005-10-17 Stepan Kasal <kasal@ucw.cz>
47991 * gnulib-tool (func_create_testdir): Omit the second check whether
47992 BUILT_SOURCES in nonempty.
47994 2005-10-17 Simon Josefsson <jas@extundo.com>
47996 * tests/test-rijndael.c: New file.
47998 2005-10-17 Simon Josefsson <jas@extundo.com>
48000 * modules/sha1: Depend on stdint instead of md5.
48002 * modules/md5: Depend on stdint, remove uint32_t.
48004 2005-10-17 Simon Josefsson <jas@extundo.com>
48006 * modules/gc-sha1-tests: New file.
48008 * tests/test-gc-sha1.c: New file.
48010 2005-10-17 Simon Josefsson <jas@extundo.com>
48012 * m4/md5.m4: Remove call to uint32_t.m4.
48014 2005-10-17 Simon Josefsson <jas@extundo.com>
48016 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48018 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48021 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
48023 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
48025 2005-10-17 Simon Josefsson <jas@extundo.com>
48027 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48029 2005-10-17 Simon Josefsson <jas@extundo.com>
48031 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48033 2005-10-17 Simon Josefsson <jas@extundo.com>
48035 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48037 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48039 2005-10-17 Bruno Haible <bruno@clisp.org>
48041 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48042 that it can also be used in a test.
48044 2005-10-16 Bruno Haible <bruno@clisp.org>
48046 * gnulib-tool (func_emit_tests_Makefile_am): Also define
48047 TESTS_ENVIRONMENT, so that individual tests can augment it.
48049 * gnulib-tool (func_create_testdir): Use an intermediate target for
48050 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48051 macros, like $(ALLOCA_H), which cannot be passed through the command
48054 2005-10-15 Simon Josefsson <jas@extundo.com>
48056 * modules/rijndael-tests: New file.
48058 * modules/rijndael: New file.
48060 2005-10-15 Simon Josefsson <jas@extundo.com>
48062 * m4/rijndael.m4: New file.
48064 2005-10-15 Simon Josefsson <jas@extundo.com>
48066 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48068 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48070 2005-10-14 Simon Josefsson <jas@extundo.com>
48072 * tests/test-arcfour.c: New file.
48074 * modules/arcfour, modules/arcfour-tests: New files.
48076 2005-10-14 Simon Josefsson <jas@extundo.com>
48078 * m4/arcfour.m4: New file.
48080 2005-10-14 Simon Josefsson <jas@extundo.com>
48082 * lib/arcfour.h, lib/arcfour.c: New files.
48084 2005-10-14 Roland McGrath <roland@redhat.com>
48086 Import from libc. [BZ #1331]
48087 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48089 Reported by Matej Vela <vela@debian.org>.
48091 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48093 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48094 include <wchar.h>; no longer needed.
48096 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48098 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48100 2005-10-14 Jakub Jelinek <jakub@redhat.com>
48101 and Ulrich Drepper <drepper@redhat.com>
48104 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48105 instead of inline stream orientation test and two separate
48106 function calls. Pay no attention to USE_IN_LIBIO.
48108 2005-10-13 Simon Josefsson <jas@extundo.com>
48110 * modules/gc-hmac-md5-tests: New file.
48112 * tests/test-gc-hmac-sha1.c: New file.
48114 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48116 * modules/gc-hmac-md5-tests: New file.
48118 * tests/test-gc-md5.c: New file.
48120 * modules/gc-md5-tests: New file.
48122 2005-10-13 Simon Josefsson <jas@extundo.com>
48124 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48125 Move memory allocation outside of loop.
48127 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
48129 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48130 intermediate directory is in a read-only file system. Problem
48131 reported by Eric Blake.
48133 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
48135 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48137 2005-10-12 Simon Josefsson <jas@extundo.com>
48139 * tests/test-hmac-sha1.c: New file.
48141 * modules/hmac-sha1-tests: New file.
48143 * modules/hmac-sha1: New file.
48145 2005-10-12 Simon Josefsson <jas@extundo.com>
48147 * modules/gc-sha1: New file.
48149 2005-10-12 Simon Josefsson <jas@extundo.com>
48151 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48153 * tests/test-gc-pbkdf2-sha1.c: New file.
48155 2005-10-12 Simon Josefsson <jas@extundo.com>
48157 * modules/gc-md5, modules/gc-hmac-md5: New files.
48159 * modules/gc (Files): Remove md5, memxor and hmac files.
48161 2005-10-12 Simon Josefsson <jas@extundo.com>
48163 * m4/gc-pbkdf2-sha1.m4: New file.
48165 * m4/gc-hmac-sha1.m4: New file.
48167 * m4/gc-sha1: New file.
48169 * m4/hmac-sha1.m4: New file.
48171 2005-10-12 Simon Josefsson <jas@extundo.com>
48173 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48175 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48177 2005-10-12 Simon Josefsson <jas@extundo.com>
48179 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48180 suggested by Bruno Haible <bruno@clisp.org>.
48182 2005-10-12 Simon Josefsson <jas@extundo.com>
48184 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48186 2005-10-12 Simon Josefsson <jas@extundo.com>
48188 * lib/gc-pbkdf2-sha1.c: New file.
48190 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48192 2005-10-12 Simon Josefsson <jas@extundo.com>
48194 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48196 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48198 2005-10-12 Simon Josefsson <jas@extundo.com>
48200 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48201 GC_USE_HMAC_MD5, respectively.
48203 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48204 (gc_md5): Fix typo.
48206 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48208 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48210 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48212 2005-10-12 Bruno Haible <bruno@clisp.org>
48214 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48215 Reported by Stepan Kasal <kasal@ucw.cz>.
48217 2005-10-11 Simon Josefsson <jas@extundo.com>
48219 * tests/test-crc.c: New file.
48221 * modules/crc, modules/crc-tests: New files.
48223 2005-10-11 Simon Josefsson <jas@extundo.com>
48225 * m4/crc.m4: New file.
48227 2005-10-11 Simon Josefsson <jas@extundo.com>
48229 * lib/gc.h: Add gc_hash and gc_hash_buffer.
48231 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
48233 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48235 2005-10-11 Simon Josefsson <jas@extundo.com>
48237 * lib/crc.h, lib/crc.c: New files.
48239 * lib/gc.h (gc_hash_buffer): Add doc.
48241 2005-10-11 Bruno Haible <bruno@clisp.org>
48243 * modules/c-strcasestr: New file.
48244 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48246 2005-10-11 Bruno Haible <bruno@clisp.org>
48248 * modules/c-strcase: New file.
48249 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48251 2005-10-11 Bruno Haible <bruno@clisp.org>
48253 * lib/strcasecmp.c: Include limits.h.
48254 (strcasecmp): Avoid integer overflow on exotic platforms.
48255 * lib/strncasecmp.c: Include limits.h.
48256 (strncasecmp): Avoid integer overflow on exotic platforms.
48257 Reported by Paul Eggert.
48259 2005-10-11 Bruno Haible <bruno@clisp.org>
48261 * lib/c-strcasestr.h: New file, from GNU gettext.
48262 * lib/c-strcasestr.c: New file, from GNU gettext.
48264 2005-10-11 Bruno Haible <bruno@clisp.org>
48266 * lib/c-strcase.h: New file, from GNU gettext.
48267 * lib/c-strcasecmp.c: New file, from GNU gettext.
48268 * lib/c-strncasecmp.c: New file, from GNU gettext.
48270 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48272 * modules/mempcpy (License): GPL -> LGPL.
48273 * modules/strchrnul (License): Likewise.
48274 * modules/sysexits (License): Likewise.
48276 2005-10-08 Simon Josefsson <jas@extundo.com>
48278 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48280 2005-10-07 Simon Josefsson <jas@extundo.com>
48282 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48284 2005-10-06 Simon Josefsson <jas@extundo.com>
48286 * tests/test-hmac-md5.c: New file.
48288 * modules/hmac-md5-tests: New file.
48290 * modules/hmac-md5: New file.
48292 2005-10-06 Simon Josefsson <jas@extundo.com>
48294 * m4/hmac-md5.m4: New file.
48296 * m4/memxor.m4: Require gl_C_RESTRICT.
48298 2005-10-06 Simon Josefsson <jas@extundo.com>
48300 * lib/memxor.c (memxor): Avoid casts and warnings.
48302 2005-10-06 Simon Josefsson <jas@extundo.com>
48304 * lib/hmac-md5.c: New file.
48306 * lib/hmac.h: New file.
48308 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48310 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48311 promotes to int, not unsigned int, to catch the AIX 5.3
48314 2005-10-05 Simon Josefsson <jas@extundo.com>
48316 * modules/memxor: New file.
48318 * modules/iconv (Files): Move config.rpath to havelib, it is used
48321 * modules/havelib (Files): Add config.rpath.
48323 2005-10-05 Simon Josefsson <jas@extundo.com>
48325 * m4/memxor.m4: New file.
48327 2005-10-05 Simon Josefsson <jas@extundo.com>
48329 * lib/memxor.c (memxor): Fix compiler error.
48331 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48332 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48334 * lib/memxor.h, lib/memxor.c: New files.
48336 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48337 we assume all systems have it, suggested by Jim Meyering
48338 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48339 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48340 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48343 2005-10-05 Simon Josefsson <jas@extundo.com>
48345 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48347 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48349 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48350 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48351 needed, since the source code now assumes these .h files.
48353 2005-10-05 Derek Price <derek@ximbiot.com>
48355 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48357 2005-10-05 Bruno Haible <bruno@clisp.org>
48359 * modules/stdint (License): Change to LGPL.
48361 2005-10-04 Simon Josefsson <jas@extundo.com>
48363 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48364 D. Baushke" <mdb@gnu.org>.
48366 2005-10-04 Bruno Haible <bruno@clisp.org>
48368 * lib/verify.h (verify_true): Provide alternative definition for C++.
48370 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48372 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48373 (SSIZE_MAX): New macro, if not already defined.
48374 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48377 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48379 Sync from coreutils.
48380 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48381 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48382 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48383 ULLONG_MAX doesn't work with 2.7.2.1.
48385 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48387 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48390 * modules/exclude (Depends-on): Depend on verify.
48391 * modules/strtoimax (Depends-on): Likewise.
48392 * modules/utimecmp (Depends-on): Likewise.
48394 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48396 * lib/exclude.c: Include verify.h.
48397 (verify): Remove. All callers changed to use verify.h's version.
48398 * lib/strtoimax.c: Likewise.
48399 * lib/utimecmp.c: Likewis.e
48401 Sync from coreutils.
48402 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48403 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48404 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48405 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
48406 bother returning ENOSYS if settimeofday or stime fails; just let
48407 them return whatever errno they want to return.
48408 * lib/utimens.c: Include unistd.h, for dup2.
48409 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48410 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48412 2005-10-02 Jim Meyering <jim@meyering.net>
48414 Sync from coreutils.
48415 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48416 from glibc-2.2.5 that fails for read-only files.
48418 2005-10-02 Jim Meyering <jim@meyering.net>
48420 Sync from coreutils.
48421 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48422 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48423 `#if HAVE_CONFIG_H'.
48424 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48425 Remove AT_FDCWD test.
48426 Do not consume the fd unless successful.
48427 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48428 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48429 block, so that we don't even try to compile it if settimeofday is
48430 available. This works around a compilation failure on OSF1 V5.1,
48431 due to stime requiring a `long int*' while tv_sec is `int'.
48433 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48435 Sync from coreutils.
48436 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48437 against `yes', rather than just testing for nonempty.
48439 2005-10-01 Simon Josefsson <jas@extundo.com>
48441 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48444 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48445 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48446 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48447 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48448 Check if struct addrinfo is declared.
48450 2005-10-01 Simon Josefsson <jas@extundo.com>
48452 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48453 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48454 AI_* and EAI_* definitions. Protect function declarations.
48456 2005-10-01 Jim Meyering <jim@meyering.net>
48458 Sync from coreutils.
48460 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48461 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48462 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48463 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48464 in the inet and nsl libraries. Required on Solaris 5.7.
48466 2005-10-01 Jim Meyering <jim@meyering.net>
48468 Sync from coreutils.
48469 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48470 in the inet and nsl libraries. Required on Solaris 5.7.
48472 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
48474 * lib/getdelim.c (getdelim): Remove unused variables.
48476 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48478 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48479 so that the code works even with ancient cpp. Portability problem
48480 with GCC 2.7.2.1 reported by Thomas M.Ott.
48482 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48484 * modules/regex (Depends-on): Add strcase.
48486 * modules/gethostname (Licence): Change from GPL to LGPL, since
48487 gethostname.c is a trivial implementation of a standard library
48489 * modules/poll (License): Change from GPL to LGPL, since it's
48490 derived from LGPL code.
48492 2005-09-27 Jim Meyering <jim@meyering.net>
48494 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48497 * lib/intprops.h (signed_type_or_expr__): Define.
48498 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48499 for unsigned types.
48501 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
48503 * lib/verify.h (verify_expr): Remove, replacing with:
48504 (verify_true): New macro that returns true instead of void.
48505 (verify_type__): Remove.
48506 (verify): Use verify_true rather than verify_type__.
48508 2005-09-26 Bruno Haible <bruno@clisp.org>
48510 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48512 (lib_SOURCES): Remove mbchar.c.
48513 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48514 (Files): Add m4/mbrtowc.m4.
48515 * modules/mbiter: Likewise.
48516 * modules/mbuiter: Likewise.
48518 2005-09-26 Bruno Haible <bruno@clisp.org>
48520 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48521 compile mbchar.c if they are not both present.
48522 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48523 * m4/mbiter.m4 (gl_MBITER): Likewise.
48524 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48525 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48526 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48528 2005-09-25 Jim Meyering <jim@meyering.net>
48530 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48531 also uses socklen_t.
48533 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
48535 * lib/utimens.c (ENOSYS): Define if not already defined.
48536 (futimens): Support having a null PATH if the file descriptor
48539 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48541 (__attribute): Define to empty unless GCC 3.1 or later.
48542 This works around a core dump on OpenBSD 3.4, which has GCC
48543 2.95.3, which dumps core when given __attribute__(()). It also
48544 simplifies other tests, since we really don't want to bother with
48545 worrying about which ancient version of GCC supported what.
48546 Original problem reported by Yoann Vandoorselaere, with part of
48547 the fix suggested by Derek Price.
48549 2005-09-24 Jim Meyering <jim@meyering.net>
48551 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48552 so we can once again use a positive bitfield width of 1 -- now we
48553 don't have to explain why we were using a bitfield width of 2.
48555 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48557 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48558 and similarly for the other external symbols. Problem reported
48561 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48562 bug reported by Jim Meyering.
48564 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48565 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48566 not needed, since socklen is a prerequisite module.
48568 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48570 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48571 Problem reported by Eric Blake.
48572 (getaddrinfo): Initialize se so that it's not garbage.
48573 Redo internal storage allocation so that it doesn't make unportable
48574 assumptions about alignment.
48577 * lib/utimens.c (futimens): Use futimesat if available.
48578 Prefer it to futimes since it doesn't have the futimes bug.
48580 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48581 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48582 Instead, declare a function that returns a pointer to an array,
48583 and use verify_type__ to declare the size of the array.
48584 Problem and germ of a solution reported by Bruno Haible.
48585 (verify_type__): Use 2, not 1, for bitfield size, to avoid
48586 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
48588 2005-09-23 Jim Meyering <jim@meyering.net>
48590 Sync from coreutils.
48591 Correct build failure (socklen_t not defined) on at least
48592 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48593 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48595 2005-09-23 Jim Meyering <jim@meyering.net>
48597 * modules/getaddrinfo (Depends-on): Add socklen.
48599 2005-09-23 Bruno Haible <bruno@clisp.org>
48601 * tests/test-verify.c: New file.
48603 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48605 Sync from coreutils.
48607 * modules/argmatch (Depends-on): Add verify.
48608 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48610 * modules/save-cwd (Depends-on): Likewise.
48612 * modules/openat (Files): Add lib/openat-die.c.
48613 (Depends-on): Remove error, exitfail.
48616 * modules/verify: New file.
48617 * MODULES.html.sh (Diagnostics <assert.h>): New section,
48618 with "verify" module.
48620 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48622 Sync from coreutils.
48624 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48625 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48626 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48627 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48628 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48629 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48630 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48631 Don't bother checking for string.h, stdlib.h, unistd.h.
48632 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48633 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48635 * m4/jm-macros.m4 (gl_MACROS): Likewise.
48636 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48638 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48639 (gl_GETDATE): Use it.
48641 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48643 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48645 Sync from coreutils.
48647 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48649 * lib/argmatch.h: Include verify.h
48650 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48651 (ARGMATCH_ASSERT): Remove; unused.
48652 * lib/canonicalize.c: Assume STDC_HEADERS.
48653 * lib/exclude.c: Include "strcase.h".
48654 * lib/regex_internal.h [!defined _LIBC]: Likewise.
48655 * lib/getusershell.c: Include stdio--.h rather than stdio.h
48657 (getusershell): Call fopen, not fopen_safer.
48658 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48659 Do not include unistd-safer.h.
48660 (save_cwd): Don't call fd_safer; no longer needed
48661 now that we include fcntl--.h.
48663 * lib/getdate.y (relative_time): New type.
48664 (RELATIVE_TIME_0): New constant.
48665 (parser_control): Use relative_time instead of doing it ourselves.
48666 (%union): Add new relative_time rel member.
48667 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48669 (relunit, relunit_snumber): Now of type rel.
48670 (zone, rel, relunit, get_date): Adjust to above changes.
48672 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48673 Do not include unistd-safer.h.
48674 (getloadavg): Don't call fd_safer; no longer needed
48675 now that we include fcntl--.h.
48677 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48678 (make_dir_parents): Treat ENOSYS like EEXIST.
48680 Improve quality of diagnostics on restore_cwd failure.
48681 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
48682 (make_dir_parents): Last arg is now int * (for errno), not bool *.
48683 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48684 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48685 each time through the loop. Do not diagnose restore_cwd failure;
48686 that is the caller's job (and perhaps the caller does not care).
48688 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48689 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48690 If the file already exists but is not a directory, don't bother
48691 to try to make its parents.
48692 Close potential file descriptor leak if we can't chdir("/") (!).
48693 Don't always return true if chdir($PWD) fails; return true only
48694 if the requested action was done successfully (except for the
48696 Don't log final directory unless we actually made it.
48697 Refactor to avoid duplicate code to fix up permissions.
48698 Don't attempt to fix up parent permissions if chdir($PWD) fails.
48700 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48701 to make it a bit faster and (I hope) clearer.
48702 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48703 Fix bug in formats like %2N.
48705 * lib/verify.h: New file.
48707 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48709 Sync from coreutils.
48710 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48712 2005-09-22 Jim Meyering <jim@meyering.net>
48714 Sync from coreutils.
48716 * m4/lstat.m4 (gl_FUNC_LSTAT):
48717 Use AC_LIBSOURCES to require lstat.c and lstat.h.
48718 Remove obsolete comment.
48719 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48720 * m4/xstrtod.m4: Likewise.
48722 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48724 2005-09-22 Jim Meyering <jim@meyering.net>
48726 Sync from coreutils.
48728 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48730 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48731 the .tm_year member, since otherwise gcc-4.0 would now warn about
48732 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48734 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48735 order to avoid an unsuppressible warning from gcc on 64-bit systems.
48737 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48738 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48739 when run in a time zone for which daylight savings time is in effect
48740 for the starting date.
48742 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48743 stop us from restricting permissions of just-created absolute-named
48745 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48746 to restore initial working directory.
48747 * lib/mkdir-p.c (make_dir_parents): New parameter:
48748 different_working_dir, to tell caller if/when we change the working
48749 directory and are unable to return to the initial one.
48750 * lib/mkdir-p.h (make_dir_parents): Update prototype.
48751 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48752 `return false'. This fixes a bug introduced on 2004-07-30.
48754 * lib/openat.c (fdopendir): Be sure to close the supplied
48755 file descriptor before returning. This makes our replacement
48756 implementation a little closer to Solaris's, where fdopendir
48757 ties the file descriptor to the returned DIR* pointer.
48758 * lib/openat.c (unlinkat): New function.
48759 * lib/openat.h (unlinkat): Add prototype.
48760 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48761 (openat_restore_fail): Rename from openat_restore_die.
48762 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48764 Provide an alternative to exiting immediately upon save_cwd or
48765 restore_cwd failure. Now, an application can arrange e.g.,
48766 to perform a longjump in that case.
48767 * lib/openat.c: Include dirname.h.
48768 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48769 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48770 and openat_restore_die rather than calling error directly.
48771 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48773 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48774 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48777 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48778 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48779 int utc, int nanoseconds);
48781 date should not have to allocate a megabyte of virtual memory to
48782 handle a format argument like +%1048575T. When implemented with
48783 strftime, it must allocate such a buffer, use strftime to fill it
48784 in, print it, then free it.
48785 With fprintftime, it simply prints everything and exits.
48786 With no need for memory allocation, that's one fewer way to fail.
48787 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48788 optional field width, not before, so we accept %9:z, not %:9z.
48789 (my_strftime): Be sure to use L_('x') for literals.
48791 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48792 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48793 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48794 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48795 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48796 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48797 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48798 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48799 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48800 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48801 * lib/xgethostname.c, lib/xreadlink.c:
48802 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48804 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48805 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48806 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48807 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48808 and don't include <sys/file.h>).
48810 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48812 Sync from coreutils.
48814 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48815 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48816 [!LDAV_DONE]: Avoid unused variable warning.
48818 2005-09-21 Bruno Haible <bruno@clisp.org>
48820 * lib/unicodeio.h (unicode_to_mb): New declaration.
48822 2005-09-20 Derek Price <derek@ximbiot.com>
48824 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48827 2005-09-20 Bruno Haible <bruno@clisp.org>
48829 * gnulib-tool: Remove trailing slashes from the values specified for
48830 --source-base, --m4-base, --tests-base, --aux-dir.
48831 Suggested by Simon Josefsson <jas@extundo.com>.
48833 2005-09-20 Bruno Haible <bruno@clisp.org>
48835 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48836 func_modules_to_filelist, func_import, func_create_testdir): Make all
48837 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48838 change when gnulib-tool is invoked in a different locale.
48840 2005-09-19 Simon Josefsson <jas@extundo.com>
48842 * m4/socklen.m4: Fix typo.
48844 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48846 Use a consistent style for including <config.h>.
48847 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48848 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48849 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48850 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48851 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48852 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48853 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48854 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48855 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48856 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48857 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48858 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48859 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48860 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48861 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48862 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48863 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48864 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48865 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48866 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48867 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48868 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48869 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48870 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48871 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48872 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48873 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48874 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48875 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48876 lib/xstrtoumax.c, lib/yesno.c:
48877 Standardize inclusion of config.h.
48878 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48879 lib/inttostr.h: Removed inclusion of config.h from header files.
48880 * lib/inttostr.c: Adjusted in-tree users.
48881 * lib/timespec.h: Remove superfluous warning to include config.h.
48882 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48883 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48884 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48885 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48886 config.h with HAVE_CONFIG_H.
48888 2005-09-19 Jim Meyering <jim@meyering.net>
48890 * modules/pathmax (License): Change to LGPL.
48892 2005-09-19 Derek Price <derek@ximbiot.com>
48894 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48896 2005-09-19 Bruno Haible <bruno@clisp.org>
48898 * gnulib-tool (import): Provide default for --tests-base.
48900 2005-09-19 Bruno Haible <bruno@clisp.org>
48902 * doc/quote.texi: New file, extracted from gnulib.texi.
48903 * doc/ctime.texi: New file, extracted from gnulib.texi.
48904 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48905 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48906 * doc/gnulib.texi: Include them.
48908 2005-09-18 Bruno Haible <bruno@clisp.org>
48911 * gnulib-tool (func_readlink): New function.
48912 (func_ln_if_changed): Use it.
48914 2005-09-18 Bruno Haible <bruno@clisp.org>
48916 * gnulib-tool: Support --with-tests also with --import.
48917 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48918 (func_import): Use variables $testsbase and $inctests. Emit a
48919 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48920 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48921 SUBDIRS += $testsdir.
48922 (func_create_testdir): Update.
48924 2005-09-18 Bruno Haible <bruno@clisp.org>
48926 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48927 instead of $dry_run.
48928 (func_cp_if_changed, func_mv_if_changed): Remove functions.
48929 (func_ln_if_changed): Don't handle dry-run here.
48930 (func_import): In dry-run mode, detect more precisely which actions
48931 would be performed, and don't use "...ing" verbs.
48933 2005-09-18 Bruno Haible <bruno@clisp.org>
48935 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48936 (func_import): Use join on two temporary files instead of three nested
48937 loops, in order to determine which files are new or old.
48939 2005-09-18 Bruno Haible <bruno@clisp.org>
48941 * gnulib-tool (func_import): Comment out code that spits out the
48942 new files with --dry-run.
48944 2005-09-18 Bruno Haible <bruno@clisp.org>
48946 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48948 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48950 * lib/stat-time.h: New file.
48951 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48952 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
48953 in a different way.
48954 (timespec_cmp): New function.
48955 * lib/utimecmp.c: Include stat-time.h.
48956 (SYSCALL_RESOLUTION): Depend on whether various struct stat
48957 members exist, not on the obsolescent ST_MTIM_NSEC.
48958 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48960 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48962 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48964 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48966 * MODULES.html.sh (File system functions): Add stat-time.
48967 * modules/stat-time: New file.
48968 * modules/timespec (Files): Remove m4/st_mtim.m4; this
48969 is now done in a different way, by the stat-time module.
48970 * modules/utimecmp (Depends-on): Add stat-time.
48972 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
48974 * m4/st_mtim.m4: Remove. Superseded by...
48975 * m4/stat-time.m4: New file.
48976 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48977 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48979 2005-09-15 Derek Price <derek@ximbiot.com>
48981 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48983 2005-09-15 Derek Price <derek@ximbiot.com>
48985 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48986 * lib/regex_internal.c: Ditto, using this...
48987 (__GNUC_PREREQ): ...new macro.
48988 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48990 (__GNUC_PREREQ): ...this new macro.
48992 * lib/strstr.h: Include string.h. Define strstr as a macro here.
48994 2005-09-15 Derek Price <derek@ximbiot.com>
48995 Paul Eggert <eggert@cs.ucla.edu>
48997 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48998 changes, consolidating in...
48999 * lib/regex_internal.h: ...this file.
49001 2005-09-13 Jim Meyering <jim@meyering.net>
49003 * lib/canon-host.c: Filter through gnu indent and reword comments
49005 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49007 2005-09-13 Derek Price <derek@ximbiot.com>
49009 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49011 Reported by Jim Meyering <jim@meyering.net>.
49013 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49015 * lib/base64.c: Typo.
49016 (base64_encode): Put b64str in initialized data section.
49018 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
49020 Merge glibc and coreutils changes into gnulib, plus a few
49022 * lib/md5.c: Use #error rather than a string.
49023 (CYCLIC): New macro, from glibc source. Use it instead of rol.
49024 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49025 (__attribute__): Define to empty for non recent-GCC.
49026 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49027 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49028 Renamed from their non-__ counterparts, with new macros replacing
49029 them if not _LIBC. Add __THROW attribute.
49031 (struct md5_ctx): Align buffer if using GCC.
49032 * lib/sha1.h (struct sha1_ctx): Likewise.
49033 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
49034 The old name was backwards.
49035 (NOTSWAP): Remove; not used.
49036 (rol): New macro, moved here from md5.h.
49037 (sha1_process_block): Remove a FIXME that doesn't make sense.
49039 2005-09-12 Derek Price <derek@ximbiot.com>
49041 Return usable errors from canon-host.
49042 * lib/canon-host.h: New file.
49043 * lib/canon-host.c (canon_host): Wrap...
49044 (canon_host_r): ...this new function, which now relies exclusively on
49046 (ch_strerror): New function.
49047 (last_cherror): New global.
49048 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49050 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
49052 (freeaddrinfo): Free ai->ai_canonname when set.
49054 2005-09-12 Derek Price <derek@ximbiot.com>
49056 Make canon-host require getaddrinfo.
49057 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49058 AC_LIBSOURCE canon-host.h. Call...
49059 (gl_PREREQ_CANON_HOST): ...this new function, which requires
49061 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49063 2005-09-12 Derek Price <derek@ximbiot.com>
49065 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
49067 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
49069 2005-09-12 Derek Price <derek@ximbiot.com>
49071 * lib/gai_strerror.c: Include config.h when available. Include
49072 getaddrinfo.h before other headers to test interface.
49073 Reported by Larry Jones <lawrence.jones@ugs.com>.
49075 2005-09-12 Derek Price <derek@ximbiot.com>
49076 Paul Eggert <eggert@cs.ucla.edu>
49078 * modules/glob (Files): Add glob-libc.h.
49080 2005-09-12 Derek Price <derek@ximbiot.com>
49081 Paul Eggert <eggert@cs.ucla.edu>
49083 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49084 glob_.h, glob-libc.h.
49085 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49087 2005-09-12 Derek Price <derek@ximbiot.com>
49088 Paul Eggert <eggert@cs.ucla.edu>
49090 * lib/glob-libc.h: Renamed from glob_.h. The new version is
49091 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49092 protecting things that should be done only in gnulib contexts.
49093 * lib/glob_.h: New file, containing only the glob things needed for
49095 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
49096 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49097 (glob, globfree, glob_pattern_p): Now defined simply in terms of
49098 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49099 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49100 and to respect the namespace rules better.
49102 2005-09-08 Simon Josefsson <jas@extundo.com>
49104 * modules/socklen: New file.
49106 2005-09-08 Simon Josefsson <jas@extundo.com>
49108 * m4/socklen.m4: New file.
49110 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49112 * modules/utimens (Files): Add m4/utimbuf.m4, since
49113 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49114 Reported by Sergey Poznyakoff.
49116 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49118 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49119 definitions, since that's the preferred style in glibc.
49120 Fix a minor spacing issue, and update copyright notice to match
49123 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49125 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49127 2005-09-06 Simon Josefsson <jas@extundo.com>
49129 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49130 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
49132 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49134 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49137 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49139 * config/srclist.txt: Add glibc bug 1302.
49141 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
49143 Change bitset word type from unsigned int to unsigned long int,
49144 as this has better performance on typical 64-bit hosts.
49145 Port bitset code to hosts with unusual word sizes.
49146 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49147 (build_collating_symbol):
49148 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49149 argument is a bitset. This is merely a style issue, but it makes
49150 it clearer that an entire array is expected.
49151 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49152 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49153 Port to the case where bitset_word is not the same as unsigned int.
49154 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49155 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49157 * lib/regexec.c (check_dst_limits_calc_pos_1,
49158 check_subexp_matching_top):
49159 (build_trtable, group_nodes_into_DFAstates):
49161 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49162 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49163 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49164 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49165 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49166 * lib/regcomp.c (optimize_subexps, lower_subexp):
49167 Work even if bitset_word has holes in its bitwise representation.
49168 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49169 * lib/regexec.c (check_dst_limits_calc_pos_1,
49170 check_subexp_matching_top):
49172 * lib/regex_internal.c (re_string_reconstruct):
49173 Don't assume UCHAR_MAX == 255.
49174 * lib/regex_internal.h (bitset_set_all): Likewise.
49175 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49177 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
49178 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49180 (BITSET_WORD_MAX): New macro.
49181 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49182 (bitset_set_all, bitset_copy): Now inline functions, not macros.
49183 (bitset_empty, bitset_copy):
49184 Prefer sizeof (bitset) to multiplying it out ourselves.
49185 (bitset_not_merge): Remove; unused.
49186 (bitset_contain): Return bool, not unsigned int with one bit on.
49187 All callers changed.
49188 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49189 alignment than re_node_set; do this by defining a new internal
49190 type struct dests_alloc and using it to allocate memory.
49192 2005-09-05 Bruno Haible <bruno@clisp.org>
49194 * gnulib-tool (func_import): Fix comparison in handling of symbolic
49197 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
49199 * modules/size_max (Makefile.am): Add size_max.h
49201 2005-09-04 Derek Price <derek@ximbiot.com>
49203 * gnulib-tool (func_import): Fix reversed $symbolic logic.
49205 2005-09-03 Simon Josefsson <jas@extundo.com>
49207 * gnulib-tool: Fix typo.
49209 2005-09-03 Simon Josefsson <jas@extundo.com>
49211 * config/srclist.txt: Add glibc bug 1293.
49213 2005-09-03 Derek Price <derek@ximbiot.com>
49215 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49216 From Larry Jones <lawrence.jones@ugs.com>.
49218 2005-09-02 Simon Josefsson <jas@extundo.com>
49220 * modules/socklen: New file.
49222 2005-09-02 Simon Josefsson <jas@extundo.com>
49224 * modules/havelib: New module.
49226 * modules/gettext, modules/iconv, modules/lock, modules/readline:
49229 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49231 Check for arithmetic overflow when calculating sizes, to prevent
49232 some buffer-overflow issues. These patches are conservative, in the
49233 sense that when I couldn't determine whether an overflow was possible,
49234 I inserted a run-time check.
49235 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49237 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49238 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49239 (re_xnrealloc, re_x2nrealloc): New inline functions.
49240 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49241 parse_bracket_exp):
49242 (build_equiv_class, build_charclass): Check for arithmetic overflow
49243 in size expression calculations.
49244 * lib/regex_internal.c (re_string_realloc_buffers):
49245 (build_wcs_upper_buffer, re_node_set_add_intersect):
49246 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49247 (re_dfa_add_node, register_state): Likewise.
49248 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49249 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49250 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49251 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49253 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49255 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49256 m4/ulonglong.m4. Problem reported by Martin Lambers.
49258 2005-09-02 Bruno Haible <bruno@clisp.org>
49260 Support for lib vs. lib64 distinction on biarch platforms.
49261 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49262 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49263 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49265 2005-09-02 Bruno Haible <bruno@clisp.org>
49267 * gnulib-tool (import): In the other first-use case, provide defaults
49270 2005-09-02 Bruno Haible <bruno@clisp.org>
49272 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49273 patches not yet found in the latest gettext release.
49275 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49277 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49278 to avoid a collision with bits/local_lim.h in glibc.
49279 All uses changed. Problem reported by Dmitry V. Levin in
49280 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49282 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49283 bugs in int versus size_t comparisons.
49284 (re_string_context_at): Fix bug where the code assumed that
49287 Use bool where appropriate.
49288 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49289 All callers changed.
49290 (calc_eclosure_iter): Likewise, for ROOT arg.
49291 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49292 (build_charclass_op): Likewise, for NON_MATCH arg.
49293 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49294 (re_string_construct_common): Likewise, for ICASE arg.
49295 * lib/regexec.c (re_search_2_stub, re_search_stub):
49296 Likewise, for RET_LEN arg.
49297 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49298 (set_regs): Likewise, for FL_BACKTRACK arg.
49299 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49300 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49301 (calc_eclosure_iter, parse_bracket_exp):
49302 Use bool for internal variables that are booleans.
49303 * lib/regexec.c (re_search_internal, check_matching,
49304 proceed_next_node):
49305 (set_regs, build_sifted_states, sift_states_bkref):
49306 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49307 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49308 (find_collation_sequence_value):
49310 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49311 (re_node_set_compare):
49312 Return bool, not int. All callers changed.
49313 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49314 (build_trtable, check_node_accept): Likewise.
49315 * lib/regex_internal.h: Include stdbool.h.
49317 Fix bugs uncovered when converting to bool.
49318 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49319 failure instead of charging ahead blindly.
49320 * lib/regex_internal.c (register_state): Likewise.
49321 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49322 for freeing internal storage.
49323 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49324 bitset pieces used as boolean, to avoid undefined behavior
49325 on hosts that do int overflow checking.
49327 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49329 * config/srclist.txt: Add glibc bugs 1285-1287.
49331 2005-09-01 Jim Meyering <jim@meyering.net>
49333 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49334 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49335 Require gl_STAT_MACROS, too.
49337 2005-09-01 Bruno Haible <bruno@clisp.org>
49339 * gnulib-tool (import): In the first-use case, provide defaults.
49341 2005-09-01 Bruno Haible <bruno@clisp.org>
49343 * gnulib-tool (func_import): Remove the .tmp files.
49345 2005-09-01 Bruno Haible <bruno@clisp.org>
49347 * gnulib-tool (func_import): Fix handling of symbolic links.
49349 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49351 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49352 old glibc regex code mishandles strings longer than 2**31 bytes.
49353 This patch fixes this when the regex code is used in gnulib
49354 (i.e., outside glibc).
49356 This patch should not affect the use of the regex code inside
49357 glibc. No doubt this problem also needs to be handled for glibc
49358 as well, but the result will be an incompatible change to the
49359 glibc ABI, and the old ABI will have to be supported too. That
49360 can be the the subject for another patch.
49362 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49363 governing whether the rest of this patch is active. By default,
49364 the macro is disabled and the patch has no effect.
49365 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49366 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49367 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49368 (re_match_2, re_set_registers): Use the new types.
49369 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49370 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49372 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49373 (re_string_context_at, bin_tree_t, re_dfastate_t):
49374 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49375 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49376 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49377 (re_string_char_size_at, re_string_wchar_at):
49378 (re_string_elem_size_at):
49379 Use the new types and macros to port to 64-bit hosts.
49380 Use unsigned types for internal values, so that the code
49381 mostly works even for arrays larger than SSIZE_MAX.
49382 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49383 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49384 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49385 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49386 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49387 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49388 (calc_inveclosure, parse_dup_op, build_range_exp):
49389 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49390 (fetch_number, create_token_tree, mark_opt_subexp):
49392 * lib/regex_internal.c (re_string_construct_common,
49393 create_ci_newstate):
49394 (create_cd_newstate, re_string_allocate, re_string_construct):
49395 (re_string_realloc_buffers, build_wcs_upper_buffer):
49396 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49397 (re_string_reconstruct, re_string_peek_byte_case):
49398 (re_string_fetch_byte_case, re_string_context_at):
49399 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49400 (re_node_set_init_copy, re_node_set_add_intersect):
49401 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49402 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49403 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49404 (re_acquire_state, re_acquire_state_context, register_state):
49406 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49407 search_cur_bkref_entry):
49408 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49409 (re_search_internal, re_search_2_stub, re_search_stub)
49410 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49411 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49412 (update_cur_sifted_state, check_dst_limits):
49413 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49414 (check_subexp_limits, sift_states_bkref, merge_state_array):
49415 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49416 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49417 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49418 (expand_bkref_cache, check_node_accept_bytes):
49419 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49420 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49421 (acquire_init_state_context, check_halt_node_context):
49422 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49423 (sift_states_backward, clean_state_log_if_needed):
49424 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49425 (find_recover_state, transit_state_sb, transit_state_mb):
49426 (transit_state_bkref, build_trtable, match_ctx_clean):
49428 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49429 to work around an assumption that REG_MISSING is negative.
49431 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49432 (seek_collating_symbol_entry) [defined _LIBC]:
49433 (lookup_collation_sequence_value) [defined _LIBC]:
49434 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49435 Use prototypes rather than old-style function definitions.
49436 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49437 (transit_state_sb) [0]:
49438 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49440 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49443 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49444 (optimize_subexps, lower_subexp):
49445 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49446 since the signed shift might overflow. Use 1u<<31 instead.
49447 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49449 * lib/regexec.c (check_dst_limits_calc_pos_1,
49450 check_subexp_matching_top): Likewise.
49452 * lib/regcomp.c (optimize_subexps, lower_subexp):
49453 Use CHAR_BIT rather than 8, for clarity.
49454 * lib/regexec.c (check_dst_limits_calc_pos_1):
49455 (check_subexp_matching_top): Likewise.
49456 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49457 have to worry about portability issues when shifting it left.
49458 Remove no-longer-needed test for table_size > 0.
49459 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49460 in a word, as the resulting behavior is undefined.
49461 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49462 in one case, a <= should have been an <, and in another case the
49463 whole test was missing.
49464 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49465 the standard name CHAR_BIT.
49466 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49467 this is not true on one's complement and signed-magnitude hosts.
49469 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49471 (struct re_dfa_t): Remove unused member states_alloc.
49472 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49474 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49476 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49477 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49478 and large-file glibc and in 32-bit large-file Solaris.
49480 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49482 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49483 lengths fit in regoff_t; this isn't true if regoff_t is the same
49485 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49486 (= START + RANGE) instead of RANGE. This avoids overflow
49487 problems when regoff_t is the same width as size_t.
49488 All callers changed.
49489 (re_search_2_stub): Check for overflow when adding the
49490 sizes of the two strings.
49491 (re_search_stub): Check for overflow when adding START
49492 to RANGE; if it occurs, substitute the extreme value.
49494 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49496 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49498 2005-08-31 Jim Meyering <jim@meyering.net>
49500 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49501 a pointer-to-const.
49502 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49503 (register_state): Likewise.
49504 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49505 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49506 (group_nodes_into_DFAstates): Likewise.
49508 2005-08-31 Jim Meyering <jim@meyering.net>
49510 * check-module: Add a FIXME comment.
49512 2005-08-31 Eric Blake <ebb9@byu.net>
49514 * modules/unistd-safer (Files): Add unistd--.h.
49515 * modules/stdio-safer (Files): Add stdio--.h.
49517 2005-08-31 Derek Price <derek@ximbiot.com>
49519 * lib/getdelim.c (getdelim): Return EOF on EOF.
49520 Reported by Larry Jones <lawrence.jones@ugs.com>.
49522 2005-08-31 Bruno Haible <bruno@clisp.org>
49524 Avoid unnecessary diffs in the generated lib/Makefile.am.
49525 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49526 the generated files.
49527 (func_import): Don't set cmd.
49529 2005-08-31 Bruno Haible <bruno@clisp.org>
49531 * lib/strstr.c: Include <stddef.h>, for NULL.
49532 * lib/strcasestr.c: Likewise.
49533 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49535 2005-08-31 Bruno Haible <bruno@clisp.org>
49537 * gnulib-tool: New option --macro-prefix.
49538 (func_import): Use macro_prefix.
49539 (import): Handle option --macro-prefix.
49541 2005-08-31 Bruno Haible <bruno@clisp.org>
49543 * gnulib-tool (import): Rename most ac_* variables to cached_*.
49544 Also use new variables cached_lgpl, cached_libtool.
49546 2005-08-31 Bruno Haible <bruno@clisp.org>
49548 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49549 always instantiating them.
49551 2005-08-31 Bruno Haible <bruno@clisp.org>
49553 * gnulib-tool (func_import): Read the previous cached settings
49554 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49555 earlier added by gnulib but are now dropped. Warn when a gnulib file
49556 overwrites a non-gnulib file.
49558 2005-08-31 Bruno Haible <bruno@clisp.org>
49560 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49561 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49562 projects that don't keep autogenerated files in CVS. Put into
49563 actioncmd only the specified modules, not the transitive closure.
49565 2005-08-31 Bruno Haible <bruno@clisp.org>
49567 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49568 Create directories that shall be filled.
49569 (import): Don't look for gl_* macros in configure.ac. Recurse across
49570 all directories containing a gnulib-cache.m4 files, if meaningful.
49572 2005-08-31 Bruno Haible <bruno@clisp.org>
49574 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49575 (import): Set seen_libtool when we see gl_LIBTOOL.
49577 2005-08-31 Bruno Haible <bruno@clisp.org>
49579 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49580 declaration macro definitions from generated gnulib.m4.
49582 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
49584 * lib/iconvme.h: Add prototype for iconv_alloc.
49586 2005-08-29 Simon Josefsson <jas@extundo.com>
49588 * lib/iconvme.c: Fix errno.
49590 2005-08-29 Bruno Haible <bruno@clisp.org>
49592 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49593 that it works when the directory contains spaces.
49595 2005-08-29 Bruno Haible <bruno@clisp.org>
49597 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49599 2005-08-29 Bruno Haible <bruno@clisp.org>
49601 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49604 2005-08-29 Bruno Haible <bruno@clisp.org>
49605 and Stepan Kasal <kasal@ucw.cz>
49607 * check-module: If more parameters are given, check each of them
49608 separately; add more exceptions, as noted by Jim Meyering.
49609 (check_module): New procedure.
49610 (%exempt_header): Now contains all exceptions.
49612 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
49614 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49616 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
49618 * lib/iconvme.c: Split iconv_string into iconv_alloc.
49620 2005-08-28 Bruno Haible <bruno@clisp.org>
49622 * m4/gnulib-tool.m4: New file.
49624 2005-08-27 Jim Meyering <jim@meyering.net>
49626 * modules/unistd-safer (Files): Add pipe-safer.c.
49627 * modules/fcntl-safer (Files): Add creat-safer.c.
49629 2005-08-27 Jim Meyering <jim@meyering.net>
49631 * m4/stdlib-safer.m4: New file. From coreutils.
49632 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49633 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49634 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49635 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49636 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49638 2005-08-27 Jim Meyering <jim@meyering.net>
49640 * lib/fopen-safer.c: Merge minor changes from coreutils.
49641 * lib/dup-safer.c: Likewise.
49642 * lib/fd-safer.c: Likewise.
49644 Merge from coreutils.
49645 * lib/stdio--.h: New file.
49646 * lib/stdlib--.h: New file.
49647 * lib/mkstemp-safer.c: New file.
49649 GNU tar needs these.
49650 * lib/pipe-safer.c: New file.
49651 * lib/creat-safer.c: New file.
49652 * lib/fcntl--.h (creat): Define to creat_safer.
49653 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49654 * lib/unistd--.h (pipe): Define to pipe_safer.
49655 * lib/unistd-safer.h: Declare pipe_safer.
49657 2005-08-26 Simon Josefsson <jas@extundo.com>
49659 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49660 Haible <bruno@clisp.org>.
49662 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
49664 * lib/regex_internal.h: Remove all references to
49665 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49667 (bitset_not, bitset_merge, bitset_not_merge):
49668 (bitset_mask, re_string_allocate, re_string_construct):
49669 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49670 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49671 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49672 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49673 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49674 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49675 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49676 (re_acquire_state_context):
49677 Remove unnecessary forward decls.
49678 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49679 Put __attribute at function definition,
49680 now that the function decl has been removed.
49681 * lib/regex_internal.c (re_string_peek_byte_case):
49682 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49685 2005-08-25 Stepan Kasal <kasal@ucw.cz>
49687 * m4/regex.m4: Add AC_PREREQ(2.50).
49688 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49690 2005-08-25 Simon Josefsson <jas@extundo.com>
49692 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49695 2005-08-25 Simon Josefsson <jas@extundo.com>
49697 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
49698 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
49699 GLIBC specific code.
49701 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49703 Make regex safe for g++. This fixes one real bug (an "err"
49704 that should have been "*err"). g++ problem reported by
49706 * lib/regex_internal.h (re_calloc): New macro, consistent with
49707 re_malloc etc. All callers of calloc changed to use re_calloc.
49708 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49709 not int. All callers changed.
49710 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49711 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49712 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49713 (find_recover_state): Change "err" to "*err"; this fixes what
49714 appears to be a real bug.
49715 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49718 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49720 * modules/regex (Depends-on): Add malloc, since the code
49721 assumes that !malloc(0) means failure.
49723 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49725 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49727 alloca modernization/simplification for regex.
49728 * lib/regex.c: Remove portability cruft for alloca. This no longer
49729 needs to be at the start of the file, and can be moved into
49730 regex_internal.h and simplified.
49731 * lib/regex_internal.h: Include <alloca.h>.
49732 (__libc_use_alloca) [!defined _LIBC]: New macro.
49733 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49734 now works outside glibc.
49736 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49738 * config/srclist.txt: Add glibc bugs 1241, 1245.
49740 2005-08-25 Jim Meyering <jim@meyering.net>
49742 * lib/open-safer.c: Include <config.h>.
49743 Otherwise, we'd lose LARGEFILE support in any file using
49746 2005-08-25 Bruno Haible <bruno@clisp.org>
49748 * m4/minmax.m4: Require autoconf 2.52.
49749 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49750 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49751 alternatives of translit over the alphabet.
49752 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49754 2005-08-24 Simon Josefsson <jas@extundo.com>
49756 * tests/test-getpass.c: New file.
49758 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49760 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49761 for GNU regex features.
49763 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49765 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49766 * lib/regex.h (regerror): Likewise.
49768 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49769 requires this. (The code never needed it.)
49771 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49772 All uses of recently-renamed identifiers changed to use the new,
49773 POSIX-compliant names. The code will build and run just fine
49774 without these changes, but it's better to eat our own dog food
49775 and use the standard-conforming names.
49777 * lib/regex.h: Fix a multitude of POSIX name space violations.
49778 These changes have an effect only for programs that define
49779 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49780 do not change anything for programs compiled in the normal way.
49781 Also, there is no effect on the ABI.
49783 (_REGEX_SOURCE): New macro.
49784 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49785 defined and _GNU_SOURCE is not; this fixes a name space violation.
49787 Rename the following macros to obey POSIX requirements.
49788 The old names are still visible as macros if _REGEX_SOURCE is defined.
49789 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49790 RE_BACKSLASH_ESCAPE_IN_LISTS.
49791 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49792 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49793 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49794 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49795 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49796 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49797 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49798 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49799 (REG_INTERVALS): renamed from RE_INTERVALS.
49800 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49801 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49802 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49803 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49804 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49805 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49806 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49807 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49808 RE_UNMATCHED_RIGHT_PAREN_ORD.
49809 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49810 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49811 (REG_DEBUG): renamed from RE_DEBUG.
49812 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49813 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49814 unusual, since we can't clash with the POSIX REG_ICASE.
49815 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49816 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49817 (REG_NO_SUB): renamed from RE_NO_SUB.
49818 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49819 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49820 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49821 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49822 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49823 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49824 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49825 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49826 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49827 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49828 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49829 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49830 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49831 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49832 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49833 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49834 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49835 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49836 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49837 (REG_FIXED): Renamed from REGS_FIXED.
49838 (REG_NREGS): Renamed from RE_NREGS.
49840 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49841 of other REG_* macros, since POSIX says the user is allowed to
49842 #undef these macros selectively.
49844 (reg_errcode_t): Update comment stating what other tables need
49847 Rename the following enum values to obey POSIX requirements.
49848 The old names are still visible as macros.
49849 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
49850 is not defined, since GNU is supposed to be a superset of POSIX as
49851 much as possible, and since we want reg_errcode_t to be a signed
49852 type for implementation consistency.
49853 (_REG_NOERROR): Renamed from REG_NOERROR.
49854 (_REG_NOMATCH): Renamed from REG_NOMATCH.
49855 (_REG_BADPAT): Renamed from REG_BADPAT.
49856 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49857 (_REG_ECTYPE): Renamed from REG_ECTYPE.
49858 (_REG_EESCAPE): Renamed from REG_EESCAPE.
49859 (_REG_ESUBREG): Renamed from REG_ESUBREG.
49860 (_REG_EBRACK): Renamed from REG_EBRACK.
49861 (_REG_EPAREN): Renamed from REG_EPAREN.
49862 (_REG_EBRACE): Renamed from REG_EBRACE.
49863 (_REG_BADBR): Renamed from REG_BADBR.
49864 (_REG_ERANGE): Renamed from REG_ERANGE.
49865 (_REG_ESPACE): Renamed from REG_ESPACE.
49866 (_REG_BADRPT): Renamed from REG_BADRPT.
49867 (_REG_EEND): Renamed from REG_EEND.
49868 (_REG_ESIZE): Renamed from REG_ESIZE.
49869 (_REG_ERPAREN): Renamed from REG_ERPAREN.
49870 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49871 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49872 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49873 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49875 (_REG_RE_NAME, _REG_RM_NAME): New macros.
49876 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
49877 changed. But support the old name if the new one is not defined
49878 and if _REGEX_SOURCE.
49880 Change the following member names in struct re_pattern_buffer.
49881 The old names are still supported if !_REGEX_SOURCE.
49882 The new names are always supported, regardless of _REGEX_SOURCE.
49883 (re_buffer): Renamed from buffer.
49884 (re_allocated): Renamed from allocated.
49885 (re_used): Renamed from used.
49886 (re_syntax): Renamed from syntax.
49887 (re_fastmap): Renamed from fastmap.
49888 (re_translate): Renamed from translate.
49889 (re_can_be_null): Renamed from can_be_null.
49890 (re_regs_allocated): Renamed from regs_allocated.
49891 (re_fastmap_accurate): Renamed from fastmap_accurate.
49892 (re_no_sub): Renamed from no_sub.
49893 (re_not_bol): Renamed from not_bol.
49894 (re_not_eol): Renamed from not_eol.
49895 (re_newline_anchor): Renamed from newline_anchor.
49897 Change the following member names in struct re_registers.
49898 The old names are still supported if !_REGEX_SOURCE.
49899 The new names are always supported, regardless of _REGEX_SOURCE.
49900 (rm_num_regs): Renamed from num_regs.
49901 (rm_start): Renamed from start.
49902 (rm_end): Renamed from end.
49904 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49905 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49906 Prepend __ to parameter names.
49908 Undo yesterday's changes.
49910 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49912 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49913 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
49916 2005-08-24 Jim Meyering <jim@meyering.net>
49918 Sync from coreutils.
49919 * m4/fcntl-safer.m4: New file.
49921 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49922 and object files for this module.
49924 2005-08-24 Jim Meyering <jim@meyering.net>
49926 Sync from coreutils.
49927 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49929 2005-08-24 Jim Meyering <jim@meyering.net>
49931 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49932 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49934 2005-08-24 Jim Meyering <jim@meyering.net>
49936 * modules/fcntl-safer: New module.
49937 * modules/fts (Depends-on): Add fcntl-safer.
49938 * MODULES.html.sh (File descriptor based Input/Output):
49941 2005-08-24 Bruno Haible <bruno@clisp.org>
49943 Support for unit test modules.
49944 * modules/README: Mention tests modules.
49945 * modules/TEMPLATE-TESTS: New file.
49946 * gnulib-tool: New options --extract-tests-module, --with-tests and
49947 --tests-base (unused for the moment).
49948 (testsbase, inctests): New variables.
49949 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49950 (func_verify_module): Exclude TEMPLATE-TESTS.
49951 (func_verify_nontests_module, func_verify_tests_module): New functions.
49952 (func_get_dependencies): Add implicit dependency for tests modules.
49953 (func_get_tests_module): New function.
49954 (func_modules_transitive_closure): When --with-tests was specified,
49955 include the unit tests as well, unless explicitly avoided.
49956 (func_emit_lib_Makefile_am): Ignore the tests modules here.
49957 (func_emit_tests_Makefile_am): New function.
49958 (func_create_testdir): When --with-tests was specified, emit a
49960 * MODULES.html.sh (Future developments): Update.
49962 2005-08-24 Bruno Haible <bruno@clisp.org>
49964 * modules/tls-tests: New file.
49965 * tests/test-tls.c: New file, from GNU gettext.
49967 2005-08-24 Bruno Haible <bruno@clisp.org>
49969 * modules/lock-tests: New file.
49970 * tests/test-lock.c: New file, from GNU gettext.
49972 2005-08-24 Bruno Haible <bruno@clisp.org>
49974 * lib/lock.h: Add multiple inclusion guard.
49975 * lib/tls.h: Add multiple inclusion guard.
49977 2005-08-24 Bruno Haible <bruno@clisp.org>
49979 * gnulib-tool: Add support for the --aux-dir option to
49980 --create-testdir, --create-megatestdir, --test, --megatest.
49981 (func_create_testdir, func_create_megatestdir): Optionally emit a
49982 AC_CONFIG_AUX_DIR directive.
49983 (create-testdir, create-megatestdir, test, megatest): Provide a
49984 default value for $auxdir.
49986 2005-08-24 Bruno Haible <bruno@clisp.org>
49988 * gnulib-tool (import): Use compound statement instead of subshell
49991 2005-08-24 Bruno Haible <bruno@clisp.org>
49993 * gnulib-tool (import): Change --aux-dir default to "build-aux".
49995 2005-08-24 Bruno Haible <bruno@clisp.org>
49997 * gnulib-tool (func_version): Update.
49999 2005-08-24 Bruno Haible <bruno@clisp.org>
50001 * gnulib-tool (func_import, func_create_testdir,
50002 func_create_megatestdir): Quote all autoconf macro arguments.
50004 2005-08-24 Bruno Haible <bruno@clisp.org>
50006 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50007 option --force, because --force causes the aclocal.m4 of each
50008 subdirectory to be newer than the corresponding config.h.in.
50010 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50012 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50013 All contents moved to gl_REGEX.
50014 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50015 assume that it does.
50017 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50019 * lib/regex.h (REG_NOSYS)
50020 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50021 Define, since POSIX requires it as of 2001.
50023 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50024 New private symbol, used to keep the enum signed in all cases.
50025 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50027 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50029 * lib/regex_internal.c (re_string_skip_chars, register_state):
50031 Remove forward decls; no longer needed now that we use prototypes.
50032 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50033 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50034 (clean_state_log_if_needed): Likewise.
50036 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50038 * config/srclist.txt: Add glibc bugs 1231-1233.
50040 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50042 Fix problems reported by Sam Steingold in
50043 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50044 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50045 assumed that reg_errcode_t is a signed type, which is not
50046 necessarily true if _XOPEN_SOURCE is not defined.
50047 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50048 since some compilers warn about it otherwise.
50050 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50052 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50053 (init_word_char, create_initial_state, duplicate_node_closure):
50054 (fetch_token, peek_token_bracket, build_range_exp):
50055 (build_collating_symbol): Remove forward decls; no longer needed
50056 now that we use prototypes.
50059 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50060 (re_compile_fastmap_iter, regcomp, regerror, regfree):
50061 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50062 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50063 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50064 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50065 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50066 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50067 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50068 (build_range_exp, build_collating_symbol, parse_bracket_exp):
50069 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50070 (build_charclass, build_charclass_op, fetch_number, create_tree):
50071 (create_token_tree, mark_opt_subexp, duplicate_tree):
50072 Use prototypes rather than old-style definitions.
50074 * lib/regex_internal.c:
50075 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50076 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50077 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50078 (re_string_reconstruct, re_string_peek_byte_case):
50079 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50080 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50081 (re_node_set_init_copy, re_node_set_add_intersect):
50082 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50083 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50084 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50085 (re_acquire_state, re_acquire_state_context, register_state):
50086 (create_ci_newstate, create_cd_newstate, free_state):
50088 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50090 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50091 (re_search_internal, prune_impossible_nodes):
50092 (acquire_init_state_context, check_matching, static):
50093 (check_halt_node_context, check_halt_state_context, proceed_next_node):
50094 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50095 (update_regs, sift_states_backward, build_sifted_states):
50096 (clean_state_log_if_needed, merge_state_array):
50097 (update_cur_sifted_state, add_epsilon_src_nodes):
50098 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50099 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50100 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50101 (find_recover_state, check_subexp_matching_top, transit_state_mb):
50102 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50103 (check_arrival, check_arrival_add_next_nodes):
50104 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50105 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50106 (check_node_accept_bytes, check_node_accept, extend_buffers):
50107 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50108 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50112 * lib/regex_internal.h:
50113 (re_string_allocate, re_string_construct, re_string_reconstruct):
50114 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50115 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50116 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50117 (re_string_context_at, re_string_peek_byte_case):
50118 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50119 is defined, since we now use prototypes always.
50121 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
50122 C89 or better. All uses removed.
50124 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50126 * config/srclist.txt: Add glibc bugs 1220-1227.
50128 2005-08-20 Jim Meyering <jim@meyering.net>
50130 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50131 of unused local, dfa.
50133 2005-08-20 Bruno Haible <bruno@clisp.org>
50135 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50137 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50139 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50140 (re_node_set_insert_last, re_dfa_add_node):
50141 Rename local variables to avoid GCC shadowing warnings.
50143 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50145 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50146 [defined lint]: Suppress bogus uninitialized-variable warnings.
50148 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50149 and let the caller return REG_ESPACE if out of space. This
50150 removes an uninitialied-variable warning with GCC 4.0.1, and also
50151 avoids taking the address of a local variable. All callers
50154 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50156 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50157 $LIBCSRC/posix/regexec.c.
50158 Add glibc bug 1217 for regcomp.c.
50160 2005-08-19 Jim Meyering <jim@meyering.net>
50162 * lib/regexec.c (proceed_next_node): Redo local variables to
50163 avoid GCC shadowing warnings.
50165 2005-08-18 Bruno Haible <bruno@clisp.org>
50167 * lib/strstr.c (strstr): Fix return value in multibyte case.
50168 * lib/strcasestr.c (strcasestr): Likewise.
50170 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
50172 * lib/regex.h: Remove useless space-before-tab. From coreutils.
50174 2005-08-17 Jim Meyering <jim@meyering.net>
50176 Make the %s format (seconds since the epoch) work for a negative
50177 number and when used with a zero-padded field width, e.g. %015s.
50179 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50180 label so that it precedes the code to set `digits'. Otherwise,
50181 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
50182 print `00-22'. Now, it prints `-0022', as it should.
50184 2005-08-17 Bruno Haible <bruno@clisp.org>
50186 * modules/strstr (Files): Add m4/mbrtowc.m4.
50187 (Depends-on): Add mbuiter.
50189 2005-08-17 Bruno Haible <bruno@clisp.org>
50191 * modules/strcasestr: New file.
50192 * MODULES.html.sh (String handling, based on ANSI C 89): Add
50195 2005-08-17 Bruno Haible <bruno@clisp.org>
50197 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50199 2005-08-17 Bruno Haible <bruno@clisp.org>
50201 * modules/mbuiter: New file.
50202 * MODULES.html.sh (Extended multibyte and wide character utilities):
50205 2005-08-17 Bruno Haible <bruno@clisp.org>
50207 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50208 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50210 2005-08-17 Bruno Haible <bruno@clisp.org>
50212 * m4/strcasestr.m4: New file.
50214 2005-08-17 Bruno Haible <bruno@clisp.org>
50216 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50217 * lib/strstr.c: Completely rewritten, with multibyte locale support.
50219 2005-08-17 Bruno Haible <bruno@clisp.org>
50221 * lib/strcasestr.h: New file.
50222 * lib/strcasestr.c: New file.
50224 2005-08-17 Bruno Haible <bruno@clisp.org>
50226 * lib/strcasecmp.c: Use mbuiter.h.
50228 2005-08-17 Bruno Haible <bruno@clisp.org>
50230 * lib/mbuiter.h: New file.
50232 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
50234 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50235 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
50236 and gl_GETOPT are both invoked via different paths (as happens
50237 with GNU tar CVS because it uses both argp and getopt), the former
50240 2005-08-16 Bruno Haible <bruno@clisp.org>
50242 * modules/tls: New file.
50243 * MODULES.html.sh (Multithreading): Add tls.
50245 2005-08-16 Bruno Haible <bruno@clisp.org>
50247 * modules/strnlen1: New file.
50248 * MODULES.html.sh (String handling): Add strnlen1.
50250 2005-08-16 Bruno Haible <bruno@clisp.org>
50252 * modules/strcase (Files): Add m4/mbrtowc.m4.
50253 (Depends-on): Add strnlen1, mbchar.
50255 2005-08-16 Bruno Haible <bruno@clisp.org>
50257 * modules/mbiter: New file.
50258 * MODULES.html.sh (Extended multibyte and wide character utilities):
50261 2005-08-16 Bruno Haible <bruno@clisp.org>
50263 * modules/mbfile: New file.
50264 * MODULES.html.sh (Extended multibyte and wide character utilities):
50267 2005-08-16 Bruno Haible <bruno@clisp.org>
50269 * modules/mbchar: New file.
50270 * MODULES.html.sh (Extended multibyte and wide character utilities):
50273 2005-08-16 Bruno Haible <bruno@clisp.org>
50275 * m4/tls.m4: New file, from GNU gettext.
50277 2005-08-16 Bruno Haible <bruno@clisp.org>
50279 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50281 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50283 2005-08-16 Bruno Haible <bruno@clisp.org>
50285 * m4/mbiter.m4: New file.
50287 2005-08-16 Bruno Haible <bruno@clisp.org>
50289 * m4/mbfile.m4: New file.
50291 2005-08-16 Bruno Haible <bruno@clisp.org>
50293 * m4/mbchar.m4: New file.
50295 2005-08-16 Bruno Haible <bruno@clisp.org>
50297 * lib/tls.h: New file, from GNU gettext.
50298 * lib/tls.c: New file, from GNU gettext.
50300 2005-08-16 Bruno Haible <bruno@clisp.org>
50302 * lib/strnlen1.h: New file.
50303 * lib/strnlen1.c: New file.
50305 2005-08-16 Bruno Haible <bruno@clisp.org>
50307 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50308 (mbi_init): Update.
50309 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50310 NUL byte, not after it.
50312 2005-08-16 Bruno Haible <bruno@clisp.org>
50314 * lib/strcase.h (strcasecmp): Add note in comments.
50315 * lib/strncasecmp.c: Use code from strcasecmp.c.
50316 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50317 (strcasecmp): Work correctly in multibyte locales.
50319 2005-08-16 Bruno Haible <bruno@clisp.org>
50321 * lib/mbiter.h: New file.
50323 2005-08-16 Bruno Haible <bruno@clisp.org>
50325 * lib/mbfile.h: New file.
50327 2005-08-16 Bruno Haible <bruno@clisp.org>
50329 * lib/mbchar.h: New file.
50330 * lib/mbchar.c: New file.
50332 2005-08-16 Bruno Haible <bruno@clisp.org>
50334 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50335 the valid ones. Makes the comparison operations transitive:
50336 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50337 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50339 2005-08-15 Simon Josefsson <jas@extundo.com>
50341 * modules/ssize_t (License): Change to 'unlimited'.
50343 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50345 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50347 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50348 Add comments for each pending glibc patch.
50350 2005-08-15 Bruno Haible <bruno@clisp.org>
50352 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50353 __cplusplus is defined.
50355 2005-08-14 Jim Meyering <jim@meyering.net>
50357 Sync from coreutils.
50359 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50360 Use the hash-table-based cycle-detection code not just when
50361 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50362 Reported by James Youngman in
50363 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50364 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50365 FTS_TIGHT_CYCLE_CHECK.
50366 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50367 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50369 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50370 * lib/fts.c (fd_safer): Remove decl.
50371 Include fcntl--.h rather than unistd-safer.h
50372 (fts_safe_changedir): Don't call fd_safer; no longer needed
50373 now that we include fcntl--.h.
50375 2005-08-12 Simon Josefsson <jas@extundo.com>
50377 * modules/getndelim2: Use ssize_t module.
50378 * modules/getnline: Likewise.
50379 * modules/safe-read: Likewise.
50380 * modules/xreadlink: Likewise.
50382 * modules/ssize_t: New file.
50384 2005-08-12 Simon Josefsson <jas@extundo.com>
50386 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50388 2005-08-12 Simon Josefsson <jas@extundo.com>
50390 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50393 2005-08-12 Simon Josefsson <jas@extundo.com>
50395 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50396 readline, getdelim and check_version.
50397 (Support for systems lacking ISO C 99: Sizes of integer types):
50400 2005-08-12 Bruno Haible <bruno@clisp.org>
50402 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50404 2005-08-11 Simon Josefsson <jas@extundo.com>
50406 * modules/readline: New file.
50408 * modules/strnlen (Files): Add strnlen.h.
50410 2005-08-11 Simon Josefsson <jas@extundo.com>
50412 * m4/readline.m4: New file.
50414 2005-08-11 Simon Josefsson <jas@extundo.com>
50416 * lib/readline.h, readline.c: New file.
50418 2005-08-11 Simon Josefsson <jas@extundo.com>
50420 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50423 2005-08-11 Bruno Haible <bruno@clisp.org>
50425 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50427 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50429 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50431 2005-08-10 Simon Josefsson <jas@extundo.com>
50433 * tests/test-iconvme.c: New file.
50435 2005-08-10 Simon Josefsson <jas@extundo.com>
50437 * m4/strnlen.m4: New file.
50439 * m4/strndup.m4: Don't check for strnlen declaration, done in
50442 2005-08-10 Simon Josefsson <jas@extundo.com>
50444 * lib/strndup.c: Use strnlen.h.
50446 * lib/strnlen.h: New file.
50448 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50452 2005-08-02 Simon Josefsson <jas@extundo.com>
50454 * modules/readline: New file.
50456 2005-08-02 Simon Josefsson <jas@extundo.com>
50458 * modules/getdelim: New file.
50460 * modules/getline: Rewrite, don't use getndelim2.
50462 2005-08-02 Simon Josefsson <jas@extundo.com>
50464 * m4/getline.m4: Separate out getdelim stuff into separate module.
50466 * m4/getdelim.m4: New file.
50468 2005-08-02 Simon Josefsson <jas@extundo.com>
50470 * lib/getline.h, getline.c: Rewrite.
50472 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50474 2005-07-31 Bruno Haible <bruno@clisp.org>
50476 * lib/lock.h (gl_lock_initializer): New macro.
50477 (gl_lock_define_initialized): Use it.
50478 (gl_rwlock_initializer): New macro.
50479 (gl_rwlock_define_initialized): Use it.
50480 (gl_recursive_lock_initializer): New macro.
50481 (gl_recursive_lock_define_initialized): Use it.
50483 2005-07-30 Karl Berry <karl@gnu.org>
50485 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50486 Report from Ben Pfaff, regarding getopt.
50488 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
50490 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50492 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50493 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
50494 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50495 (gl_GETOPT): Use the new macros. Most of the implementation
50496 is moved to the new macros. This is for programs like Emacs
50497 that don't want all the functionality of gl_GETOPT.
50499 2005-07-26 Bruno Haible <bruno@clisp.org>
50501 * m4/lock.m4: Update from GNU gettext.
50503 2005-07-26 Bruno Haible <bruno@clisp.org>
50505 * lib/lock.h: Update from GNU gettext.
50506 * lib/lock.c: Update from GNU gettext.
50508 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
50510 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50511 obsolescent AC_TRY_RUN. Include the default includes files, for
50514 2005-07-24 Bruno Haible <bruno@clisp.org>
50516 * modules/visibility: New file.
50517 * MODULES.html.sh (Misc): Add visibility.
50519 2005-07-24 Bruno Haible <bruno@clisp.org>
50521 * m4/visibility.m4: New file.
50523 2005-07-24 Bruno Haible <bruno@clisp.org>
50525 * doc/visibility.texi: New file.
50527 2005-07-22 Bruno Haible <bruno@clisp.org>
50529 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50530 $(ALLOCA_H), redundant through BUILT_SOURCES.
50531 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50532 redundant through BUILT_SOURCES.
50533 * modules/byteswap (Makefile.am): Remove explicit dependency on
50534 $(BYTESWAP_H), redundant through BUILT_SOURCES.
50535 * modules/fnmatch (Makefile.am): Remove explicit dependency on
50536 $(FNMATCH_H), redundant through BUILT_SOURCES.
50537 * modules/getopt (Makefile.am): Remove explicit dependency on
50538 $(GETOPT_H), redundant through BUILT_SOURCES.
50539 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50540 redundant through BUILT_SOURCES.
50541 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50542 redundant through BUILT_SOURCES.
50543 * modules/stdbool (Makefile.am): Remove explicit dependency on
50544 $(STDBOOL_H), redundant through BUILT_SOURCES.
50545 * modules/stdint (Makefile.am): Remove explicit dependency on
50546 $(STDINT_H), redundant through BUILT_SOURCES.
50547 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50548 Remove explicit dependency on $(SYSEXITS_H).
50549 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50551 2005-07-18 Simon Josefsson <jas@extundo.com>
50553 * lib/check-version.c (check_version): Accept identical versions too.
50555 2005-07-18 Bruno Haible <bruno@clisp.org>
50557 * modules/lock: New file.
50558 * MODULES.html.sh (Multithreading): New section.
50560 2005-07-18 Bruno Haible <bruno@clisp.org>
50562 * m4/lock.m4: New file, from GNU gettext.
50564 2005-07-18 Bruno Haible <bruno@clisp.org>
50566 * lib/lock.h: New file, from GNU gettext.
50567 * lib/lock.c: New file, from GNU gettext.
50569 2005-07-18 Bruno Haible <bruno@clisp.org>
50571 * lib/lock.h (gl_once_t): New type.
50572 (gl_once_define, gl_once): New macros.
50573 * lib/lock.c (fresh_once): New variable.
50574 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50577 2005-07-16 Simon Josefsson <jas@extundo.com>
50579 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50580 workaround, suggested by Bruno.
50582 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50584 * modules/xalloc (Depends-on): Add xalloc-die.
50585 * modules/xvasprintf (Depends-on): Add xalloc-die.
50587 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50589 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50590 with a minor change.
50592 2005-07-15 Bruno Haible <bruno@clisp.org>
50594 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50595 When using lib/poll.c, define poll as rpl_poll.
50597 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
50599 * modules/argp (Depends-on): Remove unlocked-io.
50601 2005-07-14 Derek Price <derek@ximbiot.com>
50603 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
50604 for glob symlink bug.
50606 2005-07-14 Bruno Haible <bruno@clisp.org>
50608 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50609 Instead, test for *_unlocked function declarations directly.
50611 2005-07-11 Simon Josefsson <jas@extundo.com>
50613 * modules/size_max: New file.
50615 * modules/xsize: Depend on size_max module for size_max.m4.
50617 2005-07-11 Simon Josefsson <jas@extundo.com>
50619 * lib/size_max.h: New file.
50621 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
50623 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50624 copyright symbol and the year.
50625 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50626 (version_etc_va): Use parameterized copyright notice.
50627 Reword to conform to the current GNU coding standards.
50629 2005-07-11 Karl Berry <karl@gnu.org>
50631 * doc/gnulib.texi (Quoting): new node.
50632 (Initial import): more info, from Patrice.
50634 2005-07-11 Bruno Haible <bruno@clisp.org>
50636 * gnulib-tool (func_usage): Document option --avoid.
50637 (Command line options): Handle --avoid.
50638 (func_acceptable): New function.
50639 (func_modules_transitive_closure): Use it.
50641 2005-07-11 Bruno Haible <bruno@clisp.org>
50643 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50644 Reported by Jim Meyering.
50646 2005-07-10 Bruno Haible <bruno@clisp.org>
50648 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50649 Needed when size_t is smaller than 'unsigned int'.
50650 Reported by Paul Eggert.
50652 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50654 * modules/argp (Depends-on): Add unlocked-io
50656 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50658 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50661 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
50663 * config/srclist.txt: Comment out regcomp.c, since we have a porting
50666 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
50667 and Paul Eggert <eggert@cs.ucla.edu>
50669 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50670 in wint_t, not wchar_t. Remove now-unnecessary cast.
50672 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50674 * modules/regex (Files): Add lib/regex_internal.c,
50675 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50676 (Depends-on): Add extensions.
50677 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50679 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50681 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50683 * m4/same.m4 (gl_SAME): Likewise.
50684 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50686 * m4/regex.m4: Adjust to new libc regex implementation.
50687 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50688 all the .c and .h parts of (the new) regex.
50689 Quote the m4 stuff better.
50690 Check for RE_ICASE bug of old gnulib.
50691 Check for REG_STARTEND of recent libc.
50692 Rename local variables from jm_* to gl_*.
50693 Quote operand of "test -f".
50694 Say "recent enough" version of libc, not "version 2".
50695 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50696 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
50697 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50698 Remove check for btowc, isascii.
50699 Require AM_LANGINFO_CODESET.
50701 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50703 * lib/regex.c, regex.h: Sync from libc.
50704 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50706 New files, synced from libc, except that regex_internal.h
50707 currently has a small porting fix.
50709 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50711 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50712 regex_internal.c, regexec.c.
50713 Add regex_internal.h too, but as a comment, since the libc version
50714 is currently broken in gnulib mode.
50716 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
50718 Support programs like Emacs that use gnulib but not gettext.
50719 * MODULES.html.sh (Internationalization functions): Add gettext-h.
50720 * modules/gettext-h: New file.
50721 * modules/gettext (Files): Remove lib/gettext.h.
50722 (Depends-on): Add gettext-h.
50723 (Makefile.am): Remove lib_SOURCES.
50724 * modules/argmatch, modules/c-stack, modules/closeout:
50725 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50726 * modules/execute, modules/file-type, modules/getaddrinfo:
50727 * modules/getopt, modules/human, modules/javacomp:
50728 * modules/javaexec, modules/mkdir-p, modules/obstack:
50729 * modules/openat, modules/pagealign_alloc, modules/pipe:
50730 * modules/quotearg, modules/regex, modules/rpmatch:
50731 * modules/unicodeio, modules/userspec, modules/version-etc:
50732 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50734 Depend on gettext-h, not gettext.
50736 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
50738 * gnulib-tool (func_import): Add support for 'public domain' license.
50739 * modules/alloca, modules/atexit, modules/memmove:
50740 Now public domain, not GPL.
50741 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50742 * modules/realloc, modules/strerror, modules/strtod:
50745 2005-07-05 Bruno Haible <bruno@clisp.org>
50747 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50748 autoconf CVS. Needed for mingw.
50750 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50752 Remove the dependency of the strftime module on the tzset module.
50753 * modules/strftime (Depends-on): Remove dependency on tzset.
50755 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50757 Remove the dependency of the strftime module on the tzset module.
50758 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50759 gl_FUNC_TZSET_CLOBBER.
50761 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50763 Remove the dependency of the strftime module on the tzset module.
50764 * lib/strftime.c (my_strftime)
50765 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50766 Copy the input structure, to work around some of the bug with
50767 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
50768 Solaris releases, you should also use the tzset module, but we won't
50769 require it as a dependency any more since we don't want LGPLed code
50770 to depend on GPLed code.
50772 2005-07-02 Jim Meyering <jim@meyering.net>
50774 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50775 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50776 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50777 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50779 2005-07-02 Jim Meyering <jim@meyering.net>
50781 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50783 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50785 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50786 declares only 'struct timespec;' (!).
50788 2005-07-01 Jim Meyering <jim@meyering.net>
50790 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50791 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50792 * lib/save-cwd.c, tempname.c:
50793 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50794 and don't include <sys/file.h>).
50796 2005-06-29 Jim Meyering <jim@meyering.net>
50798 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50799 type name. Use the variable name instead.
50800 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50803 2005-06-28 Simon Josefsson <jas@extundo.com>
50805 * modules/check-version (Files): Add check-version.m4.
50807 2005-06-28 Simon Josefsson <jas@extundo.com>
50809 * m4/check-version.m4: New file, suggested by Jim Meyering
50810 <jim@meyering.net>.
50812 2005-06-28 Simon Josefsson <jas@extundo.com>
50814 * lib/check-version.h, lib/check-version.c: New files.
50816 2005-06-28 Simon Josefsson <jas@extundo.com>
50818 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50819 collision with global variable. Better indentation. Don't
50820 increment buffer pointer beyond buffer end. Based on comments
50821 from Paul Eggert <eggert@cs.ucla.edu>.
50823 * lib/base64.h: Indent.
50825 2005-06-28 Simon Josefsson <jas@extundo.com>
50827 * doc/gnulib.texi (Library version handling): New section.
50829 2005-06-28 Jim Meyering <jim@meyering.net>
50831 * check-module (find_included_lib_files): Hard-code another
50832 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50833 but modules/fts-lgpl (correctly) does not list those files.
50835 * modules/canonicalize (Files): Add lib/pathmax.h.
50837 2005-06-25 Simon Josefsson <jas@extundo.com>
50839 * modules/check-version: New file.
50841 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50843 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50844 initializer of struct addrinfo, as an indication that we don't
50845 care how many members the structure has.
50847 2005-06-24 Derek Price <derek@ximbiot.com>
50848 and Bruno Haible <bruno@clisp.org>
50850 Remove stat module & update lstat.
50851 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50852 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50853 * m4/stat.m4: Remove this file.
50855 2005-06-24 Derek Price <derek@ximbiot.com>
50856 and Bruno Haible <bruno@clisp.org>
50858 Remove stat module & update lstat.
50859 * lib/stat.c: Remove this file...
50860 (slash_aware_lstat): ...moving this content and its support...
50861 * lib/lstat.c (rpl_lstat): ...into here.
50862 * lib/lstat.h: New file.
50864 2005-06-24 Derek Price <derek@ximbiot.com>
50865 and Bruno Haible <bruno@clisp.org>
50867 Remove stat module & update lstat.
50868 * config/srclist.txt (libc sources): Remove stat.
50870 2005-06-24 Derek Price <derek@ximbiot.com>
50871 and Bruno Haible <bruno@clisp.org>
50873 Remove stat module & update lstat.
50874 * MODULES.html.sh (stat): Remove.
50875 * MODULES.html: Regenerated.
50876 * modules/lstat (Description): Correct function name.
50877 (Files): Add "lstat.h".
50878 (Depends-on): Remove stat, add xalloc, stat-macros.
50879 * modules/stat: Remove this file.
50880 (Include): Add "lstat.h", remove <sys/stat.h>.
50882 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
50884 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
50885 (ranged_convert): Don't save conversion in a temporary struct.
50886 This causes a warning with GCC 4.0.0, and anyway in the typical
50887 case it's not worth the extra 100 bytes or so of code.
50888 (ranged_convert, __mktime_internal): When calling a function via a
50889 pointer P, use P () rather than (*P) (), as we now assume C89 or
50892 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
50894 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50895 "who -r" failed to give output. Problem reported by Tim Waugh.
50897 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50898 (xcalloc): Use it to avoid needless tests.
50899 Problem reported by Jim Meyering.
50901 2005-06-20 Derek Price <derek@ximbiot.com>
50903 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50904 unnecessary for Autoconfs > 2.59c.
50906 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50908 * lib/argp.h (__option_is_short): Check upper limit of
50909 __key. Isprint() requires its argument to have the value
50910 of an unsigned char or EOF.
50912 2005-06-16 Jim Meyering <jim@meyering.net>
50914 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50915 when either N or S is zero.
50917 2005-06-16 Derek Price <derek@ximbiot.com>
50919 * m4/bison.m4: Declare YACC & YFLAGS precious.
50921 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
50923 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50924 multibyte string or pattern, fall back on unibyte matching.
50925 Problem reported by James Youngman.
50927 2005-06-08 Bruno Haible <bruno@clisp.org>
50929 * modules/csharpcomp: New file.
50930 * MODULES.html.sh (C#): Add csharpcomp.
50932 2005-06-08 Bruno Haible <bruno@clisp.org>
50934 * m4/csharpcomp.m4: New file, from GNU gettext.
50936 2005-06-08 Bruno Haible <bruno@clisp.org>
50938 * lib/csharpcomp.h: New file, from GNU gettext.
50939 * lib/csharpcomp.c: New file, from GNU gettext.
50940 * lib/csharpcomp.sh.in: New file, from GNU gettext.
50942 2005-06-08 Bruno Haible <bruno@clisp.org>
50944 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50947 2005-06-07 Derek Price <derek@ximbiot.com>
50950 * lib/glob_.h: Indent nested #ifdef.
50952 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50954 Sync from coreutils.
50955 Use "file name" when talking about file names, instead of "filename"
50956 or "path", as per the GNU coding standards.
50957 * lib/mkdir-p.c: Renamed from makepath.c.
50958 (make_dir_parents): Renamed from make_path. All callers changed.
50959 * lib/mkdir-p.h: Likewise. All includers changed.
50960 * lib/filenamecat.c: Renamed from path-concat.c.
50961 (file_name_concat): Renamed from path_concat. All callers changed.
50962 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50963 * lib/filenamecat.h: Likewise. All includers changed.
50964 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50965 in comments or local variable names.
50966 * lib/basename.c: Likewise.
50967 * lib/canonicalize.c, canonicalize.h: Likewise.
50968 * lib/dirname.c, dirname.h: Likewise.
50969 * lib/euidaccess.c: Likewise.
50970 * lib/exclude.c: Likewise
50971 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50972 * lib/fsusage.c, fsuage.h: Likewise.
50973 * lib/fts.c, fts_.h: Likewise.
50974 * lib/getcwd.c: Likewise.
50975 * lib/getloadavg.c: Likewise.
50976 * lib/mkstemp.c: Likewise.
50977 * lib/mountlist.c, mountlist.h: Likewise.
50978 * lib/openat.c, openat.h: Likewise.
50979 * lib/readlink-stub.c: Likewise.
50980 * lib/readutmp.c, readutmp.h: Likewise.
50981 * lib/rename.c: Likewise.
50982 * lib/rmdir.c: Likewise.
50983 * lib/same.c: Likewise.
50984 * lib/savedir.c: Likewise.
50985 * lib/stripslash.c: Likewise.
50986 * lib/tempname.c: Likewise.
50987 * lib/xreadlink.c: Likewise.
50988 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50990 * lib/exclude.h: Likewise.
50992 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50993 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50994 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50995 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50996 * lib/pathmax.h: Include <limits.h> unconditionally, since other
50997 files have been getting away with it for years (MORE/BSD 4.3
50999 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51000 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51002 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51003 Define to 256, not 255, as per modern POSIX.
51005 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51007 Sync from coreutils.
51008 Use "file name" when talking about file names, instead of "filename"
51009 or "path", as per the GNU coding standards.
51010 * MODULES.html.sh: mkdir-p renamed from makepath.
51011 filenamecat renamed from path-concat.
51012 * modules/filenamecat: Renamed from modules/path-concat.
51013 (Files): filenamecat.h and filenamecat.c renamed from
51014 path-concat.h and path-concat.c.
51015 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51016 (Include): filenamecat.h, not path-concat.h.
51017 * modules/mkdir-p: Renamed from modules/makepath.
51018 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51020 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51021 (Include): mkdir-p.h, not makepath.h.
51023 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51025 Sync from coreutils.
51026 * m4/mkdir-p.m4: Renamed from makepath.m4.
51027 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
51028 Rename files from makepath.c to mkdir-p.c, and from
51029 makepath.h to mkdir-p.h.
51030 * m4/filenamecat.m4: Renamed from path-concat.m4.
51031 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
51032 Rename files from path-concat.c to filenamecat.c,
51033 and from path-concat.h to filenamecat.h.
51034 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51035 "file name" in local variables or comments.
51036 * m4/rename.m4: Likewise.
51038 2005-06-01 Bruno Haible <bruno@clisp.org>
51040 * modules/csharpexec: New file.
51041 * MODULES.html.sh (C#): New section.
51043 2005-06-01 Bruno Haible <bruno@clisp.org>
51045 * m4/csharp.m4: New file, from GNU gettext.
51046 * m4/csharpexec.m4: New file, from GNU gettext.
51048 2005-06-01 Bruno Haible <bruno@clisp.org>
51050 * lib/csharpexec.h: New file, from GNU gettext.
51051 * lib/csharpexec.c: New file, from GNU gettext.
51052 * lib/csharpexec.sh.in: New file, from GNU gettext.
51054 2005-05-31 Derek Price <derek@ximbiot.com>
51055 Paul Eggert <eggert@cs.ucla.edu>
51058 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51060 2005-05-31 Derek Price <derek@ximbiot.com>
51061 Paul Eggert <eggert@cs.ucla.edu>
51064 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51066 2005-05-29 Derek Price <derek@ximbiot.com>
51068 * config/srclist.txt (glob_.h, glob.c): Add these files.
51070 2005-05-29 Derek Price <derek@ximbiot.com>
51072 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51073 * modules/glob: New file.
51074 * modules/getlogin_r: Add link to POSIX spec in description.
51076 2005-05-29 Derek Price <derek@ximbiot.com>
51077 Paul Eggert <eggert@cs.ucla.edu>
51079 * m4/glob.m4: New file.
51081 2005-05-29 Derek Price <derek@ximbiot.com>
51082 Paul Eggert <eggert@cs.ucla.edu>
51084 * lib/glob_.h, lib/glob.c: New files.
51086 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51088 * modules/fts (Files): Remove m4/inttypes-pri.m4.
51089 * modules/fts-lgpl (Depends-on): Remove gettext.
51091 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51093 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51094 and don't require gt_INTTYPES_PRI.
51096 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51098 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51100 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51101 the configuration hassle isn't worth it.
51102 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51103 (LONGEST_MODIFIER, PRIuMAX): Remove.
51105 2005-05-27 Bruno Haible <bruno@clisp.org>
51107 * lib/getlogin_r.h: Remove second include of <stddef.h>.
51109 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
51111 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51112 _POSIX_PTHREAD_SEMANTICS for Solaris.
51114 2005-05-25 Derek Price <derek@ximbiot.com>
51116 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51118 2005-05-25 Derek Price <derek@ximbiot.com>
51119 Paul Eggert <eggert@cs.ucla.edu>
51121 * modules/getlogin_r, m4/getlogin_r.m4: New files.
51122 * lib/getlogin_r.c, getlogin_r.h: New files.
51124 2005-05-25 Bruno Haible <bruno@clisp.org>
51125 Derek Price <derek@ximbiot.com>
51127 * lib/getlogin_r.h: Simplify API documentation.
51129 2005-05-23 Derek Price <derek@ximbiot.com>
51131 * modules/minmax (Files): Add m4/minmax.m4.
51132 (configure.ac): Add gl_MINMAX.
51134 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
51136 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51137 so that unistd-safer.h (GPL'ed code) need not be included.
51139 2005-05-22 Bruno Haible <bruno@clisp.org>
51141 * m4/minmax.m4: New file.
51142 Based on a patch by Derek Price <derek@ximbiot.com>.
51144 2005-05-22 Bruno Haible <bruno@clisp.org>
51146 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51147 (INT64_MIN): Fix definition.
51148 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51150 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51151 NEED_SIGNED_INT_TYPES.
51153 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51154 HAVE_SYSTEM_INTTYPES.
51156 2005-05-22 Bruno Haible <bruno@clisp.org>
51158 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51159 Also include <sys/param.h> if it defines MIN, MAX.
51160 Based on a patch by Derek Price <derek@ximbiot.com>.
51162 2005-05-21 Jim Meyering <jim@meyering.net>
51164 * modules/fts (Files): Add m4/inttypes-pri.m4.
51165 (Depends-on): Add lstat and remove gettext. Alphabetize.
51167 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51170 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51171 (setup_dir, free_dir): New functions.
51172 (enter_dir, leave_dir): Define trivial
51173 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
51174 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
51175 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51176 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51177 Move to fts-cycle.c.
51178 (fts_open): Use setup_dir.
51179 (fts_close): Use free_dir.
51180 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51181 This adds a label and some gotos, but the alternatives were messier.
51182 Check for memory allocation failure when entering a dir.
51183 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51184 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51185 (FTS): New member fts_cycle, that is a union that contains the
51186 old active_dir_ht and cycle_state. All uses changed to mention
51187 fts_cycle.ht and fts_cycle.state.
51188 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51189 fts.c, with the following changes:
51190 (setup_dir, free_dir): New functions.
51191 (enter_dir): Now returns bool. Return true if successful, false
51192 if memory exhausted. All callers changed.
51193 Do not bother partly cleaning up on
51194 memory allocation failure; that is free_dir's job.
51195 However, free ad if hash_insert fails, to avoid memory leak.
51196 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51197 fts->fts_options to see which union member to use.
51199 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51201 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51202 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51204 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51206 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51208 2005-05-20 Jim Meyering <jim@meyering.net>
51210 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51211 Now a macro, to pacify GCC.
51213 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51215 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51218 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51220 * lib/chown.c (rpl_chown): Return -1 on failure.
51222 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51224 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51225 Don't check for stddef.h.
51226 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51227 don't use its results.
51228 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51229 since we include them unconditionally. Don't require
51230 AM_STDBOOL_H, since stdbool is a prerequisite.
51231 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51232 since we assume C89 or better.
51233 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51234 as we don't use their results.
51235 Don't check for fchdir, memmove, memset, strrchr, as we use
51236 them unconditionally.
51237 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51238 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51240 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51242 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51243 Include <stddef.h> unconditionally, since we assume C89 now.
51244 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51245 * lib/fts.c: Include fts_.h first, to check interface.
51246 Do not include intprops.h; no longer needed.
51247 Include cycle-check.h and hash.h, since fts_.h no longer does.
51248 Remove unnecessary casts of closedir to void.
51249 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51250 decide whether to decrement nlinks.
51251 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51252 (FTS): Use struct hash_table * instead of Hash_table, so that
51253 we no longer need to include hash.h here.
51255 2005-05-18 Jim Meyering <jim@meyering.net>
51257 * modules/dirfd (License): Change to LGPL. Most of the code
51258 is already in the public domain.
51260 2005-05-18 Jim Meyering <jim@meyering.net>
51262 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51263 Reported by Yoann Vandoorselaere.
51265 2005-05-17 Jim Meyering <jim@meyering.net>
51267 * m4/fts.m4: New file, from coreutils.
51269 2005-05-17 Jim Meyering <jim@meyering.net>
51271 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51273 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51275 Sync from coreutils.
51276 * m4/unlinkdir.m4: New file.
51278 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51280 Sync from coreutils.
51281 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51282 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51283 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51284 White space changes only.
51285 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51287 * lib/yesno.c: Include getline.h, not ctype.h.
51288 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51289 Use getline to remove arbitrary restriction on response length.
51291 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51293 * config/srclist-update: Spell out "Street" in FSF postal
51294 mail address; this is the style the FSF seems to prefer.
51296 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51297 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51298 this updates FSF postal mail address.
51300 Sync from coreutils.
51301 * modules/unlinkdir: New file.
51302 * modules/yesno (Depends-on): Add getline.
51303 * MODULES.html.sh (File system functions): Add unlinkdir.
51305 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51307 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51309 Change the initial comment to refer to GPL, not LGPL.
51310 gnulib-tool will change it to LGPL as needed.
51312 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51313 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51314 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51315 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51316 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51317 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51318 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51319 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51320 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51321 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51322 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51323 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51324 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51325 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51326 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51327 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51328 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51329 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51330 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51331 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51332 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51333 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51334 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51335 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51336 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51337 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51338 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51339 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51340 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51341 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51342 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51343 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51344 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51345 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51346 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51347 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51348 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51349 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51350 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51351 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51352 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51353 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51354 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51355 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51356 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51357 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51358 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51359 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51360 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51361 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51362 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51363 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51364 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51365 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51366 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51367 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51368 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51369 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51370 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51371 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51372 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51373 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51374 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51375 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51376 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51377 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51378 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51379 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51380 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51381 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51382 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51383 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51384 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51385 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51386 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51387 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51388 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51389 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51390 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51391 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51392 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51393 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51394 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51395 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51396 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51397 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51398 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51399 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51400 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51401 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51402 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51403 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51404 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51405 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51406 lib/yesno.c, lib/yesno.h:
51407 Update FSF postal mail address.
51409 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51411 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51412 tests/test-memmem.c, tests/test-stpncpy.c:
51413 Update FSF postal mail address.
51415 2005-05-13 Bruno Haible <bruno@clisp.org>
51417 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51418 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51419 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51420 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51421 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51422 Add support for 64-bit integers in the MSVC compiler.
51424 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51426 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51428 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51430 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51432 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51434 * doc/getdate.texi (General date syntax): Don't say that date
51435 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51436 Problem reported by Nic Ferrier.
51438 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51440 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51441 specified in ai_socktype. Fix invalid ai_protocol
51442 check. ai_protocol is usually set to 0 or depending on
51443 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51444 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51445 ai_socktype / ai_protocol in the returned addrinfo structure.
51447 2005-05-10 Simon Josefsson <jas@extundo.com>
51449 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51450 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51452 2005-05-10 Karl Berry <karl@gnu.org>
51454 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51455 (from http://www.gnu.org/licenses).
51456 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51457 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51460 2005-05-10 Karl Berry <karl@gnu.org>
51462 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51463 (COPYING.DOC): remove.
51465 * config/srclist-update: new FSF address.
51467 2005-05-10 Derek Price <derek@ximbiot.com>
51469 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51472 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51473 Bruno Haible <bruno@clisp.org>
51475 * modules/inet_ntop: New file.
51476 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51479 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51480 Bruno Haible <bruno@clisp.org>
51482 * m4/inet_ntop.m4: New file.
51484 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51485 Bruno Haible <bruno@clisp.org>
51487 * lib/inet_ntop.h: New file.
51488 * lib/inet_ntop.c: New file, from glibc with modifications.
51490 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
51492 * modules/time_r (License): Change to LGPL.
51493 * modules/extensions (License): Change to LGPL. Actually,
51494 the license is more permissive than that, but currently gnulib-tool
51495 doesn't know how to handle more-permissive licenses.
51497 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51498 Problem reported by Dave Love.
51500 2005-05-08 Jim Meyering <jim@meyering.net>
51502 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51505 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
51507 * modules/argmatch (Depends-on): Add stdbool.
51508 * modules/backupfile (Depends-on): Likewise.
51509 * modules/chdir-long (Depends-on): Likewise.
51510 * modules/closeout (Depends-on): Likewise.
51511 * modules/cycle-check (Depends-on): Likewise.
51512 * modules/dirname (Depends-on): Likewise.
51513 * modules/fnmatch (Depends-on): Likewise.
51514 * modules/fsusage (Depends-on): Likewise.
51515 * modules/fwriteerror (Depends-on): Likewise.
51516 * modules/getcwd (Depends-on): Likewise.
51517 * modules/getloadavg (Depends-on): Likewise.
51518 * modules/hard-locale (Depends-on): Likewise.
51519 * modules/makepath (Depends-on): Likewise.
51520 * modules/mountlist (Depends-on): Likewise.
51521 * modules/nanosleep (Depends-on): Likewise.
51522 * modules/posixtm (Depends-on): Likewise.
51523 * modules/quotearg (Depends-on): Likewise.
51524 * modules/readtokens (Depends-on): Likewise.
51525 * modules/readtokens0 (Depends-on): Likewise.
51526 * modules/readutmp (Depends-on): Likewise.
51527 * modules/save-cwd (Depends-on): Likewise.
51528 * modules/strftime (Depends-on): Likewise.
51529 * modules/userspec (Depends-on): Likewise.
51530 * modules/utimecmp (Depends-on): Likewise.
51531 * modules/xgetcwd (Depends-on): Likewise.
51532 * modules/xnanosleep (Depends-on): Likewise.
51533 * modules/xstrtod (Depends-on): Likewise.
51534 * modules/yesno (Depends-on): Likewise.
51536 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
51538 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51541 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51543 Merge from coreutils. Among other things,
51544 add bulletproofing for cases where stdin, stdout, or stderr are closed.
51545 * lib/fd-safer.c: New file.
51546 * lib/fcntl-safer.h, open-safer.c: Remove.
51547 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51548 * lib/dup-safer.c: Include unistd-safer.h first.
51549 Don't include errno.h.
51550 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51551 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51552 * lib/file-type.c: Rely on file-type.h change.
51553 * lib/getloadavg.c: Include unistd-safer.h.
51554 (getloadavg): Use safer open.
51555 * lib/getusershell.c: Include "stdio-safer.h".
51556 (getusershell): Use safer fopen.
51557 * lib/long-options.c (long_options): Use NULL rather than 0.
51558 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51560 * lib/modechange.c: Likewise.
51561 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51562 (MODE_DONE): New constant.
51563 (struct mode_change): Remove 'next' member.
51564 (make_node_op_equals): New function; like the old one of the
51565 same name, except it allocates an array.
51566 (mode_compile, mode_create_from_ref): Use it.
51567 (mode_compile): Allocate result as an array, not a linked list.
51568 Parse octal string ourself, so that we catch mistakes like "+0".
51569 (mode_adjust): Arg is an array, not a linked list.
51570 * lib/modechange.c: Include stat-macros.h, xalloc.h.
51571 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51572 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51573 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51574 Remove. This is now stat-macros.h's job.
51575 (talloc): Remove. All callers replaced by xalloc, so that
51576 our invokers don't have to worry about reporting memory failures.
51577 (make_node_op_equals): Remove.
51578 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51580 (struct mode_change): Moved here from modechange.h.
51581 (mode_append_entry): Remove.
51582 (mode_compile): Remove MASKED_OPS arg, since it encouraged
51583 apps to have incorrect behavior. Use simpler algorithm for head
51584 and tail. Don't futz with umask; that's now the job of mode_adjust.
51585 Detect more invalid usages rather than having somewhat-random behavior.
51586 Don't insert an "a=" action, as that leads to incorrect behavior.
51587 (mode_compile, mode_create_from_ref): Return NULL on error instead
51588 of an enum, since now there's only one way to have an error. All
51590 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51591 at the correct time. Simplify calculation of "+u" and its ilk.
51592 Don't mishandle "+X".
51593 (mode_free): Remove "register" and localize decls.
51594 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51595 (struct mode_change): Move to modechange.c; callers don't
51596 need to see this stuff.
51597 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51598 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51599 (mode_change, mode_adjust): Reflect the new signatures noted above.
51600 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51601 that might redefine system include files.
51602 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51603 (my_usleep): Use NULL rather than (void *) 0.
51604 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51605 Use siginterrupt to specify that system calls should be interrupted.
51606 (rpl_nanosleep): Move initialization of suspended closer to call of
51608 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
51609 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
51610 (desirable_utmp_entry): New function.
51611 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51612 using x2nrealloc, to simplify logic.
51613 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51614 size calculation. Do not assume utmp file is a regular file.
51615 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51616 (READ_UTMP_CHECK_PIDS): New constant.
51617 * lib/save-cwd.c: Include unistd-safer.h.
51618 (save_cwd): Use fd_safer.
51619 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51620 [!_LIBC] Include "stat-macros.h" instead.
51621 * lib/unistd-safer.h (fd_safer): New decl.
51623 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51625 * modules/getloadavg (Depends-on): Add unistd-safer.
51626 * modules/getusershell (Depends-on): Add stdio-safer.
51627 * modules/lstat (Depends-on): Remove xalloc.
51628 * modules/mkstemp (Depends-on): Add stat-macros.
51629 * modules/modechange (Depends-on): Remove xstrtol.
51630 Add stat-macros, xalloc.
51631 * modules/save-cwd (Depends-on): Add unistd-safer.
51632 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51633 * modules/unistd-safer (Files): Add lib/fd-safer.c
51634 (Makefile.am): Remove lib_SOURCES.
51636 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51637 Remove fcntl-safer; unistd-safer supersedes it.
51639 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51641 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51643 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51644 (gl_PREREQ_CHOWN): Remove.
51645 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51646 it. Don't require AC_HEADER_STAT.
51647 (gl_PREREQ_LSTAT): Remove.
51648 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51649 Don't require AC_HEADER_STAT.
51650 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51651 (gl_PREREQ_RMDIR): Remove.
51652 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51653 mention stat-macros.h or AC_HEADER_STAT, since we'll make
51654 the stat-macros module a prerequisite.
51655 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51656 * m4/filemode.m4 (gl_FILEMODE): Likewise.
51657 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51658 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51659 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51661 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51662 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
51664 * m4/fcntl-safer.m4: Remove.
51665 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51666 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51667 Invoke gl_PREREQ_FD_SAFER.
51668 (gl_PREREQ_FD_SAFER): New macro.
51669 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51670 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51671 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51672 Remove duplicate call to AC_LIBOBJ(readutmp).
51673 (gl_PREREQ_READUTMP): Remove. All uses inlined.
51675 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51676 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
51678 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51680 * MODULES.html.sh (Misc): Add byteswap.
51682 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51684 * modules/getcwd (Depends-on): Add extensions.
51685 * modules/openat (Depends-on): Likewise.
51687 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51689 * modules/byteswap: New file.
51691 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51693 * m4/byteswap.m4: New file.
51695 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51697 * lib/byteswap_.h: New file.
51699 2005-04-25 Karl Berry <karl@gnu.org>
51701 * m4/gettext.m4: Update from GNU gettext 0.14.4.
51703 2005-04-25 Albert Chin <china@thewrittenword.com>
51705 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51708 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
51710 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51711 (func_ln_if_changed) Remove forcibly for no error message
51712 in case file does not exist.
51714 2005-04-19 Simon Josefsson <jas@extundo.com>
51716 * gnulib-tool (Options): Make --symlink mean --symbolic.
51718 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
51720 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
51722 2005-04-16 Simon Josefsson <jas@extundo.com>
51724 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51726 2005-04-15 Simon Josefsson <jas@extundo.com>
51728 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51730 2005-04-15 Simon Josefsson <jas@extundo.com>
51732 * gnulib-tool: Rename --symlink to --symbolic.
51734 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
51736 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51737 symbolic links to files instead of copying/moving. Add --aux-dir,
51738 specifying directory relative --dir where auxiliary build tools
51741 2005-04-14 Bruno Haible <bruno@clisp.org>
51743 * modules/allocsa (License): Change to LGPL.
51744 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51746 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
51748 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51749 that "UTC +1 second" continues to work. Problem reported
51750 by Dmitry V. Levin.
51751 (relunit_snumber): New rule.
51754 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
51756 * lib/getdate.y (universal_time_zone_table): New constant.
51757 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51758 universal_time_zone_table.
51759 (lookup_zone): Prefer universal_time_zone_table to
51760 local_time_zone_table, so that "GMT" time stamps are allowed in
51761 London during the summer. Problem reported by Ian Abbott.
51763 2005-04-12 Jim Meyering <jim@meyering.net>
51765 * lib/human.c (humblock): Set *options even when returning due to
51766 xstrtoumax conversion failure. Thanks to a used-uninitialized
51767 warning from gcc-4.
51769 2005-04-09 Jim Meyering <jim@meyering.net>
51771 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51772 -Wuninitialized: initialize tm0.tm_year.
51774 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51776 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51777 count, since there's no maximum. All uses changed.
51778 Add member dsts_seen.
51779 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51781 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51782 Use pc_rels_seen to decide whther a date is absolute.
51784 * lib/getdate.y (number): Don't overwrite year.
51785 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51788 2005-04-02 Simon Josefsson <jas@extundo.com>
51790 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51791 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51793 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51795 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51796 where no absolute path name can be longer than PATH_MAX.
51798 2005-03-27 Jim Meyering <jim@meyering.net>
51800 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51802 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51804 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51805 "one's complement" -> "ones' complement" in comment, as per Knuth.
51806 "value of type" -> "type or expression" in comment.
51807 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51809 2005-03-26 Jim Meyering <jim@meyering.net>
51812 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51813 Correct typos: s/or/of/.
51815 2005-03-26 Jim Meyering <jim@meyering.net>
51817 * modules/check-include-files: Move to ../ and rename to...
51818 * check-module: ...this.
51820 2005-03-25 Jim Meyering <jim@meyering.net>
51822 * modules/xvasprintf (Files): Add xalloc.h.
51824 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51826 * modules/gettext (Files): config/config.rpath ->
51827 build-aux/config.rpath
51828 * modules/iconv (Files): Likewise.
51829 Problem reported by Oskar Liljeblad.
51831 2005-03-23 Jim Meyering <jim@meyering.net>
51833 * modules/check-include-files: New script to check for
51834 missing dependencies, multiple includes, etc.
51836 * modules/c-strtold (Depends-on): Add xalloc.
51837 * modules/c-strtod (Depends-on): Add xalloc.
51838 * modules/hash (Depends-on): Add xalloc.
51839 (Files): Remove lib/xalloc.h.
51841 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51842 * modules/userspec (Files): Add lib/inttostr.h.
51844 2005-03-23 Jim Meyering <jim@meyering.net>
51846 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51848 2005-03-22 Jim Meyering <jim@meyering.net>
51850 * modules/stat-macros: New module.
51851 * modules/canonicalize, modules/euidaccess, modules/file-type,
51852 * modules/filemode, modules/lchown, modules/makepath,
51853 * modules/rmdir, modules/stat: Depend on new stat-macros module
51854 rather than listing lib/stat-macros.h manually.
51855 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51857 2005-03-22 Jim Meyering <jim@meyering.net>
51859 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51861 2005-03-22 Bruno Haible <bruno@clisp.org>
51863 * config/srclist.txt: Replace target directory 'config' with
51865 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51866 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51869 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
51871 * modules/chdir-long (Depends-on): Add mempcpy.
51873 * modules/acl, modules/backupfile, modules/c-strtod,
51874 modules/c-strtold, modules/canon-host, modules/canonicalize,
51875 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51876 modules/exclude, modules/exitfail, modules/file-type,
51877 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51878 modules/getdate, modules/getline, modules/getpagesize,
51879 modules/getpass, modules/getugroups, modules/group-member,
51880 modules/hard-locale, modules/hash, modules/human, modules/idcache,
51881 modules/inttostr, modules/long-options, modules/makepath,
51882 modules/md5, modules/memcasecmp, modules/memcoll,
51883 modules/modechange, modules/mountlist, modules/path-concat,
51884 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51885 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51886 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51887 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51888 modules/strftime, modules/strndup, modules/strverscmp,
51889 modules/timespec, modules/unlocked-io, modules/userspec,
51890 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51892 Remove lib_SOURCES line from Makefile.am section, as this is now
51893 done automatically by the corresponding Autoconf macro.
51895 2005-03-21 Jim Meyering <jim@meyering.net>
51897 Changes imported from coreutils.
51899 * lib/cycle-check.c: Don't include xalloc.h.
51901 * lib/path-concat.c: Don't include assert.h.
51902 (path_concat): Remove assertion that would have triggered
51903 for ABASE starting with more than one slash.
51904 Reported by Andreas Schwab.
51906 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51907 properly when ABASE is an absolute file name.
51908 Correct the description of this function.
51909 Include <assert.h>.
51910 Add an assertion and a test driver.
51911 This fixes a bug introduced on 2004-07-02.
51912 Andreas Schwab reported the resulting failure of cp --parents:
51913 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51915 2005-03-21 Jim Meyering <jim@meyering.net>
51917 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51918 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51920 2005-03-21 Jim Meyering <jim@meyering.net>
51921 and Paul Eggert <eggert@cs.ucla.edu>
51923 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51924 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51925 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51926 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51927 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51928 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51929 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51930 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51931 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51932 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51933 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51934 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51935 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51936 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51937 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51938 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51939 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51942 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
51944 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51945 (which shouldn't happen), generate nothing instead of returning 0
51946 immediately, so that nstrftime (NULL, ...) doesn't return 0.
51948 2005-03-16 Bruno Haible <bruno@clisp.org>
51950 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51951 HAVE_LONGLONG_64BIT.
51953 2005-03-16 Bruno Haible <bruno@clisp.org>
51955 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51956 HAVE_LONGLONG_64BIT.
51958 2005-03-16 Bruno Haible <bruno@clisp.org>
51960 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51961 HAVE_LONGLONG_64BIT.
51963 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51965 * lib/strftime.c (my_strftime): Prepend space to format so that we can
51966 reliably distinguish strftime failure from empty output on POSIX
51969 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51971 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51972 (iconv_string): Don't guess a size-zero buffer, as that might cause
51973 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
51974 result would be 'too large', where 'too large' is (heuristically)
51975 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51976 overflow concerns. This will prevent some unwanted malloc failures
51977 when the inputs are very large.
51979 2005-03-15 Karl Berry <karl@gnu.org>
51981 * config/srclist.txt (config.rpath): from gettext.
51982 * config/config.rpath: update.
51984 2005-03-15 Bruno Haible <bruno@clisp.org>
51986 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51989 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51992 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51995 2005-03-14 Simon Josefsson <jas@extundo.com>
51997 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52000 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
52002 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52003 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52005 * lib/strtol.c: Likewise.
52007 2005-03-14 Jim Meyering <jim@meyering.net>
52009 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52010 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52011 to be nonzero so that we (and caller) can detect the difference
52012 between a valid zero-length expansion and an error return, even
52013 when the underlying strftime fails before writing anything into
52016 2005-03-14 Bruno Haible <bruno@clisp.org>
52018 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52019 Update from GNU gettext 0.14.3.
52021 2005-03-10 Jim Meyering <jim@meyering.net>
52023 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52025 2005-03-10 Jim Meyering <jim@meyering.net>
52027 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52028 so that this module works on systems without fchdir.
52030 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
52032 Factor int-properties macros into a single file, except for
52033 glibc-related files.
52034 * lib/intprops.h: New file.
52035 * lib/getloadavg.c: Include it instead of limits.h.
52036 (INT_STRLEN_BOUND): Remove.
52037 * lib/human.c: Include intprops.h.
52038 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52039 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52041 * lib/inttostr.h: Include intprops.h instead of limits.h.
52042 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52043 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52044 for consistency with intprops.h.
52045 (time_t_is_integer, twos_complement_arithmetic): Use them.
52046 * lib/sig2str.h: Include <signal.h>, intprops.h.
52047 (INT_STRLEN_BOUND): Remove.
52048 * lib/strftime.c (TYPE_SIGNED): Remove.
52049 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52050 * lib/strtol.c: Adjust comments to match intprops.h.
52051 * lib/userspec.c: Include intprops.h.
52052 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52053 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52054 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52055 instead of rolling our own expressions.
52056 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52058 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
52060 (my_strftime): Do not mishandle years close to INT_MAX, by doing
52061 the right thing even if adding 1900 would overflow. Similarly
52062 for tm_mon + 1 and tm_yday + 1.
52063 Make %Y always equivalent to %C%y, and similarly for %G and %g.
52064 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52065 (DO_SIGNED_NUMBER): New macro.
52066 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52068 2005-03-07 Bruno Haible <bruno@clisp.org>
52070 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52072 2005-03-07 Bruno Haible <bruno@clisp.org>
52074 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52076 2005-03-04 Derek R. Price <derek@ximbiot.com>
52078 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52079 (func_import): Only replace files via --import when they have actually
52082 2005-03-03 Derek R. Price <derek@ximbiot.com>
52084 * m4/mmap-anon.m4: New file.
52085 * m4/pagealign_alloc.m4: New file.
52087 2005-03-03 Derek R. Price <derek@ximbiot.com>
52088 Bruno Haible <bruno@clisp.org>
52090 * modules/pagealign_alloc: New file.
52091 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52093 2005-03-03 Derek R. Price <derek@ximbiot.com>
52094 Bruno Haible <bruno@clisp.org>
52096 * lib/pagealign_alloc.h: New file.
52097 * lib/pagealign_alloc.c: New file.
52099 2005-03-03 Bruno Haible <bruno@clisp.org>
52101 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52102 Use an all-permissive copyright notice, recommended by RMS.
52104 2005-03-02 Bruno Haible <bruno@clisp.org>
52106 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52107 of AIX, the replacement has to be done only after <string.h> is
52108 included, therefore not in config.h. stpncpy.h does the replacement,
52109 and stpncpy.c uses it.
52111 2005-03-02 Bruno Haible <bruno@clisp.org>
52113 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52116 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52118 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52119 The workaround isn't strictly needed for POSIX conformance, and
52120 it's too much of a pain to configure and maintain. We'll ask
52121 people to fix their kernels instead.
52122 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52123 (NANOSLEEP_BUG_WORKAROUND): Remove.
52124 (xnanosleep): Remove the workaround.
52126 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52128 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52129 Reported by Derek Price.
52130 (Include): Add "timespec.h".
52132 * modules/xnanosleep (Depends-on): Remove gethrxtime.
52134 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52136 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52137 to detect nanosleep bug.
52139 2005-03-01 Bruno Haible <bruno@clisp.org>
52141 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52143 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
52145 * modules/gethrxtime: New file.
52146 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52147 (Depends-on): Add gethrxtime.
52148 (configure.ac): Add gl_XNANOSLEEP.
52149 (Makefile.am): Remove lib_SOURCES line.
52151 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52153 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52154 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52156 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52158 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52159 * lib/timespec.h (gettime): Return void, since it always
52160 succeeds now. All uses changed.
52161 * lib/gettime.c (gettime) Likewise.
52162 [HAVE_NANOTIME]: Prefer nanotime.
52163 Assume gettimeofday succeeds, as POSIX requires.
52164 Assime time () succeeds, since other code already does.
52165 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52166 (timespec_subtract): Remove.
52167 (NANOSLEEP_BUG_WORKAROUND): New constant.
52168 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52169 things considerably. Use it only on GNU/Linux hosts, since the
52170 workaround shouldn't be needed elsewhere.
52172 2005-02-24 Bruno Haible <bruno@clisp.org>
52174 * modules/gettext (Files): Add m4/glibc2.m4.
52176 2005-02-24 Bruno Haible <bruno@clisp.org>
52178 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52179 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52181 Update from GNU gettext 0.14.2.
52182 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52184 2005-02-24 Bruno Haible <bruno@clisp.org>
52186 * lib/localcharset.c: Update from GNU gettext 0.14.2.
52187 * lib/config.charset: Update from GNU gettext 0.14.2.
52189 2005-02-24 Bruno Haible <bruno@clisp.org>
52191 * lib/gettext.h: Update from GNU gettext 0.14.2.
52193 2005-02-23 Simon Josefsson <jas@extundo.com>
52195 * m4/iconvme.m4: New file.
52197 2005-02-23 Jim Meyering <jim@meyering.net>
52199 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52201 Thanks to Bruno Haible for catching it.
52203 2005-02-22 Simon Josefsson <jas@extundo.com>
52205 * modules/iconvme: New file.
52207 * MODULES.html.sh: Add iconvme.
52209 2005-02-22 Simon Josefsson <jas@extundo.com>
52211 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52213 2005-02-22 Simon Josefsson <jas@extundo.com>
52215 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52217 2005-02-22 Jim Meyering <jim@meyering.net>
52219 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52222 2005-02-20 Neil Conway <neilc@samurai.com>
52224 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52225 returned by OSX/Darwin if the specified buffer is not large
52226 enough for the hostname.
52228 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52230 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52231 pass it to _help, otherwise the latter coredumps trying to
52232 dereference state.root_argp.
52234 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52236 * modules/chdir-long (Depends-on): Add memrchr.
52237 * modules/memrchr (Files): Add lib/memrchr.h.
52238 (Include): "memrchr.h".
52240 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52242 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52244 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52246 * lib/memrchr.h: New file.
52247 * lib/chdir-long.c: Include it.
52248 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52249 Don't bother including stddef.h.
52251 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
52253 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52255 Include <sys/types.h>, for dev_t.
52256 (ME_DUMMY, ME_REMOTE): Move from here....
52257 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52258 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
52260 Include mountlist.h first, to test the interface.
52262 2005-01-29 Bruno Haible <bruno@clisp.org>
52264 * lib/progname.c (program_name): Initialize.
52265 Needed when linking statically on MacOS X.
52267 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52269 Sync from coreutils.
52270 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52271 (Depends-on): Add c-strtod.
52272 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52274 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52276 Sync from coreutils.
52277 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52279 Remove files that are specific to coreutils.
52280 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52282 2005-01-28 Bruno Haible <bruno@clisp.org>
52284 * modules/javacomp: New file.
52285 * MODULES.html.sh (Java): Add javacomp.
52287 2005-01-28 Bruno Haible <bruno@clisp.org>
52289 * m4/javacomp.m4: New file, from GNU gettext.
52291 2005-01-28 Bruno Haible <bruno@clisp.org>
52293 * lib/javacomp.sh.in: New file, from GNU gettext.
52294 * lib/javacomp.h: New file, from GNU gettext.
52295 * lib/javacomp.c: New file, from GNU gettext.
52297 2005-01-26 Simon Josefsson <jas@extundo.com>
52299 * lib/gai_strerror.c: Use GPL in header.
52301 2005-01-26 Bruno Haible <bruno@clisp.org>
52303 * modules/javaexec: New file.
52304 * MODULES.html.sh (Java): Add javaexec.
52306 2005-01-26 Bruno Haible <bruno@clisp.org>
52308 * m4/javaexec.m4: New file, from GNU gettext.
52310 2005-01-26 Bruno Haible <bruno@clisp.org>
52312 * lib/javaexec.sh.in: New file, from GNU gettext.
52313 * lib/javaexec.h: New file, from GNU gettext.
52314 * lib/javaexec.c: New file, from GNU gettext.
52316 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52318 * modules/lchown (Depends-on): Remove lchown.h
52320 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52322 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52323 must be defined if the header file was not found, in order
52324 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52326 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52328 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52329 initializers for struct pentry_state.
52330 (__argp_error): Check return value of __asprintf
52331 (__argp_failure): Translate error message
52333 * lib/argp-parse.c: Removed braces around the expansion of N_()
52335 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52337 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52338 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52339 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52340 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52341 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52342 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52343 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52344 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52345 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52346 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52347 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52348 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52349 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52350 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52351 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52352 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52353 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52354 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52355 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52356 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52357 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52358 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52359 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52360 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52361 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52362 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52363 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52364 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52365 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52366 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52367 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52368 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52369 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52370 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52371 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52372 Use an all-permissive copyright notice, recommended by RMS.
52374 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52376 * modules/chdir-long (Depends-on): Remove mempcpy.
52378 2005-01-21 Jim Meyering <jim@meyering.net>
52380 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52381 same value as for Solaris 9.
52383 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52384 component length. This included changing the parameter to be
52385 of type `char *' rather than `char const *'.
52386 * lib/chdir-long.h (chdir_long): Update prototype.
52388 * lib/openat.c (fdopendir, fstatat): New functions.
52389 * lib/openat.h: Include headers required for use of DIR and struct
52391 [AT_SYMLINK_NOFOLLOW]: Define.
52392 (fdopendir, fstatat): Add prototypes.
52394 2005-01-21 Bruno Haible <bruno@clisp.org>
52396 * modules/classpath: New file.
52397 * MODULES.html.sh (Java): Add classpath.
52399 2005-01-21 Bruno Haible <bruno@clisp.org>
52401 * lib/classpath.h: New file, from GNU gettext.
52402 * lib/classpath.c: New file, from GNU gettext.
52404 2005-01-20 Simon Josefsson <jas@extundo.com>
52406 * modules/version-etc-fsf: New file.
52408 2005-01-20 Simon Josefsson <jas@extundo.com>
52410 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52411 * lib/version-etc.c: Remove version_etc_copyright.
52412 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52413 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52415 2005-01-20 Simon Josefsson <jas@extundo.com>
52417 * lib/base64.h (isbase64): Add.
52419 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52420 using a unsigned prototype, don't inline.
52421 (base64_decode): Use it.
52423 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52425 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52428 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52430 * lib/save-cwd.c (save_cwd): Remove code to support the case
52431 where fchdir is missing or flaky.
52433 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52435 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52437 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52439 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52440 AC_LIBSOURCES now does this.
52441 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52442 with new ullong_max module.
52444 2005-01-19 Bruno Haible <bruno@clisp.org>
52446 * modules/sh-quote: New file.
52447 * MODULES.html.sh (Executing programs): Add sh-quote.
52449 2005-01-19 Bruno Haible <bruno@clisp.org>
52451 * lib/sh-quote.h: New file, from GNU gettext.
52452 * lib/sh-quote.c: New file, from GNU gettext.
52454 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52456 Merge from coreutils.
52457 * m4/ullong_max.m4: New file.
52458 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52459 (gl_MACROS): Assume localeconv exists.
52461 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52463 Merge changes from coreutils, as described below in several
52464 changelogs dated today.
52466 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52467 (O_DIRECTORY): Remove; not needed here, since "." must be
52468 a directory. All uses removed.
52469 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52470 universal on Suns, and we also need to test for IRIX.
52471 Revamp code to use 'if' rather than '#if'.
52472 Avoid unnecessary comparison of cwd->desc to 0.
52474 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52475 for known valid error numbers rather than observed invalid ones.
52477 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52479 * modules/ullong_max: New file.
52481 * modules/chdir-long, modules/openat: New files.
52482 * modules/save-cwd (Depends-on): Depend on chdir-long.
52483 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52485 2005-01-18 Jim Meyering <jim@meyering.net>
52487 Merge from coreutils.
52488 * m4/chdir-long.m4, m4/openat.m4: New files.
52489 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52490 save-cwd.h. Add AC_LIBOBJ for save-cwd.
52491 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52492 is sane and DOES follow symlinks. Besides, testing 20 different
52493 systems found no broken chown implementations.
52494 Prompted by a change in rsync's copy of this macro.
52495 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52497 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52499 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52500 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52501 NULL-means-set-to-current-time semantics.
52502 Remove temporary file immediately, rather than waiting
52503 for configure's at-exit trap code to do it.
52505 2005-01-18 Jim Meyering <jim@meyering.net>
52507 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52509 * lib/utimens.c (futimens): Account for the fact that futimes
52510 can also fail with errno == ENOSYS or errno == ENOENT.
52511 Patch from Dmitry V. Levin.
52513 Change the name of the robust chdir function from chdir to chdir_long.
52514 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52515 (restore_cwd): Use chdir_long, not chdir.
52516 * lib/chdir-long.c: Renamed from chdir.c.
52517 * lib/chdir-long.h: Renamed from chdir.h.
52518 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52521 2005-01-18 Bruno Haible <bruno@clisp.org>
52523 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52524 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52525 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52526 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52527 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52528 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52529 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52530 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52531 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52532 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52533 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52534 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52535 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52536 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52537 Use an all-permissive copyright notice, recommended by RMS.
52539 2005-01-18 Bob Proulx <bob@proulx.com>
52541 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52542 simplify offsetof() macro construct to avoid compile failure with
52543 native HP-UX 11.0 ANSI C compiler.
52545 2005-01-17 Bruno Haible <bruno@clisp.org>
52547 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52548 redundant because stpncpy.m4 takes care of it.
52550 2005-01-17 Bruno Haible <bruno@clisp.org>
52552 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52554 2005-01-17 Bruno Haible <bruno@clisp.org>
52556 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52559 2005-01-17 Bruno Haible <bruno@clisp.org>
52561 * lib/fwriteerror.h (fwriteerror): Change specification to include
52563 * lib/fwriteerror.c: Include <stdbool.h>.
52564 (fwriteerror): At the end, close the file stream. Record whether
52565 stdout was already closed.
52567 2005-01-17 Bruno Haible <bruno@clisp.org>
52569 * lib/execute.c (environ): Declare if needed.
52570 * lib/pipe.c (environ): Likewise.
52571 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52573 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52575 * modules/argp: Depend on vsnprintf
52577 2005-01-10 Jim Meyering <jim@meyering.net>
52579 * modules/closeout (Depends-on): Add atexit.
52581 2005-01-06 Bruno Haible <bruno@clisp.org>
52583 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52585 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
52587 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52588 definitions to be after all include files, to avoid collisions.
52589 Problem reported by Bob Proulx.
52591 2005-01-04 Jim Meyering <jim@meyering.net>
52593 Changes imported from coreutils.
52594 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52595 as the mkstemp template, use a temporary directory and an
52596 8.3-friendly template to avoid trouble on systems like DJGPP.
52597 Reported by Juan M. Guerrero via Stepan Kasal.
52598 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52599 close. Remove the temporary directory right away, rather than waiting
52600 for configure's at-exit trap code to do it.
52601 Suggestion from Stepan Kasal.
52603 2005-01-01 Simon Josefsson <jas@extundo.com>
52605 * gnulib-tool: Print #include directives when --import'ing.
52607 2004-12-28 Simon Josefsson <jas@extundo.com>
52609 * tests/test-base64.c: Include required header files. Remove
52612 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52614 * modules/error (Depends-on): Remove gettext.
52616 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52618 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52619 not needed. This removes a dependency on the gettext module.
52620 [defined _LIBC]: Do not include <libintl.h>; not needed.
52622 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52624 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52625 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52627 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52629 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52632 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52634 * modules/getdate (Depends-on): Remove alloca-opt.
52636 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52638 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52640 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52642 * lib/argp-parse.c: Include <stddef.h>.
52643 (alignof, alignto): New macros.
52644 (parser_init): Don't assume that void * is aligned sufficiently
52647 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52648 need to extend the stack.
52649 (YYINITDEPTH): New macro, so that the initial stack isn't overly
52652 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52654 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52656 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52658 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52659 (2004-10-24) change. Apparently this was a false alarm.
52661 * modules/getdate: Depend on alloca-opt, not alloca.
52663 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52665 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52666 Remove now-obsolete comment about AIX.
52667 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52668 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52669 (YYMAXDEPTH): New macro.
52671 2004-12-18 Simon Josefsson <jas@extundo.com>
52673 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52675 2004-12-18 Bruno Haible <bruno@clisp.org>
52677 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52679 2004-12-18 Bruno Haible <bruno@clisp.org>
52681 * lib/fatal-signal.c (fatal_signals): Make non-const.
52682 (init_fatal_signals): New function.
52683 (uninstall_handlers, install_handlers): Ignore signals that were set to
52685 (at_fatal_signal): Call init_fatal_signals.
52686 (init_fatal_signal_set): Likewise. Ignore signals that were set to
52688 Reported by Paul Eggert.
52690 2004-12-18 Bruno Haible <bruno@clisp.org>
52692 * doc/alloca.texi: New file.
52693 * doc/alloca-opt.texi: New file.
52695 2004-12-17 Jim Meyering <jim@meyering.net>
52697 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52698 Otherwise, install-sh could exit with improper exit status when
52699 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
52701 2004-12-16 Simon Josefsson <jas@extundo.com>
52703 * tests/test-base64.c: Add license.
52705 2004-12-15 Stepan Kasal <address@hidden>
52707 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52709 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
52711 * modules/getcwd (Files): Add m4/d-ino.m4.
52712 Suggested by Mark D. Baushke.
52714 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52716 * lib/getdate.y (textint): New member "negative".
52717 (time_zone_hhmm): New function.
52718 Expect 14 shift-reduce conflicts, not 13.
52719 (o_colon_minutes): New rule.
52720 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52721 (yylex): Set the "negative" member of signed numbers.
52723 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52725 * doc/getdate.texi (Time of day items, Time zone items):
52726 Describe new formats +00:00, UTC+00:00.
52728 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
52730 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52731 spurious "-l"s. Problem reported by Stepan Kasal.
52733 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
52735 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52736 in Autoconf 2.59. Problem reported by Mark D. Baushke.
52738 2004-12-04 Simon Josefsson <jas@extundo.com>
52740 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52741 Vandoorselaere <yoann@prelude-ids.org>.
52743 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52745 Changes imported from coreutils.
52746 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52748 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52750 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52752 Changes imported from coreutils.
52753 * lib/hard-locale.c: Assume <locale.h> exists.
52754 Include "strdup.h".
52755 (GLIBC_VERSION): New macro.
52756 (hard_locale): Assume setlocale exists.
52757 Rewrite to avoid #ifdef.
52758 Use strdup rather than malloc + strcpy.
52759 * lib/human.c: Assume <locale.h> exists.
52760 (human_readable): Assume localeconv exists.
52762 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52764 * modules/hard-locale (Depends-on): Add strdup.
52766 2004-12-01 Jakub Jelinek <jakub@redhat.com>
52768 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52769 convert T2, not T. (Imported from libc.)
52771 2004-11-30 Simon Josefsson <jas@extundo.com>
52773 * modules/restrict (License): Change to LGPL.
52775 2004-11-30 Simon Josefsson <jas@extundo.com>
52777 * m4/restrict.m4: Add copyright and copying conditions.
52779 2004-11-30 Simon Josefsson <jas@extundo.com>
52781 * m4/base64.m4: New file.
52783 2004-11-30 Simon Josefsson <jas@extundo.com>
52785 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52788 * tests/test-base64.c: New file.
52790 * modules/base64: New file.
52792 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52794 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52795 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52797 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52799 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52801 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52802 (__getcwd.c): Don't restore errno; glibc doesn't.
52803 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52804 first, falling back to our code only if its results look suspicious.
52805 Ensure that the resulting buffer is only as large as necessary.
52807 * lib/readutmp.c: Include readutmp.h first.
52808 Include <errno.h>, since readutmp.h no longer does that.
52809 * lib/readutmp.h: Don't include <errno.h>,
52810 <sys/param.h>, <time.h>; not needed to establish interface.
52811 (errno): Remove decl.
52812 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52813 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52814 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52816 2004-11-28 Simon Josefsson <jas@extundo.com>
52818 * lib/base64.h, base64.c: New file.
52820 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52822 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52824 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52826 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52827 (Depends-on): Remove pathmax, same. Add mempcpy.
52828 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52829 (Makefile.am): Append getcwd.h to lib_SOURCES.
52830 (Include): Add getcwd.h.
52831 (Maintainer): Change from Jim Meyering to "all, glibc",
52832 since getdate now uses intended-for-glibc code.
52833 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52834 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52836 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52838 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52839 HP's ANSI C compiler.
52840 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52841 Declaring int functions causes warnings on some modern systems and
52842 shouldn't be needed to compile on ancient ones.
52843 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52846 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52847 with the following changes.
52848 (__set_errno): Parenthesize properly.
52849 Include <stdbool.h>.
52850 (MIN, MAX, MATCHING_INO): New macros.
52851 (__getcwd): Define with prototype, not K&R form.
52852 Use heuristics to allocate default buffer on stack if possible.
52853 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52854 behavior, and to avoid the PATH_MAX limit when computing
52856 Use MATCHING_INO to compare inode number to file.
52857 Check for arithmetic overflow in size calculations.
52858 Fix bug in reallocation of dot array that caused getcwd to fail
52859 on directories nested deeper than 75.
52860 Be more careful about saving errno on error.
52861 Do not use realloc; use only free+malloc, as this is a bit
52862 more flexible and avoids a needless copy operation.
52863 Do not inspect st_dev and st_ino for symbolic links; POSIX
52864 doesn't specify the latter.
52865 Check for closedir errors.
52866 Avoid needless casts.
52867 Use "#ifdef weak_alias" around weak_alias, to be like other
52869 The following changes to getcwd.c have effect only when used in
52870 gnulib; they have no effect inside glibc proper.
52871 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52872 as alloca isn't used.
52873 (alloca, __alloca): Likewise.
52874 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52875 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52876 unconditionally, as gnulib assumes C89 or better.
52877 Do not include <sys/param.h>.
52878 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52879 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52881 (NULL) [!defined NULL]: Remove; we assume C89 or better.
52882 Include <dirent.h> in a way that is compatible with modern Autoconf.
52883 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52884 New macros, if not already defined.
52885 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52886 Use "_LIBC", not "defined _LIBC", for consistency.
52887 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52889 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52890 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
52891 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52892 credit only to Jim Meyering and adjust the copyright dates.
52893 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52894 <stdlib.h>, <unistd.h>, "pathmax.h".
52895 Instead, include "xgetcwd.h" (first) and "getcwd.h".
52896 (INITIAL_BUFFER_SIZE): Remove.
52897 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52899 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52901 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52902 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
52903 Use the _ONCE methods, for efficiency.
52904 Check for fcntl.h. In test program, include <errno.h>
52905 and <fcntl.h> if available. Remove old K&R cruft from
52906 test program. Check for common errors in GNU/Linux,
52907 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
52908 don't do AC_LIBOBJ, as that's getcwd.m4's job.
52909 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52910 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
52912 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
52913 accommodate new getcwd.c.
52914 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52915 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52916 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52917 that's all we need now.
52919 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52921 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52922 argp-parse.c depends on getopt internals, that means we should
52923 always use our getopt, to be on the safe side.
52924 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52925 order not to spoil the result of an eventual previous invocation
52926 of gl_GETOPT_SUBSTITUTE.
52928 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52930 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52931 redefinition warnings. To avoid them, include the defines
52932 in `#if !defined __need_getopt ... #endif'. The only place
52933 where __getopt_argv_const is used is in definitions
52934 of getopt_long and getopt_long_only below, which are as well
52935 protected by `#ifndef __need_getopt'.
52936 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52937 __need_getopt after including <stdio.h> and <unistd.h> These
52938 headers might have defined it.
52940 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52942 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52944 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52946 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52947 (futimens): New function, which uses futimes if available.
52948 (futimens, utimens): Support timespec==NULL, with same semantics
52949 as utime and utimens.
52950 * lib/utimens.h (futimens): New decl.
52952 2004-11-23 Jim Meyering <jim@meyering.net>
52954 * lib/getopt_.h: Remove trailing blanks.
52956 2004-11-23 Jim Meyering <jim@meyering.net>
52958 * lib/__fpending.c: Add comment.
52960 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
52962 * modules/canonicalize (Depends-on): Add xreadlink.
52963 Problem reported by James Youngman.
52965 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
52967 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52969 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52970 optopt): Use them instead of invoking ## directly; otherwise, the
52971 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52973 2004-11-19 Bruno Haible <bruno@clisp.org>
52975 * lib/strtok_r.c: Move comments from here...
52976 * lib/strtok_r.h: ... to here.
52978 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52980 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52981 implementations that mishandle size_t overflow.
52983 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52985 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52986 might fail. Problem reported by Yoann Vandoorselaere.
52987 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52988 implementations that mishandle size_t overflow.
52990 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52992 * modules/canon-host (Depends-on): Add strdup.
52994 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52996 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52998 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53000 * lib/canon-host.c: Include "strdup.h".
53001 (canon_host): Use getaddrinfo if available, so that IPv6 works.
53002 Use strdup instead of malloc/strcpy to duplicate strings.
53004 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53005 (human_space_before_unit): New constant.
53006 * lib/human.c (human_readable): Support it.
53008 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53009 (xgetcwd): Set errno correctly when failing.
53010 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53011 the failure is actually due to a PATH_MAX problem.
53013 Further getopt changes to make it more likely that glibc will
53014 buy the changes back.
53015 * lib/getopt.c (POSIXLY_CORRECT): New constant.
53016 (getopt): Use it, so to preserve glibc semantic
53017 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53018 when compiling for libc.
53019 * lib/getopt_.h (__getopt_argv_const): Bring it back.
53020 (getopt_long, getopt_long_only): Use it.
53022 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53023 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
53024 (getopt): Argv is now char * const *, as per standard.
53025 (_getopt_internal_r, _getopt_internal): Argv is now char **,
53026 not char *__getopt_argv_const *.
53027 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53028 _getopt_long_only_r): Likewise.
53029 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53030 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53031 _getopt_long_r, _getopt_long_only_r): Likewise.
53032 * lib/getopt_.h (__getopt_argv_const): Remove.
53033 (getopt): Argv is now char * const *, as per standard.
53035 * lib/getdate.y (tORDINAL): New token.
53036 (day, relunit): Allow it for relative times.
53037 (relative_time_table): Use tORDINAL for ordinals.
53039 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53041 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53042 Document that "second" isn't allowed as an ordinal number.
53044 2004-11-16 Jim Meyering <jim@meyering.net>
53046 * modules/closeout (Depends-on): Add fpending.
53048 2004-11-15 Jim Meyering <jim@meyering.net>
53050 * lib/closeout.c: Include "__fpending.h" once again.
53051 Include <stdbool.h>.
53052 (close_stdout): Don't fail just because stdout was closed initially,
53053 since some programs don't write to stdout in the normal course of
53054 operation (other than --version and --help), and we don't want this
53055 function to make e.g. `touch file >&-' fail.
53056 But do fail if it was closed and someone has tried to write to it.
53057 E.g., `printf foo >&-' must fail.
53059 2004-11-13 Jim Meyering <jim@meyering.net>
53061 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53063 2004-11-12 Simon Josefsson <jas@extundo.com>
53065 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53066 small doc fix is still pending.
53068 2004-11-11 Simon Josefsson <jas@extundo.com>
53070 * modules/strtok_r: New file.
53072 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53075 2004-11-11 Simon Josefsson <jas@extundo.com>
53077 * m4/strtok_r.m4: New file.
53079 * m4/getopt.m4: Replace opterr.
53081 2004-11-11 Simon Josefsson <jas@extundo.com>
53083 * lib/strtok_r.h, strtok_r.c: New file.
53085 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53087 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53088 of replacing opterr, getopt, etc. This should handle the
53089 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53091 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53093 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53094 we can stop lying to compilers about the constness of argv when we
53095 are compiled outside glibc.
53096 (getopt, getopt_long, getopt_long_only): Use it.
53097 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53098 _getopt_internal, getopt): Likewise.
53099 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53100 _getopt_long_only_r): Likewise.
53101 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53102 _getopt_long_r, _getopt_long_only_r): Likewise.
53104 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53105 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53106 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53107 the other external symbols.
53108 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53109 declaration, since the above renaming now works around collisions.
53111 2004-11-11 Jim Meyering <jim@meyering.net>
53113 * lib/linebreak.c: Remove trailing blanks.
53114 * lib/alloca_.h: Likewise.
53115 * lib/acosl.c: Likewise.
53116 * lib/euidaccess.c: Likewise.
53117 * lib/allocsa.h: Likewise.
53119 2004-11-10 Simon Josefsson <jas@extundo.com>
53121 * m4/getaddrinfo.m4: New file.
53123 2004-11-10 Simon Josefsson <jas@extundo.com>
53125 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53127 2004-11-10 Simon Josefsson <jas@extundo.com>
53129 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53132 * modules/getaddrinfo: New file.
53134 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53136 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53138 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53140 * lib/mktime.c (SHR): New macro, which is a portable
53141 substitute for >> that should work even on Crays.
53142 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53143 Problem reported by Mark D. Baushke in
53144 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53145 * lib/getdate.y (SHR): Likewise.
53147 * lib/strftime.c (SHR): Likewise.
53149 * lib/quotearg.c (struct quoting_options): Use unsigned int for
53150 quote_these_too, so that right shifts are well defined. All uses
53153 2004-11-10 Jim Meyering <jim@meyering.net>
53155 Ensure that no close failure goes unreported.
53156 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
53157 return early when it seems there's nothing to flush.
53158 Don't include __fpending.h.
53160 2004-11-10 Jim Meyering <jim@meyering.net>
53162 * modules/closeout (Depends-on): Remove fpending.
53164 2004-11-10 Jim Meyering <jim@meyering.net>
53166 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53168 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53170 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
53172 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53173 and AC_REQUIRE when possible, to avoid duplicate checks.
53174 Check for <wchar.h>.
53176 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53178 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53180 2004-11-09 Bruno Haible <bruno@clisp.org>
53182 * m4/sockpfaf.m4: New file.
53184 2004-11-05 Bruno Haible <bruno@clisp.org>
53186 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53187 Reported by Mark D. Baushke <mdb@cvshome.org>.
53189 2004-11-04 Bruno Haible <bruno@clisp.org>
53191 2004-09-11 Bruno Haible <bruno@clisp.org>
53192 * allocsa.valgrind: New file.
53193 2004-02-06 Bruno Haible <bruno@clisp.org>
53194 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53195 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53196 Reported by Christopher Seip <chris.seip@hp.com>.
53198 2004-11-04 Bruno Haible <bruno@clisp.org>
53200 * modules/allocsa (Files): Add lib/allocsa.valgrind.
53201 (Makefile.am): Distribute it.
53203 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
53205 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53206 with errno == ERANGE if the buffer is too small.
53207 Problem reported by Mark D. Baushke.
53209 2004-11-03 Albert Chin <china@thewrittenword.com>
53210 Paul Eggert <eggert@cs.ucla.edu>
53212 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53213 equivalent, substitute $ac_type for equivalent type rather than
53214 blindly using uint32_t *always* which won't work if uint32_t is not
53215 available. Define _UINT32_T to work around typedef of uint32_t if
53216 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53219 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53221 * m4/jm-macros.m4: Sync from coreutils.
53222 (gl_MACROS): Check for mbrlen, for pathchk.
53223 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53225 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53227 * lib/xreadlink.c (MAXSIZE): New macro.
53228 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
53229 size does not exceed MAXSIZE. Avoid cast.
53230 As suggested by Mark D. Baushke in
53231 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53232 if readlink fails with buffer size just under MAXSIZE, try again
53235 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53237 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53239 2004-11-02 Derek R. Price <derek@ximbiot.com>
53240 and Paul Eggert <eggert@cs.ucla.edu>
53242 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53243 (get_date): Overparenthesize to avoid GCC warning.
53245 2004-11-02 Bruno Haible <bruno@clisp.org>
53247 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53250 2004-11-02 Bruno Haible <bruno@clisp.org>
53252 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53253 function returns void.
53255 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53257 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53258 fflush_unlocked, flockfile, funlockfile, funlockfile,
53259 fputs_unlocked, putc_unlocked.
53261 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53263 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53264 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53267 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53269 * modules/getdate (Files): Add doc/getdate.texi.
53270 (Depends-on): Add setenv, xalloc.
53272 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53274 * lib/getdate.y: Add support for TZ="foo" within a date string.
53275 Fix some bugs near time_t boundaries. Reject dates with
53276 out-of-range components, e.g., "Sept 31".
53277 Include <stdlib.h>, "setenv.h", "xalloc.h".
53278 (ISDIGIT_LOCALE): Remove; unused.
53279 Note that the TZ and time functions used here are not reentrant.
53280 (mktime_ok, get_tz): New functions.
53281 (TZBUFSIZE): New constant.
53282 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53283 This requires that we sometimes generate our own TZ="XXX..." setting.
53285 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53287 * doc/getdate.texi: New file, from coreutils with modifications for
53288 the new TZ parsing.
53290 2004-10-27 Derek R. Price <derek@ximbiot.com>
53292 * lib/mktime.c (not_equal_tm): Remove redundant check.
53294 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53296 * modules/regex (lib_SOURCES): Add regex.c.
53297 Reported by James Youngman in
53298 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53300 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53302 * lib/getdate.y: Use Bison 1.875 features, and some minor
53303 code cleanups. This change does not affect semantics.
53304 Don't include <stdlib.h>; no longer needed.
53305 Don't include unlocked-io.h; only the "#if TEST" code uses
53306 stdio, and performance isn't crucial there.
53307 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53308 Bison 1.875 features as described below.
53309 All uses of "PC." replaced by "pc->".
53310 (YYSTYPE): Add a forward declaration.
53311 (yylex, yyerror): Use full prototypes in forward decls.
53312 Use "%pure-parser" rather than obsolescent "%pure_parser".
53313 Use %parse-param and %lex-param instead of obsolescent
53314 YYPARSE_PARAM and YYLEX_PARAM.
53315 (meridian_table, month_and_day_table, time_units_table,
53316 relative_time_table, time_zone_table, military_table,
53317 lookup_zone, lookup_word, get_date):
53318 Use NULL instead of 0 where appropriate.
53319 (to_hour): Avoid abort (), to avoid a dependency on
53321 (yyerror, yylex): Now accepts parser_control * arg.
53322 (main) [TEST]: Use '\0' rather than 0 for char.
53324 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53326 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53328 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53330 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53331 It's now the caller's responsibility to handle the case where
53332 !HAVE_GETPAGESIZE && !defined getpagesize.
53334 * lib/mktime.c (leapyear): Arg is long int, not int.
53336 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53338 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53340 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53342 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53343 missing. Problem reported by James Youngman.
53345 2004-10-16 Simon Josefsson <jas@extundo.com>
53347 * gnulib-tool: Fix comments. Fix parse problem.
53348 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53350 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53352 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53353 implementation of getopt_long. Problem reported by Alexander Taler in:
53354 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53356 2004-10-15 Bruno Haible <bruno@clisp.org>
53358 * gnulib-tool: Untabify. Initialize supplied_libname.
53359 (func_usage): More homogenous output.
53360 (func_modules_transitive_closure, func_modules_to_filelist,
53361 func_emit_lib_Makefile_am): New functions.
53362 (func_import): New function, extracted from big case statement. Use
53363 func_get_license, func_modules_transitive_closure,
53364 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53365 opt_lgpl. Don't use test -a, as it's not portable.
53366 (func_create_testdir): Use func_modules_transitive_closure,
53367 func_modules_to_filelist, func_emit_lib_Makefile_am.
53369 2004-10-15 Bruno Haible <bruno@clisp.org>
53371 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53373 2004-10-15 Bruno Haible <bruno@clisp.org>
53375 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53376 the portions belonging to each module.
53377 Suggested by Derek Robert Price <derek@ximbiot.com>.
53379 2004-10-12 Simon Josefsson <jas@extundo.com>
53381 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53382 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53385 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53387 * modules/vsnprintf: New file.
53389 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53391 * m4/vsnprintf.m4: New file.
53393 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53395 * lib/vsnprintf.h: New file.
53396 * lib/vsnprintf.c: New file.
53398 2004-10-11 Bruno Haible <bruno@clisp.org>
53400 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53403 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
53405 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53407 2004-10-07 Bruno Haible <bruno@clisp.org>
53409 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53410 fits into the provided buffer.
53412 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
53414 * lib/diacrit.c, diacrit.h: Add GPL notice.
53416 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53418 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53419 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53420 This avoids a potential constant-folding bug.
53422 2004-10-05 Bruno Haible <bruno@clisp.org>
53424 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53425 for the declaration of strsep.
53427 2004-10-05 Bruno Haible <bruno@clisp.org>
53429 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53431 2004-10-04 Simon Josefsson <jas@extundo.com>
53433 * modules/memmem: New file.
53434 * tests/test-memmem.c: New file.
53435 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53437 2004-10-04 Simon Josefsson <jas@extundo.com>
53439 * m4/memmem.m4: New file.
53441 2004-10-04 Simon Josefsson <jas@extundo.com>
53443 * lib/memmem.h: New file.
53444 * lib/memmem.c: New file, taken from glibc.
53446 2004-10-04 Simon Josefsson <jas@extundo.com>
53448 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53449 '#ifdef USE_UNLOCKED_IO'.
53451 2004-10-04 Simon Josefsson <jas@extundo.com>
53453 * config/srclist.txt: Add memmem from glibc.
53455 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53457 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53459 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53460 modules/exclude, modules/getdate, modules/getline,
53461 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53462 modules/getusershell, modules/linebuffer, modules/md5,
53463 modules/mountlist, modules/posixtm, modules/readtokens,
53464 modules/readutmp, modules/regex, modules/sha1,
53465 modules/version-etc, modules/yesno:
53466 Remove dependency on unlocked-io.
53468 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53470 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53472 * m4/unlocked-io.m4: Add copyright notice.
53473 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53475 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53477 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53478 * lib/xmalloc.c (xmemdup): Likewise.
53479 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53480 XFREE): Remove these long-obsolescent macros.
53481 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53482 * lib/xstrdup.c: Remove.
53484 * lib/regex.c (re_comp): Cast gettext return value to char *,
53485 Problem reported by Martin Neitzel via Mark D. Baushke.
53487 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53489 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53490 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53491 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53492 regex.c, sha1.c, version-etc.c, yesno.c:
53493 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53494 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53495 the includer's responsibility.
53497 Sync from coreutils.
53499 * lib/modechange.c (mode_compile): Don't decrement a pointer that
53500 points to the start of a string, as the C Standard says the
53501 resulting behavior is undefined.
53503 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53504 simple -> simple_backups, numbered_existing ->
53505 numbered_existing_backups, numbered -> numbered_backups
53506 to avoid shadowing problems. All uses changed.
53507 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53508 * lib/backupfile.c (check_extension, numbered_backup):
53509 Rename locals to avoid shadowing 'basename'.
53510 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53513 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53514 * lib/.cvsignore: Add getopt.h.
53516 2004-10-04 Bruno Haible <bruno@clisp.org>
53518 * modules/README: New file.
53519 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53522 2004-10-02 Jim Meyering <jim@meyering.net>
53524 * lib/dirfd.h, getpagesize.h: Add copyright notice.
53526 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53528 * modules/strsep: New file.
53530 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53532 * m4/strsep.m4: New file.
53534 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53536 * lib/strsep.h: New file.
53537 * lib/strsep.c: New file.
53539 2004-10-01 Simon Josefsson <jas@extundo.com>
53541 * lib/snprintf.c (snprintf): Handle size==0.
53543 2004-10-01 Simon Josefsson <jas@extundo.com>
53544 Bruno Haible <bruno@clisp.org>
53546 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53547 (snprintf): Declare 'args'.
53549 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
53551 * lib/snprintf.c: Remove comments as to why each header is needed.
53553 2004-10-01 Bruno Haible <bruno@clisp.org>
53555 * MODULES.html.sh: Add strsep.
53557 2004-09-30 Simon Josefsson <jas@extundo.com>
53559 * modules/snprintf: New file.
53561 2004-09-30 Simon Josefsson <jas@extundo.com>
53563 * m4/snprintf.m4: New file.
53565 2004-09-30 Simon Josefsson <jas@extundo.com>
53567 * lib/snprintf.h, lib/snprintf.c: New files.
53569 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53571 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53572 (hol_entry_help): Never translate an empty string.
53573 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53574 * lib/argp.h (OPTION_NO_TRANS): New option.
53576 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53578 * modules/argp (Maintainer): Replace Simon Josefsson
53579 by Sergey Poznyakoff.
53581 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53583 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53584 changes merged back into glibc.
53586 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53588 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53590 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
53592 * lib/xvasprintf.c: Include xalloc.h.
53593 (xvasprintf): Use xalloc_die, not xmalloc_die.
53595 2004-09-29 Bruno Haible <bruno@clisp.org>
53597 * modules/alloca-opt: New file, derived from modules/alloca.
53598 * modules/allocsa: Depend on alloca-opt instead of alloca.
53599 * modules/setenv: Likewise.
53600 * modules/vasnprintf: Likewise.
53601 * MODULES.html.sh: Add alloca-opt.
53603 2004-09-28 Simon Josefsson <jas@extundo.com>
53605 * gnulib-tool: New parameter --lgpl, to asseert that modules are
53606 LGPL, and to replace license template from GPL to LGPL.
53608 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53610 * modules/dummy: Change license to LGPL.
53612 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53614 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53616 2004-09-24 Simon Josefsson <jas@extundo.com>
53618 * modules/minmax (License): Change from GPL to LGPL.
53620 2004-09-23 Simon Josefsson <jas@extundo.com>
53622 * gnulib-tool (--import): Typo.
53624 2004-09-23 Simon Josefsson <jas@extundo.com>
53626 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53628 2004-09-22 Bruno Haible <bruno@clisp.org>
53630 * modules/*: Add 'License' field.
53631 * gnulib-tool: Accept --extract-license option.
53632 (func_get_license): New function.
53634 2004-09-21 Bruno Haible <bruno@clisp.org>
53636 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53637 Reported by Simon Josefsson.
53639 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53641 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53642 gl_AC_TYPE_LONG_LONG.
53644 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53646 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53648 2004-09-18 Simon Josefsson <jas@extundo.com>
53649 and Paul Eggert <eggert@cs.ucla.edu>
53651 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53652 calls with autoreconf. Define GL_LIB.
53654 2004-09-14 Karl Berry <karl@gnu.org>
53656 * config/srclist.txt: unsync setenv.c, sigh.
53658 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53660 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53661 Problem reported by Bruno Haible in:
53662 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53664 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53666 * config/srclist.txt: Comment out argp-pvh.c.
53668 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
53670 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53671 in case some system header has #define'd it. Problem reported by
53672 Soeren D. Schulze in
53673 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53675 2004-09-09 Karl Berry <karl@gnu.org>
53677 * regex.[ch]: delete from the root. These were supposed to be
53678 synced with emacs cvs, but this has not happened for about
53679 a year, and anyway nothing else uses emacs regex.[ch].
53680 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53681 lib/regex[.ch] is untouched.
53683 2004-09-09 Bruno Haible <bruno@clisp.org>
53685 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53687 2004-09-09 Bruno Haible <bruno@clisp.org>
53689 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53691 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53693 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53695 * modules/xvasprintf: New file.
53696 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53698 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53700 * lib/xvasprintf.h: New file.
53701 * lib/xvasprintf.c: New file.
53702 * lib/xasprintf.c: New file.
53704 2004-09-08 Bruno Haible <bruno@clisp.org>
53706 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53708 2004-09-08 Bruno Haible <bruno@clisp.org>
53710 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53711 length is > INT_MAX.
53712 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53715 2004-09-08 Bruno Haible <bruno@clisp.org>
53717 * lib/stdint_.h: New file, taken from GNU clisp.
53719 2004-09-08 Bruno Haible <bruno@clisp.org>
53720 Oskar Liljeblad <oskar@osk.mine.nu>
53722 * modules/stdint: New file.
53723 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53725 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53727 Import from coreutils.
53728 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53729 strings on unbounded length. alloca's performance benefits aren't
53730 that important here.
53731 (V_STRDUP): Remove.
53732 (parse_with_separator): New function, with most of the internals
53733 of the old parse_user_spec. Allow user to omit both user and group,
53734 for compatibility with FreeBSD.
53735 Clone only the user name, not the entire spec.
53736 Do not set *uid, *gid unless entirely successful.
53737 Avoid memory leak in some failing cases.
53738 Fix regression for USER.GROUP reported by Dmitry V. Levin in
53739 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53740 (parse_user_spec): Rewrite to use parse_with_separator.
53742 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53744 * modules/userspec: Don't depend on alloca.
53746 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53748 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53750 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
53752 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53753 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53754 utimecmp, utimens, xnanosleep. Rename sha to sha1.
53756 2004-08-16 Simon Josefsson <jas@extundo.com>
53758 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53759 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53760 Add --dry-run for --import.
53761 Let user provided command line parameters override configure.ac
53764 2004-08-12 Simon Josefsson <jas@extundo.com>
53766 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53767 as discussed with Paul Eggert in threads rooted at
53768 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53770 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53771 Before, the test was empty, and relied on ELIDE_CODE in source
53773 (gl_PREREQ_GETOPT): New macro.
53774 (gl_GETOPT): Use them.
53776 2004-08-12 Simon Josefsson <jas@extundo.com>
53778 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53779 * lib/getopt_.h: Renamed from getopt.h.
53781 2004-08-12 Simon Josefsson <jas@extundo.com>
53783 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53784 Change default library name from libfoo to libgnu.
53785 Now, if you have a configure.ac that says:
53788 gl_MODULES(error getopt etcetera)
53790 you can import all you need by running:
53791 ../gnulib/gnulib-tool --import
53793 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53794 (Makefile.am): Rewrite, use logic from argz.
53795 (Include): Use <getopt.h> instead of "getopt.h".
53797 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53799 * modules/argp (Files): Add m4/unlocked-io.m4.
53800 (Depends-on): Add extensions.
53802 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53804 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53805 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53806 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53807 Check for program_invocation_name, program_invocation_short_name,
53808 flockfile, funlockfile, features.h, _getopt_long_only_r.
53810 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53812 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53813 its complicated substitute.
53814 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53815 and program_invocation_name.
53816 (__argp_basename) [!_LIBC]: Remove; the only use was
53817 replaced by its body.
53818 (__argp_short_program_name): Change condition from
53819 !defined __argp_short_program_name to
53820 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53821 to match argp-namefrob.h.
53822 (__argp_failure): Don't assume strerror_r returns char *.
53823 * lib/argp-parse.c (N_): Define unconditionally.
53824 (argp_default_options): Fill out initializers with 0 to avoid
53827 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53829 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53832 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53834 Merge from coreutils.
53836 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53838 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53839 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53841 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53843 Merge from coreutils.
53845 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53846 wmemchr or wmemcpy. Problem reported by Robert Dahlem
53847 for Reliant Unix 5.43.
53849 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53850 (union fooround): Use uintmax_t, not long int.
53851 The rest is a merge from libc:
53852 [defined _LIBC]: Include <shlib-compat.h>.
53853 (_obstack) [defined _LIBC]: Remove after 2.3.4.
53855 * lib/settime.c (settime): Recode to avoid warning with
53858 * lib/strverscmp.c: Convert to UTF-8.
53860 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53862 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53865 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53867 * modules/xalloc-die: New file.
53868 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53870 * modules/md5 (Files): Add m4/uint32_t.m4.
53871 * modules/sha1: Renamed from modules/sha.
53873 Rename lib/sha.h to lib/sha1.h.
53874 Rename lib/sha.c to lib/sha1.c.
53875 Rename m4/sha.m4 to m4/sha1.m4.
53876 (lib_SOURCES): Likewise.
53877 (configure.ac): Rename gl_SHA to gl_SHA1.
53878 (Include): sha.h -> sha1.h.
53880 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53882 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53883 * m4/sha1.m4: Renamed from sha.m4.
53884 (gl_SHA1): Renamed from gl_SHA. All uses changed.
53886 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53888 * lib/obstack.h (obstack_empty_p):
53889 Don't assume that chunk->contents is suitably aligned.
53890 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53891 Likewise. Problem reported by Benno in
53892 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53894 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53895 readable. This could be improved further but it'd take some work.
53897 2004-08-08 Simon Josefsson <jas@extundo.com>
53899 * modules/xgethostname (Depends-on): Remove exit and error (not
53902 * modules/getpass-gnu: Add getpass.h.
53903 (Depends-on): Add stdbool.
53904 * modules/getpass: Add getpass.h.
53906 2004-08-08 Simon Josefsson <jas@extundo.com>
53908 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53909 Check getpass declaration.
53911 2004-08-08 Simon Josefsson <jas@extundo.com>
53913 * lib/xgethostname.c: Don't include error.h (not used).
53915 * lib/getpass.h: Add.
53916 * lib/getpass.c: Include getpass.h first.
53918 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
53920 * lib/xalloc-die.c: New file.
53921 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53923 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53924 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53926 (_, N_, xalloc_die): Move to xalloc-die.c.
53927 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53928 so that we needn't mess with xalloc_msg_memory_exhausted.
53930 * lib/sha1.h: Renamed from sha.h.
53931 (SHA1_H): Renamed from _SHA_H.
53932 (sha1_ctx): Renamed from sha_ctx.
53933 (sha1_init_ctx): Renamed from sha_init_ctx.
53934 (sha1_process_block): Renamed from sha_process_block.
53935 (sha1_process_bytes): Renamed from sha_process_bytes.
53936 (sha1_finish_ctx): Renamed from sha_finish_ctx.
53937 (sha1_read_ctx): Renamed from sha_read_ctx.
53938 (sha1_stream): Renamed from sha_stream.
53939 (sha1_buffer): Renamed from sha_buffer.
53940 * lib/sha1.c: Likewise; renamed from sha.c.
53941 Do not include <sys/types.h>.
53942 Include <stddef.h> rather than <stdlib.h>.
53944 2004-08-08 Bruno Haible <bruno@clisp.org>
53946 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53947 FILESYSTEM_PREFIX_LEN.
53948 * lib/progreloc.c: Likewise.
53949 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53951 2004-08-06 Simon Josefsson <jas@extundo.com>
53953 * modules/progname (Depends-on): Don't depend on stdbool.
53955 2004-08-06 Simon Josefsson <jas@extundo.com>
53957 * modules/getsubopt: New file.
53958 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53961 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53963 More merge from coreutils.
53965 * m4/utimens.m4, m4/utimecmp.m4: New files.
53966 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53967 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53968 prereq.m4, sha.m4: Import changes from coreutils.
53970 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53972 More merge from coreutils.
53973 * modules/raise, modules/readtokens0, modules/utimens:
53974 * modules/utimecmp, module/xnanosleep: New files.
53975 * modules/strftime: Add lib/strftime.h.
53976 Change include from <time.h> to "strftime.h".
53977 * modules/yesno: Add lib/yesno.h.
53978 * modules/backupfile: Remove lib/addext.c.
53979 * modules/euidaccess: Add stat-macros.h.
53980 * modules/canonicalize, modules/euidaccess,
53981 modules/filemode, modules/lchown, modules/makepath,
53982 modules/rmdir, modules/stat: Likewise.
53984 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53987 * lib/argp-help.c (make_hol, hol_append): Don't assume that
53988 SIZE_MAX is a valid preprocessor constant.
53989 (__argp_basename): Change from "#ifndef _LIBC"
53990 to "#ifndef __argp_short_program_name", so that
53991 we don't compile these functions for tar.
53993 More merges from coreutils.
53994 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53995 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53996 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53997 * lib/addext.c: Remove; no longer needed.
53998 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53999 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54000 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54001 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54002 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54003 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54004 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54005 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54006 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54007 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54008 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54009 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54010 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54011 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54012 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54013 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54014 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54015 Import changes from coreutils.
54017 2004-08-05 Simon Josefsson <jas@extundo.com>
54019 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54021 2004-08-05 Simon Josefsson <jas@extundo.com>
54023 * m4/getsubopt.m4: New file.
54025 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54027 Merge from coreutils.
54029 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54030 * m4/getcwd-path-max.m4: New files.
54032 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54033 FILESYSTEM_PREFIX_LEN ->
54034 FILE_SYSTEM_PREFIX_LEN.
54035 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54036 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54037 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54038 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54040 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54041 prerequisite modules now handle the DOS stuff.
54042 Don't check for unistd.h.
54044 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54046 Merge from coreutils.
54048 * lib/.gdb-history: Remove; this doesn't belong here.
54050 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54051 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54052 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54053 * lib/getcwd.c: New files.
54055 * lib/dirname.h: Include <stdbool.h>.
54056 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54057 for consistency with POSIX terminology. All uses changed.
54058 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54059 (strip_trailing_slashes): Use bool for booleans.
54060 * lib/stripslash.c (strip_trailing_slashes): Likewise.
54062 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54063 sometimes returns a positive errno value even when it succeeds.
54064 (print_errno_message) [!LIBC]: Fall back on strerror if
54065 __strerror_r fails.
54067 * lib/path-concat.c (mempcpy): Don't define if a system header defines
54068 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54069 (longest_relative_suffix): New function.
54070 (path_concat): Use it. Assume first argument is not NULL.
54071 Port to DOS. Omit redundant separators.
54072 Report an error instead of returning NULL.
54073 Use mempcpy instead of memcpy.
54074 (xpath_concat): Remove: not declared or used.
54076 * lib/same.h: Include <stdbool.h>
54077 (same_name): Return bool, not int.
54078 * lib/same.c (same_name): Likewise.
54079 (errno): Don't declare; we assume C89 or better now.
54081 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54082 if not already defined.
54084 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54085 * lib/dup-safer.c (errno): Likewise.
54087 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54089 Merge from coreutils.
54090 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54091 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54092 * modules/path-concat: Don't depend on strdup.
54094 2004-08-03 Simon Josefsson <jas@extundo.com>
54096 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54097 * lib/progname.h: Don't include stdbool.h.
54099 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54101 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54102 * MODULES.html.sh (func_all_modules): Remove fatal.
54104 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54106 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54108 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54110 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54113 2004-08-02 Simon Josefsson <jas@extundo.com>
54115 * lib/getsubopt.h: New file, with comments from Bruno Haible.
54116 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54117 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54119 2004-08-01 Simon Josefsson <jas@extundo.com>
54121 * lib/xgetdomainname.c: Include stdlib.h, for free().
54123 2004-07-19 Bruno Haible <bruno@clisp.org>
54125 * MODULES.html.sh (func_all_modules): Add dummy.
54127 2004-07-16 Simon Josefsson <jas@extundo.com>
54129 * modules/dummy: New file.
54131 2004-07-16 Simon Josefsson <jas@extundo.com>
54133 * lib/dummy.c: New file.
54135 2004-07-16 Bruno Haible <bruno@clisp.org>
54137 * lib/backupfile.h: Add extern "C" for C++.
54138 * lib/closeout.h: Likewise.
54139 * lib/copy-file.h: Likewise.
54140 * lib/findprog.h: Likewise.
54141 * lib/full-write.h: Likewise.
54142 * lib/pathname.h: Likewise.
54143 * lib/progname.h: Likewise.
54144 * lib/stpcpy.h: Likewise.
54145 * lib/stpncpy.h: Likewise.
54146 * lib/strcase.h: Likewise.
54147 * lib/strstr.h: Likewise.
54148 * lib/xalloc.h: Likewise.
54150 * lib/mbswidth.h: Add extern "C" for C++.
54151 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54153 2004-07-13 Robert Millan <robertmh@gnu.org>
54155 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54157 2004-07-09 Simon Josefsson <jas@extundo.com>
54159 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
54160 failed without this.)
54162 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54164 * modules/chown (Files): Add lib/fchown-stub.c, since
54165 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54167 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54169 * lib/fchown-stub.c: New file.
54171 2004-06-24 Jim Meyering <jim@meyering.net>
54173 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54175 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54177 * modules/argz: Omit "#include".
54179 * MODULES.html.sh (func_all_modules): Add calloc, to match
54180 2004-06-01 addition of calloc module.
54182 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54184 * m4/argz.m4: New file, which is autoupdated from libtool.
54186 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54188 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54191 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54193 * config/srclist-update: Don't insist on "USA." before the
54194 close-comment, as libtool omits the period and puts the */ on a
54196 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54197 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54199 2004-06-22 Gary V. Vaughan <gary@gnu.org>
54201 * modules/argz: New file.
54202 * MODULES.html.sh (func_all_modules): Add argz.
54204 2004-06-12 Jim Meyering <jim@meyering.net>
54205 and Paul Eggert <eggert@cs.ucla.edu>
54207 * modules/hash (Files): Add lib/xalloc.h.
54208 * modules/pipe (Depends-on): Add wait-process.
54209 * modules/stat (Depends-on): Add xalloc.
54210 * modules/userspec (Files): Add lib/userspec.h.
54213 Upgrade from gettext-0.13.
54214 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54215 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54216 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54218 2004-06-10 Jim Meyering <jim@meyering.net>
54220 * lib/calloc.c: New file.
54222 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
54224 * lib/getdate.y (yylex): Allow space between sign and number.
54225 Problem reported by Dan Jacobson.
54227 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54229 Merge from coreutils CVS.
54231 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54232 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54233 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54234 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54235 xstrtol.m4: Fix copyright date and/or serial number.
54237 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54238 See if we need an fchown replacement.
54239 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54240 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54241 and use the replacement function if we detect either defect.
54243 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54246 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54247 and Jim Meyering <jim@meyering.net>
54249 Merge from coreutils CVS.
54251 * lib/stat-macros.h: New file, with contents from file-type.h
54252 and coreutils' system.h.
54253 * lib/file-type.c: Include "stat-macros.h".
54254 * lib/file-type.h (file_type): Move all macro definitions to new file,
54257 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54258 Wrap old code with this conditional.
54259 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54260 function that does not dereference symlinks.
54261 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54263 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54264 dependency problems.
54265 (xreadlink): Accept new arg SIZE, for efficiency.
54266 All decls and uses changed.
54267 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54269 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54270 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54272 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54275 2004-06-01 Jim Meyering <jim@meyering.net>
54277 * m4/calloc.m4: New file.
54279 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54281 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54282 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54283 Also, fix a typo in a diagnostic.
54285 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54287 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54288 or AC_FUNC_REALLOC.
54290 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54292 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54293 macros to be defined.
54294 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54295 the allocator returns NULL because the requested size is zero.
54297 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54299 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54300 var. Add comment explaining why libc still defines it. This
54301 merges the following patch from glibc:
54302 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54304 2004-05-20 Andreas Schwab <schwab@suse.de>
54306 * m4/free.m4: Replace free if it not known to work, not the other
54309 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54311 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54312 present in glibc since revision 1.1 of this file.
54313 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54314 obstack_alignment_mask, obstack_alloc, obstack_base,
54315 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54316 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54317 obstack_grow0, obstack_init, obstack_int_grow,
54318 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54319 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54320 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54321 nonexistent functions.
54323 2004-05-18 Karl Berry <karl@gnu.org>
54325 * config/srclist.txt: break link for vasnprintf.c.
54327 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54329 Port obstack to the AS/400, where pointers are 16 bytes wide and
54330 you cannot cast an integer to a valid pointer. This patch is
54331 currently waiting to be integrated into glibc; see
54332 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54334 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54335 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54336 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54337 (struct obstack): temp member is now a union of a pointer and
54338 an integer, instead of an integer. All integer uses changed.
54339 This does not affect the physical layout of struct obstack,
54340 except on hosts (like the AS/400) where the size or alignment of
54341 void * is greater than that of ptrdiff_t.
54342 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54343 __STDC__)]: Store temporary in pointer member of union, not
54345 * lib/obstack.c: Include <stddef.h>, for offsetof.
54346 (struct fooalign): Remove; it doesn't need a name.
54347 (union fooround): Change double to long double, and add void *.
54348 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54349 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54350 not a macro. Hence the values are always int; so remove all
54351 casts-to-int in uses.
54353 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54355 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54356 we can get this patch merged into glibc.
54358 2004-05-17 Derek R. Price <derek@ximbiot.com>
54359 Paul Eggert <eggert@cs.ucla.edu>
54361 * m4/argp: Depend on alloca.
54363 2004-05-17 Derek R. Price <derek@ximbiot.com>
54364 Paul Eggert <eggert@cs.ucla.edu>
54366 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54369 2004-05-17 Bruno Haible <bruno@clisp.org>
54371 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54372 precision that consists of a '.' followed by an empty digit string.
54373 Patch by Tor Lillqvist <tml@iki.fi>.
54375 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54377 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54378 for backward compatibility with older code. We need our own
54379 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54380 it under some other name, and our alloca.h will define it.
54382 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54383 Derek Price <derek@ximbiot.com>
54385 * lib/alloca.c: Include <alloca.h>, to get our interface.
54386 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54387 include <alloca.h> first. Use C89 prototype for alloca; this
54388 requires including <stddef.h> for size_t. Use extern "C" if C++.
54389 Use #elif for simplicity, since we can assume C89 now.
54390 Don't try to source the system alloca.h since it will not be found
54391 and to prevent recursively including its replacement.
54392 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54393 * lib/regex.c: Likewise.
54395 2004-05-16 Derek Price <derek@ximbiot.com>
54396 Paul Eggert <eggert@cs.ucla.edu>
54398 getline cleanup. This changes the getndelim2 API: both order of
54399 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54402 * lib/getline.c: Don't include stddef.h or stdio.h, since our
54403 interface does that.
54404 (getline): Always use getdelim, so that we don't have two
54405 copies of this code.
54406 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54408 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54409 (GETNDELIM2_MAXIMUM): New macro.
54410 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
54411 instead of the old practice of delim2==0. All callers changed.
54412 Return -1 on overflow, instead of returning junk.
54413 Do not set *linesize unless allocation succeeds.
54414 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54415 that we include sys/types.h.
54416 * lib/getnline.h: Likewise.
54417 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54418 (getndelim2): Reorder arguments.
54419 * lib/getnline.c (getnline, getndelim):
54420 Don't discard the NMAX argument.
54421 (getnline): Invoke getndelim, to avoid code duplication.
54422 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54423 of (size_t) -1 by callers of the getnline family.
54425 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54427 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54428 Check for gettimeofday.
54429 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54430 Check for settimeofday, stime.
54432 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54434 * lib/nanosleep.c (suspended): Change its type from int to
54435 sig_atomic_t volatile.
54436 (first_call): Make it private to rpl_nanosleep, and have it
54437 be zero initially as that's a bit faster.
54438 (my_usleep): Round up fractional times instead of truncating them,
54439 as this is the usual meaning for 'sleep'.
54441 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54443 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54444 (ENOSYS): Define if not defined.
54445 (settime): Fall back on stime if it exists and settimeofday fails.
54446 But don't bother with fallbacks if a method fails with errno == EPERM.
54448 2004-05-11 Jim Meyering <jim@meyering.net>
54450 Prior to this change, the save_cwd caller required read access to the
54451 current directory on most systems (ones with the fchdir function).
54453 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54454 fails, try write-only, and finally, resort to using xgetcwd.
54456 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54458 * lib/obstack.c, obstack.h: Import changes from libc.
54460 2004-04-28 Bruno Haible <bruno@clisp.org>
54462 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54463 also implicitly appends .exe to executables.
54464 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54465 accepts Windows pathnames.
54466 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54467 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54468 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54469 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54470 Reported by Derek Robert Price <derek@ximbiot.com>.
54472 2004-04-21 Karl Berry <karl@gnu.org>
54474 * config/srclist.txt (localcharset.c): break sync.
54476 2004-04-20 Paul Eggert <eggert@twinsun.com>
54478 * m4/host-os.m4: Add a copyright notice.
54480 2004-04-20 Jim Meyering <jim@meyering.net>
54482 Change UTILS_ to gl_ in AC_DEFINE'd names.
54483 Change utils_- and jm_-prefixed variables, too.
54484 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54485 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54486 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54488 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54489 Don't emit trailing blanks.
54490 Also rename jm_-prefixed variables to have gl_ prefix.
54492 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54493 Also rename jm_-prefixed variables to have gl_ prefix.
54495 * m4/jm-macros.m4: Reflect the renamings.
54496 * m4/prereq.m4: Likewise.
54498 2004-04-20 Jim Meyering <jim@meyering.net>
54500 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54503 2004-04-20 Jim Meyering <jim@meyering.net>
54504 Bruno Haible <bruno@clisp.org>
54506 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54507 memory when realloc fails.
54509 2004-04-19 Jim Meyering <jim@meyering.net>
54511 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54512 now that readutmp.c may call `free (0)'.
54514 2004-04-19 Bruno Haible <bruno@clisp.org>
54516 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54517 * m4/inttypes_h.m4: Likewise.
54518 * m4/stdint_h.m4: Likewise.
54519 * m4/intmax_t.m4: Likewise.
54520 * m4/uintmax_t.m4: Likewise.
54522 2004-04-18 Jim Meyering <jim@meyering.net>
54524 * m4/prereq.m4: Don't forbid jm_ prefix.
54526 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54527 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54528 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54529 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54530 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54531 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54532 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54533 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54534 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54535 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54536 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54537 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54538 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54539 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54540 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54541 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54542 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54543 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54544 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54546 2004-04-18 Jim Meyering <jim@meyering.net>
54548 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54549 failure, don't leak memory and do call END_UTMP_ENT.
54551 2004-04-16 Jim Meyering <jim@meyering.net>
54553 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
54554 coreutils' stat program.
54555 (gl_PREREQ): Don't require jm_PREREQ_STAT.
54557 2004-04-11 Paul Eggert <eggert@twinsun.com>
54559 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54561 (CHAR_BIT): Remove, since we assume C89.
54562 Include <stdint.h> if available, as per current Autoconf CVS advice.
54564 2004-03-31 Jim Meyering <jim@meyering.net>
54566 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54567 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54568 * m4/xalloc.m4: Likewise.
54570 2004-03-30 Paul Eggert <eggert@twinsun.com>
54572 Merge from coreutils.
54574 * m4/inttostr.m4: New file.
54575 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54576 Require AM_STDBOOL_H and gl_TIMESPEC instead.
54577 Require gl_CLOCK_TIME.
54578 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54580 2004-03-30 Paul Eggert <eggert@twinsun.com>
54582 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54583 not bool, to be more consistent with Unix conventions.
54584 Suggested by Bruno Haible.
54586 Merge from coreutils.
54588 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54589 * lib/umaxtostr.c: New files.
54591 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54592 the usual <time.h> dance.
54593 (get_date): Change signature to support fractional time stamps.
54594 All callers changed.
54595 * lib/getdate.y: Include "getdate.h" first, as we can now
54596 assume C89 and don't need to worry about 'const'.
54597 Similarly, include "unlocked-io.h" near start, not in middle.
54598 Include <limits.h>.
54599 (textint.value): Use long int rather than int.
54600 (textint.digits): Use size_t rather than int.
54601 (BILLION, LOG10_BILLION): New constants.
54602 (parser_control): New member rel_ns. Members day_ordinal,
54603 time_zone, month, day, hour, minutes, rel_year, rel_month,
54604 rel_day, rel_hour, rel_minutes, rel_seconds
54605 are now long int, not int. Member seconds is now struct timespec,
54606 not int. New member timespec_seen. Members dates_seen, days_seen,
54607 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54609 (%union.intval): Now long int, not int.
54610 New member timespec.
54611 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54612 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54613 (spec): Now is a timespec or an item list.
54614 (timespec, items): New nonterminals.
54615 (time, rel, relunit, number, get_date):
54616 Add support for fractional seconds.
54617 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54618 (gmtime, localtime, mktime): Remove decls; not needed with C89.
54619 (to_hour): First arg is now long int, not int.
54620 (to_year): Returns long int, not int.
54621 Don't treat year -70 like 70.
54622 (tm_diff): Returns long int, not int.
54623 (lookup_word): Use bool instead of int when appropriate.
54624 (yylex): Use size_t for count, not int.
54625 Detect overflow when parsing large integer constants.
54626 Add support for fractions.
54627 (get_date): Make pointers 'const' if possible.
54628 Use more-portable code to detect integer overflow.
54629 (main) [TEST]: Adjust to above changes. Test for localtime failure.
54630 Don't use ctime; it's not reliable if the year has >4 digits.
54632 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54633 This is for compatibility with BSD.
54635 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54636 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54637 From coreutils' system.h.
54639 * lib/userspec.c: Don't include "posixver.h".
54640 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54641 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54642 compatible extension. Simplify code by removing a boolean int
54643 that was always nonzero if a string was nonnull.
54645 2004-03-30 Jim Meyering <jim@meyering.net>
54647 Merge from coreutils.
54649 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54650 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54651 on some systems one must include <grp.h> before it.
54652 Reported by Christian Krackowizer.
54654 2004-03-30 Jim Meyering <jim@meyering.net>
54656 Merge from coreutils.
54658 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54660 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54661 an empty input stream.
54663 * lib/readtokens.c: Include <stdbool.h>.
54664 (readtoken): Use `size_t' rather than int/long.
54665 All callers adjusted.
54666 Use `bool' rather than `int' where appropriate.
54667 Use memset rather than an explicit loop.
54668 Use x2nrealloc rather than xrealloc.
54669 Allow the use of `\0' as a delimiter.
54670 (readtokens): Likewise.
54671 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54673 2004-03-30 Jim Meyering <jim@meyering.net>
54675 * m4/realloc.m4: Remove file, since now it does no more than
54676 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54677 the `configure.ac' section of module/realloc.
54678 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54680 2004-03-30 Bruno Haible <bruno@clisp.org>
54682 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54685 2004-03-29 Paul Eggert <eggert@twinsun.com>
54687 Merge changes to getloadavg.c from coreutils and Emacs.
54689 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54690 Define to an expression, not to the empty string.
54691 Include cloexec.h and xalloc.h.
54692 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54693 Use set_cloexec_flag rather than rolling our own.
54694 * lib/cloexec.c, lib/cloexec.h: New files.
54696 2004-03-29 Paul Eggert <eggert@twinsun.com>
54698 * m4/cloexec.m4: New file.
54700 2004-03-18 Paul Eggert <eggert@twinsun.com>
54702 * lib/getopt.h: Sync with libc CVS.
54704 2004-03-18 Paul Eggert <eggert@twinsun.com>
54705 Bruno Haible <bruno@clisp.org>
54707 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54710 2004-03-18 Paul Eggert <eggert@twinsun.com>
54711 Bruno Haible <bruno@clisp.org>
54713 * lib/mbswidth.h: Include <wchar.h> only if
54714 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54716 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54718 2004-03-09 Paul Eggert <eggert@twinsun.com>
54720 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54721 Sync with libc CVS.
54722 * lib/getopt_int.h: New file, also synced from libc.
54724 2004-03-09 Paul Eggert <eggert@twinsun.com>
54726 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54727 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
54728 Bring back getopt.c, getopt.h, getopt1.c.
54730 2004-03-07 Paul Eggert <eggert@twinsun.com>
54732 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54733 All uses changed. Check for sa_sigaction member; this fixes
54734 a bug first reported by Jason Andrade in
54735 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54737 2004-03-07 Paul Eggert <eggert@twinsun.com>
54739 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
54740 '#if' expressions. Unlike the code it replaces, it does not
54741 depend on (defined _SC_PAGESIZE). However, it does depend on
54742 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54743 first reported by Jason Andrade in
54744 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54746 2004-02-25 Simon Josefsson <jas@extundo.com>
54748 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54750 2004-02-25 Simon Josefsson <jas@extundo.com>
54752 * lib/strdup.h: New file.
54753 * lib/strdup.c: Include it.
54754 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54755 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54757 2004-02-23 Karl Berry <karl@gnu.org>
54759 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54760 (from fencepost.gnu.org:/gd/gnuorg).
54762 2004-02-23 Karl Berry <karl@gnu.org>
54764 * config/srclistvars.sh (GNUORG) [karl]: redefine.
54765 * config/srclist.txt: add maintain/standards documents.
54767 2004-02-18 Bruno Haible <bruno@clisp.org>
54769 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54770 Reported by Derek Robert Price <derek@ximbiot.com>.
54772 2004-02-16 Karl Berry <karl@gnu.org>
54774 * config/mkinstalldirs, install-sh: update from automake.
54776 2004-02-06 Karl Berry <karl@gnu.org>
54778 * m4/po.m4: update from gettext 0.14.1.
54780 2004-02-06 Karl Berry <karl@gnu.org>
54782 * lib/config.charset: update from gettext 0.14.1.
54784 2004-02-05 Paul Eggert <eggert@twinsun.com>
54786 Add comments and code, prompted by suggestions from Bruno Haible
54788 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54789 describing the enum quoting_style values.
54790 * lib/quotearg.c (quotearg_alloc): New function.
54791 (quotearg_buffer_restyled): Treat lone { and } as special.
54792 Treat = as special. Work around bug with older shells
54793 that "see" a '\' that is really the 2nd byte of a multibyte char.
54794 Quote empty string with shell_quoting_style.
54796 2004-02-03 Bruno Haible <bruno@clisp.org>
54798 * m4/pipe.m4: New file, from GNU gettext.
54800 2004-02-03 Bruno Haible <bruno@clisp.org>
54802 * lib/pipe.h: New file, from GNU gettext.
54803 * lib/pipe.c: New file, from GNU gettext.
54805 2004-01-27 Bruno Haible <bruno@clisp.org>
54807 * m4/execute.m4: New file, from GNU gettext.
54809 2004-01-27 Bruno Haible <bruno@clisp.org>
54811 * lib/execute.h: New file, from GNU gettext.
54812 * lib/execute.c: New file, from GNU gettext.
54813 * lib/w32spawn.h: New file, from GNU gettext.
54815 2004-01-24 Paul Eggert <eggert@twinsun.com>
54817 Merge from diffutils.
54819 * lib/file-type.c (file_type): Add typed memory objects.
54820 * lib/file-type.h (S_TYPEISTMO): New macro.
54822 * lib/c-stack.h (c_stack_action): Remove argv argument.
54823 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54824 (die): Don't calculate message unless segv_action returns.
54825 (get_stack_location, min_address_from_argv, max_address_from_argv,
54826 volatile stack_base, volatile_stack_size): Remove.
54827 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54828 that every segmentation violation is a stack overflow. (Ouch!)
54829 See Debian bug 136249 (still outstanding) for more info about why
54830 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54832 2004-01-24 Paul Eggert <eggert@twinsun.com>
54834 Exit-status fix from coreutils.
54836 Use exit_failure consistently in place of EXIT_FAILURE,
54837 so that program exit statuses are consistent on failure.
54839 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54840 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54841 * lib/argmatch.h: Comment fix to match the above.
54842 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54843 Now a macro referring to exit_failure, instead of a separate
54844 variable. Include "exitfail.h" to get it.
54845 * lib/xstrtol.h: Include "exitfail.h".
54846 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54848 * lib/long-options.c (parse_long_options): Use prototype
54849 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
54852 2004-01-21 Jim Meyering <jim@meyering.net>
54854 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54855 so as not to conflict with a different-sized __mktime_internal
54856 function in GNU libc.
54857 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54858 Problem building statically-linked `ls' reported by Michael Brunnbauer.
54860 2004-01-20 Karl Berry <karl@gnu.org>
54862 * config/config.guess: update from config.
54864 * config/srclistvars.sh: GNUWWWLICENSES for karl.
54866 2004-01-20 Bruno Haible <bruno@clisp.org>
54868 Safer stack allocation.
54869 * lib/setenv.c: Include allocsa.h.
54870 (alloca): Remove fallback definition.
54871 (freea): Remove macro.
54872 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54875 2004-01-20 Bruno Haible <bruno@clisp.org>
54877 * m4/eealloc.m4: New file, from GNU gettext.
54879 2004-01-20 Bruno Haible <bruno@clisp.org>
54881 * m4/allocsa.m4: New file, from GNU gettext.
54883 2004-01-20 Bruno Haible <bruno@clisp.org>
54885 * lib/xallocsa.h: New file, from GNU gettext.
54886 * lib/xallocsa.c: New file, from GNU gettext.
54888 2004-01-20 Bruno Haible <bruno@clisp.org>
54890 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54892 2004-01-20 Bruno Haible <bruno@clisp.org>
54894 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54895 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54898 2004-01-20 Bruno Haible <bruno@clisp.org>
54900 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54903 2004-01-20 Bruno Haible <bruno@clisp.org>
54905 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54907 2004-01-20 Bruno Haible <bruno@clisp.org>
54909 * lib/eealloc.h: New file.
54911 2004-01-20 Bruno Haible <bruno@clisp.org>
54913 * lib/binary-io.h: Avoid warnings on Cygwin.
54915 2004-01-20 Bruno Haible <bruno@clisp.org>
54917 * lib/allocsa.h: New file, from GNU gettext.
54918 * lib/allocsa.c: New file, from GNU gettext.
54920 2004-01-18 Karl Berry <karl@gnu.org>
54922 * doc/gpl.texi, doc/lgpl.texi: new files.
54924 2004-01-18 Karl Berry <karl@gnu.org>
54926 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54927 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54929 2004-01-15 Paul Eggert <eggert@twinsun.com>
54931 Merge from coreutils.
54933 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54934 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54935 (gl_DEFAULT_POSIX2_VERSION): Move
54936 the documentation from 'configure' into 'config.hin',
54937 so that 'configure --help' isn't burdened by it and
54938 we don't have to worry about its formatting there.
54939 Reword the documentation so that it's more succinct
54940 and can be run together into a single paragraph.
54941 * m4/same.m4 (gl_SAME): Check for pathconf.
54943 2004-01-15 Paul Eggert <eggert@twinsun.com>
54945 Merge from coreutils.
54947 * lib/posixver.c: Include posixver.h.
54949 * lib/same.c: Include <stdbool.h>, <limits.h>.
54950 (_POSIX_NAME_MAX): Define if not defined.
54952 (same_name): If file names are silently truncated, report
54953 that the file names are the same if they are the same after
54954 the silent truncation.
54956 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54957 conversion function.
54958 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
54959 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
54962 2004-01-15 Jim Meyering <jim@meyering.net>
54964 Merge from coreutils.
54966 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54967 if no library is required.
54968 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54969 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54970 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54971 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54972 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54973 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54974 value, $ac_cv_search_crypt, if it's "none required".
54975 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54976 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54977 not gl_FUNC_GETLOADAVG.
54978 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54979 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54981 2004-01-15 Jim Meyering <jim@meyering.net>
54983 Merge from coreutils.
54985 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
54986 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
54987 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54989 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54990 optional configure-time default.
54992 * lib/version-etc.c (version_etc_copyright): Update copyright date.
54994 * lib/xreadlink.c (xreadlink): Correct outdated comment.
54996 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
54998 Merge from coreutils.
55000 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55001 value, $ac_cv_search_nanosleep, if it's "none required".
55003 2004-01-14 Paul Eggert <eggert@twinsun.com>
55005 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55006 with like-named macro in fnmatch.c.
55007 (EXT): Use an internal constant instead.
55009 Merge fnmatch patches from glibc.
55010 * lib/fnmatch.c (mbsinit): Remove define.
55011 Add libc_hidden_ver (__fnmatch, fnmatch).
55012 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55013 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55015 2004-01-14 Karl Berry <karl@gnu.org>
55017 * config/install-sh: update from automake.
55019 2004-01-13 Karl Berry <karl@gnu.org>
55021 * config/install-sh: update from automake.
55023 2004-01-09 Karl Berry <karl@gnu.org>
55025 * config/install-sh: update from automake.
55027 2004-01-05 Karl Berry <karl@gnu.org>
55029 * config/config.{sub,guess}: update from config.
55031 2003-12-31 Karl Berry <karl@gnu.org>
55033 * config/depcomp: update from automake.
55035 2003-12-14 Karl Berry <karl@gnu.org>
55037 * lib/config.charset: update from gettext-runtime.
55039 2003-12-03 Paul Eggert <eggert@twinsun.com>
55041 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55042 Bug reported by Alfred M. Szmidt.
55044 2003-12-03 Bruno Haible <bruno@clisp.org>
55046 * m4/gettext.m4: Upgrade from gettext-0.13.
55047 * m4/po.m4: Upgrade from gettext-0.13.
55048 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55049 * m4/intmax.m4: New file, from gettext-0.13.
55050 * m4/printf-posix.m4: New file, from gettext-0.13.
55052 2003-11-29 Karl Berry <karl@gnu.org>
55054 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55056 2003-11-25 Paul Eggert <eggert@twinsun.com>
55057 Bruno Haible <bruno@clisp.org>
55059 * lib/printf-parse.h: Don't include sys/types.h.
55060 (ARG_NONE): New macro.
55061 (char_directive): Change type of *arg_index fields to size_t.
55062 * lib/printf-parse.c: Don't include sys/types.h.
55063 (SSIZE_MAX): Remove macro.
55064 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55065 Remove unnecessary overflow check.
55066 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55069 2003-11-25 Bruno Haible <bruno@clisp.org>
55071 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55073 2003-11-25 Bruno Haible <bruno@clisp.org>
55075 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55078 2003-11-24 Paul Eggert <eggert@twinsun.com>
55080 * modules/alloca: Remove dependency on xalloc.
55082 2003-11-24 Paul Eggert <eggert@twinsun.com>
55084 * lib/alloca.c: Remove dependency on xalloc module.
55085 (xalloc_die): Remove.
55086 (memory_full) [!defined emacs]: New macro.
55087 [!defined emacs]: Don't include xalloc.h.
55088 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55089 address arithmetic overflows. Change datatypes a bit to avoid
55092 2003-11-22 Jim Meyering <jim@meyering.net>
55094 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55097 2003-11-21 Karl Berry <karl@gnu.org>
55099 * config/config.{sub,guess}: update from config.
55101 2003-11-18 Karl Berry <karl@gnu.org>
55103 * config/config.{sub,guess}: update from config.
55105 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55107 2003-11-17 Paul Eggert <eggert@twinsun.com>
55109 * README: Mention that S+T cannot overflow if S is the size of
55110 an existing object and T is sufficiently small.
55112 2003-11-17 Jim Meyering <jim@meyering.net>
55114 On systems without utime and without a utimes function capable of
55115 dealing with a NULL struct utimbuf* argument, this utime replacement
55116 could -- in unusual circumstances -- leak a file descriptor.
55117 * lib/utime.c: Include <unistd.h> and <errno.h>.
55118 (utime_null): Be sure to close `fd' and to preserve errno.
55119 Reported by Geoff Collyer via Arnold Robbins.
55121 2003-11-17 Bruno Haible <bruno@clisp.org>
55123 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55124 (Depends-on): Add xsize.
55126 2003-11-17 Bruno Haible <bruno@clisp.org>
55128 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55130 2003-11-17 Bruno Haible <bruno@clisp.org>
55132 * lib/vasnprintf.c (alloca): Remove fallback definition.
55133 (freea): Remove definition.
55134 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55135 Reported by Paul Eggert.
55137 2003-11-16 Paul Eggert <eggert@twinsun.com>
55138 Bruno Haible <bruno@clisp.org>
55140 Protect against address arithmetic overflow.
55141 * lib/printf-args.h: Include stddef.h.
55142 (arguments): Change type of field 'count' to size_t.
55143 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55144 'unsigned int' where appropriate.
55145 * lib/printf-parse.h: Include sys/types.h.
55146 (char_directive): Change type of *arg_index fields to ssize_t.
55147 (char_directives): Change type of fields 'count', max_*_length to
55149 * lib/printf-parse.c: Include sys/types.h and xsize.h.
55150 (SSIZE_MAX): Define fallback value.
55151 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55152 instead of 'int' where appropriate. Check a_allocated, d_allocated
55153 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55154 * lib/vasnprintf.c: Include xsize.h.
55155 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55156 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55157 overflow. Avoid wraparound when converting a width or precision from
55160 2003-11-16 Bruno Haible <bruno@clisp.org>
55162 Update from GNU gettext.
55163 * lib/printf-parse.c: Generalize to it can be compiled for wide
55165 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55166 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55167 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55168 SNPRINTF): New macros.
55169 Don't include <alloca.h> if the file is used inside libintl.
55170 (local_wcslen): New function, for Solaris 2.5.1.
55171 (VASNPRINTF): Use it instead of wcslen.
55173 2003-11-16 Bruno Haible <bruno@clisp.org>
55175 * lib/xsize.h (xmax): New function.
55176 (xsum, xsum3, xsum4): Declare as "pure" functions.
55178 2003-11-12 Paul Eggert <eggert@twinsun.com>
55180 * modules/xalloc (Files): Undo latest change, since xalloc.h
55181 no longer needs SIZE_MAX or PTRDIFF_MAX.
55183 2003-11-12 Paul Eggert <eggert@twinsun.com>
55185 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55188 2003-11-12 Paul Eggert <eggert@twinsun.com>
55190 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55191 "return", to pacify some unknown compiler. Problem reported
55192 by Joerg Schilling.
55194 2003-11-12 Paul Eggert <eggert@twinsun.com>
55196 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55197 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55198 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
55199 heuristic is just as accurate as far as we know, and it removes a
55200 dependency on size_max.m4 and ptrdiff_max.m4.
55202 2003-11-11 Bruno Haible <bruno@clisp.org>
55204 * modules/xsize (Files): Add m4/size_max.m4.
55205 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55207 2003-11-11 Bruno Haible <bruno@clisp.org>
55209 * m4/size_max.m4: New file.
55210 * m4/ptrdiff_max.m4: New file.
55211 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55212 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55213 (gl_XALLOC): Invoke it.
55215 2003-11-11 Bruno Haible <bruno@clisp.org>
55217 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55218 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55221 2003-11-10 Paul Eggert <eggert@twinsun.com>
55223 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55224 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55225 rejected some allocations of exactly SIZE_MAX - 2 bytes.
55227 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55228 not (size_t) -1, since it's defined here.
55230 2003-11-09 Karl Berry <karl@gnu.org>
55232 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55234 2003-11-06 Paul Eggert <eggert@twinsun.com>
55236 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55237 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55238 Reject sizes of exactly SIZE_MAX bytes.
55239 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55240 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55242 2003-11-05 Bruno Haible <bruno@clisp.org>
55244 * lib/xsize.h: Include limits.h, to avoid a possible collision with
55245 SIZE_MAX defined in <limits.h> on Solaris.
55247 2003-11-04 Jim Meyering <jim@meyering.net>
55249 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55250 variable names, rather than @VAR@.
55251 * modules/poll: Likewise.
55253 2003-11-04 Bruno Haible <bruno@clisp.org>
55255 * modules/xsize: New file.
55256 * modules/linebreak: Depend on xsize.
55257 * MODULES.html.sh (func_all_modules): Add xsize.
55259 2003-11-04 Bruno Haible <bruno@clisp.org>
55261 * m4/xsize.m4: New file.
55263 2003-11-04 Bruno Haible <bruno@clisp.org>
55265 * lib/xsize.h: New file.
55266 * lib/linebreak.c: Include xsize.h.
55267 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55268 argument for overflow.
55269 Suggested by Paul Eggert.
55271 2003-11-03 Karl Berry <karl@gnu.org>
55273 * config/config.{guess,sub}: update from config.
55275 2003-11-03 Jim Meyering <jim@meyering.net>
55277 * modules/userspec (lib_SOURCES): Add userspec.h.
55278 (Include): Add "userspec.h".
55279 Improve description.
55281 2003-11-03 Jim Meyering <jim@meyering.net>
55283 * lib/userspec.c: Include "userspec.h".
55284 * lib/userspec.h: New file.
55286 2003-11-03 Bruno Haible <bruno@clisp.org>
55288 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55290 2003-11-03 Bruno Haible <bruno@clisp.org>
55292 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55293 available, to avoid (extremely rare) race condition.
55294 Suggested by Paul Eggert.
55296 2003-11-02 Karl Berry <karl@gnu.org>
55298 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55300 2003-10-31 Paul Eggert <eggert@twinsun.com>
55302 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55303 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55304 (read_filesystem_list): Set and use me_type_malloced.
55305 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55306 whatever the type happens to be), for brevity and consistency.
55307 Check for size calculation overflow on Alphas running OSF/1.
55309 2003-10-31 Jim Meyering <jim@meyering.net>
55311 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55313 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55315 2003-10-30 Paul Eggert <eggert@twinsun.com>
55316 Bruno Haible <bruno@clisp.org>
55318 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55319 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55321 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55323 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55324 netbsd*-gnu*. Suggested by Robert Millan.
55326 2003-10-29 Paul Eggert <eggert@twinsun.com>
55328 * modules/group-member: Depend on stdbool.
55330 2003-10-29 Paul Eggert <eggert@twinsun.com>
55332 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55334 2003-10-29 Paul Eggert <eggert@twinsun.com>
55336 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55337 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55338 after the 'gnu' in these cases. This fixes some bugs in the
55339 previous change, and is based on suggestions by Robert Millan.
55341 2003-10-29 Paul Eggert <eggert@twinsun.com>
55343 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55344 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55346 * lib/quotearg.c (quotearg_n_options): Use it.
55347 * lib/group-member.c: Include <stdbool.h>.
55348 (free_group_info): Arg is now const *; don't free arg.
55349 (get_group_info): Now returns bool and accepts struct group_info *,
55350 rather than returning a malloc'ed struct group_info *.
55351 All uses changed. Check for overflow in internal size calculation.
55353 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55354 rather than xmalloc/xrealloc.
55355 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55356 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55357 conformance bug: the old code used a pointer after freeing the
55358 storage that it addressed.
55359 * lib/hash.c (hash_initialize): Simplify the code by using
55360 xalloc_oversized rather than doing it by hand.
55361 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55362 the buffer preserved. Use free and xmalloc instead.
55363 * lib/quotearg.c (quotearg_n_options): Likewise.
55364 Use a simpler test for size overflow. Don't use xalloc_oversized
55365 because unsigned int might be wider than size_t (!); this suggests
55366 that we should switch from unsigned int to size_t for slot numbers.
55368 2003-10-28 Paul Eggert <eggert@twinsun.com>
55370 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55371 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55372 NetBSD kernels. Requested by Richard Stallman.
55374 2003-10-27 Paul Eggert <eggert@twinsun.com>
55376 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55377 to allocate the returned structure. Do not allocate a subarray,
55378 as x2nrealloc will do that.
55379 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55380 instead of xnrealloc.
55381 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55383 2003-10-27 Bruno Haible <bruno@clisp.org>
55385 * lib/stdbool_.h: Better support for BeOS.
55387 2003-10-26 Paul Eggert <eggert@twinsun.com>
55389 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55392 2003-10-26 Paul Eggert <eggert@twinsun.com>
55394 * lib/xalloc.h (xalloc_oversized): New static inline function, for
55395 callers that want to do their own size-overflow checking. Include
55396 <stdbool.h>, since xalloc_oversized returns bool.
55397 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
55398 to use xalloc_oversized.
55400 Add two functions x2realloc, x2nrealloc, for programs that grow
55401 arrays dynamically by doubling their sizes.
55402 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55403 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55406 Port to C99 semantics for 'inline' of external functions.
55407 Bug reported by Bruno Haible.
55408 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55409 with the old contents of xnmalloc.
55410 (xnmalloc, xmalloc): Use it.
55411 (xnrealloc_inline): New static inline function,
55412 with the old contents of xnrealloc.
55413 (xnrealloc, xrealloc): Use it.
55415 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55418 2003-10-26 Karl Berry <karl@gnu.org>
55420 * config/srclist.txt (COPYING.DOC): no longer available from
55421 /gd/gnuorg; don't know where the ultimate source is.
55423 2003-10-25 Paul Eggert <eggert@twinsun.com>
55425 Fix several address-calculation bugs in the hash modules,
55426 plus some minor code cleanup.
55428 * lib/hash.h: Include <stdbool.h>, for bool.
55429 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55430 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55431 hash_get_n_entries, hash_get_max_bucket_length,
55432 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55433 hash_rehash): Use size_t rather than unsigned.
55434 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55435 hash_get_n_buckets_used, hash_get_n_entries,
55436 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55437 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55438 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55440 (SIZE_MAX): Define if not defined.
55441 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55442 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55444 Use const * when possible.
55445 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55446 (check_tuning): Fix bug: if tuning parameters were very close to
55447 0 or 1, rounding errors could have caused subscript violations.
55448 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55449 (hash_initialize): Add 'fail:' label
55450 to free table and return NULL, and use it to simplify code.
55451 Use calloc rather than clearing the storage ourself.
55452 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55453 buffer size calculations.
55454 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55455 Include <stddef.h>, for size_t.
55456 * lib/hash-pjw.c (hash_pjw): Likewise.
55457 Switch to method described by Bruno Haible.
55458 Include <limits.h>, for CHAR_BIT.
55459 (SIZE_BITS): New macro.
55461 2003-10-23 Paul Eggert <eggert@twinsun.com>
55463 * m4/getline.m4 (AM_FUNC_GETLINE):
55464 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55465 hosts. Problem reported by Derek Robert Price in
55466 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55467 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55468 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55470 2003-10-21 Paul Eggert <eggert@twinsun.com>
55472 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55473 ceiling the allocation at NMAX bytes rather than silently
55474 discarding input bytes before NMAX is reached. This makes
55475 a difference only if NMAX exceeds SIZE_MAX / 2.
55477 * lib/obstack.c: Merge from glibc.
55478 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55479 Add libc_hidden_def (_obstack_newchunk).
55480 (_obstack_free) [! defined _LIBC]: Remove.
55481 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55482 a clone of the function body.
55483 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55484 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55486 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55488 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55491 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55492 (obstack_ptr_grow_fast, obstack_int_grow_fast):
55493 Don't use lvalue casts, as GCC plans to remove support for them
55494 in GCC 3.5. Reported by Joseph S. Myers. This bug
55495 was also present in the non-GCC version, indicating that this
55496 code had always been buggy and had never been widely used.
55497 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55498 Use the fast variant of each macro, rather than copying the
55499 definiens of the fast variant; that way, we'll be more likely to
55500 catch future bugs in the fast variants.
55502 2003-10-20 Bruno Haible <bruno@clisp.org>
55504 * modules/wait-process: New file.
55505 * MODULES.html.sh (func_all_modules): Add wait-process.
55507 2003-10-20 Bruno Haible <bruno@clisp.org>
55509 * m4/wait-process.m4: New file.
55511 2003-10-20 Bruno Haible <bruno@clisp.org>
55513 * lib/wait-process.h: New file, from GNU gettext.
55514 * lib/wait-process.c: New file, from GNU gettext.
55516 2003-10-19 Jim Meyering <jim@meyering.net>
55518 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55521 2003-10-18 Karl Berry <karl@gnu.org>
55523 * config/config.guess: update from config.
55525 2003-10-16 Paul Eggert <eggert@twinsun.com>
55527 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55528 (getgroups): First arg is int, not size_t.
55529 Don't let 'free' mangle errno.
55531 2003-10-16 Paul Eggert <eggert@twinsun.com>
55533 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55535 2003-10-16 Karl Berry <karl@gnu.org>
55537 * config/config.{guess,sub}: update from config.
55539 2003-10-16 Jim Meyering <jim@meyering.net>
55541 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55544 2003-10-15 Paul Eggert <eggert@twinsun.com>
55546 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55547 (SIZE_MAX): Remove.
55548 (new_exclude, add_exclude_file): Initial size no longer needs to
55550 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55551 our own address arithmetic overflow checking.
55553 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55554 (fnmatch): Do not alloca more than 2000 wide characters;
55555 instead, use malloc for large buffers.
55556 Check for address arithmetic overflow, and return -1
55557 with errno set to ENOMEM in that case.
55558 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55559 (NEW_PATTERN): Do not alloca more than 8000 bytes;
55560 instead, return -1. Check for address arithmetic overflow.
55562 2003-10-14 Paul Eggert <eggert@twinsun.com>
55564 Handle invalid suffixes and overflow independently, so that
55565 callers can treat them independently as needed. Fix some bugs in
55566 suffix handling, e.g., "100k@" was not diagnosed as an invalid
55567 suffix for a human-readable blocksize. The major caller-visible
55568 change is the addition of a new
55569 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55570 that both overflow and suffix chars were found.
55572 * lib/human.c (humblock): Don't check separately for invalid suffix
55573 char; that is xstrtoumax's job (now that its bug is fixed).
55574 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55575 INTMAX_MAX]: New macros.
55576 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55577 TYPE_MAXIMUM): New macros.
55578 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55579 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55580 if overflow occurs, as it's what __strtol does and it's more useful
55582 (__xstrtol): If __strtol reports some error other than ERANGE,
55583 reflect it to the caller as LONGINT_INVALID. If it reports
55584 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55585 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55586 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55588 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
55589 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55590 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55591 [defined UINTMAX_MAX]: New macros.
55593 2003-10-14 Bruno Haible <bruno@clisp.org>
55595 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55597 2003-10-14 Bruno Haible <bruno@clisp.org>
55599 * m4/sig_atomic_t: New file, from GNU gettext.
55600 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55602 2003-10-14 Bruno Haible <bruno@clisp.org>
55604 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55605 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55606 Also use volatile where needed.
55608 2003-10-12 Paul Eggert <eggert@twinsun.com>
55610 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
55611 Change maintainer from Bruno Haible to 'all'.
55613 2003-10-12 Paul Eggert <eggert@twinsun.com>
55615 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55617 2003-10-12 Paul Eggert <eggert@twinsun.com>
55619 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55620 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55621 and define in terms of the other primitives.
55622 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55623 (SIZE_MAX): Define if not already defined.
55624 (array_size_overflow): New function.
55625 (xalloc_die): Abort instead of exiting if 'error' returns.
55626 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55627 (xmalloc, xrealloc): Use them.
55628 (xcalloc): Check for address arithmetic overflow.
55629 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55630 a bit faster than strcpy.
55632 2003-10-10 Simon Josefsson <jas@extundo.com>
55634 * modules/argp (Depends-on): Add restrict and strcase.
55636 2003-10-10 Simon Josefsson <jas@extundo.com>
55638 * m4/argp.m4: Add AC_C_INLINE.
55640 2003-10-08 Paul Eggert <eggert@twinsun.com>
55642 Merge getpass from libc, plus a few fixes.
55644 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55645 Include <stdbool.h>.
55646 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55647 __fsetlocking to empty.
55648 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55649 do include <bits/libc-lock.h>.
55650 Do not include <fcntl.h>; not needed.
55651 [_LIBC]: Include <wchar.h>.
55652 (NOTCANCEL_MODE): New macro.
55653 (flockfile, funlockfile) [_LIBC]: New macros.
55654 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55655 [!_LIBC]: New macros.
55656 (call_fclose): New function.
55657 (getpass): Use it. Save tty stream separately; this simplifies the
55658 code and makes it more reliable if stdin happens to equal stdout.
55659 Invoke __fsetlocking on tty.
55660 Handle thread cancellation if needed.
55661 Namespace cleanup (use __tcgetattr, __getline).
55662 Use bool for Booleans.
55663 [USE_IN_LIBIO]: Handle wide streams.
55664 [!_LIBC]: Unconditionally do the fseek, since we don't know what
55665 stream might go where.
55667 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55668 doesn't have to include <stdio.h> before us.
55669 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55670 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55671 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55672 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55673 if not declared, so that we can use getpass.c code from libc without
55675 (flockfile, ftrylockfile, funlockfile): New macros.
55677 2003-10-08 Paul Eggert <eggert@twinsun.com>
55679 * modules/getpass: Depend on stdbool.
55681 2003-10-08 Paul Eggert <eggert@twinsun.com>
55683 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55685 2003-10-07 Karl Berry <karl@gnu.org>
55687 * config/config.{guess,sub}: update from config.
55689 2003-10-06 Jim Meyering <jim@meyering.net>
55690 Bruno Haible <bruno@clisp.org>
55692 This lets translators provide better translations for the
55693 "Written by ..." part of --version output.
55694 * lib/version-etc.h: Include stdarg.h.
55695 (version_etc_copyright): Declare as readonly.
55696 (version_etc): Make this function variadic with a NULL-terminated list
55697 of author name strings.
55698 (version_etc_va): New declaration.
55699 * lib/version-etc.c: Include stdarg.h, stdlib.h.
55700 (version_etc_copyright): Declare as readonly.
55701 (version_etc_va): New function. Provide a different translatable string
55702 for each possible number of authors < 10. Abbreviate when there are 10
55704 (version_etc): Make this function variadic. Call version_etc_va.
55705 Suggestion from Gary V. Vaughan.
55707 * lib/long-options.h (parse_long_options): Change prototype: the
55708 authors string is moved to the end and becomes variadic.
55709 * lib/long-options.c: Include stdarg.h.
55710 (parse_long_options): Make this function variadic, too.
55711 Call version_etc_va, not version_etc.
55713 2003-10-06 Bruno Haible <bruno@clisp.org>
55715 * modules/version-etc-2: Remove file.
55716 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55718 2003-10-06 Bruno Haible <bruno@clisp.org>
55720 * modules/fatal-signal: New file.
55721 * MODULES.html.sh (func_all_modules): Add fatal-signal.
55723 2003-10-06 Bruno Haible <bruno@clisp.org>
55725 * m4/fatal-signal.m4: New file.
55726 * m4/signalblocking.m4: New file, from GNU gettext.
55728 2003-10-06 Bruno Haible <bruno@clisp.org>
55730 * lib/version-etc-2.h: Remove file.
55731 * lib/version-etc-2.c: Remove file.
55733 2003-10-06 Bruno Haible <bruno@clisp.org>
55735 * lib/fatal-signal.h: New file, from GNU gettext.
55736 * lib/fatal-signal.c: New file, from GNU gettext.
55738 2003-10-05 Paul Eggert <eggert@twinsun.com>
55740 * README: Rework advice for preventing empty .o files.
55741 Don't recommend ELIDE constructs. Recommend <stddef.h>,
55744 2003-10-04 Karl Berry <karl@gnu.org>
55746 * lib/argp*: update from libc.
55748 2003-10-04 Karl Berry <karl@gnu.org>
55750 * config/config.{guess,sub}: update from config.
55752 2003-10-02 Bruno Haible <bruno@clisp.org>
55754 * modules/lchown (Include): Add lchown.h.
55755 * modules/time_r (Include): Use "..." syntax.
55756 * modules/xgetdomainname (Include): Add xgetdomainname.h.
55758 2003-10-01 Simon Josefsson <jas@extundo.com>
55760 * MODULES.html.sh (func_all_modules): Move gethostname from section
55761 'based on' to section 'lacking' POSIX:2001.
55763 2003-10-01 Larry Jones <lawrence.jones@eds.com>
55765 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55766 to output mode on the same stream.
55768 2003-09-29 Paul Eggert <eggert@twinsun.com>
55770 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55771 Fix arg typo in previous patch.
55773 2003-09-28 Jim Meyering <jim@meyering.net>
55775 * lib/error.c: Correct cpp indentation.
55777 2003-09-27 Paul Eggert <eggert@twinsun.com>
55779 * modules/free: New file.
55781 2003-09-27 Paul Eggert <eggert@twinsun.com>
55783 * m4/free.m4: New file.
55785 2003-09-27 Paul Eggert <eggert@twinsun.com>
55787 * lib/minmax.h (MIN, MAX)
55788 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55789 Omit the special code that used __typeof__, since we worry that
55790 it could be more trouble than it's worth. See:
55791 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55792 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55794 * lib/free.c: New file.
55796 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55798 Trivial fixes to Makefile.am parts of module listings.
55799 * modules/strstr: Append strstr.h to lib_SOURCES.
55800 * modules/strcase: Likewise, for strcase.h.
55802 2003-09-27 Karl Berry <karl@gnu.org>
55804 * config/mkinstalldirs: update from automake.
55806 2003-09-26 Paul Eggert <eggert@twinsun.com>
55808 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55809 (error_tail): Do not loop, reallocating temporary buffer, since
55810 the output cannot contain more wide characters than the input
55811 contains bytes, the size must be big enough already. This avoids
55812 one potential size overflow calculation. Check for size overflow
55813 when calculating temporary buffer size. Free temporary buffer
55814 when done, if it was allocated with malloc; this plugs a memory
55815 leak. Remove casts from void * to pointers, that are no longer
55816 needed now that we're assuming C89 or better.
55818 Merge error changes from glibc.
55820 * lib/error.c, error.h: Update copyright notice header to match glibc.
55821 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55822 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55823 Disable cancellation while printing error.
55824 * lib/error.h: Prepend __ to parameter names.
55826 2003-09-26 Jim Meyering <jim@meyering.net>
55828 * lib/error.c (error_tail): Move some declarations
55829 into inner scope where the local variables are used.
55831 2003-09-26 Bruno Haible <bruno@clisp.org>
55833 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55835 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55837 2003-09-26 Bruno Haible <bruno@clisp.org>
55839 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55840 (stpncpy): Define as alias for gnu_stpncpy.
55841 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55843 2003-09-25 Simon Josefsson <jas@extundo.com>
55845 * lib/xgetdomainname.h: New file.
55846 * lib/xgetdomainname.c: New file.
55848 2003-09-25 Simon Josefsson <jas@extundo.com>
55849 Bruno Haible <bruno@clisp.org>
55851 * modules/getdomainname: New file.
55852 * modules/xgetdomainname: New file.
55853 * MODULES.html.sh (func_all_modules): Add getdomainname,
55856 2003-09-25 Simon Josefsson <jas@extundo.com>
55857 Bruno Haible <bruno@clisp.org>
55859 * m4/getdomainname.m4: New file.
55861 2003-09-25 Simon Josefsson <jas@extundo.com>
55862 Bruno Haible <bruno@clisp.org>
55864 * lib/getdomainname.h: New file.
55865 * lib/getdomainname.c: New file.
55867 2003-09-25 Karl Berry <karl@gnu.org>
55869 * lib/argp-fmtstream.c, argp-help.c: update from libc.
55871 2003-09-25 Karl Berry <karl@gnu.org>
55873 * config/install-sh: update from automake.
55875 2003-09-25 Bruno Haible <bruno@clisp.org>
55877 * modules/version-etc-2: New file, from modules/version-etc with
55879 * MODULES.html.sh (func_all_modules): Add version-etc-2.
55881 2003-09-25 Bruno Haible <bruno@clisp.org>
55883 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55884 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55886 2003-09-24 Simon Josefsson <jas@extundo.com>
55888 * modules/xgethostname: Add xgethostname.h.
55890 2003-09-24 Paul Eggert <eggert@twinsun.com>
55892 * lib/linebuffer.c (freebuffer): Don't free the argument, just
55893 the buffer associated with the argument. Bug reported by
55896 2003-09-24 Paul Eggert <eggert@twinsun.com>
55898 * README: Document assumptions that 'int' is at least 32 bits
55899 wide, that integer arithmetic is 2's complement without overflow,
55900 that there are no holes in integer values, that adding sizes of
55901 two nonoverlapping objects can't overflow, and that all-bits-zero
55902 yields scalar zero. Fix spelling and capitalization typos.
55904 2003-09-19 Karl Berry <karl@gnu.org>
55906 * lib/argp.h: update from libc.
55908 2003-09-17 Paul Eggert <eggert@twinsun.com>
55910 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55911 to avoid spurious warnings like "AC_RUN_IFELSE was called before
55912 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55914 2003-09-17 Paul Eggert <eggert@twinsun.com>
55916 * gnulib-tool: Use "test -h", not "test -L", for portability
55917 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
55918 (tags_regexp): Remove, since \| doesn't conform to POSIX.
55919 (sed_extract_prog): Issue s commands one-by-one, rather than
55920 using \| in one s command.
55922 2003-09-16 Paul Eggert <eggert@twinsun.com>
55924 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55925 input error, instead of returning NULL the next time we are called
55926 (and therefore losing track of errno).
55928 2003-09-16 Bruno Haible <bruno@clisp.org>
55930 * gnulib-tool (func_create_testdir): Warn about duplicated
55933 2003-09-15 Paul Eggert <eggert@twinsun.com>
55935 * modules/argmatch, modules/fatal, modules/obstack,
55936 modules/xalloc, modules/xgethostname: Sort dependencies by
55937 importance, not alphabetically.
55939 2003-09-15 Paul Eggert <eggert@twinsun.com>
55941 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55942 fails, so that the caller gets the proper errno.
55944 * lib/readutmp.c (read_utmp): Likewise.
55945 Check for fstat error. Close stream and free storage
55948 2003-09-14 Karl Berry <karl@gnu.org>
55950 * config/srclist.txt (strdup.c): disable for c89 changes.
55952 2003-09-14 Jim Meyering <jim@meyering.net>
55954 * lib/getloadavg.c: Correct cpp indentation.
55955 * lib/strdup.c: Likewise.
55956 * lib/vasnprintf.c: Likewise.
55958 2003-09-14 Bruno Haible <bruno@clisp.org>
55960 * modules/fwriteerror: New file.
55961 * MODULES.html.sh (func_all_modules): Add fwriteerror.
55963 2003-09-14 Bruno Haible <bruno@clisp.org>
55965 * lib/fwriteerror.h: New file.
55966 * lib/fwriteerror.c: New file.
55968 2003-09-12 Paul Eggert <eggert@twinsun.com>
55970 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55971 modules/xgethostname, modules/xalloc: Depend on exit.
55973 2003-09-12 Paul Eggert <eggert@twinsun.com>
55975 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55977 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55978 and AC_MINIX, too, so that their extensions are available.
55980 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
55981 This macro has been superseded by gl_BACKUPFILE.
55983 More patches to assume C89 or better.
55985 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55987 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55989 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55990 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55991 Include <string.h>, <stdlib.h> unconditionally.
55992 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55993 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55994 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55995 headers or for string.h.
55996 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55999 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56001 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56002 * m4/userspec.m4 (gl_USERSPEC): Likewise.
56003 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56004 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56005 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56006 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56008 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56009 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56010 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56012 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56013 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56014 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56017 2003-09-12 Paul Eggert <eggert@twinsun.com>
56019 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56020 * lib/obstack.c [!defined _LIBC]: Likewise.
56021 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56022 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56023 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56025 More changes to assume C89 or better.
56027 * lib/error.c (error_tail): Assume vprintf.
56029 * lib/argmatch.c (getenv): Remove decl.
56030 * lib/progreloc.c (get_full_program_name): Define via prototype.
56031 * lib/setenv.c (clearenv): Likewise.
56032 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56034 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56035 (malloc, memcpy): Remove decls.
56036 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56037 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56038 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56039 (memcpy): Remove macro.
56040 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56041 (__P): Remove. All uses removed.
56042 (PTR): Remove. All uses changed to void *.
56043 (CHAR_BIT, NULL): Remove.
56044 (spaces, zeros, memset_space, memset_zero)
56045 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56047 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56048 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56049 Define with prototype.
56050 Remove now-unnecessary prototype decl.
56051 (extra_args_spec): Assume ANSI C. All uses changed.
56052 (extra_args_spec_iso): Remove.
56053 (my_strftime, emacs_strftimeu): Define via prototype.
56054 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56056 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56057 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56058 (strtoul, strtol): Remove decls.
56059 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56061 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56062 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
56063 (LOCALE_PARAM_PROTO): New macro.
56064 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56065 (INTERNAL (strtol), strtol): Define with a prototype.
56066 (PARAMS): Remove. All uses removed.
56067 * lib/tempname.c: Include <string.h> unconditionally.
56068 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56069 * lib/xgethostname.c (main): Define with a prototype.
56070 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56071 Include <stdlib.h> unconditionally.
56072 (calloc, malloc, realloc, free): Remove decls.
56073 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56074 Include <stdlib.h> unconditionally. Sort include file names.
56076 (xstrtod): Define with a prototype.
56077 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56078 (strtol, strtoul): Remove decls.
56080 2003-09-11 Paul Eggert <eggert@twinsun.com>
56082 More patches to assume C89 or better.
56083 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56084 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56085 string.h, memchr, STDC_HEADERS.
56087 2003-09-11 Paul Eggert <eggert@twinsun.com>
56089 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56090 Include <stdlib.h>, <string.h> unconditionally.
56091 Remove now-unnecessary cast to char *.
56092 * lib/strnlen.c: Include <string.h> unconditionally.
56093 * lib/yesno.c (yesno): Define with a prototype.
56095 2003-09-11 Bruno Haible <bruno@clisp.org>
56097 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56099 2003-09-10 Jim Meyering <jim@meyering.net>
56101 * lib/error.c: Correct indentation of cpp directives.
56103 2003-09-10 Bruno Haible <bruno@clisp.org>
56105 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56106 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56107 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56108 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56109 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56110 <stdlib.h> and <string.h> checks.
56111 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56112 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56114 2003-09-10 Bruno Haible <bruno@clisp.org>
56116 * lib/strcspn.c: Include <string.h> unconditionally.
56117 * lib/strpbrk.c: Include <string.h> unconditionally.
56118 * lib/strstr.c: Include <string.h> unconditionally.
56119 * lib/unicodeio.c: Include <string.h> unconditionally.
56120 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56121 * lib/unsetenv.c: Likewise.
56122 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56123 * lib/yesno.c: Include <stdlib.h> unconditionally.
56124 (rpmatch): Add prototype.
56126 2003-09-09 Paul Eggert <eggert@twinsun.com>
56128 More patches to assume C89 or better.
56129 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56130 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56131 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56133 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56135 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56137 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56139 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56140 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56141 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56143 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56144 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56146 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56148 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56149 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56150 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56151 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56152 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56153 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56155 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56156 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56157 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56158 C headers, or for string.h.
56159 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56160 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56161 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56162 headers, memory.h, stdlib.h, string.h, strings.h.
56163 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56164 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56165 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56167 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56168 headers, memory.h, string.h.
56169 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56170 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56172 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56174 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56175 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56176 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56177 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56178 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56180 2003-09-09 Paul Eggert <eggert@twinsun.com>
56184 * lib/acosl.c (main): Use a prototype.
56185 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56188 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56190 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56191 (getopt, etopt_long, getopt_long_only, _getopt_internal)
56192 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56194 * lib/getopt.c (const): Remove macro.
56195 Include <string.h> unconditionally.
56196 (my_index): Remove; all uses changed to strchr.
56197 (strlen): Remove decl.
56198 (exchange): Remove forward decl; no longer needed.
56199 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56200 Define with prototype.
56201 * lib/getopt1.c (const): Remove macro.
56202 (getopt_long, getopt_long_only, main): Define with prototype.
56204 * lib/getugroups.c: Include <string.h> unconditionally.
56206 * lib/getusershell.c: Include <stdlib.h> unconditionally.
56207 (getusershell, setusershell, endusershell, readname, main):
56208 Define with prototypes.
56210 * lib/group-member.c: Include group-member.h first.
56211 Include <stdlib.h> unconditionally.
56213 * lib/hard-locale.c: Include hard-locale.h first.
56214 Include <stdlib.h>, <string.h> unconditionally.
56216 * lib/hash.c (free, malloc): Remove decls.
56217 Include <stdlib.h> unconditionally.
56219 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56220 (getenv): Do not declare.
56222 * lib/idcache.c: Include <string.h> unconditionally.
56224 * lib/long-options.c: Include long-options.h first, to test interface.
56225 Include <stdlib.h> unconditionally.
56227 * lib/makepath.c: Include makepath.h first, to test interface.
56228 Include <stdlib.h> and <string.h> unconditionally.
56230 * lib/linebuffer.c: Include <stdlib.h>.
56231 (free): Remove decl.
56233 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56234 stddef.h. rpl_malloc returns void *, not char *.
56235 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
56238 * lib/md5.h: Include <limits.h> unconditionally.
56239 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56240 (__P): Remove; all uses removed.
56241 * lib/md5.c: Include "md5.h" first.
56242 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56243 md5_buffer, md5_process_bytes, md5_process_block):
56244 Define with prototypes.
56245 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
56246 * lib/sha.c: Include "sha.h" first.
56247 Include <stdlib.h>, <string.h> unconditionally.
56249 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56250 * lib/memcmp.c (__ptr_t): Likewise.
56251 * lib/memrchr.c (__ptr_t): Likewise.
56252 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56253 Include <string.h> unconditionally.
56254 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56255 * lib/memchr.c: Include <stdlib.h> unconditionally.
56256 * lib/memchr.c (LONG_MAX): Remove.
56257 * lib/memrchr.c (LONG_MAX): Likewise.
56258 * lib/memchr.c (__memchr): Define via a prototype.
56259 * lib/memrchr.c (__memrchr): Likewise.
56260 * lib/memcmp.c (__P): Remove, and remove all uses.
56261 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56262 Remove forward decls; no longer needed.
56263 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56264 Use types required by C89 in prototype.
56266 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56267 * lib/savedir.c: Likewise.
56268 * lib/mkdir.c (free): Remove decl.
56269 * lib/rmdir.c (rmdir): Define with a prototype.
56270 * lib/savedir.c: Include savedir.h first, to test interface.
56272 * lib/mktime.c (STDC_HEADERS): Remove.
56273 Include <stdlib.h>, <string.h> unconditionally.
56275 * lib/modechange.c: Include <stdlib.h> unconditionally.
56276 (malloc): Remove decl.
56278 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56279 (free): Remove decl.
56281 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56282 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56283 (This type really should be intptr_t, but that's a C99ism.)
56284 (_obstack_memcpy): Remove: all uses changed to memcpy.
56285 Include <string.h> unconditionally.
56286 (struct obstack): Assume __STDC__ for types of members
56287 chunkfun, freefun, extra_arg.
56288 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56289 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56290 obstack_begin, obstack_specify_allocation,
56291 obstack_specify_allocation_with_arg, obstack_chunkfun,
56292 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56293 Remove unprototyped decls and the macros that use them.
56294 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56295 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56296 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56297 (defined __STDC__ && __STDC__)]:
56298 Remove nonprototyped code.
56299 Include <stdlib.h> unconditionally.
56300 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56301 _obstack_allocated_p, _obstack_free, obstack_free,
56302 _obstack_memory_used, print_and_abort):
56303 Define using prototypes.
56304 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56305 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56306 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56307 obstack_next_free, obstack_object_size, obstack_room) [0]:
56308 Remove unused, unprototyped code.
56310 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56312 * lib/physmem.c (physmem_total, physmem_available, main): Define
56315 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56316 (main): Define with a prototype.
56318 * lib/posixver.c (getenv): Remove decl.
56320 * lib/putenv.c (malloc): Returns void *, not char *.
56321 Include <string.h> unconditionally.
56322 (strchr, memcpy, NULL): Do not define.
56324 * lib/readtokens.c: Include readtokens.h first, to test interface.
56325 Include <stdlib.h>, <string.h> unconditionally.
56326 (init_tokenbuffer): Define with a prototype.
56328 * lib/regex.c (PARAMS): Remove. All uses removed.
56329 All uses of _RE_ARGS removed, too.
56330 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56332 (bzero): Assume memset exists.
56333 (memcmp, memcpy, NULL): Remove.
56334 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56335 char, or assignments to local vars of type signed char.
56336 (init_syntax_once, PREFIX(extract_number_and_incr),
56337 PREFIX(print_partial_compiled_pattern),
56338 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56339 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56340 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56341 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56342 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56343 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56344 wcs_compile_range, byte_compile_range, truncate_wchar,
56345 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56346 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56347 count_mbs_length, wcs_re_match_2_internal,
56348 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56349 PREFIX(alt_match_null_string_p),
56350 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56351 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56352 regfree, PREFIX(extract_number)): Define with prototype. Remove
56353 now-unnecessary declaration, if any.
56354 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56356 Remove now-unnecessary casts among pointer types.
56357 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56359 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56360 (free): Remove decl.
56362 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56364 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56365 (free): Remove decl.
56367 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56368 * lib/xgetcwd.c: Likewise.
56370 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56371 (free): Remove decl.
56373 * lib/strchrnul.c (strchrnul): Define with a prototype.
56374 Fix bug: c_in was not converted to char before searching.
56376 The following changes are not K&R related:
56378 * lib/group-member.h: Include <sys/types.h>, so that this file is
56380 * lib/makepath.h: Likewise.
56382 * lib/getusershell.c (readname, default_index, line_size, readname):
56383 Use size_t, not int, for sizes.
56384 (readname): If the size overflows, report an error instead of
56387 2003-09-09 Paul Eggert <eggert@twinsun.com>
56389 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56392 2003-09-09 Paul Eggert <eggert@twinsun.com>
56394 * README: New section: portability guidelines.
56396 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56398 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56401 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56403 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56405 2003-09-08 Paul Eggert <eggert@twinsun.com>
56407 Assume C89 or better; remove K&R cruft.
56408 A few of these changes were first proposed by Derek Robert Price
56409 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56411 * lib/addext.c: Include <string.h> unconditionally.
56412 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56413 Don't declare getenv or malloc.
56415 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56416 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56418 (find_stack_direction, alloca): Use prototypes.
56420 * lib/atexit.c (atexit): Define using a prototype.
56422 * lib/basename.c, dirname.c, stripslash.c:
56423 Include <string.h> unconditionally.
56425 * lib/bcopy.c: Include <stddef.h>.
56426 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56428 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56430 * lib/error.h (error, error_at_line, error_print_progname)
56431 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56432 * lib/error.c: Include error.h first, to check interface.
56433 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56434 (VA_START): Remove; all uses changeed to va_start.
56435 (exit, strerror): Remove decls.
56436 (error_print_progname): Prototype uncondionally.
56437 Don't include <errno.h>; no longer needed.
56438 (private_strerror): Remove.
56439 (error_tail): Always define.
56440 (error, error_at_line): Assume C89 or better; always use prototypes.
56441 * lib/fatal.c: Include "fatal.h" first, to test interface.
56442 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56443 (VA_START): Remove; all uses changed to va_start.
56444 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56446 (exit): Remove decl.
56447 (fatal): Prototype unconditionally. Assume va_start works.
56448 Abort at end, to pacify gcc.
56450 * lib/euidaccess.c (main): Define with a prototype.
56452 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56454 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56456 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56458 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56459 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56460 (getenv): Remove decl.
56461 (fnmatch): Define using a prototype.
56462 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56463 (FCT): Define using a prototype.
56465 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56467 * lib/gethostname.c: Include <stddef.h>.
56468 (gethostname): Define with prototype. Length is size_t, not int.
56470 2003-09-08 Paul Eggert <eggert@twinsun.com>
56472 Assume C89 or better; remove K&R cruft.
56473 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56474 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56475 string.h, getenv, malloc.
56476 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56478 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56479 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56480 do not check for strerror.
56481 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56482 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56483 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56484 do not check for doprnt or vprintf.
56485 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56486 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56488 2003-09-08 Paul Eggert <eggert@twinsun.com>
56490 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56491 getversion.c should have been removed then, but was accidentally
56494 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56495 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56497 2003-09-08 Karl Berry <karl@gnu.org>
56499 * config/config.sub, config.guess, srclistvars.sh: update from savannah
56500 config, forget about prep.
56502 * config/depcomp, missing: update from automake.
56504 2003-09-07 Paul Eggert <eggert@twinsun.com>
56506 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
56507 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56509 2003-09-07 Paul Eggert <eggert@twinsun.com>
56511 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56512 copy_tm_result. Bug reported by Simon Josefsson in
56513 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56515 2003-09-06 Paul Eggert <eggert@twinsun.com>
56517 * m4/time_r.m4: New file.
56518 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56519 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56520 is. Check for timegm declaration.
56521 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56522 Do not check for gmtime_r.
56523 Replace mktime if __mktime_internal does not exist and if mktime
56524 hasn't been replaced already.
56526 2003-09-06 Paul Eggert <eggert@twinsun.com>
56528 * lib/time_r.c, lib/time_r.h: New files.
56530 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56532 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
56533 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56535 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56537 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56538 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56539 Include <time_r.h>.
56541 * lib/timegm.c: Switch to glibc implementation, with the following
56543 [defined HAVE_CONFIG_H]: Include <config.h>.
56544 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56545 (__mktime_internal) [!defined _LIBC]: New decl.
56546 (__gmtime_r) [!defined _LIBC]: New macro and function.
56547 (timegm): Use a prototype, since gnulib assumes C89.
56548 Do not bother declaring tmp to be const, as it's not really usefu.
56549 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56550 (timegm): Declare only if HAVE_DECL_TIMEGM.
56552 2003-09-06 Paul Eggert <eggert@twinsun.com>
56554 * MODULES.html.sh (func_all_modules): Add time_r.
56555 * modules/time_r: New file.
56556 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56557 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
56559 2003-09-03 Paul Eggert <eggert@twinsun.com>
56561 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56562 Bug reported by Lute Kamstra in
56563 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56565 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56566 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
56567 course with correspondingly smaller numbers for tomorrow and
56568 yesterday. From Tadayoshi Funaba. Originally installed into
56569 sh-utils on 1999-08-07, but the patch got lost (I guess during the
56572 2003-08-31 Simon Josefsson <jas@extundo.com>
56574 * modules/timegm: New file.
56575 * MODULES.html.sh (func_all_modules): Add timegm.
56577 2003-08-31 Simon Josefsson <jas@extundo.com>
56579 * m4/timegm.m4: New file.
56581 2003-08-31 Simon Josefsson <jas@extundo.com>
56583 * lib/timegm.h: New file.
56584 * lib/timegm.c: New file. Based on
56585 wget-1.8.2/src/http.c:mktime_from_utc.
56587 2003-08-31 Karl Berry <karl@gnu.org>
56589 * lib/argp.h: update from libc.
56591 2003-08-28 Bruno Haible <bruno@clisp.org>
56593 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56594 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56595 followed by '#define fnmatch fnmatch_posix' gives an error.
56597 2003-08-28 Bruno Haible <bruno@clisp.org>
56599 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56600 warning on QNX, which defines O_BINARY to 000000.
56602 2003-08-27 Jim Meyering <jim@meyering.net>
56604 * m4/mkstemp.m4: Require that the system mkstemp be able to create
56605 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
56606 would fail after 32. Reported by Danny Levinson. Details here:
56607 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56609 2003-08-24 Bruno Haible <bruno@clisp.org>
56611 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56612 MSVC7 <stdio.h> is included later.
56614 2003-08-22 Simon Josefsson <jas@extundo.com>
56616 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56618 2003-08-20 Karl Berry <karl@gnu.org>
56620 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56622 2003-08-20 Bruno Haible <bruno@clisp.org>
56624 * modules/progname: New file.
56625 * MODULES.html.sh (func_all_modules): Add progname.
56627 2003-08-20 Bruno Haible <bruno@clisp.org>
56629 * lib/progname.h: New file, from GNU gettext.
56630 * lib/progname.c: New file, from GNU gettext.
56631 * lib/progreloc.c: New file, from GNU gettext.
56633 2003-08-19 Jim Meyering <jim@meyering.net>
56635 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56636 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56638 2003-08-19 Bruno Haible <bruno@clisp.org>
56640 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56643 2003-08-19 Bruno Haible <bruno@clisp.org>
56645 * lib/xstrdup.c: Assume <string.h> exists.
56647 2003-08-18 Paul Eggert <eggert@twinsun.com>
56649 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
56652 2003-08-18 Jim Meyering <jim@meyering.net>
56654 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56655 * m4/lib-ld.m4: Likewise.
56657 2003-08-18 Jim Meyering <jim@meyering.net>
56659 * lib/setenv.h: Indent nested cpp directive.
56660 * lib/vasnprintf.c: Remove trailing blanks.
56662 2003-08-17 Simon Josefsson <jas@extundo.com>
56664 * modules/xstrndup: New file.
56665 * MODULES.html.sh (func_all_modules): Add xstrndup.
56667 2003-08-17 Simon Josefsson <jas@extundo.com>
56669 * modules/argp: Fix autoconf macro name. Add more dependencies.
56671 2003-08-17 Simon Josefsson <jas@extundo.com>
56673 * m4/xstrndup.m4: New file.
56675 2003-08-17 Simon Josefsson <jas@extundo.com>
56677 * m4/argp.m4: New file.
56679 2003-08-17 Simon Josefsson <jas@extundo.com>
56680 Bruno Haible <bruno@clisp.org>
56682 * lib/xstrndup.h: New file.
56683 * lib/xstrndup.c: New file.
56685 2003-08-17 Bruno Haible <bruno@clisp.org>
56687 * modules/strndup (Files, Include): Add lib/strndup.h.
56689 2003-08-17 Bruno Haible <bruno@clisp.org>
56691 * modules/euidaccess (Files): Add lib/euidaccess.h.
56693 2003-08-17 Bruno Haible <bruno@clisp.org>
56695 * lib/strndup.h: New file.
56697 2003-08-17 Bruno Haible <bruno@clisp.org>
56699 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56700 like AC_GNU_SOURCE.
56701 * modules/extensions (configure.ac): Comment out the invocation of
56702 gl_USE_SYSTEM_EXTENSIONS.
56704 2003-08-16 Paul Eggert <eggert@twinsun.com>
56706 Merges from coreutils, etc.
56707 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56708 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
56709 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56711 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56712 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56714 2003-08-16 Paul Eggert <eggert@twinsun.com>
56716 Document merge from coreutils.
56717 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56718 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56719 * modules/utime: Add m4/utimes-null.m4.
56721 2003-08-16 Paul Eggert <eggert@twinsun.com>
56723 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56724 space, undoing this 2003-08-12 change:
56725 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56727 2003-08-16 Paul Eggert <eggert@twinsun.com>
56729 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56730 strtoul.c from libc, undoing this 2003-08-12 change:
56731 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56733 2003-08-16 Jim Meyering <jim@meyering.net>
56735 Merges from coreutils.
56736 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56737 prefix. Adjust cache variables similarly. Create 500 rather than
56738 just 300 files, to exercise bug on Darwin6.5, too.
56739 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56741 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56742 AM_SYS_POSIX_TERMIOS.
56743 Reported by mkc@mathdogs.com.
56744 Also change use of $am_cv_sys_posix_termios
56745 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
56746 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56747 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56748 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56749 in /proc/mounts until it finds one with matching device number. This
56750 is unnecessary when the FILE argument *is* a mount point. No stat call
56751 is necessary in that case. So, disable the statvfs-testing code on
56752 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
56753 as RedHat bug# 84846.
56754 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56755 to 1MB, so as not to render systems with no stack size limit (e.g.,
56756 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56757 Include <unistd.h>. On some systems,
56758 it is required for the definition of _SC_PAGESIZE.
56760 2003-08-16 Jim Meyering <jim@meyering.net>
56762 Merge from coreutils.
56763 * lib/xstrtoimax.c: #else #if -> #elif.
56764 * lib/xstrtoumax.c: Likewise.
56766 2003-08-16 Jim Meyering <jim@meyering.net>
56768 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56769 * m4/utimes.m4: Removed.
56770 * m4/utimes-null.m4: Renamed from utimes.m4.
56772 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56773 to 1MB, so as not to render systems with no stack size limit (e.g.,
56774 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56775 Include <unistd.h>. On some systems,
56776 it is required for the definition of _SC_PAGESIZE.
56778 2003-08-16 Jim Meyering <jim@meyering.net>
56779 and Paul Eggert <eggert@cs.ucla.edu>
56781 Merges from coreutils, etc.
56783 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56784 using the latest version from cvs. This avoids problems with #line
56785 directives using a vendor (Sun) compiler.
56786 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56787 Don't set GETGROUPS_LIB here; now it's
56788 done via getgroups.m4's wrapper function.
56789 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56790 rather than just in sh-util/configure.in, so that the
56791 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56793 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56794 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56795 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56796 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56797 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56798 Remove code that is now done by the newly-required macros.
56799 Append $(EXEEXT) to DF_PROG.
56800 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56801 Do not invoke or require the following here,
56802 since prereq.m4 or some gnulib .m4 now does this for us:
56803 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56804 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56805 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56806 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56807 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56808 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56809 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56811 Do not replace the following functions, as this is now the job
56812 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56813 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56814 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56815 atexit getpass, strdup, getpagesize.
56817 Do not check for the following functions, as this is now the job
56818 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56819 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56821 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56822 Check for sys/sysctl.h.
56823 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56824 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56825 of checking for ssize_t ourselves.
56827 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56828 Require every macro that gnulib/modules/* suggests for us.
56829 (jm_PREREQ_ADDEXT): New macro.
56830 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56831 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56833 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56834 (gl_PHYSMEM): Use it.
56835 Also check for `table' function.
56836 Check for new headers and functions.
56837 Add check for sys/sysmp.h.
56838 With suggestions from Kaveh Ghazi.
56839 Ignore headers that are present but cannot be compiled. This
56840 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56843 2003-08-15 Paul Eggert <eggert@twinsun.com>
56845 Document merge from coreutils.
56846 * modules/userspec: Depend on posixver.
56847 * modules/strftime: Depend on tzset.
56849 2003-08-15 Paul Eggert <eggert@twinsun.com>
56851 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56852 rather than tab, after '#' in shell-script copyright notices.
56853 Suggested by Bruno Haible.
56855 2003-08-15 Paul Eggert <eggert@twinsun.com>
56857 * config/srclist-update: Use three spaces, rather than tab, after '#'
56858 in shell-script copyright notices. Suggested by Bruno Haible.
56859 Remove unnecessary parenthesization in regular expression.
56861 2003-08-15 Jim Meyering <jim@meyering.net>
56863 Merge from coreutils.
56864 * lib/xgethostname.c: Include <stdlib.h>.
56865 (xghostname): Don't exit for anything other than memory-related
56866 failure; just return NULL.
56867 * lib/userspec.c: Include "posixver.h".
56868 (parse_user_spec): Accept `.' as a separator only
56869 in pre-POSIX-200112 mode.
56870 * lib/strtoimax.c: Use #elif rather than #else #if.
56871 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56872 Remove function, now that we can rely on a working tzset function.
56873 [!_LIBC]: Ensure that the required autoconf test has been run.
56874 [!defined _NL_CURRENT && HAVE_STRFTIME]:
56875 Use underlying_strftime for %r.
56876 * lib/sha.c: Merge in some clean-up and optimization changes from
56878 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56879 Ensure that it is a multiple of 64.
56880 Rearrange loop exit tests so as to avoid performing an
56881 additional fread after encountering an error or EOF.
56882 * lib/realloc.c: Update copyright date.
56884 2003-08-15 Jim Meyering <jim@meyering.net>
56885 and Paul Eggert <eggert@twinsun.com>
56887 Merge from coreutils.
56888 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56889 member but strut utmpx does not. Needed for AIX 4.3.3.
56890 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56892 2003-08-15 Jim Meyering <jim@meyering.net>
56893 and Paul Eggert <eggert@cs.ucla.edu>
56895 Merges from coreutils, etc.
56896 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56897 Require gl_FUNC_TZSET_CLOBBER.
56898 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56899 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56902 2003-08-14 Paul Eggert <eggert@twinsun.com>
56904 Help the merge from coreutils.
56905 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56906 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56907 * m4/tzset.m4: Use it too.
56909 2003-08-14 Paul Eggert <eggert@twinsun.com>
56911 * modules/tzset: New file.
56913 2003-08-14 Jim Meyering <jim@meyering.net>
56915 Merges from coreutils.
56916 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56917 variable names, rather than @FNMATCH_H@.
56918 * modules/alloca: Likewise for $(ALLOCA_H).
56920 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56921 the three copies of the literal target, `fnmatch.h'.
56922 * modules/alloca (alloca.h): Likewise.
56924 2003-08-14 Jim Meyering <jim@meyering.net>
56926 Merge from coreutils.
56927 * m4/tzset.m4: New file.
56928 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56929 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56930 otherwise, AIX 5.1 systems would end up using the latter.
56931 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56932 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
56933 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56934 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
56936 2003-08-14 Jim Meyering <jim@meyering.net>
56938 Merge from coreutils.
56939 * lib/obstack.h: Whitespace changes.
56940 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56941 and xcalloc return values.
56942 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56943 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
56944 hang on OSF/1 5.1 for DIR on both local and remote file systems.
56945 Reported by (and fix confirmed by) Nelson H. F. Beebe.
56946 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56948 Use mntctl's return value to drive the entry-processing loop, since
56949 we can't rely on the value of the vmt_length member in the last
56950 entry. On some systems doing so could result in exhausting
56951 virtual memory. Based in part on a patch from Mike Jetzer.
56953 2003-08-14 Jim Meyering <jim@meyering.net>
56954 and Paul Eggert <eggert@twinsun.com>
56956 Merges from coreutils, plus other fixes.
56957 * lib/physmem.c: Merge in portability changes from gcc/libiberty
56958 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
56959 for credits and details. Thanks to Kaveh Ghazi for helping
56960 to keep these files in sync.
56961 (ARRAY_SIZE): Define it.
56962 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56963 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56964 (memcasecmp): Don't assume size_t fits in unsigned int.
56965 Remove casts and duplicate code.
56966 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56967 (memcpy): Remove definition.
56968 Merge in some clean-up and optimization changes from glibc.
56969 [BLOCKSIZE]: Move definition to top of file.
56970 Ensure that it is a multiple of 64.
56971 Rearrange loop exit tests so as to avoid performing an
56972 additional fread after encountering an error or EOF.
56973 * lib/md5.h (md5_uintptr): Define.
56974 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56975 return to the initial working directory. Preserve errno
56977 * lib/idcache.c: Include "xalloc.h".
56978 (xmalloc, xrealloc): Remove decls.
56979 (getuser): Remove casts no longer required in C89.
56980 * lib/human.c: Include stdio.h, for sprintf.
56981 * lib/group-member.c: Include "xalloc.h".
56982 (xmalloc, xrealloc): Remove decls.
56983 (get_group_info): Remove casts no longer required in C89.
56984 * lib/getusershell.c (readname): Remove casts no longer required in
56986 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56987 * lib/getline.c: Whitespace fix, from coreutils.
56989 2003-08-13 Paul Eggert <eggert@twinsun.com>
56991 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56994 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56995 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56996 Undo previous (whitespace-only) change.
56998 2003-08-13 Paul Eggert <eggert@twinsun.com>
57000 * lib/exclude.c: Include <ctype.h>
57001 (IN_CTYPE_DOMAIN): New macro.
57002 (is_space): New fn.
57003 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57006 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57007 Undo previous (whitespace-only) change.
57009 2003-08-13 Paul Eggert <eggert@twinsun.com>
57011 * config/srclist-update: Change update back to the old behavior,
57012 leaving whitespace alone. Use one 'sed' command rather than a
57014 (fixlicense): Now a variable, not a function.
57015 (remove_trailing_blanks): Remove.
57016 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57017 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57018 Undo previous (whitespace-only) change.
57020 2003-08-12 Paul Eggert <eggert@twinsun.com>
57022 Merge from coreutils.
57023 * modules/euidaccess: Add lib_SOURCES, include for new
57026 2003-08-12 Paul Eggert <eggert@twinsun.com>
57028 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57029 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57030 Normalize leading white space and remove trailing white space.
57032 Merge from coreutils
57033 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57035 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57036 0.12.1. These files are now being upgraded automatically by
57037 ../config/srclist-update.
57039 2003-08-12 Paul Eggert <eggert@twinsun.com>
57041 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57042 Normalize leading white space and remove trailing white space.
57043 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57044 notice, as per ../config/srclist-update.
57046 Merge from coreutils.
57047 * lib/euidaccess.h: New file.
57048 * lib/euidaccess.c: Include it.
57049 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57050 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
57051 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57053 2003-08-12 Paul Eggert <eggert@twinsun.com>
57055 * config/srclist-update: Add copyright notice.
57056 (remove_id_lines, remove_trailing_blanks): New constants.
57057 (fixfile): Use them to normalize spacing a bit in copied files.
57058 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57059 Normalize leading white space and remove trailing white space.
57061 * config/texinfo.tex: Sync with texinfo.
57063 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57064 strtoul.c from libc, to merge coreutils whitespace changes.
57066 * config/srclist.txt: Get the following m4 files from gettext:
57067 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57068 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57069 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57072 2003-08-12 Karl Berry <karl@gnu.org>
57074 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57077 2003-08-11 Paul Eggert <eggert@twinsun.com>
57079 * modules/gnu-source, m4/gnu-source.m4:
57080 Remove; we're assuming Autoconf 2.54 or later now.
57081 Suggested by Bruno Haible.
57082 * MODULES.html.sh (func_all_modules): Remove gnu-source.
57084 2003-08-11 Bruno Haible <bruno@clisp.org>
57086 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57088 2003-08-11 Bruno Haible <bruno@clisp.org>
57090 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57091 (vasnprintf): Use it instead of wcslen.
57093 2003-08-11 Bruno Haible <bruno@clisp.org>
57095 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57096 value to ensure that _Bool promotes to int. Use #define for _Bool when
57097 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57099 2003-08-10 Karl Berry <karl@gnu.org>
57101 * lib/regex.h: update from libc (whitespace fix).
57103 2003-08-09 Paul Eggert <eggert@twinsun.com>
57105 Merge some files from coreutils. These changes were
57106 originally made by Jim Meyering.
57107 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57108 many older Unixes require this.
57109 * lib/alloca.c (alloca): Remove cast to argument of free;
57110 no longer needed in C89.
57111 * lib/alloca_.h, regex.h: Fix white space to match
57112 what GNU indent does.
57114 2003-08-09 Paul Eggert <eggert@twinsun.com>
57116 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57117 apparently Emacs's Unicode mode got confused before my 2003-08-05
57120 2003-08-08 Paul Eggert <eggert@twinsun.com>
57122 * m4/extensions.m4: New file.
57123 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57124 Require gl_USE_SYSTEM_EXTENSIONS.
57125 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57126 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57128 2003-08-08 Paul Eggert <eggert@twinsun.com>
57130 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57131 * modules/extensions, modules/gnu-source: New files.
57132 * modules/timespec, modules/unlocked-io: Depend on extensions.
57134 2003-08-07 Paul Eggert <eggert@twinsun.com>
57136 * modules/restrict: New file.
57137 * MODULES.html.sh (func_all_modules): Add restrict.
57138 * modules/regex: Depend on restrict.
57140 2003-08-07 Paul Eggert <eggert@twinsun.com>
57142 * m4/restrict.m4: New file.
57143 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57145 2003-08-07 Bruno Haible <bruno@clisp.org>
57147 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57148 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57150 2003-08-07 Bruno Haible <bruno@clisp.org>
57152 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57153 makes the module 'getndelim2' compatible with the module 'getline'.
57155 2003-08-05 Paul Eggert <eggert@twinsun.com>
57157 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57158 byte with "\201" to avoid glitches when editing that source file
57159 with multi-gnome-terminal.
57161 2003-08-05 Paul Eggert <eggert@twinsun.com>
57163 * lib/bumpalloc.h: Remove.
57165 2003-08-05 Paul Eggert <eggert@twinsun.com>
57167 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57168 * modules/bumpalloc: Remove.
57170 2003-08-04 Paul Eggert <eggert@twinsun.com>
57172 * lib/getloadavg.c: Change copyright notice and spacing to conform to
57175 Merge from coreutils.
57176 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57178 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57179 from Karl Berry, implemented by Jim Meyering.
57180 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57181 from Dmitry V. Levin.
57182 Remove anachronistic cast of xrealloc.
57183 * lib/fnmatch_.h (__const): Remove. Use 'const'.
57184 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57185 type. Otherwise, it wouldn't compile with at least /bin/cc on
57186 ymp-cray-unicos9.0.2.X.
57187 Combine two mostly-identical uses of alloca into one.
57188 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57190 2003-08-04 Dave Love <d.love@dl.ac.uk>
57194 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
57195 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
57196 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57197 obsolete NLIST_NAME_UNION.
57198 [__GNU__]: Undef BSD and FSCALE.
57199 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57201 2003-08-03 Paul Eggert <eggert@twinsun.com>
57203 * lib/stdbool_.h (_Bool): Make it signed char, instead of
57204 an enum type, so that it's guaranteed to promote to int. See:
57205 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57207 2003-08-03 Karl Berry <karl@gnu.org>
57209 * config/depcomp: update from automake.
57211 2003-07-31 Paul Eggert <eggert@twinsun.com>
57213 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
57214 (strerror): Don't assume that a printable int fits in 14 bytes.
57216 2003-07-31 Bruno Haible <bruno@clisp.org>
57218 * modules/getpass-gnu: New file.
57219 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57221 2003-07-31 Bruno Haible <bruno@clisp.org>
57223 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57225 2003-07-24 Karl Berry <karl@gnu.org>
57227 * config/missing: update from automake.
57229 2003-07-24 Derek Robert Price <derek@ximbiot.com>
57230 Bruno Haible <bruno@clisp.org>
57232 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57233 * lib/getline.c (getline, getdelim): Likewise.
57234 Remove _GNU_SOURCE define; now it's defined in config.h through
57237 2003-07-23 Karl Berry <karl@gnu.org>
57239 * config/config.sub: update from prep.
57241 2003-07-22 Paul Eggert <eggert@twinsun.com>
57243 * modules/xalloc (Depends-on): Add exitfail.
57244 * modules/xmemcoll: Likewise.
57246 2003-07-22 Paul Eggert <eggert@twinsun.com>
57248 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57249 over-parenthesization in macros.
57251 Sync with coreutils.
57253 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57256 Use `exit_failure' for xalloc and xmemcoll instead of their own
57257 private exit-failure variables.
57258 * lib/xalloc.h (xalloc_exit_failure): Remove.
57259 * lib/xmalloc.c: Likewise. Include exitfail.h.
57260 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57261 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57262 * lib/xmemcoll.c: Likewise. Include exitfail.h.
57263 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57265 2003-07-20 Jim Meyering <jim@meyering.net>
57267 * modules/closeout (Depends-on): Add exitfail.
57268 Suggestion from Bruno Haible.
57270 2003-07-19 Karl Berry <karl@gnu.org>
57272 * config/config.sub: update from prep.
57274 2003-07-18 Paul Eggert <eggert@twinsun.com>
57276 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57278 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57279 to test that it can stand by itself. Include "exitfail.h".
57280 Clients should set exit_failure instead.
57281 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57283 2003-07-18 Bruno Haible <bruno@clisp.org>
57285 * modules/getndelim2: New file.
57286 * modules/getline: Share files with module getndelim2.
57287 * modules/getnline: Depend on getndelim2 instead of sharing files with
57288 it. Add getnline.c to lib_SOURCES.
57289 * MODULES.html.sh (func_all_modules): Add getndelim2.
57291 2003-07-18 Bruno Haible <bruno@clisp.org>
57293 * m4/getndelim2.m4: New file.
57294 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57295 invoke gl_PREREQ_GETNDELIM2.
57296 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57297 gl_PREREQ_GETNDELIM2.
57298 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57301 2003-07-18 Bruno Haible <bruno@clisp.org>
57303 * lib/getndelim2.h: New file.
57304 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57306 (getndelim2): Make non-static. Change return type to ssize_t.
57307 * lib/getline.h: Change argument names.
57308 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57309 * lib/getnline.c: Include getndelim2.h.
57311 2003-07-18 Andreas Schwab <schwab@suse.de>
57313 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57315 2003-07-17 Karl Berry <karl@gnu.org>
57317 * config/config.sub: update from prep.
57319 2003-07-17 Bruno Haible <bruno@clisp.org>
57321 * modules/getnline: New file.
57322 * modules/getline: Add lib/getndelim2.c to source file list.
57323 * MODULES.html.sh (func_all_modules): Add getnline.
57325 2003-07-17 Bruno Haible <bruno@clisp.org>
57327 * m4/getnline.m4: New file.
57329 2003-07-17 Bruno Haible <bruno@clisp.org>
57331 * m4/Makefile.am.in: Remove file.
57332 * m4/Makefile.am: Remove file.
57333 * m4/Makefile.in: Remove file.
57335 2003-07-17 Bruno Haible <bruno@clisp.org>
57337 * lib/getnline.h: New file.
57338 * lib/getnline.c: New file.
57339 * lib/getndelim2.c: New file, extracted from getline.c.
57340 (getndelim2): Renamed from getdelim2, with added nmax argument.
57341 * lib/getline.c: Include getndelim2.c.
57342 (getdelim2): Moved out to getndelim2.c.
57343 (getline, getdelim): Update.
57345 2003-07-17 Bruno Haible <bruno@clisp.org>
57347 * lib/Makefile.am: Remove file.
57348 * lib/Makefile.in: Remove file.
57350 2003-07-17 Bruno Haible <bruno@clisp.org>
57352 * configure.in: Remove file.
57353 * Makefile.in: Remove file.
57355 2003-07-17 Bruno Haible <bruno@clisp.org>
57357 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57359 2003-07-16 Karl Berry <karl@gnu.org>
57361 * config/srclist-update: was running fixlicense twice, which caused
57362 texinfo.tex to be nullified for some reason. Simplify,
57363 $gplsrc is no longer needed as far as I can see?
57365 2003-07-16 Jim Meyering <jim@meyering.net>
57367 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57369 2003-07-15 Paul Eggert <eggert@twinsun.com>
57371 * config/srclist.txt: Get the following files from gettext-runtime/intl
57372 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57373 ref-del.sin. From Bruno Haible.
57374 * config/srclist-update (fixfile): Change grep pattern again, since the
57375 previous fix didn't work (there was another trailing $). Use
57376 '[$]' to escape the $s.
57378 2003-07-15 Karl Berry <karl@gnu.org>
57380 * lib/vasnprintf.c: update from gettext.
57382 2003-07-15 Karl Berry <karl@gnu.org>
57384 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57385 gets expanded when surrounded by '$'.
57387 2003-07-15 Jim Meyering <jim@meyering.net>
57389 * modules/save-cwd: Don't depend on error. From Derek Price.
57391 2003-07-15 Jim Meyering <jim@meyering.net>
57393 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57395 2003-07-14 Simon Josefsson <jas@extundo.com>
57397 * modules/mempcpy: New file.
57398 * MODULES.html.sh (func_all_modules): Add mempcpy.
57400 2003-07-14 Simon Josefsson <jas@extundo.com>
57402 * m4/mempcpy.m4: New file.
57404 2003-07-14 Simon Josefsson <jas@extundo.com>
57406 * lib/mempcpy.h: New file.
57407 * lib/mempcpy.c: New file.
57409 2003-07-14 Paul Eggert <eggert@twinsun.com>
57411 * modules/getdate, modules/posixtm: Depend on mktime.
57413 2003-07-14 Paul Eggert <eggert@twinsun.com>
57415 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57416 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57417 unicodeio.c, unicodeio.h, unlocked-io.h:
57418 Switch from LGPL to GPL.
57420 2003-07-14 Paul Eggert <eggert@twinsun.com>
57422 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57423 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57424 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57425 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57426 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57427 updated automatically by ../config/srclist-update. This changes
57428 their license from LPGL to GPL.
57430 2003-07-14 Paul Eggert <eggert@twinsun.com>
57432 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57433 assumed to refer to the root of the most recent stable gettext version.
57434 * config/srclistvars.sh: Add defaults for eggert.
57435 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57436 Match "This program" as well as "The program". This is needed
57439 2003-07-14 Jim Meyering <jim@meyering.net>
57441 Don't emit diagnostics. Let callers do that.
57442 * lib/save-cwd.c: Don't include "error.h".
57443 (save_cwd): Don't call error. Ensure that errno is valid
57444 when returning nonzero.
57446 * lib/save-cwd.h (restore_cwd): Update prototype.
57447 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57448 Simplify. Don't call error upon failure. Let callers do that.
57449 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57450 when auditing is enabled. But don't bother updating the #if.
57452 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57454 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57455 it breaks C++ compilation.
57456 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57458 2003-07-10 Simon Josefsson <jas@extundo.com>
57460 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57462 2003-07-10 Jim Meyering <jim@meyering.net>
57464 * m4/clock_time.m4: Remove trailing blank.
57465 * m4/intmax_t.m4: Likewise.
57467 2003-07-10 Jim Meyering <jim@meyering.net>
57469 * lib/vasnprintf.c: Remove trailing blanks.
57470 Make cpp indentation consistent.
57472 2003-07-09 Paul Eggert <eggert@twinsun.com>
57474 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57475 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57476 Switch from LGPL to GPL.
57478 2003-07-09 Paul Eggert <eggert@twinsun.com>
57480 * config/srclist.txt: Sort sublists. Add
57481 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57482 that differ from gnulib for one reason or another; we'd like this list
57483 to be smaller but for now let's document what we have.
57485 2003-07-08 Paul Eggert <eggert@twinsun.com>
57487 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57488 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
57489 and sweeter "eval x=$x".
57490 * config/srclist.txt: Get lib/argp* from glibc.
57492 2003-07-07 Paul Eggert <eggert@twinsun.com>
57494 * lib/mktime.c: Fix some boundary cases and remove need for floating
57497 Issue a compile-time diagnostic if time_t is floating point, or if
57498 two's complement arithmetic is not in effect, or if arithmetic
57499 right shift does not propagate the sign. These assumptions were
57500 all in the original code but they weren't checked.
57502 (TIME_T_MIDPOINT, verify): New macros.
57503 (__isleap): Remove; it has integer overflow problems.
57504 (leapyear): New function, without those problems.
57505 (ydhms_tm_diff): Remove; splitting into two parts.
57506 (ydhms_diff): New function, containing the arithmetic part of
57507 the old ydhms_tm_diff function. Issue a compile-time
57508 diagnostic if we are not using C99 integer division.
57509 Avoid casts when possible.
57510 (guess_time_tm): New function, containing the checking part of
57511 the old ydhms_tm_diff function. Return the new value, rather than
57512 the difference between it and the old. Accept a new argument T
57513 so that *T specifies the old value. Check for overflow in the result.
57515 (__mktime_internal): Use a time_t offset, not a long int offset.
57516 This undoes the 2003-06-04 change, which is no longer needed now
57517 that we have better overflow checking.
57518 (localtime_offset): Likewise.
57520 (__mktime_internal): Avoid harmful overflow on hosts where time_t
57521 and long are 64-bit but int is only 32-bit.
57522 (ydhms_diff): Use long int to store year1 and yday1.
57523 Issue a compile-time diagnostic if long int is not wide enough.
57525 (__mktime_internal): Use long int to store adjusted year and yday.
57526 Use plain C rather than preprocessor commands, if that doesn't
57528 Check for overflow (and try to repair) after each probe
57529 rather than checking only at the very end. This avoids some bugs
57530 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57531 does not equal GMT offset at maximum time).
57532 Use integer to check for overflow rather than floating point; this
57533 is more portable to non-IEEE hosts, and is a tad faster.
57534 When we detect that we are oscillating between two values,
57535 don't check whether tm_isdst has the requested value, since
57536 we already know the answer. When tm_isdst has the wrong value,
57537 use a different heuristic to find the right one, based on the
57538 extreme values actually observed in practice in tz2003a,
57539 rather than the (overly optimistic) "previous 3 calendar quarters".
57541 (not_equal_tm, print_tm, check_result): Use "const T" rather than
57542 "T const" to accommodate glibc style.
57543 (check_result): Use less-confusing report format. "long" -> "long int.
57545 Don't loop if the iteration overflows time_t.
57546 Allow a negative step in the iteration.
57548 2003-07-06 Karl Berry <karl@gnu.org>
57550 * config/depcomp: update from automake.
57551 * config/config.sub: update from prep.
57553 2003-07-03 Karl Berry <karl@gnu.org>
57555 * config/config.guess: update from prep.
57557 2003-07-01 Paul Eggert <eggert@twinsun.com>
57559 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57560 xreadlink.c now includes it unconditionally.
57562 2003-07-01 Paul Eggert <eggert@twinsun.com>
57564 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57565 having it depend on HAVE_SYS_TYPES_H.
57567 2003-07-01 Bruno Haible <bruno@clisp.org>
57569 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57570 <sys/types.h> should be sufficient.
57571 Reported by Paul Eggert.
57573 2003-06-26 Karl Berry <karl@gnu.org>
57575 * config/depcomp: update from automake.
57577 2003-06-26 Bruno Haible <bruno@clisp.org>
57579 * modules/human: Depend on module stdbool.
57581 2003-06-25 Bruno Haible <bruno@clisp.org>
57583 * modules/readlink: New file.
57584 * modules/xreadlink: Depend on it.
57585 * MODULES.html.sh (func_all_modules): Add readlink.
57587 2003-06-25 Bruno Haible <bruno@clisp.org>
57589 * m4/readlink.m4: New file.
57591 2003-06-25 Bruno Haible <bruno@clisp.org>
57593 * lib/readlink.c: New file.
57595 2003-06-22 Karl Berry <karl@gnu.org>
57597 * config/srclist.txt: update mkinstalldirs from automake.
57598 * config/mkinstalldirs: update.
57600 2003-06-22 Bruno Haible <bruno@clisp.org>
57602 Portability to mingw32.
57603 * m4/ssize_t.m4: New file, from GNU gettext.
57604 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57605 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57607 2003-06-22 Bruno Haible <bruno@clisp.org>
57609 * modules/safe-read: Add m4/ssize_t.m4.
57610 * modules/xreadlink: Add m4/ssize_t.m4.
57612 2003-06-20 Bruno Haible <bruno@clisp.org>
57614 Assume C89, so PARAMS isn't needed.
57615 * lib/unicodeio.h (PARAMS): Remove.
57616 * lib/unicodeio.c: Don't use PARAMS.
57618 2003-06-18 Karl Berry <karl@gnu.org>
57620 * config/config.{guess,sub}: update from prep.
57622 2003-06-18 Jim Meyering <jim@meyering.net>
57624 Merge changes from coreutils.
57625 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57626 Remove explicit declarations of xmalloc and realloc.
57628 (read_utmp): Remove anachronistic cast of xmalloc.
57630 2003-06-17 Paul Eggert <eggert@twinsun.com>
57632 Assume C89, so PARAMS isn't needed.
57633 * lib/backupfile.h (PARAMS): Remove. All uses removed.
57634 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57635 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57636 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57637 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57638 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57639 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57640 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57641 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57642 lib/xstrtod.h, lib/xstrtol.h: Likewise.
57643 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57644 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57645 no longer needed. Anyway, config.h should always be included before any
57648 2003-06-11 Simon Josefsson <jas@extundo.com>
57650 * modules/sysexits: New file.
57651 * MODULES.html.sh (func_all_modules): Add sysexits.
57653 2003-06-11 Simon Josefsson <jas@extundo.com>
57655 * lib/sysexit_.h: New file.
57657 2003-06-11 Derek Price <derek@ximbiot.com>
57659 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57662 2003-06-11 Bruno Haible <bruno@clisp.org>
57664 * m4/sysexits.m4: New file.
57666 2003-06-10 Simon Josefsson <jas@extundo.com>
57668 * lib/argp.h: New file, from glibc.
57669 * lib/argp-ba.c: New file, from glibc.
57670 * lib/argp-eexst.c: New file, from glibc.
57671 * lib/argp-fmtstream.c: New file, from glibc.
57672 * lib/argp-fmtstream.h: New file, from glibc.
57673 * lib/argp-fs-xinl.c: New file, from glibc.
57674 * lib/argp-help.c: New file, from glibc.
57675 * lib/argp-namefrob.h: New file, from glibc.
57676 * lib/argp-parse.c: New file, from glibc.
57677 * lib/argp-pv.c: New file, from glibc.
57678 * lib/argp-pvh.c: New file, from glibc.
57679 * lib/argp-xinl.c: New file, from glibc.
57681 2003-06-10 Simon Josefsson <jas@extundo.com>
57683 * modules/strchrnul: New file.
57685 2003-06-10 Simon Josefsson <jas@extundo.com>
57687 * modules/argp: New file.
57689 2003-06-10 Simon Josefsson <jas@extundo.com>
57691 * m4/strchrnul.m4: New file.
57693 2003-06-10 Simon Josefsson <jas@extundo.com>
57695 * lib/strchrnul.h: New file.
57696 * lib/strchrnul.c: New file.
57698 2003-06-10 Bruno Haible <bruno@clisp.org>
57700 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57702 2003-06-07 Karl Berry <karl@gnu.org>
57704 * config/config.{guess,sub}: update from prep.
57706 2003-06-07 Jim Meyering <jim@meyering.net>
57708 * modules/strtod: Use $(...) notation, not @...@ for
57709 AC_REPLACE'd variables.
57710 * modules/localcharset: Likewise.
57712 2003-06-07 Jim Meyering <jim@meyering.net>
57714 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57715 in place of my name in the copyright comment.
57716 Remove definition and uses of __P.
57719 * lib/stat.c: Don't declare xmalloc explicitly.
57720 Instead, include "xalloc.h".
57721 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57722 xrealloc, and xcalloc return values.
57723 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57725 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57727 2003-06-07 Bruno Haible <bruno@clisp.org>
57729 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57730 avoid AC_CONFIG_LINKS.
57731 * modules/fnmatch (Makefile.am): Use explicit creation rule for
57732 fnmatch.h, to avoid AC_CONFIG_LINKS.
57733 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57735 2003-06-07 Bruno Haible <bruno@clisp.org>
57737 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57738 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57739 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57741 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57742 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57745 2003-06-06 Jim Meyering <jim@meyering.net>
57747 Merge from coreutils.
57748 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57749 Consolidate declarations and initializations of *_base* locals.
57751 Merge from coreutils.
57752 This avoids a core dump on systems without GNU putenv,
57753 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57754 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57755 (unsetenv): New static function, from GNU libc.
57756 (rpl_putenv): Use it.
57758 * lib/modechange.c: Remove trailing blanks.
57760 Merge from coreutils.
57761 * lib/fsusage.c: Remove declaration of statfs.
57762 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57764 * lib/posixtm.c: Include <stdbool.h> unconditionally.
57766 2003-06-06 Jim Meyering <jim@meyering.net>
57768 * lib/stdbool_.h: Renamed from stdbool.h.in.
57770 2003-06-06 Jim Meyering <jim@meyering.net>
57771 Bruno Haible <bruno@clisp.org>
57773 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57774 Adjust Makefile.am snippet not to redirect directly to target.
57775 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57777 2003-06-05 Paul Eggert <eggert@twinsun.com>
57779 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57780 mismatch, look in future quarters as well as past. This fixes a
57781 bug when processing fall-backwards gaps immediately after a long
57782 period of daylight-saving time.
57784 * lib/mktime.c: Assume freestanding C89 or better.
57785 (HAVE_LIMITS_H): Remove. Assume it's 1.
57786 (__P): Remove; not used.
57787 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57788 (mktime, not_equal_tm, print_tm, check_result,
57789 main): Use prototypes. Use const * where appropriate.
57790 (main): Fix typo in testing code that uncovered by above changes.
57791 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57793 2003-06-04 Paul Eggert <eggert@twinsun.com>
57795 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57796 locale.h, localeconv. This merges changes from coreutils.
57798 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57799 It can be removed after the next Autoconf is released.
57800 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57803 2003-06-04 Paul Eggert <eggert@twinsun.com>
57805 * lib/mktime.c: Fix Debian bug 177940
57806 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57807 (localtime_offset): Now long int, not time_t, because we want it
57808 to be guaranteed to be signed. All uses changed.
57809 (__mktime_internal): If overflow would occur when adding offset,
57812 Merge 'human' changes from coreutils. Rewrite to support
57813 locale-specific notations like thousands separators.
57814 * lib/human.c: Simplify authorship notice.
57815 Include human.h immediately after config.h.
57816 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57817 <limits.h>: Do not include, since human.h does.
57818 (SIZE_MAX, UINTMAX_MAX): New macros.
57819 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57820 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57821 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57822 (power_letter): Renamed from suffixes.
57823 (generate_suffix_backwards): Remove.
57824 (adjust_value): Now takes int style (because of human.h changes)
57825 and long double value (for greater precision on some platforms).
57826 (group_number): New function.
57827 (human_readable): Use it. Use integer options, not enum.
57828 Put the options before the sizes in the arg list.
57829 Support all the new options.
57830 The old human_readable function has been removed;
57831 use inttostr.h instead.
57832 (human_readable, default_block_size, humblock):
57833 Use uintmax_t, not int, for block sizes.
57834 (human_readable_inexact, block_size_types): Remove.
57835 (block_size_opts): New constant.
57836 (human_options): Renamed from human_block_size, with new signature
57837 that allows block sizes up to UINTMAX_MAX. All callers changed.
57838 * lib/human.h: Add copyright and authorship notice.
57839 Include <limits.h> and <stdbool.h> unconditionally.
57840 (PARAMS): Remove. All uses removed.
57841 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57842 (enum human_inexact_style): Remove tag; now a nameless enum.
57843 (human_floor, human_ceiling, human_round_to_even): Now have
57844 values 2, 0, 1 rather than -1, 1, 0.
57845 (human_group_digits, human_suppress_point_zero, human_autoscale,
57846 human_base_1024, human_SI, human_B): New constants.
57847 (human_readable_inexact, human_block_size): Remove.
57848 (human_readable): Size args are now uintmax_t, not int.
57849 (human_options): New decl.
57851 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57852 unnecessary now that we assume C89 or better. This change
57853 imported from coreutils.
57855 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57856 arbitrarily. This is the same patch as 2003-05-28, but it got lost
57857 in the 2003-05-30 sync from glibc.
57859 .h files should stand alone, but we shouldn't include <sys/types.h>
57860 if we can get away with just <stddef.h>.
57862 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57863 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57864 rather than <sys/types.h>, as we merely need size_t.
57865 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57867 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57868 Include <stdio.h>, to get FILE.
57869 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57870 memcasecmp.h has included <stddef.h> and all we need is size_t.
57871 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57872 our interface, instead of including <sys/types.h>
57874 2003-06-04 Paul Eggert <eggert@twinsun.com>
57876 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57877 now, as glibc mktime is buggy on non-glibc systems.
57879 2003-06-03 Karl Berry <karl@gnu.org>
57881 * config/config.sub: update from prep.
57883 2003-06-02 Paul Eggert <eggert@twinsun.com>
57886 Fix some minor time-related bugs with POSIX time arguments.
57887 Some valid time stamps were being rejected (notably -1, and
57888 time stamps before 1900 on 64-bit hosts). And some invalid
57889 time stamps were being accepted, e.g. September 31.
57891 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57892 that we can return (time_t) -1 successfully.
57893 * lib/posixtm.c: Likewise.
57894 [HAVE_STDBOOL_H]: Include <stdbool.h>.
57895 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57896 (t): Remove static var.
57897 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57898 of static var. All uses changed.
57899 (year): Do not reject years before 1900; they can occur with
57901 (posix_time_parse): Do not check for out-of-range components;
57902 that is now the caller's responsibility, since our checks were
57903 only approximations.
57904 (posixtime): Use mktime to check for out-of-range components,
57905 since it knows them exactly.
57906 If mktime returns (time_t) -1, check whether an error actually occurred
57907 by invoking localtime on -1.
57908 (main) [TEST_POSIXTIME]: Check for input data errors, and report
57909 posixtime failures better.
57910 Improve the test data (in comments only).
57912 2003-06-02 Karl Berry <karl@gnu.org>
57914 * config/mkinstalldirs (version): new variable.
57915 (--version): new option.
57916 (usage): improve message.
57918 2003-05-30 Karl Berry <karl@gnu.org>
57920 * lib/mktime.c: update from libc.
57922 2003-05-30 Bruno Haible <bruno@clisp.org>
57924 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57925 * config/config.rpath: Upgrade to gettext-0.12.1.
57927 2003-05-30 Bruno Haible <bruno@clisp.org>
57929 * m4/gettext.m4: Upgrade to gettext-0.12.1.
57930 * m4/nls.m4: New file, from gettext-0.12.1.
57931 * m4/po.m4: New file, from gettext-0.12.1.
57932 * m4/progtest.m4: Upgrade to gettext-0.12.1.
57934 2003-05-30 Bruno Haible <bruno@clisp.org>
57936 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57937 * lib/localcharset.h: Likewise.
57938 * lib/localcharset.c: Likewise.
57940 2003-05-29 Karl Berry <karl@gnu.org>
57942 * config/config.rpath: update from gettext.
57944 2003-05-28 Paul Eggert <eggert@twinsun.com>
57946 Assume the headers required for C89 freestanding compilers.
57947 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57948 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57949 * m4/human.m4 (gl_HUMAN): Likewise.
57950 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57951 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57952 * m4/userspec.m4 (gl_USERSPEC): Likewise.
57953 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57954 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57955 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57957 2003-05-28 Paul Eggert <eggert@twinsun.com>
57959 Assume the headers required for C89 freestanding compilers.
57960 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57961 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57962 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57963 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57964 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57965 define, since <limits.h> is guaranteed to do that.
57966 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57967 * lib/exclude.c: Include <stdbool.h> unconditionally.
57968 * lib/tempname.c: Include <stddef.h> unconditionally.
57969 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57970 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57971 <stddef.h> does that.
57972 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57973 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57974 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57976 * lib/xstrtol.c: Likewise.
57977 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57978 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57980 * lib/addext.c (addext): Use assignment rather than cast, to avoid
57981 warnings on some platforms.
57983 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57986 2003-05-26 Jim Meyering <jim@meyering.net>
57988 Merge in a change from coreutils:
57989 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57990 that is guaranteed to be `no'. Use `no_such_member' to indicate
57991 that condition, rather than `-1' which is slightly misleading.
57992 Change the name of the cache variable to have the gl_ prefix.
57993 Prompted by a patch from Richard Dawe for DJGPP.
57995 2003-05-24 Karl Berry <karl@gnu.org>
57997 * config/config.guess: update from prep.
57999 2003-05-22 Karl Berry <karl@gnu.org>
58001 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58003 2003-05-20 Karl Berry <karl@gnu.org>
58005 * config/config.guess: update from prep.
58007 2003-05-18 Karl Berry <karl@gnu.org>
58009 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58010 might actually be set by the user.
58012 * config/depcomp, install-sh, mdate-sh: update from automake.
58014 2003-05-17 Bruno Haible <bruno@clisp.org>
58016 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58017 invalid expansion for AC_EGREP_CPP.
58018 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58019 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58020 Suggested by Akim Demaille <akim@epita.fr> in
58021 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58023 2003-05-12 Jim Meyering <jim@meyering.net>
58025 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58026 the space-padded-by-default conversion specifiers, %e, %k, %l.
58028 2003-05-12 Bruno Haible <bruno@clisp.org>
58030 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58031 the string is longer than 4 KB.
58033 2003-05-11 Karl Berry <karl@gnu.org>
58035 * config/config.{guess,sub}: update from prep.
58037 2003-05-09 Bruno Haible <bruno@clisp.org>
58039 * modules/error: Add m4/strerror_r.m4 to file list.
58041 2003-05-03 Bruno Haible <bruno@clisp.org>
58043 Upgrade to Unicode-4.0.
58044 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58045 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58046 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58047 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58048 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58049 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58050 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58051 Change width of U+E0100..U+E01EF from 1 to 0.
58053 2003-04-25 Jim Meyering <jim@meyering.net>
58055 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58056 of type size_t, not int.
58058 2003-04-25 Bruno Haible <bruno@clisp.org>
58060 * lib/copy-file.c: Include <stddef.h>, for size_t.
58062 2003-04-21 Paul Eggert <eggert@twinsun.com>
58064 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58065 code which expansion is under static control. Patch imported from
58066 Akim Demaille's patch to Bison; see
58067 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58069 2003-04-14 Bruno Haible <bruno@clisp.org>
58071 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58073 2003-04-11 Jim Meyering <jim@meyering.net>
58075 Merge changes from Coreutils.
58077 2003-03-22 Jim Meyering <jim@meyering.net>
58079 * lib/strftime.c (widen): Cast alloca return value to proper type.
58081 2003-01-19 Ulrich Drepper <drepper@redhat.com>
58084 * lib/strftime.c (my_strftime): Handle very large width
58085 specifications for numeric values correctly. Improve checks for
58088 2003-01-19 Jim Meyering <jim@meyering.net>
58090 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58092 (nl_get_alt_digit) [! defined my_strftime]: Define.
58093 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58094 _nl_get_alt_digit and _nl_get_walt_digit.
58096 * lib/strftime.c (my_strftime): Merge in locale-related changes from
58097 libc. These changes have no effect outside of _LIBC.
58099 2003-04-10 Bruno Haible <bruno@clisp.org>
58101 * modules/findprog: New file.
58102 * MODULES.html.sh (func_all_modules): Add it.
58104 2003-04-10 Bruno Haible <bruno@clisp.org>
58106 * m4/findprog.m4: New file.
58107 * m4/eaccess.m4: New file.
58109 2003-04-10 Bruno Haible <bruno@clisp.org>
58111 * lib/findprog.h: New file, from GNU gettext.
58112 * lib/findprog.c: New file, from GNU gettext.
58114 2003-04-05 Jim Meyering <jim@meyering.net>
58116 Merge changes from Coreutils.
58118 * lib/exclude.h (PARAMS): Remove definition and uses.
58119 * lib/exclude.c: Remove uses of `PARAMS'.
58121 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58122 Add test-cases for DOS filenames. Declare program_name.
58123 (main): Set up program_name. Patch by Rich Dawe.
58125 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58127 Use mntctl's return value to drive the entry-processing loop, since
58128 we can't rely on the value of the vmt_length member in the last
58129 entry. On some systems doing so could result in exhausting
58130 virtual memory. Based in part on a patch from Mike Jetzer.
58132 2003-04-04 Bruno Haible <bruno@clisp.org>
58134 * modules/linebreak: New file.
58135 * MODULES.html.sh (func_all_modules): Add it.
58137 2003-04-04 Bruno Haible <bruno@clisp.org>
58139 * m4/linebreak.m4: New file.
58141 2003-04-04 Bruno Haible <bruno@clisp.org>
58143 * lib/linebreak.h: New file, from GNU gettext.
58144 * lib/linebreak.c: New file, from GNU gettext with slight
58146 * lib/lbrkprop.h: New file, from GNU gettext.
58148 2003-04-03 Bruno Haible <bruno@clisp.org>
58150 * modules/utf8-ucs4: New file.
58151 * modules/utf16-ucs4: New file.
58152 * modules/ucs4-utf8: New file.
58153 * modules/ucs4-utf16: New file.
58154 * MODULES.html.sh (func_all_modules): Add them.
58156 2003-04-03 Bruno Haible <bruno@clisp.org>
58158 * m4/utf-ucs4.m4: New file.
58159 * m4/ucs4-utf.m4: New file.
58161 2003-04-03 Bruno Haible <bruno@clisp.org>
58163 * lib/utf8-ucs4.h: New file, from GNU gettext.
58164 * lib/utf16-ucs4.h: New file, from GNU gettext.
58165 * lib/ucs4-utf8.h: New file, from GNU gettext.
58166 * lib/ucs4-utf16.h: New file, from GNU gettext.
58168 2003-04-02 Bruno Haible <bruno@clisp.org>
58170 * modules/binary-io: New file.
58171 * MODULES.html.sh (func_all_modules): Add it.
58173 2003-04-02 Bruno Haible <bruno@clisp.org>
58175 * lib/binary-io.h: New file, from GNU gettext.
58177 2003-04-01 Bruno Haible <bruno@clisp.org>
58179 * modules/pathname: New file.
58180 * MODULES.html.sh (func_all_modules): Add it.
58182 2003-04-01 Bruno Haible <bruno@clisp.org>
58184 * lib/pathname.h: New file, from GNU gettext.
58185 * lib/concatpath.c: New file, from GNU gettext.
58187 2003-03-30 Bruno Haible <bruno@clisp.org>
58189 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58191 2003-03-30 Bruno Haible <bruno@clisp.org>
58193 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58194 function chown() doesn't exist.
58196 2003-03-28 Bruno Haible <bruno@clisp.org>
58198 * modules/copy-file: New file.
58199 * MODULES.html.sh (func_all_modules): Add it.
58201 2003-03-28 Bruno Haible <bruno@clisp.org>
58203 * m4/copy-file.m4: New file.
58205 2003-03-28 Bruno Haible <bruno@clisp.org>
58207 * lib/copy-file.h: New file, from GNU gettext.
58208 * lib/copy-file.c: New file, from GNU gettext.
58210 2003-03-18 Jim Meyering <jim@meyering.net>
58212 * lib/quote.c (quote_n): Fix typo in comment.
58214 2003-03-18 Bruno Haible <bruno@clisp.org>
58216 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58218 * m4/onceonly_2_57.m4: Likewise.
58220 2003-03-17 Bruno Haible <bruno@clisp.org>
58222 * m4/onceonly.m4: Require autoconf 2.54 or newer.
58223 (m4_quote): Remove macro.
58224 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58226 2003-03-14 Jim Meyering <jim@meyering.net>
58228 Merge changes from Coreutils.
58229 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58230 to be const, in order to avoid warnings.
58231 (obstack_room): Likewise.
58232 (obstack_empty_p): Likewise.
58234 2003-03-14 Bruno Haible <bruno@clisp.org>
58236 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58237 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58239 2003-03-13 Paul Eggert <eggert@twinsun.com>
58241 Merge changes from Bison.
58242 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58243 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58244 when compiling Bison 1.875's `bitset bset = obstack_alloc
58245 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
58246 * lib/hash.c: Include <stdbool.h> unconditionally.
58248 2003-03-13 Paul Eggert <eggert@twinsun.com>
58250 * m4/onceonly.m4 (m4_quote): New macro.
58251 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58252 Quote AC_FOREACH variable-expansions properly.
58254 2003-03-13 Paul Eggert <eggert@twinsun.com>
58256 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58258 2003-03-09 Paul Eggert <eggert@twinsun.com>
58260 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58261 Reported by Bruce Becker; see:
58262 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58264 2003-03-03 Paul Eggert <eggert@twinsun.com>
58265 Bruno Haible <bruno@clisp.org>
58267 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58268 Reported by John Hughes, see
58269 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58271 2003-02-20 Bruno Haible <bruno@clisp.org>
58273 * MODULES.html.sh (func_all_modules): Add poll.
58275 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58277 * modules/poll: New file.
58279 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58281 * lib/poll_.h: New file.
58282 * lib/poll.c: New file.
58284 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58286 * m4/poll.m4: New file.
58288 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58290 * modules/mathl: New file.
58292 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58294 * lib/mathl.h: New file.
58295 * lib/acosl.c: New file.
58296 * lib/asinl.c: New file.
58297 * lib/atanl.c: New file.
58298 * lib/ceill.c: New file.
58299 * lib/cosl.c: New file.
58300 * lib/expl.c: New file.
58301 * lib/floorl.c: New file.
58302 * lib/frexpl.c: New file.
58303 * lib/ldexpl.c: New file.
58304 * lib/logl.c: New file.
58305 * lib/sincosl.c: New file.
58306 * lib/sinl.c: New file.
58307 * lib/sqrtl.c: New file.
58308 * lib/tanl.c: New file.
58309 * lib/trigl.c: New file.
58310 * lib/trigl.h: New file.
58312 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58314 * m4/mathl.m4: New file.
58316 2003-02-18 Bruno Haible <bruno@clisp.org>
58318 * MODULES.html.sh (func_all_modules): Add mathl.
58320 2003-02-17 Bruno Haible <bruno@clisp.org>
58322 * modules/mkdtemp: New module.
58323 * MODULES.html.sh (func_all_modules): Add it.
58325 2003-02-17 Bruno Haible <bruno@clisp.org>
58327 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58329 2003-02-17 Bruno Haible <bruno@clisp.org>
58331 * lib/mkdtemp.h: New file, from GNU gettext.
58332 * lib/mkdtemp.c: New file, from GNU gettext.
58334 2003-02-02 Jim Meyering <jim@meyering.net>
58336 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58339 2003-01-31 Bruno Haible <bruno@clisp.org>
58341 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58343 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58345 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58347 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58350 2003-01-31 Bruno Haible <bruno@clisp.org>
58352 * lib/rename.c: #undef rename before defining rpl_rename.
58353 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58355 2003-01-30 Bruno Haible <bruno@clisp.org>
58357 * modules/vasnprintf, modules/vasprintf: New modules.
58358 * MODULES.html.sh (func_all_modules): Add them.
58360 2003-01-30 Bruno Haible <bruno@clisp.org>
58362 * m4/signed.m4: New file, from GNU gettext.
58363 * m4/longdouble.m4: New file, from GNU gettext.
58364 * m4/wchar_t.m4: New file, from GNU gettext.
58365 * m4/wint_t.m4: New file, from GNU gettext.
58366 * m4/vasnprintf.m4: New file.
58367 * m4/vasprintf.m4: New file.
58369 2003-01-30 Bruno Haible <bruno@clisp.org>
58371 * lib/printf-args.h: New file, from GNU gettext.
58372 * lib/printf-args.c: New file, from GNU gettext.
58373 * lib/printf-parse.h: New file, from GNU gettext.
58374 * lib/printf-parse.c: New file, from GNU gettext.
58375 * lib/vasnprintf.h: New file, from GNU gettext.
58376 * lib/vasnprintf.c: New file, from GNU gettext.
58377 * lib/asnprintf.c: New file, from GNU gettext.
58378 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58379 * lib/vasprintf.c: New file, from GNU gettext.
58380 * lib/asprintf.c: New file, from GNU gettext.
58382 2003-01-29 Bruno Haible <bruno@clisp.org>
58384 * modules/stpncpy: New module.
58385 * MODULES.html.sh (func_all_modules): Add it.
58387 2003-01-29 Bruno Haible <bruno@clisp.org>
58389 * m4/stpncpy.m4: New file.
58391 2003-01-29 Bruno Haible <bruno@clisp.org>
58393 * lib/stpncpy.h: New file, from GNU gettext with modifications.
58394 * lib/stpncpy.c: New file, from GNU gettext with modifications.
58396 2003-01-28 Bruno Haible <bruno@clisp.org>
58398 * modules/c-ctype: New module.
58399 * MODULES.html.sh (func_all_modules): Add it.
58401 2003-01-28 Bruno Haible <bruno@clisp.org>
58403 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58405 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58408 2003-01-27 Bruno Haible <bruno@clisp.org>
58410 * modules/xsetenv: New module.
58411 * MODULES.html.sh (func_all_modules): Add it.
58413 2003-01-27 Bruno Haible <bruno@clisp.org>
58415 * lib/xsetenv.h: New file, from GNU gettext.
58416 * lib/xsetenv.c: New file, from GNU gettext.
58418 2003-01-23 Jim Meyering <jim@meyering.net>
58420 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58421 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58423 2003-01-23 Bruno Haible <bruno@clisp.org>
58425 * modules/minmax: New module.
58426 * MODULES.html.sh (func_all_modules): Add it.
58428 2003-01-23 Bruno Haible <bruno@clisp.org>
58430 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58433 2003-01-22 Bruno Haible <bruno@clisp.org>
58435 * modules/exit: New module.
58436 * MODULES.html.sh (func_all_modules): Add it.
58438 2003-01-22 Bruno Haible <bruno@clisp.org>
58440 * lib/exit.h: New file, from GNU gettext.
58442 2003-01-19 Bruno Haible <bruno@clisp.org>
58444 * gnulib-tool: Recognize option --extract-maintainer.
58445 (func_get_maintainer): New function.
58446 * modules/*: Add Maintainer entry.
58448 2003-01-16 Jim Meyering <jim@meyering.net>
58450 * m4/regex.m4: The `regex' struct is both input and output.
58451 Initialize it before each use. Patch by Tim Waugh.
58453 2003-01-16 Bruno Haible <bruno@clisp.org>
58455 * MODULES.html.sh: Add a table of contents. Add the module name as
58456 leftmost column. Add hyperlinks.
58458 2003-01-15 Bruno Haible <bruno@clisp.org>
58460 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58462 2003-01-15 Bruno Haible <bruno@clisp.org>
58464 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58465 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58468 2003-01-15 Bruno Haible <bruno@clisp.org>
58470 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58472 2003-01-15 Bruno Haible <bruno@clisp.org>
58474 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58475 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58477 2003-01-14 Jim Meyering <jim@meyering.net>
58479 * lib/same.c (same_name): Tweak a comment.
58481 2003-01-14 Bruno Haible <bruno@clisp.org>
58483 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58484 when a string comparison is sufficient.
58486 2003-01-14 Bruno Haible <bruno@clisp.org>
58488 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58491 2003-01-14 Bruno Haible <bruno@clisp.org>
58493 * lib/hash-pjw.c: Add comment about low quality of this function.
58495 2003-01-13 Bruno Haible <bruno@clisp.org>
58497 * modules/stpcpy: Distribute lib/stpcpy.h.
58498 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58500 2003-01-13 Bruno Haible <bruno@clisp.org>
58502 * modules/*: Add a description.
58503 * modules/strpbrk: Fix Makefile.am snippet.
58504 * modules/strtoimax: Fix dependencies.
58505 * modules/strtoumax: Likewise.
58507 2003-01-13 Bruno Haible <bruno@clisp.org>
58509 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58510 * modules/alloca (Makefile.am): All object files depend on alloca.h.
58511 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58513 2003-01-13 Bruno Haible <bruno@clisp.org>
58515 * gnulib-tool (func_create_testdir): Store config/* files in the main
58517 * config.rpath: Move to ...
58518 * config/config.rpath: ... here.
58519 * modules/gettext: Contains config/config.rpath, not config.rpath.
58520 * modules/iconv: Likewise.
58522 2003-01-12 Paul Eggert <eggert@twinsun.com>
58524 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58525 to avoid collisions with libcurses and libreadline.
58527 * m4/getstr.m4: Remove.
58528 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58530 2003-01-12 Paul Eggert <eggert@twinsun.com>
58532 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58533 to avoid collisions with libcurses and libreadline.
58535 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58536 * lib/getstr.h, getstr.c: Remove.
58537 * lib/getline.c: Include "getline.h", to check interface.
58538 Move body of old getstr.c here: this defines MIN_CHUNK and
58539 declares getdelim2, which is renamed from getstr.
58540 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58542 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58544 * lib/linebuffer.h: Likewise.
58545 (readline): Remove backward-compatibility macro.
58547 2003-01-12 Paul Eggert <eggert@twinsun.com>
58549 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58550 to avoid collisions with libcurses and libreadline.
58552 * MODULES.html.sh: Remove getstr.
58553 * modules/getline: Depend on unlocked-io, not getstr.
58555 2003-01-12 Jim Meyering <jim@meyering.net>
58557 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
58559 2003-01-10 Bruno Haible <bruno@clisp.org>
58561 * modules/alloca: Change Makefile.am requirements. Simplify Include
58562 requirements. Add lib/alloca_.h to file list.
58564 2003-01-10 Bruno Haible <bruno@clisp.org>
58566 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58568 2003-01-10 Bruno Haible <bruno@clisp.org>
58570 * lib/alloca_.h: New file.
58571 * lib/getdate.y: Unconditionally include alloca.h.
58572 * lib/makepath.c: Likewise.
58573 * lib/setenv.c: Likewise.
58574 * lib/userspec.c: Likewise.
58576 2003-01-09 Karl Berry <karl@gnu.org>
58578 * MODULES.html.sh: include `dirname $0` in PATH, to find
58581 2003-01-09 Bruno Haible <bruno@clisp.org>
58583 * modules/stdbool: Change configure.ac, Makefile.am requirements.
58584 Simplify Include requirements. Add lib/stdbool.h.in to file list.
58586 2003-01-09 Bruno Haible <bruno@clisp.org>
58588 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58590 2003-01-09 Bruno Haible <bruno@clisp.org>
58592 * lib/stdbool.h.in: New file.
58594 2003-01-09 Bruno Haible <bruno@clisp.org>
58596 * gnulib-tool (func_all_modules): Ignore files ending in ~.
58597 * MODULES.html.sh: Likewise.
58599 2003-01-08 Jim Meyering <jim@meyering.net>
58601 * lib/full-write.c: Undefine and define-away `const' after inclusion
58602 of errno.h, not before. Suggestion from Bruno Haible.
58604 2003-01-08 Bruno Haible <bruno@clisp.org>
58606 * modules/full-read: Depend on full-write.
58608 2003-01-08 Bruno Haible <bruno@clisp.org>
58610 * lib/safe-read.c: Include specification header first, to ensure its
58612 * lib/full-write.c: Likewise.
58614 2003-01-07 Jim Meyering <jim@meyering.net>
58616 * lib/full-write.c: Rework so that it may serve to define full_read,
58618 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58620 2003-01-07 Bruno Haible <bruno@clisp.org>
58622 * lib/strtoimax.c: Include <stdint.h> as an alternative to
58624 * lib/xstrtol.h: Likewise.
58625 * lib/xstrtoimax.c: Likewise.
58626 * lib/xstrtoumax.c: Likewise.
58627 * lib/human.h: Likewise.
58629 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58630 on systems that have <inttypes.h> but not <stdint.h>.
58632 2003-01-07 Bruno Haible <bruno@clisp.org>
58634 * MODULES.html.sh: Add copyright notice.
58635 (missed_files): Omit CVS directory entries.
58636 (func_module): Make it work with sed-3.02.
58637 * MODULES.txt: Remove file.
58639 2003-01-06 Jim Meyering <jim@meyering.net>
58641 * lib/version-etc.c: Update year in translatable copyright string.
58643 2003-01-03 Karl Berry <karl@gnu.org>
58645 * config/config.{guess,sub}: update from prep.
58647 2003-01-02 Karl Berry <karl@gnu.org>
58649 * doc/COPYING.DOC: belatedly updated to 1.2.
58651 2003-01-01 Karl Berry <karl@gnu.org>
58653 * gnulib-tool (func_verify_module): report module name $module in
58654 error message, not $1.
58655 * gnulib-tool (create-testdir): don't complain if destdir couldn't
58656 be created, only if it doesn't exist.
58657 * gnulib-tool (last_checkin_date): don't expand the $Date here.
58659 2002-12-31 Paul Eggert <eggert@twinsun.com>
58661 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58663 2002-12-31 Paul Eggert <eggert@twinsun.com>
58665 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58666 memcmp if strcoll doesn't work.
58668 2002-12-31 Bruno Haible <bruno@clisp.org>
58670 * lib/utime.c (utime_null): No need to call ftruncate if the file was
58673 2002-12-31 Bruno Haible <bruno@clisp.org>
58675 * lib/memcoll.c (STRCOLL): New macro.
58678 2002-12-31 Bruno Haible <bruno@clisp.org>
58680 * lib/localcharset.h: New file.
58681 * lib/localcharset.c: Include it.
58682 * lib/unicodeio.c: Likewise.
58684 2002-12-31 Bruno Haible <bruno@clisp.org>
58686 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58687 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58689 2002-12-31 Bruno Haible <bruno@clisp.org>
58691 * lib/getline.h: Include <stddef.h>, for size_t.
58693 * lib/unicodeio.h: Include <stddef.h>, for size_t.
58694 * lib/unicodeio.c: Don't include <stddef.h>.
58696 2002-12-31 Bruno Haible <bruno@clisp.org>
58698 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58701 2002-12-24 Karl Berry <karl@gnu.org>
58703 * config/config.guess: update from prep.
58705 2002-12-24 Bruno Haible <bruno@clisp.org>
58707 General infrasructure.
58708 * m4/README: Rewritten.
58709 * m4/onceonly.m4: New file.
58710 * m4/onceonly_2_57.m4: New file.
58713 * m4/atexit.m4: New file.
58716 * m4/strtod.m4: New file.
58719 * m4/strtol.m4: New file.
58722 * m4/strtoul.m4: New file.
58725 * m4/memchr.m4: New file.
58728 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58729 (jm_FUNC_MEMCMP): Invoke it.
58732 * m4/memcpy.m4: New file.
58735 * m4/memmove.m4: New file.
58738 * m4/memset.m4: New file.
58741 * m4/strcspn.m4: New file.
58744 * m4/strpbrk.m4: New file.
58747 * m4/strstr.m4: New file.
58750 * m4/strerror.m4: New file.
58753 * m4/mktime.m4: Renamed from jm-mktime.m4.
58754 (gl_PREREQ_MKTIME): New macro.
58755 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58758 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58759 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58760 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58763 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58764 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58765 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58768 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58769 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58770 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58772 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58775 * m4/xalloc.m4: New file.
58778 * m4/alloca.m4: New file.
58781 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58782 (jm_FUNC_PUTENV): Invoke it.
58785 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58786 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58787 when invoked twice.
58788 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58792 * m4/memrchr.m4: New file.
58795 * m4/stpcpy.m4: New file.
58798 * m4/strcase.m4: New file.
58801 * m4/strdup.m4: New file.
58804 * m4/strnlen.m4: New file.
58807 * m4/strndup.m4: New file.
58810 * m4/xstrtod.m4: New file.
58813 * m4/xstrtol.m4: New file.
58816 * m4/getdate.m4: New file.
58818 Module unlocked-io.
58819 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58820 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58821 * m4/jm-glibc-io.m4n: Remove file.
58823 Module long-options.
58824 * m4/long-options.m4: New file.
58827 * m4/md5.m4: New file.
58830 * m4/sha.m4: New file.
58833 * m4/getstr.m4: New file.
58836 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58837 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58838 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58839 simply getline. Infoke gl_PREREQ_GETLINE.
58842 * m4/obstack.m4: New file.
58845 * m4/hash.m4: New file.
58848 * m4/readtokens.m4: New file.
58851 * m4/strverscmp.m4: New file.
58854 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58858 * m4/strtoll.m4: New file.
58861 * m4/strtoull.m4: New file.
58864 * m4/strtoimax.m4: New file.
58867 * m4/strtoumax.m4: New file.
58870 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58871 jm_AC_PREREQ_XSTRTOIMAX.
58872 Moved the strtol prerequisites to strtol.m4.
58873 Moved the strtoll prerequisites to strtoll.m4.
58874 Moved the strtoimax prerequisites to strtoimax.m4.
58877 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58878 jm_AC_PREREQ_XSTRTOUMAX.
58879 Moved the strtoul prerequisites to strtoul.m4.
58880 Moved the strtoull prerequisites to strtoull.m4.
58881 Moved the strtoumax prerequisites to strtoumax.m4.
58884 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58885 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58888 * m4/dup2.m4: New file.
58891 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58892 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58895 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58896 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58898 Module gettimeofday.
58899 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58900 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58901 gl_PREREQ_GETTIMEOFDAY.
58904 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58905 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58908 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58909 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58910 jm_AC_TYPE_UINTMAX_T.
58911 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58914 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58915 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58918 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58919 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58922 * m4/timespec.m4 (gl_TIMESPEC): New macro.
58923 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58924 * m4/st_mtim.m4: Indentation.
58927 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58928 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58929 gl_PREREQ_NANOSLEEP.
58932 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58933 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58934 (gl_REGEX): New macro.
58937 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58938 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58941 * m4/rmdir.m4: New file.
58944 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58945 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58946 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58949 * m4/dirname.m4: New file.
58952 * m4/getopt.m4: New file.
58954 Module unistd-safer.
58955 * m4/unistd-safer.m4: New file.
58958 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58960 (gl_PREREQ_FNMATCH_EXTRA): New macro.
58961 (gl_FUNC_FNMATCH_POSIX): New macro.
58962 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58963 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58967 * m4/exclude.m4: New file.
58970 * m4/human.m4: New file.
58976 * m4/backupfile.m4: New file.
58977 * m4/d-ino.m4: Indentation.
58980 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58981 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58982 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58985 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58989 * m4/euidaccess.m4: New file.
58992 * m4/file-type.m4: New file.
58995 * m4/fileblocks.m4: New file.
58998 * m4/filemode.m4: New file.
59001 * m4/isdir.m4: New file.
59004 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59005 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59008 * m4/makepath.m4: New file.
59011 * m4/modechange.m4: New file.
59014 * m4/mountlist.m4: New file.
59015 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59018 Module path-concat.
59019 * m4/path-concat.m4: New file.
59022 * m4/pathmax.m4: New file.
59025 * m4/same.m4: New file.
59028 * m4/save-cwd.m4: New file.
59031 * m4/savedir.m4: New file.
59034 * m4/xgetcwd.m4: New file.
59035 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59038 * m4/xreadlink.m4: New file.
59041 * m4/safe-read.m4: New file.
59044 * m4/safe-write.m4: New file.
59047 * m4/closeout.m4: New file.
59049 Module stdio-safer.
59050 * m4/stdio-safer.m4: New file.
59053 * m4/getpass.m4: New file.
59056 * m4/getugroups.m4: New file.
59058 Module group-member.
59059 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59060 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59063 * m4/idcache.m4: New file.
59066 * m4/userspec.m4: New file.
59069 * m4/clock_time.m4: New file.
59070 * m4/gettime.m4: New file.
59073 * m4/settime.m4: New file.
59076 * m4/posixtm.m4: New file.
59078 Module gethostname.
59079 * m4/gethostname.m4: New file.
59082 * m4/canon-host.m4: New file.
59085 * m4/codeset.m4: New file, from gettext-0.11.5.
59086 * m4/gettext.m4: New file, from gettext-0.11.5.
59087 * m4/glibc21.m4: New file, from gettext-0.11.5.
59088 * m4/iconv.m4: New file, from gettext-0.11.5.
59089 * m4/intdiv0.m4: New file, from gettext-0.11.5.
59090 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59091 * m4/inttypes.m4: New file, from gettext-0.11.5.
59092 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59093 * m4/isc-posix.m4: New file, from gettext-0.11.5.
59094 * m4/lcmessage.m4: New file, from gettext-0.11.5.
59095 * m4/lib-ld.m4: New file, from gettext-0.11.5.
59096 * m4/lib-link.m4: New file, from gettext-0.11.5.
59097 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59098 * m4/progtest.m4: New file, from gettext-0.11.5.
59099 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59100 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59101 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59103 Module localcharset.
59104 * m4/localcharset.m4: New file.
59106 Module hard-locale.
59107 * m4/hard-locale.m4: New file.
59110 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59112 * m4/mbrtowc.m4: Add comment.
59115 * m4/memcasecmp.m4: New file.
59118 * m4/memcoll.m4: New file.
59121 * m4/unicodeio.m4: New file.
59124 * m4/rpmatch.m4: New file.
59127 * m4/yesno.m4: New file.
59130 * m4/exitfail.m4: New file.
59133 * m4/c-stack.m4 (gl_C_STACK): New macro.
59134 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59137 * m4/error.m4 (gl_ERROR): New macro.
59138 (jm_PREREQ_ERROR): Use onceonly macros.
59141 * m4/fatal.m4: New file.
59144 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59145 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59147 Module getpagesize.
59148 * m4/getpagesize.m4: New file.
59150 Module getusershell.
59151 * m4/getusershell.m4: New file.
59154 * m4/physmem.m4: New file.
59157 * m4/posixver.m4: New file.
59160 * m4/quotearg.m4: New file.
59163 * m4/quote.m4: New file.
59166 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59169 * m4/sig2str.m4: New file.
59172 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59174 * m4/intmax_t.m4: New file.
59175 * m4/d-type.m4: Indentation.
59176 * m4/jm-macros.m4: Update.
59177 * m4/prereq.m4 (jm_PREREQ): Update.
59178 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59179 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59180 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59181 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59182 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59183 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59184 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59185 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59186 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59187 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59188 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59189 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59190 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59191 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59192 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59193 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59194 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59195 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59196 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59198 2002-12-24 Bruno Haible <bruno@clisp.org>
59200 * MODULES.txt: Update according to m4/ changes.
59203 * config.rpath: New file, from gettext-0.11.5.
59205 * modules/*: New module descriptions.
59206 * gnulib-tool: New file.
59207 * MODULES.html.sh: New file.
59209 2002-12-21 Karl Berry <karl@gnu.org>
59211 * doc/fdl.texi: update to version 1.2.
59213 2002-12-19 Karl Berry <karl@gnu.org>
59215 * config/config.guess: update from prep.
59217 2002-12-18 Bruno Haible <bruno@clisp.org>
59219 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59220 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59222 2002-12-17 Bruno Haible <bruno@clisp.org>
59224 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59225 stdlib.h, string.h.
59227 2002-12-17 Bruno Haible <bruno@clisp.org>
59229 * lib/canon-host.c (strdup): Remove unused declaration.
59231 * lib/fsusage.c: Include full_read.h.
59232 (get_fs_usage): Use full_read instead of safe_read.
59234 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59236 2002-12-12 Karl Berry <karl@gnu.org>
59238 * config/config.guess: update from prep.
59240 2002-12-11 Bruno Haible <bruno@clisp.org>
59242 * m4/setenv.m4: New file, from gettext-0.11.5.
59244 2002-12-11 Bruno Haible <bruno@clisp.org>
59246 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59248 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59251 2002-12-11 Bruno Haible <bruno@clisp.org>
59253 * setenv.c (alloca): Fall back to malloc.
59254 (freea): New macro.
59255 (setenv): Use freea() to free memory allocated with alloca().
59257 2002-11-13 Bruno Haible <bruno@clisp.org>
59259 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59260 function declarations.
59261 * unsetenv.c (unsetenv): Likewise.
59263 2002-03-04 Bruno Haible <bruno@clisp.org>
59265 Portability to AIX 4.3.3.
59266 * unsetenv.c: New file, extracted from setenv.c.
59267 * setenv.c: Move the unsetenv() function to unsetenv.c.
59269 2001-12-20 Bruno Haible <bruno@clisp.org>
59271 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59272 use malloc instead. For SunOS 4.
59274 2001-12-11 Bruno Haible <bruno@clisp.org>
59276 * setenv.c: Declare alloca.
59277 (compar_fn_t): New typedef.
59278 (KNOWN_VALUE, STORE_VALUE): Use it.
59280 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59283 2002-12-10 Paul Eggert <eggert@twinsun.com>
59285 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59286 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59287 Choose values that are less likely to collide with system fnmatch
59289 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59290 defined (e.g., a pure POSIX system).
59291 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59292 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59294 2002-12-06 Paul Eggert <eggert@twinsun.com>
59296 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59297 a pain in practice to deal with generated m4 files. This change
59298 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59300 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59301 and jm-glibc-io.m4, as they are no longer a special case.
59302 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59303 kludge and the auto-generation stuff. Check only whether the
59304 functions are declared, not whether they exist, since older hosts
59305 that don't declare the functions can't use the optimization anyway.
59307 2002-12-06 Jim Meyering <jim@meyering.net>
59309 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59311 Merge in changes from libc's misc/error.c, in preparation
59312 for the merge of gnulib's changes back into libc.
59314 * lib/error.c (_): Define only if not already defined.
59315 Move definition to follow all #include directives.
59316 Include unlocked-io.h only if !_LIBC.
59317 [_LIBC]: Include <libio/libioP.h>.
59318 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59319 (fflush): Tweak definition to use INTUSE.
59322 2002-12-05 Paul Eggert <eggert@twinsun.com>
59324 * lib/alloca.c [defined emacs]: Include "lisp.h".
59325 (xalloc_die) [defined emacs]: New macro.
59326 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59327 [! defined emacs]: Include <xalloc.h>.
59328 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59329 (pointer): Typedef to POINTER_TYPE *.
59330 (malloc): Remove decl; we now always use xmalloc.
59331 (alloca): Use old-style definition, since Emacs needs this.
59332 Check for arithmetic overflow when computing combined size.
59334 2002-12-04 Paul Eggert <eggert@twinsun.com>
59336 Do not generate unlocked-io.h automatically, since it's easier to
59337 maintain it by hand.
59339 * lib/unlocked-io.h: New file, from GNU diffutils,
59340 but with proper copyright notice and attribution.
59341 * lib/gen-uio: Remove.
59342 * lib/Makefile.am: Add copyright notice.
59343 (libfetish_a_SOURCES): Add unlocked-io.h.
59344 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59345 (DISTCLEANFILES, io_functions): Remove macros.
59346 (EXTRA_DIST): Remove gen_uio.
59347 (unlocked-io.h): Remove rule.
59349 2002-12-04 Jim Meyering <jim@meyering.net>
59351 Reflect the fact that stat.c and lstat.c are no longer generated.
59352 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59353 (DISTCLEANFILES): Likewise.
59354 (EXTRA_DIST): Likewise.
59355 (all_local): Don't depend on stat.c or lstat.c.
59356 (stat.c, lstat.c): Remove rules.
59357 (EXTRA_DIST): Remove xstat.in.
59359 * lib/xstat.in: Remove file. Contents moved into stat.c.
59360 * lib/stat.c: New file. Contents mostly from xstat.in.
59361 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59362 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59364 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59366 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59368 2002-12-03 Jim Meyering <jim@meyering.net>
59370 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59371 but not semantics, to minimize the differences between these two files.
59372 (safe_read): Change comment to mention SAFE_READ_ERROR.
59374 * lib/safe-read.c (IS_EINTR): Define.
59375 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59377 2002-12-02 Jim Meyering <jim@meyering.net>
59379 * lib/safe-read.c (EINTR): Define.
59380 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59381 (INT_MAX): Provide fallback.
59382 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59384 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59386 2002-12-02 Bruno Haible <bruno@clisp.org>
59388 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59389 Define, taken from safe-read.c.
59390 (INT_MAX): Provide fallback.
59391 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59392 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59394 * lib/safe-read.c (EINTR): Remove definition.
59395 (safe_read): Don't use EINTR if it is absent.
59397 2002-12-01 Jim Meyering <jim@meyering.net>
59399 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59401 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59403 2002-11-27 Paul Eggert <eggert@twinsun.com>
59405 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59406 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59407 with `if (! (value < limit)) abort ();', for readability.
59409 2002-11-26 Karl Berry <karl@gnu.org>
59411 * lib/strdup.c: copy from libc again, with jim's ok.
59412 * lib/.cppi-disable: re-add strdup.c
59414 2002-11-25 Karl Berry <karl@gnu.org>
59416 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59417 instead of "strtol.c".
59419 2002-11-25 Karl Berry <karl@gnu.org>
59421 * config/install-sh: update from automake for variable quoting, $0 in
59424 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59425 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59428 2002-11-25 Jim Meyering <jim@meyering.net>
59430 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59432 2002-11-24 Karl Berry <karl@gnu.org>
59434 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59435 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59437 2002-11-24 Jim Meyering <jim@meyering.net>
59439 Update from coreutils:
59441 * lib/mktime.c: Merge in changes from libc.
59443 Avoid a link-time failure on some Linux systems.
59444 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59446 (__mon_yday): Declare with the STATIC attribute.
59447 (__mktime_internal): Likewise.
59448 Based on a report from Greg Schafer.
59450 2002-11-23 Jim Meyering <jim@meyering.net>
59452 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59453 Use `unsigned', not `int', as type of index.
59455 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59457 * lib/fsusage.c: Remove unneeded parentheses around operands of
59460 2002-11-22 Paul Eggert <eggert@twinsun.com>
59462 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59463 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59464 so that we can be included first.
59465 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59466 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59467 No need to include stddef.h or sys/types.h any more.
59468 Surround local include files with "", not "<>".
59469 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59470 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59471 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59472 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59473 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59474 (ISPRINT): Remove; no longer needed now that we assume C89.
59476 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59479 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59480 quotearg_char): Use SIZE_MAX rather than
59481 (size_t) -1 when we are talking about "infinity".
59483 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59485 2002-11-22 Paul Eggert <eggert@twinsun.com>
59487 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59488 hint that one should use `if (! x) abort ();' rather than `assert
59489 (x);', and anyway it's one less thing to worry about configuring.
59490 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59491 hash_rehash, hash_insert): Use abort rather than assert.
59493 2002-11-22 Bruno Haible <bruno@clisp.org>
59495 * lib/safe-read.h: Assume C89. Add comments.
59496 (safe_read): Change return type to size_t.
59497 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59498 byte counts > SSIZE_MAX correctly.
59499 * lib/safe-write.h: New file.
59500 * lib/safe-write.c: New file.
59501 * lib/full-read.h: New file.
59502 * lib/full-read.c: New file.
59503 * lib/full-write.h: Assume C89. Add comments.
59504 * lib/full-write.c: Include safe-write.h.
59505 (full_write): Rewritten to use safe_write.
59506 Suggested by Jim Meyering and Paul Eggert.
59508 2002-11-21 Jim Meyering <jim@meyering.net>
59510 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59512 Merge in changes from the coreutils.
59514 2002-09-25 Paul Eggert <eggert@twinsun.com>
59515 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59517 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59518 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59519 int. Work more efficiently if X is the same width as uintmax_t.
59520 Do not compare X to -1, to avoid bogus compiler warning.
59521 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59522 Don't assume that f_frsize and f_bsize are the same type.
59524 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59525 warning on FreeBSD.
59527 * lib/makepath.c (make_path): Restore umask *before* creating the final
59529 (make_path): Minor reformatting.
59531 * lib/xmalloc.c: Adjust to work with new autoconf macros,
59532 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59533 HAVE_MALLOC/HAVE_REALLOC.
59535 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59536 dummy ones. At least on GNU/Linux systems, `auto' means something
59538 From Michael Stone.
59540 2002-11-21 Bruno Haible <bruno@clisp.org>
59542 Remove case insensitive option matching.
59543 * lib/argmatch.h (argcasematch): Remove declaration.
59544 (ARGCASEMATCH): Remove macro.
59545 (__xargmatch_internal): Remove case_sensitive argument.
59546 (XARGMATCH): Update.
59547 (XARGCASEMATCH): Remove macro.
59548 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59549 case_sensitive argument.
59550 (argcasematch): Remove function.
59551 (__xargmatch_internal): Remove case_sensitive argument.
59552 (main): Use XARGMATCH instead of XARGCASEMATCH.
59554 * lib/xmalloc.c: Change compile-time error message. Add comment about
59555 required autoconf version.
59557 2002-11-20 Paul Eggert <eggert@twinsun.com>
59559 Merge argmatch cleanups from Bison. Assume C89.
59561 * lib/argmatch.c: Include config.h here, not in argmatch.h.
59562 Include stdlib.h, for EXIT_FAILURE.
59563 Always include <string.h>, since we assume C89.
59564 (EXIT_FAILURE): Remove pre-C89 bug workaround.
59565 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59566 Include <stddef.h> instead, since it's all we need for size_t.
59567 (PARAMS): Remove. All uses removed.
59568 (ARRAY_CARDINALITY): Do not bother to #undef.
59569 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59570 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59571 Remove unnecessary parentheses.
59572 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59573 Insert necessary parentheses.
59574 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59575 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59577 2002-11-19 Bruno Haible <bruno@clisp.org>
59579 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59580 * lib/mbswidth.h: Include <stddef.h>, for size_t.
59582 * lib/mbswidth.h (PARAMS): Remove macro.
59583 (mbswidth, mbsnwidth): Use ANSI C function declarations.
59584 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59586 * lib/gcd.h (PARAMS): Remove macro.
59587 (gcd): Use ANSI C function declarations.
59588 * lib/gcd.c (gcd): Likewise.
59590 2002-11-15 Bruno Haible <bruno@clisp.org>
59592 * lib/strcspn.c: Include <stddef.h>.
59593 (strcspn): Use ANSI C function declaration. Change return type to
59595 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59596 (strpbrk): Use NULL.
59597 * lib/strpbrk.h (PARAMS): Remove macro.
59598 (strpbrk): Use ANSI C function declaration.
59599 * lib/strstr.c: Don't include <sys/types.h>.
59600 * lib/strstr.h (PARAMS): Remove macro.
59601 (strstr): Use ANSI C function declarations.
59603 2002-11-14 Karl Berry <karl@gnu.org>
59605 * config/mkinstalldirs: `do' on separate line, instead of
59608 2002-11-06 Bruno Haible <bruno@clisp.org>
59610 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59611 * lib/gcd.c (gcd): Likewise.
59613 2002-11-05 Bruno Haible <bruno@clisp.org>
59615 * lib/gcd.h: New file, from gettext-0.11.5.
59616 * lib/gcd.c: New file, from gettext-0.11.5.
59618 2002-11-05 Bruno Haible <bruno@clisp.org>
59620 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59621 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59622 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59623 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59625 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59627 * lib/makepath.c: Include gettext.h instead of <locale.h> and
59630 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59631 * lib/human.c: Include gettext.h instead of <libintl.h>.
59632 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59633 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59634 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59635 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59636 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59637 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59638 (textdomain): Remove definition.
59639 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59641 * lib/long-options.c: Remove include of <libintl.h> and definition of
59643 * lib/same.c: Remove include of <libintl.h> and definition of _.
59645 2002-11-04 Owen Taylor <otaylor@redhat.com>
59647 * lib/config.charset: A few additions for Solaris.
59649 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59651 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59652 * lib/localcharset.c (locale_charset): Declare as extern "C".
59654 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59656 * lib/config.charset: msdos in uk_UA uses CP1125.
59658 2002-11-04 Bruno Haible <bruno@clisp.org>
59660 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59661 * lib/strcase.h: New file, from GNU gettext-0.11.5.
59662 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59663 * lib/strstr.h: New file, from GNU gettext-0.11.5.
59664 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59666 2002-11-04 Bruno Haible <bruno@clisp.org>
59668 * lib/localcharset.c (locale_charset): Don't return an empty string.
59670 2002-11-04 Bruno Haible <bruno@clisp.org>
59672 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59675 2002-11-04 Bruno Haible <bruno@clisp.org>
59677 * lib/config.charset: Update for newest glibc. Add canonical names
59678 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59680 2002-11-04 Bruno Haible <bruno@clisp.org>
59682 * lib/config.charset: Add support for NetBSD.
59684 2002-11-04 Bruno Haible <bruno@clisp.org>
59686 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59688 2002-11-01 Bruno Haible <bruno@clisp.org>
59690 * configure.in: Add AC_CONFIG_AUX_DIR call.
59691 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59693 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59695 2002-09-28 Karl Berry <karl@gnu.org>
59697 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59698 installed automake until the next release, since changes have been
59701 2002-09-25 Karl Berry <karl@gnu.org>
59703 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59704 * lib/getopt*: copy from libc/posix.
59705 * lib/gettext.h: copy from gettext.
59706 * lib/.cppi-disable: add strdup.c, gettext.h.
59708 2002-09-25 Karl Berry <karl@gnu.org>
59710 * config/srclist.txt: enable gettext.h check.
59711 * config/config.{guess,sub}: update from prep.
59712 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59713 from automake 1.6.3.
59716 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
59718 * regex.c (PATFETCH): Remove the translating fetch.
59719 (PATFETCH_RAW): Rename to PATFETCH.
59720 (set_image_of_range): New fun.
59721 (SET_RANGE_TABLE_WORK_AREA): Use it.
59722 (regex_compile): Don't translate the pattern chars so eagerly.
59723 Only do it when inserting an `exactn' bytecode or when handling
59725 (mutually_exclusive_p): Avoid empty statement.
59727 2002-07-06 Jim Meyering <meyering@lucent.com>
59729 * m4/README: Don't mention Makefile.am.in.
59730 Outline how I've tested changes to .m4 files. Yep, it's a pain.
59732 2002-07-01 Jim Meyering <meyering@lucent.com>
59734 * lib/c-stack.c: Include sys/time.h.
59735 From Volker Borchert.
59737 2002-06-26 Paul Eggert <eggert@twinsun.com>
59739 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59741 2002-06-26 Paul Eggert <eggert@twinsun.com>
59743 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59744 New macro. Use it uniformly instead of
59745 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59746 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59747 reported by Vin Shelton.
59749 2002-06-22 Paul Eggert <eggert@twinsun.com>
59751 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59752 Do not assume SA_SIGINFO behavior.
59753 Bug reported by Jim Meyering on NetBSD 1.5.2.
59755 2002-06-22 Jim Meyering <meyering@lucent.com>
59757 * m4/c-stack.m4: New file, from diffutils-2.8.2.
59758 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59760 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59761 now that configure.ac uses AC_GNU_SOURCE.
59762 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59763 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59765 Update to latest tools. Suggestions from Paul Eggert.
59766 * m4/stdbool.m4: New file, from diffutils-2.8.2.
59767 * m4/gnu-source.m4: Update from diffutils-2.8.2.
59768 * m4/fnmatch.m4: Likewise.
59769 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59770 to AC_HEADER_STDBOOL
59772 2002-06-22 Jim Meyering <meyering@lucent.com>
59774 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59775 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59777 2002-06-22 Jim Meyering <meyering@lucent.com>
59779 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59781 * lib/exitfail.c, exitfail.h: Likewise.
59782 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59784 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59786 (EXTRA_DIST): Add fnmatch_loop.c.
59787 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59789 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59790 * lib/fnmatch.c: Update from diffutils-2.8.2.
59791 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59792 * lib/fnmatch.h: Remove file.
59794 2002-06-21 Jim Meyering <meyering@lucent.com>
59796 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59797 * m4/mbrtowc.m4: Likewise.
59799 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59800 * m4/mbswidth.m4: Reflect name change:
59801 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59802 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59804 * m4/lib-link.m4: Update from gettext-0.11.2.
59805 * m4/gettext.m4: Likewise.
59807 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59808 From Alfred M. Szmidt.
59810 2002-06-18 Paul Eggert <eggert@twinsun.com>
59812 * lib/file-type.h: Report an error if neither S_ISREG nor
59813 S_IFREG is defined, instead of using a test specific to glibc
59814 2.2. This should be safe, since POSIX requires S_ISREG and
59815 Unix Version 7 had S_IFREG. We don't need to check for
59816 <sys/types.h> since we don't use any symbols that it defines.
59818 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59820 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59821 $@-t, so that each temporary file name is unique and valid in the first
59822 8 characters, for operation under DOS.
59824 2002-06-15 Paul Eggert <eggert@twinsun.com>
59826 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59828 2002-06-15 Jim Meyering <meyering@lucent.com>
59830 Work even with DJGPP 2.03, which lacks support for symlinks.
59832 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59834 * lib/lchown.c (S_ISLNK): Likewise.
59836 2002-06-15 Jim Meyering <meyering@lucent.com>
59838 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59839 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59840 have been included before this file.
59842 2002-06-14 Jim Meyering <meyering@lucent.com>
59844 * lib/file-type.h: Use the version from diffutils-2.8.2.
59845 * lib/file-type.c: Likewise.
59847 2002-06-07 Jim Meyering <meyering@lucent.com>
59849 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59850 They're needed at least for NetBSD 1.5.2.
59851 ($statxfs_includes): Include those same headers.
59852 ($statxfs_includes): Include sys/vfs.h if available.
59853 ($statxfs_includes): Likewise for sys/statvfs.h.
59854 Check for the following members in both structs statfs and statvfs:
59855 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59857 2002-06-01 Jim Meyering <meyering@lucent.com>
59859 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59860 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59862 2002-05-28 Jim Meyering <meyering@lucent.com>
59864 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59865 Reported by Volker Borchert.
59867 2002-05-27 Jim Meyering <meyering@lucent.com>
59869 Fix a problem seen only on nonconforming systems whereby ls.c's
59870 use of localtime, and then of gettimeofday would cause trouble:
59871 the localtime call used to initialize rpl_gettimeofday's save
59872 mechanism would clobber ls's current local time information so
59873 that in any long listing the first file would always be listed
59874 with date 1970-01-01. Analysis by Volker Borchert.
59876 * lib/gettimeofday.c (localtime): Undefine.
59877 (rpl_localtime): New function.
59879 2002-05-27 Jim Meyering <meyering@lucent.com>
59881 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59884 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59885 use the replacement function; it wouldn't resolve at link time.
59886 Reported by Volker Borchert.
59888 2002-05-22 Jim Meyering <meyering@lucent.com>
59890 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59892 * lib/file-type.h: New file.
59893 * lib/file-type.c (file_type): New file/function. Extracted from
59896 2002-04-30 Jim Meyering <meyering@lucent.com>
59898 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59900 2002-04-29 Paul Eggert <eggert@twinsun.com>
59902 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59904 2002-04-29 Paul Eggert <eggert@twinsun.com>
59906 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59907 Do not check for alloca.h (no longer used) or stdbool.h (was never
59908 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
59910 2002-04-29 Paul Eggert <eggert@twinsun.com>
59912 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59914 2002-04-29 Jim Meyering <meyering@lucent.com>
59916 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59917 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59918 Use AC_FUNC_STRNLEN here instead.
59920 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59921 With autoconf-2.53a, it's part of AC_PROG_CC.
59923 2002-04-28 Paul Eggert <eggert@twinsun.com>
59925 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59926 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59928 2002-04-28 Paul Eggert <eggert@twinsun.com>
59930 * lib/sig2str.h, lib/sig2str.c: New files.
59931 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59933 2002-04-28 Paul Eggert <eggert@twinsun.com>
59935 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59936 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
59937 of 127, since 64 is the largest conceivable number for ancient
59939 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59941 2002-04-28 Jim Meyering <meyering@lucent.com>
59943 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59945 2002-04-24 Jim Meyering <meyering@lucent.com>
59947 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59948 (jm_PREREQ): Use it.
59950 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59951 mach/mach.h fcntl.h.
59952 Check for this function: setlocale.
59954 2002-04-24 Jim Meyering <meyering@lucent.com>
59956 * lib/gettext.h: New file, from Gettext.
59957 * lib/Makefile.am (INCLUDES): Remove -I../intl.
59958 (libfetish_a_SOURCES): Add gettext.h.
59960 2002-04-16 Jim Meyering <meyering@lucent.com>
59962 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59963 ut_pid, ut_id, ut_exit.
59965 2002-04-16 Jim Meyering <meyering@lucent.com>
59967 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59968 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59969 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59971 2002-04-12 Jim Meyering <meyering@lucent.com>
59973 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59974 now-bogus check for f_type in sys/mount.h. Instead, just test for the
59975 existence of the getmntinfo function. Needed for Darwin 5.3.
59977 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59978 This is necessary at least on Darwin 5.3.
59980 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59981 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
59982 strnlen.o in the library, and that makes some versions of ranlib
59985 2002-04-12 Jim Meyering <meyering@lucent.com>
59987 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59989 2002-04-09 Jim Meyering <meyering@lucent.com>
59991 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59992 to be more precise. Rather than saying we're checking whether the
59993 function `works', say what we're testing.
59994 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59995 Reported by Bruno Haible.
59997 2002-03-10 Jim Meyering <meyering@lucent.com>
59999 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60000 Suggestion from Santiago Vila.
60002 2002-03-08 Jim Meyering <meyering@lucent.com>
60004 * lib/rename.c: Mention that this wrapper is needed also on
60005 mips-dec-ultrix4.4 systems.
60007 2002-03-02 Jim Meyering <meyering@lucent.com>
60009 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60010 not HAVE_CLOCK_SETTIME.
60012 2002-02-27 Paul Eggert <eggert@twinsun.com>
60014 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60015 Check for clock_settime.
60017 2002-02-27 Paul Eggert <eggert@twinsun.com>
60019 * lib/nanosleep.h: Rename to....
60020 * lib/timespec.h: New name for nanosleep.h. All uses changed.
60022 * lib/gettime.c: New file.
60023 * lib/settime.c: New file.
60024 * lib/stime.c: Remove.
60026 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60027 timespec.h. Remove nanosleep.h.
60029 2002-02-25 Paul Eggert <eggert@twinsun.com>
60031 * m4/acl.m4: New file.
60032 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60033 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60035 2002-02-25 Paul Eggert <eggert@twinsun.com>
60037 * lib/acl.c, lib/acl.h: New files.
60038 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60040 2002-02-24 Jim Meyering <meyering@lucent.com>
60042 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60043 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60044 cause trouble. Reported by Nelson Beebe.
60046 2002-02-23 Paul Eggert <eggert@twinsun.com>
60048 * lib/path-concat.c (xpath_concat): Reorder code to pacify
60049 compilers that don't know that xalloc_die never returns.
60051 2002-02-20 Jim Meyering <meyering@lucent.com>
60053 * lib/getdate.c: Regenerate using bison-1.33.
60055 2002-02-17 Jim Meyering <meyering@lucent.com>
60057 * config/config.guess (main): Don't use `head -1'; it's no longer
60058 portable. Use `sed 1q' instead.
60060 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
60062 * m4/codeset.m4: Upgrade to gettext-0.11.
60063 * m4/gettext.m4: Upgrade to gettext-0.11.
60064 * m4/glibc21.m4: Upgrade to gettext-0.11.
60065 * m4/iconv.m4: Upgrade to gettext-0.11.
60066 * m4/isc-posix.m4: Upgrade to gettext-0.11.
60067 * m4/lcmessage.m4: Upgrade to gettext-0.11.
60068 * m4/lib-ld.m4: New file, from gettext-0.11.
60069 * m4/lib-link.m4: New file, from gettext-0.11.
60070 * m4/lib-prefix.m4: New file, from gettext-0.11.
60071 * m4/progtest.m4: Upgrade to gettext-0.11.
60073 2002-02-15 Paul Eggert <eggert@twinsun.com>
60075 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60076 (jm_PREREQ): Use it.
60078 2002-02-15 Paul Eggert <eggert@twinsun.com>
60080 * lib/posixver.c, lib/posixver.h: New files.
60081 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60083 2002-02-02 Paul Eggert <eggert@twinsun.com>
60084 Bruno Haible <bruno@clisp.org>
60086 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60087 (fwrite_success_callback): New declaration.
60088 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60089 print_unicode_char. Call failure callback instead of error.
60090 (fwrite_success_callback): New function.
60091 (exit_failure_callback): New function.
60092 (fallback_failure_callback): New function.
60093 (print_unicode_char): Call unicode_to_mb.
60095 2002-01-26 Jim Meyering <meyering@lucent.com>
60097 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60098 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60100 2002-01-26 Jim Meyering <meyering@lucent.com>
60102 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60104 2002-01-22 Paul Eggert <eggert@twinsun.com>
60106 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60108 2002-01-22 Jim Meyering <meyering@lucent.com>
60110 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60111 Otherwise, some versions of automake would omit the rule that makes
60112 Makefile from Makefile.in.
60114 2002-01-21 Paul Eggert <eggert@twinsun.com>
60116 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60117 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60118 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60119 (memcoll): Set errno to zero if there is no error.
60121 * lib/quotearg.c (quotearg_buffer_restyled):
60122 Fix bug with quoting buffers containing NUL when backslashing escapes.
60123 This bug was exposed by the other changes in this patch.
60124 (quotearg_n_options): New arg ARGSIZE.
60125 All callers changed.
60126 (quoting_options_from_style): New function.
60127 (quotearg_n_style): Use it.
60128 (quotearg_n_style_mem): New function.
60130 * lib/quotearg.h (quotearg_n_style_mem): New function.
60132 2002-01-19 Jim Meyering <meyering@lucent.com>
60134 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60135 Remove useless quotes: DF_PROG="df".
60136 * m4/strnlen.m4: New file.
60138 2002-01-16 Paul Eggert <eggert@twinsun.com>
60140 * lib/backupfile.c (ISDIGIT): Comment fix.
60141 * lib/getdate.y (ISDIGIT): Likewise.
60142 * lib/posixtm.c (ISDIGIT, year): Likewise.
60143 * lib/strverscmp.c (ISDIGIT): Likewise.
60144 * lib/userspec.c (ISDIGIT): Likewise.
60146 2002-01-16 Jim Meyering <meyering@lucent.com>
60148 * lib/getdate.y: Add three semicolons, each just before a closing
60149 brace. Bison (as of version 1.31) no longer papers over that mistake.
60151 2002-01-05 Jim Meyering <meyering@lucent.com>
60153 * lib/version-etc.c (version_etc_copyright): Update copyright year.
60155 2001-12-19 Paul Eggert <eggert@twinsun.com>
60157 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60158 not silently exit merely because the output buffer happens to
60159 have nothing pending.
60161 2001-12-18 Paul Eggert <eggert@twinsun.com>
60163 See the big note in ../ChangeLog.
60164 * lib/human.c (suffixes): Prefer K to k for 1024.
60165 (generate_suffix_backwards): New function.
60166 (human_readable_inexact): Use it.
60167 * lib/xstrtol.c (__xstrtol): If there is no number but there
60168 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
60169 Accept 'K' as well as 'k'.
60171 2001-12-15 Jim Meyering <meyering@lucent.com>
60173 * lib/regex.h (__restrict_arr): Update from libc.
60175 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60176 as `remote' if the name starts with `//'. Suggested by Michael Stone.
60179 2001-12-14 Jim Meyering <meyering@lucent.com>
60181 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60182 Suggestion from Bruno Haible.
60184 2001-12-10 Jim Meyering <meyering@lucent.com>
60186 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60187 xrealloc, Instead, include "xalloc.h".
60188 (initbuffer): Don't cast xmalloc return value to char*.
60189 (readline): Reword comment.
60190 Don't cast xrealloc return value to char*
60191 Return NULL, not 0.
60193 2001-12-09 Jim Meyering <meyering@lucent.com>
60195 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60196 about `signed and unsigned type in conditional expression'.
60197 * lib/posixtm.c (posix_time_parse): Likewise.
60199 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60201 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60202 to avoid a pedantic warning.
60204 * lib/getstr.c: Don't include assert.h.
60205 (getstr): Remove warning-evoking assertions.
60206 Return -1 if offset parameter is out of bounds.
60207 Change the type of a local from int to size_t.
60209 * lib/strftime.c (my_strftime_localtime_r): Include this function
60210 definition in the `#if ! HAVE_TM_GMTOFF' block.
60212 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60213 Include xalloc.h instead.
60215 2001-12-02 Jim Meyering <meyering@lucent.com>
60217 * lib/tempname.c: Don't declare getenv, thus reverting the change of
60218 2001-11-18. It's no longer necessary, now that stdlib.h is always
60221 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60222 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
60224 2001-11-30 Akim Demaille <akim@epita.fr>
60226 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60227 before being defined.
60229 2001-11-27 Paul Eggert <eggert@twinsun.com>
60231 * lib/quotearg.h (quotearg_n, quotearg_n_style):
60232 First arg is int, not unsigned.
60233 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60234 (SIZE_MAX, UINT_MAX): New macros.
60235 (quotearg_n_options): Abort if N is negative.
60236 Avoid overflow check on hosts where size_t is 64 bits and int
60237 is 32 bits, as overflow is impossible there.
60238 Fix off-by-one typo that caused unnecessary reallocation.
60240 2001-11-27 Jim Meyering <meyering@lucent.com>
60242 * lib/tempname.c: Merge with version from libc.
60243 * lib/regex.c: Likewise.
60245 * lib/tempname.c: Include stdlib.h unconditionally. On some old
60246 systems for which STDC_HEADERS is 0, it was not included, resulting in
60247 a warning about an integer-to-pointer conversion problem with getenv.
60248 Reported by Volker Borchert.
60250 2001-11-26 Jim Meyering <meyering@lucent.com>
60252 * lib/gtod.h: Remove file.
60253 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60254 * lib/gettimeofday.c: Don't include gtod.h.
60255 (GTOD_init): Remove function.
60256 (rpl_gettimeofday): Do its job here instead, rather than aborting.
60257 Suggestion from Volker Borchert.
60259 2001-11-23 Jim Meyering <meyering@lucent.com>
60261 * lib/hash.h (struct hash_table): Don't define here. Merely declare
60263 * lib/hash.c (struct hash_table): Define it here instead.
60265 2001-11-22 Jim Meyering <meyering@lucent.com>
60267 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60269 2001-11-20 Jim Meyering <meyering@lucent.com>
60271 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60272 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60274 2001-11-19 Jim Meyering <meyering@lucent.com>
60276 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60277 directory. Use "conftestXXXXXX" as the template.
60278 Suggestion from Paul Eggert.
60280 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60281 immediately, so the test doesn't mistakenly hit the max-open-files
60284 2001-11-18 Paul Eggert <eggert@twinsun.com>
60286 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60287 (TEMPORARIES): New macro.
60288 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60289 removes an artificial limitation (e.g. HP-UX 10.20, where
60292 2001-11-18 Jim Meyering <meyering@lucent.com>
60294 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60296 2001-11-18 Jim Meyering <meyering@lucent.com>
60298 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60301 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60302 files will be created before anything else.
60304 2001-11-17 Paul Eggert <eggert@twinsun.com>
60306 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60307 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60309 2001-11-17 Jim Meyering <meyering@lucent.com>
60311 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60312 Prompted by a report from Bob Proulx.
60314 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60315 Instead, require UTILS_FUNC_MKSTEMP.
60317 2001-11-17 Jim Meyering <meyering@lucent.com>
60319 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60320 Now, that's done as part of AC_FUNC_STRTOD.
60322 2001-11-17 Jim Meyering <meyering@lucent.com>
60324 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60325 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60326 rather than group writable. Patch by Juan F. Codagnone.
60328 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60329 xrealloc, Instead, include "xalloc.h".
60331 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60332 Remove explicit declarations of xmalloc, xrealloc,
60333 and xstrdup. Instead, include "xalloc.h".
60335 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60337 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60339 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60341 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60342 Reported by Padraig Brady.
60344 * lib/mkstemp.c: #undef mkstemp.
60346 (rpl_mkstemp): Rename from mkstemp.
60349 2001-11-16 Jim Meyering <meyering@lucent.com>
60351 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60352 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60353 determine the amount of total physical memory, use pstat_getstatic.
60354 HPUX-11 doesn't define _SC_PHYS_PAGES.
60355 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60356 If sysconf couldn't be used to determine the amount of available
60357 physical memory, use both pstat_getstatic and pstat_getdynamic.
60358 Based on a patch from Bob Proulx.
60360 2001-11-10 Jim Meyering <meyering@lucent.com>
60362 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60363 (jm_PREREQ): Use it.
60365 2001-11-09 Jim Meyering <meyering@lucent.com>
60367 * m4/jm-macros.m4: Require autoconf-2.52f.
60368 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60369 Use these AC_-prefixed names, not the AM_-prefixed ones.
60371 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60373 2001-11-05 Jim Meyering <meyering@lucent.com>
60375 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60377 2001-11-04 Jim Meyering <meyering@lucent.com>
60379 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60382 2001-11-03 Jim Meyering <meyering@lucent.com>
60384 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60387 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60388 know the name of the variable in the macro definition.
60390 2001-11-03 Jim Meyering <meyering@lucent.com>
60392 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60393 in argmatch_to_argument call.
60395 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60398 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60399 e.g., a fault due to an attempt to free a NULL pointer.
60401 2001-11-01 Jim Meyering <meyering@lucent.com>
60403 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60404 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60406 2001-11-01 Jim Meyering <meyering@lucent.com>
60408 * lib/dirfd.c, lib/dirfd.h: New files.
60409 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60411 * lib/hash.c (hash_print) [TESTING]: Clean up.
60413 2001-10-22 Paul Eggert <eggert@twinsun.com>
60415 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60416 to avoid a warning if -Wall.
60418 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60421 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60422 (per RMS's instructions, this is now the canonical source)
60423 * lgpl/, gpl/: New directories.
60425 2001-10-21 Paul Eggert <eggert@twinsun.com>
60427 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60429 2001-10-21 Jim Meyering <meyering@lucent.com>
60431 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60432 this code would end up calling gettext even in packages built
60433 with --disable-nls.
60434 * lib/getopt.c (_): Likewise.
60435 * lib/regex.c (_): Likewise.
60437 2001-10-20 Paul Eggert <eggert@twinsun.com>
60439 * m4/error.m4 (jm_PREREQ_ERROR):
60440 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60441 AC_FUNC_STRERROR_R does that.
60442 Check for strerror declaration.
60444 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60445 are supposed to have them these days.
60446 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60447 Merge changes from latest Autoconf CVS.
60448 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60449 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60450 POSIX decided to standardize on the int flavor of strerror_r.
60452 2001-10-20 Paul Eggert <eggert@twinsun.com>
60454 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60455 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60456 Use strerror_r that is only a macro, even if it is not a function.
60457 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60458 (private_strerror): Use prototypes, not old-style function definition.
60459 (print_errno_message): New function.
60460 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60461 char*-flavored one.
60462 (error_tail, error, error_at_line): Use it.
60464 2001-10-11 Jim Meyering <meyering@lucent.com>
60466 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60467 and quote_n (1, ... to avoid clobbering a buffer.
60469 2001-10-05 Jim Meyering <meyering@lucent.com>
60471 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60473 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60474 * lib/hash-pjw.h: New file.
60476 2001-09-30 Jim Meyering <meyering@lucent.com>
60478 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60479 `struct fsstat' has the `f_fstypename' member.
60480 Use that to define FS_TYPE, which is now used to make
60481 the getfsstat link test tighter.
60483 2001-09-30 Jim Meyering <meyering@lucent.com>
60485 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60486 Include <sys/ucred.h>, for Apple Darwin.
60487 Include sys/mount.h and sys/fs_types.h only if available.
60489 (read_filesystem_list): Use FS_TYPE.
60491 2001-09-29 Paul Eggert <eggert@twinsun.com>
60493 * lib/exclude.c (excluded_filename): 0 -> false, since it's
60496 2001-09-29 Jim Meyering <meyering@lucent.com>
60498 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60499 [one-argument getmntent function]): Include stdio.h before mntent.h.
60500 SunOS 4.1.x needs it for the declaration of `FILE'.
60501 Patch by Volker Borchert.
60503 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60504 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60505 sys/fs_types.h, and make the link-test for getfsstat guard #include
60506 directives with appropriate #if HAVE_*_H tests so that we can
60507 detect getfsstat on Apple Darwin1.3.7 systems.
60508 Reported by Nelson Beebe.
60509 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60511 2001-09-28 Paul Eggert <eggert@twinsun.com>
60513 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60514 #defines strtoimax. Also treat the other strto* functions
60517 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60518 Check for strtoul and strtoumax,
60519 as those declarations are made even in the signed case.
60520 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60521 Likewise, for strtol and strtoimax.
60523 2001-09-28 Paul Eggert <eggert@twinsun.com>
60525 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60526 #defines strtoimax. Also treat the other strto* functions
60529 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60530 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60531 (strtoimax, strtoumax): Do not declare if already defined as a macro.
60533 2001-09-26 Jim Meyering <meyering@lucent.com>
60535 Most macros in unlocked-io.h had the wrong number of arguments.
60536 * lib/gen-uio: New script.
60537 (USE_UNLOCKED_IO): Define to 1 if not already defined.
60538 * lib/unlocked-io.hin: Remove file.
60539 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60540 rather than trying to embed it here.
60541 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
60542 Reported by Padraig Brady.
60544 2001-09-25 Volker Borchert <bt@teknon.de>
60546 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60549 2001-09-24 Jim Meyering <meyering@lucent.com>
60551 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60553 2001-09-23 Jim Meyering <meyering@lucent.com>
60555 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60556 instead of the mere test for existence of mntent.h. The latter
60557 would get a false-positive on AIX 3.4 systems.
60558 In the outer getmntent if-block, don't die if neither of the getmntent
60559 tests succeeds. Instead, just fall through and continue with the
60562 2001-09-23 Jim Meyering <meyering@lucent.com>
60564 * lib/mountlist.c: Remove useless parentheses in #if directives.
60565 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60566 the deprecated MOUNTED symbol is no longer defined in mntent.h.
60568 2001-09-22 Jim Meyering <meyering@lucent.com>
60570 * m4/gettext.m4: New file. From gettext.
60571 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60572 * m4/progtest.m4: Likewise
60573 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60574 * m4/glibc21.m4: Likewise.
60576 * m4/libintl.m4: Remove. No longer used.
60578 2001-09-22 Jim Meyering <meyering@lucent.com>
60580 * lib/localcharset.c: Update from latest gettext.
60581 * lib/config.charset: Likewise.
60583 2001-09-20 Jim Meyering <meyering@lucent.com>
60585 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60587 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60590 2001-09-20 Jim Meyering <meyering@lucent.com>
60592 * lib/xstrtol.c (strtoimax): Guard declaration with
60593 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60594 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60595 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60596 (strtoumax): Likewise, for completeness (it wasn't necessary).
60598 2001-09-17 Paul Eggert <eggert@twinsun.com>
60600 * lib/strtoimax.c (HAVE_LONG_LONG):
60601 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60602 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60603 to work around bug in IBM C compiler.
60605 2001-09-17 Jim Meyering <meyering@lucent.com>
60607 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60608 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60609 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60610 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60611 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60612 whenever the right hand side need not be expanded by the shell.
60614 2001-09-16 Paul Eggert <eggert@twinsun.com>
60616 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60617 library. It's not correct, as some older glibcs are buggy.
60618 fnmatch wasn't fixed until glibc 2.2.
60620 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60621 special shell magic here.
60623 2001-09-16 Jim Meyering <meyering@lucent.com>
60625 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60626 * m4/jm-macros.m4: Require it.
60628 2001-09-16 Jim Meyering <meyering@lucent.com>
60630 * lib/mkdir.c: New file.
60632 2001-09-15 Jim Meyering <meyering@lucent.com>
60634 * m4/jm-macros.m4: Check for help2man.
60636 2001-09-11 Jim Meyering <meyering@lucent.com>
60638 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60639 The body, by Paul Eggert, was moved here from configure.in.
60640 * m4/jm-macros.m4: Require UTILS_HOST_OS.
60642 2001-09-04 Paul Eggert <eggert@twinsun.com>
60644 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60645 (jm_PREREQ): Use it.
60647 2001-09-04 Paul Eggert <eggert@twinsun.com>
60649 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
60650 Use ssize_t, not int, to store result of readlink.
60651 Check for ssize_t overflow as well as size_t overflow,
60652 as POSIX says the result of readlink is implementation-defined
60653 when ssize_t overflows.
60654 Remove unnecessary cast to char*.
60655 Use free+malloc instead of realloc, as the storage doesn't need
60656 to be preserved and it's clearer and can be more efficient that way.
60657 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60658 * lib/xreadlink.h (xreadlink): Update prototype.
60660 2001-09-04 Paul Eggert <eggert@twinsun.com>
60662 * lib/xgetcwd.c: Revert some of the previous change; intead,
60663 fix the HAVE_GETCWD_NULL code to behave more like the
60664 !HAVE_GETCWD_NULL code used to.
60666 Include "xalloc.h".
60667 (xgetcwd): Do not return NULL when memory is exhausted; instead,
60670 2001-09-03 Paul Eggert <eggert@twinsun.com>
60672 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60673 sys/param.h, as pathmax.h includes them.
60675 2001-09-03 Paul Eggert <eggert@twinsun.com>
60677 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60678 (jm_PREREQ_XGETCWD): New macro.
60680 * m4/getcwd.m4: New file.
60682 2001-09-03 Paul Eggert <eggert@twinsun.com>
60684 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60685 like the HAVE_GETCWD_NULL code.
60686 Include pathmax.h if not HAVE_GETCWD.
60687 Do not include xalloc.h.
60688 (INITIAL_BUFFER_SIZE): New symbol.
60689 Do not use xmalloc / xrealloc, since the caller is responsible for
60690 handling errors. Preserve errno around `free' during failure.
60691 Do not overrun buffer when using getwd.
60693 2001-09-03 Paul Eggert <eggert@twinsun.com>
60695 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60696 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60699 2001-09-03 Paul Eggert <eggert@twinsun.com>
60701 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60702 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
60703 spotted by Jim Meyering.
60705 2001-09-03 Jim Meyering <meyering@lucent.com>
60707 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60710 2001-09-02 Jim Meyering <meyering@lucent.com>
60712 * lib/error.c: Update from GNU libc.
60714 2001-09-01 Jim Meyering <meyering@lucent.com>
60716 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60719 2001-09-01 Jim Meyering <meyering@lucent.com>
60721 * lib/xreadlink.c: New file.
60722 * lib/xreadlink.h: New file.
60723 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60726 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60727 doesn't conflict with sparc Solaris 7's definition in
60728 /usr/include/sys/int_types.h.
60730 * lib/exclude.c: Use `""', not `<>' to #include non-system header
60732 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60733 and strncasecmp as r-values. Unixware didn't have declarations.
60735 2001-08-31 Paul Eggert <eggert@twinsun.com>
60737 * lib/xstrtol.h: Add copyright notice.
60738 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60739 LONGINT_INVALID_SUFFIX_CHAR.
60741 2001-08-31 Paul Eggert <eggert@twinsun.com>
60743 * lib/xstrtol.c (strtoimax): New decl.
60745 2001-08-31 Paul Eggert <eggert@twinsun.com>
60747 * lib/xgetcwd.c: Don't include pathmax.h.
60748 Include stdlib.h and unistd.h if available.
60750 (xmalloc, xstrdup, free): Remove decls.
60751 (xgetcwd): Don't assume sizes fit in unsigned.
60752 Check for overflow when computing sizes.
60753 Simplify reallocation code.
60755 2001-08-31 Paul Eggert <eggert@twinsun.com>
60757 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60758 a directory's st_size can have an arbitrary value, so the old
60759 usage could waste an arbitrary amount of memory. All uses
60761 * lib/savedir.h: Update prototype.
60763 2001-08-31 Paul Eggert <eggert@twinsun.com>
60765 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60767 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60770 Also, make the following further changes to make this file's
60771 configuration more similar to that of strtol.c:
60772 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60773 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60774 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60775 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60776 changed to signed values.
60778 And make the following changes as well:
60779 Fix copyright notice, as 1999 was missing.
60780 (verify): New macro.
60781 (strtoimax): Check sizes at compile-time, not run-time.
60782 Prefer strtol to strtoll if both work.
60783 (main): Remove; it was not that useful and was a pain to maintain.
60785 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60787 2001-08-31 Jim Meyering <meyering@lucent.com>
60789 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60790 Use an initial, malloc'd, buffer of length 128 rather than
60791 a statically allocated one of length 1024.
60793 2001-08-30 Paul Eggert <eggert@twinsun.com>
60795 Simplify code, partly by assuming autoconf 2.52 semantics.
60797 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60799 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60800 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60802 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60803 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60804 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60805 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60806 jm_AC_HEADER_INTTYPES_H.
60807 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60809 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60811 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60812 Quote first arg of AC_DEFUN.
60813 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60814 since they are needed to parse the include file even if we need
60815 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60816 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60817 but with opposite signedness.
60819 2001-08-30 Paul Eggert <eggert@twinsun.com>
60821 Merge 'exclude' changes from tar 1.13.22.
60822 This fixes one or two unlikely storage allocation overflow bugs,
60823 but doesn't change user-visible behavior otherwise.
60825 2001-08-30 Paul Eggert <eggert@twinsun.com>
60827 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60828 (jm_PREREQ_EXCLUDE): New macro.
60830 2001-08-30 Paul Eggert <eggert@twinsun.com>
60832 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60835 2001-08-30 Paul Eggert <eggert@twinsun.com>
60837 * lib/hash.c: Remove '2001' from copyright notice.
60839 2001-08-30 Paul Eggert <eggert@twinsun.com>
60841 * lib/full-write.h: New file.
60842 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60843 * lib/full-write.c: Correct credits, as cccp.c no longer
60844 exists and anyway it was so heavily changed from the old cccp
60845 code as to be unrecognizable. Include full-write.h.
60846 (full_write) Return size_t, with short writes meaning failure.
60847 All callers changed. This fixes a bug with large buffers
60849 * lib/utime.c: Include full-write.h.
60851 2001-08-30 Paul Eggert <eggert@twinsun.com>
60853 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60854 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60855 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60856 Include if available.
60857 (<xalloc.h>): Include
60858 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60859 (verify): New macro. Use it to verify that EXCLUDE macros do not
60860 collide with FNM macros.
60861 (struct patopts): New struct.
60862 (struct exclude): Use it, as exclude patterns now come with options.
60863 (new_exclude): Support above changes.
60864 (new_exclude, add_exclude_file):
60865 Initial size must now be a power of two to simplify overflow checking.
60866 (free_exclude, fnmatch_no_wildcards): New function.
60867 (excluded_filename): No longer requires options arg, as the options
60868 are determined by add_exclude. Now returns bool, not int.
60869 (excluded_filename, add_exclude):
60870 Add support for the fancy new exclusion options.
60871 (add_exclude, add_exclude_file): Now takes int options arg.
60872 Check for arithmetic overflow when computing sizes.
60873 (add_exclude_file): xrealloc might modify errno, so don't
60874 realloc until after errno might be used.
60876 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60878 (free_exclude): New decl.
60879 (add_exclude, add_exclude_file): Now takes int options arg.
60880 (excluded_filename): No longer requires options arg, as the options
60881 are determined by add_exclude. Now returns bool, not int.
60883 2001-08-30 Paul Eggert <eggert@twinsun.com>
60885 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60887 2001-08-27 Jim Meyering <meyering@lucent.com>
60889 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60891 * lib/version-etc.c (N_): Remove definition.
60892 Revert most of last change.
60893 Instead, simply don't mark the `Copyright...' string for translation.
60894 Based on advice from Paul Eggert.
60896 * lib/strtoxmax.c: Tweak comment.
60898 2001-08-26 Jim Meyering <meyering@lucent.com>
60900 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60902 * m4/xstrtoimax.m4: New file.
60903 * m4/xstrtoumax.m4: Add comments explaining why we
60904 AC_REPLACE_FUNCS(strtol).
60906 2001-08-26 Jim Meyering <meyering@lucent.com>
60908 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60909 of copyright with `%s' so translators don't get an untranslated
60911 (COPYRIGHT_YEAR): Define.
60912 (version_etc): Use fprintf rather than fputs.
60913 Suggestion from Ulrich Drepper.
60915 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60917 * lib/strtoll.c: New file, from GNU libc.
60918 * lib/xstrtoimax.c: New file.
60920 * lib/xstrtol.h: Add xstrtoimax.
60921 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
60922 * lib/strtoimax.c: New file. Likewise, but first define
60925 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60927 * lib/strtoxmax.c: ... then renamed to this.
60929 2001-08-18 Paul Eggert <eggert@twinsun.com>
60931 * m4/inttypes.m4: Add AC_PREREQ(2.13).
60932 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60933 (jm_AC_TYPE_INTMAX_T): New macro.
60934 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60936 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60938 * m4/longlong.m4: Renamed from ulonglong.m4.
60939 * m4/inttypes.m4: Renamed from inttypes_h.m4.
60940 * m4/uintmax_t.m4: Removed.
60942 2001-08-13 Paul Eggert <eggert@twinsun.com>
60944 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60945 Port to Solaris 8, where 'sed' requires a space after the 'r'
60946 command, and where sh dislikes "$/". Clean up the spacing a bit.
60947 Redirect output to $tmp just once.
60949 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
60951 * lib/addext.c (<errno.h>): Include.
60952 (errno): Declare if not defined.
60953 (addext): Work correctly when pathconf returns -1 and leaves
60954 errno alone because there is no limit. Also, work even if
60955 pathconf returns a value greater than SIZE_MAX.
60957 2001-08-12 Jim Meyering <meyering@lucent.com>
60959 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60960 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60961 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60962 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60963 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60964 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60965 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60966 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60967 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60968 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60969 utime.m4, utimes.m4, xstrtoumax.m4:
60970 Quote the first argument in each use of AC_DEFUN.
60972 2001-08-12 Jim Meyering <meyering@lucent.com>
60974 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60975 Simply `return getcwd (NULL, 0);'.
60976 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60977 Use 1300 as initial value for length, not PATH_MAX.
60979 * lib/pathmax.h: Clean up cpp syntax.
60981 2001-08-12 Jim Meyering <meyering@lucent.com>
60983 * lib/gettimeofday.c: New file.
60984 * lib/gtod.h: New file.
60985 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60987 2001-08-05 Jim Meyering <meyering@lucent.com>
60989 * m4/jm-macros.m4: Require autoconf-2.52.
60991 2001-08-04 Jim Meyering <meyering@lucent.com>
60993 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60994 stmt, to get in sync with glibc.
60996 2001-08-03 Paul Eggert <eggert@twinsun.com>
60998 The following changes are from gettext 0.10.39 as maintained by
61001 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61002 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61003 with inverted sense. All uses changed.
61005 * lib/mbswidth.c: Don't include <limits.h>.
61006 Include <stdlib.h> and <string.h> unconditionally.
61007 (iswcntrl, mbsinit, ISCNTRL): New macros.
61008 (mbsnwidth): Use K&R style function declarations.
61009 Don't bother checking for MB_LEN_MAX == 1, since the compiler
61010 can optimize it when MB_CUR_MAX == 1.
61011 The width of control characters is zero, not 1.
61013 2001-08-03 Paul Eggert <eggert@twinsun.com>
61015 The following changes are from gettext 0.10.39 as maintained by
61016 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61018 * m4/codeset.m4: Upgrade to serial AM1.
61019 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61020 all uses changed. Quote first arg of AC_DEFUN.
61021 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61023 * m4/iconv.m4: Upgrade to serial AM2.
61024 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61025 Add --with-libconv-prefix.
61026 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
61027 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61028 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61029 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61030 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61032 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61033 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61034 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61035 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61036 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61037 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61038 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61039 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61040 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61042 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61045 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61046 not the default value.
61048 2001-06-25 Bruno Haible <haible@clisp.cons.org>
61049 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61050 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
61051 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61052 Also check for iswcntrl, used for wcwidth fallback.
61053 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61056 2001-08-03 Jim Meyering <meyering@lucent.com>
61058 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61059 as it was in the original. Reported by Paul Eggert.
61061 2001-07-16 Jim Meyering <meyering@lucent.com>
61063 * m4/gettimeofday.m4: New file.
61064 Prompted by a report from Bernhard Baehr.
61066 2001-07-15 Jim Meyering <meyering@lucent.com>
61068 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61069 stuff. Now it's in ../Makefile.cfg.
61071 2001-07-15 Jim Meyering <meyering@lucent.com>
61073 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61074 (BUILT_SOURCES): Add unlocked-io.h.
61075 (io_functions): Define.
61076 (unlocked-io.h): New rule.
61077 (DISTCLEANFILES): Add unlocked-io.h.
61078 (all-local): Depend on unlocked-io.h, to ensure it is created.
61080 * lib/unlocked-io.hin: New file
61082 * lib/regex.c: Update from glibc.
61084 2001-07-05 Jim Meyering <meyering@lucent.com>
61086 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61088 (libfetish_a_SOURCES): Put all .h files here instead.
61089 Remove a thus-exposed (better checks in automake) duplicate and
61090 two unnecessary .h files.
61092 2001-07-04 Jim Meyering <meyering@lucent.com>
61094 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
61095 that generates jm-glibc-io.m4 so that it doesn't trigger any make
61098 2001-07-02 Jim Meyering <meyering@lucent.com>
61100 The following changes were prompted by suggestions from Bruno Haible.
61102 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61104 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61105 definition of EXTRA_DIST.
61106 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61107 ensure that the generated file is created/updated whenever the list
61108 of $(unlocked_functions) is changed.
61109 (jm-glibc-io.m4): New rule.
61110 (unlocked-io.h): New rule -- currently unused.
61112 2001-06-24 Jim Meyering <meyering@lucent.com>
61114 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61115 unmatched right bracket, rather than kludging it with an extra,
61116 falsely-matching quote in a comment. Patch by Akim Demaille.
61118 2001-06-11 Jim Meyering <meyering@lucent.com>
61120 * lib/regex.c: Update from GNU libc.
61122 2001-05-27 Jim Meyering <meyering@lucent.com>
61124 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61125 Check for ut_type in struct utmp.
61127 2001-05-27 Jim Meyering <meyering@lucent.com>
61129 * lib/readutmp.h (UT_TYPE): Define.
61131 2001-05-24 Jim Meyering <meyering@lucent.com>
61133 * lib/argmatch.c: Include "quote.h".
61134 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
61135 quote function. Reported by Göran Uddeborg.
61137 2001-05-22 Jim Meyering <meyering@lucent.com>
61139 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61140 now that we use the package-supplied version unconditionally.
61141 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61143 2001-05-21 Jim Meyering <meyering@lucent.com>
61145 * m4/regex.m4: Change a couple backticks to single quotes to avoid
61146 shell syntax errors.
61148 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61150 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61152 2001-05-20 Paul Eggert <eggert@twinsun.com>
61154 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61155 Don't bother to check library strftime, since
61156 we'll be using our own my_strftime function anyway.
61157 Define my_strftime instead of strftime.
61159 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
61161 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61162 which is not yet declared.
61164 2001-05-15 Jim Meyering <meyering@lucent.com>
61166 * m4/regex.m4: Use proper quoting so brackets appear in the test
61168 Reported by, and with help from, Bruno Haible.
61170 2001-05-13 Jim Meyering <meyering@lucent.com>
61172 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61175 2001-05-11 Paul Eggert <eggert@twinsun.com>
61177 dirname code cleanup. base_name now behaves more compatibly
61178 with POSIX basename when given file names that have trailing
61179 slashes, and similarly for dir_name. Add new primitives
61180 base_len and dir_len. Put the directory-name-related decls
61183 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61184 * lib/backupfile.c (base_name): Likewise.
61185 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61186 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61187 * lib/makepath.c (strip_trailing_slashes): Likewise.
61188 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61189 ISSLASH): Likewise.
61190 * lib/rename.c (strip_trailing_slashes): Likewise.
61191 * lib/same.c (base_name): Likewise.
61192 * lib/stripslash.c (ISSLASH): Likewise.
61194 * lib/addext.c: Include <dirname.h> after size_t is defined.
61195 * lib/backupfile.c: Likewise.
61197 * lib/addext.c (addext): Use base_len to trim redundant
61198 trailing slashes instead of doing it ourselves.
61199 But do not trim the last slash if it is not redundant.
61201 * lib/backupfile.c (find_backup_file_name,
61202 max_backup_version): Use base_len instead of rolling it ourselves.
61203 Handle the case of "" and (on DOS) "C:" correctly.
61205 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61206 needed. Include <string.h>, <dirname.h>.
61207 (base_name): Allow file names ending in slashes, other than names
61208 that are all slashes. In this case, return the basename followed
61209 by the slashes. This is more general, and can be used in places
61210 where the original base_name purposely had an assertion failure.
61211 (base_len): New function.
61213 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61214 Do not include <assert.h>; no longer needed.
61216 (memrchr): Remove decl.
61217 (dir_name_r): Remove.
61218 (dir_len): Renamed from dirlen. All callers changed.
61219 Rewrite in terms of base_name, for simplicity and consistency.
61220 (dir_name): Never return NULL. All callers changed.
61221 Do not include <stdlib.h> in test program; no longer needed.
61222 return 0; is fine for test program.
61224 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61226 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61228 * lib/path-concat.c (path_concat): Use base_len to compute
61229 base length, not strlen; this means we cannot rely on memcpy
61232 * lib/same.c (STREQ): Remove.
61233 (same_name): Handle the case where the basename ends in trailing '/'.
61235 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61236 a slash was stripped. Do not strip the last slash after a
61237 file system prefix.
61239 2001-05-11 Paul Eggert <eggert@twinsun.com>
61241 * lib/Makefile.am (libfetish_a_SOURCES):
61242 Add strftime.c, since we now compile it on all hosts.
61244 * lib/strftime.c (my_strftime):
61245 Define to nstrftime if emacs, but only if my_strftime is not defined.
61246 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61247 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61248 Add one more extra argument: a nanoseconds value.
61251 (my_strftime function): Add %N format.
61252 (emacs_strftimeu): Renamed from emacs_strftime,
61253 with extra ut argument.
61255 2001-05-09 Paul Eggert <eggert@twinsun.com>
61257 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61259 2001-04-21 Jim Meyering <meyering@lucent.com>
61261 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61264 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61266 * m4/ftruncate.m4: Check for chsize.
61267 Link with ftruncate.o unconditionally if ftruncate is missing.
61268 This was required when cross-compiling to i586-mingw32msvc.
61270 2001-04-08 Jim Meyering <meyering@lucent.com>
61272 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61273 recomputed; that's necessary when the offset spans a DST transition.
61274 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61276 2001-04-02 Jim Meyering <meyering@lucent.com>
61278 * lib/regex.h, regex.c: Update from GNU libc.
61280 2001-03-24 Jim Meyering <meyering@lucent.com>
61282 * m4/jm-macros.m4: Require autoconf-2.49d.
61284 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61286 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61288 2001-03-19 Paul Eggert <eggert@twinsun.com>
61290 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61292 2001-03-17 Jim Meyering <meyering@lucent.com>
61294 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61295 now that the version in autoconf is equivalent.
61296 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61298 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61299 Suggestion from Akim Demaille.
61301 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61302 (jm_PREREQ_TEMPNAME): New function.
61304 2001-03-16 Paul Eggert <eggert@twinsun.com>
61306 * lib/tempname.c (uint64_t): Define to uintmax_t if
61307 not defined, and if UINT64_MAX is not defined.
61308 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61309 Reported by John David Anglin.
61311 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61313 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61314 resolve alias if codeset is empty.
61315 * lib/config.charset (BeOS): Use wildcard syntax.
61317 2001-03-13 Jim Meyering <meyering@lucent.com>
61319 * lib/path-concat.c (path_concat)
61320 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61321 concatenating e.g., `C:' and `foo'.
61324 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61326 * lib/localcharset.c (locale_charset): Don't use
61327 setlocale(LC_CTYPE,NULL). Don't return NULL.
61328 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61330 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61332 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61333 support for DOS/DJGPP.
61335 2001-03-01 Paul Eggert <eggert@twinsun.com>
61337 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61338 lacks mkstemp. Compile our own tempname.c if we compile our own
61339 mkstemp.c, as mkstemp relies on tempname.
61341 2001-03-01 Jim Meyering <meyering@lucent.com>
61343 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61344 AH_VERBATIM really does output its argument verbatim.
61346 2001-02-28 Paul Eggert <eggert@twinsun.com>
61348 * lib/Makefile.am (libfetish_a_SOURCES):
61349 Add dup-safer.c, fopen-safer.c.
61350 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61352 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61353 * lib/unistd-safer.h: New files.
61355 2001-02-25 Paul Eggert <eggert@twinsun.com>
61357 The mkstemp replacement is taken from glibc 2.2.2, with some
61358 portability fixes for use outside glibc, as follows:
61360 * lib/tempname.c (struct_stat64): New macro.
61361 (direxists, __gen_tempname): Use it.
61362 This avoids a portability problem with Solaris 8.
61364 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61365 (<stddef.h>, <stdint.h>, <string.h>):
61366 Include only if STDC_HEADERS || _LIBC.
61367 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61368 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61369 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61370 (__set_errno): Define this macro if <errno.h> doesn't.
61371 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61372 Define these macros if <stdio.h> doesn't.
61373 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61374 Define these macros if <sys/stat.h>
61375 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61376 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61377 __xstat64): Define if not _LIBC.
61378 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61379 (__gen_tempname): Invoke gettimeofday only if
61380 HAVE_GETTIMEOFDAY || _LIBC;
61381 otherwise, fall back on plain "time".
61382 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61384 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61386 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61388 2001-02-18 Paul Eggert <eggert@twinsun.com>
61390 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61392 2001-02-17 Paul Eggert <eggert@twinsun.com>
61394 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61395 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61396 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61397 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61399 2001-02-17 Paul Eggert <eggert@twinsun.com>
61401 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61402 Remove workaround macros for hosts that have mbrtowc but not
61403 mbstate_t, as we now insist on proper declarations for both
61404 before using mbrtowc.
61406 2001-02-17 Jim Meyering <meyering@lucent.com>
61408 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61409 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61410 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61413 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61414 rather than AC_CACHE_VAL.
61416 2001-02-17 Jim Meyering <meyering@lucent.com>
61418 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61419 around included file name.
61421 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61423 * lib/strftime.c: Update from GNU libc (the only changes were to
61426 2001-02-17 Jim Meyering <meyering@lucent.com>
61428 * lib/regex.c: Update from libc.
61430 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61432 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61435 2001-02-16 Paul Eggert <eggert@twinsun.com>
61437 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61438 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61439 Reported by Mark Hounschell via Paul Eggert.
61441 2001-02-07 Jim Meyering <meyering@lucent.com>
61443 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61445 2001-02-05 Jim Meyering <meyering@lucent.com>
61447 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61448 it includes the patch required for `large file' support with at least
61449 HP-UX's 10.20 /bin/cc.
61451 2001-02-03 Jim Meyering <meyering@lucent.com>
61453 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61454 AS_IF, now that it works once again (mysteriously).
61455 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61457 2001-01-30 Jim Meyering <meyering@lucent.com>
61459 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61460 * m4/chown.m4: Rename conftestchown to conftest.chown.
61461 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61462 s/conftestdir2/conftest.d2/.
61463 * m4/utimes.m4: s/conftestdata/conftest.data/
61464 Inspired by Pavel Roskin's change in autoconf.
61466 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61468 * lib/config.charset: Update for FreeBSD 4.2.
61470 2001-01-27 Jim Meyering <meyering@lucent.com>
61472 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61474 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61476 2001-01-26 Jim Meyering <meyering@lucent.com>
61478 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61479 quotearg.c includes it.
61481 2001-01-26 Jim Meyering <meyering@lucent.com>
61483 * lib/quotearg.c: Include stddef.h.
61484 * lib/quote.c: Include stddef.h.
61485 Reported by Axel Kittenberger.
61487 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61488 line in double quotes so that it evokes a better diagnostic.
61489 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61490 Reported by Axel Kittenberger.
61492 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
61494 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61495 as if it was a `charset'.
61497 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61499 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61502 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61504 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61505 to avoid a warning. Add back 'const' to inptr.
61507 2001-01-20 Jim Meyering <meyering@lucent.com>
61509 Be sure that headers are checked before used in code compiled
61510 for the type checks.
61511 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61512 In place of that, invoke jm_CHECK_ALL_TYPES.
61513 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61514 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61515 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61516 The check for ssize_t was mistakenly run before the test for unistd.h.
61518 The configure-time check for stdbool.h was missing.
61519 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61520 (jm_PREREQ_HASH): New function.
61522 2001-01-17 Jim Meyering <meyering@lucent.com>
61524 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61525 for autoconf-2.49c.
61526 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61528 2001-01-16 Jim Meyering <meyering@lucent.com>
61530 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61533 2001-01-14 Jim Meyering <meyering@lucent.com>
61535 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61536 foo and bar. Create conftestdir/ in the script, not in the C code.
61537 Remove directories in the script, not in the C code.
61538 Remove conftestdir{,2} before trying to create the directory.
61539 Make the entire configure script fail if the mkdir fails.
61541 2001-01-14 Jim Meyering <meyering@lucent.com>
61543 * lib/rename.c: New file. From Volker Borchert.
61544 Include stdlib.h, string.h or strings.h, and xalloc.h.
61545 Use strip_trailing_slashes rather than open-coding it.
61547 2001-01-03 Paul Eggert <eggert@twinsun.com>
61549 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61551 2001-01-03 Jim Meyering <meyering@lucent.com>
61553 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61554 of local `inptr' to avoid warning with some system declarations of
61557 2001-01-02 Volker Borchert <bt@teknon.de>
61559 * m4/rename.m4: New file.
61560 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61562 2001-01-01 Jim Meyering <meyering@lucent.com>
61564 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61565 even on systems with utmpx.h. It's necessary for the declaration of
61566 utmp's ut_user member. Reported by Andreas Jaeger.
61568 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61569 available. They are required for the declarations of getgrgid and
61571 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61572 Reported by Andreas Jaeger.
61574 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
61576 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61577 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61578 so `make install' also works in VPATH builds.
61580 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
61582 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61583 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61584 can be used in subdirectories.
61586 2000-12-29 Paul Eggert <eggert@twinsun.com>
61588 * lib/modechange.c: Do not assume that mode_t uses the
61589 traditional octal encoding. E.g. "chmod 1 FOO" should set
61590 the other-execute bit of FOO even if S_IXOTH != 1.
61592 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61593 WOTH, XOTH, ALLM): New macros.
61594 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61595 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61597 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61598 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61600 No need to use uintmax_t; unsigned long is long enough.
61601 Don't bother to get suffix since we don't use it.
61603 2000-12-26 Jim Meyering <meyering@lucent.com>
61605 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61606 better with autoheader.
61608 2000-12-24 Jim Meyering <meyering@lucent.com>
61610 * lib/hash.c (is_prime): Return explicit boolean values.
61611 (hash_get_first): Return NULL to appease Irix5.6's 89.
61612 Reported by Nelson Beebe.
61614 2000-12-19 Bruno Haible <haible@clisp.cons.org>
61616 * lib/localcharset.c (locale_charset): Add support for Win32.
61618 2000-12-18 Paul Eggert <eggert@twinsun.com>
61620 * lib/physmem.h, lib/physmem.c: New files.
61622 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61623 (noinst_HEADERS): Add physmem.h.
61625 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61626 't' for compatibility with Solaris 8 sort.
61628 2000-12-18 Bruno Haible <haible@clisp.cons.org>
61630 * lib/config.charset: Add support for BeOS.
61632 2000-12-17 Jim Meyering <meyering@lucent.com>
61634 * m4/dos.m4 (jm_AC_DOS): New file and macro.
61635 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61637 2000-12-16 Jim Meyering <meyering@lucent.com>
61639 This bug had a serious impact on chown: `chown N:M FILE' (for integer
61640 N and M) would have treated it like `chown N:N FILE'.
61642 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61644 2000-12-16 Jim Meyering <meyering@lucent.com>
61646 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61647 SHELLS_FILE to a file name that's useful on djgpp systems.
61649 (ADDITIONAL_DEFAULT_SHELLS): Define.
61650 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61651 Based mostly on a patch from Prashant TR.
61653 2000-12-16 Bruno Haible <haible@clisp.cons.org>
61655 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61656 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61657 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61659 2000-12-08 Andreas Schwab <schwab@suse.de>
61661 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61662 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61664 2000-12-07 Jim Meyering <meyering@lucent.com>
61666 * lib/stripslash.c (ISSLASH): Define.
61667 (strip_trailing_slashes): Use ISSLASH rather than comparing against
61671 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61672 (dir_name_r): Declare this function as static.
61673 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61674 manifest itself on a name containing a mix of slashes and
61676 Make this function work with names starting with a DOS-style
61677 drive letter and colon prefix.
61678 (dir_name): Append `.' if necessary.
61679 Based mostly on patches from Prashant TR and Eli Zaretskii.
61681 * lib/dirname.h (dir_name_r): Remove prototype.
61683 2000-12-06 Paul Eggert <eggert@twinsun.com>
61685 * m4/off_t-format.m4: Remove this file.
61686 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61688 2000-12-06 Jim Meyering <meyering@lucent.com>
61690 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61691 replacement strtoull, we may well need the replacement strtoul, too.
61692 Check for declarations of strtoul and strtoull.
61693 Check for strtol. Mainly as a cue to cause automake to include
61694 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61695 Check for limits.h -- strtol.c needs it.
61697 2000-12-05 Jim Meyering <meyering@lucent.com>
61699 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61701 2000-12-04 Jim Meyering <meyering@lucent.com>
61703 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61704 Also include memory.h, stdlib.h, unistd.h if appropriate.
61705 Reported by Andreas Jaeger (conflicting declaration of malloc).
61707 2000-12-02 Jim Meyering <meyering@lucent.com>
61709 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61710 * m4/jm-macros.m4 (jm_MACROS): require it.
61712 2000-12-02 Jim Meyering <meyering@lucent.com>
61714 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61716 2000-12-01 Paul Eggert <eggert@twinsun.com>
61718 * lib/memrchr.c: Include <config.h> before any system include file.
61720 2000-11-30 Jim Meyering <meyering@lucent.com>
61722 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61724 2000-11-30 Jim Meyering <meyering@lucent.com>
61726 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61728 2000-11-29 Paul Eggert <eggert@twinsun.com>
61730 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61732 2000-11-26 Jim Meyering <meyering@lucent.com>
61734 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
61736 2000-11-22 Paul Eggert <eggert@twinsun.com>
61738 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61739 size of (size_t) -1; it's not portable.
61741 2000-11-17 Jim Meyering <meyering@lucent.com>
61743 * lib/strstr.c: Update from GNU libc.
61745 2000-11-17 Akim Demaille <akim@epita.fr>
61747 * lib/obstack.h: Formatting changes.
61748 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61749 prevent type checking.
61750 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61751 cast the value to (void *): assigning a `foo *' to a `void *'
61753 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61755 2000-11-16 Jim Meyering <meyering@lucent.com>
61757 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61759 2000-11-11 Jim Meyering <meyering@lucent.com>
61761 * lib/error.c: Add a couple #includes, merging from GNU libc version.
61763 2000-11-10 Jim Meyering <meyering@lucent.com>
61765 * lib/obstack.h: Update from GNU libc.
61766 * lib/obstack.c: Likewise.
61768 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61770 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61772 2000-11-06 Paul Eggert <eggert@twinsun.com>
61774 * lib/getusershell.c (setusershell): Use rewind rather than
61775 fseek/fseeko, to avoid configuration hassles with fseeko.
61776 Don't bother opening SHELLS_FILE if shellstream is NULL;
61777 it's not necessary.
61779 2000-11-05 Jim Meyering <meyering@lucent.com>
61781 * lib/makepath.h (make_dir): Declare.
61782 * lib/makepath.c (make_dir): Remove `static' attribute.
61785 2000-11-04 Jim Meyering <meyering@lucent.com>
61787 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61789 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61791 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61792 last one in a bucket, advance to the next bucket.
61794 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61796 * lib/fnmatch.c: Do not comment out all the code if we are using
61797 the GNU C library, because in some cases we are replacing buggy
61798 code in the GNU C library itself.
61800 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61802 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61803 (regex_compile): Catch bogus \(\1\).
61805 2000-10-30 Paul Eggert <eggert@twinsun.com>
61807 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61808 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61809 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61811 2000-10-30 Paul Eggert <eggert@twinsun.com>
61813 * lib/error.h, getline.h, modechange.h:
61814 Remove "2000" from Copyright line, as the file hasn't been
61815 changed this year other than in the copyright notice.
61817 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61818 was changed this year.
61820 2000-10-29 Jim Meyering <meyering@lucent.com>
61822 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61824 * m4/ls-mntd-fs.m4: Likewise
61826 2000-10-29 Jim Meyering <meyering@lucent.com>
61828 * lib/xstat.in: Fix grammar in comment.
61830 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61832 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61833 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61834 doesn't define __restrict_arr.
61836 2000-10-28 Jim Meyering <meyering@lucent.com>
61838 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61839 (jm_PREREQ_MEMCHR): New function.
61841 2000-10-28 Jim Meyering <meyering@lucent.com>
61843 * lib/memchr.c: Update from libc.
61844 Adjust for portability:
61845 [HAVE_STDLIB_H]: Include stdlib.h.
61846 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61847 Undef __memchr, too.
61848 [!weak_alias]: Define __memchr to memchr.
61850 * lib/regex.c: Update from libc.
61851 * lib/regex.h: Likewise.
61852 * lib/getopt1.c: Likewise.
61853 * lib/memcmp.c: Likewise.
61855 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61856 Avoid using fseek, when possible -- it's broken by design.
61857 Patch by Ulrich Drepper.
61859 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
61861 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61862 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61863 Giving in to popular pressure to shut up the compiler with casts.
61865 2000-10-26 Jim Meyering <meyering@lucent.com>
61867 * lib/strftime.c: Update from libc.
61869 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
61871 * regex.c: More `unsigned char' -> `re_char' changes.
61872 Also change several `int' into `re_wchar_t'.
61873 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61874 (PUSH_FAILURE_POINTER): Don't cast any more.
61875 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61876 We want GCC to complain, since this piece of code makes
61877 re_match non-reentrant, which *should* be fixed.
61878 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61879 (EXTEND_BUFFER): Use RETALLOC.
61880 (SET_LIST_BIT): Don't cast.
61881 (re_wchar_t): New type.
61882 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61883 that those two functions will always properly return.
61884 (IMMEDIATE_QUIT_CHECK): Cast to void.
61885 (analyse_first): Use recursion rather than an explicit stack.
61886 (re_compile_fastmap): Can't fail anymore.
61887 (re_search_2): Don't check re_compile_fastmap for failure.
61888 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61889 Now also sets the new value (passed in a new argument).
61890 (re_match_2_internal): Use it.
61891 Also, use a new var `reg' of type size_t when looping through regs
61892 rather than reuse the inappropriate `mcnt'.
61894 2000-10-25 Jim Meyering <meyering@lucent.com>
61896 * lib/obstack.c: Update from libc.
61898 2000-10-24 Kenichi Handa <handa@etl.go.jp>
61900 * regex.c (regex_compile): Change the way of handling a range from
61901 a char less than 256 to a char not less than 256.
61903 2000-10-24 Andrew Innes <andrewi@gnu.org>
61905 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61907 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61908 so that re_search functions only quit when callers expect them to.
61910 2000-10-23 Jim Meyering <meyering@lucent.com>
61912 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61913 wrong. That set_locale call must not have any side effects.
61916 2000-10-22 Jim Meyering <meyering@lucent.com>
61918 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61919 [CYCLIC]: Remove now-unused definition.
61921 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61922 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61923 Suggestion from Ulrich Drepper.
61925 2000-10-21 Jim Meyering <meyering@lucent.com>
61927 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61928 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61929 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61931 2000-10-21 Jim Meyering <meyering@lucent.com>
61933 * lib/dirname.c (memrchr): Declare if necessary.
61934 (dir_name): Remove the restriction that there be no
61935 trailing slashes. Now, this code skips past them, effectively
61937 [TEST_DIRNAME] (main): New unit tests.
61939 * lib/memrchr.c: New file from GNU libc.
61940 Undef __memrchr, too.
61941 [!weak_alias]: Define __memrchr to memrchr.
61942 Guard weak_alias use with `#ifdef weak_alias'.
61944 2000-10-21 Jim Meyering <meyering@lucent.com>
61946 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61947 (dir_name): Use dir_name_r.
61948 * lib/dirname.h (dir_name_r): Declare it.
61950 2000-10-17 Jim Meyering <meyering@lucent.com>
61952 * lib/quote.h (PARAMS): Define and use.
61953 Reported by Akim Demaille.
61955 * lib/getopt.c: Update from libc.
61957 2000-10-16 Jim Meyering <meyering@lucent.com>
61959 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61963 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
61965 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61967 2000-09-25 Jim Meyering <meyering@lucent.com>
61969 * lib/md5.h (rol): Define (from GnuPG).
61971 * lib/sha.c: Give credit (GnuPG) where due.
61972 (M): Use rol rather than open-coding it.
61973 Add a FIXME comment.
61975 2000-09-21 Jim Meyering <meyering@lucent.com>
61977 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61978 Reported by Michael Stone.
61980 2000-09-20 Jim Meyering <meyering@lucent.com>
61982 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61983 (noinst_HEADERS): Add sha.h.
61984 Based on code from Scott G. Miller and from GnuPG.
61986 2000-09-18 Jim Meyering <meyering@lucent.com>
61988 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61989 LIBS. Otherwise, everyone ends up linking with -lelf for some
61991 Reported by Mike Stone.
61993 2000-09-15 Jim Meyering <meyering@lucent.com>
61995 * lib/regex.c: Update from libc.
61997 2000-09-10 Jim Meyering <meyering@lucent.com>
61999 * lib/getopt.c (_getopt_internal): Update from glibc.
62001 2000-09-09 Jim Meyering <meyering@lucent.com>
62003 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62004 think it should be used as a general replacement for isascii.
62005 * lib/fnmatch.c: Likewise.
62006 * lib/mbswidth.c: Likewise
62007 * lib/regex.c: Likewise.
62010 * lib/userspec.c: Include sys/param.h and limits.h.
62012 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62013 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62014 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62015 UID, GID. Check range.
62017 2000-09-06 Jim Meyering <meyering@lucent.com>
62019 * lib/getopt.c (_getopt_internal): Update from glibc.
62021 2000-08-30 Jim Meyering <meyering@lucent.com>
62023 * lib/strftime.c: Merge in changes from GNU libc.
62025 2000-08-26 Jim Meyering <meyering@lucent.com>
62027 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62028 * m4/fpending.m4: New file.
62030 2000-08-26 Jim Meyering <meyering@lucent.com>
62032 * lib/closeout.c: Include "__fpending.h".
62033 (close_stdout_status): Return right away if there's nothing to flush.
62035 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62036 * lib/__fpending.c: New file.
62037 * lib/__fpending.h: New file.
62039 2000-08-20 Jim Meyering <meyering@lucent.com>
62041 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62042 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
62043 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
62045 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
62047 Improve fileutils installation on systems where running
62048 programs (like install) can't be unlinked.
62049 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62050 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62052 2000-08-07 Paul Eggert <eggert@twinsun.com>
62054 Standardize on "memory exhausted" instead of "Memory exhausted"
62055 or "virtual memory exhausted".
62056 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62057 "virtual memory exhausted".
62058 * lib/same.c (same_name): Invoke xalloc_die instead of printing
62060 * lib/userspec.c (parse_user_spec): Likewise.
62061 * lib/bumpalloc.h: comment fix
62062 * lib/same.c, userspec.c: Include xalloc.h.
62064 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62065 not char *const and pointing to a constant array.
62066 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62067 (xrealloc): Comment fix.
62069 * lib/userspec.c (parse_user_spec):
62070 Don't translate a message until just before returning,
62071 to avoid unnecessary translation.
62073 2000-08-07 Jim Meyering <meyering@lucent.com>
62075 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62076 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62077 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62078 getgroups.c, gethostname.c, getopt.h, group-member.c,
62079 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62080 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62081 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62082 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62083 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62084 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62085 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62086 yesno.c: Back out Copyright date changes for each file with no change
62087 this year. This eases coordination with other programs using the same
62088 source code modules. From Paul Eggert.
62090 2000-08-06 Paul Eggert <eggert@twinsun.com>
62092 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62093 not char, for compatibility with glibc 2.1.3 strftime.c.
62095 2000-08-03 Greg McGary <greg@mcgary.org>
62097 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62098 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62099 (EXTEND_BUFFER): Use them.
62101 2000-08-01 Jim Meyering <meyering@lucent.com>
62103 * lib/dirname.c (ISSLASH): Define.
62104 (BACKSLASH_IS_PATH_SEPARATOR): Define.
62105 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62106 both `\' and `/' may be use as path separators.
62107 Based on a patch from Prashant TR.
62109 2000-07-31 Paul Eggert <eggert@twinsun.com>
62111 * lib/quotearg.c (quotearg_n_options): Don't make the initial
62112 slot vector a constant, since it might get modified.
62114 2000-07-31 Jim Meyering <meyering@lucent.com>
62116 * lib/xmalloc.c: Use `virtual memory exhausted', not
62117 `Memory exhausted'.
62118 * lib/obstack.c (print_and_abort): Likewise.
62120 2000-07-30 Paul Eggert <eggert@twinsun.com>
62122 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62123 buffer, so that the caller can always quote one small
62124 component of a "memory exhausted" message in slot 0.
62125 From a suggestion by Jim Meyering.
62127 2000-07-30 Jim Meyering <meyering@lucent.com>
62129 * lib/makepath.c (make_path): Quote the other instance, too.
62131 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62132 (STATIC_BUF_SIZE): Define.
62133 (quotearg_n_options): Use only statically allocated storage when
62134 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62135 than STATIC_BUF_SIZE.
62137 2000-07-29 Jim Meyering <meyering@lucent.com>
62139 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62140 * lib/dirname.c (dir_name): Likewise.
62142 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62145 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62146 (dir_name): Assert that there are no trailing slashes.
62148 2000-07-29 Bruno Haible <haible@clisp.cons.org>
62150 * lib/mbswidth.h (mbswidth): Add a flags argument.
62151 (mbswidth): New declaration.
62152 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62153 * lib/mbswidth.c (mbswidth): Add a flags argument.
62154 (mbsnwidth): New function.
62156 2000-07-24 Jim Meyering <meyering@lucent.com>
62158 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
62160 2000-07-23 Paul Eggert <eggert@twinsun.com>
62162 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62164 2000-07-23 Paul Eggert <eggert@twinsun.com>
62166 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62167 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62168 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62169 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62170 invoke multibyte primitives.
62172 2000-07-23 Paul Eggert <eggert@twinsun.com>
62175 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62176 so that mbstate_t is always defined.
62178 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62179 be 1 in at least one GCC installation, and this configuration
62180 error is likely to be common. Ignoring MB_LEN_MAX hurts
62181 performance on hosts that have mbrtowc but have only unibyte
62182 locales, but I assume these hosts are rare.
62184 2000-07-23 Paul Eggert <eggert@twinsun.com>
62186 * lib/mbswidth.c (_XOPEN_SOURCE):
62187 Don't define; this causes problems on Solaris 7.
62188 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62190 2000-07-23 Jim Meyering <meyering@lucent.com>
62192 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62193 too: getgrgid, getpwuid, getuid.
62195 2000-07-23 Jim Meyering <meyering@lucent.com>
62197 * lib/basename.c (base_name): Add an assertion.
62199 2000-07-23 Bruno Haible <haible@clisp.cons.org>
62201 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62202 shadow its mbsinit function.
62204 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62206 * lib/mbswidth.h: New file.
62207 * lib/mbswidth.c: New file.
62208 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62209 (noinst_HEADERS): Add mbswidth.h.
62211 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62213 * lib/config.charset: Add support for FreeBSD. Improve support for
62216 2000-07-16 Bruno Haible <haible@clisp.cons.org>
62218 * m4/mbswidth.m4: New file.
62219 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62221 2000-07-15 Jim Meyering <meyering@lucent.com>
62223 * lib/makepath.c: Include quote.h.
62224 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62225 corresponding argument in a `quote (...)' call.
62226 Give better diagnostics.
62228 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62229 (noinst_HEADERS): Add quote.h.
62231 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
62232 from tar's src/misc.c.
62233 * lib/quote.h: New file. Prototypes for same.
62235 2000-07-14 Paul Eggert <eggert@twinsun.com>
62237 From a suggestion by Bruno Haible.
62238 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62239 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62240 to decide whether to define the BeOS workaround macro;
62241 this adjusts to the change to AC_MBSTATE_T.
62243 2000-07-14 Jim Meyering <meyering@lucent.com>
62245 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62246 jm_AC_TYPE_UINTMAX_T.
62248 2000-07-13 Paul Eggert <eggert@twinsun.com>
62250 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62252 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62253 quotearg_buffer_restyled): Add support for
62254 clocale_quoting_style. Undo previous change to
62255 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62256 and "{RIGHT QUOTATION MARK}" msgids.
62258 2000-07-10 Paul Eggert <eggert@twinsun.com>
62260 From a suggestion by Bruno Haible.
62261 * m4/mbstate_t.m4 (AC_MBSTATE_T):
62262 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
62263 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62264 and mbstate_t, to a single-part test that simply defines mbstate_t.
62265 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62266 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62268 2000-07-10 Jim Meyering <meyering@lucent.com>
62270 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62272 * m4/gnu-source.m4: Output to confdefs.h directly.
62273 Suggestion from Akim Demaille.
62275 2000-07-09 Paul Eggert <eggert@twinsun.com>
62277 The old behavior of quoting `like this' doesn't look good with
62278 newer, ISO-style fonts. See:
62279 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62281 Instead, quote "like this" by default. Let the translator
62282 tailor the locale-specific quoting behavior by providing
62283 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62285 * lib/quotearg.c (N_): New macro.
62286 (gettext_default): New function.
62287 (quotearg_buffer_restyled): Use
62288 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62289 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62291 2000-07-09 Jim Meyering <meyering@lucent.com>
62293 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62294 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62296 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62297 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62299 2000-07-09 Jim Meyering <meyering@lucent.com>
62301 * lib/Most files: Update copyright dates to include 2000.
62303 2000-07-08 Jim Meyering <meyering@lucent.com>
62305 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62307 (xgethostname): Remove now-unnecessary #ifdef.
62308 Move declaration of `err' into loop where it's used.
62310 2000-07-05 Paul Eggert <eggert@twinsun.com>
62311 and Bruno Haible <haible@clisp.cons.org>
62313 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62314 only if the test for an object-type mbstate_t fails. This
62315 prevents us from mistakenly reporting that mbstate_t is a
62316 system object type after we "#define mbstate_t int" to work
62319 2000-07-05 Paul Eggert <eggert@twinsun.com>
62320 and Bruno Haible <haible@clisp.cons.org>
62322 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62324 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62326 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62328 Include <ctype.h> for use of isalpha.
62330 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62332 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62333 by allocating a larger buffer. Test the gethostname return value for
62334 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62335 returns an error and ENAMETOOLONG isn't defined.
62337 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62339 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62342 2000-07-04 Jim Meyering <meyering@lucent.com>
62344 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62345 of the deprecated AC_CHECKING.
62347 2000-07-04 Jim Meyering <meyering@lucent.com>
62349 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62350 Reported by Bruno Haible.
62352 2000-07-04 Jim Meyering <meyering@lucent.com>
62354 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62355 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62358 2000-07-03 Paul Eggert <eggert@twinsun.com>
62360 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62361 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62363 2000-07-03 Paul Eggert <eggert@twinsun.com>
62364 and Bruno Haible <haible@clisp.cons.org>
62366 * lib/quotearg.c (mbrtowc):
62367 Assign to *pwc, and return 1 only if result is nonzero.
62368 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62370 2000-07-03 Jim Meyering <meyering@lucent.com>
62372 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62374 2000-07-03 Jim Meyering <meyering@lucent.com>
62376 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62377 This is necessary to get a definition of e.g., UTMP_FILE on
62381 2000-07-02 Jim Meyering <meyering@lucent.com>
62383 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62385 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62386 AC_LIBOBJ(function_name).
62387 * m4/chown.m4: Likewise.
62388 * m4/fnmatch.m4: Likewise.
62389 * m4/ftruncate.m4: Likewise.
62390 * m4/getgroups.m4: Likewise.
62391 * m4/getline.m4: Likewise.
62392 * m4/group-member.m4: Likewise.
62393 * m4/jm-macros.m4: Likewise.
62394 * m4/lstat.m4: Likewise.
62395 * m4/malloc.m4: Likewise.
62396 * m4/memcmp.m4: Likewise.
62397 * m4/nanosleep.m4: Likewise.
62398 * m4/putenv.m4: Likewise.
62399 * m4/realloc.m4: Likewise.
62400 * m4/regex.m4: Likewise.
62401 * m4/stat.m4: Likewise.
62402 * m4/strftime.m4: Likewise.
62404 2000-07-02 Jim Meyering <meyering@lucent.com>
62406 * lib/quotearg.c (mbstate_t): Don't define here.
62408 2000-07-02 Jim Meyering <meyering@lucent.com>
62410 * lib/nanosleep.c (SIGCONT): Define if not already defined.
62412 2000-07-01 Jim Meyering <meyering@lucent.com>
62414 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62416 2000-07-01 Jim Meyering <meyering@lucent.com>
62418 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62421 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62423 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62424 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62426 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62428 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62429 per change in ../m4/ls-mntd-fs.m4.
62430 (read_filesystem_list): Ignore symbolic links.
62432 2000-06-29 Jim Meyering <meyering@lucent.com>
62434 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62435 for declaration of strcmp.
62437 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62439 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62440 Avoid warning by casting result to `char *' to remove `const'.
62442 2000-06-28 Jim Meyering <meyering@lucent.com>
62444 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62445 included by quotearg.c, for which we perform this test. From
62448 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62450 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62451 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62452 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62454 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62456 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62458 2000-06-26 Paul Eggert <eggert@twinsun.com>
62460 savedir now sets errno on failure and invokes xmalloc to get memory.
62461 Fix a couple of other minor bugs while we're at it.
62463 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62464 (NAMLEN): Remove macro.
62465 (malloc, realloc): Remove decls.
62466 (stpcpy): Likewise.
62467 ("xalloc.h"): Include.
62468 (NAME_SIZE_DEFAULT): New macro.
62469 (savedir): Use xmalloc / xrealloc to allocate memory.
62470 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62471 Skip "" directory entries.
62472 Use strlen to calculate directory entry length, since the old method
62473 is rarely used these days and isn't worth supporting.
62474 Don't use a pointer after freeing it.
62475 Check for integer overflow when calculating allocation size.
62476 Use memcpy to copy entries, instead of stpcpy.
62477 Set errno properly when returning NULL.
62478 Check for readdir error.
62480 2000-06-26 Jim Meyering <meyering@lucent.com>
62482 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62484 2000-06-25 Jim Meyering <meyering@lucent.com>
62486 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62487 Linux header bug when _XOPEN_SOURCE is defined to 500.
62489 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62491 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62494 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62496 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62498 Don't include <stdlib.h>. Don't declare malloc, realloc.
62500 2000-06-24 Jim Meyering <meyering@lucent.com>
62502 * m4/strerror_r.m4: Revive this file -- to try out an experimental
62503 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62504 for which strerror does return char*, but which lacks a conveniently
62505 accessible declaration of the function. If the compile-test says
62506 strerror_r doesn't work, then resort to a `run'-test that works on
62507 BeOS and segfaults on DEC Unix.
62509 2000-06-24 Jim Meyering <meyering@lucent.com>
62511 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62513 2000-06-23 Paul Eggert <eggert@twinsun.com>
62515 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62516 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
62518 2000-06-23 Paul Eggert <eggert@twinsun.com>
62520 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62521 (mbrtowc, mbstate_t): Define substitutes if
62522 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62523 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62524 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62526 2000-06-23 Jim Meyering <meyering@lucent.com>
62528 * m4/afs.m4: Add missing AC_MSG_RESULT.
62529 Reported by Bruno Haible.
62531 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62532 Suggestion from Bruno Haible.
62534 2000-06-23 Jim Meyering <meyering@lucent.com>
62536 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
62538 2000-06-21 Jim Meyering <meyering@lucent.com>
62540 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62542 2000-06-21 Jim Meyering <meyering@lucent.com>
62544 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62545 (noinst_HEADERS): Add getstr.h.
62547 * lib/getline.c (getstr): Move into a separate file.
62548 * lib/getstr.c (getstr): New file, extracted from getline.c, with
62549 the following changes: new parameter, delim2; both delim[12]
62550 parameters have type `int', not `char'. The latter would lose
62551 with 8-bit delimiters.
62552 * lib/getstr.h: New file.
62554 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62556 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62557 than 1024, return a memory chunk of least possible size, instead
62558 of size PATH_MAX + 2. In the loop, increment the size proportionally.
62559 Use free/xmalloc instead of xrealloc to avoid copying for very long
62562 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62564 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62567 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62569 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62570 address, not strdup. Include <stdlib.h> and don't declare free().
62572 2000-06-19 Jim Meyering <meyering@lucent.com>
62574 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62576 2000-06-18 Jim Meyering <meyering@lucent.com>
62578 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62580 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62581 `checking whether...' message to be consistent with that of the
62584 2000-06-18 Jim Meyering <meyering@lucent.com>
62586 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62587 Besides, these days every porting target provides a mkdir function.
62589 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62590 needed. (this snippet comes from src/system.h).
62592 2000-06-16 Bruno Haible <haible@clisp.cons.org>
62594 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62596 2000-06-15 Paul Eggert <eggert@twinsun.com>
62598 * lib/human.c (adjust_value): New function.
62599 (human_readable_inexact): Apply rounding style even when
62600 printing approximate values.
62602 2000-06-14 Paul Eggert <eggert@twinsun.com>
62604 * lib/human.c (human_readable_inexact): Allow an input block
62605 size that is not a multiple of the output block size, and vice versa.
62606 Reported by Piergiorgio Sartor.
62608 2000-06-14 Paul Eggert <eggert@twinsun.com>
62610 * lib/getdate.y (get_date): Apply relative times after time
62611 zone indicator, not before. Reported by Todd A. Jacobs.
62613 2000-06-13 Jim Meyering <meyering@lucent.com>
62615 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62617 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62619 2000-06-12 Paul Eggert <eggert@twinsun.com>
62621 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62623 2000-06-12 Jim Meyering <meyering@lucent.com>
62625 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62626 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62628 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62629 the optional argument, `lib'.
62631 2000-06-08 Jim Meyering <meyering@lucent.com>
62633 * m4/largefile.m4: Remove file (now that it's part of autoconf).
62635 2000-06-04 Paul Eggert <eggert@twinsun.com>
62637 Rewrite largefile configuration so that we don't need to run
62638 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
62639 AC_CANONICAL_HOST in configure.in -- jmm]
62641 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62642 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62643 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62644 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62645 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62647 Instead of inspecting the output of getconf, try to compile the
62648 test program without and with the macro definition.
62649 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62650 for getconf. Instead, check for the needed flags by compiling
62653 2000-06-04 Paul Eggert <eggert@twinsun.com>
62655 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62657 2000-06-04 Jim Meyering <meyering@lucent.com>
62659 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62660 SunOS 4.1.4 for which gid_t is an unsigned type.
62662 2000-06-03 Jim Meyering <meyering@lucent.com>
62664 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62665 now that autoconf requires that.
62667 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62668 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62669 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62671 2000-06-03 Jim Meyering <meyering@lucent.com>
62673 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62675 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62677 * m4/glibc21.m4: New file.
62678 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62680 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62682 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62683 newer, don't install charset.alias.
62684 * lib/config.charset: Change the Linux/glibc rules so they become empty
62685 on glibc-2.1 or newer.
62687 2000-06-02 Jim Meyering <meyering@lucent.com>
62689 * lib/mountlist.c: Back out last change. Instead, do this...
62690 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62691 me_dummy member using the same `ignore'-testing code.
62692 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62696 2000-05-29 Jim Meyering <meyering@lucent.com>
62698 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62699 mounts with the `ignore' attribute. Based on a patch from
62702 2000-05-28 Jim Meyering <meyering@lucent.com>
62704 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62705 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62706 * m4/stat.m4: Likewise.
62707 * m4/lstat.m4: Likewise.
62708 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62710 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62711 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62713 2000-05-26 Jim Meyering <meyering@lucent.com>
62715 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62717 2000-05-24 Jim Meyering <meyering@lucent.com>
62719 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62720 autoconf requires that.
62721 * m4/lib-check.m4: Likewise.
62722 * m4/jm-macros.m4: Likewise.
62723 * m4/strftime.m4: Likewise.
62725 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62726 AC_CHECK_DECLS, now that autoconf requires that.
62728 2000-05-22 Jim Meyering <meyering@lucent.com>
62730 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62731 * m4/lstat.m4: Likewise.
62733 2000-05-22 Jim Meyering <meyering@lucent.com>
62735 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62737 2000-05-20 Jim Meyering <meyering@lucent.com>
62739 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62740 (jm_PREREQ): Use it.
62742 2000-05-18 Jim Meyering <meyering@lucent.com>
62744 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62745 back, too, since it may have been modified by allocate_entry.
62746 (hash_delete): Rewrite to use neither the assignment operator
62747 nor the comma operator in an if-expression.
62749 2000-05-15 Paul Eggert <eggert@twinsun.com>
62752 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62753 Remove; no longer needed.
62754 "quotearg.h": Add include.
62755 (file_name): Do not bother to explicitly initialize to NULL; it's less
62756 efficient on some hosts.
62757 (close_stdout_status): Remove test as to whether stdout was already
62758 closed; it breaks for the case "echo x | sort >&-".
62759 Quote file name colons.
62760 Do not assume that _("write error") lacks format strings.
62762 2000-05-15 Jim Meyering <meyering@lucent.com>
62764 * lib/version-etc.c (version_etc_copyright): Update the copyright
62765 string used in all --version output.
62767 2000-05-14 Jim Meyering <meyering@lucent.com>
62769 * lib/closeout.c (close_stdout_set_file_name): New function.
62770 (close_stdout_status): Use new file-scoped global.
62771 Return right away if fstat says the stdout file descriptor is invalid.
62772 * lib/closeout.h (close_stdout_set_file_name): Declare.
62774 2000-05-10 Jim Meyering <meyering@lucent.com>
62776 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62777 (close_stdout_set_status): New function.
62778 * lib/closeout.h (close_stdout_set_status): Declare.
62780 2000-05-09 Jim Meyering <meyering@lucent.com>
62782 * m4/gettext.m4: Rename this...
62783 * m4/libintl.m4: ...to this.
62785 2000-05-08 Jim Meyering <meyering@lucent.com>
62787 * lib/long-options.c: Don't include closeout.h.
62788 (parse_long_options): Don't call close_stdout for --version.
62790 2000-05-06 Paul Eggert <eggert@twinsun.com>
62792 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62793 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62794 2.1.3 bug. This avoids a clash when files like regex.c define
62797 2000-05-06 Jim Meyering <meyering@lucent.com>
62799 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62800 (AC_REPLACE_FUNCS): Add strnlen.
62802 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62803 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62805 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62806 AC_SEARCH_LIBS call for nanosleep.
62807 (LIB_NANOSLEEP): Set and AC_SUBST.
62809 2000-05-06 Jim Meyering <meyering@lucent.com>
62811 * lib/strnlen.c: Undefine __strnlen and strnlen.
62812 [!weak_alias]: Define __strnlen to strnlen.
62814 * lib/atexit.c: New file, from libiberty.
62816 2000-05-06 Jim Meyering <meyering@lucent.com>
62818 * lib/closeout.c (close_stdout_status): Also check for errors on the
62821 2000-05-05 Jim Meyering <meyering@lucent.com>
62823 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62824 AC_SEARCH_LIBS call for clock_gettime.
62825 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62827 * m4/search-libs.m4: Update from autoconf.
62829 su doesn't work on Solaris 2.6.
62830 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62831 <shadow.h>. Reported by Dragos Harabor.
62833 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62835 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62836 memcpy instead of xmalloc, xrealloc, path_concat.
62837 (locale_charset): Treat empty environment variables as absent.
62838 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62840 2000-05-04 Jim Meyering <meyering@lucent.com>
62842 * lib/getopt.c: Update from glibc.
62843 * lib/obstack.c: Likewise.
62844 * lib/obstack.h: Likewise.
62845 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
62848 * lib/regex.h: Likewise.
62849 * lib/strndup.c: Likewise.
62850 * lib/strnlen.c: New file, from glibc.
62852 2000-05-03 Jim Meyering <meyering@lucent.com>
62854 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62856 2000-05-02 Paul Eggert <eggert@twinsun.com>
62858 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62859 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
62860 compile-time test, rather than inspecting host and OS, to
62861 decide whether to define _LARGEFILE_SOURCE.
62863 2000-05-01 Jim Meyering <meyering@lucent.com>
62865 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62867 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62868 Based on a patch from Bruno Haible.
62870 2000-05-01 Jim Meyering <meyering@lucent.com>
62872 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62874 2000-04-29 Jim Meyering <meyering@lucent.com>
62876 * lib/path-concat.c: Declare strdup only if it's not defined.
62877 * lib/canon-host.c: Likewise.
62879 2000-04-28 Jim Meyering <meyering@lucent.com>
62881 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62882 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
62883 is included first, then limits.h is included by locale.h by libintl.h.
62884 From John David Anglin.
62886 2000-04-25 Jim Meyering <meyering@lucent.com>
62888 * lib/makepath.c (S_IRWXUGO): Define.
62889 (make_path): Always perform explicit chmod if MODE specifies any
62890 of the `special' permission bits. Prompted by a bug report against
62891 install from Mate Wierdl and Joost van Baal.
62893 2000-04-18 Jim Meyering <meyering@lucent.com>
62895 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62896 (jm_PREREQ): Use it.
62898 2000-04-18 Jim Meyering <meyering@lucent.com>
62900 * lib/README: New file.
62902 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62903 getpagesize. For BeOS. Based on a patch from Bruno Haible.
62905 2000-04-17 Jim Meyering <meyering@lucent.com>
62908 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62909 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
62910 Suggestion from Akim Demaille.
62912 2000-04-17 Jim Meyering <meyering@lucent.com>
62914 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62915 the definition of it to rpl_strftime also defined-away the system's
62918 2000-04-15 Jim Meyering <meyering@lucent.com>
62920 Use `C' to denote so-called `contiguous' files, the same way
62922 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62923 (ftypelet): Use S_ISCTG.
62924 From Michael Deutschmann.
62926 2000-04-14 Jim Meyering <meyering@lucent.com>
62928 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62929 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
62932 2000-04-14 Jim Meyering <meyering@lucent.com>
62934 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62936 2000-04-13 Jim Meyering <meyering@lucent.com>
62938 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62939 AH_VERBATIM to insert required #ifndef into config.h.in.
62940 Suggestion from Akim Demaille.
62942 2000-04-12 Jim Meyering <meyering@lucent.com>
62944 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62945 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
62946 Christian Krackowizer.
62948 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62949 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62950 (AC_SYS_LARGEFILE): Require.
62951 (AM_C_PROTOTYPES): Require.
62953 2000-04-08 Jim Meyering <meyering@lucent.com>
62955 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62956 names don't conflict. Reported by Eli Zaretskii.
62958 2000-04-07 Jim Meyering <meyering@lucent.com>
62960 * lib/putenv.c: Move inclusion of errno.h so it follows that of
62961 sys/types.h, to work around system header problems on AIX 3.2.5.
62964 2000-04-07 Bruno Haible <haible@clisp.cons.org>
62966 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62967 bug. Deal with the different error behavior of Irix iconv.
62969 2000-04-05 Paul Eggert <eggert@twinsun.com>
62971 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62972 IRIX if the installer said otherwise.
62974 2000-04-05 Jim Meyering <meyering@lucent.com>
62976 Portability tweaks required for ultrix4.3.
62977 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62978 (jm_CHECK_DECLS): Add getutent to the list of functions.
62979 (_jm_DECL_HEADERS): Add utmpx.h.
62980 From John David Anglin.
62982 * m4/strftime.m4: Back out the 2000-04-02 change.
62983 Instead of that change, simply undefine putenv in the test program.
62985 2000-04-05 Jim Meyering <meyering@lucent.com>
62987 Portability tweaks required for ultrix4.3.
62988 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62990 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62991 * lib/canon-host.c: Declare strdup.
62992 * lib/path-concat.c: Likewise.
62993 From John David Anglin.
62995 2000-04-04 Jim Meyering <meyering@lucent.com>
62997 Be more DOS 8.3-friendly.
62998 * lib/ref-add.sin: Renamed from ref-add.sed.in.
62999 * lib/ref-del.sin: Renamed from ref-del.sed.in.
63000 * lib/Makefile.am: Reflect renaming.
63001 Reported by Eli Zaretskii.
63003 Use a temporary file name that won't clash with `charset.alias'
63004 in the DOS 8.3 name space.
63005 * lib/Makefile.am (charset_tmp): Define.
63006 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63007 (uninstall-local): Likewise.
63008 Reported by Eli Zaretskii.
63010 2000-04-03 Jim Meyering <meyering@lucent.com>
63012 * m4/gettext.m4: Fix typo in comment.
63014 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63015 textutils/configure.in). Suggestion from Paul Eggert.
63016 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
63018 2000-04-02 Paul Eggert <eggert@twinsun.com>
63020 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63021 variable in the shell rather than using putenv, which isn't
63022 portable. This avoids the configure-time inter-test dependency
63023 on the potentially-renamed putenv function.
63025 2000-03-30 Paul Eggert <eggert@twinsun.com>
63027 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63028 before checking struct stat.st_blksize, so that
63029 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63031 2000-03-29 Paul Eggert <eggert@twinsun.com>
63033 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63034 since strftime.c uses HAVE_STRFTIME to decide whether to use
63035 the underlying strftime.
63037 2000-03-29 Paul Eggert <eggert@twinsun.com>
63039 * lib/time/strftime.c (my_strftime): Make sure we call the system
63040 strftime, not ourselves, when invoking the underlying strftime.
63042 2000-03-24 Jim Meyering <meyering@lucent.com>
63044 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63045 (charset_alias): Define.
63046 (install-exec-local): Factor out common code.
63047 (uninstall-local): Split lines longer than 80.
63048 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63049 (SUFFIXES): Define.
63050 (.sed.in.sed): New rule. Don't redirect directly to $@.
63051 (CLEANFILES): Add ref-add.sed and ref-del.sed.
63053 2000-03-19 Bruno Haible <haible@clisp.cons.org>
63055 * lib/config.charset: Output a line containing "Packages using this
63057 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63058 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63059 ref-del.sed): New rules.
63061 2000-03-17 Jim Meyering <meyering@lucent.com>
63063 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63064 Otherwise, include <strings.h>
63066 2000-03-17 Bruno Haible <haible@clisp.cons.org>
63068 * lib/unicodeio.c (utf8_wctomb): New function.
63069 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63070 format instead of in UCS-4 with platform dependent endianness.
63072 2000-03-10 Jim Meyering <meyering@lucent.com>
63074 * m4/lib-check.m4: Look for getspnam in -lgen, too.
63075 From Marco Franzen.
63077 2000-03-07 Paul Eggert <eggert@twinsun.com>
63079 * lib/savedir.c (savedir): Work even if directory size is
63080 negative; this can happen with some screwy NFS configurations.
63082 2000-03-06 Jim Meyering <meyering@lucent.com>
63084 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63085 if it's NULL (because we ran out of memory). From Bruno Haible.
63087 2000-03-05 Jim Meyering <meyering@lucent.com>
63089 * lib/localcharset.c ("path-concat.h"): Include.
63090 (get_charset_aliases): Use path_concat instead of ANSI string
63093 * lib/unicodeio.h (PARAMS): Define.
63094 Use it to guard prototype.
63096 2000-03-04 Jim Meyering <meyering@lucent.com>
63098 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63099 for lib/localcharset.c.
63101 2000-03-04 Jim Meyering <meyering@lucent.com>
63103 * lib/Makefile.am (install-exec-local): Create $(libdir) before
63104 installing into it.
63105 (uninstall-local): Uncomment this rule so `make distcheck' works
63108 * lib/unicodeio.c (<errno.h>): Include it.
63109 (errno): Declare if not defined.
63111 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63113 * lib/config.charset: New version, incorporating remarks from a linux
63114 i18n mailing list. From Bruno Haible.
63116 2000-03-04 Bruno Haible <haible@clisp.cons.org>
63118 * m4/codeset.m4: New file.
63119 * m4/iconv.m4: New file.
63120 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63122 2000-03-03 Jim Meyering <meyering@lucent.com>
63124 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63126 2000-03-02 Jim Meyering <meyering@lucent.com>
63128 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63129 the messages come out on separate lines.
63131 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63132 rather than jm_CHECK_DECLARATIONS.
63133 * m4/decl.m4: Remove now-unused file.
63135 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63138 2000-03-02 Jim Meyering <meyering@lucent.com>
63140 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63142 2000-03-01 Jim Meyering <meyering@lucent.com>
63144 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63145 * lib/unicodeio.c: Likewise.
63147 2000-03-01 Bruno Haible <haible@clisp.cons.org>
63149 * lib/config.charset: New file.
63150 * lib/localcharset.c: New file.
63151 * lib/unicodeio.h, lib/unicodeio.c: New files.
63152 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63153 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63154 (noinst_HEADERS): Add unicodeio.h.
63155 (all-local, install-exec-local, charset.alias): New targets.
63157 2000-02-28 Paul Eggert <eggert@twinsun.com>
63159 * lib/quotearg.c (ALERT_CHAR): New macro.
63160 (quotearg_buffer_restyled): Use it.
63162 2000-02-27 Jim Meyering <meyering@lucent.com>
63164 * m4/check-decl.m4: Add getenv to the list.
63166 2000-02-27 Jim Meyering <meyering@lucent.com>
63168 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63169 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63171 * lib/backupfile.c: Guard inclusion of stdlib.h with
63172 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63173 Declare malloc if needed.
63175 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63176 `#ifndef HAVE_DECL..'
63177 now that autoconf always defines the HAVE_DECL_ symbols.
63178 * lib/human.c: Likewise.
63179 * lib/same.c: Likewise.
63180 * lib/strtoumax.c: Likewise.
63182 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63183 declaration check was not run.
63184 * lib/hash.c: Likewise.
63185 * lib/human.c: Likewise.
63186 * lib/same.c: Likewise.
63187 * lib/strtoumax.c: Likewise.
63189 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63190 `.', then first look up the entire `.'-containing string as a login
63193 2000-02-23 Jim Meyering <meyering@lucent.com>
63195 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63196 in place of my hack.
63198 2000-02-18 Paul Eggert <eggert@twinsun.com>
63200 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63201 (textint): New typedef.
63202 (parser_control): Member year changed from int to textint.
63204 (YYSTYPE): Removed; replaced by %union with int and textint members.
63205 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63206 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63207 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63208 (tSNUMBER, tUNUMBER): Now of type <textintval>.
63209 (date, number, to_year): Use width of number in digits, not its value,
63210 to determine whether it's a 2-digit year, or a 2-digit time.
63211 (yylex): Store number of digits of numeric tokens.
63212 Reported by John Kendall.
63214 (parser_control): Changed from struct parser_control to typedef (for
63215 consistency). All uses changed.
63217 (tID): Removed; not used.
63218 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63220 2000-02-14 Paul Eggert <eggert@twinsun.com>
63222 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63223 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63225 2000-02-12 Jim Meyering <meyering@lucent.com>
63227 * lib/userspec.c (ISDIGIT): Define it.
63228 (isdigit): Remove definition.
63229 (is_number): Use ISDIGIT, not isdigit.
63230 <libintl.h>: Include.
63231 (_ and N_): Define.
63232 (parse_user_spec): Mark translatable strings.
63234 2000-02-10 Jim Meyering <meyering@lucent.com>
63236 With these changes, nanosleep.[ch] are finally enough like the other
63237 lib/* replacement files to compile on a few more losing systems.
63239 * lib/nanosleep.h: Don't include config.h.
63240 Remove prototype from declaration of nanosleep.
63241 (PARAMS): Remove now-unneeded definition.
63242 * lib/nanosleep.c: #undef nanosleep.
63243 (rpl_nanosleep): Rename from nanosleep.
63245 2000-02-10 Jim Meyering <meyering@lucent.com>
63247 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63248 gnu_nanosleep to rpl_nanosleep.
63250 2000-02-09 Jim Meyering <meyering@lucent.com>
63252 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63253 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
63255 2000-02-08 Akim Demaille <akim@epita.fr>
63257 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63258 `[' and `]' and remove uses of `changequote'.
63259 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63260 (AC_SYS_LARGEFILE): Likewise.
63261 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63262 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63264 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63265 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63266 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63267 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63269 2000-02-05 Jim Meyering <meyering@lucent.com>
63271 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63272 Remove explicit use of AC_HEADER_TIME. It is required by
63273 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63274 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63275 in autoconf whereby the expansion of the latter ended up preceding
63276 the expansion of its prerequisite, AC_HEADER_TIME.
63277 Reported by Volker Borchert.
63279 2000-02-03 Jim Meyering <meyering@lucent.com>
63281 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63283 2000-02-03 Jim Meyering <meyering@lucent.com>
63285 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63286 rather than with `#if HAVE_UTMPNAME'.
63288 2000-02-02 Jim Meyering <meyering@lucent.com>
63290 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63291 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63292 Reported by Eli Zaretskii.
63294 2000-02-01 Jim Meyering <meyering@lucent.com>
63296 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63298 2000-01-31 Jim Meyering <meyering@lucent.com>
63300 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63301 functions. Add the time.h and sys/time.h headers along with the
63302 AC_REQUIRE'ment of AC_HEADER_TIME.
63304 2000-01-31 Jim Meyering <meyering@lucent.com>
63306 * lib/nanosleep.h (nanosleep): Guard declaration with
63307 `#if ! HAVE_DECL_NANOSLEEP'.
63308 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63309 the declaration in that vendor's sys/timers.h.
63310 Reported by Christian Krackowizer.
63312 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63313 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63314 (ISPRINT): Likewise.
63315 Reported by Tom Tromey.
63317 2000-01-30 Jim Meyering <meyering@lucent.com>
63319 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63321 * m4/prereq.m4 (utmp_includes): Define.
63322 Check for ut_user and ut_name members in both struct utmpx
63325 2000-01-30 Jim Meyering <meyering@lucent.com>
63327 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63328 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63329 header files where only utmpx.ut_user is declared.
63331 * lib/readutmp.h (UT_USER): Define.
63333 2000-01-29 Jim Meyering <meyering@lucent.com>
63335 * m4/lib-check.m4: New file containing library-related checks from
63336 fileutils and sh-utils (textutils had none).
63338 2000-01-28 Jim Meyering <meyering@lucent.com>
63340 * m4/perl.m4: Change format of warning message to look more like that
63341 from the missing script. Suggestion from François Pinard.
63343 2000-01-25 Jim Meyering <meyering@lucent.com>
63345 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63346 well as time.h in the compile check.
63347 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63348 Fix typo in cross-compiling case: s/yes/no/.
63350 2000-01-23 Jim Meyering <meyering@lucent.com>
63352 * m4/jm-macros.m4: Move df-related tests here from
63353 fileutils/configure.in
63355 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63356 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63358 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63359 s/space/ac_fsusage_space/.
63360 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63362 * m4/ftruncate.m4: New file (derived from part of
63363 fileutils/configure.in).
63364 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63365 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63367 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63368 AC_SUBST these here, rather than just in sh-util/configure.in, so
63369 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63371 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63372 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63373 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63374 (AC_SUBST(POW_LIBM)): Likewise.
63375 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63377 2000-01-23 Jim Meyering <meyering@lucent.com>
63379 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63382 2000-01-22 Jim Meyering <meyering@lucent.com>
63384 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63386 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63388 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63390 (AC_CHECK_HEADERS): Likewise for sh-utils.
63391 (AC_CHECK_HEADERS): Likewise for textutils.
63392 Merge the three lists of headers.
63394 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
63395 from fileutils' configure.in.
63397 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63398 code. Moved tests into their own function (_jm_DECL_HEADERS) in
63401 * m4/check-decl.m4: Use #if rather than #ifdef.
63402 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63403 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63404 (_jm_DECL_HEADERS): Define new function.
63405 (jm_CHECK_DECLARATIONS): Require it.
63407 2000-01-22 Jim Meyering <meyering@lucent.com>
63409 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63410 [! HAVE_DECL_STRTOULL]: Declare strtoull.
63411 Required for some AIX systems. Reported by Christian Krackowizer.
63412 [TESTING] (main): New function.
63414 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
63415 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63418 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63421 * lib/strverscmp.c (ISDIGIT): Define.
63422 (strverscmp): Use ISDIGIT, not isdigit.
63424 2000-01-19 Jim Meyering <meyering@lucent.com>
63426 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63427 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63428 defines `struct timespec' in <sys/time.h>
63430 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63431 Thanks to Akim for explaining.
63433 2000-01-17 Paul Eggert <eggert@twinsun.com>
63435 * lib/nanosleep.c (nanosleep):
63436 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63437 POSIX.1 doesn't require SA_INTERRUPT and some systems
63438 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63439 it's been part of POSIX.1 since day 1 (in 1988).
63441 2000-01-17 Jim Meyering <meyering@lucent.com>
63443 * lib/interlock: Remove unused file. Reported by François Pinard.
63445 2000-01-16 Paul Eggert <eggert@twinsun.com>
63447 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63448 alert, backslash, formfeed, and vertical tab unnecessarily in
63449 shell quoting style.
63451 2000-01-16 Jim Meyering <meyering@lucent.com>
63453 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63454 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63455 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63456 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63458 2000-01-16 Jim Meyering <meyering@lucent.com>
63460 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63461 because the latter didn't work.
63463 2000-01-15 Jim Meyering <meyering@lucent.com>
63465 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63466 (AC_REPLACE_FUNCS): Add memcpy and memset.
63467 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63469 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63471 2000-01-12 Jim Meyering <meyering@lucent.com>
63473 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63474 (jm_PREREQ): Use it.
63475 (jm_PREREQ_READUTMP): New macro.
63476 (jm_PREREQ): Use it.
63478 2000-01-11 Paul Eggert <eggert@twinsun.com>
63480 Quote multibyte characters correctly.
63481 * m4/c-bs-a.m4: New file.
63482 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63483 (jm_PREREQ): Use it.
63485 2000-01-11 Paul Eggert <eggert@twinsun.com>
63487 * m4/uintmax_t.m4: Port to autoconf 2.13.
63489 2000-01-08 Jim Meyering <meyering@ascend.com>
63491 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63492 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63494 2000-01-04 Jim Meyering <meyering@ascend.com>
63496 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63497 jm_STRUCT_DIRENT_D_TYPE.
63498 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63499 jm_STRUCT_DIRENT_D_INO.
63500 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63502 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63504 * m4/utime.m4: Likewise.
63506 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63507 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63509 2000-01-03 Paul Eggert <eggert@twinsun.com>
63511 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63512 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63514 2000-01-02 Jim Meyering <meyering@ascend.com>
63516 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
63517 remember if this is necessary.
63519 1999-12-26 Jim Meyering <meyering@ascend.com>
63521 * m4/jm-macros.m4: Use it here.
63522 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63524 1999-12-23 Jim Meyering <meyering@ascend.com>
63526 * m4/jm-macros.m4: Check for clock_gettime (moved from
63527 fileutils/configure.in)
63528 Check for gettimeofday.
63530 1999-12-20 Jim Meyering <meyering@ascend.com>
63532 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63533 autoconf-2.14a-1999-12-20.
63535 1999-12-19 Jim Meyering <meyering@ascend.com>
63537 * m4/lstat-slash.m4: New file.
63538 * m4/jm-macros.m4: Use the new macro:
63539 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63541 1999-12-07 Jim Meyering <meyering@ascend.com>
63543 * m4/perl.m4: Require that File::Compare be available, too.
63544 Too many systems seem to lack it.
63546 * m4/strftime.m4: Add checks for most of the cpp macros tested in
63547 GNU's strftime.c. Prompted by a patch from Paul Eggert.
63549 1999-11-18 Paul Eggert <eggert@twinsun.com>
63551 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63552 problem with the QNX 4.25 shell, which doesn't propagate exit
63553 status of failed commands inside shell assignments.
63555 1999-11-17 Jim Meyering <meyering@ascend.com>
63557 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63559 1999-11-07 Jim Meyering <meyering@ascend.com>
63561 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63563 1999-11-06 Jim Meyering <meyering@ascend.com>
63565 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63566 * m4/jm-macros.m4 (jm_MACROS): Use it here.
63568 1999-11-05 Jim Meyering <meyering@ascend.com>
63570 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63571 configure.in of textutils, fileutils, and sh-utils into this one
63572 (shared between those packages) file.
63573 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63574 AC_STRUCT_ST_BLKSIZE.
63576 1999-11-03 Jim Meyering <meyering@ascend.com>
63578 * m4/ssize_t.m4: Remove file. No longer needed since the new version
63579 of AC_CHECK_TYPE checks includes unistd.h.
63580 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63581 Suggestion from Akim Demaille.
63583 1999-10-30 Jim Meyering <meyering@ascend.com>
63585 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
63587 * m4/ls-mntd-fs.m4: Likewise.
63588 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
63589 * m4/jm-winsz1.m4: Likewise.
63591 * m4/const.m4: Remove file, since the fix made it into the experimental
63592 version of autoconf.
63593 * m4/mktime.m4: Likewise.
63595 * m4/check-type.m4: Remove file, now that the latest version of
63596 AC_CHECK_TYPE takes a third arg to specify additional #includes.
63598 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63599 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63602 1999-10-04 Jim Meyering <meyering@ascend.com>
63604 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63606 1999-09-22 Paul Eggert <eggert@twinsun.com>
63608 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63609 2.95.1 bug with HP-UX 10.20.
63611 1999-09-17 Jim Meyering <meyering@ascend.com>
63613 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63614 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63615 due to missing strdup (against sh-utils-2.0).
63617 1999-08-29 Jim Meyering <meyering@ascend.com>
63619 * m4/jm-macros.m4: Require jm_BISON.
63620 * m4/bison.m4: New file.
63622 1999-08-17 Paul Eggert <eggert@twinsun.com>
63624 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63625 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63627 1999-08-05 Jim Meyering <meyering@ascend.com>
63629 * m4/getline.m4: Rename test file from conftestdata to conftest.data
63630 to avoid conflicts with `conftest' on 8+3 filesystems.
63631 Suggestion from Eli Zaretskii.
63633 1999-08-04 Jim Meyering <meyering@ascend.com>
63635 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63636 fileutils and sh-utils (textutils's getline test was inadequate).
63637 (AM_FUNC_GETLINE): Run this test.
63638 (AC_CHECK_FUNCS): Check for getdelim.
63639 Reported by Bob Proulx.
63641 1999-08-02 Jim Meyering <meyering@ascend.com>
63643 * m4/jm-macros.m4: Add a comment.
63645 1999-08-01 Paul Eggert <eggert@twinsun.com>
63647 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63648 <inttypes.h> defines strtoumax as a macro (and not as a
63651 1999-08-01 Paul Eggert <eggert@twinsun.com>
63653 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63654 that we can shift, multiply and divide unsigned long long
63655 values; Ultrix cc can't do it.
63657 1999-08-01 Paul Eggert <eggert@twinsun.com>
63659 * m4/mktime.m4: New file, which is a preview of what should appear
63660 in the next public autoconf release.
63662 1999-08-01 Paul Eggert <eggert@twinsun.com>
63664 * m4/lfs.m4: Remove this file.
63665 * m4/largefile.m4: New file. It contains the old contents of
63666 lfs.m4, except that all names with prefix AC_LFS have been
63667 changed to use the prefix AC_SYS_LARGEFILE instead, to be
63668 compatible with future autoconf versions. Also, some minor m4
63669 quoting problems have been fixed.
63671 1999-08-01 Paul Eggert <eggert@twinsun.com>
63673 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63674 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63675 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63676 and simplify the shell code.
63678 1999-08-01 Jim Meyering <meyering@ascend.com>
63680 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63683 1999-07-20 Jim Meyering <meyering@ascend.com>
63685 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63687 1999-07-15 Jim Meyering <meyering@ascend.com>
63689 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63691 1999-05-22 Jim Meyering <meyering@ascend.com>
63693 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63695 1999-05-20 Jim Meyering <meyering@ascend.com>
63697 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63698 Add a colon after each `then' in case $4 is empty.
63700 1999-05-16 Jim Meyering <meyering@ascend.com>
63702 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63704 1999-05-10 Jim Meyering <meyering@ascend.com>
63706 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63708 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63711 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
63713 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63715 1999-05-04 Paul Eggert <eggert@twinsun.com>
63717 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63718 not CPPFLAGS, so that linking works correctly in IRIX.
63720 1999-04-30 Paul Eggert <eggert@twinsun.com>
63722 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63724 1999-04-20 Paul Eggert <eggert@twinsun.com>
63726 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63727 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63728 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63729 jm_AC_TYPE_UNSIGNED_LONG_LONG.
63730 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63732 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
63734 1999-04-20 Jim Meyering <meyering@ascend.com>
63736 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63737 AC_REPLACE xstroull if necessary. From Paul Eggert.
63738 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63740 1999-04-18 Jim Meyering <meyering@ascend.com>
63742 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63743 * m4/jm-macros.m4: Use it.
63745 1999-04-06 Jim Meyering <meyering@ascend.com>
63747 * m4/strftime.m4: Remove test for %f.
63749 1999-03-29 Jim Meyering <meyering@ascend.com>
63751 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63752 superset of the AC_TYPE_* checks in the textutils, fileutils,
63753 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
63756 1999-03-28 Jim Meyering <meyering@ascend.com>
63758 * m4/jm-macros.m4: Define GNU_PACKAGE here.
63759 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63760 replaced e.g., in the *.sh files of the sh-utils.
63762 1999-03-20 Jim Meyering <meyering@ascend.com>
63764 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63765 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63766 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
63768 1999-03-19 Jim Meyering <meyering@ascend.com>
63770 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63772 1999-03-12 Jim Meyering <meyering@ascend.com>
63774 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63776 1999-03-07 Jim Meyering <meyering@ascend.com>
63778 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63781 1999-02-17 Jim Meyering <meyering@ascend.com>
63783 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63784 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63786 1999-02-07 Jim Meyering <meyering@ascend.com>
63788 * m4/group-member.m4: New file -- extracted from sh-utils'
63791 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63792 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63794 1999-02-06 Jim Meyering <meyering@ascend.com>
63796 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63797 * m4/fnmatch.m4: Likewise.
63798 * m4/getgroups.m4: Likewise.
63799 * m4/lstat.m4: Likewise.
63800 * m4/malloc.m4: Likewise.
63801 * m4/putenv.m4: Likewise.
63802 * m4/realloc.m4: Likewise.
63803 * m4/regex.m4: Likewise.
63804 * m4/stat.m4: Likewise.
63805 * m4/strftime.m4: Likewise.
63806 Suggestion from Alain Magloire.
63808 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63809 * m4/fnmatch.m4: Likewise.
63810 * m4/getgroups.m4: Likewise.
63811 * m4/getline.m4: Likewise.
63812 * m4/lstat.m4: Likewise.
63813 * m4/malloc.m4: Likewise.
63814 * m4/memcmp.m4: Likewise.
63815 * m4/putenv.m4: Likewise.
63816 * m4/realloc.m4: Likewise.
63817 * m4/regex.m4: Likewise.
63818 * m4/stat.m4: Likewise.
63819 * m4/strftime.m4: Likewise.
63820 Suggestion from Alain Magloire.
63822 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63825 * m4/regex.m4: Add a run-time Test for proper operation of
63826 re_compile_pattern.
63828 1999-01-31 Jim Meyering <meyering@ascend.com>
63830 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63832 1999-01-30 Jim Meyering <meyering@ascend.com>
63834 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63836 * m4/jm-mktime.m4: Make this a wrapper around the official
63837 AM_FUNC_MKTIME rather than my private copy, now that the official one
63839 * m4/mktime.m4: Remove file.
63841 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63842 * m4/uptime.m4: Likewise.
63843 * m4/uintmax_t.m4: Likewise.
63845 1999-01-28 Jim Meyering <meyering@ascend.com>
63847 * m4/jm-macros.m4: Use jm_AFS.
63848 * m4/afs.m4: New file (from fileutils' configure.in).
63850 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63851 * m4/chown.m4: Likewise.
63852 * m4/d-ino.m4: Likewise.
63853 * m4/d-type.m4: Likewise.
63854 * m4/fnmatch.m4: Likewise.
63855 * m4/getgroups.m4: Likewise.
63856 * m4/gettext.m4: Likewise.
63857 * m4/jm-mktime.m4: Likewise.
63858 * m4/jm-winsz2.m4: Likewise.
63859 * m4/lcmessage.m4: Likewise.
63860 * m4/ls-mntd-fs.m4: Likewise.
63861 * m4/malloc.m4: Likewise.
63862 * m4/memcmp.m4: Likewise.
63863 * m4/putenv.m4: Likewise.
63864 * m4/realloc.m4: Likewise.
63865 * m4/st_mtim.m4: Likewise.
63866 * m4/strftime.m4: Likewise.
63868 1999-01-16 Jim Meyering <meyering@ascend.com>
63870 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63871 (ARGMATCH_DIE_DECL): Define.
63873 1999-01-12 Jim Meyering <meyering@ascend.com>
63875 * m4/Makefile.am.in: Rewrite to avoid using fmt.
63876 Reported by Lars Hecking.
63878 1999-01-10 Jim Meyering <meyering@ascend.com>
63880 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63882 * m4/inttypes_h.m4: Likewise.
63883 * m4/lstat.m4: Likewise.
63884 * m4/malloc.m4: Likewise.
63885 * m4/readdir.m4: Likewise.
63886 * m4/realloc.m4: Likewise.
63887 * m4/st_dm_mode.m4: Likewise.
63888 * m4/stat.m4: Likewise.
63889 * m4/utimbuf.m4: Likewise.
63890 * m4/utimes.m4: Likewise.
63892 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63893 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
63894 comments in config.h.in are meaningful.
63896 * m4/jm-macros.m4: Require autoconf-2.13 here.
63898 * m4/regex.m4: By default, don't use the included regex.c on systems
63899 with glibc 2. Suggestion from Uli Drepper.
63901 1999-01-02 Jim Meyering <meyering@ascend.com>
63903 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63905 1998-12-18 Jim Meyering <meyering@ascend.com>
63907 * m4/Makefile.am.in (Makefile.am): Simplify rule.
63908 Based on a suggestion from Lars Hecking.
63910 1998-11-16 Paul Eggert <eggert@twinsun.com>
63912 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63914 1998-11-16 Jim Meyering <meyering@ascend.com>
63916 * m4/lfs.m4: Double-quote the `uname...` expression.
63918 1998-11-14 Jim Meyering <meyering@ascend.com>
63920 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
63921 * m4/stat.m4: Likewise.
63923 1998-11-03 Jim Meyering <meyering@ascend.com>
63925 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63926 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63928 1998-10-18 Jim Meyering <meyering@ascend.com>
63930 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63932 1998-10-17 Jim Meyering <meyering@ascend.com>
63934 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63935 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63936 calls for those previously hard-coded headers. Instead, take a new
63938 (jm_CHECK_DECLARATIONS): Reflect interface change.
63939 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63940 (jm_CHECK_DECL_LOCALTIME_R): New macro.
63942 * m4/mktime.m4: Test for spring-forward gap before long-running test.
63944 1998-10-14 Jim Meyering <meyering@ascend.com>
63946 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63947 instead of "TZ=America/Vancouver". From Paul Eggert.
63949 1998-10-11 Jim Meyering <meyering@ascend.com>
63951 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63952 This adds a test for a recently added compatibility fix for mktime.c.
63953 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63955 1998-09-27 Jim Meyering <meyering@ascend.com>
63957 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63959 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
63960 ../configure.in, including a change from Gordon Matzigkeit to allow
63961 cross-compiling for the Hurd.
63963 * m4/glibc.m4: New file/macro to test for the GNU C Library
63964 versions 1 and 2. From Gordon Matzigkeit.
63967 1998-09-21 Jim Meyering <meyering@ascend.com>
63969 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
63971 1998-08-18 Paul Eggert <eggert@twinsun.com>
63973 Port nanosecond-resolution times to UnixWare 2.1.2 and
63974 pedantic Solaris 2.6.
63976 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63978 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63979 Generate name of ns member, instead of just 1 or undef.
63980 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63982 1998-08-15 Jim Meyering <meyering@ascend.com>
63984 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63985 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
63986 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63987 instead of jm_TYPE_SSIZE_T.
63989 1998-08-12 Jim Meyering <meyering@ascend.com>
63991 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
63993 1998-08-02 Jim Meyering <meyering@ascend.com>
63995 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63996 in acconfig.h manually.
63998 1998-07-31 Paul Eggert <eggert@twinsun.com>
64000 * m4/st_mtim.m4: New file.
64002 1998-07-28 Jim Meyering <meyering@ascend.com>
64004 * m4/utimes.m4: Undef stat.
64006 1998-07-25 Jim Meyering <meyering@ascend.com>
64008 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64009 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64011 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
64013 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64014 uid and gid actually remain unchanged.
64016 1998-07-07 Jim Meyering <meyering@ascend.com>
64018 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64020 1998-07-04 Jim Meyering <meyering@ascend.com>
64022 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
64023 to prove that this macro can be used in packages without regex.c.
64025 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
64027 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64030 1998-07-03 Jim Meyering <meyering@ascend.com>
64032 * m4/gettext.m4: Add -lintl if it's found to be necessary.
64034 * m4/gettext.m4: New file -- from gettext-0.10.35.
64035 * m4/lcmessage.m4: Likewise.
64036 * m4/progtest.m4: Likewise.
64038 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64039 * m4/jm-macros.m4: Require the new macro.
64041 1998-06-29 Jim Meyering <meyering@ascend.com>
64043 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
64044 for the definition of NGROUPS (used in a system header included
64047 1998-06-28 Jim Meyering <meyering@ascend.com>
64049 * m4/ls-mntd-fs.m4: New file.
64050 * m4/fstypename.m4: New file.
64052 * m4/jm-macros.m4: Require the new macro.
64053 * m4/jm-glibc-io.m4: New file.
64055 1998-05-19 Jim Meyering <meyering@ascend.com>
64057 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64058 * m4/lchown.m4: New file.
64060 * m4/Makefile.am.in: New file.
64061 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64063 1998-05-14 Jim Meyering <meyering@ascend.com>
64065 * m4/Makefile.am (EXTRA_DIST): Add them.
64066 * m4/jm-macros.m4: New file.
64067 * m4/utimbuf.m4: New file.
64069 1998-05-12 Jim Meyering <meyering@ascend.com>
64071 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64073 1998-05-11 Jim Meyering <meyering@ascend.com>
64075 * m4/isc-posix.m4: New file.
64077 1998-05-10 Jim Meyering <meyering@ascend.com>
64079 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64081 1998-05-09 Jim Meyering <meyering@ascend.com>
64083 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64084 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64087 * m4/ssize_t.m4: New file.
64088 * m4/mktime.m4: Remove file -- the new automake has this now.
64090 1998-04-26 Jim Meyering <meyering@ascend.com>
64092 * m4/assert.m4: New file.
64093 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64095 1998-04-05 Jim Meyering <meyering@ascend.com>
64097 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64098 (jm_PREREQ): Use it here.
64100 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
64102 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64105 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
64107 * m4/prereq.m4: New file.
64108 * m4/error.m4: New file.
64109 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64111 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
64113 * m4/getline.m4: Don't set am_cv_func_working_getline before the
64114 cache-check for the same variable -- that defeated the purpose of
64115 the test; the test program was never run. This was a problem only
64116 on systems with losing getline functions -- HP-UX 10.20 is one.
64117 Reported by Bjorn Helgaas.
64119 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
64121 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64123 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
64125 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64127 * m4/const.m4: New file. Use an initializer in this declaration
64128 typedef int charset[2]; const charset x;
64129 Reported by Bob Glickstein.
64131 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
64133 * m4/chown.m4: Fix reversed types on -1 args to chown.
64136 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
64138 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64139 Add lseek and memchr.
64141 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64142 T.E.Dickey <dickey@clark.net> said that some older preprocessors
64143 have a 20-character limit on names.
64145 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
64147 * m4/inttypes_h.m4: New file.
64148 * m4/uintmax_t.m4: New file.
64149 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64158 Copyright (C) 1997-2010 Free Software Foundation, Inc.
64160 Copying and distribution of this file, with or without
64161 modification, are permitted provided the copyright notice
64162 and this notice are preserved.