1 2010-03-21 Bruno Haible <bruno@clisp.org>
3 Tests for module 'ptsname'.
4 * modules/ptsname-tests: New file.
5 * tests/test-ptsname.c: New file.
8 * lib/ptsname.c: New file, from glibc with modifications.
9 * m4/ptsname.m4: New file.
10 * modules/ptsname: New file.
11 * lib/stdlib.in.h (ptsname): New declaration.
12 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
13 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14 * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16 * doc/posix-functions/ptsname.texi: Mention the new module.
17 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18 * config/srclist.txt: Add ptsname.c (commented).
20 2010-03-21 Bruno Haible <bruno@clisp.org>
22 Tests for module 'ttyname_r'.
23 * modules/ttyname_r-tests: New file.
24 * tests/test-ttyname_r.c: New file.
26 New module 'ttyname_r'.
27 * lib/ttyname_r.c: New file.
28 * m4/ttyname_r.m4: New file.
29 * modules/ttyname_r: New file.
30 * lib/unistd.in.h (ttyname_r): New declaration.
31 * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33 * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35 * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36 * doc/posix-functions/ttyname_r.texi: Mention the new module.
38 2010-03-20 Bruno Haible <bruno@clisp.org>
40 signal: Undefine macro definitions in C++ mode.
41 * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
42 sigfillset): Undefine macro definitions from the system header in C++
44 Reported by John W. Eaton <jwe@gnu.org>.
46 2010-03-20 Bruno Haible <bruno@clisp.org>
48 Ensure no #include statements inside extern "C" { ... }.
49 * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
50 contain #include statements.
51 * lib/time.in.h: Likewise.
53 2010-03-20 Bruno Haible <bruno@clisp.org>
55 Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
56 * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
57 (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
58 Reported by John W. Eaton <jwe@gnu.org>.
60 2010-03-20 Bruno Haible <bruno@clisp.org>
62 * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
63 Reported by Jim Meyering.
65 2010-03-20 Bruno Haible <bruno@clisp.org>
67 pipe: Set errno upon failure.
68 * lib/pipe.h: Specify that when -1 is returned, errno is set.
69 * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
70 errno value in error message.
72 2010-03-20 Bruno Haible <bruno@clisp.org>
73 Jim Meyering <meyering@redhat.com>
75 lchown: Avoid "unused variable" warning.
76 * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
78 2010-03-20 Bruno Haible <bruno@clisp.org>
80 Work around unlink() bug on MacOS X 10.5.6.
81 * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
82 attempting to unlink a parent directory.
83 * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
84 MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
85 activate for the replacement function.
86 * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
88 2010-03-20 Bruno Haible <bruno@clisp.org>
90 Fix link errors on Solaris 8.
91 * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
92 * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
94 2010-03-19 Jim Meyering <meyering@redhat.com>
96 regcomp.c: make non-_LIBC implementation of build_range_exp consistent
97 The _LIBC implementation of build_range_exp correctly honors the
98 RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
99 However, the non-_LIBC implementation would ignore that syntax-bit
100 flag and return REG_ERANGE unconditionally.
101 This change makes it honor that flag.
102 * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
103 Make two pointer parameters "const".
104 Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
105 (parse_bracket_exp): Update caller.
107 regex.m4: correct the reversed range endpoint ([b-a]) test
108 * m4/regex.m4: When requiring that [b-a] evoke failure,
109 use RE_NO_EMPTY_RANGES. This makes this entire configure-time
110 test pass once again for x86-based systems.
112 2010-03-19 Bruno Haible <bruno@clisp.org>
114 scandir: Fix link error on Solaris 8.
115 * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
118 2010-03-19 Bruno Haible <bruno@clisp.org>
120 getusershell: Fix documentation.
121 * doc/glibc-functions/endusershell.texi: Refer to the getusershell
123 * doc/glibc-functions/setusershell.texi: Likewise.
125 getusershell: Provide declaration, missing on Solaris 9.
126 * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
127 also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
128 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
129 check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
130 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
131 HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
132 * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
134 * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
136 2010-03-19 Bruno Haible <bruno@clisp.org>
138 wctype: Provide iswblank function.
139 * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
141 * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
142 * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
143 * tests/test-wctype.c (main): Re-enable the iswblank tests.
144 * doc/posix-functions/iswblank.texi: Update.
146 2010-03-19 Bruno Haible <bruno@clisp.org>
148 Tests of module 'pty' in C++ mode.
149 * modules/pty-tests: New file.
150 * tests/test-pty-c++.cc: New file.
151 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
153 2010-03-19 Eric Blake <eblake@redhat.com>
155 logb: fix documentation
156 * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
159 forkpty, openpty: prefer glibc's const-safe prototype
160 * lib/forkpty.c (rpl_forkpty): New file.
161 * lib/openpty.c (rpl_openpty): Likewise.
162 * modules/forkpty (Files): Distribute it.
163 * modules/openpty (Files): Likewise.
164 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. Move decl
166 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here. Request
167 replacement for for non-const BSD signature.
168 * modules/pty (Makefile.am): Substitute witnesses.
169 * lib/pty.in.h (forkpty, openpty): Declare replacements.
170 * tests/test-forkpty.c: Update signature check.
171 * tests/test-openpty.c: Likewise.
172 * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
173 * doc/glibc-functions/openpty.texi (openpty): Likewise.
175 forkpty, openpty: split functions into new modules
176 * modules/pty (Makefile.am): Substitute new witnesses.
177 (Libraries): Move library detection...
178 * modules/forkpty: ...into new module.
179 * modules/openpty: Another new module.
180 * modules/pty-tests: Rename and split...
181 * modules/forkpty-tests: ...to this...
182 * modules/openpty-tests: ...and this.
183 * tests/test-pty.c: Rename and split...
184 * tests/test-forkpty.c: ...to this...
185 * tests/test-openpty.c: ...and this.
186 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
187 (gl_PTY): Split library searching...
188 * m4/pty.m4 (gl_PTY_LIB): ...into new file.
189 (gl_FORKPTY, gl_OPENPTY): New macros.
190 * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
191 * NEWS: Mention the split.
192 * MODULES.html.sh (Misc): Document the modules.
193 * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
194 * doc/glibc-functions/openpty.texi (openpty): Likewise.
196 pty: improve replacement header
197 * lib/pty.in.h: New file.
198 * modules/pty (Files): Ship it.
199 (Makefile.am): Always build replacement.
200 * m4/pty.m4: Rename...
201 * m4/pty_h.m4: ...to this.
202 (gl_PTY): Modernize setting of witness macros; update check of
203 forkpty to take proper advantage of cache.
204 (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
206 getopt: avoid compiler warning
207 * lib/getopt.c (attribute_hidden): Remove unused macro.
209 2010-03-18 Bruno Haible <bruno@clisp.org>
211 Fix link errors on Solaris 8.
212 * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
213 * modules/search-tests (test_search_c___LDADD): Likewise.
214 * modules/signal-tests (test_signal_c___LDADD): Likewise.
215 * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
216 * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
217 * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
218 * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
219 * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
220 * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
222 2010-03-18 Bruno Haible <bruno@clisp.org>
224 Fix bug introduced on 2010-03-14.
225 * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
226 (gl_SPAWN_H): Require it.
227 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
228 Reported by Simon Josefsson.
230 2010-03-18 Bruno Haible <bruno@clisp.org>
232 Fix typo introduced on 2009-12-31.
233 * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
234 posix_spawn_file_actions_adddup2.
236 2010-03-17 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
237 and Eric Blake <eblake@redhat.com>
239 test-vc-list-files-git: make more robust
240 * tests/test-vc-list-files-git.sh: Unset problematic environment
241 variables. Chain commands together.
243 2010-03-17 Ludovic Courtès <ludo@gnu.org> (tiny change)
245 * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
246 `AC_CHECK_DECL' invocation.
248 2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua>
250 * lib/inttostr.c (inttostr): Make sure the invocation of verify
251 appears before executable statements. Suggested by Petr Sumbera
252 <Petr.Sumbera@Sun.COM>.
254 2010-03-14 Bruno Haible <bruno@clisp.org>
256 * tests/test-flock.c (test_exclusive): Comment out a test that causes
257 portability problems. Instead use a simpler test.
258 (main): Check that invalid arguments are rejected only on Linux.
260 2010-03-14 Bruno Haible <bruno@clisp.org>
262 Fix bug introduced on 2009-12-31.
263 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
264 gl_PREREQ_SYS_H_WINSOCK2 always.
265 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
266 SYS_SOCKET_H variable.
267 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
269 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
270 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
271 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
272 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
273 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
275 2010-03-14 Bruno Haible <bruno@clisp.org>
277 Fix values returned by sinl, cosl.
278 * lib/trigl.h: Add specification comments.
279 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
280 that combines the values from the precomputed table with the values of
281 the Chebyshev polynomials.
283 2010-03-14 Bruno Haible <bruno@clisp.org>
285 Fix compilation error when modules 'posix_spawn[p]' are not used.
286 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
287 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
289 2010-03-14 Bruno Haible <bruno@clisp.org>
291 Fix compilation error on mingw when module 'time_r' is not used.
292 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
294 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
295 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
296 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
297 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
299 2010-03-14 Bruno Haible <bruno@clisp.org>
301 Fix compilation error with Sun C.
302 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
303 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
304 instead of GCC specific ULONG_LONG_MAX.
305 * lib/xstrtoll.c: Likewise.
306 * lib/xstrtoull.c: Likewise.
308 2010-03-13 Bruno Haible <bruno@clisp.org>
310 Allow the user to disable C++ code and tests.
311 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
312 (gl_PROG_ANSI_CXX): Require it.
314 2010-03-13 Bruno Haible <bruno@clisp.org>
316 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
319 2010-03-13 Bruno Haible <bruno@clisp.org>
321 Test that gnulib does not break the standard C++ headers.
322 * tests/test-locale-c++2.cc: New file.
323 * modules/locale-tests (Files): Add it.
324 (Makefile.am): Compile it for test-locale-c++.
325 * tests/test-math-c++2.cc: New file.
326 * modules/math-tests (Files): Add it.
327 (Makefile.am): Compile it for test-math-c++.
328 * tests/test-signal-c++2.cc: New file.
329 * modules/signal-tests (Files): Add it.
330 (Makefile.am): Compile it for test-signal-c++.
331 * tests/test-stdio-c++2.cc: New file.
332 * modules/stdio-tests (Files): Add it.
333 (Makefile.am): Compile it for test-stdio-c++.
334 * tests/test-stdlib-c++2.cc: New file.
335 * modules/stdlib-tests (Files): Add it.
336 (Makefile.am): Compile it for test-stdlib-c++.
337 * tests/test-string-c++2.cc: New file.
338 * modules/string-tests (Files): Add it.
339 (Makefile.am): Compile it for test-string-c++.
340 * tests/test-time-c++2.cc: New file.
341 * modules/time-tests (Files): Add it.
342 (Makefile.am): Compile it for test-time-c++.
343 Reported by John W. Eaton <jwe@gnu.org>.
345 2010-03-13 Bruno Haible <bruno@clisp.org>
347 * gnulib-tool (func_usage): Clarify which options are available for
348 --create-testdir and --create-megatestdir.
350 2010-03-13 Bruno Haible <bruno@clisp.org>
352 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
353 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
354 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
355 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
356 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
358 Reported by Jim Meyering.
360 2010-03-12 Simon Josefsson <simon@josefsson.org>
362 * gnulib-tool (func_import): Explain origin of code.
364 2010-03-12 Bruno Haible <bruno@clisp.org>
366 Fix problem with automake's definition of CXXLINK.
367 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
368 Reported by Simon Josefsson and Ludovic Courtès.
370 2010-03-12 Bruno Haible <bruno@clisp.org>
372 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
375 2010-03-11 Bruno Haible <bruno@clisp.org>
377 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
378 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
379 whether the system provides one variant or multiple variants of the
381 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
383 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
384 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
385 Reported by Jim Meyering.
387 2010-03-09 Simon Josefsson <simon@josefsson.org>
389 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
391 2010-03-08 Bruno Haible <bruno@clisp.org>
393 gnulib-tool: Add support for --libtool in --create-testdir.
394 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
395 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
397 2010-03-08 Eric Blake <eblake@redhat.com>
399 gnulib-tool.texi: mention possibility of git submodule
400 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
402 * doc/.gitignore: Ignore another generated file.
404 2010-03-08 Karl Berry <karl@gnu.org>
406 * doc/gnulib-tool.texi (VCS Issues): Mention third option
407 of committing gnulib files while skipping others.
409 2010-03-07 Bruno Haible <bruno@clisp.org>
411 Tests of module 'wctype' in C++ mode.
412 * tests/test-wctype-c++.cc: New file.
413 * modules/wctype-tests (Files): Add it and tests/signature.h.
414 (Depends-on): Add ansi-c++-opt.
415 (Makefile.am): Arrange to compile and run test-wctype-c++.
417 Tests of module 'wchar' in C++ mode.
418 * tests/test-wchar-c++.cc: New file.
419 * modules/wchar-tests (Files): Add it and tests/signature.h.
420 (Depends-on): Add ansi-c++-opt.
421 (Makefile.am): Arrange to compile and run test-wchar-c++.
422 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
425 Tests of module 'unistd' in C++ mode.
426 * tests/test-unistd-c++.cc: New file.
427 * modules/unistd-tests (Files): Add it and tests/signature.h.
428 (Depends-on): Add ansi-c++-opt.
429 (Makefile.am): Arrange to compile and run test-unistd-c++.
430 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
433 Tests of module 'time' in C++ mode.
434 * tests/test-time-c++.cc: New file.
435 * modules/time-tests (Files): Add it and tests/signature.h.
436 (Depends-on): Add ansi-c++-opt.
437 (Makefile.am): Arrange to compile and run test-time-c++.
438 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
440 Tests of module 'sys_time' in C++ mode.
441 * tests/test-sys_time-c++.cc: New file.
442 * modules/sys_time-tests (Files): Add it and tests/signature.h.
443 (Depends-on): Add ansi-c++-opt.
444 (Makefile.am): Arrange to compile and run test-sys_time-c++.
445 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
448 Tests of module 'sys_stat' in C++ mode.
449 * tests/test-sys_stat-c++.cc: New file.
450 * modules/sys_stat-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_stat-c++.
453 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
456 Tests of module 'sys_socket' in C++ mode.
457 * tests/test-sys_socket-c++.cc: New file.
458 * modules/sys_socket-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_socket-c++.
461 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
464 Tests of module 'sys_select' in C++ mode.
465 * tests/test-sys_select-c++.cc: New file.
466 * modules/sys_select-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_select-c++.
469 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
472 Tests of module 'sys_ioctl' in C++ mode.
473 * tests/test-sys_ioctl-c++.cc: New file.
474 * modules/sys_ioctl-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_ioctl-c++.
477 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
480 Tests of module 'string' in C++ mode.
481 * tests/test-string-c++.cc: New file.
482 * modules/string-tests (Files): Add it and tests/signature.h.
483 (Depends-on): Add ansi-c++-opt.
484 (Makefile.am): Arrange to compile and run test-string-c++.
485 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
488 Tests of module 'stdlib' in C++ mode.
489 * tests/test-stdlib-c++.cc: New file.
490 * modules/stdlib-tests (Files): Add it and tests/signature.h.
491 (Depends-on): Add ansi-c++-opt.
492 (Makefile.am): Arrange to compile and run test-stdlib-c++.
493 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
496 Tests of module 'stdio' in C++ mode.
497 * tests/test-stdio-c++.cc: New file.
498 * modules/stdio-tests (Files): Add it and tests/signature.h.
499 (Depends-on): Add ansi-c++-opt.
500 (Makefile.am): Arrange to compile and run test-stdio-c++.
501 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
504 Tests of module 'spawn' in C++ mode.
505 * tests/test-spawn-c++.cc: New file.
506 * modules/spawn-tests (Files): Add it and tests/signature.h.
507 (Depends-on): Add ansi-c++-opt.
508 (Makefile.am): Arrange to compile and run test-spawn-c++.
509 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
512 Tests of module 'signal' in C++ mode.
513 * tests/test-signal-c++.cc: New file.
514 * modules/signal-tests (Files): Add it and tests/signature.h.
515 (Depends-on): Add ansi-c++-opt.
516 (Makefile.am): Arrange to compile and run test-signal-c++.
517 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
520 Tests of module 'search' in C++ mode.
521 * tests/test-search-c++.cc: New file.
522 * modules/search-tests (Files): Add it and tests/signature.h.
523 (Depends-on): Add ansi-c++-opt.
524 (Makefile.am): Arrange to compile and run test-search-c++.
525 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
528 Tests of module 'math' in C++ mode.
529 * tests/test-math-c++.cc: New file.
530 * modules/math-tests (Files): Add it and tests/signature.h.
531 (Depends-on): Add ansi-c++-opt.
532 (Makefile.am): Arrange to compile and run test-math-c++.
533 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
535 Tests of module 'locale' in C++ mode.
536 * tests/test-locale-c++.cc: New file.
537 * modules/locale-tests (Files): Add it and tests/signature.h.
538 (Depends-on): Add ansi-c++-opt.
539 (Makefile.am): Arrange to compile and run test-locale-c++.
540 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
543 Tests of module 'langinfo' in C++ mode.
544 * tests/test-langinfo-c++.cc: New file.
545 * modules/langinfo-tests (Files): Add it and tests/signature.h.
546 (Depends-on): Add ansi-c++-opt.
547 (Makefile.am): Arrange to compile and run test-langinfo-c++.
548 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
551 Tests of module 'iconv-h' in C++ mode.
552 * tests/test-iconv-h-c++.cc: New file.
553 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
554 (Depends-on): Add ansi-c++-opt.
555 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
557 Tests of module 'glob' in C++ mode.
558 * tests/test-glob-c++.cc: New file.
559 * modules/glob-tests (Files): Add it.
560 (Depends-on): Add ansi-c++-opt.
561 (Makefile.am): Arrange to compile and run test-glob-c++.
563 Tests of module 'fcntl-h' in C++ mode.
564 * tests/test-fcntl-h-c++.cc: New file.
565 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
566 (Depends-on): Add ansi-c++-opt.
567 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
568 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
571 Tests of module 'dirent' in C++ mode.
572 * tests/test-dirent-c++.cc: New file.
573 * modules/dirent-tests (Files): Add it and tests/signature.h.
574 (Depends-on): Add ansi-c++-opt.
575 (Makefile.am): Arrange to compile and run test-dirent-c++.
576 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
579 New module 'ansi-c++-opt'.
580 * modules/ansi-c++-opt: New file.
581 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
583 Document C++ namespace mode.
584 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
586 wctype: Avoid #define replacements in C++ mode.
587 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
588 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
589 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
590 In C++, define a namespaced alias symbol.
591 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
592 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
593 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
596 wchar: Avoid #define replacements in C++ mode.
597 * lib/wchar.in.h: Include c++defs.h.
598 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
599 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
601 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
602 * modules/wchar (Depends-on): Add c++defs.
603 (Makefile.am): Update wchar.h rule.
605 unistd: Avoid #define replacements in C++ mode.
606 * lib/unistd.in.h: Include c++defs.h.
607 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
608 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
609 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
610 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
611 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
612 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
615 * modules/unistd (Depends-on): Add c++defs.
616 (Makefile.am): Update unistd.h rule.
618 time: Avoid #define replacements in C++ mode.
619 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
620 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
621 define a namespaced alias symbol.
622 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
623 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
624 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
625 * modules/time (Depends-on): Add c++defs, warn-on-use.
626 (Makefile.am): Update time.h rule.
627 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
628 * modules/nanosleep (configure.ac): Likewise.
629 * modules/strptime (configure.ac): Likewise.
630 * modules/timegm (configure.ac): Likewise.
632 sys_time: Avoid #define replacements in C++ mode.
633 * lib/sys_time.in.h: Include c++defs.h.
634 (gettimeofday): In C++, define a namespaced alias symbol.
635 * modules/sys_time (Depends-on): Add c++defs.
636 (Makefile.am): Update sys/time.h rule.
638 sys_stat: Avoid #define replacements in C++ mode.
639 * lib/sys_stat.in.h: Include c++defs.h.
640 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
641 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
642 namespaced alias symbol.
643 In C++, define a namespaced alias symbol.
644 * modules/sys_stat (Depends-on): Add c++defs.
645 (Makefile.am): Update sys/stat.h rule.
647 sys_socket: Avoid #define replacements in C++ mode.
648 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
649 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
650 definitions also when the system has a <sys/socket.h>.
651 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
652 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
653 In C++, define a namespaced alias symbol.
654 * modules/sys_socket (Depends-on): Add c++defs.
655 (Makefile.am): Update sys/socket.h rule.
657 sys_select: Avoid #define replacements in C++ mode.
658 * lib/sys_select.in.h: Include c++defs.h. Enable the function
659 definitions also when the system has a <sys/select.h>.
660 (select): In C++, define a namespaced alias symbol.
661 * modules/sys_select (Depends-on): Add c++defs.
662 (Makefile.am): Update sys/select.h rule.
664 sys_ioctl: Avoid #define replacements in C++ mode.
665 * lib/sys_ioctl.in.h: Include c++defs.h.
666 (ioctl): In C++, define a namespaced alias symbol.
667 * modules/sys_ioctl (Depends-on): Add c++defs.
668 (Makefile.am): Update sys/ioctl.h rule.
670 string: Avoid #define replacements in C++ mode.
671 * lib/string.in.h: Include c++defs.h.
672 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
673 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
674 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
675 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
676 strsignal, strverscmp): In C++, define a namespaced alias symbol.
677 * modules/string (Depends-on): Add c++defs.
678 (Makefile.am): Update string.h rule.
680 stdlib: Avoid #define replacements in C++ mode.
681 * lib/stdlib.in.h: Include c++defs.h.
682 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
683 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
684 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
685 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
687 * modules/stdlib (Depends-on): Add c++defs.
688 (Makefile.am): Update stdlib.h rule.
690 stdio: Avoid #define replacements in C++ mode.
691 * lib/stdio.in.h: Include c++defs.h.
692 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
693 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
694 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
695 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
696 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
697 namespaced alias symbol.
698 * modules/stdio (Depends-on): Add c++defs.
699 (Makefile.am): Update stdio.h rule.
701 spawn: Avoid #define replacements in C++ mode.
702 * lib/spawn.in.h: Include c++defs.h.
703 (posix_spawn, posix_spawnp, posix_spawnattr_init,
704 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
705 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
706 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
707 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
708 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
709 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
710 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
711 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
712 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
713 In C++, define a namespaced alias symbol.
714 * modules/spawn (Depends-on): Add c++defs.
715 (Makefile.am): Update spawn.h rule.
717 signal: Avoid #define replacements in C++ mode.
718 * lib/signal.in.h: Include c++defs.h.
719 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
720 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
721 namespaced alias symbol.
722 * modules/signal (Depends-on): Add c++defs.
723 (Makefile.am): Update signal.h rule.
725 search: Avoid #define replacements in C++ mode.
726 * lib/search.in.h: Include c++defs.h.
727 (_gl_search_compar_fn, _gl_search_action_fn): New types.
728 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
730 * modules/search (Depends-on): Add c++defs.
731 (Makefile.am): Update search.h rule.
733 math: Avoid #define replacements in C++ mode.
734 * lib/math.in.h: Include c++defs.h.
735 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
736 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
737 trunc, truncl): In C++, define a namespaced alias symbol.
738 * modules/math (Depends-on): Add c++defs.
739 (Makefile.am): Update math.h rule.
741 locale: Avoid #define replacements in C++ mode.
742 * lib/locale.in.h: Include c++defs.h.
743 (duplocale): In C++, define a namespaced alias symbol.
744 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
745 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
746 * modules/locale (Depends-on): Add c++defs.
747 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
749 langinfo: Avoid #define replacements in C++ mode.
750 * lib/langinfo.in.h: Include c++defs.h.
751 (nl_langinfo): In C++, define a namespaced alias symbol.
752 * modules/langinfo (Depends-on): Add c++defs.
753 (Makefile.am): Update langinfo.h rule.
755 iconv-h: Avoid #define replacements in C++ mode.
756 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
757 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
759 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
760 whenever iconv is present.
761 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
762 (Makefile.am): Update iconv.h rule.
764 glob: Avoid #define replacements in C++ mode.
765 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
766 (_gl_glob_errfunc_fn): New type.
767 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
769 * modules/glob (Depends-on): Add c++defs, warn-on-use.
770 (Makefile.am): Update glob.h rule.
772 fcntl-h: Avoid #define replacements in C++ mode.
773 * lib/fcntl.in.h: Include c++defs.h.
774 (fcntl, open, openat): In C++, define a namespaced alias symbol.
775 * modules/fcntl-h (Depends-on): Add c++defs.
776 (Makefile.am): Update fcntl.h rule.
778 dirent: Avoid #define replacements in C++ mode.
779 * lib/dirent.in.h: Include c++defs.h.
780 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
781 namespaced alias symbol.
782 (dirfd): Update declaration.
783 * modules/dirent (Depends-on): Add c++defs.
784 (Makefile.am): Update dirent.h rule.
786 ctype: Make it usable in C++ code.
787 * lib/ctype.in.h: Include c++defs.h.
788 (isblank): Declare as extern "C".
789 * modules/ctype (Depends-on): Add c++defs.
790 (Makefile.am): Update ctype.h rule.
792 New module 'c++defs'.
793 * modules/c++defs: New file.
794 * build-aux/c++defs.h: New file.
795 Reported by John W. Eaton <jwe@gnu.org>.
797 2010-03-07 Bruno Haible <bruno@clisp.org>
799 logb: Provide missing declaration for Cygwin.
800 * lib/math.in.h (logb): New declaration.
801 * m4/logb.m4: New file.
802 * modules/logb (Files): Add m4/logb.m4.
803 (Depends-on): Add math.
804 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
805 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
806 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
807 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
808 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
810 2010-03-07 Bruno Haible <bruno@clisp.org>
812 Fix test-cond link error.
813 * tests/test-cond.c: Include <stdio.h>.
815 2010-03-07 Bruno Haible <bruno@clisp.org>
817 Fix test-dirent-safer link error.
818 * modules/dirent-safer-tests (Makefile.am): Define
819 test_dirent_safer_LDADD.
821 2010-03-07 Bruno Haible <bruno@clisp.org>
823 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
824 among default module list.
826 2010-03-07 Bruno Haible <bruno@clisp.org>
828 Fix link error on platforms with GNU libiconv.
829 * modules/unistr/u8-strcoll-tests (Makefile): Define
830 test_u8_strcoll_LDADD.
831 * modules/unistr/u16-strcoll-tests (Makefile): Define
832 test_u16_strcoll_LDADD.
833 * modules/unistr/u32-strcoll-tests (Makefile): Define
834 test_u32_strcoll_LDADD.
836 2010-03-07 Bruno Haible <bruno@clisp.org>
838 Use POSIX declarations for socket functions.
839 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
840 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
841 rpl_sendto): Change declaration to match POSIX.
842 * lib/connect.c (rpl_connect): Likewise.
843 * lib/accept.c (rpl_accept): Likewise.
844 * lib/bind.c (rpl_bind): Likewise.
845 * lib/getpeername.c (rpl_getpeername): Likewise.
846 * lib/getsockname.c (rpl_getsockname): Likewise.
847 * lib/recv.c (rpl_recv): Likewise.
848 * lib/send.c (rpl_send): Likewise.
849 * lib/recvfrom.c (rpl_recvfrom): Likewise.
850 * lib/sendto.c (rpl_sendto): Likewise.
852 2010-03-06 Bruno Haible <bruno@clisp.org>
854 Clarify access, euidaccess, faccessat.
855 * doc/posix-functions/faccessat.texi: Mention security problem under
856 "Other problems", not "Portability problems".
857 * doc/posix-functions/access.texi: Likewise. Mention a related security
859 * doc/glibc-functions/euidaccess.texi: Mention security problems.
860 * lib/euidaccess.c: Add comments about platforms.
861 * lib/unistd.in.h (access, euidaccess): Add warnings.
863 2010-03-07 Bruno Haible <bruno@clisp.org>
865 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
866 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
867 (POSIX_SPAWN_SETSCHEDULER): Likewise.
868 (POSIX_SPAWN_USEVFORK): Define in a way that works when
869 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
870 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
871 declare when POSIX_SPAWN_SETSCHEDULER is zero.
872 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
873 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
874 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
875 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
876 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
877 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
878 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
879 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
880 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
881 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
882 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
883 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
884 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
886 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
887 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
888 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
890 * tests/test-spawn.c (main): Make it work when
891 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
893 2010-03-07 Bruno Haible <bruno@clisp.org>
895 Fix incorrect Makefile.am generation in German locale.
896 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
897 Execute sed command with character range in C locale.
899 2010-03-06 Bruno Haible <bruno@clisp.org>
901 Tests for module 'iconv-h'.
902 * modules/iconv-h-tests: New file.
903 * tests/test-iconv-h.c: New file.
905 New module 'iconv-h'.
906 * modules/iconv-h: New file.
907 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
908 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
909 (configure.ac): Remove gl_ICONV_H.
910 (Makefile.am): Remove rule for iconv.h.
912 2010-03-06 Bruno Haible <bruno@clisp.org>
914 More consistent naming of *.m4 files.
915 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
916 * modules/wctype (Files): Update.
918 More consistent naming of *.m4 files.
919 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
920 * modules/wchar (Files): Update.
922 2010-03-06 Jim Meyering <meyering@redhat.com>
924 euidaccess: relax license to LGPLv2+
925 * modules/euidaccess (License): Relax to LGPLv2+.
927 2010-03-06 Bruno Haible <bruno@clisp.org>
929 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
930 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
931 (Makefile.am): Augment lib_SOURCES instead.
933 2010-03-04 Jim Meyering <meyering@redhat.com>
935 utime: remove obsolete module
936 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
937 unnecessary for years, and has been marked as obsolete for 10 months.
938 * modules/utime: Remove file.
939 * lib/utime.c: Remove file.
940 * m4/utime.m4: Remove file.
941 * m4/utimes-null.m4: Remove file.
942 * doc/posix-functions/utime.texi (utime): Remove reference to
943 the module. Move the sole "fixed by gnulib" item into the
944 "problems not fixed by Gnulib" list.
945 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
947 2010-03-05 Simon Josefsson <simon@josefsson.org>
949 * modules/exit (License): Relax license to LGPLv2+.
950 (Status): Mark as obsolete.
951 * NEWS: Mention deprecated 'exit' module.
952 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
953 of now obsolete 'exit'.
955 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
957 fts-lgpl: remove unused module
958 * modules/fts-lgpl: Remove.
959 * MODULES.html.sh (func_all_modules): Adjust.
960 * check-module (find_included_lib_files): Adjust.
961 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
963 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
965 copy-acl: enhance Solaris ACL error handling
966 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
967 * lib/set-mode-acl.c (qset_acl): Likewise.
969 2010-03-02 Bruno Haible <bruno@clisp.org>
971 spawn: Don't override the system defined values on FreeBSD 8.
972 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
973 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
974 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
975 if HAVE_POSIX_SPAWN is 1.
976 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
978 2010-03-01 Bruno Haible <bruno@clisp.org>
980 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
983 2010-02-25 Bruno Haible <bruno@clisp.org>
985 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
986 * gnulib-tool: Define 'echo' as a function only before the ksh alias
987 setting, not afterwards.
988 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
990 2010-02-24 Eric Blake <eblake@redhat.com>
992 bootstrap, git-version-gen: use timestamp
993 * build-aux/git-version-gen (scriptversion): Force UTC.
994 * build-aux/bootstrap (scriptversion): New variable.
996 bootstrap: allow older git
997 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
998 older than 1.6.4. Requested by the libvirt project.
1000 2010-02-23 Eric Blake <eblake@redhat.com>
1002 warn-on-use: work with old autoconf
1003 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1004 AS_VAR semantics of autoconf 2.60.
1005 Reported by Bruno Haible.
1007 bootstrap: improve some comments
1008 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
1009 clarification comments.
1011 gettimeofday: provide correct function
1012 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1013 when replacement is declared, otherwise provide gettimeofday.
1014 Reported by Michael Goffioul.
1016 2010-02-23 Jim Meyering <meyering@redhat.com>
1018 lib-ignore: relax license to "unlimited", not LGPLv2+
1019 * modules/lib-ignore (License): Relax to "unlimited".
1021 2010-02-23 Jim Meyering <meyering@redhat.com>
1023 lib-ignore: relax license to LGPLv2+
1024 * modules/lib-ignore (License): Relax to LGPLv2+.
1026 2010-02-22 Eric Blake <eblake@redhat.com>
1028 lseek: avoid bash 3.2 broken pipe bug
1029 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1030 warning from bash 3.2.
1031 Reported by Ben Pfaff, with analysis from Bruno Haible.
1033 bootstrap: support non-FSF copyright holder
1034 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1035 bootstrap.conf override of COPYRIGHT_HOLDER.
1036 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1038 bootstrap: interoperate with gettext 0.14.1
1039 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1041 bootstrap: allow for alternate submodule location
1042 * build-aux/bootstrap (gnulib_path): New variable; use instead of
1043 hardcoding submodule location.
1044 (gnulib_mk): Allow direct use of Makefile.am.
1046 bootstrap: use GNULIB_SRCDIR to reduce disk usage
1047 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1048 rather than reconfiguring where the submodule points.
1050 gettimeofday: restore support for platforms that lack function
1051 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1052 replacement if function is missing.
1053 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1054 * modules/sys_time (Makefile.am): Substitute it.
1055 * lib/sys_time.in.h (gettimeofday): Check it.
1056 Reported by Michael Goffioul.
1058 2010-02-21 Bruno Haible <bruno@clisp.org>
1060 * lib/stdio.in.h (obstack_printf): Fix typo.
1062 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
1064 vc-list-files: use bzr ls's -R option
1065 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1066 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1068 2010-02-21 Jim Meyering <meyering@redhat.com>
1070 init.sh: fix EXEEXT shims to work also for names like test-prog
1071 * tests/init.sh: Re-exec a better shell, when needed.
1072 If the current shell lacks support for posix $(...), an init.sh-using
1073 test will now try to find a shell that supports that. If EXEEXT is
1074 nonempty, we also require support for hyphen-in-alias-name and shell
1075 substitutions like ${var#glob}. Failure to find such a shell results
1078 2010-02-21 Bruno Haible <bruno@clisp.org>
1080 Really work around around "broken pipe" error message from bash 3.2.
1081 * gnulib-tool (func_reset_sigpipe): Remove function.
1082 (echo): In bash 3.2, define to a function that uses printf.
1083 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1085 2010-02-20 Bruno Haible <bruno@clisp.org>
1087 Restore support for automake 1.9.6 with autoconf 2.61.
1088 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1089 Reported by James Youngman <jay@gnu.org>.
1091 2010-02-20 Bruno Haible <bruno@clisp.org>
1093 Improve *printf warning condition.
1094 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1095 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1096 and the function is overridden due to SIGPIPE emulation.
1098 2010-02-20 Bruno Haible <bruno@clisp.org>
1100 * lib/stdio.in.h: Tweak comments.
1102 2010-02-19 Bruno Haible <bruno@clisp.org>
1104 Make it easier to find modules. New gnulib-tool option '--find'.
1105 * gnulib-tool: New option --find.
1106 (func_usage): Document it.
1107 (func_sanitize_modulelist): New function, extracted from
1109 (func_all_modules): Invoke it.
1110 * doc/gnulib-tool.texi (Which modules?): New node.
1112 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
1114 * lib/sys_select.in.h: Provide select replacement even if
1115 sys/select.h exists on a system, for Interix.
1117 2010-02-18 Jim Meyering <meyering@redhat.com>
1119 init.sh: don't use $(...) just yet
1120 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1121 to accommodate e.g., Solaris' /bin/sh.
1123 2010-02-17 Bruno Haible <bruno@clisp.org>
1125 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1126 Reported by Ludovic Courtès <ludo@gnu.org>.
1128 2010-02-16 Simon Josefsson <simon@josefsson.org>
1130 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1131 linking with -lintl.
1133 2010-02-17 Simon Josefsson <simon@josefsson.org>
1135 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1136 if not provided by the system's netdb.h. Reported by
1137 ludo@gnu.org (Ludovic Courtès).
1139 2010-02-15 Jim Meyering <meyering@redhat.com>
1141 init.sh: improve portability and efficiency
1142 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1143 "dummy" in a for loop.
1144 Use '!', not '^' to select the complement of a character set used
1145 in a "case" statement.
1146 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1147 Suggestions from Eric Blake.
1149 init.sh: automatically accommodate programs with the .exe suffix
1150 Automatically arrange for an invocation of "prog" to execute the
1151 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
1152 may use the simpler "prog", yet still work when built on a system
1153 that requires specifying the added suffix.
1154 Do this by constructing a function named "prog" that invokes
1155 "prog.exe" for each .exe file in selected directories.
1156 * tests/init.sh (find_exe_basenames_): New function.
1157 (create_exe_shim_functions_): New function.
1158 (path_prepend_): Use it.
1160 maint.mk: mark syntax-check sc_*.m rules as .PHONY
1161 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1162 "make -t syntax-check" doesn't create a ton of sc_*.m files.
1164 2010-02-14 Jim Meyering <meyering@redhat.com>
1166 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1167 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1168 (sc_prohibit_hash_pjw_without_use): New rule.
1170 maint.mk: allow the default upload destination dir to be overridden
1171 * top/maint.mk (upload_dest_dir_): Define with a default that
1172 preserves the status quo.
1173 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1174 Reported by Peter Simons.
1176 maint.mk: prohibit inclusion of "hash.h" without_use
1177 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1179 2010-02-10 Jim Meyering <meyering@redhat.com>
1181 maint.mk: prohibit inclusion of "ignore-value.h" without_use
1182 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1184 2010-02-09 Eric Blake <ebb9@byu.net>
1185 and Bruno Haible <bruno@clisp.org>
1187 obstack-printf-posix: ensure declaration
1188 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1189 extracted from gl_FUNC_OBSTACK_PRINTF.
1190 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1191 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1193 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1194 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1197 2010-02-08 Bruno Haible <bruno@clisp.org>
1199 gnulib-tool: Fix typo in 2010-02-07 commit.
1200 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1201 Reported by Eric Blake.
1203 2010-02-07 Bruno Haible <bruno@clisp.org>
1205 gnulib-tool: Fix up caching patches.
1206 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1207 option --no-cache. Use associative arrays when supported by the shell.
1208 (sed_comments): New variable.
1209 (modcache): Renamed from do_cache.
1210 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1211 abbreviate unnecessarily.
1212 (have_associative): New variable.
1213 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1214 way also for ksh and zsh.
1215 (func_init_sed_convert_to_cache_statements): New function, extracted
1216 from func_cache_lookup_module. Add support for associative arrays.
1217 Don't set the c_MODULE_cached variable here. Ignore all lines before
1218 the first field header. Remove only the final newline, not all trailing
1219 newlines. Support empty fields correctly. Limit the use of 'eval' to
1221 (func_get_description, func_get_status, func_get_notice,
1222 func_get_applicability, func_get_filelist, func_get_dependencies,
1223 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1224 func_get_automake_snippet, func_get_include_directive,
1225 func_get_link_directive, func_get_license, func_get_maintainer):
1226 Update documentation. List the unoptimized code first. Add support for
1227 associative arrays. Limit the use of 'eval' to assignments.
1228 (func_get_applicability): Undo stylistic pessimisations.
1229 (func_get_automake_snippet, func_get_include_directive): Reduce code
1231 (func_modules_transitive_closure, func_modules_add_dummy,
1232 func_modules_notice, func_modules_to_filelist, func_add_file,
1233 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1234 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1235 func_create_testdir, func_create_megatestdir): Update documentation.
1237 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1239 * gnulib-tool (func_cache_lookup_module): Store the module name
1240 belonging to the cache variable; error out if two different
1241 module names map to the same cache variable name.
1243 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1245 gnulib-tool: Make caching optional.
1246 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1247 Update matching short versions of --no-changelog.
1248 (func_usage): Update.
1249 (sed_extract_cache_prog): Renamed from ...
1250 (sed_extract_prog): ... this; revert to old extraction script.
1251 (func_get_description, func_get_status)
1252 (func_get_notice, func_get_applicability, func_get_filelist)
1253 (func_get_dependencies, func_get_autoconf_early_snippet)
1254 (func_get_autoconf_snippet, func_get_automake_snippet)
1255 (func_get_include_directive, func_get_link_directive)
1256 (func_get_license, func_get_maintainer): If $do_cache is false,
1257 use old, non-caching extraction scripts.
1258 Suggestion by Bruno Haible.
1260 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1262 gnulib-tool: cache module metainformation.
1263 * gnulib-tool (sed_extract_prog): Match newline before each
1264 header, and rewrite header to a shell variable suffix.
1265 (func_cache_var, func_cache_lookup_module): New functions,
1266 to turn a module name into a cache variable prefix, and to
1267 look up and cache module metainformation.
1268 (func_get_description, func_get_status)
1269 (func_get_notice, func_get_applicability, func_get_filelist)
1270 (func_get_dependencies, func_get_autoconf_early_snippet)
1271 (func_get_autoconf_snippet, func_get_automake_snippet)
1272 (func_get_include_directive, func_get_link_directive)
1273 (func_get_license, func_get_maintainer): Use
1274 func_cache_lookup_module.
1276 2010-02-07 Bruno Haible <bruno@clisp.org>
1278 fnctl: Fix missing dependency.
1279 * modules/fcntl (Depends-on): Add getdtablesize.
1280 Reported by John W. Eaton <jwe@gnu.org>.
1282 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1284 Argp: fix recognition of short alias options.
1286 * lib/argp-parse.c (convert_options): Fix improper use of
1287 `|' between character values.
1288 * tests/test-argp.c (group1_option): New alias option
1290 (group1_parser): Special handling for 'r'.
1291 (test15): New test case.
1292 (test_fun): Add test15.
1293 * tests/test-argp-2.sh: Update expected --help and --usage
1296 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1298 * tests/test-argp.c: Fix indentation.
1300 2010-02-04 Eric Blake <ebb9@byu.net>
1302 gettimeofday: expose type of second argument
1303 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1304 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1305 * tests/test-gettimeofday.c: Use it to silence warning.
1306 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1309 2010-02-03 Jim Meyering <meyering@redhat.com>
1311 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1312 * lib/regcomp.c (TYPE_SIGNED): Define.
1313 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1315 regcomp.c: avoid a new -Wshadow warning
1316 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1318 2010-02-01 Jim Meyering <meyering@redhat.com>
1320 removing useless parentheses in cpp #define directives
1321 For motivation, see commit c0221df4, "define STREQ(a,b)
1322 consistently, removing useless parentheses"
1323 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1324 * lib/mountlist.c (MNT_IGNORE): Likewise.
1325 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1327 2010-02-01 Eric Blake <ebb9@byu.net>
1329 sys_time: use link-warning
1330 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1331 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1332 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1333 * modules/sys_time (Depends-on): Add warn-on-use.
1334 (Makefile.am): Always build replacement.
1335 (configure.ac): Update substitutions.
1336 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1337 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1338 bother with SYS_TIME_H.
1339 * modules/gettimeofday (configure.ac): Declare indicator.
1340 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1343 closein-tests: silence compiler warning
1344 * tests/test-closein.c (main): Ignore fread result.
1345 * modules/closein-tests (Depends-on): Add ignore-value.
1347 tests: silence warning about system return
1348 * tests/test-areadlink-with-size.c (main): Ignore system result.
1349 * tests/test-areadlink.c (main): Likewise.
1350 * tests/test-areadlinkat-with-size.c (main): Likewise.
1351 * tests/test-areadlinkat.c (main): Likewise.
1352 * tests/test-canonicalize-lgpl.c (main): Likewise.
1353 * tests/test-canonicalize.c (main): Likewise.
1354 * tests/test-chown.c (main): Likewise.
1355 * tests/test-fchownat.c (main): Likewise.
1356 * tests/test-fdutimensat.c (main): Likewise.
1357 * tests/test-fstatat.c (main): Likewise.
1358 * tests/test-futimens.c (main): Likewise.
1359 * tests/test-lchown.c (main): Likewise.
1360 * tests/test-link.c (main): Likewise.
1361 * tests/test-linkat.c (main): Likewise.
1362 * tests/test-lstat.c (main): Likewise.
1363 * tests/test-mkdir.c (main): Likewise.
1364 * tests/test-mkdirat.c (main): Likewise.
1365 * tests/test-mkfifo.c (main): Likewise.
1366 * tests/test-mkfifoat.c (main): Likewise.
1367 * tests/test-mknod.c (main): Likewise.
1368 * tests/test-readlink.c (main): Likewise.
1369 * tests/test-remove.c (main): Likewise.
1370 * tests/test-rename.c (main): Likewise.
1371 * tests/test-renameat.c (main): Likewise.
1372 * tests/test-rmdir.c (main): Likewise.
1373 * tests/test-symlink.c (main): Likewise.
1374 * tests/test-symlinkat.c (main): Likewise.
1375 * tests/test-unlink.c (main): Likewise.
1376 * tests/test-unlinkat.c (main): Likewise.
1377 * tests/test-utimens.c (main): Likewise.
1378 * tests/test-utimensat.c (main): Likewise.
1379 * modules/areadlink-tests (Depends-on): Add ignore-value.
1380 * modules/areadlink-with-size-tests (Depends-on): Likewise.
1381 * modules/areadlinkat-tests (Depends-on): Likewise.
1382 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1383 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1384 * modules/canonicalize-tests (Depends-on): Likewise.
1385 * modules/chown-tests (Depends-on): Likewise.
1386 * modules/fdutimensat-tests (Depends-on): Likewise.
1387 * modules/futimens-tests (Depends-on): Likewise.
1388 * modules/lchown-tests (Depends-on): Likewise.
1389 * modules/link-tests (Depends-on): Likewise.
1390 * modules/linkat-tests (Depends-on): Likewise.
1391 * modules/lstat-tests (Depends-on): Likewise.
1392 * modules/mkdir-tests (Depends-on): Likewise.
1393 * modules/mkfifo-tests (Depends-on): Likewise.
1394 * modules/mkfifoat-tests (Depends-on): Likewise.
1395 * modules/mknod-tests (Depends-on): Likewise.
1396 * modules/openat-tests (Depends-on): Likewise.
1397 * modules/readlink-tests (Depends-on): Likewise.
1398 * modules/remove-tests (Depends-on): Likewise.
1399 * modules/rename-tests (Depends-on): Likewise.
1400 * modules/renameat-tests (Depends-on): Likewise.
1401 * modules/rmdir-tests (Depends-on): Likewise.
1402 * modules/symlink-tests (Depends-on): Likewise.
1403 * modules/symlinkat-tests (Depends-on): Likewise.
1404 * modules/unlink-tests (Depends-on): Likewise.
1405 * modules/utimens-tests (Depends-on): Likewise.
1406 * modules/utimensat-tests (Depends-on): Likewise.
1408 2010-01-31 Bruno Haible <bruno@clisp.org>
1410 Perform the same test for many <math.h> functions.
1411 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1412 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1413 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1415 * modules/acos (configure.ac): Likewise.
1416 * modules/asin (configure.ac): Likewise.
1417 * modules/atan (configure.ac): Likewise.
1418 * modules/atan2 (configure.ac): Likewise.
1419 * modules/cbrt (configure.ac): Likewise.
1420 * modules/copysign (configure.ac): Likewise.
1421 * modules/cos (configure.ac): Likewise.
1422 * modules/cosh (configure.ac): Likewise.
1423 * modules/erf (configure.ac): Likewise.
1424 * modules/erfc (configure.ac): Likewise.
1425 * modules/exp (configure.ac): Likewise.
1426 * modules/fmod (configure.ac): Likewise.
1427 * modules/hypot (configure.ac): Likewise.
1428 * modules/j0 (configure.ac): Likewise.
1429 * modules/j1 (configure.ac): Likewise.
1430 * modules/jn (configure.ac): Likewise.
1431 * modules/lgamma (configure.ac): Likewise.
1432 * modules/log (configure.ac): Likewise.
1433 * modules/log10 (configure.ac): Likewise.
1434 * modules/log1p (configure.ac): Likewise.
1435 * modules/pow (configure.ac): Likewise.
1436 * modules/remainder (configure.ac): Likewise.
1437 * modules/sin (configure.ac): Likewise.
1438 * modules/sinh (configure.ac): Likewise.
1439 * modules/tan (configure.ac): Likewise.
1440 * modules/tanh (configure.ac): Likewise.
1441 * modules/y0 (configure.ac): Likewise.
1442 * modules/y1 (configure.ac): Likewise.
1443 * modules/yn (configure.ac): Likewise.
1444 Suggested by Paolo Bonzini.
1446 2010-01-31 Bruno Haible <bruno@clisp.org>
1448 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1450 2010-01-31 Bruno Haible <bruno@clisp.org>
1452 Work around getdelim() bug on FreeBSD 8.0.
1453 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1454 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1456 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1458 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1459 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1460 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1462 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1464 2010-01-31 Bruno Haible <bruno@clisp.org>
1466 Work around getline() bug on FreeBSD 8.0.
1467 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1468 and a non-zero size.
1469 * tests/test-getline.c (main): Likewise.
1470 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1471 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1473 2010-01-28 Eric Blake <ebb9@byu.net>
1475 regex: fix build failure
1476 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1479 2010-01-28 Jim Meyering <meyering@redhat.com>
1481 regex: do not ignore memory allocation failure
1482 * lib/regex_internal.c (create_cd_newstate): Detect
1483 re_node_set_init_copy failure. Extracted from glibc commit
1484 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1486 regex: sync more white-space changes from libc
1487 * lib/regex_internal.c: White-space only changes.
1488 * lib/regexec.c: Likewise.
1490 regex: add many uses of __attribute_warn_unused_result__
1491 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1492 * lib/regexec.c: Likewise.
1493 Extracted from a messy glibc commit.
1495 regcomp.c: spelling and merge-artifact from glibc
1496 * lib/regcomp.c: Merge remainder of glibc's
1497 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1499 regcomp.c: sync white-space changes from glibc
1500 * lib/regcomp.c: Merge to accommodate white space
1501 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1503 regcomp.c: do not ignore internal return values
1504 * lib/regcomp.c: Do not ignore internal return values.
1505 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1506 but without its white-space changes and spelling fixes.
1508 regex_internal.h: define __attribute_warn_unused_result__
1509 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1511 maint: add a syntax-check rule to check for vulnerable Makefile.in
1512 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1514 2010-01-27 Jim Meyering <meyering@redhat.com>
1516 ncftpput-ftp: clean up spaces
1517 * build-aux/ncftpput-ftp: Make Copyright line consistent.
1518 Remove trailing blanks.
1520 2010-01-27 Simon Josefsson <simon@josefsson.org>
1522 * build-aux/git-version-gen: Fix copyright statement.
1523 * build-aux/gnupload: Likewise.
1524 * tests/test-arcfour.c: Likewise.
1525 * tests/test-arctwo.c: Likewise.
1526 * tests/test-count-one-bits.c: Likewise.
1527 * tests/test-crc.c: Likewise.
1528 * tests/test-des.c: Likewise.
1529 * tests/test-gc-arcfour.c: Likewise.
1530 * tests/test-gc-arctwo.c: Likewise.
1531 * tests/test-gc-des.c: Likewise.
1532 * tests/test-gc-hmac-md5.c: Likewise.
1533 * tests/test-gc-hmac-sha1.c: Likewise.
1534 * tests/test-gc-md2.c: Likewise.
1535 * tests/test-gc-md4.c: Likewise.
1536 * tests/test-gc-md5.c: Likewise.
1537 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1538 * tests/test-gc-rijndael.c: Likewise.
1539 * tests/test-gc-sha1.c: Likewise.
1540 * tests/test-gc.c: Likewise.
1541 * tests/test-gethostname.c: Likewise.
1542 * tests/test-gettimeofday.c: Likewise.
1543 * tests/test-hash.c: Likewise.
1544 * tests/test-hmac-md5.c: Likewise.
1545 * tests/test-hmac-sha1.c: Likewise.
1546 * tests/test-md2.c: Likewise.
1547 * tests/test-md4.c: Likewise.
1548 * tests/test-md5.c: Likewise.
1549 * tests/test-memchr.c: Likewise.
1550 * tests/test-memchr2.c: Likewise.
1551 * tests/test-memcmp.c: Likewise.
1552 * tests/test-memmem.c: Likewise.
1553 * tests/test-memrchr.c: Likewise.
1554 * tests/test-rawmemchr.c: Likewise.
1555 * tests/test-read-file.c: Likewise.
1556 * tests/test-rijndael.c: Likewise.
1557 * tests/test-sockets.c: Likewise.
1558 * tests/test-strchrnul.c: Likewise.
1559 * tests/test-strstr.c: Likewise.
1560 * tests/test-strtod.c: Likewise.
1561 * build-aux/ncftpput-ftp: Likewise.
1563 2010-01-26 Eric Blake <ebb9@byu.net>
1565 ignore-value: update recommended header name
1566 * modules/ignore-value (Include): Only use <> for headers that
1569 2010-01-26 Jim Meyering <meyering@redhat.com>
1571 test-userspec.c: avoid compiler warnings
1572 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1573 and "initialization discards qualifiers..." warnings.
1574 Put the first "uid" in its own scope, and make char* members "const".
1576 2010-01-25 Bruno Haible <bruno@clisp.org>
1578 gnulib-tool: Make warning diagnostics consistent.
1579 * gnulib-tool (func_warning): New function.
1580 Use it everywhere where gnulib-tool produces output to stderr and it is
1583 2010-01-25 Bruno Haible <bruno@clisp.org>
1585 Fix test dependencies.
1586 * modules/xstrtol-tests (Depends-on): Add inttypes.
1587 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1589 2010-01-25 Pádraig Brady <P@draigBrady.com>
1591 syntax-check: detect incorrect boolean macro values in config.h
1592 * modules/maintainer-makefile (configure.ac): Parameterize the location
1593 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1594 The logic is from Eric Blake and the location indicated by Jim Meyering.
1595 Note the more natural CONFIG_HEADER name is prohibited by automake
1596 for backwards compatibility reasons.
1597 * top/maint.mk (sc_Wundef_boolean): New rule.
1599 2010-01-25 Jim Meyering <meyering@redhat.com>
1601 bootstrap: detect MacOS 10.6's shasum, too
1602 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1603 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1605 2010-01-23 Jim Meyering <meyering@redhat.com>
1607 xstrtoll: new module
1608 * modules/xstrtoll: New file.
1609 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1610 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1611 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1612 ./configure fails if you use this module and lack "long long".
1613 * modules/xstrtoll-tests: New module.
1614 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1615 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1616 new init.sh-based test framework.
1618 2010-01-24 Bruno Haible <bruno@clisp.org>
1620 Tests for module 'yn'.
1621 * modules/yn-tests: New file.
1622 * tests/test-yn.c: New file.
1624 Tests for module 'y1'.
1625 * modules/y1-tests: New file.
1626 * tests/test-y1.c: New file.
1628 Tests for module 'y0'.
1629 * modules/y0-tests: New file.
1630 * tests/test-y0.c: New file.
1632 Tests for module 'tanh'.
1633 * modules/tanh-tests: New file.
1634 * tests/test-tanh.c: New file.
1636 Tests for module 'tan'.
1637 * modules/tan-tests: New file.
1638 * tests/test-tan.c: New file.
1640 Tests for module 'sqrt'.
1641 * modules/sqrt-tests: New file.
1642 * tests/test-sqrt.c: New file.
1644 Tests for module 'sinh'.
1645 * modules/sinh-tests: New file.
1646 * tests/test-sinh.c: New file.
1648 Tests for module 'sin'.
1649 * modules/sin-tests: New file.
1650 * tests/test-sin.c: New file.
1652 Tests for module 'rint'.
1653 * modules/rint-tests: New file.
1654 * tests/test-rint.c: New file.
1656 Tests for module 'remainder'.
1657 * modules/remainder-tests: New file.
1658 * tests/test-remainder.c: New file.
1660 Tests for module 'pow'.
1661 * modules/pow-tests: New file.
1662 * tests/test-pow.c: New file.
1664 Tests for module 'nextafter'.
1665 * modules/nextafter-tests: New file.
1666 * tests/test-nextafter.c: New file.
1668 Tests for module 'modf'.
1669 * modules/modf-tests: New file.
1670 * tests/test-modf.c: New file.
1672 Tests for module 'logb'.
1673 * modules/logb-tests: New file.
1674 * tests/test-logb.c: New file.
1676 Tests for module 'log1p'.
1677 * modules/log1p-tests: New file.
1678 * tests/test-log1p.c: New file.
1680 Tests for module 'log10'.
1681 * modules/log10-tests: New file.
1682 * tests/test-log10.c: New file.
1684 Tests for module 'log'.
1685 * modules/log-tests: New file.
1686 * tests/test-log.c: New file.
1688 Tests for module 'lgamma'.
1689 * modules/lgamma-tests: New file.
1690 * tests/test-lgamma.c: New file.
1692 Tests for module 'ldexp'.
1693 * modules/ldexp-tests: New file.
1694 * tests/test-ldexp.c: New file.
1696 Tests for module 'jn'.
1697 * modules/jn-tests: New file.
1698 * tests/test-jn.c: New file.
1700 Tests for module 'j1'.
1701 * modules/j1-tests: New file.
1702 * tests/test-j1.c: New file.
1704 Tests for module 'j0'.
1705 * modules/j0-tests: New file.
1706 * tests/test-j0.c: New file.
1708 Tests for module 'hypot'.
1709 * modules/hypot-tests: New file.
1710 * tests/test-hypot.c: New file.
1712 Tests for module 'fmod'.
1713 * modules/fmod-tests: New file.
1714 * tests/test-fmod.c: New file.
1716 Tests for module 'fabs'.
1717 * modules/fabs-tests: New file.
1718 * tests/test-fabs.c: New file.
1720 Tests for module 'exp'.
1721 * modules/exp-tests: New file.
1722 * tests/test-exp.c: New file.
1724 Tests for module 'erfc'.
1725 * modules/erfc-tests: New file.
1726 * tests/test-erfc.c: New file.
1728 Tests for module 'erf'.
1729 * modules/erf-tests: New file.
1730 * tests/test-erf.c: New file.
1732 Tests for module 'cosh'.
1733 * modules/cosh-tests: New file.
1734 * tests/test-cosh.c: New file.
1736 Tests for module 'cos'.
1737 * modules/cos-tests: New file.
1738 * tests/test-cos.c: New file.
1740 Tests for module 'copysign'.
1741 * modules/copysign-tests: New file.
1742 * tests/test-copysign.c: New file.
1744 Tests for module 'cbrt'.
1745 * modules/cbrt-tests: New file.
1746 * tests/test-cbrt.c: New file.
1748 Tests for module 'atan2'.
1749 * modules/atan2-tests: New file.
1750 * tests/test-atan2.c: New file.
1752 Tests for module 'atan'.
1753 * modules/atan-tests: New file.
1754 * tests/test-atan.c: New file.
1756 Tests for module 'asin'.
1757 * modules/asin-tests: New file.
1758 * tests/test-asin.c: New file.
1760 Tests for module 'acos'.
1761 * modules/acos-tests: New file.
1762 * tests/test-acos.c: New file.
1764 2010-01-24 Bruno Haible <bruno@clisp.org>
1766 Fix tests for common <math.h> functions.
1767 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1768 code snippet that references the function pointer, rather than merely
1769 calling the function. Substitute the FUNC_LIBM variable.
1770 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1771 * modules/acos (configure.ac): Likewise.
1772 * modules/asin (configure.ac): Likewise.
1773 * modules/atan (configure.ac): Likewise.
1774 * modules/atan2 (configure.ac): Likewise.
1775 * modules/cbrt (configure.ac): Likewise.
1776 * modules/copysign (configure.ac): Likewise.
1777 * modules/cos (configure.ac): Likewise.
1778 * modules/cosh (configure.ac): Likewise.
1779 * modules/erf (configure.ac): Likewise.
1780 * modules/erfc (configure.ac): Likewise.
1781 * modules/exp (configure.ac): Likewise.
1782 * modules/fabs (configure.ac): Likewise.
1783 * modules/fmod (configure.ac): Likewise.
1784 * modules/hypot (configure.ac): Likewise.
1785 * modules/j0 (configure.ac): Likewise.
1786 * modules/j1 (configure.ac): Likewise.
1787 * modules/jn (configure.ac): Likewise.
1788 * modules/ldexp (configure.ac): Likewise.
1789 * modules/lgamma (configure.ac): Likewise.
1790 * modules/log (configure.ac): Likewise.
1791 * modules/log10 (configure.ac): Likewise.
1792 * modules/log1p (configure.ac): Likewise.
1793 * modules/logb (configure.ac): Likewise.
1794 * modules/modf (configure.ac): Likewise.
1795 * modules/nextafter (configure.ac): Likewise.
1796 * modules/pow (configure.ac): Likewise.
1797 * modules/remainder (configure.ac): Likewise.
1798 * modules/rint (configure.ac): Likewise.
1799 * modules/sin (configure.ac): Likewise.
1800 * modules/sinh (configure.ac): Likewise.
1801 * modules/tan (configure.ac): Likewise.
1802 * modules/tanh (configure.ac): Likewise.
1803 * modules/y0 (configure.ac): Likewise.
1804 * modules/y1 (configure.ac): Likewise.
1805 * modules/yn (configure.ac): Likewise.
1807 2010-01-24 Bruno Haible <bruno@clisp.org>
1809 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1810 * tests/test-acosl.c (x): New variable.
1811 (main): Store argument in x and fetch it from x.
1812 * tests/test-asinl.c (x): New variable.
1813 (main): Store argument in x and fetch it from x.
1814 * tests/test-atanl.c (x): New variable.
1815 (main): Store argument in x and fetch it from x.
1816 * tests/test-cosl.c (x): New variable.
1817 (main): Store argument in x and fetch it from x.
1818 * tests/test-expl.c (x): New variable.
1819 (main): Store argument in x and fetch it from x.
1820 * tests/test-logl.c (x): New variable.
1821 (main): Store argument in x and fetch it from x.
1822 * tests/test-sinl.c (x): New variable.
1823 (main): Store argument in x and fetch it from x.
1824 * tests/test-sqrtl.c (x): New variable.
1825 (main): Store argument in x and fetch it from x.
1826 * tests/test-tanl.c (x): New variable.
1827 (main): Store argument in x and fetch it from x.
1829 2010-01-24 Bruno Haible <bruno@clisp.org>
1831 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1832 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1833 assignments to the initial TESTS_ENVIRONMENT.
1834 * doc/gnulib.texi (Unit test modules): Document it.
1835 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1837 * modules/btowc-tests (Makefile.am): Likewise.
1838 * modules/c-stack-tests (Makefile.am): Likewise.
1839 * modules/c-strcase-tests (Makefile.am): Likewise.
1840 * modules/copy-file-tests (Makefile.am): Likewise.
1841 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1842 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1843 * modules/mbrtowc-tests (Makefile.am): Likewise.
1844 * modules/mbscasecmp-tests (Makefile.am): Likewise.
1845 * modules/mbscasestr-tests (Makefile.am): Likewise.
1846 * modules/mbschr-tests (Makefile.am): Likewise.
1847 * modules/mbscspn-tests (Makefile.am): Likewise.
1848 * modules/mbsinit-tests (Makefile.am): Likewise.
1849 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1850 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1851 * modules/mbspbrk-tests (Makefile.am): Likewise.
1852 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1853 * modules/mbsrchr-tests (Makefile.am): Likewise.
1854 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1855 * modules/mbsspn-tests (Makefile.am): Likewise.
1856 * modules/mbsstr-tests (Makefile.am): Likewise.
1857 * modules/nl_langinfo-tests (Makefile.am): Likewise.
1858 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1859 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1860 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1861 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1862 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1863 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1864 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1865 * modules/wcrtomb-tests (Makefile.am): Likewise.
1866 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1867 * modules/wcsrtombs-tests (Makefile.am): Likewise.
1868 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1869 assignments from TESTS_ENVIRONMENT.
1870 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1872 * modules/argp-version-etc-tests (Makefile.am): Likewise.
1873 * modules/atexit-tests (Makefile.am): Likewise.
1874 * modules/binary-io-tests (Makefile.am): Likewise.
1875 * modules/closein-tests (Makefile.am): Likewise.
1876 * modules/dprintf-posix-tests (Makefile.am): Likewise.
1877 * modules/exclude-tests (Makefile.am): Likewise.
1878 * modules/fflush-tests (Makefile.am): Likewise.
1879 * modules/fpending-tests (Makefile.am): Likewise.
1880 * modules/fprintf-posix-tests (Makefile.am): Likewise.
1881 * modules/freadahead-tests (Makefile.am): Likewise.
1882 * modules/freadptr-tests (Makefile.am): Likewise.
1883 * modules/freadseek-tests (Makefile.am): Likewise.
1884 * modules/fseek-tests (Makefile.am): Likewise.
1885 * modules/fseeko-tests (Makefile.am): Likewise.
1886 * modules/ftell-tests (Makefile.am): Likewise.
1887 * modules/ftello-tests (Makefile.am): Likewise.
1888 * modules/idpriv-drop-tests (Makefile.am): Likewise.
1889 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1890 * modules/lseek-tests (Makefile.am): Likewise.
1891 * modules/parse-duration-tests (Makefile.am): Likewise.
1892 * modules/perror-tests (Makefile.am): Likewise.
1893 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1894 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1895 * modules/pipe-tests (Makefile.am): Likewise.
1896 * modules/pread-tests (Makefile.am): Likewise.
1897 * modules/printf-posix-tests (Makefile.am): Likewise.
1898 * modules/select-tests (Makefile.am): Likewise.
1899 * modules/sigpipe-tests (Makefile.am): Likewise.
1900 * modules/tsearch-tests (Makefile.am): Likewise.
1901 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1902 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1903 * modules/uniname/uniname-tests (Makefile.am): Likewise.
1904 * modules/uniwidth/width-tests (Makefile.am): Likewise.
1905 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1906 * modules/version-etc-tests (Makefile.am): Likewise.
1907 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1908 * modules/vprintf-posix-tests (Makefile.am): Likewise.
1909 * modules/xalloc-die-tests (Makefile.am): Likewise.
1910 * modules/xprintf-posix-tests (Makefile.am): Likewise.
1911 * modules/xstrtoimax-tests (Makefile.am): Likewise.
1912 * modules/xstrtol-tests (Makefile.am): Likewise.
1913 * modules/xstrtoumax-tests (Makefile.am): Likewise.
1914 * modules/yesno-tests (Makefile.am): Likewise.
1915 Suggested by Jim Meyering.
1917 2010-01-24 Bruno Haible <bruno@clisp.org>
1920 * doc/gnulib.texi (Writing modules): New chapter.
1921 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1924 2010-01-24 Jim Meyering <meyering@redhat.com>
1926 maint.mk: do not prepend "./" after filtering
1927 * top/maint.mk (_prepend_srcdir_prefix): New variable
1928 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1929 "./" when $(srcdir) is ".".
1931 define STREQ(a,b) consistently, removing useless parentheses
1932 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1933 since the only risk is that "a" or "b" contains an unparenthesized
1934 comma, but if either did that, STREQ would have 3 or more arguments.
1935 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1936 * lib/fts.c (STREQ): Remove unnecessary parentheses.
1937 * lib/hash-triple.c (STREQ): Likewise.
1938 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1939 * lib/getugroups.c (STREQ): Likewise.
1941 2010-01-23 Jim Meyering <meyering@redhat.com>
1943 maint.mk: fix syntax-check in a non-srcdir build directory
1944 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1945 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
1947 2010-01-22 Jim Meyering <meyering@redhat.com>
1949 userspec: add unit tests
1950 * tests/test-userspec.c: New file.
1951 * modules/userspec-tests: Likewise.
1953 2010-01-21 Jim Meyering <meyering@redhat.com>
1955 maint.mk: handle source file names containing "." robustly
1956 * top/maint.mk (_dot_escaped_srcdir): Define.
1957 (VC_LIST): Use it in LHS of sed substitution.
1959 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
1961 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1962 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1963 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1964 from a non-srcdir build.
1966 2010-01-20 Eric Blake <ebb9@byu.net>
1968 warn-on-use: use instead of link-warning
1969 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1970 * modules/unistd (Depends-on, Makefile.am): Likewise.
1971 * modules/arpa_inet (Depends-on): Replace link-warning with
1973 (Makefile.am): Update rules accordingly.
1974 * modules/ctype (Depends-on, Makefile.am): Likewise.
1975 * modules/dirent (Depends-on, Makefile.am): Likewise.
1976 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1977 * modules/inttypes (Depends-on, Makefile.am): Likewise.
1978 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1979 * modules/locale (Depends-on, Makefile.am): Likewise.
1980 * modules/math (Depends-on, Makefile.am): Likewise.
1981 * modules/search (Depends-on, Makefile.am): Likewise.
1982 * modules/signal (Depends-on, Makefile.am): Likewise.
1983 * modules/spawn (Depends-on, Makefile.am): Likewise.
1984 * modules/stdlib (Depends-on, Makefile.am): Likewise.
1985 * modules/string (Depends-on, Makefile.am): Likewise.
1986 * modules/strings (Depends-on, Makefile.am): Likewise.
1987 * modules/sys_file (Depends-on, Makefile.am): Likewise.
1988 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1989 * modules/sys_select (Depends-on, Makefile.am): Likewise.
1990 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1991 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1992 * modules/sys_times (Depends-on, Makefile.am): Likewise.
1993 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1994 * modules/wchar (Depends-on, Makefile.am): Likewise.
1995 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1997 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1998 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1999 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2000 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2001 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2002 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2003 * m4/math_h.m4 (gl_MATH_H): Likewise.
2004 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2005 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2006 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2007 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2008 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2009 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2010 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2011 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2012 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2013 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2014 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2015 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2016 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2017 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2018 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2019 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2020 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2022 * lib/ctype.in.h: Likewise.
2023 * lib/dirent.in.h: Likewise.
2024 * lib/fcntl.in.h: Likewise.
2025 * lib/inttypes.in.h: Likewise.
2026 * lib/langinfo.in.h: Likewise.
2027 * lib/locale.in.h: Likewise.
2028 * lib/math.in.h: Likewise.
2029 * lib/search.in.h: Likewise.
2030 * lib/signal.in.h: Likewise.
2031 * lib/spawn.in.h: Likewise.
2032 * lib/stdio.in.h: Likewise.
2033 * lib/stdlib.in.h: Likewise.
2034 * lib/string.in.h: Likewise.
2035 * lib/strings.in.h: Likewise.
2036 * lib/sys_file.in.h: Likewise.
2037 * lib/sys_ioctl.in.h: Likewise.
2038 * lib/sys_select.in.h: Likewise.
2039 * lib/sys_socket.in.h: Likewise.
2040 * lib/sys_stat.in.h: Likewise.
2041 * lib/sys_times.in.h: Likewise.
2042 * lib/sys_utsname.in.h: Likewise.
2043 * lib/unistd.in.h: Likewise.
2044 * lib/wchar.in.h: Likewise.
2046 2010-01-20 Bruno Haible <bruno@clisp.org>
2048 Avoid duplicate -lm.
2049 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2050 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2051 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2052 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2053 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2054 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2055 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2056 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2057 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2058 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2059 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2060 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2061 Reported by Paolo Bonzini.
2063 2010-01-19 Bruno Haible <bruno@clisp.org>
2065 langinfo, nl_langinfo: Relicense under LGPLv2+.
2066 * modules/langinfo (License): Change to LGPLv2+.
2067 * modules/nl_langinfo (License): Likewise.
2068 Patch by David Lutterkort <lutter@redhat.com>.
2070 2010-01-19 Bruno Haible <bruno@clisp.org>
2072 Avoid compilation error with cc on OSF/1 5.1.
2073 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2074 statement, not before.
2075 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2077 2010-01-18 Bruno Haible <bruno@clisp.org>
2079 Avoid a link error due to the __printf__ symbol.
2080 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2082 (__format__, __printf__): Remove definitions.
2083 * lib/argp-fmtstream.h: Likewise.
2084 * lib/argp.h: Likewise.
2085 * lib/error.h: Likewise.
2086 * lib/vasnprintf.h: Likewise.
2087 * lib/xprintf.h: Likewise.
2088 * lib/xvasprintf.h: Likewise.
2089 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2091 2010-01-18 Bruno Haible <bruno@clisp.org>
2093 Tests for module 'tanl'.
2094 * modules/tanl-tests: New file.
2095 * tests/test-tanl.c: New file.
2097 Tests for module 'sqrtl'.
2098 * modules/sqrtl-tests: New file.
2099 * tests/test-sqrtl.c: New file.
2101 Tests for module 'sinl'.
2102 * modules/sinl-tests: New file.
2103 * tests/test-sinl.c: New file.
2105 Tests for module 'logl'.
2106 * modules/logl-tests: New file.
2107 * tests/test-logl.c: New file.
2109 Tests for module 'expl'.
2110 * modules/expl-tests: New file.
2111 * tests/test-expl.c: New file.
2113 Tests for module 'cosl'.
2114 * modules/cosl-tests: New file.
2115 * tests/test-cosl.c: New file.
2117 Tests for module 'atanl'.
2118 * modules/atanl-tests: New file.
2119 * tests/test-atanl.c: New file.
2121 Tests for module 'asinl'.
2122 * modules/asinl-tests: New file.
2123 * tests/test-asinl.c: New file.
2125 Tests for module 'acosl'.
2126 * modules/acosl-tests: New file.
2127 * tests/test-acosl.c: New file.
2129 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2130 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2131 tanl): Use the standard gnulib idiom.
2132 * lib/cosl.c: Don't include trigl.c and sincosl.c.
2133 * lib/sinl.c: Likewise.
2134 * lib/tanl.c: Don't include trigl.c.
2135 (kernel_tanl): Make static.
2136 * lib/sincosl.c: Include trigl.h first.
2137 * lib/trigl.c: Likewise.
2138 * m4/acosl.m4: New file.
2139 * m4/asinl.m4: New file.
2140 * m4/atanl.m4: New file.
2141 * m4/cosl.m4: New file.
2142 * m4/expl.m4: New file.
2143 * m4/logl.m4: New file.
2144 * m4/sinl.m4: New file.
2145 * m4/sqrtl.m4: New file.
2146 * m4/tanl.m4: New file.
2147 * m4/mathl.m4: Remove file.
2148 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2149 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2150 Don't initialize GNULIB_MATHL.
2151 * modules/acosl: New file.
2152 * modules/asinl: New file.
2153 * modules/atanl: New file.
2154 * modules/cosl: New file.
2155 * modules/expl: New file.
2156 * modules/logl: New file.
2157 * modules/sinl: New file.
2158 * modules/sqrtl: New file.
2159 * modules/tanl: New file.
2160 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2161 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2162 substitute GNULIB_MATHL.
2163 * modules/mathl: Rewritten.
2164 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2165 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2166 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2167 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2168 * doc/posix-functions/expl.texi: Mention the 'expl' module.
2169 * doc/posix-functions/logl.texi: Mention the 'logl' module.
2170 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2171 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2172 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2174 2010-01-18 Bruno Haible <bruno@clisp.org>
2176 sqrt: Make gl_FUNC_SQRT requirable.
2177 * m4/sqrt.m4: New file.
2178 * modules/sqrt (Files): Add it.
2179 (configure.ac): Invoke gl_FUNC_SQRT.
2181 2010-01-18 Bruno Haible <bruno@clisp.org>
2183 New modules for common <math.h> functions.
2184 * m4/mathfunc.m4: New file.
2185 * modules/acos: New file.
2186 * modules/asin: New file.
2187 * modules/atan: New file.
2188 * modules/atan2: New file.
2189 * modules/cbrt: New file.
2190 * modules/copysign: New file.
2191 * modules/cos: New file.
2192 * modules/cosh: New file.
2193 * modules/erf: New file.
2194 * modules/erfc: New file.
2195 * modules/exp: New file.
2196 * modules/fabs: New file.
2197 * modules/fmod: New file.
2198 * modules/hypot: New file.
2199 * modules/j0: New file.
2200 * modules/j1: New file.
2201 * modules/jn: New file.
2202 * modules/ldexp: New file.
2203 * modules/lgamma: New file.
2204 * modules/log: New file.
2205 * modules/log10: New file.
2206 * modules/log1p: New file.
2207 * modules/logb: New file.
2208 * modules/modf: New file.
2209 * modules/nextafter: New file.
2210 * modules/pow: New file.
2211 * modules/remainder: New file.
2212 * modules/rint: New file.
2213 * modules/sin: New file.
2214 * modules/sinh: New file.
2215 * modules/sqrt: New file.
2216 * modules/tan: New file.
2217 * modules/tanh: New file.
2218 * modules/y0: New file.
2219 * modules/y1: New file.
2220 * modules/yn: New file.
2221 * doc/posix-functions/acos.texi: Mention the 'acos' module.
2222 * doc/posix-functions/asin.texi: Mention the 'asin' module.
2223 * doc/posix-functions/atan.texi: Mention the 'atan' module.
2224 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2225 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2226 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2227 * doc/posix-functions/cos.texi: Mention the 'cos' module.
2228 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2229 * doc/posix-functions/erf.texi: Mention the 'erf' module.
2230 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2231 * doc/posix-functions/exp.texi: Mention the 'exp' module.
2232 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2233 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2234 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2235 * doc/posix-functions/j0.texi: Mention the 'j0' module.
2236 * doc/posix-functions/j1.texi: Mention the 'j1' module.
2237 * doc/posix-functions/jn.texi: Mention the 'jn' module.
2238 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2239 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2240 * doc/posix-functions/log.texi: Mention the 'log' module.
2241 * doc/posix-functions/log10.texi: Mention the 'log10' module.
2242 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2243 * doc/posix-functions/logb.texi: Mention the 'logb' module.
2244 * doc/posix-functions/modf.texi: Mention the 'modf' module.
2245 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2246 * doc/posix-functions/pow.texi: Mention the 'pow' module.
2247 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2248 * doc/posix-functions/rint.texi: Mention the 'rint' module.
2249 * doc/posix-functions/sin.texi: Mention the 'sin' module.
2250 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2251 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2252 * doc/posix-functions/tan.texi: Mention the 'tan' module.
2253 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2254 * doc/posix-functions/y0.texi: Mention the 'y0' module.
2255 * doc/posix-functions/y1.texi: Mention the 'y1' module.
2256 * doc/posix-functions/yn.texi: Mention the 'yn' module.
2258 2010-01-18 Jim Meyering <meyering@redhat.com>
2260 ignore-value: relax license to LGPLv2+
2261 * modules/ignore-value (License): Relax to LGPLv2+.
2263 getdate: don't leak when TZ contains two or more '"'s
2264 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2265 double quote in TZ after the first one.
2267 readtokens: do not leak internal token_lengths buffer
2268 * lib/readtokens.c (readtokens): Free the local, lengths,
2269 when the supplied "token_lengths" parameter is NULL.
2271 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2273 Fix a couple of missing LIBTHREAD link failures on AIX.
2274 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2276 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2278 Link test-poll against INET_PTON_LIB.
2279 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2280 for inet_pton on Solaris 10.
2282 2010-01-17 Bruno Haible <bruno@clisp.org>
2284 unistdio/*-sprintf: Fix typo in module description.
2285 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2286 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2287 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2288 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2289 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2290 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2291 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2292 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2294 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2296 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2297 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2298 variables in shell case patterns, for AIX and HP-UX ksh.
2300 Split large sed scripts, for HP-UX sed.
2301 * modules/stdio: Split sed scripts around 50 sed commands,
2302 to avoid HP-UX limit of 99 commands, in the near future.
2303 * modules/string: Likewise.
2304 * modules/unistd: Likewise.
2306 gnulib-tool: avoid writing in the current directory.
2307 * gnulib-tool (func_emit_lib_Makefile_am)
2308 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2309 not in the current directory, so concurrent gnulib-tool
2310 instances do not interfere.
2312 2010-01-16 Jim Meyering <meyering@redhat.com>
2314 doc: update users.txt
2315 * users.txt: Add grep.
2316 (diffutils, gzip): Update URLs.
2318 2010-01-12 Bruno Haible <bruno@clisp.org>
2320 posix_spawn: Avoid test failure on Cygwin.
2321 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2323 Reported by Simon Josefsson.
2325 2010-01-12 Bruno Haible <bruno@clisp.org>
2327 * tests/test-cond.c (main): When skipping the test, show the reason.
2329 2010-01-12 Simon Josefsson <simon@josefsson.org>
2331 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2333 2010-01-12 Simon Josefsson <simon@josefsson.org>
2335 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2336 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2338 2010-01-12 Eric Blake <ebb9@byu.net>
2340 build: guarantee AS_VAR_IF
2341 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2342 (gl_AS_VAR_IF): Move...
2343 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2344 Reported by Simon Josefsson.
2346 2010-01-12 Simon Josefsson <simon@josefsson.org>
2348 * lib/stdio.in.h: Fix typo.
2350 2010-01-12 Simon Josefsson <simon@josefsson.org>
2352 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2355 2010-01-12 Simon Josefsson <simon@josefsson.org>
2357 * tests/test-xalloc-die.sh: Use $EXEEXT.
2359 2010-01-12 Simon Josefsson <simon@josefsson.org>
2360 Bruno Haible <bruno@clisp.org>
2362 getlogin, getlogin_r: Avoid test failure.
2363 * tests/test-getlogin.c: Include <stdio.h>.
2364 (main): Skip the test when the function fails because stdin is not a
2366 * tests/test-getlogin_r.c: Include <stdio.h>.
2367 (main): Skip the test when the function fails because stdin is not a
2370 2010-01-11 Eric Blake <ebb9@byu.net>
2372 tests: avoid more large file warnings
2373 * tests/test-fflush.c: Avoid warning about ftell use.
2374 * tests/test-fseek.c: Avoid warning about fseek use.
2376 2010-01-10 Bruno Haible <bruno@clisp.org>
2378 nproc: Work better on Linux when /proc and /sys are not mounted.
2379 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2380 as lower bound when, on glibc/Linux systems,
2381 sysconf (_SC_NPROCESSORS_CONF) returns 1.
2382 Suggested by Pádraig Brady <P@draigbrady.com>.
2383 Reported by Dmitry V. Levin <ldv@altlinux.org>.
2386 * lib/nproc.c (num_processors_via_affinity_mask): New function,
2387 extracted from num_processors.
2388 (num_processors): Call it.
2390 2010-01-11 Jim Meyering <meyering@redhat.com>
2392 utimecmp: avoid new warning from upcoming gcc-4.5.0
2393 * lib/utimecmp.c (BILLION): Define using #define rather than an
2394 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2396 2010-01-11 Eric Blake <ebb9@byu.net>
2398 math: add portability warnings for classification macros
2399 * modules/math (Depends-on): Add warn-on-use.
2400 (Makefile.am): Provide new substitutions.
2401 * m4/math_h.m4 (gl_MATH_H): Require inline.
2402 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2403 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2404 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2407 unistd: warn on use of environ without module
2408 * modules/unistd (Depends-on): Add warn-on-use.
2409 (Makefile.am): Provide new substitutions.
2410 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2411 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2413 stdio: warn on suspicious uses
2414 * modules/stdio (Depends-on): Add warn-on-use.
2415 (Makefile.am): Provide new substitutions.
2416 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2418 * lib/stdio.in.h (gets): Always warn on use.
2419 (fseek, ftell): Adjust when warnings are issued, and honor
2420 _GL_NO_LARGE_FILES as a way to silence the warning.
2421 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2422 any warning about large file offsets.
2423 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2424 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2425 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2426 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2427 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2428 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2429 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2430 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2432 warn-on-use: new module
2433 * modules/warn-on-use: New file.
2434 * build-aux/warn-on-use.h: Likewise.
2435 * m4/warn-on-use.m4: Likewise.
2436 * MODULES.html.sh (Support for building): Mention it.
2438 2010-01-10 Bruno Haible <bruno@clisp.org>
2440 Tests for module 'unistr/u32-strdup'.
2441 * modules/unistr/u32-strdup-tests: New file.
2442 * tests/unistr/test-u32-strdup.c: New file.
2444 Tests for module 'unistr/u16-strdup'.
2445 * modules/unistr/u16-strdup-tests: New file.
2446 * tests/unistr/test-u16-strdup.c: New file.
2448 Tests for module 'unistr/u8-strdup'.
2449 * modules/unistr/u8-strdup-tests: New file.
2450 * tests/unistr/test-u8-strdup.c: New file.
2451 * tests/unistr/test-strdup.h: New file.
2453 Tests for module 'unistr/u32-strncmp'.
2454 * modules/unistr/u32-strncmp-tests: New file.
2455 * tests/unistr/test-u32-strncmp.c: New file.
2457 Tests for module 'unistr/u16-strncmp'.
2458 * modules/unistr/u16-strncmp-tests: New file.
2459 * tests/unistr/test-u16-strncmp.c: New file.
2461 Tests for module 'unistr/u8-strncmp'.
2462 * modules/unistr/u8-strncmp-tests: New file.
2463 * tests/unistr/test-u8-strncmp.c: New file.
2464 * tests/unistr/test-strncmp.h: New file.
2466 Tests for module 'unistr/u32-strcoll'.
2467 * modules/unistr/u32-strcoll-tests: New file.
2468 * tests/unistr/test-u32-strcoll.c: New file.
2470 Tests for module 'unistr/u16-strcoll'.
2471 * modules/unistr/u16-strcoll-tests: New file.
2472 * tests/unistr/test-u16-strcoll.c: New file.
2474 Tests for module 'unistr/u8-strcoll'.
2475 * modules/unistr/u8-strcoll-tests: New file.
2476 * tests/unistr/test-u8-strcoll.c: New file.
2478 Tests for module 'unistr/u32-strcmp'.
2479 * modules/unistr/u32-strcmp-tests: New file.
2480 * tests/unistr/test-u32-strcmp.c: New file.
2481 * tests/unistr/test-u32-strcmp.h: New file.
2483 Tests for module 'unistr/u16-strcmp'.
2484 * modules/unistr/u16-strcmp-tests: New file.
2485 * tests/unistr/test-u16-strcmp.c: New file.
2486 * tests/unistr/test-u16-strcmp.h: New file.
2488 Tests for module 'unistr/u8-strcmp'.
2489 * modules/unistr/u8-strcmp-tests: New file.
2490 * tests/unistr/test-u8-strcmp.c: New file.
2491 * tests/unistr/test-u8-strcmp.h: New file.
2492 * tests/unistr/test-strcmp.h: New file.
2494 Tests for module 'unistr/u32-strncat'.
2495 * modules/unistr/u32-strncat-tests: New file.
2496 * tests/unistr/test-u32-strncat.c: New file.
2498 Tests for module 'unistr/u16-strncat'.
2499 * modules/unistr/u16-strncat-tests: New file.
2500 * tests/unistr/test-u16-strncat.c: New file.
2502 Tests for module 'unistr/u8-strncat'.
2503 * modules/unistr/u8-strncat-tests: New file.
2504 * tests/unistr/test-u8-strncat.c: New file.
2505 * tests/unistr/test-strncat.h: New file.
2507 Tests for module 'unistr/u32-strcat'.
2508 * modules/unistr/u32-strcat-tests: New file.
2509 * tests/unistr/test-u32-strcat.c: New file.
2511 Tests for module 'unistr/u16-strcat'.
2512 * modules/unistr/u16-strcat-tests: New file.
2513 * tests/unistr/test-u16-strcat.c: New file.
2515 Tests for module 'unistr/u8-strcat'.
2516 * modules/unistr/u8-strcat-tests: New file.
2517 * tests/unistr/test-u8-strcat.c: New file.
2518 * tests/unistr/test-strcat.h: New file.
2520 Tests for module 'unistr/u32-stpncpy'.
2521 * modules/unistr/u32-stpncpy-tests: New file.
2522 * tests/unistr/test-u32-stpncpy.c: New file.
2524 Tests for module 'unistr/u16-stpncpy'.
2525 * modules/unistr/u16-stpncpy-tests: New file.
2526 * tests/unistr/test-u16-stpncpy.c: New file.
2528 Tests for module 'unistr/u8-stpncpy'.
2529 * modules/unistr/u8-stpncpy-tests: New file.
2530 * tests/unistr/test-u8-stpncpy.c: New file.
2531 * tests/unistr/test-stpncpy.h: New file.
2533 Tests for module 'unistr/u32-strncpy'.
2534 * modules/unistr/u32-strncpy-tests: New file.
2535 * tests/unistr/test-u32-strncpy.c: New file.
2537 Tests for module 'unistr/u16-strncpy'.
2538 * modules/unistr/u16-strncpy-tests: New file.
2539 * tests/unistr/test-u16-strncpy.c: New file.
2541 Tests for module 'unistr/u8-strncpy'.
2542 * modules/unistr/u8-strncpy-tests: New file.
2543 * tests/unistr/test-u8-strncpy.c: New file.
2544 * tests/unistr/test-strncpy.h: New file.
2546 Tests for module 'unistr/u32-stpcpy'.
2547 * modules/unistr/u32-stpcpy-tests: New file.
2548 * tests/unistr/test-u32-stpcpy.c: New file.
2550 Tests for module 'unistr/u16-stpcpy'.
2551 * modules/unistr/u16-stpcpy-tests: New file.
2552 * tests/unistr/test-u16-stpcpy.c: New file.
2554 Tests for module 'unistr/u8-stpcpy'.
2555 * modules/unistr/u8-stpcpy-tests: New file.
2556 * tests/unistr/test-u8-stpcpy.c: New file.
2557 * tests/unistr/test-stpcpy.h: New file.
2559 Tests for module 'unistr/u32-strcpy'.
2560 * modules/unistr/u32-strcpy-tests: New file.
2561 * tests/unistr/test-u32-strcpy.c: New file.
2563 Tests for module 'unistr/u16-strcpy'.
2564 * modules/unistr/u16-strcpy-tests: New file.
2565 * tests/unistr/test-u16-strcpy.c: New file.
2567 Tests for module 'unistr/u8-strcpy'.
2568 * modules/unistr/u8-strcpy-tests: New file.
2569 * tests/unistr/test-u8-strcpy.c: New file.
2570 * tests/unistr/test-strcpy.h: New file.
2572 Tests for module 'unistr/u32-strnlen'.
2573 * modules/unistr/u32-strnlen-tests: New file.
2574 * tests/unistr/test-u32-strnlen.c: New file.
2576 Tests for module 'unistr/u16-strnlen'.
2577 * modules/unistr/u16-strnlen-tests: New file.
2578 * tests/unistr/test-u16-strnlen.c: New file.
2580 Tests for module 'unistr/u8-strnlen'.
2581 * modules/unistr/u8-strnlen-tests: New file.
2582 * tests/unistr/test-u8-strnlen.c: New file.
2583 * tests/unistr/test-strnlen.h: New file.
2585 Tests for module 'unistr/u32-strlen'.
2586 * modules/unistr/u32-strlen-tests: New file.
2587 * tests/unistr/test-u32-strlen.c: New file.
2589 Tests for module 'unistr/u16-strlen'.
2590 * modules/unistr/u16-strlen-tests: New file.
2591 * tests/unistr/test-u16-strlen.c: New file.
2593 Tests for module 'unistr/u8-strlen'.
2594 * modules/unistr/u8-strlen-tests: New file.
2595 * tests/unistr/test-u8-strlen.c: New file.
2597 Tests for module 'unistr/u32-prev'.
2598 * modules/unistr/u32-prev-tests: New file.
2599 * tests/unistr/test-u32-prev.c: New file.
2601 Tests for module 'unistr/u16-prev'.
2602 * modules/unistr/u16-prev-tests: New file.
2603 * tests/unistr/test-u16-prev.c: New file.
2605 Tests for module 'unistr/u8-prev'.
2606 * modules/unistr/u8-prev-tests: New file.
2607 * tests/unistr/test-u8-prev.c: New file.
2609 Tests for module 'unistr/u32-next'.
2610 * modules/unistr/u32-next-tests: New file.
2611 * tests/unistr/test-u32-next.c: New file.
2613 Tests for module 'unistr/u16-next'.
2614 * modules/unistr/u16-next-tests: New file.
2615 * tests/unistr/test-u16-next.c: New file.
2617 Tests for module 'unistr/u8-next'.
2618 * modules/unistr/u8-next-tests: New file.
2619 * tests/unistr/test-u8-next.c: New file.
2621 Tests for module 'unistr/u32-strmbtouc'.
2622 * modules/unistr/u32-strmbtouc-tests: New file.
2623 * tests/unistr/test-u32-strmbtouc.c: New file.
2625 Tests for module 'unistr/u16-strmbtouc'.
2626 * modules/unistr/u16-strmbtouc-tests: New file.
2627 * tests/unistr/test-u16-strmbtouc.c: New file.
2629 Tests for module 'unistr/u8-strmbtouc'.
2630 * modules/unistr/u8-strmbtouc-tests: New file.
2631 * tests/unistr/test-u8-strmbtouc.c: New file.
2633 Tests for module 'unistr/u32-strmblen'.
2634 * modules/unistr/u32-strmblen-tests: New file.
2635 * tests/unistr/test-u32-strmblen.c: New file.
2637 Tests for module 'unistr/u16-strmblen'.
2638 * modules/unistr/u16-strmblen-tests: New file.
2639 * tests/unistr/test-u16-strmblen.c: New file.
2641 Tests for module 'unistr/u8-strmblen'.
2642 * modules/unistr/u8-strmblen-tests: New file.
2643 * tests/unistr/test-u8-strmblen.c: New file.
2645 Tests for module 'unistr/u32-cpy-alloc'.
2646 * modules/unistr/u32-cpy-alloc-tests: New file.
2647 * tests/unistr/test-u32-cpy-alloc.c: New file.
2649 Tests for module 'unistr/u16-cpy-alloc'.
2650 * modules/unistr/u16-cpy-alloc-tests: New file.
2651 * tests/unistr/test-u16-cpy-alloc.c: New file.
2653 Tests for module 'unistr/u8-cpy-alloc'.
2654 * modules/unistr/u8-cpy-alloc-tests: New file.
2655 * tests/unistr/test-u8-cpy-alloc.c: New file.
2656 * tests/unistr/test-cpy-alloc.h: New file.
2658 Tests for module 'unistr/u32-mbsnlen'.
2659 * modules/unistr/u32-mbsnlen-tests: New file.
2660 * tests/unistr/test-u32-mbsnlen.c: New file.
2662 Tests for module 'unistr/u16-mbsnlen'.
2663 * modules/unistr/u16-mbsnlen-tests: New file.
2664 * tests/unistr/test-u16-mbsnlen.c: New file.
2666 Tests for module 'unistr/u8-mbsnlen'.
2667 * modules/unistr/u8-mbsnlen-tests: New file.
2668 * tests/unistr/test-u8-mbsnlen.c: New file.
2670 Tests for module 'unistr/u32-chr'.
2671 * modules/unistr/u32-chr-tests: New file.
2672 * tests/unistr/test-u32-chr.c: New file.
2674 Tests for module 'unistr/u16-chr'.
2675 * modules/unistr/u16-chr-tests: New file.
2676 * tests/unistr/test-u16-chr.c: New file.
2678 Tests for module 'unistr/u8-chr'.
2679 * modules/unistr/u8-chr-tests: New file.
2680 * tests/unistr/test-u8-chr.c: New file.
2681 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2683 Tests for module 'unistr/u32-cmp2'.
2684 * modules/unistr/u32-cmp2-tests: New file.
2685 * tests/unistr/test-u32-cmp2.c: New file.
2687 Tests for module 'unistr/u16-cmp2'.
2688 * modules/unistr/u16-cmp2-tests: New file.
2689 * tests/unistr/test-u16-cmp2.c: New file.
2691 Tests for module 'unistr/u8-cmp2'.
2692 * modules/unistr/u8-cmp2-tests: New file.
2693 * tests/unistr/test-u8-cmp2.c: New file.
2694 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2696 Tests for module 'unistr/u32-cmp'.
2697 * modules/unistr/u32-cmp-tests: New file.
2698 * tests/unistr/test-u32-cmp.c: New file.
2700 Tests for module 'unistr/u16-cmp'.
2701 * modules/unistr/u16-cmp-tests: New file.
2702 * tests/unistr/test-u16-cmp.c: New file.
2704 Tests for module 'unistr/u8-cmp'.
2705 * modules/unistr/u8-cmp-tests: New file.
2706 * tests/unistr/test-u8-cmp.c: New file.
2707 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2709 Tests for module 'unistr/u32-set'.
2710 * modules/unistr/u32-set-tests: New file.
2711 * tests/unistr/test-u32-set.c: New file.
2713 Tests for module 'unistr/u16-set'.
2714 * modules/unistr/u16-set-tests: New file.
2715 * tests/unistr/test-u16-set.c: New file.
2717 Tests for module 'unistr/u8-set'.
2718 * modules/unistr/u8-set-tests: New file.
2719 * tests/unistr/test-u8-set.c: New file.
2720 * tests/unistr/test-set.h: New file.
2722 Tests for module 'unistr/u32-move'.
2723 * modules/unistr/u32-move-tests: New file.
2724 * tests/unistr/test-u32-move.c: New file.
2726 Tests for module 'unistr/u16-move'.
2727 * modules/unistr/u16-move-tests: New file.
2728 * tests/unistr/test-u16-move.c: New file.
2730 Tests for module 'unistr/u8-move'.
2731 * modules/unistr/u8-move-tests: New file.
2732 * tests/unistr/test-u8-move.c: New file.
2733 * tests/unistr/test-move.h: New file.
2735 Tests for module 'unistr/u32-cpy'.
2736 * modules/unistr/u32-cpy-tests: New file.
2737 * tests/unistr/test-u32-cpy.c: New file.
2739 Tests for module 'unistr/u16-cpy'.
2740 * modules/unistr/u16-cpy-tests: New file.
2741 * tests/unistr/test-u16-cpy.c: New file.
2743 Tests for module 'unistr/u8-cpy'.
2744 * modules/unistr/u8-cpy-tests: New file.
2745 * tests/unistr/test-u8-cpy.c: New file.
2746 * tests/unistr/test-cpy.h: New file.
2748 2010-01-09 Bruno Haible <bruno@clisp.org>
2750 Tests for module 'unistr/u32-uctomb'.
2751 * modules/unistr/u32-uctomb-tests: New file.
2752 * tests/unistr/test-u32-uctomb.c: New file.
2754 Tests for module 'unistr/u16-uctomb'.
2755 * modules/unistr/u16-uctomb-tests: New file.
2756 * tests/unistr/test-u16-uctomb.c: New file.
2758 Tests for module 'unistr/u8-uctomb'.
2759 * modules/unistr/u8-uctomb-tests: New file.
2760 * tests/unistr/test-u8-uctomb.c: New file.
2762 Tests for module 'unistr/u32-mbtoucr'.
2763 * modules/unistr/u32-mbtoucr-tests: New file.
2764 * tests/unistr/test-u32-mbtoucr.c: New file.
2766 Tests for module 'unistr/u16-mbtoucr'.
2767 * modules/unistr/u16-mbtoucr-tests: New file.
2768 * tests/unistr/test-u16-mbtoucr.c: New file.
2770 Tests for module 'unistr/u8-mbtoucr'.
2771 * modules/unistr/u8-mbtoucr-tests: New file.
2772 * tests/unistr/test-u8-mbtoucr.c: New file.
2774 Tests for module 'unistr/u32-mbtouc'.
2775 * modules/unistr/u32-mbtouc-tests: New file.
2776 * tests/unistr/test-u32-mbtouc.c: New file.
2778 Tests for module 'unistr/u16-mbtouc'.
2779 * modules/unistr/u16-mbtouc-tests: New file.
2780 * tests/unistr/test-u16-mbtouc.c: New file.
2782 Tests for module 'unistr/u8-mbtouc'.
2783 * modules/unistr/u8-mbtouc-tests: New file.
2784 * tests/unistr/test-u8-mbtouc.c: New file.
2786 Tests for module 'unistr/u32-mbtouc-unsafe'.
2787 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2788 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2789 * tests/unistr/test-u32-mbtouc.h: New file.
2791 Tests for module 'unistr/u16-mbtouc-unsafe'.
2792 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2793 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2794 * tests/unistr/test-u16-mbtouc.h: New file.
2796 Tests for module 'unistr/u8-mbtouc-unsafe'.
2797 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2798 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2799 * tests/unistr/test-u8-mbtouc.h: New file.
2801 Tests for module 'unistr/u32-mblen'.
2802 * modules/unistr/u32-mblen-tests: New file.
2803 * tests/unistr/test-u32-mblen.c: New file.
2805 Tests for module 'unistr/u16-mblen'.
2806 * modules/unistr/u16-mblen-tests: New file.
2807 * tests/unistr/test-u16-mblen.c: New file.
2809 Tests for module 'unistr/u8-mblen'.
2810 * modules/unistr/u8-mblen-tests: New file.
2811 * tests/unistr/test-u8-mblen.c: New file.
2813 Tests for module 'unistr/u32-to-u16'.
2814 * modules/unistr/u32-to-u16-tests: New file.
2815 * tests/unistr/test-u32-to-u16.c: New file.
2817 Tests for module 'unistr/u32-to-u8'.
2818 * modules/unistr/u32-to-u8-tests: New file.
2819 * tests/unistr/test-u32-to-u8.c: New file.
2821 Tests for module 'unistr/u16-to-u32'.
2822 * modules/unistr/u16-to-u32-tests: New file.
2823 * tests/unistr/test-u16-to-u32.c: New file.
2825 Tests for module 'unistr/u16-to-u8'.
2826 * modules/unistr/u16-to-u8-tests: New file.
2827 * tests/unistr/test-u16-to-u8.c: New file.
2829 Tests for module 'unistr/u8-to-u32'.
2830 * modules/unistr/u8-to-u32-tests: New file.
2831 * tests/unistr/test-u8-to-u32.c: New file.
2833 Tests for module 'unistr/u8-to-u16'.
2834 * modules/unistr/u8-to-u16-tests: New file.
2835 * tests/unistr/test-u8-to-u16.c: New file.
2837 Tests for module 'unistr/u32-check'.
2838 * modules/unistr/u32-check-tests: New file.
2839 * tests/unistr/test-u32-check.c: New file.
2841 Tests for module 'unistr/u16-check'.
2842 * modules/unistr/u16-check-tests: New file.
2843 * tests/unistr/test-u16-check.c: New file.
2845 Tests for module 'unistr/u8-check'.
2846 * modules/unistr/u8-check-tests: New file.
2847 * tests/unistr/test-u8-check.c: New file.
2849 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2850 (category_equals): New function.
2851 (main): Add more tests.
2852 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2854 * tests/unictype/test-bidi_byname.c (main): Add more tests.
2856 2010-01-10 Bruno Haible <bruno@clisp.org>
2858 unistr/u*-strcoll: Try harder to distinguish different strings.
2859 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2860 compare s1 and s2 to see if they are different.
2862 2010-01-10 Bruno Haible <bruno@clisp.org>
2864 unistr/u*-stpncpy: Fix the return value.
2865 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2866 description of the return value consistent with stpncpy in glibc.
2867 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2868 written non-NUL unit.
2870 2010-01-10 Bruno Haible <bruno@clisp.org>
2872 unistr/u*-next: Add missing dependencies.
2873 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2874 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2875 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2877 2010-01-10 Bruno Haible <bruno@clisp.org>
2879 unistr/u8-mbsnlen: Fix return value for incomplete character.
2880 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2882 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2883 Remove unistr/u8-mblen.
2884 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2886 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2887 Remove unistr/u16-mblen.
2889 2010-01-10 Bruno Haible <bruno@clisp.org>
2891 wchar: Fix compilation error when <wchar.h> is used from coreutils.
2892 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2893 Reported by Brian Gough <bjg@gnu.org> and
2894 Chris Clayton <chris2553@googlemail.com> via
2895 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2897 2010-01-09 Bruno Haible <bruno@clisp.org>
2899 unistr/u16-to-u32: Reject invalid input.
2900 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2902 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2903 Remove unistr/u16-mbtouc.
2905 unistr/u16-to-u8: Reject invalid input.
2906 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2908 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2909 Remove unistr/u16-mbtouc.
2911 unistr/u8-to-u32: Reject invalid input.
2912 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2914 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2915 Remove unistr/u8-mbtouc.
2917 unistr/u8-to-u16: Reject invalid input.
2918 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2920 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2921 Remove unistr/u8-mbtouc.
2923 2010-01-09 Bruno Haible <bruno@clisp.org>
2925 Tests for module 'getlogin'.
2926 * modules/getlogin-tests: New file.
2927 * tests/test-getlogin.c: New file.
2929 New module 'getlogin'.
2930 * lib/unistd.in.h (getlogin): New declaration.
2931 * lib/getlogin.c: New file.
2932 * m4/getlogin.m4: New file.
2933 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2935 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2937 * modules/getlogin: New file.
2938 * doc/posix-functions/getlogin.texi: Mention the new module.
2939 Reported by John W. Eaton <jwe@gnu.org>.
2941 2010-01-09 Bruno Haible <bruno@clisp.org>
2943 getlogin_r: Support for native Windows.
2944 * lib/getlogin_r.c: Include <windows.h>
2945 (getlogin_r): Implement for native Windows.
2946 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2947 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2948 via John W. Eaton <jwe@gnu.org>.
2950 2010-01-09 Bruno Haible <bruno@clisp.org>
2952 getlogin_r: Small fixes.
2953 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2955 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2956 before testing whether getlogin_r is declared. No need to set
2957 HAVE_DECL_GETLOGIN_R to 1.
2958 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2960 2010-01-09 Bruno Haible <bruno@clisp.org>
2962 * lib/unistd.in.h (getlogin_r): Add comment.
2964 2010-01-09 Bruno Haible <bruno@clisp.org>
2966 Tests for module 'getlogin_r'.
2967 * modules/getlogin_r-tests: New file.
2968 * tests/test-getlogin_r.c: New file.
2970 2010-01-09 Jim Meyering <meyering@redhat.com>
2972 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2973 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2974 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2976 2010-01-08 Simon Josefsson <simon@josefsson.org>
2978 * lib/dup2.c (rpl_dup2): Improve comment.
2980 2010-01-08 Eric Blake <ebb9@byu.net>
2982 maint.mk: allow packages to add makefile @@ exceptions
2983 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2984 (sc_makefile_check): Rename...
2985 (sc_makefile_at_at_check): ...to this, and use hook.
2987 dup2: work around mingw bug
2988 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2989 Reported by Simon Josefsson.
2991 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
2993 glob: Fix C++ compilation.
2994 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2997 2010-01-07 Bruno Haible <bruno@clisp.org>
2999 Fix indentation of wctype.in.h, broken since 2007-01-06.
3000 * lib/wctype.in.h: Fix indentation of preprocessor directives.
3002 2010-01-07 Bruno Haible <bruno@clisp.org>
3004 mbslen: Avoid collision with system function.
3005 * lib/string.in.h [MirBSD]: Include <wchar.h>.
3006 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3007 * m4/mbslen.m4: New file.
3008 * modules/mbslen (Files): Add it.
3009 (configure.ac): Invoke gl_MBSLEN.
3010 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3011 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3012 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3013 via Ian Beckwith <ianb@erislabs.net>.
3015 2010-01-07 Bruno Haible <bruno@clisp.org>
3017 dirent: Document the last fix.
3018 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3020 2010-01-07 Bruno Haible <bruno@clisp.org>
3022 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3023 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3024 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3025 va_list are defined.
3026 * doc/posix-headers/stdio.texi: Document the bug of missing types.
3027 Reported by Eric Blake.
3029 2010-01-07 Bruno Haible <bruno@clisp.org>
3031 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3032 * modules/xlist (Depends-on): Add 'list',
3033 * modules/xoset (Depends-on): Add 'oset'.
3034 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3036 2010-01-07 Bruno Haible <bruno@clisp.org>
3038 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3039 * doc/posix-functions/strncasecmp.texi: Likewise.
3041 2010-01-07 Bruno Haible <bruno@clisp.org>
3043 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3045 2010-01-07 John W. Eaton <jwe@octave.org>
3047 wctype: allow C++ use
3048 * lib/wctype.in.h: Add extern "C" block for C++.
3050 2010-01-06 Eric Blake <ebb9@byu.net>
3052 maint.mk: detect incorrect GFDL usage
3053 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3055 2010-01-06 Jim Meyering <meyering@redhat.com>
3056 and Eric Blake <ebb9@byu.net>
3058 maint.mk: ignore multi-line copyright in NEWS
3059 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3061 2010-01-06 Eric Blake <ebb9@byu.net>
3063 select: add missing dependency
3064 * modules/select-tests (Depends-on): Move sockets dependency...
3065 * modules/select (Depends-on): ...here.
3066 Reported by Ian Beckwith.
3068 doc: regenerate INSTALL
3069 * doc/INSTALL: Reflect recent autoconf update.
3070 * doc/INSTALL.ISO: Likewise.
3071 * doc/INSTALL.UTF-8: Likewise.
3073 pread: fix compilation on glibc
3074 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3075 Reported by Ralf Wildenhues.
3077 dirent: fix test failure
3078 * lib/dirent.in.h (includes): Guarantee ino_t.
3079 Reported by Ralf Wildenhues.
3081 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
3083 linkat, renameat: avoid bad free
3084 * lib/at-func2.c (at_func2): Fix typo.
3085 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3087 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3089 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3090 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3091 to avoid failure of symlink test later.
3093 2010-01-06 Eric Blake <ebb9@byu.net>
3095 stdio, unistd: guarantee ssize_t
3096 * lib/unistd.in.h (includes): Ensure that types required by POSIX
3097 2008 are exposed when needed.
3098 * lib/stdio.in.h (includes): Likewise.
3099 Reported by Ralf Wildenhues.
3101 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
3103 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3104 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3105 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3107 2010-01-06 Jim Meyering <meyering@redhat.com>
3109 readtokens: this module *does* require xalloc.h
3110 It uses only functions that were omitted by the old syntax-check rule.
3111 * lib/readtokens.c: Include "xalloc.h" once again.
3112 * modules/readtokens (Depends-on): Add xalloc.
3113 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3115 2010-01-05 Eric Blake <ebb9@byu.net>
3117 maint: support 'make announcement' from a VPATH build
3118 * top/maint.mk (announcement): Look for correct NEWS file.
3120 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
3122 utimens (fdutimens): ignore a negative FD, per contract
3123 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3124 when we have a valid file descriptor. Otherwise, using a brand
3125 new glibc (with just-patched futimens that now fails with EBADF)
3126 would cause this function to fail with ENOSYS.
3127 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3128 See also http://bugzilla.redhat.com/552320.
3130 2010-01-05 Eric Blake <ebb9@byu.net>
3132 strcase: document what it provides
3133 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3135 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3136 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3138 2010-01-05 Jim Meyering <meyering@redhat.com>
3140 maint: remove useless inclusions of "xalloc.h"
3141 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3142 * lib/readtokens.c: Likewise.
3143 * lib/same.c: Likewise.
3144 * modules/getloadavg (Depends-on): Remove xalloc.
3145 * modules/readtokens: Likewise.
3146 * modules/same: Likewise.
3148 maint.mk: include 4 more function names in alloca.h-checking regexp
3149 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3150 regexp. Before, we would give a false-positive (saying alloca.h
3151 is included unnecessarily) when the only uses involved omitted symbols.
3153 xalloc.h: use consistent formatting
3154 * lib/xalloc.h: Move declarations to start in the first column.
3156 2010-01-05 Eric Blake <ebb9@byu.net>
3159 * lib/mkdir.c (includes): Drop unused header.
3160 Reported by John W. Eaton.
3162 2010-01-04 Jim Meyering <meyering@redhat.com>
3164 nl_langinfo: avoid configure-time syntax error
3165 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3166 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3167 the empty string. Don't let that provoke a shell syntax error.
3169 regcomp, regexec, fnmatch: avoid array bounds read error
3170 * lib/regcomp.c (build_equiv_class): From glibc:
3171 Use only the low 24 bits of a findidx return value as an index
3172 into the weights array. Patch by Ulrich Drepper:
3173 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3174 * lib/regexec.c (check_node_accept_bytes): Likewise.
3175 * lib/fnmatch_loop.c (FCT): Likewise.
3177 regcomp: skip collseq lookup when there are no rules
3178 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3179 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3181 regcomp: recognize ill-formed { } expressions
3182 * lib/regcomp.c (parse_dup_op): From glibc:
3183 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3185 regcomp: fix typo in comment
3186 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3187 s/satisfy/satisfies/.
3189 regcomp: sync from glibc: remove dead store
3190 * lib/regcomp.c (duplicate_node_closure): Remove useless
3191 search_duplicated_node call and dead store.
3193 regcomp: sync from glibc; always use nl_langinfo
3194 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3195 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
3196 * modules/regex (Depends-on): Add nl_langinfo.
3198 2010-01-04 Eric Blake <ebb9@byu.net>
3200 fdopendir: fix configure test
3201 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3203 2010-01-01 Bruno Haible <bruno@clisp.org>
3205 wchar: Remove unused configure check.
3206 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3208 2010-01-01 Eric Blake <ebb9@byu.net>
3210 headers: make check of system header explicit
3211 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3212 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3214 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3215 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3216 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3217 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3219 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3221 Suggested by Bruno Haible.
3223 2010-01-01 Jim Meyering <meyering@redhat.com>
3225 ChangeLog: tweak to eliminate unnecessary copyright line
3226 * ChangeLog: Remove a copyright line that was mistakenly updated
3227 by today's update-copyright run. Reported by Eric Blake.
3229 test-update-copyright: don't let envvar setting cause test failure
3230 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3232 2010-01-01 Bruno Haible <bruno@clisp.org>
3234 localename: Avoid gcc warning.
3235 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3236 function if it is not used.
3238 2010-01-01 Jim Meyering <meyering@redhat.com>
3240 update nearly all FSF copyright year lists to include 2010
3241 Use the same procedure as for 2009, outlined in
3242 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3244 version-etc: set COPYRIGHT_YEAR to 2010
3245 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3247 2009-12-31 Eric Blake <ebb9@byu.net>
3249 doc: correct availability of cygwin 1.5.x getopt
3250 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3252 * doc/posix-functions/opterr.texi (opterr): Likewise.
3253 * doc/posix-functions/optind.texi (optind): Likewise.
3254 * doc/posix-functions/optopt.texi (optopt): Likewise.
3255 * doc/posix-functions/tzname.texi (tzname): Likewise.
3257 openat: update maintainer
3258 * modules/openat (Maintainer): Add myself.
3260 utimens: avoid shadowing warning
3261 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3262 buffers into one, to avoid shadowing, as well as avoiding a
3264 Reported by Jim Meyering.
3266 test-dup2: avoid compiler warning
3267 * tests/test-dup2.c (is_inheritable): Only define if used.
3269 2010-01-01 Bruno Haible <bruno@clisp.org>
3271 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3272 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3273 defined, use wctomb instead of wcrtomb.
3275 2010-01-01 Bruno Haible <bruno@clisp.org>
3277 iconv: Reject native Solaris iconv.
3278 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3279 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3281 2009-12-31 Bruno Haible <bruno@clisp.org>
3283 * tests/test-signal.c (main): Remove test of 'SIG'.
3285 2009-12-31 Bruno Haible <bruno@clisp.org>
3287 spawn: Fix incomplete fix.
3288 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3289 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3290 warnings for GNULIB_POSIXCHECK again.
3291 Reported by Eric Blake.
3293 2009-12-31 Bruno Haible <bruno@clisp.org>
3295 Avoid namespace pollution on glibc systems.
3296 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3297 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3298 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3301 2009-12-31 Bruno Haible <bruno@clisp.org>
3303 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3304 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3305 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3306 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3307 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3308 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3309 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3311 2009-12-31 Bruno Haible <bruno@clisp.org>
3313 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3314 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3317 2009-12-31 Bruno Haible <bruno@clisp.org>
3319 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3322 2009-12-31 Bruno Haible <bruno@clisp.org>
3324 spawn: Fix misapplied patch.
3325 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3326 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3327 warnings for GNULIB_POSIXCHECK.
3329 2009-12-31 Bruno Haible <bruno@clisp.org>
3331 times: Update after sys_times changed.
3332 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3333 * modules/times (Files): Add it.
3334 (configure.ac): Invoke gl_FUNC_TIMES.
3336 2009-12-31 Bruno Haible <bruno@clisp.org>
3338 Use AC_C_INLINE where necessary.
3339 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3340 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3341 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3342 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3343 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3344 * m4/mbiter.m4 (gl_MBITER): Likewise.
3345 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3346 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3347 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3348 * modules/u64 (configure.ac): Likewise.
3350 2009-12-31 Bruno Haible <bruno@clisp.org>
3352 Use AC_C_INLINE instead of module 'inline' where possible.
3353 * modules/inline (Description): Clarify purpose.
3354 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3355 * modules/count-one-bits (Depends-on): Remove inline.
3356 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3357 * modules/openat (Depends-on): Remove inline.
3358 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3359 instead of depending on module 'inline'.
3360 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3361 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3362 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3363 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3364 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3365 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3366 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3367 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3368 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3369 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3370 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3371 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3372 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3373 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3374 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3375 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3376 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3377 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3379 * modules/unictype/property-ascii-hex-digit (Depends-on,
3380 configure.ac): Likewise.
3381 * modules/unictype/property-bidi-arabic-digit (Depends-on,
3382 configure.ac): Likewise.
3383 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3384 configure.ac): Likewise.
3385 * modules/unictype/property-bidi-block-separator (Depends-on,
3386 configure.ac): Likewise.
3387 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3388 configure.ac): Likewise.
3389 * modules/unictype/property-bidi-common-separator (Depends-on,
3390 configure.ac): Likewise.
3391 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3393 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3394 configure.ac): Likewise.
3395 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3396 configure.ac): Likewise.
3397 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3398 configure.ac): Likewise.
3399 * modules/unictype/property-bidi-european-digit (Depends-on,
3400 configure.ac): Likewise.
3401 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3402 configure.ac): Likewise.
3403 * modules/unictype/property-bidi-left-to-right (Depends-on,
3404 configure.ac): Likewise.
3405 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3406 configure.ac): Likewise.
3407 * modules/unictype/property-bidi-other-neutral (Depends-on,
3408 configure.ac): Likewise.
3409 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3411 * modules/unictype/property-bidi-segment-separator (Depends-on,
3412 configure.ac): Likewise.
3413 * modules/unictype/property-bidi-whitespace (Depends-on,
3414 configure.ac): Likewise.
3415 * modules/unictype/property-combining (Depends-on, configure.ac):
3417 * modules/unictype/property-composite (Depends-on, configure.ac):
3419 * modules/unictype/property-currency-symbol (Depends-on,
3420 configure.ac): Likewise.
3421 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3422 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3424 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3425 configure.ac): Likewise.
3426 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3428 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3430 * modules/unictype/property-extender (Depends-on, configure.ac):
3432 * modules/unictype/property-format-control (Depends-on, configure.ac):
3434 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3436 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3438 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3440 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3442 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3444 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3446 * modules/unictype/property-id-start (Depends-on, configure.ac):
3448 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3450 * modules/unictype/property-ids-binary-operator (Depends-on,
3451 configure.ac): Likewise.
3452 * modules/unictype/property-ids-trinary-operator (Depends-on,
3453 configure.ac): Likewise.
3454 * modules/unictype/property-ignorable-control (Depends-on,
3455 configure.ac): Likewise.
3456 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3458 * modules/unictype/property-join-control (Depends-on, configure.ac):
3460 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3462 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3464 * modules/unictype/property-logical-order-exception (Depends-on,
3465 configure.ac): Likewise.
3466 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3468 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3469 * modules/unictype/property-non-break (Depends-on, configure.ac):
3471 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3473 * modules/unictype/property-numeric (Depends-on, configure.ac):
3475 * modules/unictype/property-other-alphabetic (Depends-on,
3476 configure.ac): Likewise.
3477 * modules/unictype/property-other-default-ignorable-code-point
3478 (Depends-on, configure.ac): Likewise.
3479 * modules/unictype/property-other-grapheme-extend (Depends-on,
3480 configure.ac): Likewise.
3481 * modules/unictype/property-other-id-continue (Depends-on,
3482 configure.ac): Likewise.
3483 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3485 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3487 * modules/unictype/property-other-math (Depends-on, configure.ac):
3489 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3491 * modules/unictype/property-paired-punctuation (Depends-on,
3492 configure.ac): Likewise.
3493 * modules/unictype/property-paragraph-separator (Depends-on,
3494 configure.ac): Likewise.
3495 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3497 * modules/unictype/property-pattern-white-space (Depends-on,
3498 configure.ac): Likewise.
3499 * modules/unictype/property-private-use (Depends-on, configure.ac):
3501 * modules/unictype/property-punctuation (Depends-on, configure.ac):
3503 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3505 * modules/unictype/property-radical (Depends-on, configure.ac):
3507 * modules/unictype/property-sentence-terminal (Depends-on,
3508 configure.ac): Likewise.
3509 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3511 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3512 * modules/unictype/property-terminal-punctuation (Depends-on,
3513 configure.ac): Likewise.
3514 * modules/unictype/property-titlecase (Depends-on, configure.ac):
3516 * modules/unictype/property-unassigned-code-value (Depends-on,
3517 configure.ac): Likewise.
3518 * modules/unictype/property-unified-ideograph (Depends-on,
3519 configure.ac): Likewise.
3520 * modules/unictype/property-uppercase (Depends-on, configure.ac):
3522 * modules/unictype/property-variation-selector (Depends-on,
3523 configure.ac): Likewise.
3524 * modules/unictype/property-white-space (Depends-on, configure.ac):
3526 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3528 * modules/unictype/property-xid-start (Depends-on, configure.ac):
3530 * modules/unictype/property-zero-width (Depends-on, configure.ac):
3532 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3533 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3536 2009-12-31 Bruno Haible <bruno@clisp.org>
3538 Remove unnecessary AC_C_INLINE invocation.
3539 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3542 2009-12-31 Jim Meyering <meyering@redhat.com>
3544 maint.mk: don't require explicit gpg_key_ID in cfg.mk
3545 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3546 With this change, we can all remove the gpg_key_ID = ... definition
3547 from our respective cfg.mk files.
3549 maint.mk: create announcement template in ~/, not in /tmp
3550 * top/maint.mk (emit_upload_commands): Adjust.
3551 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3552 Remove temporary file, .ci-msg.
3554 2009-12-31 Eric Blake <ebb9@byu.net>
3556 link-warning: always build headers with link warnings
3557 * modules/arpa_inet (Makefile.am): Always build replacement
3559 * modules/ctype (Makefile.am): Likewise.
3560 * modules/dirent (Makefile.am): Likewise.
3561 * modules/inttypes (Makefile.am): Likewise.
3562 * modules/langinfo (Makefile.am): Likewise.
3563 * modules/locale (Makefile.am): Likewise.
3564 * modules/spawn (Makefile.am): Likewise.
3565 * modules/sys_file (Makefile.am): Likewise.
3566 * modules/sys_ioctl (Makefile.am): Likewise.
3567 * modules/sys_select (Makefile.am): Likewise.
3568 * modules/sys_socket (Makefile.am): Likewise.
3569 * modules/sys_times (Makefile.am): Likewise.
3570 * modules/sys_utsname (Makefile.am): Likewise.
3571 * modules/sys_wait (Makefile.am): Likewise.
3572 * modules/wchar (Makefile.am): Likewise.
3573 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3574 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3575 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3576 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3577 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3579 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3580 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3581 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3583 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3585 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3586 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3587 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3588 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3589 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3590 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3591 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3592 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3593 (gl_WCHAR_H_DEFAULTS): Likewise.
3595 2009-12-31 Eric Blake <ebb9@byu.net>
3597 signal, spawn: use link warnings
3598 * lib/signal.in.h (sigset_t): Make unconditional.
3599 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3600 (sigpending, sigprocmask, sigaction): Add link warnings.
3601 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3602 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3603 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3604 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3605 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3606 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3607 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3608 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3609 (posix_spawn_file_actions_destroy)
3610 (posix_spawn_file_actions_addopen)
3611 (posix_spawn_file_actions_addclose)
3612 (posix_spawn_file_actions_adddup2): Likewise.
3613 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3614 * tests/test-signal.c (main): Enhance test.
3616 spawn: improve wrapper support
3617 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3618 (gl_SPAWN_H_DEFAULTS): New defaults.
3619 * modules/spawn (Makefile.am): Substitute them.
3620 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3621 Only declare if missing or broken.
3623 sys_times, sys_utsname: use include_next
3624 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3626 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3627 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3628 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3629 * modules/sys_times (Depends-on): Add include_next.
3630 (Makefile.am): Substitute additional values.
3631 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3632 * lib/sys_times.in.h (includes): Include native header, if
3634 * lib/sys_utsname.in.h (includes): Likewise.
3635 * tests/test-sys_times.c (main): Enhance test.
3637 fdutimensat: revert prior patch
3638 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3640 Reported by Bruno Haible.
3642 2009-12-30 Eric Blake <ebb9@byu.net>
3644 sys_wait: drop link-warning dependency
3645 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3646 link-warning efforts.
3647 * lib/sys_wait.in.h: Likewise.
3649 fdutimensat: remove bogus dependency
3650 * modules/fdutimensat (Depends-on): Drop inline.
3653 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3655 2009-12-30 Bruno Haible <bruno@clisp.org>
3657 Fix compilation error with Solaris cc.
3658 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3659 * lib/unicase/u16-is-invariant.c: Likewise.
3660 * lib/unicase/u32-is-invariant.c: Likewise.
3661 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3663 2009-12-30 Bruno Haible <bruno@clisp.org>
3666 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3668 Reported by Simon Josefsson <simon@josefsson.org>.
3670 2009-12-30 Bruno Haible <bruno@clisp.org>
3672 Fix compilation error on most platforms.
3673 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3674 Reported by Simon Josefsson <simon@josefsson.org>
3675 and Nelson H. F. Beebe <beebe@math.utah.edu>.
3677 2009-12-30 Eric Blake <ebb9@byu.net>
3679 futimens, utimensat: work around ntfs-3g bug
3680 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3681 a ctime bug is present, and expand workaround to cover ntfs-3g.
3682 * lib/utimens.c (fdutimens, lutimens): Likewise.
3683 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3684 (validate_timespec): Adjust return value.
3685 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3686 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3687 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3689 2009-12-29 Eric Blake <ebb9@byu.net>
3691 link-warning: make usage consistent
3692 * modules/ctype (Depends-on): Add link-warning.
3693 (Makefile.am): Update rules accordingly.
3694 * modules/langinfo (Depends-on, Makefile.am): Likewise.
3695 * modules/locale (Depends-on, Makefile.am): Likewise.
3696 * modules/sys_file (Makefile.am): Likewise.
3697 * modules/getopt-posix (Makefile.am): Delete unused link warning
3699 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3700 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3701 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3702 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3704 stdio: remove unused variables
3705 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3706 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3707 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3709 tests: test more substitute headers
3710 * modules/ctype-tests: New file.
3711 * modules/dirent-tests: Likewise.
3712 * modules/spawn-tests: Likewise.
3713 * modules/sys_file-tests: Likewise.
3714 * modules/sys_ioctl-tests: Likewise.
3715 * modules/sys_wait-tests: Likewise.
3716 * tests/test-ctype.c: Likewise.
3717 * tests/test-dirent.c: Likewise.
3718 * tests/test-spawn.c: Likewise.
3719 * tests/test-sys_file.c: Likewise.
3720 * tests/test-sys_ioctl.c: Likewise.
3721 * tests/test-sys_wait.c: Likewise.
3722 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3723 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3724 whether or not flock is in use.
3726 tests: remove License section from module
3727 * modules/arpa_inet-tests: Remove unneeded section.
3728 * modules/byteswap-tests: Likewise.
3729 * modules/ceilf-tests: Likewise.
3730 * modules/ceill-tests: Likewise.
3731 * modules/crypto/des-tests: Likewise.
3732 * modules/crypto/gc-arcfour-tests: Likewise.
3733 * modules/crypto/gc-arctwo-tests: Likewise.
3734 * modules/crypto/gc-des-tests: Likewise.
3735 * modules/crypto/gc-hmac-md5-tests: Likewise.
3736 * modules/crypto/gc-hmac-sha1-tests: Likewise.
3737 * modules/crypto/gc-md2-tests: Likewise.
3738 * modules/crypto/gc-md4-tests: Likewise.
3739 * modules/crypto/gc-md5-tests: Likewise.
3740 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3741 * modules/crypto/gc-rijndael-tests: Likewise.
3742 * modules/crypto/gc-sha1-tests: Likewise.
3743 * modules/crypto/gc-tests: Likewise.
3744 * modules/crypto/md2-tests: Likewise.
3745 * modules/crypto/md4-tests: Likewise.
3746 * modules/fcntl-h-tests: Likewise.
3747 * modules/floorf-tests: Likewise.
3748 * modules/floorl-tests: Likewise.
3749 * modules/frexp-nolibm-tests: Likewise.
3750 * modules/frexp-tests: Likewise.
3751 * modules/frexpl-nolibm-tests: Likewise.
3752 * modules/frexpl-tests: Likewise.
3753 * modules/getaddrinfo-tests: Likewise.
3754 * modules/inttypes-tests: Likewise.
3755 * modules/isfinite-tests: Likewise.
3756 * modules/isinf-tests: Likewise.
3757 * modules/ldexpl-tests: Likewise.
3758 * modules/locale-tests: Likewise.
3759 * modules/math-tests: Likewise.
3760 * modules/netdb-tests: Likewise.
3761 * modules/netinet_in-tests: Likewise.
3762 * modules/printf-frexp-tests: Likewise.
3763 * modules/printf-frexpl-tests: Likewise.
3764 * modules/priv-set-tests: Likewise.
3765 * modules/random_r-tests: Likewise.
3766 * modules/round-tests: Likewise.
3767 * modules/roundf-tests: Likewise.
3768 * modules/roundl-tests: Likewise.
3769 * modules/search-tests: Likewise.
3770 * modules/select-tests: Likewise.
3771 * modules/signal-tests: Likewise.
3772 * modules/stdbool-tests: Likewise.
3773 * modules/stddef-tests: Likewise.
3774 * modules/stdint-tests: Likewise.
3775 * modules/stdio-tests: Likewise.
3776 * modules/stdlib-tests: Likewise.
3777 * modules/string-tests: Likewise.
3778 * modules/strings-tests: Likewise.
3779 * modules/sys_select-tests: Likewise.
3780 * modules/sys_socket-tests: Likewise.
3781 * modules/sys_stat-tests: Likewise.
3782 * modules/sys_time-tests: Likewise.
3783 * modules/sys_utsname-tests: Likewise.
3784 * modules/sysexits-tests: Likewise.
3785 * modules/time-tests: Likewise.
3786 * modules/trunc-tests: Likewise.
3787 * modules/truncf-tests: Likewise.
3788 * modules/truncl-tests: Likewise.
3789 * modules/tsearch-tests: Likewise.
3790 * modules/unistd-tests: Likewise.
3791 * modules/wchar-tests: Likewise.
3792 * modules/wctype-tests: Likewise.
3794 tests: fix license on several tests
3795 * tests/test-des.c: Update to GPLv3+.
3796 * tests/test-flock.c: Likewise.
3797 * tests/test-fsync.c: Likewise.
3798 * tests/test-futimens.h: Likewise.
3799 * tests/test-gc-arcfour.c: Likewise.
3800 * tests/test-gc-arctwo.c: Likewise.
3801 * tests/test-gc-des.c: Likewise.
3802 * tests/test-gc-hmac-md5.c: Likewise.
3803 * tests/test-gc-hmac-sha1.c: Likewise.
3804 * tests/test-gc-md2.c: Likewise.
3805 * tests/test-gc-md4.c: Likewise.
3806 * tests/test-gc-md5.c: Likewise.
3807 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3808 * tests/test-gc-rijndael.c: Likewise.
3809 * tests/test-gc-sha1.c: Likewise.
3810 * tests/test-gc.c: Likewise.
3811 * tests/test-getcwd.c: Likewise.
3812 * tests/test-link.c: Likewise.
3813 * tests/test-link.h: Likewise.
3814 * tests/test-lutimens.h: Likewise.
3815 * tests/test-md2.c: Likewise.
3816 * tests/test-md4.c: Likewise.
3817 * tests/test-mkdir.h: Likewise.
3818 * tests/test-rename.c: Likewise.
3819 * tests/test-rename.h: Likewise.
3820 * tests/test-safe-alloc.c: Likewise.
3821 * tests/test-utimens-common.h: Likewise.
3822 * tests/test-utimens.h: Likewise.
3824 maint: sync license texts
3825 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3826 * doc/gpl-3.0.texi: Revert copyright year update.
3827 * doc/lgpl-3.0.texi: Likewise.
3829 2009-12-29 Jim Meyering <meyering@redhat.com>
3831 update nearly all FSF copyright year lists to include 2009
3832 The files named by the following are exempted:
3833 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3834 test -f "$dst" && { echo "$dst"; continue; }
3835 test -d "$dst" || continue
3836 echo "$dst"/$(basename "$src")
3838 git ls-files tests/unictype >> exempt
3839 In the remaining files, convert to all-interval notation if
3840 - there is already at least one year interval like 2000-2003
3841 - the file is maintained by me
3842 - the file is in lib/uni*/, where that style already prevails
3843 Otherwise, use update-copyright's default.
3845 2009-12-29 Simon Josefsson <simon@josefsson.org>
3846 and Eric Blake <ebb9@byu.net>
3848 tests: don't require debug system() to pass
3849 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3850 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3851 * tests/test-unlink.h (test_unlink_func): Likewise.
3852 * tests/test-fstatat.c (main): ...into callers.
3853 * tests/test-lstat.c (main): Likewise.
3854 * tests/test-rmdir.c (main): Likewise.
3855 * tests/test-unlink.c (main): Likewise.
3856 * tests/test-unlinkat.c (main): Likewise.
3857 * tests/test-areadlink-with-size.c (main): Don't require a
3858 debug-only system call to pass, aiding cross-testing to mingw.
3859 * tests/test-areadlink.c (main): Likewise.
3860 * tests/test-areadlinkat-with-size.c (main): Likewise.
3861 * tests/test-areadlinkat.c (main): Likewise.
3862 * tests/test-canonicalize-lgpl.c (main): Likewise.
3863 * tests/test-canonicalize.c (main): Likewise.
3864 * tests/test-chown.c (main): Likewise.
3865 * tests/test-fchownat.c (main): Likewise.
3866 * tests/test-lchown.c (main): Likewise.
3867 * tests/test-fdutimensat.c (main): Likewise.
3868 * tests/test-futimens.c (main): Likewise.
3869 * tests/test-link.c (main): Likewise.
3870 * tests/test-linkat.c (main): Likewise.
3871 * tests/test-mkdir.c (main): Likewise.
3872 * tests/test-mkdirat.c (main): Likewise.
3873 * tests/test-mkfifo.c (main): Likewise.
3874 * tests/test-mkfifoat.c (main): Likewise.
3875 * tests/test-mknod.c (main): Likewise.
3876 * tests/test-readlink.c (main): Likewise.
3877 * tests/test-remove.c (main): Likewise.
3878 * tests/test-rename.c (main): Likewise.
3879 * tests/test-renameat.c (main): Likewise.
3880 * tests/test-symlink.c (main): Likewise.
3881 * tests/test-symlinkat.c (main): Likewise.
3882 * tests/test-utimens.c (main): Likewise.
3883 * tests/test-utimensat.c (main): Likewise.
3885 2009-12-29 Simon Josefsson <simon@josefsson.org>
3887 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3888 on $(UNUSED_PARAMETER_H) to avoid build failure.
3890 2009-12-28 Jim Meyering <meyering@redhat.com>
3892 update-copyright: you may specify a max. line length other than 72
3893 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3895 maint: use consistent FSF copyright line syntax
3896 * lib/posixtm.c: Add missing comma in FSF copyright line.
3897 * lib/posixtm.h: Likewise.
3898 * lib/getugroups.c: Add missing ", Inc.".
3900 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3901 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3902 FSF copyright line. Remove trailing blanks.
3904 2009-12-28 Eric Blake <ebb9@byu.net>
3906 test-dup2: reduce dependencies
3907 * modules/cloexec (Configure.ac): Set witness.
3908 * modules/dup2-tests (Depends-on): Drop cloexec.
3909 * tests/test-dup2.c (main): Skip portion of test if cloexec module
3911 Suggested by Bruno Haible.
3913 2009-12-26 Bruno Haible <bruno@clisp.org>
3915 Remove an unneeded dependency.
3916 * modules/fseterr (Depends-on): Remove dup2.
3918 2009-12-26 Eric Blake <ebb9@byu.net>
3920 tests: use macros.h in more places
3921 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3922 (ASSERT_STREAM): Provide default of stderr.
3923 * tests/test-dirent-safer.c: Include macros.h, using alternate
3924 stream for assertions.
3925 * tests/test-dup-safer.c: Likewise.
3926 * tests/test-freopen-safer.c: Likewise.
3927 * tests/test-getopt.c: Likewise.
3928 * tests/test-openat-safer.c: Likewise.
3929 * tests/test-pipe.c: Likewise.
3930 * tests/test-popen-safer.c: Likewise.
3931 * modules/dirent-safer-tests (Files): Include macros.h.
3932 * modules/unistd-safer-tests (Files): Likewise.
3933 * modules/freopen-safer-tests (Files): Likewise.
3934 * modules/getopt-posix-tests (Files): Likewise.
3935 * modules/openat-safer-tests (Files): Likewise.
3936 * modules/pipe-tests (Files): Likewise.
3938 2009-12-26 Bruno Haible <bruno@clisp.org>
3940 javacomp: Portability fix.
3941 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3942 that it also works on Solaris.
3944 2009-12-26 Bruno Haible <bruno@clisp.org>
3946 localename: Fix storage allocation of gl_locale_name_thread's result.
3947 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3948 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3949 all platforms that have 'uselocale'.
3950 (gl_locale_name_thread_unsafe): New function, extracted from
3951 gl_locale_name_thread.
3952 (gl_locale_name_thread): Call struniq on all platforms that have
3954 * tests/test-localename.c (test_locale_name_thread): Check that the
3955 resulting strings are permanently allocated.
3956 * modules/localename-tests (Depends-on): Add strdup.
3958 2009-12-26 Bruno Haible <bruno@clisp.org>
3960 * tests/test-localename.c (categories): Fill in the strings.
3962 2009-12-26 Jim Meyering <meyering@redhat.com>
3964 isdir: complete the removal of m4/isdir.m4
3965 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3967 isdir: clean up, since at least grep still uses it
3968 * lib/isdir.c: Include "isdir.h".
3969 (S_ISDIR): Remove now-unneeded definition.
3970 * modules/isdir (Files): Add lib/isdir.h.
3971 * lib/isdir.h: New file, with declaration.
3972 * m4/isdir.m4: Remove file -- unneeded.
3974 2009-12-25 Bruno Haible <bruno@clisp.org>
3976 selinux-h: Make generated .h files standalone.
3977 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3978 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3979 * lib/se-selinux.in.h: Likewise.
3980 * modules/selinux-h (Depends-on): Add unused-parameter.
3981 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3982 selinux/selinux.h and selinux/context.h.
3983 Suggested by Eric Blake.
3985 2009-12-25 Bruno Haible <bruno@clisp.org>
3987 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3988 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3989 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3990 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3991 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3993 2009-12-24 Bruno Haible <bruno@clisp.org>
3995 openat: Fix warning.
3996 * lib/openat-proc.c: Include <unistd.h>.
3998 2009-12-24 Bruno Haible <bruno@clisp.org>
4000 New module 'unused-parameter'.
4001 * build-aux/unused-parameter.h: New file, extracted from earlier
4003 * modules/unused-parameter: New file.
4004 * lib/unistr.h: Include unused-parameter.h.
4005 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4007 * modules/unistr/base (Depends-on): Add unused-parameter.
4009 2009-12-24 Bruno Haible <bruno@clisp.org>
4011 Add missing dependencies to 'extensions' module.
4012 * m4/extensions.m4: Add comment.
4013 * modules/accept4 (Depends-on): Add extensions.
4014 * modules/dup3 (Depends-on): Likewise.
4015 * modules/fcntl (Depends-on): Likewise.
4016 * modules/futimens (Depends-on): Likewise.
4017 * modules/mknod (Depends-on): Likewise.
4018 * modules/pipe2 (Depends-on): Likewise.
4019 * modules/stat-time (Depends-on): Likewise.
4020 * modules/strcasestr-simple (Depends-on): Likewise.
4021 * modules/strsignal (Depends-on): Likewise.
4022 * modules/utimensat (Depends-on): Likewise.
4023 * modules/localcharset (Depends-on): Likewise. Needed because of
4025 * modules/wcrtomb (Depends-on): Likewise. Needed because of
4027 * modules/wcsnrtombs (Depends-on): Likewise.
4028 * modules/wcsrtombs (Depends-on): Likewise.
4030 2009-12-24 Bruno Haible <bruno@clisp.org>
4032 binary-io: Avoid gcc warning due to SET_BINARY.
4033 * lib/binary-io.h (SET_BINARY): Cast the result to void.
4034 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4036 2009-12-24 Bruno Haible <bruno@clisp.org>
4038 Avoid future namespace pollution on glibc systems.
4039 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4040 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4041 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4044 2009-12-24 Bruno Haible <bruno@clisp.org>
4046 Refactor common macros used in tests.
4047 * tests/macros.h: New file.
4048 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4049 and/or <stdlib.h>, if appropriate.
4050 (ASSERT, SIZEOF): Remove macros.
4051 * tests/test-areadlink-with-size.c: Likewise.
4052 * tests/test-areadlinkat.c: Likewise.
4053 * tests/test-areadlinkat-with-size.c: Likewise.
4054 * tests/test-argmatch.c: Likewise.
4055 * tests/test-argv-iter.c: Likewise.
4056 * tests/test-array-mergesort.c: Likewise.
4057 * tests/test-array_list.c: Likewise.
4058 * tests/test-array_oset.c: Likewise.
4059 * tests/test-avltree_list.c: Likewise.
4060 * tests/test-avltree_oset.c: Likewise.
4061 * tests/test-avltreehash_list.c: Likewise.
4062 * tests/test-base64.c: Likewise.
4063 * tests/test-binary-io.c: Likewise.
4064 * tests/test-bitrotate.c: Likewise.
4065 * tests/test-btowc.c: Likewise.
4066 * tests/test-byteswap.c: Likewise.
4067 * tests/test-c-ctype.c: Likewise.
4068 * tests/test-c-stack.c: Likewise.
4069 * tests/test-c-strcasecmp.c: Likewise.
4070 * tests/test-c-strcasestr.c: Likewise.
4071 * tests/test-c-strncasecmp.c: Likewise.
4072 * tests/test-c-strstr.c: Likewise.
4073 * tests/test-canonicalize-lgpl.c: Likewise.
4074 * tests/test-canonicalize.c: Likewise.
4075 * tests/test-carray_list.c: Likewise.
4076 * tests/test-ceilf1.c: Likewise.
4077 * tests/test-ceilf2.c: Likewise.
4078 * tests/test-ceill.c: Likewise.
4079 * tests/test-chown.c: Likewise.
4080 * tests/test-cloexec.c: Likewise.
4081 * tests/test-copy-acl.c: Likewise.
4082 * tests/test-copy-file.c: Likewise.
4083 * tests/test-count-one-bits.c: Likewise.
4084 * tests/test-dprintf-posix.c: Likewise.
4085 * tests/test-dup2.c: Likewise.
4086 * tests/test-dup3.c: Likewise.
4087 * tests/test-duplocale.c: Likewise.
4088 * tests/test-fbufmode.c: Likewise.
4089 * tests/test-fchdir.c: Likewise.
4090 * tests/test-fchownat.c: Likewise.
4091 * tests/test-fcntl-safer.c: Likewise.
4092 * tests/test-fcntl.c: Likewise.
4093 * tests/test-fdopendir.c: Likewise.
4094 * tests/test-fdutimensat.c: Likewise.
4095 * tests/test-fflush2.c: Likewise.
4096 * tests/test-file-has-acl.c: Likewise.
4097 * tests/test-filevercmp.c: Likewise.
4098 * tests/test-flock.c: Likewise.
4099 * tests/test-floorf1.c: Likewise.
4100 * tests/test-floorf2.c: Likewise.
4101 * tests/test-floorl.c: Likewise.
4102 * tests/test-fnmatch.c: Likewise.
4103 * tests/test-fopen.h: Likewise.
4104 * tests/test-fpending.c: Likewise.
4105 * tests/test-fprintf-posix.c: Likewise.
4106 * tests/test-fpurge.c: Likewise.
4107 * tests/test-freadable.c: Likewise.
4108 * tests/test-freadahead.c: Likewise.
4109 * tests/test-freading.c: Likewise.
4110 * tests/test-freadptr.c: Likewise.
4111 * tests/test-freadptr2.c: Likewise.
4112 * tests/test-freadseek.c: Likewise.
4113 * tests/test-freopen.c: Likewise.
4114 * tests/test-frexp.c: Likewise.
4115 * tests/test-frexpl.c: Likewise.
4116 * tests/test-fseek.c: Likewise.
4117 * tests/test-fseeko.c: Likewise.
4118 * tests/test-fstatat.c: Likewise.
4119 * tests/test-fstrcmp.c: Likewise.
4120 * tests/test-fsync.c: Likewise.
4121 * tests/test-ftell.c: Likewise.
4122 * tests/test-ftello.c: Likewise.
4123 * tests/test-func.c: Likewise.
4124 * tests/test-futimens.c: Likewise.
4125 * tests/test-fwritable.c: Likewise.
4126 * tests/test-fwriting.c: Likewise.
4127 * tests/test-getcwd.c: Likewise.
4128 * tests/test-getdate.c: Likewise.
4129 * tests/test-getdelim.c: Likewise.
4130 * tests/test-getdtablesize.c: Likewise.
4131 * tests/test-getgroups.c: Likewise.
4132 * tests/test-getline.c: Likewise.
4133 * tests/test-getndelim2.c: Likewise.
4134 * tests/test-glob.c: Likewise.
4135 * tests/test-hash.c: Likewise.
4136 * tests/test-i-ring.c: Likewise.
4137 * tests/test-iconv-utf.c: Likewise.
4138 * tests/test-iconv.c: Likewise.
4139 * tests/test-idpriv-drop.c: Likewise.
4140 * tests/test-idpriv-droptemp.c: Likewise.
4141 * tests/test-inet_ntop.c: Likewise.
4142 * tests/test-inet_pton.c: Likewise.
4143 * tests/test-isblank.c: Likewise.
4144 * tests/test-isfinite.c: Likewise.
4145 * tests/test-isinf.c: Likewise.
4146 * tests/test-isnan.c: Likewise.
4147 * tests/test-isnand.h: Likewise.
4148 * tests/test-isnanf.h: Likewise.
4149 * tests/test-isnanl.h: Likewise.
4150 * tests/test-lchown.c: Likewise.
4151 * tests/test-ldexpl.c: Likewise.
4152 * tests/test-link.c: Likewise.
4153 * tests/test-linkat.c: Likewise.
4154 * tests/test-linked_list.c: Likewise.
4155 * tests/test-linkedhash_list.c: Likewise.
4156 * tests/test-localename.c: Likewise.
4157 * tests/test-lseek.c: Likewise.
4158 * tests/test-lstat.c: Likewise.
4159 * tests/test-mbmemcasecmp.c: Likewise.
4160 * tests/test-mbmemcasecoll.c: Likewise.
4161 * tests/test-mbrtowc.c: Likewise.
4162 * tests/test-mbscasecmp.c: Likewise.
4163 * tests/test-mbscasestr1.c: Likewise.
4164 * tests/test-mbscasestr2.c: Likewise.
4165 * tests/test-mbscasestr3.c: Likewise.
4166 * tests/test-mbscasestr4.c: Likewise.
4167 * tests/test-mbschr.c: Likewise.
4168 * tests/test-mbscspn.c: Likewise.
4169 * tests/test-mbsinit.c: Likewise.
4170 * tests/test-mbsncasecmp.c: Likewise.
4171 * tests/test-mbsnrtowcs.c: Likewise.
4172 * tests/test-mbspbrk.c: Likewise.
4173 * tests/test-mbspcasecmp.c: Likewise.
4174 * tests/test-mbsrchr.c: Likewise.
4175 * tests/test-mbsrtowcs.c: Likewise.
4176 * tests/test-mbsspn.c: Likewise.
4177 * tests/test-mbsstr1.c: Likewise.
4178 * tests/test-mbsstr2.c: Likewise.
4179 * tests/test-mbsstr3.c: Likewise.
4180 * tests/test-memchr.c: Likewise.
4181 * tests/test-memchr2.c: Likewise.
4182 * tests/test-memcmp.c: Likewise.
4183 * tests/test-memmem.c: Likewise.
4184 * tests/test-memrchr.c: Likewise.
4185 * tests/test-mkdir.c: Likewise.
4186 * tests/test-mkdirat.c: Likewise.
4187 * tests/test-mkfifo.c: Likewise.
4188 * tests/test-mkfifoat.c: Likewise.
4189 * tests/test-mknod.c: Likewise.
4190 * tests/test-nanosleep.c: Likewise.
4191 * tests/test-nl_langinfo.c: Likewise.
4192 * tests/test-obstack-printf.c: Likewise.
4193 * tests/test-open.c: Likewise.
4194 * tests/test-openat.c: Likewise.
4195 * tests/test-pipe-filter-gi1.c: Likewise.
4196 * tests/test-pipe-filter-gi2-main.c: Likewise.
4197 * tests/test-pipe-filter-ii1.c: Likewise.
4198 * tests/test-pipe-filter-ii2-main.c: Likewise.
4199 * tests/test-pipe2.c: Likewise.
4200 * tests/test-popen.h: Likewise.
4201 * tests/test-posixtm.c: Likewise.
4202 * tests/test-pread.c: Likewise.
4203 * tests/test-printf-frexp.c: Likewise.
4204 * tests/test-printf-frexpl.c: Likewise.
4205 * tests/test-printf-posix.c: Likewise.
4206 * tests/test-priv-set.c: Likewise.
4207 * tests/test-quotearg.c: Likewise.
4208 * tests/test-random_r.c: Likewise.
4209 * tests/test-rawmemchr.c: Likewise.
4210 * tests/test-rbtree_list.c: Likewise.
4211 * tests/test-rbtree_oset.c: Likewise.
4212 * tests/test-rbtreehash_list.c: Likewise.
4213 * tests/test-readlink.c: Likewise.
4214 * tests/test-remove.c: Likewise.
4215 * tests/test-rename.c: Likewise.
4216 * tests/test-renameat.c: Likewise.
4217 * tests/test-rmdir.c: Likewise.
4218 * tests/test-round1.c: Likewise.
4219 * tests/test-roundf1.c: Likewise.
4220 * tests/test-roundl.c: Likewise.
4221 * tests/test-safe-alloc.c: Likewise.
4222 * tests/test-sameacls.c: Likewise.
4223 * tests/test-set-mode-acl.c: Likewise.
4224 * tests/test-setenv.c: Likewise.
4225 * tests/test-sigaction.c: Likewise.
4226 * tests/test-signbit.c: Likewise.
4227 * tests/test-sleep.c: Likewise.
4228 * tests/test-snprintf-posix.c: Likewise.
4229 * tests/test-snprintf.c: Likewise.
4230 * tests/test-sprintf-posix.c: Likewise.
4231 * tests/test-stat-time.c: Likewise.
4232 * tests/test-stat.c: Likewise.
4233 * tests/test-strcasestr.c: Likewise.
4234 * tests/test-strchrnul.c: Likewise.
4235 * tests/test-strerror.c: Likewise.
4236 * tests/test-striconv.c: Likewise.
4237 * tests/test-striconveh.c: Likewise.
4238 * tests/test-striconveha.c: Likewise.
4239 * tests/test-strsignal.c: Likewise.
4240 * tests/test-strstr.c: Likewise.
4241 * tests/test-strtod.c: Likewise.
4242 * tests/test-strverscmp.c: Likewise.
4243 * tests/test-symlink.c: Likewise.
4244 * tests/test-symlinkat.c: Likewise.
4245 * tests/test-trunc1.c: Likewise.
4246 * tests/test-trunc2.c: Likewise.
4247 * tests/test-truncf1.c: Likewise.
4248 * tests/test-truncf2.c: Likewise.
4249 * tests/test-truncl.c: Likewise.
4250 * tests/test-uname.c: Likewise.
4251 * tests/test-unlink.c: Likewise.
4252 * tests/test-unlinkat.c: Likewise.
4253 * tests/test-unsetenv.c: Likewise.
4254 * tests/test-usleep.c: Likewise.
4255 * tests/test-utimens.c: Likewise.
4256 * tests/test-utimensat.c: Likewise.
4257 * tests/test-vasnprintf-posix.c: Likewise.
4258 * tests/test-vasnprintf-posix2.c: Likewise.
4259 * tests/test-vasnprintf.c: Likewise.
4260 * tests/test-vasprintf-posix.c: Likewise.
4261 * tests/test-vasprintf.c: Likewise.
4262 * tests/test-vdprintf-posix.c: Likewise.
4263 * tests/test-vfprintf-posix.c: Likewise.
4264 * tests/test-vprintf-posix.c: Likewise.
4265 * tests/test-vsnprintf-posix.c: Likewise.
4266 * tests/test-vsnprintf.c: Likewise.
4267 * tests/test-vsprintf-posix.c: Likewise.
4268 * tests/test-wcrtomb.c: Likewise.
4269 * tests/test-wcsnrtombs.c: Likewise.
4270 * tests/test-wcsrtombs.c: Likewise.
4271 * tests/test-wctype.c: Likewise.
4272 * tests/test-wcwidth.c: Likewise.
4273 * tests/test-xfprintf-posix.c: Likewise.
4274 * tests/test-xmemdup0.c: Likewise.
4275 * tests/test-xprintf-posix.c: Likewise.
4276 * tests/test-xvasprintf.c: Likewise.
4277 * tests/unicase/test-locale-language.c: Likewise.
4278 * tests/unicase/test-mapping-part1.h: Likewise.
4279 * tests/unicase/test-predicate-part1.h: Likewise.
4280 * tests/unicase/test-u8-casecmp.c: Likewise.
4281 * tests/unicase/test-u8-casecoll.c: Likewise.
4282 * tests/unicase/test-u8-casefold.c: Likewise.
4283 * tests/unicase/test-u8-is-cased.c: Likewise.
4284 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4285 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4286 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4287 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4288 * tests/unicase/test-u8-tolower.c: Likewise.
4289 * tests/unicase/test-u8-totitle.c: Likewise.
4290 * tests/unicase/test-u8-toupper.c: Likewise.
4291 * tests/unicase/test-u16-casecmp.c: Likewise.
4292 * tests/unicase/test-u16-casecoll.c: Likewise.
4293 * tests/unicase/test-u16-casefold.c: Likewise.
4294 * tests/unicase/test-u16-is-cased.c: Likewise.
4295 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4296 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4297 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4298 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4299 * tests/unicase/test-u16-tolower.c: Likewise.
4300 * tests/unicase/test-u16-totitle.c: Likewise.
4301 * tests/unicase/test-u16-toupper.c: Likewise.
4302 * tests/unicase/test-u32-casecmp.c: Likewise.
4303 * tests/unicase/test-u32-casecoll.c: Likewise.
4304 * tests/unicase/test-u32-casefold.c: Likewise.
4305 * tests/unicase/test-u32-is-cased.c: Likewise.
4306 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4307 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4308 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4309 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4310 * tests/unicase/test-u32-tolower.c: Likewise.
4311 * tests/unicase/test-u32-totitle.c: Likewise.
4312 * tests/unicase/test-u32-toupper.c: Likewise.
4313 * tests/unicase/test-ulc-casecmp.c: Likewise.
4314 * tests/unicase/test-ulc-casecoll.c: Likewise.
4315 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4316 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4317 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4318 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4319 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4320 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4321 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4322 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4323 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4324 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4325 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4326 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4327 * tests/unictype/test-bidi_byname.c: Likewise.
4328 * tests/unictype/test-bidi_name.c: Likewise.
4329 * tests/unictype/test-bidi_of.c: Likewise.
4330 * tests/unictype/test-bidi_test.c: Likewise.
4331 * tests/unictype/test-block_list.c: Likewise.
4332 * tests/unictype/test-block_of.c: Likewise.
4333 * tests/unictype/test-block_test.c: Likewise.
4334 * tests/unictype/test-categ_and.c: Likewise.
4335 * tests/unictype/test-categ_and_not.c: Likewise.
4336 * tests/unictype/test-categ_byname.c: Likewise.
4337 * tests/unictype/test-categ_name.c: Likewise.
4338 * tests/unictype/test-categ_none.c: Likewise.
4339 * tests/unictype/test-categ_of.c: Likewise.
4340 * tests/unictype/test-categ_or.c: Likewise.
4341 * tests/unictype/test-categ_test_withtable.c: Likewise.
4342 * tests/unictype/test-combining.c: Likewise.
4343 * tests/unictype/test-decdigit.c: Likewise.
4344 * tests/unictype/test-digit.c: Likewise.
4345 * tests/unictype/test-mirror.c: Likewise.
4346 * tests/unictype/test-numeric.c: Likewise.
4347 * tests/unictype/test-pr_byname.c: Likewise.
4348 * tests/unictype/test-pr_test.c: Likewise.
4349 * tests/unictype/test-predicate-part1.h: Likewise.
4350 * tests/unictype/test-scripts.c: Likewise.
4351 * tests/unictype/test-sy_c_ident.c: Likewise.
4352 * tests/unictype/test-sy_java_ident.c: Likewise.
4353 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4354 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4355 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4356 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4357 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4358 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4359 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4360 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4361 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4362 * tests/uninorm/test-compat-decomposition.c: Likewise.
4363 * tests/uninorm/test-composition.c: Likewise.
4364 * tests/uninorm/test-decomposing-form.c: Likewise.
4365 * tests/uninorm/test-decomposition.c: Likewise.
4366 * tests/uninorm/test-u8-nfc.c: Likewise.
4367 * tests/uninorm/test-u8-nfd.c: Likewise.
4368 * tests/uninorm/test-u8-nfkc.c: Likewise.
4369 * tests/uninorm/test-u8-nfkd.c: Likewise.
4370 * tests/uninorm/test-u8-normcmp.c: Likewise.
4371 * tests/uninorm/test-u8-normcoll.c: Likewise.
4372 * tests/uninorm/test-u16-nfc.c: Likewise.
4373 * tests/uninorm/test-u16-nfd.c: Likewise.
4374 * tests/uninorm/test-u16-nfkc.c: Likewise.
4375 * tests/uninorm/test-u16-nfkd.c: Likewise.
4376 * tests/uninorm/test-u16-normcmp.c: Likewise.
4377 * tests/uninorm/test-u16-normcoll.c: Likewise.
4378 * tests/uninorm/test-u32-nfc.c: Likewise.
4379 * tests/uninorm/test-u32-nfd.c: Likewise.
4380 * tests/uninorm/test-u32-nfkc.c: Likewise.
4381 * tests/uninorm/test-u32-nfkd.c: Likewise.
4382 * tests/uninorm/test-u32-normalize-big.c: Likewise.
4383 * tests/uninorm/test-u32-normcmp.c: Likewise.
4384 * tests/uninorm/test-u32-normcoll.c: Likewise.
4385 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4386 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4387 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4388 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4389 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4390 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4391 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4392 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4393 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4394 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4395 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4396 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4397 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4398 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4399 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4400 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4401 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4402 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4403 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4404 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4405 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4406 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4407 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4408 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4409 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4410 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4411 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4412 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4413 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4414 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4415 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4416 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4417 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4418 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4419 * tests/uniwidth/test-u8-width.c: Likewise.
4420 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4421 * tests/uniwidth/test-u16-width.c: Likewise.
4422 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4423 * tests/uniwidth/test-u32-width.c: Likewise.
4424 * tests/uniwidth/test-uc_width.c: Likewise.
4425 * tests/uniwidth/test-uc_width2.c: Likewise.
4426 * modules/acl-tests (Files): Add tests/macros.h.
4427 * modules/areadlink-tests (Files): Likewise.
4428 * modules/areadlink-with-size-tests (Files): Likewise.
4429 * modules/areadlinkat-tests (Files): Likewise.
4430 * modules/areadlinkat-with-size-tests (Files): Likewise.
4431 * modules/argmatch-tests (Files): Likewise.
4432 * modules/argv-iter-tests (Files): Likewise.
4433 * modules/array-list-tests (Files): Likewise.
4434 * modules/array-mergesort-tests (Files): Likewise.
4435 * modules/array-oset-tests (Files): Likewise.
4436 * modules/avltree-list-tests (Files): Likewise.
4437 * modules/avltree-oset-tests (Files): Likewise.
4438 * modules/avltreehash-list-tests (Files): Likewise.
4439 * modules/base64-tests (Files): Likewise.
4440 * modules/binary-io-tests (Files): Likewise.
4441 * modules/bitrotate-tests (Files): Likewise.
4442 * modules/btowc-tests (Files): Likewise.
4443 * modules/byteswap-tests (Files): Likewise.
4444 * modules/c-ctype-tests (Files): Likewise.
4445 * modules/c-stack-tests (Files): Likewise.
4446 * modules/c-strcase-tests (Files): Likewise.
4447 * modules/c-strcasestr-tests (Files): Likewise.
4448 * modules/c-strstr-tests (Files): Likewise.
4449 * modules/canonicalize-lgpl-tests (Files): Likewise.
4450 * modules/canonicalize-tests (Files): Likewise.
4451 * modules/carray-list-tests (Files): Likewise.
4452 * modules/ceilf-tests (Files): Likewise.
4453 * modules/ceill-tests (Files): Likewise.
4454 * modules/chown-tests (Files): Likewise.
4455 * modules/cloexec-tests (Files): Likewise.
4456 * modules/copy-file-tests (Files): Likewise.
4457 * modules/count-one-bits-tests (Files): Likewise.
4458 * modules/dprintf-posix-tests (Files): Likewise.
4459 * modules/dup2-tests (Files): Likewise.
4460 * modules/dup3-tests (Files): Likewise.
4461 * modules/duplocale-tests (Files): Likewise.
4462 * modules/fbufmode-tests (Files): Likewise.
4463 * modules/fchdir-tests (Files): Likewise.
4464 * modules/fcntl-safer-tests (Files): Likewise.
4465 * modules/fcntl-tests (Files): Likewise.
4466 * modules/fdopendir-tests (Files): Likewise.
4467 * modules/fdutimensat-tests (Files): Likewise.
4468 * modules/fflush-tests (Files): Likewise.
4469 * modules/filevercmp-tests (Files): Likewise.
4470 * modules/flock-tests (Files): Likewise.
4471 * modules/floorf-tests (Files): Likewise.
4472 * modules/floorl-tests (Files): Likewise.
4473 * modules/fnmatch-tests (Files): Likewise.
4474 * modules/fopen-safer-tests (Files): Likewise.
4475 * modules/fopen-tests (Files): Likewise.
4476 * modules/fpending-tests (Files): Likewise.
4477 * modules/fprintf-posix-tests (Files): Likewise.
4478 * modules/fpurge-tests (Files): Likewise.
4479 * modules/freadable-tests (Files): Likewise.
4480 * modules/freadahead-tests (Files): Likewise.
4481 * modules/freading-tests (Files): Likewise.
4482 * modules/freadptr-tests (Files): Likewise.
4483 * modules/freadseek-tests (Files): Likewise.
4484 * modules/freopen-tests (Files): Likewise.
4485 * modules/frexp-nolibm-tests (Files): Likewise.
4486 * modules/frexp-tests (Files): Likewise.
4487 * modules/frexpl-nolibm-tests (Files): Likewise.
4488 * modules/frexpl-tests (Files): Likewise.
4489 * modules/fseek-tests (Files): Likewise.
4490 * modules/fseeko-tests (Files): Likewise.
4491 * modules/fstrcmp-tests (Files): Likewise.
4492 * modules/fsync-tests (Files): Likewise.
4493 * modules/ftell-tests (Files): Likewise.
4494 * modules/ftello-tests (Files): Likewise.
4495 * modules/func-tests (Files): Likewise.
4496 * modules/futimens-tests (Files): Likewise.
4497 * modules/fwritable-tests (Files): Likewise.
4498 * modules/fwriting-tests (Files): Likewise.
4499 * modules/getcwd-tests (Files): Likewise.
4500 * modules/getdate-tests (Files): Likewise.
4501 * modules/getdelim-tests (Files): Likewise.
4502 * modules/getdtablesize-tests (Files): Likewise.
4503 * modules/getgroups-tests (Files): Likewise.
4504 * modules/getline-tests (Files): Likewise.
4505 * modules/getndelim2-tests (Files): Likewise.
4506 * modules/glob-tests (Files): Likewise.
4507 * modules/hash-tests (Files): Likewise.
4508 * modules/i-ring-tests (Files): Likewise.
4509 * modules/iconv-tests (Files): Likewise.
4510 * modules/iconv_open-utf-tests (Files): Likewise.
4511 * modules/idpriv-drop-tests (Files): Likewise.
4512 * modules/idpriv-droptemp-tests (Files): Likewise.
4513 * modules/inet_ntop-tests (Files): Likewise.
4514 * modules/inet_pton-tests (Files): Likewise.
4515 * modules/isblank-tests (Files): Likewise.
4516 * modules/isfinite-tests (Files): Likewise.
4517 * modules/isinf-tests (Files): Likewise.
4518 * modules/isnan-tests (Files): Likewise.
4519 * modules/isnand-nolibm-tests (Files): Likewise.
4520 * modules/isnand-tests (Files): Likewise.
4521 * modules/isnanf-nolibm-tests (Files): Likewise.
4522 * modules/isnanf-tests (Files): Likewise.
4523 * modules/isnanl-nolibm-tests (Files): Likewise.
4524 * modules/isnanl-tests (Files): Likewise.
4525 * modules/lchown-tests (Files): Likewise.
4526 * modules/ldexpl-tests (Files): Likewise.
4527 * modules/link-tests (Files): Likewise.
4528 * modules/linkat-tests (Files): Likewise.
4529 * modules/linked-list-tests (Files): Likewise.
4530 * modules/linkedhash-list-tests (Files): Likewise.
4531 * modules/localename-tests (Files): Likewise.
4532 * modules/lseek-tests (Files): Likewise.
4533 * modules/lstat-tests (Files): Likewise.
4534 * modules/mbmemcasecmp-tests (Files): Likewise.
4535 * modules/mbmemcasecoll-tests (Files): Likewise.
4536 * modules/mbrtowc-tests (Files): Likewise.
4537 * modules/mbscasecmp-tests (Files): Likewise.
4538 * modules/mbscasestr-tests (Files): Likewise.
4539 * modules/mbschr-tests (Files): Likewise.
4540 * modules/mbscspn-tests (Files): Likewise.
4541 * modules/mbsinit-tests (Files): Likewise.
4542 * modules/mbsncasecmp-tests (Files): Likewise.
4543 * modules/mbsnrtowcs-tests (Files): Likewise.
4544 * modules/mbspbrk-tests (Files): Likewise.
4545 * modules/mbspcasecmp-tests (Files): Likewise.
4546 * modules/mbsrchr-tests (Files): Likewise.
4547 * modules/mbsrtowcs-tests (Files): Likewise.
4548 * modules/mbsspn-tests (Files): Likewise.
4549 * modules/mbsstr-tests (Files): Likewise.
4550 * modules/memchr-tests (Files): Likewise.
4551 * modules/memchr2-tests (Files): Likewise.
4552 * modules/memcmp-tests (Files): Likewise.
4553 * modules/memmem-tests (Files): Likewise.
4554 * modules/memrchr-tests (Files): Likewise.
4555 * modules/mkdir-tests (Files): Likewise.
4556 * modules/mkfifo-tests (Files): Likewise.
4557 * modules/mkfifoat-tests (Files): Likewise.
4558 * modules/mknod-tests (Files): Likewise.
4559 * modules/nanosleep-tests (Files): Likewise.
4560 * modules/nl_langinfo-tests (Files): Likewise.
4561 * modules/obstack-printf-tests (Files): Likewise.
4562 * modules/open-tests (Files): Likewise.
4563 * modules/openat-tests (Files): Likewise.
4564 * modules/pipe-filter-gi-tests (Files): Likewise.
4565 * modules/pipe-filter-ii-tests (Files): Likewise.
4566 * modules/pipe2-tests (Files): Likewise.
4567 * modules/popen-safer-tests (Files): Likewise.
4568 * modules/popen-tests (Files): Likewise.
4569 * modules/posixtm-tests (Files): Likewise.
4570 * modules/pread-tests (Files): Likewise.
4571 * modules/printf-frexp-tests (Files): Likewise.
4572 * modules/printf-frexpl-tests (Files): Likewise.
4573 * modules/printf-posix-tests (Files): Likewise.
4574 * modules/priv-set-tests (Files): Likewise.
4575 * modules/quotearg-tests (Files): Likewise.
4576 * modules/random_r-tests (Files): Likewise.
4577 * modules/rawmemchr-tests (Files): Likewise.
4578 * modules/rbtree-list-tests (Files): Likewise.
4579 * modules/rbtree-oset-tests (Files): Likewise.
4580 * modules/rbtreehash-list-tests (Files): Likewise.
4581 * modules/readlink-tests (Files): Likewise.
4582 * modules/remove-tests (Files): Likewise.
4583 * modules/rename-tests (Files): Likewise.
4584 * modules/renameat-tests (Files): Likewise.
4585 * modules/rmdir-tests (Files): Likewise.
4586 * modules/round-tests (Files): Likewise.
4587 * modules/roundf-tests (Files): Likewise.
4588 * modules/roundl-tests (Files): Likewise.
4589 * modules/safe-alloc-tests (Files): Likewise.
4590 * modules/setenv-tests (Files): Likewise.
4591 * modules/sigaction-tests (Files): Likewise.
4592 * modules/signbit-tests (Files): Likewise.
4593 * modules/sleep-tests (Files): Likewise.
4594 * modules/snprintf-posix-tests (Files): Likewise.
4595 * modules/snprintf-tests (Files): Likewise.
4596 * modules/sprintf-posix-tests (Files): Likewise.
4597 * modules/stat-tests (Files): Likewise.
4598 * modules/stat-time-tests (Files): Likewise.
4599 * modules/strcasestr-tests (Files): Likewise.
4600 * modules/strchrnul-tests (Files): Likewise.
4601 * modules/strerror-tests (Files): Likewise.
4602 * modules/striconv-tests (Files): Likewise.
4603 * modules/striconveh-tests (Files): Likewise.
4604 * modules/striconveha-tests (Files): Likewise.
4605 * modules/strsignal-tests (Files): Likewise.
4606 * modules/strstr-tests (Files): Likewise.
4607 * modules/strtod-tests (Files): Likewise.
4608 * modules/strverscmp-tests (Files): Likewise.
4609 * modules/symlink-tests (Files): Likewise.
4610 * modules/symlinkat-tests (Files): Likewise.
4611 * modules/trunc-tests (Files): Likewise.
4612 * modules/truncf-tests (Files): Likewise.
4613 * modules/truncl-tests (Files): Likewise.
4614 * modules/uname-tests (Files): Likewise.
4615 * modules/unicase/cased-tests (Files): Likewise.
4616 * modules/unicase/ignorable-tests (Files): Likewise.
4617 * modules/unicase/locale-language-tests (Files): Likewise.
4618 * modules/unicase/tolower-tests (Files): Likewise.
4619 * modules/unicase/totitle-tests (Files): Likewise.
4620 * modules/unicase/toupper-tests (Files): Likewise.
4621 * modules/unicase/u8-casecmp-tests (Files): Likewise.
4622 * modules/unicase/u8-casecoll-tests (Files): Likewise.
4623 * modules/unicase/u8-casefold-tests (Files): Likewise.
4624 * modules/unicase/u8-is-cased-tests (Files): Likewise.
4625 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4626 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4627 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4628 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4629 * modules/unicase/u8-tolower-tests (Files): Likewise.
4630 * modules/unicase/u8-totitle-tests (Files): Likewise.
4631 * modules/unicase/u8-toupper-tests (Files): Likewise.
4632 * modules/unicase/u16-casecmp-tests (Files): Likewise.
4633 * modules/unicase/u16-casecoll-tests (Files): Likewise.
4634 * modules/unicase/u16-casefold-tests (Files): Likewise.
4635 * modules/unicase/u16-is-cased-tests (Files): Likewise.
4636 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4637 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4638 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4639 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4640 * modules/unicase/u16-tolower-tests (Files): Likewise.
4641 * modules/unicase/u16-totitle-tests (Files): Likewise.
4642 * modules/unicase/u16-toupper-tests (Files): Likewise.
4643 * modules/unicase/u32-casecmp-tests (Files): Likewise.
4644 * modules/unicase/u32-casecoll-tests (Files): Likewise.
4645 * modules/unicase/u32-casefold-tests (Files): Likewise.
4646 * modules/unicase/u32-is-cased-tests (Files): Likewise.
4647 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4648 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4649 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4650 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4651 * modules/unicase/u32-tolower-tests (Files): Likewise.
4652 * modules/unicase/u32-totitle-tests (Files): Likewise.
4653 * modules/unicase/u32-toupper-tests (Files): Likewise.
4654 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4655 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4656 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4657 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4658 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4659 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4660 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4661 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4662 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4663 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4664 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4665 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4666 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4667 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4668 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4669 * modules/unictype/bidicategory-name-tests (Files): Likewise.
4670 * modules/unictype/bidicategory-of-tests (Files): Likewise.
4671 * modules/unictype/bidicategory-test-tests (Files): Likewise.
4672 * modules/unictype/block-list-tests (Files): Likewise.
4673 * modules/unictype/block-of-tests (Files): Likewise.
4674 * modules/unictype/block-test-tests (Files): Likewise.
4675 * modules/unictype/category-C-tests (Files): Likewise.
4676 * modules/unictype/category-Cc-tests (Files): Likewise.
4677 * modules/unictype/category-Cf-tests (Files): Likewise.
4678 * modules/unictype/category-Cn-tests (Files): Likewise.
4679 * modules/unictype/category-Co-tests (Files): Likewise.
4680 * modules/unictype/category-Cs-tests (Files): Likewise.
4681 * modules/unictype/category-L-tests (Files): Likewise.
4682 * modules/unictype/category-Ll-tests (Files): Likewise.
4683 * modules/unictype/category-Lm-tests (Files): Likewise.
4684 * modules/unictype/category-Lo-tests (Files): Likewise.
4685 * modules/unictype/category-Lt-tests (Files): Likewise.
4686 * modules/unictype/category-Lu-tests (Files): Likewise.
4687 * modules/unictype/category-M-tests (Files): Likewise.
4688 * modules/unictype/category-Mc-tests (Files): Likewise.
4689 * modules/unictype/category-Me-tests (Files): Likewise.
4690 * modules/unictype/category-Mn-tests (Files): Likewise.
4691 * modules/unictype/category-N-tests (Files): Likewise.
4692 * modules/unictype/category-Nd-tests (Files): Likewise.
4693 * modules/unictype/category-Nl-tests (Files): Likewise.
4694 * modules/unictype/category-No-tests (Files): Likewise.
4695 * modules/unictype/category-P-tests (Files): Likewise.
4696 * modules/unictype/category-Pc-tests (Files): Likewise.
4697 * modules/unictype/category-Pd-tests (Files): Likewise.
4698 * modules/unictype/category-Pe-tests (Files): Likewise.
4699 * modules/unictype/category-Pf-tests (Files): Likewise.
4700 * modules/unictype/category-Pi-tests (Files): Likewise.
4701 * modules/unictype/category-Po-tests (Files): Likewise.
4702 * modules/unictype/category-Ps-tests (Files): Likewise.
4703 * modules/unictype/category-S-tests (Files): Likewise.
4704 * modules/unictype/category-Sc-tests (Files): Likewise.
4705 * modules/unictype/category-Sk-tests (Files): Likewise.
4706 * modules/unictype/category-Sm-tests (Files): Likewise.
4707 * modules/unictype/category-So-tests (Files): Likewise.
4708 * modules/unictype/category-Z-tests (Files): Likewise.
4709 * modules/unictype/category-Zl-tests (Files): Likewise.
4710 * modules/unictype/category-Zp-tests (Files): Likewise.
4711 * modules/unictype/category-Zs-tests (Files): Likewise.
4712 * modules/unictype/category-and-not-tests (Files): Likewise.
4713 * modules/unictype/category-and-tests (Files): Likewise.
4714 * modules/unictype/category-byname-tests (Files): Likewise.
4715 * modules/unictype/category-name-tests (Files): Likewise.
4716 * modules/unictype/category-none-tests (Files): Likewise.
4717 * modules/unictype/category-of-tests (Files): Likewise.
4718 * modules/unictype/category-or-tests (Files): Likewise.
4719 * modules/unictype/category-test-withtable-tests (Files): Likewise.
4720 * modules/unictype/combining-class-tests (Files): Likewise.
4721 * modules/unictype/ctype-alnum-tests (Files): Likewise.
4722 * modules/unictype/ctype-alpha-tests (Files): Likewise.
4723 * modules/unictype/ctype-blank-tests (Files): Likewise.
4724 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4725 * modules/unictype/ctype-digit-tests (Files): Likewise.
4726 * modules/unictype/ctype-graph-tests (Files): Likewise.
4727 * modules/unictype/ctype-lower-tests (Files): Likewise.
4728 * modules/unictype/ctype-print-tests (Files): Likewise.
4729 * modules/unictype/ctype-punct-tests (Files): Likewise.
4730 * modules/unictype/ctype-space-tests (Files): Likewise.
4731 * modules/unictype/ctype-upper-tests (Files): Likewise.
4732 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4733 * modules/unictype/decimal-digit-tests (Files): Likewise.
4734 * modules/unictype/digit-tests (Files): Likewise.
4735 * modules/unictype/mirror-tests (Files): Likewise.
4736 * modules/unictype/numeric-tests (Files): Likewise.
4737 * modules/unictype/property-alphabetic-tests (Files): Likewise.
4738 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4739 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4740 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4742 * modules/unictype/property-bidi-block-separator-tests (Files):
4744 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4746 * modules/unictype/property-bidi-common-separator-tests (Files):
4748 * modules/unictype/property-bidi-control-tests (Files): Likewise.
4749 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4751 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4753 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4755 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4756 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4758 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4759 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4761 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4762 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4763 * modules/unictype/property-bidi-segment-separator-tests (Files):
4765 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4766 * modules/unictype/property-byname-tests (Files): Likewise.
4767 * modules/unictype/property-combining-tests (Files): Likewise.
4768 * modules/unictype/property-composite-tests (Files): Likewise.
4769 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4770 * modules/unictype/property-dash-tests (Files): Likewise.
4771 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4772 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4774 * modules/unictype/property-deprecated-tests (Files): Likewise.
4775 * modules/unictype/property-diacritic-tests (Files): Likewise.
4776 * modules/unictype/property-extender-tests (Files): Likewise.
4777 * modules/unictype/property-format-control-tests (Files): Likewise.
4778 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4779 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4780 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4781 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4782 * modules/unictype/property-hyphen-tests (Files): Likewise.
4783 * modules/unictype/property-id-continue-tests (Files): Likewise.
4784 * modules/unictype/property-id-start-tests (Files): Likewise.
4785 * modules/unictype/property-ideographic-tests (Files): Likewise.
4786 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4787 * modules/unictype/property-ids-trinary-operator-tests (Files):
4789 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4790 * modules/unictype/property-iso-control-tests (Files): Likewise.
4791 * modules/unictype/property-join-control-tests (Files): Likewise.
4792 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4793 * modules/unictype/property-line-separator-tests (Files): Likewise.
4794 * modules/unictype/property-logical-order-exception-tests (Files):
4796 * modules/unictype/property-lowercase-tests (Files): Likewise.
4797 * modules/unictype/property-math-tests (Files): Likewise.
4798 * modules/unictype/property-non-break-tests (Files): Likewise.
4799 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4800 * modules/unictype/property-numeric-tests (Files): Likewise.
4801 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4802 * modules/unictype/property-other-default-ignorable-code-point-tests
4804 * modules/unictype/property-other-grapheme-extend-tests (Files):
4806 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4807 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4808 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4809 * modules/unictype/property-other-math-tests (Files): Likewise.
4810 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4811 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4812 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4813 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4814 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4815 * modules/unictype/property-private-use-tests (Files): Likewise.
4816 * modules/unictype/property-punctuation-tests (Files): Likewise.
4817 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4818 * modules/unictype/property-radical-tests (Files): Likewise.
4819 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4820 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4821 * modules/unictype/property-space-tests (Files): Likewise.
4822 * modules/unictype/property-terminal-punctuation-tests (Files):
4824 * modules/unictype/property-test-tests (Files): Likewise.
4825 * modules/unictype/property-titlecase-tests (Files): Likewise.
4826 * modules/unictype/property-unassigned-code-value-tests (Files):
4828 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4829 * modules/unictype/property-uppercase-tests (Files): Likewise.
4830 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4831 * modules/unictype/property-white-space-tests (Files): Likewise.
4832 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4833 * modules/unictype/property-xid-start-tests (Files): Likewise.
4834 * modules/unictype/property-zero-width-tests (Files): Likewise.
4835 * modules/unictype/scripts-tests (Files): Likewise.
4836 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4837 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4838 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4839 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4840 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4841 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4842 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4843 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4844 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4845 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4846 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4847 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4848 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4849 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4850 * modules/uninorm/composition-tests (Files): Likewise.
4851 * modules/uninorm/decomposing-form-tests (Files): Likewise.
4852 * modules/uninorm/decomposition-tests (Files): Likewise.
4853 * modules/uninorm/filter-tests (Files): Likewise.
4854 * modules/uninorm/nfc-tests (Files): Likewise.
4855 * modules/uninorm/nfd-tests (Files): Likewise.
4856 * modules/uninorm/nfkc-tests (Files): Likewise.
4857 * modules/uninorm/nfkd-tests (Files): Likewise.
4858 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4859 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4860 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4861 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4862 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4863 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4864 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4865 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4866 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4867 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4868 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4869 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4870 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4871 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4872 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4873 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4874 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4875 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4876 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4877 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4878 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4879 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4880 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4881 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4882 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4883 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4884 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4885 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4886 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4887 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4888 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4889 * modules/uniwidth/u8-width-tests (Files): Likewise.
4890 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4891 * modules/uniwidth/u16-width-tests (Files): Likewise.
4892 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4893 * modules/uniwidth/u32-width-tests (Files): Likewise.
4894 * modules/uniwidth/width-tests (Files): Likewise.
4895 * modules/unlink-tests (Files): Likewise.
4896 * modules/unsetenv-tests (Files): Likewise.
4897 * modules/usleep-tests (Files): Likewise.
4898 * modules/utimens-tests (Files): Likewise.
4899 * modules/utimensat-tests (Files): Likewise.
4900 * modules/vasnprintf-posix-tests (Files): Likewise.
4901 * modules/vasnprintf-tests (Files): Likewise.
4902 * modules/vasprintf-posix-tests (Files): Likewise.
4903 * modules/vasprintf-tests (Files): Likewise.
4904 * modules/vdprintf-posix-tests (Files): Likewise.
4905 * modules/vfprintf-posix-tests (Files): Likewise.
4906 * modules/vprintf-posix-tests (Files): Likewise.
4907 * modules/vsnprintf-posix-tests (Files): Likewise.
4908 * modules/vsnprintf-tests (Files): Likewise.
4909 * modules/vsprintf-posix-tests (Files): Likewise.
4910 * modules/wcrtomb-tests (Files): Likewise.
4911 * modules/wcsnrtombs-tests (Files): Likewise.
4912 * modules/wcsrtombs-tests (Files): Likewise.
4913 * modules/wctype-tests (Files): Likewise.
4914 * modules/wcwidth-tests (Files): Likewise.
4915 * modules/xmemdup0-tests (Files): Likewise.
4916 * modules/xprintf-posix-tests (Files): Likewise.
4917 * modules/xvasprintf-tests (Files): Likewise.
4919 2009-12-24 Eric Blake <ebb9@byu.net>
4921 test-nanosleep: fix typo
4922 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4924 Reported by Bruno Haible.
4926 2009-12-24 Bruno Haible <bruno@clisp.org>
4928 Reduce namespace pollution on glibc systems.
4929 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4930 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4932 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4933 <getopt.h> on glibc systems.
4934 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4936 * lib/fcntl.c: Include <unistd.h> here instead.
4938 2009-12-24 Bruno Haible <bruno@clisp.org>
4940 * lib/stdlib.in.h (includes): Fix typo in today's commit.
4942 2009-12-24 Eric Blake <ebb9@byu.net>
4944 tests: add signature checks
4945 * tests/signature.h (SIGNATURE_CHECK): New file.
4946 * modules/atexit-tests (Files): Use it.
4947 * modules/btowc-tests (Files): Likewise.
4948 * modules/canonicalize-lgpl-tests (Files): Likewise.
4949 * modules/ceilf-tests (Files): Likewise.
4950 * modules/ceill-tests (Files): Likewise.
4951 * modules/chown-tests (Files): Likewise.
4952 * modules/dprintf-posix-tests (Files): Likewise.
4953 * modules/dup2-tests (Files): Likewise.
4954 * modules/dup3-tests (Files): Likewise.
4955 * modules/duplocale-tests (Files): Likewise.
4956 * modules/fchdir-tests (Files): Likewise.
4957 * modules/fcntl-tests (Files): Likewise.
4958 * modules/fdopendir-tests (Files): Likewise.
4959 * modules/fflush-tests (Files): Likewise.
4960 * modules/flock-tests (Files): Likewise.
4961 * modules/floorf-tests (Files): Likewise.
4962 * modules/floorl-tests (Files): Likewise.
4963 * modules/fnmatch-tests (Files): Likewise.
4964 * modules/fopen-tests (Files): Likewise.
4965 * modules/fprintf-posix-tests (Files): Likewise.
4966 * modules/freopen-tests (Files): Likewise.
4967 * modules/frexp-nolibm-tests (Files): Likewise.
4968 * modules/frexp-tests (Files): Likewise.
4969 * modules/frexpl-nolibm-tests (Files): Likewise.
4970 * modules/frexpl-tests (Files): Likewise.
4971 * modules/fseek-tests (Files): Likewise.
4972 * modules/fseeko-tests (Files): Likewise.
4973 * modules/fsync-tests (Files): Likewise.
4974 * modules/ftell-tests (Files): Likewise.
4975 * modules/ftello-tests (Files): Likewise.
4976 * modules/futimens-tests (Files): Likewise.
4977 * modules/getaddrinfo-tests (Files): Likewise.
4978 * modules/getcwd-tests (Files): Likewise.
4979 * modules/getdelim-tests (Files): Likewise.
4980 * modules/getdtablesize-tests (Files): Likewise.
4981 * modules/getgroups-tests (Files): Likewise.
4982 * modules/gethostname-tests (Files): Likewise.
4983 * modules/getline-tests (Files): Likewise.
4984 * modules/getopt-posix-tests (Files): Likewise.
4985 * modules/gettimeofday-tests (Files): Likewise.
4986 * modules/glob-tests (Files): Likewise.
4987 * modules/iconv-tests (Files): Likewise.
4988 * modules/inet_ntop-tests (Files): Likewise.
4989 * modules/inet_pton-tests (Files): Likewise.
4990 * modules/isblank-tests (Files): Likewise.
4991 * modules/lchown-tests (Files): Likewise.
4992 * modules/ldexpl-tests (Files): Likewise.
4993 * modules/link-tests (Files): Likewise.
4994 * modules/linkat-tests (Files): Likewise.
4995 * modules/lseek-tests (Files): Likewise.
4996 * modules/lstat-tests (Files): Likewise.
4997 * modules/mbrtowc-tests (Files): Likewise.
4998 * modules/mbsinit-tests (Files): Likewise.
4999 * modules/mbsnrtowcs-tests (Files): Likewise.
5000 * modules/mbsrtowcs-tests (Files): Likewise.
5001 * modules/memchr-tests (Files): Likewise.
5002 * modules/memcmp-tests (Files): Likewise.
5003 * modules/memmem-tests (Files): Likewise.
5004 * modules/memrchr-tests (Files): Likewise.
5005 * modules/mkdir-tests (Files): Likewise.
5006 * modules/mkfifo-tests (Files): Likewise.
5007 * modules/mkfifoat-tests (Files): Likewise.
5008 * modules/mknod-tests (Files): Likewise.
5009 * modules/nanosleep-tests (Files): Likewise.
5010 * modules/nl_langinfo-tests (Files): Likewise.
5011 * modules/obstack-printf-tests (Files): Likewise.
5012 * modules/open-tests (Files): Likewise.
5013 * modules/openat-tests (Files): Likewise.
5014 * modules/perror-tests (Files): Likewise.
5015 * modules/pipe2-tests (Files): Likewise.
5016 * modules/poll-tests (Files): Likewise.
5017 * modules/popen-tests (Files): Likewise.
5018 * modules/posix_spawn-tests (Files): Likewise.
5019 * modules/posix_spawnp-tests (Files): Likewise.
5020 * modules/pread-tests (Files): Likewise.
5021 * modules/printf-posix-tests (Files): Likewise.
5022 * modules/pty-tests (Files): Likewise.
5023 * modules/random_r-tests (Files): Likewise.
5024 * modules/rawmemchr-tests (Files): Likewise.
5025 * modules/readlink-tests (Files): Likewise.
5026 * modules/remove-tests (Files): Likewise.
5027 * modules/rename-tests (Files): Likewise.
5028 * modules/renameat-tests (Files): Likewise.
5029 * modules/rmdir-tests (Files): Likewise.
5030 * modules/round-tests (Files): Likewise.
5031 * modules/roundf-tests (Files): Likewise.
5032 * modules/roundl-tests (Files): Likewise.
5033 * modules/select-tests (Files): Likewise.
5034 * modules/setenv-tests (Files): Likewise.
5035 * modules/sigaction-tests (Files): Likewise.
5036 * modules/sleep-tests (Files): Likewise.
5037 * modules/snprintf-posix-tests (Files): Likewise.
5038 * modules/snprintf-tests (Files): Likewise.
5039 * modules/sprintf-posix-tests (Files): Likewise.
5040 * modules/stat-tests (Files): Likewise.
5041 * modules/strcasestr-tests (Files): Likewise.
5042 * modules/strchrnul-tests (Files): Likewise.
5043 * modules/strerror-tests (Files): Likewise.
5044 * modules/strsignal-tests (Files): Likewise.
5045 * modules/strstr-tests (Files): Likewise.
5046 * modules/strtod-tests (Files): Likewise.
5047 * modules/strverscmp-tests (Files): Likewise.
5048 * modules/symlink-tests (Files): Likewise.
5049 * modules/symlinkat-tests (Files): Likewise.
5050 * modules/times-tests (Files): Likewise.
5051 * modules/trunc-tests (Files): Likewise.
5052 * modules/truncf-tests (Files): Likewise.
5053 * modules/truncl-tests (Files): Likewise.
5054 * modules/tsearch-tests (Files): Likewise.
5055 * modules/uname-tests (Files): Likewise.
5056 * modules/unlink-tests (Files): Likewise.
5057 * modules/unsetenv-tests (Files): Likewise.
5058 * modules/usleep-tests (Files): Likewise.
5059 * modules/utimensat-tests (Files): Likewise.
5060 * modules/vasprintf-tests (Files): Likewise.
5061 * modules/vdprintf-posix-tests (Files): Likewise.
5062 * modules/vfprintf-posix-tests (Files): Likewise.
5063 * modules/vprintf-posix-tests (Files): Likewise.
5064 * modules/vsnprintf-posix-tests (Files): Likewise.
5065 * modules/vsnprintf-tests (Files): Likewise.
5066 * modules/vsprintf-posix-tests (Files): Likewise.
5067 * modules/wcrtomb-tests (Files): Likewise.
5068 * modules/wcsnrtombs-tests (Files): Likewise.
5069 * modules/wcsrtombs-tests (Files): Likewise.
5070 * modules/wcwidth-tests (Files): Likewise.
5071 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5072 * tests/test-isinf.c (isinf): Likewise.
5073 * tests/test-isnan.c (isnan): Likewise.
5074 * tests/test-signbit.c (signbit): Likewise.
5075 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5076 declaration, either as macro or with correct signature.
5077 (select): Ensure function under test is declared with correct
5078 signature in correct header.
5079 * tests/test-atexit.c (atexit): Likewise.
5080 * tests/test-btowc.c (btowc): Likewise.
5081 * tests/test-canonicalize-lgpl.c (realpath)
5082 (canonicalize_file_name): Likewise.
5083 * tests/test-ceilf1.c (ceilf): Likewise.
5084 * tests/test-ceill.c (ceill): Likewise.
5085 * tests/test-chown.c (chown): Likewise.
5086 * tests/test-dprintf-posix.c (dprintf): Likewise.
5087 * tests/test-dup2.c (dup2): Likewise.
5088 * tests/test-dup3.c (dup3): Likewise.
5089 * tests/test-duplocale.c (duplocale): Likewise.
5090 * tests/test-fchdir.c (fchdir): Likewise.
5091 * tests/test-fchownat.c (fchownat): Likewise.
5092 * tests/test-fcntl.c (fcntl): Likewise.
5093 * tests/test-fdopendir.c (fdopendir): Likewise.
5094 * tests/test-fflush.c (fflush): Likewise.
5095 * tests/test-flock.c (flock): Likewise.
5096 * tests/test-floorf1.c (floorf): Likewise.
5097 * tests/test-floorl.c (floorl): Likewise.
5098 * tests/test-fnmatch.c (fnmatch): Likewise.
5099 * tests/test-fopen.c (fopen): Likewise.
5100 * tests/test-fprintf-posix.c (fprintf): Likewise.
5101 * tests/test-freopen.c (freopen): Likewise.
5102 * tests/test-frexp.c (frexp): Likewise.
5103 * tests/test-frexpl.c (frexpl): Likewise.
5104 * tests/test-fseek.c (fseek): Likewise.
5105 * tests/test-fseeko.c (fseeko): Likewise.
5106 * tests/test-fstatat.c (fstatat): Likewise.
5107 * tests/test-fsync.c (fsync): Likewise.
5108 * tests/test-ftell.c (ftell): Likewise.
5109 * tests/test-ftello.c (ftello): Likewise.
5110 * tests/test-futimens.c (futimens): Likewise.
5111 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5112 (gai_strerror): Likewise.
5113 * tests/test-getcwd.c (getcwd): Likewise.
5114 * tests/test-getdelim.c (getdelim): Likewise.
5115 * tests/test-getdtablesize.c (getdtablesize): Likewise.
5116 * tests/test-getgroups.c (getgroups): Likewise.
5117 * tests/test-gethostname.c (gethostname): Likewise.
5118 * tests/test-getline.c (getline): Likewise.
5119 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5121 * tests/test-gettimeofday.c (gettimeofday): Likewise.
5122 * tests/test-glob.c (glob, globfree): Likewise.
5123 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5124 * tests/test-inet_ntop.c (inet_ntop): Likewise.
5125 * tests/test-inet_pton.c (inet_pton): Likewise.
5126 * tests/test-isblank.c (isblank): Likewise.
5127 * tests/test-lchown.c (lchown): Likewise.
5128 * tests/test-ldexpl.c (ldexpl): Likewise.
5129 * tests/test-link.c (link): Likewise.
5130 * tests/test-linkat.c (linkat): Likewise.
5131 * tests/test-lseek.c (lseek): Likewise.
5132 * tests/test-lstat.c (lstat): Likewise.
5133 * tests/test-mbrtowc.c (mbrtowc): Likewise.
5134 * tests/test-mbsinit.c (mbsinit): Likewise.
5135 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5136 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5137 * tests/test-memchr.c (memchr): Likewise.
5138 * tests/test-memcmp.c (memcmp): Likewise.
5139 * tests/test-memmem.c (memmem): Likewise.
5140 * tests/test-memrchr.c (memrchr): Likewise.
5141 * tests/test-mkdir.c (mkdir): Likewise.
5142 * tests/test-mkdirat.c (mkdirat): Likewise.
5143 * tests/test-mkfifo.c (mkfifo): Likewise.
5144 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5145 * tests/test-mknod.c (mknod): Likewise.
5146 * tests/test-nanosleep.c (nanosleep): Likewise.
5147 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5148 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5150 * tests/test-open.c (open): Likewise.
5151 * tests/test-openat.c (openat): Likewise.
5152 * tests/test-perror.c (perror): Likewise.
5153 * tests/test-pipe2.c (pipe2): Likewise.
5154 * tests/test-poll.c (poll): Likewise.
5155 * tests/test-popen.c (popen, pclose): Likewise.
5156 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5157 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5158 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5159 (posix_spawn_file_actions_destroy)
5160 (posix_spawn_file_actions_addclose)
5161 (posix_spawn_file_actions_addopen)
5162 (posix_spawn_file_actions_adddup2): Likewise.
5163 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5164 * tests/test-pread.c (pread): Likewise.
5165 * tests/test-printf-posix.c (printf): Likewise.
5166 * tests/test-pty.c (openpty, forkpty): Likewise.
5167 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5168 (random_r): Likewise.
5169 * tests/test-rawmemchr.c (rawmemchr): Likewise.
5170 * tests/test-readlink.c (readlink): Likewise.
5171 * tests/test-remove.c (remove): Likewise.
5172 * tests/test-rename.c (rename): Likewise.
5173 * tests/test-renameat.c (renameat): Likewise.
5174 * tests/test-rmdir.c (rmdir): Likewise.
5175 * tests/test-round1.c (round): Likewise.
5176 * tests/test-roundf1.c (roundf): Likewise.
5177 * tests/test-roundl.c (roundl): Likewise.
5178 * tests/test-setenv.c (setenv): Likewise.
5179 * tests/test-sigaction.c (sigaction): Likewise.
5180 * tests/test-sleep.c (sleep): Likewise.
5181 * tests/test-snprintf.c (snprintf): Likewise.
5182 * tests/test-sprintf-posix.c (sprintf): Likewise.
5183 * tests/test-stat.c (stat): Likewise.
5184 * tests/test-stpncpy.c (stpncpy): Likewise.
5185 * tests/test-strcasestr.c (strcasestr): Likewise.
5186 * tests/test-strchrnul.c (strchrnul): Likewise.
5187 * tests/test-strerror.c (strerror): Likewise.
5188 * tests/test-strsignal.c (strsignal): Likewise.
5189 * tests/test-strstr.c (strstr): Likewise.
5190 * tests/test-strtod.c (strtod): Likewise.
5191 * tests/test-strverscmp.c (strverscmp): Likewise.
5192 * tests/test-symlink.c (symlink): Likewise.
5193 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5194 * tests/test-times.c (times): Likewise.
5195 * tests/test-trunc1.c (trunc): Likewise.
5196 * tests/test-truncf1.c (truncf): Likewise.
5197 * tests/test-truncl.c (truncl): Likewise.
5198 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5200 * tests/test-uname.c (uname): Likewise.
5201 * tests/test-unlink.c (unlink): Likewise.
5202 * tests/test-unlinkat.c (unlinkat): Likewise.
5203 * tests/test-unsetenv.c (unsetenv): Likewise.
5204 * tests/test-usleep.c (usleep): Likewise.
5205 * tests/test-utimensat.c (utimensat): Likewise.
5206 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5207 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5208 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5209 * tests/test-vprintf-posix.c (vprintf): Likewise.
5210 * tests/test-vsnprintf.c (vsnprintf): Likewise.
5211 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5212 * tests/test-wcrtomb.c (wcrtomb): Likewise.
5213 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5214 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5215 * tests/test-wcwidth.c (wcwidth): Likewise.
5217 build: pull in conditional headers during GNULIB_POSIXCHECK
5218 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5219 definitions from any conditionally-included headers.
5220 * lib/stdlib.in.h (includes): Likewise.
5221 * lib/unistd.in.h (includes): Likewise.
5223 2009-12-24 Bruno Haible <bruno@clisp.org>
5225 * tests/test-argv-iter.c: Include header file being tested immediately
5227 * tests/test-base64.c: Likewise.
5228 * tests/test-flock.c: Likewise.
5229 * tests/test-fsync.c: Likewise.
5230 * tests/test-getdate.c: Likewise.
5231 * tests/test-getndelim2.c: Likewise.
5232 * tests/test-isfinite.c: Likewise.
5233 * tests/test-isinf.c: Likewise.
5234 * tests/test-strerror.c: Likewise.
5235 * tests/test-strsignal.c: Likewise.
5237 2009-12-23 Eric Blake <ebb9@byu.net>
5239 unistd: work around cygwin bug
5240 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5241 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5242 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5244 2009-12-23 Bruno Haible <bruno@clisp.org>
5246 localename: More tests.
5247 * tests/test-localename.c (SIZEOF): New macro.
5248 (categories): New variable.
5249 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5250 test_locale_name_default): Add test w.r.t. thread locale.
5251 (test_locale_name_thread): New function.
5254 localename: Make aware of thread locale.
5255 * lib/localename.h (gl_locale_name_thread): New declaration.
5256 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5257 behaviour with respect to thread locale.
5258 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5259 <langinfo.h>, glthread/lock.h.
5260 (SIZE_BITS): New macro.
5261 (string_hash): New function.
5262 (struct hash_node): New type.
5263 (HASH_TABLE_SIZE): New macro.
5264 (struniq_hash_table, struniq_lock): New variables.
5265 (struniq): New function.
5266 (gl_locale_name_thread): New function.
5267 (gl_locale_name): Invoke it.
5268 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5269 * modules/localename (Depends-on): Add lock.
5270 Reported by Mike Gran <spk121@yahoo.com>.
5272 2009-12-23 Eric Blake <ebb9@byu.net>
5275 * modules/va-args: New file.
5276 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5277 * MODULES.html.sh (Core language properties): Mention it.
5279 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5280 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5281 named alias for __attribute__((__unused__)).
5282 * lib/chown.c: Update client.
5283 * lib/fchmodat.c: Likewise.
5284 * lib/fts.c: Likewise.
5285 * lib/getdate.y: Likewise.
5286 * lib/getgroups.c: Likewise.
5287 * lib/getopt.c: Likewise.
5288 * lib/getugroups.c: Likewise.
5289 * lib/mkdir.c: Likewise.
5290 * lib/mkfifo.c: Likewise.
5291 * lib/mkfifoat.c: Likewise.
5292 * lib/mknod.c: Likewise.
5293 * lib/mknodat.c: Likewise.
5294 * lib/readlink.c: Likewise.
5295 * lib/se-context.in.h: Likewise.
5296 * lib/se-selinux.in.h: Likewise.
5297 * lib/sockets.c: Likewise.
5298 * lib/symlink.c: Likewise.
5299 * lib/symlinkat.c: Likewise.
5300 * lib/unicodeio.c: Likewise.
5301 * lib/unistr.h: Likewise.
5302 * tests/test-areadlink.c: Likewise.
5303 * tests/test-areadlinkat.c: Likewise.
5304 * tests/test-filenamecat.c: Likewise.
5305 * tests/test-fseeko.c: Likewise.
5306 * tests/test-ftello.c: Likewise.
5307 * tests/test-getdate.c: Likewise.
5308 * tests/test-getgroups.c: Likewise.
5309 * tests/test-gethostname.c: Likewise.
5310 * tests/test-quotearg.c: Likewise.
5311 * tests/test-version-etc.c: Likewise.
5312 * tests/test-xalloc-die.c: Likewise.
5313 * tests/test-xfprintf-posix.c: Likewise.
5314 * tests/test-xprintf-posix.c: Likewise.
5315 * tests/test-xvasprintf.c: Likewise.
5317 tests: avoid compiler warnings
5318 * tests/test-fcntl.c (main): Delete unused parameters.
5319 * tests/test-freopen-safer.c (main): Likewise.
5320 * tests/test-xalloc-die.c (main): Mark unused parameters.
5321 * tests/test-fseeko.c (main): Likewise.
5322 * tests/test-ftello.c (main): Likewise.
5323 * tests/test-nanosleep.c (main): Avoid declaration warning.
5324 * tests/test-sleep.c (main): Likewise.
5325 * tests/test-unsetenv.c (main): Silence warning about string
5327 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5329 2009-12-23 Bruno Haible <bruno@clisp.org>
5331 * tests/test-localename.c (test_locale_name): New function, extracted
5332 from main. Also test mixed situations.
5333 (test_locale_name_posix, test_locale_name_environ,
5334 test_locale_name_default): New functions.
5335 (main): Invoke them all.
5336 * modules/localename-tests (configure.ac): Test for newlocale.
5338 2009-12-23 Bruno Haible <bruno@clisp.org>
5340 unistd: Ensure getcwd gets declared before being overridden.
5341 * lib/unistd.in.h: Conditionally include <io.h>.
5343 2009-12-22 Bruno Haible <bruno@clisp.org>
5345 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5346 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5347 (gl_WCHAR_H): Invoke it.
5348 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5349 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5350 Reported by Karl Berry <karl@freefriends.org>.
5352 2009-12-22 Eric Blake <ebb9@byu.net>
5354 math, unistd: avoid redundant includes
5355 * lib/math.in.h (isnan): No need to re-include <math.h>.
5356 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5358 getsubopt: work around cygwin bug
5359 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5360 avoid conflicting with system getsubopt.
5361 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5364 getopt: synchronize from glibc
5365 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5366 parameter order. Adjust all callers.
5367 (_getopt_internal_r, main): Adjust quoting in error messages.
5368 Drop considerations for outdated POSIX 1003.2 error message.
5369 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5371 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5373 test-getopt: test stderr behavior
5374 * modules/getopt-posix-tests (Depends-on): Add dup2.
5375 * tests/test-getopt.c (ASSERT): Avoid stderr.
5376 (main): Move stderr to a temporary file.
5377 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5378 Instead, add parameter to inform caller if output occurred.
5379 (test_getopt): Adjust all existing tests to expect silence, and
5380 add new tests of leading ":".
5381 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5382 glibc shortcomings with leading "-:" or "+:" in optstring.
5383 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5385 * doc/posix-functions/getopt.texi (getopt): Likewise.
5387 test-getopt: enhance test
5388 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5390 * tests/test-getopt.c (OPTIND_MIN): Move...
5391 * tests/test-getopt.h (OPTIND_MIN): ...here.
5392 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5393 Require that optind=0 works, since modern BSD supports it in
5394 addition to optreset, and since coreutils expects it.
5395 (test_getopt_long_only): New test.
5396 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5397 glibc shortcomings with 'W;', and enforcement of optind=0.
5398 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5401 2009-12-21 Bruno Haible <bruno@clisp.org>
5403 localename: Improvements for MacOS X and Cygwin.
5404 * lib/localename.h (gl_locale_name_environ): New declaration.
5405 * lib/localename.c (gl_locale_name_environ): New function, extracted from
5406 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5407 (gl_locale_name_posix): Invoke it.
5408 (gl_locale_name_default): Add comments. Use Windows native API also on
5411 2009-12-21 Bruno Haible <bruno@clisp.org>
5413 Update list of Win32 locale ids.
5414 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5415 (LANG_SAMI): Renamed from LANG_SAAMI.
5416 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5417 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5418 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5419 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5420 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5421 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5422 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5423 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5424 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5425 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5426 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5427 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5428 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5429 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5430 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5431 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5432 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5433 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5434 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5435 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5436 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5437 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5438 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5439 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5440 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5441 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5442 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5443 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5444 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5445 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5446 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5447 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5448 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5449 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5450 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5451 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5452 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5453 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5454 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5455 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5456 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5457 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5458 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5459 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5460 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5461 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5462 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5463 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5464 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5465 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5466 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5467 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5468 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5469 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5470 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5471 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5472 Add more languages and countries for Sami, Sorbian. Add more countries
5473 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5474 for Pashto. Change country for Syriac, Tswana.
5476 2009-12-21 Eric Blake <ebb9@byu.net>
5478 test-utimens: avoid spurious failure
5479 * tests/test-chown.h (nap): Factor...
5480 * tests/nap.h: ...into new file.
5481 * tests/test-lchown.h (nap): Avoid duplication.
5482 * tests/test-utimens-common.h (nap): Use shared implementation,
5483 necessary on file systems with 1-second resolution.
5484 * modules/chown-tests (Files): Include new file.
5485 * modules/fdutimensat-tests (Files): Likewise.
5486 * modules/futimens-tests (Files): Likewise.
5487 * modules/lchown-tests (Files): Likewise.
5488 * modules/openat-tests (Files): Likewise.
5489 * modules/utimens-tests (Files): Likewise.
5490 * modules/utimensat-tests (Files): Likewise.
5492 2009-12-19 Eric Blake <ebb9@byu.net>
5494 futimens, utimensat: work around Linux bug
5495 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5496 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5497 * lib/utimensat.c (rpl_utimensat): Work around it.
5498 * lib/futimens.c (rpl_futimens): Adjust comment.
5500 utimens: work around Linux ctime bug
5501 * lib/utimens.c (detect_ctime_bug): New helper function.
5502 (update_timespec): Differentiate between workaround needed for
5503 this bug vs. what is needed for systems that lack utimensat.
5504 (fdutimens, lutimens): Work around bug.
5506 utimens: check for ctime update
5507 * tests/test-utimens-common.h (check_ctime): Define.
5508 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5509 * tests/test-futimens.h (test_futimens): Likewise.
5510 * tests/test-lutimens.h (test_lutimens): Likewise.
5511 * doc/posix-functions/futimens.texi (futimens): Document the bug.
5512 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5514 2009-12-19 Bruno Haible <bruno@clisp.org>
5516 dprintf-posix: Check against memory leak fixed on 2009-12-15.
5517 * tests/test-dprintf-posix2.sh: New file.
5518 * tests/test-dprintf-posix2.c: New file.
5519 * modules/dprintf-posix-tests (Files): Add them.
5520 (configure.ac): Check for getrlimit and setrlimit.
5521 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5523 2009-12-19 Bruno Haible <bruno@clisp.org>
5525 fprintf-posix: Check against memory leak fixed on 2009-12-15.
5526 * tests/test-fprintf-posix3.sh: New file.
5527 * tests/test-fprintf-posix3.c: New file.
5528 * modules/fprintf-posix-tests (Files): Add them.
5529 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5531 2009-12-19 Eric Blake <ebb9@byu.net>
5533 dirfd: fix prototype
5534 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5535 * lib/dirfd.c (dirfd): Likewise.
5537 canonicalize: reduce memory usage
5538 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5540 Reported by Solar Designer <solar@openwall.com>.
5542 2009-12-19 Bruno Haible <bruno@clisp.org>
5544 New module attribute 'Applicability'.
5545 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5546 * gnulib-tool: New option --extract-applicability.
5547 (func_usage): Document it.
5548 (sed_extract_prog): Recognize it.
5549 (func_get_applicability): New function.
5550 (func_import): Generalize handling of 'link-warning' module.
5551 * modules/link-warning (Applicability): New section.
5552 * modules/arg-nonnull (Applicability): New section.
5553 Repoted by Simon Josefsson <simon@josefsson.org>.
5555 2009-12-19 Bruno Haible <bruno@clisp.org>
5558 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5559 * lib/fseeko.c (rpl_fseeko): Likewise.
5561 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
5563 * lib/gl_list.h: Fix typo in comment.
5565 2009-12-16 Eric Blake <ebb9@byu.net>
5567 fcntl: use to simplify other modules
5568 * modules/cloexec (Depends-on): Add fcntl.
5569 * modules/fchdir (Depends-on): Likewise.
5570 * modules/fd-safer-flag (Depends-on): Likewise.
5571 * modules/unistd-safer (Depends-on): Likewise.
5572 * modules/dup3 (configure.ac): Set module indicator.
5573 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5575 * lib/fchdir.c (_gl_register_dup): Fix comment.
5576 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5577 * lib/dup-safer.c (dup_safer): Likewise.
5578 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5579 * lib/dup3.c (dup3): Likewise.
5580 * tests/test-fchdir.c (main): Enhance test.
5581 Fixes a dup_cloexec bug reported by Ondřej Vašík.
5583 fcntl: port portions of fcntl to mingw
5584 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5585 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5586 replacement for mingw.
5587 * modules/fcntl (Description): Update.
5588 (Depends-on): Add dup2.
5589 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5590 * modules/fcntl-h (Makefile.am): Substitute it.
5591 * lib/fcntl.in.h (fcntl): Update declaration.
5592 (F_DUPFD, F_GETFD): New macros, when needed.
5593 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5594 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5595 * tests/test-fcntl.c (check_flags, main): Enhance test for items
5598 fcntl: work around cygwin bug in F_DUPFD
5599 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5600 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
5601 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5602 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5603 * doc/posix-functions/fcntl.texi (fcntl): Document it.
5605 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5606 * modules/fcntl (Files): List new files.
5607 (configure.ac): Run a test.
5608 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5609 * lib/fcntl.c (rpl_fcntl): Likewise.
5610 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5611 (gl_FCNTL_H): Always replace fcntl.h.
5612 * modules/fcntl-h (Makefile.am): Substitute witnesses.
5613 * lib/fcntl.in.h (fcntl): Declare replacement.
5614 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5615 needed, plus a witness.
5616 * doc/posix-functions/fcntl.texi (fcntl): Document this.
5617 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5618 * tests/test-fcntl.c: New file.
5619 * modules/fcntl-tests: Likewise.
5621 binary-io: avoid potential compilation warning
5622 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5625 fflush: avoid compilation error on NetBSD
5626 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5627 between off_t and fpos_t, since the latter is sometimes a struct.
5628 * lib/fseeko.c (rpl_fseeko): Likewise.
5629 Reported by Alexander Nasonov <alnsn@yandex.ru>.
5631 2009-12-15 Eric Blake <ebb9@byu.net>
5633 fcntl-h, stdio, sys_ioctl: fix declarations
5634 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5635 function must not take arguments.
5636 * lib/sys_ioctl.in.h (ioctl): Likewise.
5637 * lib/fcntl.in.h (openat): Likewise. Declare extern.
5638 (open): Add a link warning.
5640 2009-12-15 Jim Meyering <meyering@redhat.com>
5642 areadlink, areadlink-with-size: relax license to LGPLv2+
5643 * modules/areadlink (License): Relax to LGPLv2+.
5644 * modules/areadlink-with-size (License): Likewise.
5646 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
5647 Bruno Haible <bruno@clisp.org>
5649 *printf: Fix memory leak.
5650 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5651 * lib/vfprintf.c (vfprintf): Likewise.
5652 * lib/dprintf.c (dprintf): Likewise.
5653 * lib/vdprintf.c (vdprintf): Likewise.
5655 2009-12-14 Eric Blake <ebb9@byu.net>
5657 accept4: adjust module dependencies
5658 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5660 utimens: one more try at avoiding compiler warning
5661 * lib/utimens.c (lutimens): Lower scope of result.
5663 2009-12-13 Bruno Haible <bruno@clisp.org>
5665 Move the malloc checking from module 'list' to new module 'xlist'.
5666 * modules/xlist: New file.
5667 * lib/gl_xlist.h: New file.
5668 * lib/gl_xlist.c: New file.
5669 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5670 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5671 gl_list_add_last, gl_list_add_before, gl_list_add_after,
5672 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5673 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5674 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5675 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5676 gl_sortedlist_nx_add): New declarations.
5677 (struct gl_list_implementation): Rename and change methods accordingly.
5678 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5679 (gl_list_nx_create): Renamed from gl_list_create.
5680 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5681 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5682 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5683 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5684 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5685 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5686 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5687 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5688 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5689 gl_list_create_empty.
5690 (gl_list_nx_create): Renamed from gl_list_create.
5691 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5692 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5693 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5694 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5695 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5696 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5697 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5698 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5699 * lib/gl_array_list.c: Don't include xalloc.h.
5700 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5701 NULL upon out-of-memory.
5702 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5704 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5705 Change return type to 'int'.
5706 (gl_array_nx_set_at): Renamed from gl_array_set_at.
5707 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5708 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5710 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5712 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5714 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5716 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5718 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5720 (gl_array_list_implementation): Update.
5721 * lib/gl_carray_list.c: Don't include xalloc.h.
5722 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5723 Return NULL upon out-of-memory.
5724 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5726 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5727 Change return type to 'int'.
5728 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5729 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5730 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5732 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5734 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5736 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5737 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5738 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5740 (gl_carray_list_implementation): Update.
5741 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5742 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5743 gl_linked_create_empty. Return NULL upon out-of-memory.
5744 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5746 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5747 Change return type to 'int'. Return -1 upon out-of-memory.
5748 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5750 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5752 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5754 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5755 NULL upon out-of-memory.
5756 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5758 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5760 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5762 * lib/gl_linked_list.c: Don't include xalloc.h.
5763 (gl_linked_list_implementation): Update.
5764 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5765 (add_to_bucket): Change return type to 'int'.
5766 (gl_linkedhash_list_implementation): Update.
5767 * lib/gl_anytree_list1.h (free_subtree): New function.
5768 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5769 gl_tree_create_empty. Return NULL upon out-of-memory.
5770 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5771 Change return type to 'int'. Return -1 upon out-of-memory.
5772 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5774 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5775 (gl_tree_remove_node): New function, moved here from
5776 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5777 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5779 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5780 malloc, not xmalloc. Return NULL upon out-of-memory.
5781 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5783 (gl_tree_remove_node_from_tree): New function, extracted from
5784 gl_tree_remove_node.
5785 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5787 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5789 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5791 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5793 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5794 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5795 not xmalloc. Return NULL upon out-of-memory.
5796 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5798 (gl_tree_remove_node_from_tree): New function, extracted from
5799 gl_tree_remove_node.
5800 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5802 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5804 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5806 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5808 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5809 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5810 gl_anytree_list1.h before gl_anyavltree_list2.h.
5811 (gl_avltree_list_implementation): Update.
5812 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5813 gl_anytree_list1.h before gl_anyavltree_list2.h.
5814 (gl_rbtree_list_implementation): Update.
5815 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5816 Change return type to 'int'. Return -1 upon out-of-memory. Use
5818 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5819 (gl_avltreehash_list_implementation): Update.
5820 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5821 (gl_rbtreehash_list_implementation): Update.
5822 * modules/array-list (Depends-on): Remove xalloc.
5823 * modules/carray-list (Depends-on): Likewise.
5824 * modules/linked-list (Depends-on): Likewise.
5825 * modules/linkedhash-list (Depends-on): Likewise.
5826 * modules/avltree-list (Depends-on): Likewise.
5827 * modules/rbtree-list (Depends-on): Likewise.
5828 * modules/avltreehash-list (Depends-on): Likewise.
5829 * modules/rbtreehash-list (Depends-on): Likewise.
5831 * modules/xsublist: New file.
5832 * lib/gl_xsublist.h: New file.
5833 * lib/gl_xsublist.c: New file.
5834 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5835 (gl_sublist_nx_create): New declaration.
5836 * lib/gl_sublist.c: Don't include xalloc.h.
5837 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5838 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5839 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5840 Change return type to 'int'. Return -1 upon out-of-memory.
5841 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5843 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5844 NULL upon out-of-memory.
5845 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5847 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5848 NULL upon out-of-memory.
5849 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5850 NULL upon out-of-memory.
5851 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5853 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5854 (gl_sublist_list_implementation): Update.
5855 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5857 * modules/sublist (Depends-on): Remove xalloc.
5859 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5860 * tests/test-carray_list.c: Likewise.
5861 * tests/test-linked_list.c: Likewise.
5862 * tests/test-linkedhash_list.c: Likewise.
5863 * tests/test-avltree_list.c: Likewise.
5864 * tests/test-rbtree_list.c: Likewise.
5865 * tests/test-avltreehash_list.c: Likewise.
5866 * tests/test-rbtreehash_list.c: Likewise.
5867 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5868 * modules/carray-list-tests (Makefile.am): Likewise.
5869 * modules/linked-list-tests (Makefile.am): Likewise.
5870 * modules/linkedhash-list-tests (Makefile.am): Likewise.
5871 * modules/avltree-list-tests (Makefile.am): Likewise.
5872 * modules/rbtree-list-tests (Makefile.am): Likewise.
5873 * modules/avltreehash-list-tests (Makefile.am): Likewise.
5874 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5876 * NEWS: Mention the changes.
5878 * lib/clean-temp.c: Include gl_xlist.h.
5879 * modules/clean-temp (Depends-on): Add xlist.
5881 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5882 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5884 * tests/test-array_oset.c: Include gl_xlist.h.
5885 * modules/array-oset-tests (Depends-on): Add xlist.
5887 Reported by José E. Marchesi <jemarch@gnu.org>.
5889 2009-12-13 Bruno Haible <bruno@clisp.org>
5891 Move the malloc checking from module 'oset' to new module 'xoset'.
5892 * modules/xoset: New file.
5893 * lib/gl_xoset.h: New file.
5894 * lib/gl_xoset.c: New file.
5895 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5897 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5898 (struct gl_oset_implementation): Rename and change methods accordingly.
5899 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5900 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5901 'int'. Mark as __warn_unused_result__.
5902 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5903 gl_oset_create_empty.
5904 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5906 * lib/gl_array_oset.c: Don't include xalloc.h.
5907 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5908 malloc, not xmalloc.
5909 (grow): Change return type to 'int'. Don't call xalloc_die.
5910 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5912 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5914 (gl_array_oset_implementation): Update.
5915 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5916 gl_tree_create_empty.
5917 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5919 * lib/gl_avltree_oset.c: Don't include xalloc.h.
5920 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5922 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5924 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5926 (gl_avltree_oset_implementation): Update.
5927 * lib/gl_rbtree_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_rbtree_oset_implementation): Update.
5935 * modules/array-oset (Depends-on): Remove xalloc.
5936 * modules/avltree-oset (Depends-on): Likewise.
5937 * modules/rbtree-oset (Depends-on): Likewise.
5938 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5939 * tests/test-avltree_oset.c: Likewise.
5940 * tests/test-rbtree_oset.c: Likewise.
5941 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5942 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5943 * modules/rbtree-oset-tests (Makefile.am): Likewise.
5944 * NEWS: Mention the change.
5946 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
5948 maint.mk: allow a project to override release-prep commands
5949 * top/maint.mk (alpha, beta, stable): Move release-preparatory
5950 commands into a new rule.
5951 (release-prep): New rule.
5952 (release-prep-hook): New overridable variable.
5954 2009-12-13 Bruno Haible <bruno@clisp.org>
5956 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5958 2009-12-13 Jim Meyering <meyering@redhat.com>
5960 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5961 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5963 2009-12-12 Bruno Haible <bruno@clisp.org>
5966 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5968 2009-12-12 Karl Berry <karl@gnu.org>
5970 * config/srclist.txt (strtoll.c): tab changes, no more sync.
5972 2009-12-12 Bruno Haible <bruno@clisp.org>
5974 * m4/po.m4: Undo incorrect untabification.
5976 2009-12-12 Bruno Haible <bruno@clisp.org>
5978 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5979 * modules/c-strtod (Depends-on): Add locale.
5980 * modules/c-strtold (Depends-on): Likewise.
5982 2009-12-12 Bruno Haible <bruno@clisp.org>
5984 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5986 2009-12-11 Eric Blake <ebb9@byu.net>
5988 setenv: relax requirement in light of POSIX ruling
5989 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5991 * tests/test-setenv.c (main): Relax test.
5992 * tests/test-unsetenv.c (main): Likewise.
5993 * doc/posix-functions/setenv.texi (setenv): Document this.
5994 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5996 2009-12-11 Bruno Haible <bruno@clisp.org>
5998 New module 'fd-safer-flag'.
5999 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6000 * lib/dup-safer.c (dup_safer_flag): Remove function.
6001 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6002 * lib/fd-safer.c (fd_safer_flag): Remove function.
6003 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6004 * modules/cloexec (configure.ac): Drop indicator macro.
6005 * modules/fd-safer-flag: New file.
6006 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6007 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6008 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6010 2009-12-11 Bruno Haible <bruno@clisp.org>
6012 Tests for module 'nl_langinfo'.
6013 * modules/nl_langinfo-tests: New file.
6014 * tests/test-nl_langinfo.sh: New file.
6015 * tests/test-nl_langinfo.c: New file.
6017 New module 'nl_langinfo'.
6018 * lib/nl_langinfo.c: New file.
6019 * m4/nl_langinfo.m4: New file.
6020 * modules/nl_langinfo: New file.
6021 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6023 2009-12-11 Bruno Haible <bruno@clisp.org>
6025 Tests for module 'langinfo'.
6026 * modules/langinfo-tests: New file.
6027 * tests/test-langinfo.c: New file.
6029 New module 'langinfo'.
6030 * lib/langinfo.in.h: New file.
6031 * m4/langinfo_h.m4: New file.
6032 * modules/langinfo: New file.
6033 * doc/posix-headers/langinfo.texi: Mention the new module.
6035 2009-12-11 Bruno Haible <bruno@clisp.org>
6037 * lib/config.charset: Untabify.
6039 2009-12-11 Bruno Haible <bruno@clisp.org>
6041 * modules/unistd-safer (configure.ac): Drop indicator macro.
6043 2009-12-11 Bruno Haible <bruno@clisp.org>
6045 Move pipe2-safer code to its own file.
6046 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6047 * lib/pipe-safer.c (pipe2_safer): Remove function.
6048 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6049 (Makefile.am): Add it to lib_SOURCES.
6051 2009-12-10 Bruno Haible <bruno@clisp.org>
6053 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6055 2009-12-10 Bruno Haible <bruno@clisp.org>
6057 Declare which arguments expect non-NULL values, for GCC and clang.
6058 * build-aux/arg-nonnull.h: New file.
6059 * modules/arg-nonnull: New file.
6060 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6061 (inet_ntop, inet_pton): Use it.
6062 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6063 (closedir, dirfd, opendir, scandir, alphasort): Use it.
6064 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6065 (open, openat): Use it.
6066 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6068 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6069 (getopt, getopt_long, getopt_long_only): Use it.
6070 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6071 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6073 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6074 (iconv_open): Use it.
6075 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6076 (strtoimax, strtoumax): Use it.
6077 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6078 (duplocale): Use it.
6079 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6080 (frexp, frexpl): Use it.
6081 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6082 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6083 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6084 (tsearch, tfind, tdelete, twalk): Use it.
6085 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6086 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6087 sigpending): Use it.
6088 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6089 (posix_spawn, posix_spawnp, posix_spawnattr_init,
6090 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6091 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6092 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6093 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6094 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6095 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6096 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6097 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6098 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6100 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6101 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6102 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6103 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6104 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6105 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6106 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6107 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6108 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6109 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6110 strtoull, unsetenv): Use it.
6111 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6112 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6113 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6114 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6115 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6116 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6117 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6118 (strcasecmp, strncasecmp): Use it.
6119 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6120 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6121 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6122 rpl_setsockopt): Use it.
6123 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6124 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6125 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6126 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6127 (gettimeofday): Use it.
6128 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6130 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6132 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6133 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6134 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6135 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6136 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6137 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6138 unlinkat, write): Use it.
6139 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6140 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6141 * lib/argv-iter.h: Include arg-nonnull.h.
6142 (_ATTRIBUTE_NONNULL_): Remove macro.
6143 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6144 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6145 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6147 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6148 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6149 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6150 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6151 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6152 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6153 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6154 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6155 * modules/arpa_inet (Depends-on): Add arg-nonnull.
6156 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6157 * modules/dirent (Depends-on): Add arg-nonnull.
6158 (Makefile.am): Insert arg-nonnull.h into dirent.h.
6159 * modules/fcntl-h (Depends-on): Add arg-nonnull.
6160 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6161 * modules/fnmatch (Depends-on): Add arg-nonnull.
6162 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6163 * modules/getopt-posix (Depends-on): Add arg-nonnull.
6164 (Makefile.am): Insert arg-nonnull.h into getopt.h.
6165 * modules/glob (Depends-on): Add arg-nonnull.
6166 (Makefile.am): Insert arg-nonnull.h into glob.h.
6167 * modules/iconv_open (Depends-on): Add arg-nonnull.
6168 (Makefile.am): Insert arg-nonnull.h into iconv.h.
6169 * modules/inttypes (Depends-on): Add arg-nonnull.
6170 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6171 * modules/locale (Depends-on): Add arg-nonnull.
6172 (Makefile.am): Insert arg-nonnull.h into locale.h.
6173 * modules/math (Depends-on): Add arg-nonnull.
6174 (Makefile.am): Insert arg-nonnull.h into math.h.
6175 * modules/netdb (Depends-on): Add arg-nonnull.
6176 (Makefile.am): Insert arg-nonnull.h into netdb.h.
6177 * modules/search (Depends-on): Add arg-nonnull.
6178 (Makefile.am): Insert arg-nonnull.h into search.h.
6179 * modules/signal (Depends-on): Add arg-nonnull.
6180 (Makefile.am): Insert arg-nonnull.h into signal.h.
6181 * modules/spawn (Depends-on): Add arg-nonnull.
6182 (Makefile.am): Insert arg-nonnull.h into spawn.h.
6183 * modules/stdio (Depends-on): Add arg-nonnull.
6184 (Makefile.am): Insert arg-nonnull.h into stdio.h.
6185 * modules/stdlib (Depends-on): Add arg-nonnull.
6186 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6187 * modules/string (Depends-on): Add arg-nonnull.
6188 (Makefile.am): Insert arg-nonnull.h into string.h.
6189 * modules/strings (Depends-on): Add arg-nonnull.
6190 (Makefile.am): Insert arg-nonnull.h into strings.h.
6191 * modules/sys_socket (Depends-on): Add arg-nonnull.
6192 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6193 * modules/sys_stat (Depends-on): Add arg-nonnull.
6194 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6195 * modules/sys_time (Depends-on): Add arg-nonnull.
6196 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6197 * modules/sys_times (Depends-on): Add arg-nonnull.
6198 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6199 * modules/sys_utsname (Depends-on): Add arg-nonnull.
6200 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6201 * modules/time (Depends-on): Add arg-nonnull.
6202 (Makefile.am): Insert arg-nonnull.h into time.h.
6203 * modules/unistd (Depends-on): Add arg-nonnull.
6204 (Makefile.am): Insert arg-nonnull.h into unistd.h.
6205 * modules/wchar (Depends-on): Add arg-nonnull.
6206 (Makefile.am): Insert arg-nonnull.h into wchar.h.
6207 * modules/argv-iter (Depends-on): Add arg-nonnull.
6208 * tests/test-canonicalize.c (null_ptr): New function.
6210 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6212 * tests/test-memmem.c (null_ptr): New function.
6214 Reported by Jim Meyering.
6216 2009-12-10 Bruno Haible <bruno@clisp.org>
6218 Use spaces for indentation, not tabs.
6219 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6220 * m4/*.m4: Untabify.
6221 * build-aux/*.h: Untabify.
6222 * tests/**/*.[hc]: Untabify.
6223 * README: New section "Indent with spaces, not TABs", based on
6224 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6225 * NEWS: Mention the change.
6227 2009-12-10 Bruno Haible <bruno@clisp.org>
6229 pty test: Fix link error.
6230 * modules/pty-tests (Makefile.am): Add the default LDADD value to
6233 2009-12-07 Simon Josefsson <simon@josefsson.org>
6235 * modules/pty: New file.
6236 * modules/pty-tests: New file.
6237 * m4/pty.m4: New file.
6238 * tests/test-pty.c: New file.
6239 * doc/glibc-headers/pty.texi: Modified.
6240 * doc/glibc-functions/forkpty.texi: Modified.
6241 * doc/glibc-functions/openpty.texi: Modified.
6243 2009-12-10 Bruno Haible <bruno@clisp.org>
6245 Avoid syntax error in C++ mode.
6246 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6248 2009-12-10 Bruno Haible <bruno@clisp.org>
6250 Use sed with option -e.
6251 * gnulib-tool (func_version, func_emit_copyright_notice,
6252 func_emit_initmacro_end, func_import, func_create_testdir): Pass
6254 * modules/link-warning (Makefile.am): Likewise.
6256 2009-12-10 Jim Meyering <meyering@redhat.com>
6258 mgetgroups: do not write bytes beyond end of malloc'd buffer
6259 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6260 username, we call getgroups with a one-element-shorter buffer,
6261 but still told it the length was original, max_n_groups.
6263 2009-12-09 Eric Blake <ebb9@byu.net>
6265 cloexec: relax license
6266 * modules/cloexec (Maintainer): Add myself.
6267 (License): Use LGPL, not GPL.
6269 link-warning: optimize generation
6270 * modules/link-warning (Makefile.am): Reduce process usage.
6272 2009-12-09 Bruno Haible <bruno@clisp.org>
6274 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6275 workaround was added on 2009-11-17.
6277 2009-12-09 Jim Meyering <meyering@redhat.com>
6278 Bruno Haible <bruno@clisp.org>
6280 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6281 * modules/link-warning (Makefile.am): Make the comment-removing sed
6282 command more robust in the face of bootstrap-prepended comment lines.
6284 2009-12-09 Bruno Haible <bruno@clisp.org>
6286 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6289 2009-12-09 Simon Josefsson <simon@josefsson.org>
6290 Bruno Haible <bruno@clisp.org>
6292 * build-aux/link-warning.h: Add copyright notice.
6293 * modules/link-warning (Makefile.am): Generate link-warning.h from
6294 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6295 * NEWS: Mention change in link-warning module.
6296 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6297 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6298 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6299 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6300 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6301 * modules/math (Makefile.am): Add dependency to math.h.
6302 * modules/search (Makefile.am): Add dependency to search.h.
6303 * modules/signal (Makefile.am): Add dependency to signal.h.
6304 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6305 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6306 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6307 * modules/string (Makefile.am): Add dependency to string.h.
6308 * modules/strings (Makefile.am): Add dependency to strings.h.
6309 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6310 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6311 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6312 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6313 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6314 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6315 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6316 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6317 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6319 2009-12-09 Bruno Haible <bruno@clisp.org>
6321 fchdir: Optimize away rpl_fstat when possible.
6322 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6323 REPLACE_OPEN_DIRECTORY.
6324 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6326 2009-12-09 Bruno Haible <bruno@clisp.org>
6328 * lib/fchdir.c: Update comment.
6330 2009-12-09 Bruno Haible <bruno@clisp.org>
6332 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6334 2009-12-08 Eric Blake <ebb9@byu.net>
6336 fchdir: avoid memory leak on re-registration.
6337 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6339 2009-12-08 Jim Meyering <meyering@redhat.com>
6341 init.sh: avoid Solaris 10 /bin/sh portability problem
6342 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6344 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6345 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6347 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6348 and two tests used that idiom.
6349 * tests/init.sh: Update suggested usage comments.
6350 (path_prepend_): New function, to be used in place
6351 of the --src-path=DIR option.
6352 (setup_): Move PATH-prepending code into path_prepend_.
6353 * tests/test-pread.sh: Adapt to new usage.
6354 * tests/test-xalloc-die.sh: Likewise.
6356 2009-12-08 Simon Josefsson <simon@josefsson.org>
6358 * doc/gnulib.texi (Glibc pty.h): Add.
6359 * doc/glibc-functions/forkpty.texi: Add.
6360 * doc/glibc-functions/openpty.texi: Add.
6361 Suggested by Bruno Haible.
6363 2009-12-08 Eric Blake <ebb9@byu.net>
6365 fchdir: fix logic bugs
6366 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6367 * tests/test-fchdir.c (main): Enhance test.
6368 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6371 dup2: fix logic bugs
6372 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6373 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6374 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6376 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6378 2009-12-07 Eric Blake <ebb9@byu.net>
6380 unlink: fix m4 detection
6381 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6383 unistd-safer: add unit test
6384 * modules/unistd-safer-tests: New file.
6385 * tests/test-dup-safer.c: Likewise.
6386 * tests/test-cloexec.c (setmode): Avoid compiler warning.
6387 * tests/test-dup2.c (setmode): Likewise.
6388 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6390 cloexec: preserve text vs. binary across dup_cloexec
6391 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6393 * modules/dup2-tests (Depends-on): Add binary-io.
6394 * modules/cloexec-tests (Depends-on): Likewise.
6395 * tests/test-dup2.c (setmode, is_mode): New helpers.
6396 (main): Add tests that translation mode is preserved.
6397 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6398 Reported by Bruno Haible.
6400 mgetgroups: reduce duplicate listings
6401 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6403 * tests/test-chown.h (test_chown): Simplify client.
6404 * tests/test-lchown.h (test_lchown): Likewise.
6406 2009-12-06 Bruno Haible <bruno@clisp.org>
6408 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6411 2009-12-06 Bruno Haible <bruno@clisp.org>
6413 * lib/progname.c: Include stdio.h, stdlib.h.
6414 (set_program_name): Reject a NULL argument.
6416 2009-12-05 Eric Blake <ebb9@byu.net>
6418 pipe2-safer: new module
6419 * modules/pipe2-safer: New file.
6420 * lib/unistd-safer.h (pipe2_safer): New prototype.
6421 * lib/unistd--.h (pipe2): New wrapper.
6422 * lib/pipe-safer.c (pipe2_safer): New function.
6423 * modules/pipe (Depends-on): Add pipe2-safer.
6424 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6426 stdlib-safer: preserve cloexec flag for mkostemp[s]
6427 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6430 unistd-safer: allow preservation of cloexec status via flag
6431 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6433 * lib/dup-safer.c (dup_safer_flag): New function.
6434 * lib/fd-safer.c (fd_safer_flag): Likewise.
6435 * modules/cloexec (configure.ac): Set witness.
6437 test-dup2: enhance test
6438 * modules/dup2-tests (Depends-on): Add cloexec.
6439 * tests/test-dup2.c (main): Enhance test.
6441 cloexec: add dup_cloexec
6442 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6443 header and comments.
6444 * lib/cloexec.c (set_cloexec_flag): Add comments.
6445 (dup_cloexec): New function, with mingw implementation borrowed
6447 * lib/w32spawn.h (dup_noinherit): ...here.
6448 * modules/execute (Depends-on): Add cloexec.
6449 * modules/pipe (Depends-on): Likewise.
6450 * modules/cloexec (Depends-on): Add dup2.
6451 * modules/cloexec-tests (Files): New file.
6452 * tests/test-cloexec.c: Likewise.
6454 test-xalloc-die: fix test for mingw
6455 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6456 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6457 directory and .exe suffix off argv[0] output.
6459 test-fseeko: fix test for mingw
6460 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6461 than undefining fseek, so test will pass on mingw.
6463 2009-12-05 Bruno Haible <bruno@clisp.org>
6465 * lib/progname.h (set_program_name): Clarify specification.
6466 * lib/progname.c (set_program_name): Likewise.
6467 Reported by Jim Meyering.
6469 2009-12-05 Jim Meyering <meyering@redhat.com>
6471 maint.mk: backslash-escape parens in default regexp
6472 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6473 backslash-escape the literal parentheses.
6475 maint.mk: news-date-check: use grep -E
6476 * top/maint.mk (today): Define a Make variable, not a...
6477 (news-date-check): ...shell variable.
6478 (news-date-regexp): Use the Make variable.
6479 Use grep's -E option. Change the failing diagnostic to mention
6480 the variable, $(news-date-regexp).
6482 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
6484 maintainer-makefile: allow customization of NEWS entry format
6485 * top/maint.mk (news-date-regexp): New overridable variable.
6486 (news-date-check): Use it.
6488 2009-12-04 Eric Blake <ebb9@byu.net>
6490 mgetgroups: add xgetgroups, and avoid ENOSYS failures
6491 * lib/mgetgroups.h (xgetgroups): New prototype.
6492 * lib/mgetgroups.c (xgetgroups): New wrapper.
6493 (mgetgroups): Handle ENOSYS.
6494 * modules/mgetgroups (Depends-on): Add realloc.
6495 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6497 mgetgroups: avoid argument promotion issues with -1
6498 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6500 * tests/test-chown.h (getegid, test_chown): Likewise.
6501 * tests/test-lchown.h (getegid, test_lchown): Likewise.
6503 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
6505 exclude: Fix header file problems.
6506 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6508 2009-12-01 Jim Meyering <meyering@redhat.com>
6510 fts: fts_open: do not let an empty string cause immediate failure
6511 This is required in support of GNU rm, for which the command
6512 "rm A '' B" must process and remove both A and B, in spite of
6513 the empty string argument.
6514 * lib/fts.c (fts_open): Do not let the presence of an empty string
6515 cause fts_open to fail immediately. Most fts-using tools must be
6516 able to process all arguments, in order, and can be expected to
6517 diagnose such arguments themselves.
6519 2009-11-30 Eric Blake <ebb9@byu.net>
6521 utimens: fix compilation error
6522 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6523 Declare variable at right scope.
6525 2009-11-29 Jim Meyering <meyering@redhat.com>
6527 bootstrap: handle perl-5.11's changed --version output
6528 * build-aux/bootstrap (get_version): Handle perl separately,
6529 since perl-5.11's --version output is different.
6531 2009-11-28 Jim Meyering <meyering@redhat.com>
6533 userspec: depend on the inttostr module, too
6534 * modules/userspec (Depends-on): Add inttostr.
6536 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6537 * lib/userspec.c (parse_with_separator): Do not accept a user ID
6538 number of MAXUID when it evaluates to (uid_t) -1.
6539 Likewise for group ID. Reported by Matt McCutchen in
6540 <http://savannah.gnu.org/bugs/?28113>
6542 userspec: reformat to use spaces, not TABs
6543 * lib/userspec.c: Expand TABs to spaces.
6544 Add Emacs' "indent-tabs-mode: nil" hint.
6546 2009-11-27 Eric Blake <ebb9@byu.net>
6548 getopt-gnu: flush out another BSD bug
6549 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6550 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6552 * tests/test-getopt.h (test_getopt): End lists with NULL.
6553 * tests/test-getopt_long.h (test_getopt_long): Likewise.
6554 (test_getopt_long_posix): Enhance test.
6555 * modules/getopt-posix-tests (Depends-on): Add stdbool.
6556 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6558 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6561 2009-11-27 Simon Josefsson <simon@josefsson.org>
6563 * modules/idpriv-droptemp-tests (Notice): Fix text.
6565 2009-11-27 Jim Meyering <meyering@redhat.com>
6567 test-xalloc-die: avoid spurious failure due to libtool argv difference
6568 In a libtool-enabled project, this test would fail due to a difference
6569 in the emitted program name, e.g.,
6570 -test-xalloc-die: memory exhausted
6571 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6572 Use program to avoid that.
6573 * modules/xalloc-die-tests (Depends-on): Add progname.
6574 * tests/test-xalloc-die.c: Include progname.h".
6575 (program_name): Remove decl.
6576 (main): Call set_program_name.
6577 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6579 2009-11-26 Richard Jones <rjones@redhat.com>
6581 w32sock: leave win32 error in place.
6582 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6584 2009-11-26 Eric Blake <ebb9@byu.net>
6586 init.sh: suggest to use skip_ and fail_ functions in comments
6587 * tests/init.sh: Add a sentence.
6589 2009-11-25 Bruno Haible <bruno@clisp.org>
6591 init.sh: add documentation in comments
6592 * tests/init.sh: Add some developer and user documentation.
6594 2009-11-26 Jim Meyering <meyering@redhat.com>
6596 init.sh: accommodate even those who specify bogus srcdir manually
6597 * tests/init.sh: Normally, srcdir is guaranteed by automake and
6598 configure-time tests to be sanitized, so that there is no need to
6599 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
6600 (with no double quotes) suffices. However, since tests may be
6601 invoked manually, and since you may explicitly set srcdir to the
6602 name of a directory containing spaces, do quote its uses here.
6603 * tests/test-pread.sh: Likewise.
6604 Suggested by Bruno Haible.
6606 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6607 * tests/test-pread.sh: Write no data into the pipe, because
6608 test-pread actually reads none. This avoids a diagnostic,
6609 "bash: echo: write error: Broken pipe", that arises in the unusual
6610 event something is ignoring SIGPIPE, and might be interpreted
6611 as some sort of failure. Reported by Bruno Haible.
6613 2009-11-25 Jim Meyering <meyering@redhat.com>
6615 test-pread: cover failure with ESPIPE and EINVAL
6616 * tests/test-pread.c (main): Test for failure, too.
6617 * tests/test-pread.sh: Invoke with stdin on a pipe.
6618 Suggested by Eric Blake.
6620 pread: improvement and fix
6621 * modules/pread (Depends-on): Depend on lseek, for portability to
6622 e.g., mingw. Suggested by Eric Blake.
6623 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
6625 unistd.in.h: correct declaration of pread
6626 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6627 Reported by Richard W.M. Jones.
6629 test-pread.sh: distribute the test script
6630 * modules/pread-tests (Files): Include test-pread.sh.
6632 test-pread.sh: clean up
6633 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6634 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6635 That is unnecessary, since it's always ".".
6636 Suggestion from Eric Blake.
6638 test-pread.sh: make executable
6639 * tests/test-pread.sh: Set executable bit.
6640 Reported by Eric Blake.
6642 correct typo in test-pread.sh
6643 * tests/test-pread.sh: Add #! line.
6646 * tests/test-pread.c: New file.
6647 * tests/test-pread.sh: Likewise.
6648 * modules/pread-tests: Likewise.
6651 * modules/pread: New file.
6652 * lib/unistd.in.h (pread): Define/declare.
6653 * lib/pread.c (pread): New file.
6654 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6655 * modules/unistd (Makefile.am): Substitute witnesses.
6656 * doc/posix-functions/pread.texi (pread): Update.
6657 * MODULES.html.sh: Add pread.
6659 2009-11-25 Jim Meyering <meyering@redhat.com>
6661 tests/init.sh: new file to be used via most *.sh tests
6662 * tests/init.sh: New file.
6664 2009-11-25 Eric Blake <ebb9@byu.net>
6666 utimens: work around older Linux failure with symlinks
6667 * lib/utimens.c (lutimensat_works_really): New variable.
6668 (fdutimens, lutimens): Use it to manage kernels that support
6669 nanosecond times on files, but not on symlinks.
6670 Reported by Ondřej Vašík.
6672 utimes: fix configure grammar
6673 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6675 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
6677 regex: Fix fastmap for multibyte character ranges.
6678 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6679 characters when a multibyte character range is included.
6681 2009-11-22 Andy Wingo <wingo@pobox.com>
6683 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6684 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6686 2009-11-24 Bruno Haible <bruno@clisp.org>
6688 doc: Most *_l functions exist in MacOS X 10.5.
6689 * doc/posix-functions/duplocale.texi: Update platforms list.
6690 * doc/posix-functions/freelocale.texi: Likewise.
6691 * doc/posix-functions/newlocale.texi: Likewise.
6692 * doc/posix-functions/uselocale.texi: Likewise.
6693 * doc/posix-functions/isalnum_l.texi: Likewise.
6694 * doc/posix-functions/isalpha_l.texi: Likewise.
6695 * doc/posix-functions/isblank_l.texi: Likewise.
6696 * doc/posix-functions/iscntrl_l.texi: Likewise.
6697 * doc/posix-functions/isdigit_l.texi: Likewise.
6698 * doc/posix-functions/isgraph_l.texi: Likewise.
6699 * doc/posix-functions/islower_l.texi: Likewise.
6700 * doc/posix-functions/isprint_l.texi: Likewise.
6701 * doc/posix-functions/ispunct_l.texi: Likewise.
6702 * doc/posix-functions/isspace_l.texi: Likewise.
6703 * doc/posix-functions/isupper_l.texi: Likewise.
6704 * doc/posix-functions/iswalnum_l.texi: Likewise.
6705 * doc/posix-functions/iswalpha_l.texi: Likewise.
6706 * doc/posix-functions/iswblank_l.texi: Likewise.
6707 * doc/posix-functions/iswcntrl_l.texi: Likewise.
6708 * doc/posix-functions/iswctype_l.texi: Likewise.
6709 * doc/posix-functions/iswdigit_l.texi: Likewise.
6710 * doc/posix-functions/iswgraph_l.texi: Likewise.
6711 * doc/posix-functions/iswlower_l.texi: Likewise.
6712 * doc/posix-functions/iswprint_l.texi: Likewise.
6713 * doc/posix-functions/iswpunct_l.texi: Likewise.
6714 * doc/posix-functions/iswspace_l.texi: Likewise.
6715 * doc/posix-functions/iswupper_l.texi: Likewise.
6716 * doc/posix-functions/iswxdigit_l.texi: Likewise.
6717 * doc/posix-functions/isxdigit_l.texi: Likewise.
6718 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6719 * doc/posix-functions/strcasecmp_l.texi: Likewise.
6720 * doc/posix-functions/strcoll_l.texi: Likewise.
6721 * doc/posix-functions/strfmon_l.texi: Likewise.
6722 * doc/posix-functions/strftime_l.texi: Likewise.
6723 * doc/posix-functions/strncasecmp_l.texi: Likewise.
6724 * doc/posix-functions/strxfrm_l.texi: Likewise.
6725 * doc/posix-functions/tolower_l.texi: Likewise.
6726 * doc/posix-functions/toupper_l.texi: Likewise.
6727 * doc/posix-functions/towctrans_l.texi: Likewise.
6728 * doc/posix-functions/towlower_l.texi: Likewise.
6729 * doc/posix-functions/towupper_l.texi: Likewise.
6730 * doc/posix-functions/wcscoll_l.texi: Likewise.
6731 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6732 * doc/posix-functions/wctrans_l.texi: Likewise.
6733 * doc/posix-functions/wctype_l.texi: Likewise.
6734 * doc/glibc-functions/strptime_l.texi: Likewise.
6735 * doc/glibc-functions/strtod_l.texi: Likewise.
6736 * doc/glibc-functions/strtof_l.texi: Likewise.
6737 * doc/glibc-functions/strtol_l.texi: Likewise.
6738 * doc/glibc-functions/strtold_l.texi: Likewise.
6739 * doc/glibc-functions/strtoll_l.texi: Likewise.
6740 * doc/glibc-functions/strtoul_l.texi: Likewise.
6741 * doc/glibc-functions/strtoull_l.texi: Likewise.
6742 * doc/glibc-functions/wcsftime_l.texi: Likewise.
6743 * doc/glibc-functions/wcstod_l.texi: Likewise.
6744 * doc/glibc-functions/wcstof_l.texi: Likewise.
6745 * doc/glibc-functions/wcstol_l.texi: Likewise.
6746 * doc/glibc-functions/wcstold_l.texi: Likewise.
6747 * doc/glibc-functions/wcstoll_l.texi: Likewise.
6748 * doc/glibc-functions/wcstoul_l.texi: Likewise.
6749 * doc/glibc-functions/wcstoull_l.texi: Likewise.
6751 2009-11-24 Bruno Haible <bruno@clisp.org>
6753 duplocale: Fix logic bug.
6754 * lib/duplocale.c: Don't include <langinfo.h>.
6755 (_NL_LOCALE_NAME): Remove macro.
6756 (rpl_duplocale): Use setlocale instead of nl_langinfo.
6757 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6759 2009-11-23 Jim Meyering <meyering@redhat.com>
6761 test-update-copyright: don't hard-code /usr/bin/perl
6762 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6763 perl to print the current year. Gilles Espinasse reported that
6764 the replaced use of perl was hard-coded as /usr/bin/perl.
6766 2009-11-23 Bruno Haible <bruno@clisp.org>
6768 duplocale: Add support for glibc 2.3.x.
6769 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6771 2009-11-22 Bruno Haible <bruno@clisp.org>
6773 vasnprintf: Tiny optimization.
6774 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6777 2009-11-22 Bruno Haible <bruno@clisp.org>
6779 Tests for module 'duplocale'.
6780 * modules/duplocale-tests: New file.
6781 * tests/test-duplocale.c: New file.
6783 New module 'duplocale'.
6784 * m4/duplocale.m4: New file.
6785 * lib/locale.in.h (duplocale): New declaration.
6786 * lib/duplocale.c: New file.
6787 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6788 gl_LOCALE_H_DEFAULTS): New macros.
6789 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6790 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6791 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6793 * modules/duplocale: New file.
6794 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6796 2009-11-22 Bruno Haible <bruno@clisp.org>
6798 * modules/locale-tests (configure.ac): Test for newlocale function.
6799 * tests/test-locale.c: When the system has extended locale functions,
6800 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6802 locale: Make locale_t available when possible.
6803 * lib/locale.in.h: Include <xlocale.h> when it exists.
6804 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6805 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6806 * modules/locale (Depends-on): Add extensions.
6807 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6808 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6810 2009-11-22 Bruno Haible <bruno@clisp.org>
6813 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6815 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6816 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6817 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6819 2009-11-22 Bruno Haible <bruno@clisp.org>
6821 error: account for the possibility of freopen (stdout).
6822 * lib/error.c: Include <unistd.h>.
6823 (flush_stdout): New function, extracted from error and error_at_line.
6824 Determine stdout's fd dynamically.
6825 (error, error_at_line): Invoke flush_stdout.
6826 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6827 * modules/error (Depends-on): Add unistd.
6829 2009-11-22 Bruno Haible <bruno@clisp.org>
6831 diffseq: Add comment.
6832 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6834 2009-11-22 Jim Meyering <meyering@redhat.com>
6836 c-stack: avoid defining an unused static function
6837 * lib/c-stack.c (find_stack_direction): Do not define this function
6838 when it will not be used.
6840 diffseq: avoid spurious gcc warnings
6841 * lib/diffseq.h (IF_LINT2): Define.
6842 (compareseq): Use it to initialize two members of "part".
6843 This avoids two used-uninitialized warnings.
6845 2009-11-21 Jim Meyering <meyering@redhat.com>
6847 c-stack: avoid "ignoring return value of `write'" warning
6848 * lib/c-stack.c: Include "ignore-value.h".
6849 (die): Explicitly ignore each write return value.
6850 * modules/c-stack (Depends-on): Add ignore-value.
6852 2009-11-21 Bruno Haible <bruno@clisp.org>
6854 diffseq: reduce scope of variable 'best'.
6855 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6856 variable, earlier used for two different purposes.
6858 2009-11-21 Jim Meyering <meyering@redhat.com>
6860 diffseq: remove useless assignment to "best"
6861 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6862 assignment. At that point "best" is already guaranteed to be zero.
6864 2009-11-20 Eric Blake <ebb9@byu.net>
6866 build: mention ftp redirector in release announcements
6867 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6868 values that used to come from cfg.mk; mention FTP redirect URL.
6869 * build-aux/announce-gen: Mention the mirror list.
6870 Suggested by Karl Berry.
6872 nanosleep: improve port to mingw
6873 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6874 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6875 LIB_NANOSLEEP, but only when needed.
6876 * modules/select (Link): Document LIBSOCKET.
6877 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6880 nanosleep: work around cygwin bug
6881 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6882 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
6884 (getnow): Delete, not needed.
6885 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6887 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
6888 clock-time, gettime.
6889 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6891 * modules/nanosleep-tests: New test.
6892 * tests/test-nanosleep.c: New file.
6894 sleep: work around cygwin bug
6895 * lib/sleep.c (rpl_sleep): Work around the bug.
6896 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6897 (gl_PREREQ_SLEEP): Delete unused macro.
6898 * modules/sleep (Depends-on): Add verify.
6899 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6900 * modules/unistd (Makefile.am): Substitute witness.
6901 * lib/unistd.in.h (sleep): Update prototype.
6902 * doc/posix-functions/sleep.texi (sleep): Document the bug.
6903 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6904 * modules/sleep-tests (Depends-on): Check for alarm.
6906 2009-11-20 Jim Meyering <meyering@redhat.com>
6908 maint.mk: improve sc_prohibit_magic_number_exit
6909 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6910 so it does not match uses like System.exit(1).
6911 Add comments showing how to correct all offenders.
6913 2009-11-19 Eric Blake <ebb9@byu.net>
6915 xalloc-die-tests: add missing library
6916 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6918 test-xvasprintf: silence compiler warnings
6919 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6920 empty string from gcc.
6922 2009-11-19 Jim Meyering <meyering@redhat.com>
6924 xfreopen: new module, from coreutils
6925 * modules/xfreopen: New module.
6926 * lib/xfreopen.c: New file.
6927 * lib/xfreopen.h: New file.
6928 * MODULES.html.sh (File stream based Input/Output"): Add it.
6930 2009-11-19 Eric Blake <ebb9@byu.net>
6932 manywarnings: depend on warnings
6933 * modules/manywarnings (Depends-on): Add warnings.
6935 build: avoid compiler warnings
6936 * lib/select.c (rpl_select): Delete unused variable.
6937 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6939 2009-11-18 Eric Blake <ebb9@byu.net>
6941 tests: avoid false negative with --with-packager
6942 * tests/test-version-etc.sh: Discard packager information.
6943 * tests/test-argp-version-etc-1.sh: Likewise.
6944 Reported by Mike Frysinger.
6946 utimens: fix regression on Solaris
6947 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6948 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6949 can only change fd timestamps via futimesat. Instead, use an
6950 additional witness macro to avoid BSD bug.
6951 Reported by Jim Meyering.
6953 2009-11-17 Eric Blake <ebb9@byu.net>
6955 usleep: use it to simplify tests
6956 * modules/stat-time-tests (Depends-on): Add usleep.
6957 (configure.ac): Drop usleep check.
6958 * modules/chown-tests (Depends-on, configure.ac): Likewise.
6959 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6960 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6961 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6962 * modules/openat-tests (Depends-on, configure.ac): Likewise.
6963 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6964 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6965 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6967 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6968 * tests/test-lchown.h (nap): Likewise.
6969 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6970 * tests/test-stat-time.c (nap): Likewise.
6971 * tests/test-utimens-common.h (nap): Update comments.
6974 * modules/usleep: New file.
6975 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6976 * lib/usleep.c (usleep): Likewise.
6977 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6978 * modules/unistd (Makefile.am): Substitute witnesses.
6979 * lib/unistd.in.h (usleep): Add declaration.
6980 * doc/pastposix-functions/usleep.texi (usleep): Document this.
6981 * MODULES.html.sh (Date and time): Likewise.
6982 * modules/usleep-tests (Depends-on): New test.
6983 * tests/test-usleep.c: New file.
6985 chown: work around OpenBSD bug
6986 * lib/chown.c (rpl_chown): Work around the bug.
6987 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6988 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6989 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6990 * modules/chown (Depends-on): Add stdbool.
6991 * modules/lchown (Depends-on): Likewise.
6992 * doc/posix-functions/chown.texi (chown): Document the bug.
6993 * doc/posix-functions/lchown.texi (lchown): Likewise.
6994 * tests/test-lchown.h (test_chown): Relax test.
6996 mkstemp: avoid conflict with C++ keyword template
6997 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6998 * lib/mkostemp.c (mkostemp): Likewise.
6999 * lib/mkostemps.c (mkostemps): Likewise.
7000 * lib/mkstemp.c (mkstemp): Likewise.
7001 * lib/mkstemps.c (mkstemps): Likewise.
7003 xalloc-die-tests: optimize
7004 * tests/test-xalloc-die.sh: Reduce number of processes.
7006 2009-11-17 Simon Josefsson <simon@josefsson.org>
7008 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
7009 patch from ludo@gnu.org (Ludovic Courtès).
7011 2009-11-17 Jim Meyering <meyering@redhat.com>
7013 version-etc: use proper license string
7014 * modules/version-etc (License): Use LGPL, not LGPLv3+.
7015 * modules/version-etc-fsf: Likewise.
7017 2009-11-17 Simon Josefsson <simon@josefsson.org>
7019 * tests/test-xalloc-die.sh: Add license. Check that nothing is
7020 printed to stdout. Deal with EOL differences.
7022 2009-11-17 Eric Blake <ebb9@byu.net>
7024 unsetenv: work around Solaris bug
7025 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7026 * lib/unsetenv.c (rpl_unsetenv): Work around it.
7027 Reported by Jim Meyering.
7029 vasnprintf: avoid compiler warnings
7030 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7032 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7034 2009-11-17 Simon Josefsson <simon@josefsson.org>
7036 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7037 settings since xalloc-die is no longer the self test,
7040 2009-11-17 Jim Meyering <meyering@redhat.com>
7042 test-xalloc-die.sh: make the code agree with the commit log
7043 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7044 at the end, just in case you happen to have a test-xalloc-die
7045 program in some other PATH directory.
7047 test-xalloc-die.sh: fix a portability bug
7048 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7049 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7050 Otherwise, argv[0] (as often seen in diagnostics) would be too
7051 system-dependent, sometimes with, and sometimes without the leading "./".
7053 version-etc-fsf: relax license to LGPLv3+
7054 * modules/version-etc-fsf (License): Relax license.
7056 2009-11-16 Eric Blake <ebb9@byu.net>
7058 xalloc-die-tests: avoid printing null pointer
7059 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7061 * tests/test-xalloc-die.c (program_name): Declare.
7062 * tests/test-xalloc-die.sh (tmpfiles): New file.
7064 setenv, unsetenv: work around various bugs
7065 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7066 (setenv) [HAVE_SETENV]: Work around bugs.
7067 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7068 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7070 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7071 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7072 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7073 * modules/stdlib (Makefile.am): Update substitutions.
7074 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7075 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7076 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7077 * modules/setenv-tests: New test.
7078 * modules/unsetenv-tests: Likewise.
7079 * tests/test-setenv.c: New file.
7080 * tests/test-unsetenv.c: Likewise.
7082 2009-11-16 Jim Meyering <meyering@redhat.com>
7084 version-etc: relax license to LGPLv3+
7085 * modules/version-etc (License): Relax license.
7087 better AC_REQUIRE expanded-before-required-warning avoidance
7088 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7089 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7090 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
7091 which is no longer needed.
7093 2009-11-16 Eric Blake <ebb9@byu.net>
7095 test-freading: clean up temporary file
7096 * tests/test-freading.c (main): Remove file on success, and use
7097 ASSERT more liberally.
7098 Reported by Jim Meyering.
7100 2009-11-16 Jim Meyering <meyering@redhat.com>
7102 avoid new AC_REQUIRE expanded-before-required warnings
7103 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7105 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7106 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7108 2009-11-15 Simon Josefsson <simon@josefsson.org>
7110 * tests/test-xalloc-die.c: New file.
7111 * modules/xalloc-die-tests: New file.
7112 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7113 XFAIL_TESTS so it can be appended by modules.
7115 2009-11-15 Simon Josefsson <simon@josefsson.org>
7117 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
7118 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7120 2009-11-14 Eric Blake <ebb9@byu.net>
7122 fnmatch: avoid compiler warning
7123 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7124 to silence compiler warning about mismatch signedness in ?:.
7125 Reported by Robert Millan.
7127 intprops: add double-inclusion guard
7128 * lib/intprops.h: Allow idempotent includes.
7129 Suggested by Bruce Korb.
7131 openat: detect Solaris fchownat bug
7132 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
7133 penalizing glibc chownat when only lchownat is broken.
7134 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7135 trailing slash bugs.
7136 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7137 * modules/openat-tests (Files): Include more files.
7138 (Depends-on): Add mgetgroups, sleep, stat-time.
7139 (configure.ac): Add additional checks.
7140 (Makefile.am): Build new test.
7141 * tests/test-fchownat.c: New file.
7143 lchown: detect Solaris and FreeBSD bug
7144 * lib/lchown.c (rpl_lchown): Work around bug.
7145 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7146 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7147 * modules/unistd (Makefile.am): Populate it.
7148 * lib/unistd.in.h (lchown): Update declaration.
7149 * doc/posix-functions/lchown.texi (lchown): Document the bug.
7150 * modules/lchown-tests: New file.
7151 * tests/test-lchown.h (test_lchown): Likewise.
7152 * tests/test-lchown.c (main): Likewise.
7154 chown: detect Solaris and FreeBSD bug
7155 * lib/chown.c (rpl_chown): Work around bug.
7156 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7157 (gl_PREREQ_CHOWN): Delete.
7158 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7159 * modules/unistd (Makefile.am): Populate it.
7160 * lib/unistd.in.h (chown): Update declaration.
7161 * lib/lchown.c (chown): Update client.
7162 * modules/lchown (Depends-on): Add lstat.
7163 * doc/posix-functions/chown.texi (chown): Document the bug.
7164 * doc/posix-functions/getgroups.texi (getgroups): Document
7166 * modules/chown-tests: New file.
7167 * tests/test-chown.h (test_chown): Likewise.
7168 * tests/test-chown.c (main): Likewise.
7170 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
7172 gnulib-tool: correctly detect absence of m4 directories
7173 * gnulib-tool: Avoid extra newline on data passed to wc -l.
7175 2009-11-14 Jim Meyering <meyering@redhat.com>
7177 maint.mk: Prohibit inclusion of "xalloc.h" without use.
7178 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7180 2009-11-14 John W. Eaton <jwe@gnu.org>
7182 strftime.h: wrap funtion declaration in extern "C" block
7183 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7185 2009-11-13 Eric Blake <ebb9@byu.net>
7187 getgroups: avoid compiler warning
7188 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7190 getgroups: work around FreeBSD bug
7191 * lib/getgroups.c (rpl_getgroups): Work around the bug.
7192 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7193 * doc/posix-functions/getgroups.texi (getgroups): Document it.
7194 * tests/test-getgroups.c (main): Fix buffer overrun.
7196 getgroups: avoid compilation failure
7197 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7198 * modules/getgroups (Depends-on): Add stdint.
7200 2009-11-13 Jim Meyering <meyering@redhat.com>
7202 test-getgroups: avoid compilation failure
7203 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7205 2009-11-13 Eric Blake <ebb9@byu.net>
7207 mgetgroups: new module, taken from coreutils
7208 * modules/mgetgroups: New file.
7209 * lib/mgetgroups.h: Likewise.
7210 * lib/mgetgroups.c (mgetgroups): Likewise.
7211 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7212 * MODULES.html.sh (Users and groups): Mention it.
7214 getgroups: don't expose GETGROUPS_T to user
7215 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
7216 an element at a time if GETGROUPS_T is wrong size.
7217 * lib/getugroups.h (getugroups): Change signature.
7218 * lib/unistd.in.h (getgroups): Likewise.
7219 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7220 signature needs fixing.
7221 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7223 * modules/group-member (Depends-on): Add getgroups.
7224 * lib/group-member.c (group_info, get_group_info): Use gid_t.
7225 (group_member): Rely on getgroups replacement.
7226 * lib/getugroups.c (getugroups): Use gid_t.
7227 * tests/test-getgroups.c (main): Likewise.
7228 * NEWS: Mention the signature change.
7229 * doc/posix-functions/getgroups.texi (getgroups): Mention the
7230 problem with signature.
7231 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7232 GETGROUPS_T is still useful for setgroups.
7234 getgroups, getugroups: provide stubs for mingw
7235 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7236 * lib/getugroups.c (getugroups): Likewise.
7237 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7238 function. Modernize replacement scheme.
7239 (gl_PREREQ_GETGROUPS): Delete.
7240 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7241 * modules/getgroups (configure.ac): Declare witness.
7242 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7243 * modules/unistd (Depends-on): Substitute witness.
7244 * lib/unistd.in.h (getgroups): Declare replacement.
7246 getgroups: avoid calling exit
7247 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7249 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7251 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7252 exiting, in the rare case of malloc failure.
7254 getgroups: fix logic error
7255 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7256 has more than 20 groups.
7257 * modules/getgroups-tests: New test.
7258 * tests/test-getgroups.c: New file.
7260 2009-11-13 Simon Josefsson <simon@josefsson.org>
7262 * tests/test-base64.c: Improve.
7264 2009-11-13 Simon Josefsson <simon@josefsson.org>
7266 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7267 Blake <ebb9@byu.net>.
7269 2009-11-13 Simon Josefsson <simon@josefsson.org>
7271 * tests/test-xvasprintf.c: Add %s%s related checks.
7273 2009-11-12 Eric Blake <ebb9@byu.net>
7275 version-etc: match standards.texi style
7276 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7277 and use <> only for URLs.
7279 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7281 fts: do not fail on a submount during traversal
7282 * lib/fts.c (fts_build): Read the stat info again after opening
7283 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7284 Original report at http://bugzilla.redhat.com/501848.
7286 2009-11-12 Jim Meyering <meyering@redhat.com>
7288 bootstrap: sync from coreutils
7289 * build-aux/bootstrap (bootstrap_epilogue): New function.
7290 Use git_modules_config in one more place. This make bootstrap's
7291 --gnulib-srcdir option more useful for testing.
7293 bootstrap: generalize autoheader check
7294 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7297 2009-11-11 Eric Blake <ebb9@byu.net>
7299 mkfifoat: use new modules for Solaris and BSD bugs
7300 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7301 * lib/mkfifoat.c (mknodat): Split...
7302 * lib/mknodat.c (mknodat): ...into new file.
7303 * modules/mkfifoat (Files): Ship new file.
7304 (Depends-on): Add mkfifo, mknod.
7305 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7306 (Depends-on): Add symlink.
7307 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7308 redundant with test_mkfifo.h.
7309 (do_mkfifoat, do_mknodat): New helpers.
7312 * modules/mknod: New file.
7313 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7314 * lib/mknod.c (mknod): Likewise.
7315 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7317 * modules/sys_stat (Makefile.am): Substitute them.
7318 * lib/sys_stat.in.h (mknod): Declare replacement.
7319 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7321 * doc/posix-functions/mknod.texi (mknod): Likewise.
7322 * modules/mknod-tests: New test.
7323 * tests/test-mknod.c: Likewise.
7326 * modules/mkfifo: New file.
7327 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7328 * lib/mkfifo.c (mkfifo): Likewise.
7329 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7331 * modules/sys_stat (Makefile.am): Substitute them.
7332 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7333 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7335 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7336 * modules/mkfifo-tests: New test.
7337 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7338 from test-mkfifoat.c.
7339 * tests/test-mkfifo.c: New file.
7341 readlink: detect FreeBSD bug
7342 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7344 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7345 * tests/test-readlink.h (test_readlink): Enhance test.
7347 symlink: detect FreeBSD bug
7348 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7350 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7351 * tests/test-symlink.h (test_symlink): Enhance test.
7353 2009-11-10 Eric Blake <ebb9@byu.net>
7355 link: detect FreeBSD bug
7356 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7358 * doc/posix-functions/link.texi (link): Document the bug.
7359 * tests/test-link.h (test_link): Enhance test.
7360 * tests/test-linkat.c (main): Update caller.
7362 unlink, remove: detect FreeBSD bug
7363 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7365 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7366 * doc/posix-functions/remove.texi (remove): Likewise.
7367 * tests/test-unlink.h (test_unlink): Enhance test.
7368 * tests/test-remove.c (main): Likewise.
7370 2009-11-09 Eric Blake <ebb9@byu.net>
7372 rename: detect FreeBSD bug
7373 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7375 * modules/renameat-tests (Depends-on): Add filenamecat.
7376 * tests/test-rename.h (test_rename): Allow one more errno.
7377 * tests/test-renameat.c (main): Likewise.
7378 * doc/posix-functions/rename.texi (rename): Document the bug.
7380 open: detect FreeBSD bug
7381 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7383 * doc/posix-functions/open.texi (open): Document the bug.
7384 * doc/posix-functions/utimes.texi (utimes): Likewise.
7385 * tests/test-open.h (test_open): Add parameters, and test symlink
7387 * tests/test-open.c (main): Adjust caller.
7388 * tests/test-fcntl-safer.c (main): Likewise.
7389 * modules/open-tests (Depends-on): Add stdbool, symlink.
7390 * modules/fcntl-safer-tests (Depends-on): Likewise.
7391 * tests/test-openat.c (main): Add test-open tests.
7393 stat: detect FreeBSD bug
7394 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7396 * doc/posix-functions/stat.texi (stat): Document the bug.
7397 * tests/test-stat.h (test_stat_func): Add argument.
7398 * tests/test-stat.c (main): Adjust caller.
7399 * tests/test-fstatat.c (main): Likewise.
7400 * modules/stat-tests (Depends-on): Add stdbool, symlink.
7401 Reported by Jim Meyering.
7403 2009-11-09 James Youngman <jay@gnu.org>
7405 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7406 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7408 2009-11-08 Jim Meyering <meyering@redhat.com>
7410 utimens: remove invalid futimesat call
7411 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7412 It used the file descriptor of the target file as the DIR_FD
7413 parameter and NULL as the file name. That caused failure with
7414 errno == EFAULT on FreeBSD-8.0-rc2
7416 2009-11-07 Eric Blake <ebb9@byu.net>
7418 fflush, freadseek: use fseeko, not fseek
7419 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7420 (clear_ungetc_buffer): Avoid potential problems on large files.
7421 * lib/freadseek.c (freadseek): Likewise.
7422 * modules/freadseek (Depends-on): Add fseeko.
7423 * modules/fseek (configure.ac): Set a witness.
7424 * tests/test-fflush.c (main): Use fseeko.
7425 * tests/test-fpurge.c (fseek): Disable link warning.
7426 * tests/test-freadable.c (fseek): Likewise.
7427 * tests/test-freading.c (fseek): Likewise.
7428 * tests/test-fseeko.c (fseek): Likewise.
7429 * tests/test-ftell.c (fseek): Likewise.
7430 * tests/test-ftello.c (fseek): Likewise.
7431 * tests/test-fwritable.c (fseek): Likewise.
7432 * tests/test-fwriting.c (fseek): Likewise.
7434 2009-11-06 Simon Josefsson <simon@josefsson.org>
7436 * modules/memchr (Depends-on): Drop getpagesize dependency.
7438 2009-11-06 Simon Josefsson <simon@josefsson.org>
7440 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7441 Reported by Ludovic Courtès.
7442 * build-aux/pmccabe2html: Improve example usage.
7443 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7445 2009-11-06 Jim Meyering <meyering@redhat.com>
7447 do-release-commit-and-tag: New module.
7448 Automate the release-commit and tag process.
7449 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7450 * modules/do-release-commit-and-tag: New file.
7451 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7453 2009-11-06 Simon Josefsson <simon@josefsson.org>
7455 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7456 because test-select.c uses inet_pton.
7458 2009-11-06 Simon Josefsson <simon@josefsson.org>
7460 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7461 GETADDRINFO_LIB. Bump serial number.
7462 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7463 Suggested by Eric Blake <ebb9@byu.net>.
7465 2009-11-05 Eric Blake <ebb9@byu.net>
7467 strtod: detect darwin bug
7468 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7469 Reported by Leo Davis.
7471 freopen-safer: new module
7472 * modules/freopen-safer: New module.
7473 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7474 * lib/freopen-safer.c (freopen_safer): New file.
7475 * lib/stdio-safer.h (freopen_safer): New declaration.
7476 * lib/stdio--.h (freopen): New override.
7477 * MODULES.html.sh (File stream based Input/Output): Mention it.
7478 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7479 freopen-safer module.
7480 * doc/posix-functions/stderr.texi (stderr): Likewise.
7481 * doc/posix-functions/stdin.texi (stdin): Likewise.
7482 * doc/posix-functions/stdout.texi (stdout): Likewise.
7483 * modules/freopen-safer-tests: New test.
7484 * tests/test-reopen-safer.c: New file.
7486 2009-11-05 Jim Meyering <meyering@redhat.com>
7488 maint.mk: Prohibit inclusion of "close-stream.h" without use.
7489 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7491 2009-11-05 Simon Josefsson <simon@josefsson.org>
7493 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7495 2009-11-05 Simon Josefsson <simon@josefsson.org>
7497 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7499 2009-11-05 Simon Josefsson <simon@josefsson.org>
7502 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7503 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7505 2009-11-05 Simon Josefsson <simon@josefsson.org>
7507 * tests/test-func.c: Also test value of __func__.
7509 2009-11-05 Simon Josefsson <simon@josefsson.org>
7511 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7512 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
7514 2009-11-05 Bruno Haible <bruno@clisp.org>
7517 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7518 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7519 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7521 2009-11-05 Bruno Haible <bruno@clisp.org>
7523 Tests for module 'inet_pton'.
7524 * modules/inet_pton-tests: New file.
7525 * tests/test-inet_pton.c: New file.
7527 2009-11-05 Bruno Haible <bruno@clisp.org>
7529 Tests for module 'inet_ntop'.
7530 * modules/inet_ntop-tests: New file.
7531 * tests/test-inet_ntop.c: New file.
7533 2009-11-04 Eric Blake <ebb9@byu.net>
7535 stdlib-safer: wrap all mkstemp variants
7536 * modules/mkostemp (configure.ac): Set witness.
7537 * modules/mkostemps (configure.ac): Likewise.
7538 * modules/mkstemps (configure.ac): Likewise.
7539 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7540 (mkstemps_safer): Wrap more functions.
7541 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7543 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7544 (mkstemps_safer): Implement the wrappers.
7546 mkstemps, mkostemps: new modules
7547 * modules/mkostemps: New module.
7548 * modules/mkstemps: Likewise.
7549 * lib/mkostemps.c (mkostemps): New file.
7550 * lib/mkstemps.c (mkstemps): Likewise.
7551 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7552 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7553 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7554 * modules/stdlib (Makefile.am): Substitute them.
7555 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7556 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7557 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7558 * doc/gnulib.texi (Glibc stdlib.h): Include them.
7559 * MODULES.html.sh (File system functions): Mention them.
7561 tempname: resync from glibc
7562 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
7563 same values for __GT_FILE as glibc. Abort even when assertions
7565 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7566 match its value otherwise. Allow idempotent inclusion.
7567 * lib/mkdtemp.c (mkdtemp): Adjust caller.
7568 * lib/mkostemp.c (mkostemp): Likewise.
7569 * lib/mkstemp.c (mkstemp): Likewise.
7570 * lib/tmpfile.c (tmpfile): Likewise.
7571 * NEWS: Document this.
7573 utimens: fix use of futimens on older Linux
7574 * lib/utimens.c (fdutimens): Use updated, rather than original,
7575 timespec to avoid bug in older Linux kernel.
7576 Reported by Simon Josefsson.
7578 2009-11-04 Bruno Haible <bruno@clisp.org>
7580 Make num_processors more flexible and consistent.
7581 * lib/nproc.h (enum nproc_query): New type.
7582 (num_processors): Add a 'query' argument.
7583 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7584 (num_processors): Add a 'query' argument. Test the value of the
7585 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7586 mingw, count the number of CPUs available for the current process.
7587 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7588 Check for sched_getaffinity and sched_getaffinity_np.
7589 * modules/nproc (Depends-on): Add c-ctype, extensions.
7590 * NEWS: Mention the change.
7592 2009-11-03 Bruno Haible <bruno@clisp.org>
7594 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7596 2009-11-03 Jim Meyering <meyering@redhat.com>
7598 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7599 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7602 2009-11-02 Eric Blake <ebb9@byu.net>
7604 mktime, timegm: share common declaration
7605 * lib/mktime-internal.h: New file.
7606 * lib/mktime.c: Use it rather than open-coding a declaration.
7607 * lib/timegm.c: Likewise.
7608 * modules/mktime (Files): Ship it.
7609 * modules/timegm (Files): Likewise.
7610 Suggested by Bruno Haible.
7612 test-update-copyright: update test to match script changes
7613 * tests/test-update-copyright.sh: Avoid hard-coding perl
7614 location. Don't update *.bak created by earlier runs.
7616 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
7617 Simon Josefsson <simon@josefsson.org>
7618 Bruno Haible <bruno@clisp.org>
7620 Fix link error on Solaris 8.
7621 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7622 also in libnsl. Define also INET_PTON_LIB.
7623 * modules/inet_pton (Link): New section.
7625 2009-11-02 Simon Josefsson <simon@josefsson.org>
7626 Bruno Haible <bruno@clisp.org>
7628 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7629 * modules/inet_ntop (Link): New section.
7630 Reported by Boyan Kasarov <bkasarov@gmail.com>.
7632 2009-11-02 Eric Blake <ebb9@byu.net>
7634 maint: avoid compiler warnings in m4 macros
7635 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7636 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7638 2009-11-02 Simon Josefsson <simon@josefsson.org>
7640 * m4/pmccabe2html.m4: Remove file.
7641 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
7642 function. Change maintainer.
7643 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7644 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
7647 2009-10-31 Eric Blake <ebb9@byu.net>
7649 fseeko: fix m4 regression
7650 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
7651 regression from 2009-10-27.
7652 Reported by Ralf Wildenhues.
7654 2009-10-31 Jim Meyering <meyering@redhat.com>
7656 inttostr: aesthetics and improved (compile-time) safety
7657 Define inttype_is_signed rather than inttype_is_unsigned,
7658 since the sole use is via "#if inttype_is_signed".
7659 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7660 inttype_is_unsigned.
7661 * lib/offtostr.c (inttype_is_signed): Likewise.
7662 * lib/uinttostr.c (inttype_is_signed): Likewise.
7663 * lib/umaxtostr.c (inttype_is_signed): Likewise.
7664 * lib/inttostr.c (inttostr): Use verify to cross-check the
7665 inttype_is_signed value and the signedness of the actual type.
7666 * modules/inttostr (Depends-on): Add verify.
7668 2009-10-30 Eric Blake <ebb9@byu.net>
7670 build: avoid compiler warnings
7671 * lib/fchmodat.c (lchmod): Mark unused variables.
7672 * lib/getopt.c (_getopt_initialize): Likewise.
7673 * lib/mktime.c (__mktime_internal): Provide prototype.
7674 * lib/inttostr.c (inttostr): Avoid compiler warning even with
7675 older gcc that do not understand #pragma GCC diagnostic.
7676 * lib/uinttostr.c (inttype_is_unsigned): Define.
7677 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7679 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7681 stat: fix compilation on AIX
7682 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7683 only see struct stat64.
7685 2009-10-30 Eric Blake <ebb9@byu.net>
7687 exclude: make more robust
7688 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7689 rather than masking a coding bug.
7690 Suggested by Bruno Haible.
7692 2009-10-30 Jim Meyering <meyering@redhat.com>
7694 perl scripts: remove #!/usr/bin/perl in favor of more portable...
7695 Rather than putting #!/usr/bin/perl on the first line,
7696 start with a variant of what's recommended by "man perlrun" that
7697 invokes the first "perl" program from your shell's search path.
7698 * build-aux/gitlog-to-changelog: Replace #!... as above.
7699 Add a "Local Variables" perl mode setting.
7700 Prompted by a patch from Ludovic Courtès.
7701 Improved by Eric Blake.
7702 * build-aux/useless-if-before-free: Likewise.
7703 * build-aux/announce-gen: Likewise.
7704 * build-aux/update-copyright: Likewise.
7706 2009-10-29 Eric Blake <ebb9@byu.net>
7708 filenamecat-lgpl: adjust clients
7709 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7711 * modules/renameat (Depends-on): Likewise.
7713 filenamecat: split into filenamecat-lgpl
7714 * modules/filenamecat-lgpl: New module.
7715 * modules/filenamecat (Files): Move library-safe files into
7717 (Depends-on): Add filenamecat-lgpl.
7718 (configure.ac): Declare witness.
7719 * lib/filenamecat.h (file_name_concat): Only declare when using
7721 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7723 * lib/filenamecat-lgpl.c: ...into new file.
7724 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7725 (gl_FILE_NAME_CONCAT): Use it.
7726 * MODULES.html.sh (File system functions): Mention new module.
7728 argp: avoid memory leak
7729 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7730 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7731 base_name, since the latter malloc()s and can call exit().
7732 Leak introduced 2006-07-03.
7734 dirname-lgpl: adjust clients that don't need full dirname
7735 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7736 * modules/filenamecat (Depends-on): Likewise.
7737 * modules/linkat (Depends-on): Likewise.
7738 * modules/mkancesdirs (Depends-on): Likewise.
7739 * modules/mkdir (Depends-on): Likewise.
7740 * modules/openat (Depends-on): Likewise.
7741 * modules/savewd (Depends-on): Likewise.
7742 * modules/rename (Depends-on): Likewise.
7743 (License): Relax license.
7744 * modules/mkdir-tests (Depends-on): Drop progname.
7745 (Makefile.am): Delete unneeded LDADD.
7746 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7748 dirname: split into dirname-lgpl
7749 * modules/dirname-lgpl: New module.
7750 * modules/dirname (Files): Move library-safe files into
7752 (Depends-on): Add dirname-lgpl.
7753 (configure.ac): Declare witness.
7754 * modules/double-slash-root (License): Relax license.
7755 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7757 * lib/dirname.c (dir_len, mdir_name): Move...
7758 * lib/dirname-lgpl.c: ...into new file.
7759 * lib/basename.c (last_component, base_len): Move...
7760 * lib/basename-lgpl.c: ...into new file.
7761 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7762 (gl_DIRNAME): Use it.
7763 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7765 * modules/dirname-tests (Depends-on): Add progname.
7766 * tests/test-dirname.c (program_name): Delete.
7768 mkdir: make safe for libraries
7769 * modules/mkdir (Depends-on): Drop xalloc.
7770 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7773 tests: avoid some compiler warnings
7774 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7776 * tests/test-memchr.c (main): Avoid type mismatch.
7777 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7778 * tests/test-base64.c (main): Likewise.
7779 * tests/test-getdelim.c (main): Likewise.
7780 * tests/test-gethostname.c (main): Likewise.
7781 * tests/test-getline.c (main): Likewise.
7782 * tests/test-netinet_in.c (main): Likewise.
7783 * tests/test-select.c (open_server_socket, main): Likewise.
7784 * tests/test-select-stdin.c (main): Likewise.
7785 * tests/test-sockets.c (main): Likewise.
7786 * tests/test-strsignal.c (main): Likewise.
7787 * tests/test-sys_select.c (main): Likewise.
7788 * tests/test-sys_socket.c (main): Likewise.
7789 * tests/test-u64.c (main): Likewise.
7790 * tests/test-xfprintf-posix.c (main): Likewise.
7791 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7793 sockets: avoid compiler warning
7794 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7796 maint: detect usage(1) and other suspicious exits
7797 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7799 2009-10-29 Jim Meyering <meyering@redhat.com>
7801 timespec: long-to-int truncation could make timespec_cmp malfunction
7802 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7803 a multiple of 2^32 nanoseconds as no difference.
7805 2009-10-28 Jim Meyering <meyering@redhat.com>
7807 fprintftime: wrap macro code argument in "do {...} while(0)"
7808 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7809 cpy macro must be a statement that can be followed by a semicolon.
7810 Now that the else clause contains a comment and is hence longer
7811 than one line, I require curly braces. That in turn requires
7812 that we wrap this code block in the standard do...while(0).
7814 fprintftime: remove stray semicolon from previous change
7815 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7817 fprintftime: avoid a warning about ignored fwrite return value
7818 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7819 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7821 * modules/fprintftime (Depends-on): Add ignore-value.
7823 exclude: avoid an unwarranted warning
7824 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7826 2009-10-27 Eric Blake <ebb9@byu.net>
7828 fseek: avoid compilation failure when fflush is replaced
7829 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7830 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7832 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7833 module is not in use; since REPLACE_FSEEK worked otherwise.
7834 (GNULIB_FTELLO): Likewise for ftell.
7835 Reported by Ian Beckwith and others.
7837 2009-10-27 Bruno Haible <bruno@clisp.org>
7839 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7840 Reported by Jim Meyering.
7842 2009-10-27 Jim Meyering <jim@meyering.net>
7843 Bruno Haible <bruno@clisp.org>
7845 Avoid warning despite dropping the return value of fwrite.
7846 * lib/unicodeio.c: Include ignore-value.h.
7847 (fwrite_success_callback): Explicitly ignore fwrite's return value.
7848 * modules/unicodeio (Depends-on): Add ignore-value.
7850 2009-10-26 Eric Blake <ebb9@byu.net>
7852 areadlinkat: fix fallback path
7853 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7856 2009-10-22 Pádraig Brady <P@draigBrady.com>
7858 Use a better IO block size for modern systems
7859 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7860 * lib/md2.c: Likewise.
7861 * lib/md4.c: Likewise.
7862 * lib/md5.c: Likewise.
7863 * lib/sha1.c: Likewise.
7864 * lib/sha256.c: Likewise.
7865 * lib/sha512.c: Likewise.
7867 2009-10-22 Eric Blake <ebb9@byu.net>
7869 tests: avoid several compiler warnings
7870 * tests/test-getcwd.c (main): Avoid buffer underflow.
7871 * tests/test-getdate.c (main): String literals are not safe with
7872 putenv, so use setenv. Declare unused argument.
7873 * modules/getdate-tests (Depends-on): Add setenv.
7874 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
7875 problems with string literals in char *.
7876 * tests/test-hash.c (main): Avoid shadowing declaration.
7877 (insert_new): Treat string literals as char const *.
7878 * tests/test-getopt.h (test_getopt): Likewise.
7879 (getopt_loop): Alter types to minimize casting elsewhere.
7880 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7881 (test_getopt_long_posix): Likewise.
7882 (do_getopt_long): Add wrapper to minimize casting.
7883 * tests/test-atexit.c (clear_temp_file): Use void.
7884 * tests/test-areadlink-with-size.c (main): Declare unused
7886 * tests/test-areadlink.c (main): Likewise.
7887 * tests/test-areadlinkat-with-size.c (main): Likewise.
7888 * tests/test-areadlinkat.c (main): Likewise.
7889 * tests/test-canonicalize-lgpl.c (main): Likewise.
7890 * tests/test-canonicalize.c (main): Likewise.
7891 * tests/test-dirent-safer.c (main): Likewise.
7892 * tests/test-dirname.c (main): Likewise.
7893 * tests/test-dup2.c (main): Likewise.
7894 * tests/test-fchdir.c (main): Likewise.
7895 * tests/test-fcntl-h.c (main): Likewise.
7896 * tests/test-fcntl-safer.c (main): Likewise.
7897 * tests/test-fdopendir.c (main): Likewise.
7898 * tests/test-fdutimensat.c (main): Likewise.
7899 * tests/test-fflush.c (main): Likewise.
7900 * tests/test-filenamecat.c (main): Likewise.
7901 * tests/test-filevercmp.c (main): Likewise.
7902 * tests/test-fopen-safer.c (main): Likewise.
7903 * tests/test-fopen.c (main): Likewise.
7904 * tests/test-fpending.c (main): Likewise.
7905 * tests/test-fpurge.c (main): Likewise.
7906 * tests/test-freading.c (main): Likewise.
7907 * tests/test-fstatat.c (main): Likewise.
7908 * tests/test-fsync.c (main): Likewise.
7909 * tests/test-futimens.c (main): Likewise.
7910 * tests/test-getndelim2.c (main): Likewise.
7911 * tests/test-gettimeofday.c (main): Likewise.
7912 * tests/test-getopt.c (main): Likewise.
7913 * tests/test-i-ring.c (main): Likewise.
7914 * tests/test-inttypes.c (main): Likewise.
7915 * tests/test-link.c (main): Likewise.
7916 * tests/test-lstat.c (main): Likewise.
7917 * tests/test-math.c (main): Likewise.
7918 * tests/test-md5.c (main): Likewise.
7919 * tests/test-memchr2.c (main): Likewise.
7920 * tests/test-memrchr.c (main): Likewise.
7921 * tests/test-mkdir.c (main): Likewise.
7922 * tests/test-mkdirat.c (main): Likewise.
7923 * tests/test-mkfifoat.c (main): Likewise.
7924 * tests/test-open.c (main): Likewise.
7925 * tests/test-openat-safer.c (main): Likewise.
7926 * tests/test-openat.c (main): Likewise.
7927 * tests/test-quotearg.c (main): Likewise.
7928 * tests/test-rawmemchr.c (main): Likewise.
7929 * tests/test-readlink.c (main): Likewise.
7930 * tests/test-remove.c (main): Likewise.
7931 * tests/test-rename.c (main): Likewise.
7932 * tests/test-renameat.c (main): Likewise.
7933 * tests/test-rmdir.c (main): Likewise.
7934 * tests/test-sha1.c (main): Likewise.
7935 * tests/test-signal.c (main): Likewise.
7936 * tests/test-sigaction.c (main): Likewise.
7937 * tests/test-stat.c (main): Likewise.
7938 * tests/test-stat-time.c (main): Likewise.
7939 * tests/test-stddef.c (main): Likewise.
7940 * tests/test-stdint.c (main): Likewise.
7941 * tests/test-stdio.c (main): Likewise.
7942 * tests/test-stdlib.c (main): Likewise.
7943 * tests/test-strchrnul.c (main): Likewise.
7944 * tests/test-strerror.c (main): Likewise.
7945 * tests/test-string.c (main): Likewise.
7946 * tests/test-strtod.c (main): Likewise.
7947 * tests/test-strverscmp.c (main): Likewise.
7948 * tests/test-symlink.c (main): Likewise.
7949 * tests/test-symlinkat.c (main): Likewise.
7950 * tests/test-sys_stat.c (main): Likewise.
7951 * tests/test-sys_time.c (main): Likewise.
7952 * tests/test-time.c (main): Likewise.
7953 * tests/test-unistd.c (main): Likewise.
7954 * tests/test-unlink.c (main): Likewise.
7955 * tests/test-unlinkat.c (main): Likewise.
7956 * tests/test-utimens.c (main): Likewise.
7957 * tests/test-utimensat.c (main): Likewise.
7958 * tests/test-version-etc.c (main): Likewise.
7959 * tests/test-wchar.c (main): Likewise.
7960 * tests/test-wctype.c (main): Likewise.
7961 * tests/test-xprintf-posix.c (main): Likewise.
7962 * tests/test-posixtm.c (main): Likewise.
7963 (STREQ): Delete unused macro.
7964 * tests/test-linkat.c (main): Declare unused arguments. Avoid
7966 * tests/test-memchr.c (main): Likewise.
7968 2009-10-21 Eric Blake <ebb9@byu.net>
7970 areadlinkat: avoid failure on older glibc
7971 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7972 rather than mis-comparing 0 against FUNC_RESULT of char*.
7974 2009-10-21 Bruno Haible <bruno@clisp.org>
7976 * modules/stpncpy (License): Relicense under LGPLv2+.
7977 Reported by David Lutterkort <lutter@redhat.com>.
7979 2009-10-20 Eric Blake <ebb9@byu.net>
7981 utimensat: work around Solaris 9 bug
7982 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7983 has trailing slash bugs.
7984 * tests/test-lutimens.h (test_lutimens): Enhance test.
7985 * tests/test-utimens.h (test_utimens): Likewise.
7986 * doc/posix-functions/utime.texi (utime): Enhance documentation.
7987 * doc/posix-functions/utimes.texi (utimes): Likewise.
7988 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7989 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7990 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7991 * doc/posix-functions/futimens.texi (futimens): Likewise.
7993 fdutimensat: new module
7994 * modules/fdutimensat: New file.
7995 * lib/fdutimensat.c (fdutimensat): Likewise.
7996 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7997 * MODULES.html.sh (File system functions): Mention module.
7998 * modules/fdutimensat-tests: New test.
7999 * tests/test-fdutimensat.c: Likewise.
8001 doc: regenerate INSTALL
8002 * doc/INSTALL: Reflect recent autoconf update.
8003 * doc/INSTALL.ISO: Likewise.
8004 * doc/INSTALL.UTF-8: Likewise.
8006 2009-10-20 Pádraig Brady <P@draigBrady.com>
8008 acl: warn if ACL support is not detected
8009 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8011 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
8013 * lib/nproc.h: Add extern "C" block for C++.
8015 2009-10-18 Reuben Thomas <rrt@sc3d.org>
8016 Bruno Haible <bruno@clisp.org>
8018 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8019 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8020 * doc/posix-functions/isalpha.texi: Likewise.
8021 * doc/posix-functions/isblank.texi: Likewise.
8022 * doc/posix-functions/iscntrl.texi: Likewise.
8023 * doc/posix-functions/isdigit.texi: Likewise.
8024 * doc/posix-functions/isgraph.texi: Likewise.
8025 * doc/posix-functions/islower.texi: Likewise.
8026 * doc/posix-functions/isprint.texi: Likewise.
8027 * doc/posix-functions/ispunct.texi: Likewise.
8028 * doc/posix-functions/isspace.texi: Likewise.
8029 * doc/posix-functions/isupper.texi: Likewise.
8030 * doc/posix-functions/isxdigit.texi: Likewise.
8032 2009-10-18 Bruno Haible <bruno@clisp.org>
8034 Tests for module 'isblank'.
8035 * modules/isblank-tests: New file.
8036 * tests/test-isblank.c: New file.
8038 New module 'isblank'.
8039 * lib/isblank.c: New file.
8040 * m4/isblank.m4: New file.
8041 * modules/isblank: New file.
8042 * doc/posix-functions/isblank.texi: Mention the new module.
8044 2009-10-18 Bruno Haible <bruno@clisp.org>
8047 * lib/ctype.in.h: New file.
8048 * m4/ctype.m4: New file.
8049 * modules/ctype: New file.
8050 * doc/posix-headers/ctype.texi: Mention the new module.
8052 2009-10-18 Jim Meyering <meyering@redhat.com>
8054 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8055 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8056 right after its initialization, rather than farther down.
8057 Keeping these in close proximity makes it easier to ensure
8058 that each such variable is initialized. E.g.,
8061 AC_SUBST([LIB_CLOCK_GETTIME])
8063 This change also increments these serial numbers.
8064 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8065 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8066 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8068 2009-10-18 Bruno Haible <bruno@clisp.org>
8070 Don't let environment variables perturb build.
8071 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8072 (gl_PREREQ_GETHRXTIME): ... not here.
8074 2009-10-18 Bruno Haible <bruno@clisp.org>
8076 Avoid symlink attack in localcharset module.
8077 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8078 (O_NOFOLLOW): Define fallback.
8079 (get_charset_aliases): Don't open the file if it is a symbolic link.
8080 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8082 (gl_FCNTL_H): Require it.
8083 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8084 * modules/localcharset (Files): Add m4/fcntl_h.m4.
8085 Reported by Fergal Glynn <fglynn@veracode.com>.
8087 2009-10-18 Bruno Haible <bruno@clisp.org>
8089 Implement nproc for mingw.
8090 * lib/nproc.c: Include <windows.h>
8091 (num_processors): On native Windows platforms, try GetSystemInfo.
8093 2009-10-18 Bruno Haible <bruno@clisp.org>
8095 Implement nproc for IRIX.
8096 * lib/nproc.c: Include <sys/sysmp.h>.
8097 (num_processors): On IRIX systems, try sysmp.
8098 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8100 2009-10-18 Bruno Haible <bruno@clisp.org>
8102 Implement nproc for HP-UX.
8103 * lib/nproc.c: Include <sys/pstat.h>
8104 (num_processors): On HP-UX systems, try pstat_getdynamic.
8105 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8108 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
8109 Bruno Haible <bruno@clisp.org>
8111 Implement nproc for NetBSD, OpenBSD.
8112 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8113 (ARRAY_SIZE): New macro.
8114 (num_processors): On BSD systems, try sysctl of HW_NCPU.
8115 * m4/nproc.m4: New file.
8116 * modules/nproc (Files): Add m4/nproc.m4.
8117 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8118 (Makefile.am): Instead, augment lib_SOURCES.
8120 2009-10-18 Bruno Haible <bruno@clisp.org>
8122 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8123 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8126 2009-10-16 Eric Blake <ebb9@byu.net>
8128 utimensat: new module
8129 * modules/utimensat: New file.
8130 * lib/utimensat.c (utimensat): Likewise.
8131 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8132 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8133 so we can work around Linux bugs.
8134 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8135 * modules/sys_stat (Makefile.am): Substitute them.
8136 * lib/sys_stat.in.h (utimensat): Declare it.
8137 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8138 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8139 * modules/utimensat-tests: New test.
8140 * tests/test-utimensat.c: Likewise.
8142 utimens: let lutimens work on non-symlinks
8143 * lib/utimens.c (lutimens): Fall back to utimens rather than
8144 failing with ENOSYS, when file is not a symlink.
8145 (utimens): Reduce redirection.
8146 * tests/test-lutimens.h (test_lutimens): Update test to cover
8148 * tests/test-utimens.h (test_utimens): Update test to cover
8150 * tests/test-utimens.c (main): Update caller.
8152 utimens: cache whether utimensat syscall works
8153 * lib/utimens.c (utimensat_works_really): New cache variable.
8154 (fdutimens, lutimens): Use it to avoid failing syscall.
8156 test-stat-time, test-utimens: improve portability
8157 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8158 ext4 on alpha, and for cygwin.
8159 * tests/test-utimens-common.h: New file.
8160 (nap): Factor delays into single function.
8161 * tests/test-lutimens.h (test_lutimens): Use new header.
8162 * tests/test-futimens.h (test_futimens): Likewise.
8163 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
8164 timestamps to occur from same machine, as was done previously for
8166 * modules/utimens-tests (Files): Ship new file.
8167 * modules/futimens-tests (Files): Likewise.
8168 Reported in part by Jim Meyering.
8170 sys_stat: sort replacement declarations
8171 * lib/sys_stat.in.h: Sort declarations.
8172 * lib/futimens.c (futimens): Fix typo.
8174 2009-10-15 Jim Meyering <meyering@redhat.com>
8176 don't let environment settings perturb build
8177 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8178 could cause a configure-time and/or build-time malfunction.
8179 Typically, a configure-time function-in-library test is performed
8184 prefix_saved_LIBS=$LIBS
8185 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8186 [test "$ac_cv_search_FUNC" = "none required" ||
8187 LIB_VAR=$ac_cv_search_FUNC])
8188 LIBS=$prefix_saved_LIBS
8190 However, in each of the files affected by this change, the LIB_VAR=
8191 initialization was omitted. Thus, when set in the environment, its
8192 value would propagate into generated Makefiles when FUNC is not found
8194 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8195 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8196 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8198 2009-10-14 Eric Blake <ebb9@byu.net>
8200 fchdir: avoid infinite recursion in mingw
8201 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8204 test-stat-time: port to mingw
8205 * tests/test-stat-time.c (force_unlink): Return a value.
8206 (test_ctime) [W32]: Fix compilation error.
8207 (nap): Don't call usleep with too large an argument. Use
8209 * doc/pastposix-functions/usleep.texi (usleep): Document the
8212 2009-10-13 Jim Meyering <meyering@redhat.com>
8214 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8215 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8216 * modules/pipe-filter-ii: Likewise.
8217 * modules/sys_socket-tests: Likewise.
8218 * modules/tsearch-tests: Likewise.
8219 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8220 (check): Depend on it.
8222 2009-10-12 Eric Blake <ebb9@byu.net>
8224 utimens-tests: port to NFS file systems
8225 * tests/test-utimens.h (test_utimens): Refactor utimecmp
8226 comparisons to avoid spurious failures from timestamp drift
8227 between NFS machines.
8229 2009-10-12 Eric Blake <ebb9@byu.net>
8231 stat-time-tests: minor cleanups
8232 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8233 * tests/test-stat-time.c (nap): Separate assignment from call.
8234 Suggested by Paolo Bonzini and Bruno Haible.
8236 sys_stat: guarantee struct timespec
8237 * lib/sys_stat.in.h (includes): Always include <time.h>
8238 * modules/sys_stat (Depends-on): Add time.
8239 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8240 mode_t permission values.
8241 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8242 get at subsecond timestamps.
8244 2009-10-10 Eric Blake <ebb9@byu.net>
8246 futimens: new module
8247 * modules/futimens: New file.
8248 * lib/futimens.c (futimens): Likewise.
8249 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8250 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8251 we can work around Linux bugs.
8252 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8253 * modules/sys_stat (Makefile.am): Substitute them.
8254 * lib/sys_stat.in.h (futimens): Declare it.
8255 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8256 * doc/posix-functions/futimens.texi (futimens): Likewise.
8257 * modules/futimens-tests: New test.
8258 * tests/test-futimens.c: Likewise.
8260 utimens: introduce fdutimens
8261 * lib/utimens.h (fdutimens): New prototype.
8262 * lib/utimens.c (gl_futimens): Move guts...
8263 (fdutimens): ...to new interface.
8264 * tests/test-utimens.c (do_fdutimens): Use it.
8266 utimens: add UTIME_NOW and UTIME_OMIT support
8267 * lib/utimens.c (validate_timespec, update_timespec): New helper
8269 (gl_futimens, lutimens): Use them.
8270 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8272 (Link): Mention resulting library dependency.
8273 * modules/utimecmp (Link): Likewise.
8274 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8275 (Makefile.am): Pick up library dependency.
8276 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8278 * tests/test-sys_stat.c: Test the definitions.
8279 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8280 * NEWS: Document library dependency.
8282 utimecmp: support symlink timestamps
8283 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8284 hashing when possible. Use pathconf when available.
8285 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8286 * modules/utimecmp (Depends-on): Add lstat.
8288 utimens: add lutimens interface
8289 * lib/utimens.c (lutimens): New function.
8290 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8291 * lib/utimens.h (lutimens): Declare new interface.
8292 * tests/test-utimens.c (main): Enhance test.
8293 * tests/test-lutimens.h (test_lutimens): New file.
8294 * modules/utimens-tests (Files): Distribute it.
8295 (Depends-on): Add symlink.
8296 (configure.ac): Check for usleep.
8298 utimens: validate futimens usage
8299 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8300 fewer syscalls on failure later on. Avoid compiler warning on
8302 * modules/utimens (Depends-on): Add dup2.
8305 * modules/utimens-tests: New test.
8306 * tests/test-utimens.h: New file.
8307 * tests/test-futimens.h: Likewise.
8308 * tests/test-utimens.c: Likewise.
8310 doc: mention timestamp portability issues
8311 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8313 * doc/posix-functions/utime.texi (utime): Likewise.
8314 * doc/posix-functions/utimes.texi (utimes): Likewise.
8315 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8317 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8319 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8320 Mention weakness with symlink timestamps.
8321 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8322 to utimensat/futimens instead.
8323 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8325 test-dup2: enhance test
8326 * tests/test-dup2.c (main): Also check AT_FDCWD.
8328 test-stat-time: avoid more spurious failures
8329 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8330 xfs; and avoid race if the two timestamps cross quantization edge.
8332 relocatable: prefer 'file system' over 'filesystem'
8333 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8334 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8335 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8336 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8337 * lib/relocatable.c (compute_curr_prefix): Likewise.
8339 2009-10-10 Jim Meyering <meyering@redhat.com>
8341 stat-time-tests: check for the usleep function
8342 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8344 2009-10-10 Bruno Haible <bruno@clisp.org>
8346 * modules/xnanosleep: Put the Link section after the Include section.
8348 2009-10-09 Eric Blake <ebb9@byu.net>
8350 dup2: work around FreeBSD 6.1 bug
8351 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8352 * doc/posix-functions/dup2.texi (dup2): Document it.
8353 Reported by Nelson H. F. Beebe and Jim Meyering.
8355 test-stat-time: port to buggy NFS clients
8356 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8357 (test_ctime): Also skip test if mtime and ctime are skewed.
8359 maint: prefer 'file system' over 'filesystem'
8360 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8361 * doc/posix-functions/lstat.texi (lstat): Likewise.
8362 * lib/file-has-acl.c (file_has_acl): Likewise.
8363 * lib/fwriteerror.c [TEST]: Likewise.
8364 * tests/test-areadlink.h (test_areadlink): Likewise.
8365 * tests/test-areadlinkat-with-size.c (main): Likewise.
8366 * tests/test-areadlinkat.c (main): Likewise.
8367 * tests/test-canonicalize-lgpl.c (main): Likewise.
8368 * tests/test-canonicalize.c (main): Likewise.
8369 * tests/test-fstatat.c (main): Likewise.
8370 * tests/test-linkat.c (main): Likewise.
8371 * tests/test-lstat.h (test_lstat_func): Likewise.
8372 * tests/test-mkdir.h (test_mkdir): Likewise.
8373 * tests/test-readlink.h (test_readlink): Likewise.
8374 * tests/test-remove.c (main): Likewise.
8375 * tests/test-rename.h (test_rename): Likewise.
8376 * tests/test-renameat.c (main): Likewise.
8377 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8378 * tests/test-symlink.h (test_symlink): Likewise.
8379 * tests/test-symlinkat.c (main): Likewise.
8380 * tests/test-unlink.h (test_unlink_func): Likewise.
8381 * tests/test-unlinkat.c (main): Likewise.
8383 maint: make realtime library usage explicit
8384 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8385 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8386 * modules/settime (Link): Likewise.
8387 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8389 test-stat-time: speed up execution
8390 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8392 (nap): New helper function.
8393 (prepare_test): Use it to reduce sleep time.
8394 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8396 * modules/stat-time-tests (configure.ac): Check for usleep.
8398 2009-10-09 Jim Meyering <meyering@redhat.com>
8400 selinux-h: always use getfilecon wrappers
8401 * lib/getfilecon.c: New file.
8402 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8403 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8404 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8405 (fgetfilecon): Provide a stub.
8406 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8407 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8408 file unconditionally.
8409 When <selinux/selinux.h> is found, arrange to use wrappers.
8410 * modules/selinux-h (Files): Add getfilecon.c.
8411 (Makefile.am): Substitute include-next-related bits
8412 into the now-always-generated selinux/selinux.h file.
8413 * doc/glibc-functions/lgetfilecon.texi: New file.
8414 * doc/glibc-functions/fgetfilecon.texi: New file.
8415 * doc/glibc-functions/getfilecon.texi: New file.
8416 * doc/glibc-functions/getfilecon-desc.texi: New file.
8417 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8418 which to pull in the new files.
8419 * MODULES.html.sh (Misc): Add selinux-h.
8421 2009-10-08 Jim Meyering <meyering@redhat.com>
8423 unistd: fix comment typo
8424 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8426 2009-10-08 Eric Blake <ebb9@byu.net>
8428 areadlink: use SIZE_MAX consistently
8429 * modules/areadlink (Depends-on): Add stdint.
8430 * modules/areadlink-with-size (Depends-on): Likewise.
8431 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8432 gives NULL; drop sys/types, since unistd gives size_t; and add
8433 stdint for SIZE_MAX.
8434 (SIZE_MAX): Rely on headers.
8435 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8437 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8438 (SIZE_MAX): Likewise.
8439 (INITIAL_BUF_SIZE): Turn into enum.
8440 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8442 2009-10-08 Jim Meyering <meyering@redhat.com>
8444 areadlinkat: avoid compilation failure
8445 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8446 Fix typo in comment.
8448 2009-10-07 Eric Blake <ebb9@byu.net>
8450 areadlinkat-with-size: new module
8451 * modules/areadlinkat-with-size: New module.
8452 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8453 * lib/areadlink.h (areadlinkat): Declare it.
8454 * MODULES.html.sh (File system functions): Mention it.
8455 * modules/areadlinkat-with-size-tests: New test.
8456 * tests/test-areadlinkat-with-size.c: New file.
8458 xreadlinkat: new module
8459 * modules/xreadlinkat: New module.
8460 * lib/xreadlinkat.c (xreadlinkat): New file.
8461 * lib/xreadlink.h (xreadlinkat): Declare it.
8462 * MODULES.html.sh (File system functions): Mention it.
8464 areadlinkat: new module
8465 * lib/at-func.c (FUNC_FAIL): New define.
8466 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8467 * modules/areadlinkat: New module.
8468 * lib/linkat.c (areadlinkat): Move...
8469 * lib/areadlinkat.c (areadlinkat): ...to new file.
8470 * lib/areadlink.h (areadlinkat): Declare it.
8471 * modules/linkat (Depends-on): Add areadlinkat.
8472 * MODULES.html.sh (File system functions): Mention it.
8473 * modules/areadlinkat-tests: New test.
8474 * tests/test-areadlinkat.c: New file.
8476 areadlink, areadlink-with-size: add tests
8477 * modules/areadlink-tests: New test.
8478 * modules/areadlink-with-size-tests: Likewise.
8479 * tests/test-areadlink.h: New file.
8480 * tests/test-areadlink.c: Likewise.
8481 * tests/test-areadlink-with-size.c: Likewise.
8483 maint: minor cleanups
8484 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8485 _UNUSED_PARAMETER_ instead.
8486 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8487 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8488 * modules/linkat-tests (Files): Distribute test-link.h.
8490 openat, utimens: whitespace cleanup
8491 * lib/openat.c: Prefer space throughout, rather than mix of 8
8493 * lib/at-func.c: Likewise.
8494 * lib/utimens.c: Likewise.
8496 openat: avoid using wrong fd
8497 * lib/openat.c (openat_permissive): Reject user's fd if saving the
8498 working directory chooses same fd.
8499 * lib/at-func.c (AT_FUNC_NAME): Likewise.
8501 mkdir, mkdirat: fix cygwin 1.5.x bug
8502 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8503 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8504 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8506 (gl_PREREQ_MKDIR): Delete unused macro.
8507 * modules/mkdir (Files): Track file rename.
8508 (configure.ac): Update macro name.
8509 * modules/openat (Depends-on): Add mkdir.
8510 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8512 mkdir, mkdirat: add tests
8513 * modules/mkdir-tests: New test.
8514 * tests/test-mkdir.h: New file.
8515 * tests/test-mkdir.c: Likewise.
8516 * tests/test-mkdirat.c: Likewise.
8517 * modules/openat-tests (Files): Add new files.
8518 (Makefile.am): Run new test.
8520 2009-10-06 Eric Blake <ebb9@byu.net>
8522 doc: tweak *at function documentation
8523 * doc/posix-functions/faccessat.texi (faccessat): Mention
8524 known issue with replacement.
8525 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8526 * doc/posix-functions/linkat.texi (linkat): Likewise.
8527 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8528 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8529 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8530 * doc/posix-functions/renameat.texi (renameat): Likewise.
8531 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8533 openat: fix GNU/Hurd bug in unlinkat
8534 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8536 * doc/posix-functions/unlink.texi (unlink): Document this.
8537 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8539 fdopendir: fix GNU/Hurd bug
8540 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8541 allowing non-directory fds.
8542 * lib/fdopendir.c (rpl_fdopendir): Work around it.
8543 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8544 * modules/dirent (Makefile.am): Substitute it.
8545 * lib/dirent.in.h (fdopendir): Declare replacement.
8546 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8547 * tests/test-fdopendir.c (main): Test something other than
8548 /dev/null, since on Hurd that behaves like a directory.
8550 test-symlink: port to GNU/Hurd
8551 * tests/test-symlink.h (test_symlink): Relax expected errno.
8553 doc: tweak more cygwin information
8554 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8555 now compatible with glibc.
8556 * doc/posix-functions/getopt.texi (getopt): Likewise.
8558 getopt-gnu: add another test
8559 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8560 guarantee behavior relied on by m4.
8561 * tests/test-getopt.c (main): Use it.
8562 * modules/getopt-posix-tests (Depends-on): Add setenv.
8563 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8565 getopt: fix compilation on darwin
8566 * lib/getopt.in.h (includes): Leave breadcrumbs during system
8568 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8569 Reported by Ludovic Courtès.
8571 2009-10-06 Bruno Haible <bruno@clisp.org>
8573 * modules/size_max (Description): Discourage its use.
8574 Reported by Simon Josefsson.
8576 2009-10-06 Jim Meyering <meyering@redhat.com>
8578 linkat: avoid compilation failure
8579 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8581 2009-10-05 Eric Blake <ebb9@byu.net>
8583 linkat: support Linux 2.6.17
8584 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8585 linkat on Linux, but allow cache variable override.
8586 * lib/linkat.c (rpl_linkat): Define override.
8587 * modules/linkat (Depends-on): Add symlinkat.
8588 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8589 * modules/unistd (Makefile.am): Substitute it.
8590 * lib/unistd.in.h (linkat): Declare replacement.
8591 Reported by Pádraig Brady.
8593 quotearg: port test to systems with C.UTF-8 locale
8594 * tests/test-quotearg.c (struct result_strings): Add another
8595 member, differentiating between C.ASCII and C.UTF-8 handling.
8596 (compare_strings): Add parameter.
8597 (main): Adjust all callers.
8599 getopt: avoid clash with FreeBSD _getopt_internal
8600 * lib/getopt.in.h (_getopt_internal): Override the name.
8601 * lib/getopt_int.h (includes): Pick up any overrides.
8602 Reported by Reuben Thomas.
8604 hash: allow C89 compilation
8605 * lib/hash.c (check_tuning): Move declaration before statement.
8606 Reported by Reuben Thomas.
8608 2009-10-05 Karl Berry <karl@gnu.org>
8610 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8612 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
8613 Bruno Haible <bruno@clisp.org>
8615 * lib/uname.c (uname): Use a table-driven algorithm to compute
8616 Windows NT versions.
8618 2009-10-04 Bruno Haible <bruno@clisp.org>
8620 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8621 program_invocation_short_name.
8622 * modules/progname (configure.ac): Test for presence of
8623 program_invocation_short_name.
8624 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8626 2009-10-04 Bruno Haible <bruno@clisp.org>
8628 * lib/progname.c (set_program_name): Fix comment.
8629 Reported by Jim Meyering.
8631 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8632 Bruno Haible <bruno@clisp.org>
8634 * lib/uname.c: Include <string.h>.
8635 (uname): Do only one call to GetVersionEx in the common case.
8637 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8638 Bruno Haible <bruno@clisp.org>
8640 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8641 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8642 (uname): Add support for Windows CE and various non-x86 CPU types.
8644 2009-10-03 Bruno Haible <bruno@clisp.org>
8646 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8647 invocation to tests/configure.ac.
8648 Reported by Ian Beckwith <ianb@erislabs.net>.
8650 2009-10-02 Eric Blake <ebb9@byu.net>
8652 fchdir: avoid compiler warning
8653 * lib/fchdir.c (canonicalize_file_name)
8654 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8656 test-open: support mingw errno values
8657 * tests/test-open.h (test_open): Relax test.
8658 * tests/test-fopen.h (test_fopen): Likewise.
8659 * tests/test-openat-safer.c (main): Likewise.
8661 open: fix opening directory on mingw
8662 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8664 test-open: on GNU/Hurd, /dev/null is a directory
8665 * tests/test-fopen.h (main): Rename...
8666 (test_fopen): ...to this. Use a guaranteed non-directory when
8667 confirming open behavior on trailing slash.
8668 * tests/test-openat-safer.c (main): Likewise.
8669 * tests/test-open.h (main): Likewise....
8670 (test_open): ...to this.
8671 * tests/test-fopen.c (main): Adjust caller.
8672 * tests/test-fopen-safer.c (main): Likewise.
8673 * tests/test-open.c (main): Likewise.
8674 * tests/test-fcntl-safer.c (main): Likewise.
8675 Reported by Samuel Thibault.
8677 rename, fchdir: don't ignore chdir failure
8678 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8679 * lib/rename.c (rpl_rename) [W32]: Likewise.
8680 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8681 an empty destination directory if source cannot be renamed,
8682 although there is still possibility for failure.
8683 * doc/posix-functions/rename.texi (rename): Document the race.
8684 Reported by Jim Meyering.
8686 maint: cleanup whitespace in recent commits
8687 * lib/rename.c (rpl_rename): Remove tabs.
8688 * tests/test-link.h (test_link): Likewise.
8689 * lib/fchdir.c (get_name): Likewise.
8690 Reported by Jim Meyering.
8692 2009-10-02 Ben Pfaff <blp@gnu.org>
8694 relocatable-prog-wrapper: Add missing dependency on
8696 * modules/relocatable-prog-wrapper: Add dependency.
8697 Reported by Ian Beckwith <ianb@erislabs.net>.
8699 2009-10-02 Eric Blake <ebb9@byu.net>
8701 renameat: fix Solaris bugs
8702 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8704 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8705 * modules/stdio (Makefile.am): Substitute it.
8706 * lib/stdio.in.h (renameat): Declare replacement.
8707 * lib/renameat.c (rpl_renameat): Implement fix.
8709 renameat: new module
8710 * modules/renameat: New file.
8711 * lib/renameat.c (renameat): Likewise.
8712 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8713 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8714 * modules/stdio (Makefile.am): Substitute them.
8715 * lib/stdio.in.h (renameat): Declare it.
8716 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8717 * doc/posix-functions/renameat.texi (renameat): Likewise.
8718 * modules/renameat-tests: New test.
8719 * tests/test-renameat.c: Likewise.
8721 rename: fix mingw bugs
8722 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8723 directory overwrite bugs.
8725 rename: fix another cygwin 1.5 bug
8726 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8728 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8729 unnecessary cygwin workarounds. Also work around bug with moving
8730 full directory onto an empty one.
8731 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8733 rename-dest-slash: merge into rename module
8734 * modules/rename-dest-slash (Status): Mark obsolete.
8735 (Depends-on): Add rename.
8736 (Files): Let rename do it all.
8737 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8738 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8739 * m4/rename-dest-slash.m4: ...so this file can be deleted.
8740 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8741 * lib/rename.c (rpl_rename): Update comments.
8743 rename: fix cygwin 1.5.x bugs
8744 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8745 * lib/rename.c (rpl_rename): Work around them.
8746 * modules/rename (Depends-on): Add same-inode.
8748 rename: fix Solaris 10 bug
8749 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8750 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8753 rename: fix Solaris 9 bug
8754 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8755 on non-directory. Avoid calling exit.
8756 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8758 * modules/rename-tests (Depends-on): Drop lstat.
8759 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8760 (gl_PREREQ_RENAME): Delete unused macro.
8762 rename-dest-slash: fix NetBSD bug
8763 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8765 * modules/rename-dest-slash (Depends-on): Add same-inode.
8767 rename-tests: new test, exposes several platform bugs
8768 * modules/rename-tests: New file.
8769 * tests/test-rename.h: Likewise.
8770 * tests/test-rename.c: Likewise.
8771 * doc/posix-functions/rename.texi (rename): Improve documentation,
8772 including bugs that will eventually be fixed in gnulib.
8774 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8776 * lib/uname.c: Include <stdlib.h>
8777 (uname): Assume version info is available.
8779 2009-10-02 Jim Meyering <meyering@redhat.com>
8781 gnu-web-doc-update: correct --help output
8782 * build-aux/gnu-web-doc-update: Make --help output relevant.
8784 gnu-web-doc-update: add standard options
8785 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8787 gnu-web-doc-update: New module.
8788 Use this script to automatically update the on-line web documentation
8789 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8790 * modules/gnu-web-doc-update: New file, from coreutils.
8791 * build-aux/gnu-web-doc-update: New script.
8793 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8795 link: LoadLibrary is not needed.
8796 * lib/link.c: Use GetModuleHandle.
8798 2009-10-01 Eric Blake <ebb9@byu.net>
8800 getopt: bump serial number
8801 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8804 tests: tighten link, rmdir, and remove tests
8805 * tests/test-link.h (includes): No need to use <config.h> here.
8806 Clean up if directory hard link was created, otherwise test for
8808 * tests/test-linkat.c (main): Simplify.
8809 * tests/test-remove.c (main): Enhance test for trailing '.'.
8810 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8812 2009-10-01 Jim Meyering <meyering@redhat.com>
8814 maint.mk: requiring "make major" was annoying, for a "minor" release.
8815 What is intended is "stable", to contrast with alpha and beta,
8816 so require "make stable", not "make major".
8817 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8818 (get_tool_versions): Likewise.
8819 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8821 2009-09-30 Ben Pfaff <blp@gnu.org>
8823 Fix broken build of replacement for Windows tmpfile().
8824 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8825 flags argument added along with the 'mkostemp' module.
8827 2009-09-28 Bruno Haible <bruno@clisp.org>
8829 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8830 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8832 (gl_list_remove): Update.
8833 * lib/gl_list.c (gl_list_remove): Update.
8834 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8836 (gl_oset_remove): Update.
8837 * lib/gl_list.c (gl_oset_remove): Update.
8838 Reported by Eric Blake.
8840 2009-09-28 Eric Blake <ebb9@byu.net>
8842 doc: mention yet more cygwin 1.7 status
8843 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8845 * doc/glibc-functions/execvpe.texi (execvpe): New file.
8846 * doc/gnulib.texi (Glibc unistd.h): Mention it.
8848 argp: fix test failure
8849 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8850 that are not upper-case. Pass correct range to tolower.
8852 2009-09-27 Jim Meyering <meyering@redhat.com>
8854 test-yesno: work around sparc-dash here-document infelicity
8855 Without this change, the literal \177 byte in a here document
8856 would make dash 0.5.5.1-3 access uninitialized memory.
8857 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8858 Instead, use a marker, "@", and filter through tr to create the desired
8859 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8861 2009-09-27 Bruno Haible <bruno@clisp.org>
8863 Disable untested support for new flavours of ACLs on AIX.
8864 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8866 * lib/set-mode-acl.c (qset_acl): Likewise.
8868 2008-12-07 Bruno Haible <bruno@clisp.org>
8870 Add support for new flavours of ACLs on AIX. (Untested.)
8871 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8872 (file_has_acl): Add support for newer AIX.
8873 * lib/set-mode-acl.c (qset_acl): Likewise.
8874 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8875 Rainer Tammer <tammer@tammer.net>.
8877 2009-09-26 Eric Blake <ebb9@byu.net>
8879 argp: fix compilation of getopt
8880 * lib/getopt.in.h (includes): Use different guard than glibc.
8881 Reported by Sergey Poznyakoff.
8883 doc: mention more cygwin 1.7 status
8884 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8886 * doc/posix-functions/execl.texi (execl): Likewise.
8887 * doc/posix-functions/execle.texi (execle): Likewise.
8888 * doc/posix-functions/execlp.texi (execlp): Likewise.
8889 * doc/posix-functions/execv.texi (execv): Likewise.
8890 * doc/posix-functions/execve.texi (execve): Likewise.
8891 * doc/posix-functions/execvp.texi (execvp): Likewise.
8892 * doc/glibc-functions/canonicalize_file_name.texi
8893 (canonicalize_file_name): Cygwin 1.7 now provides this.
8894 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8895 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8896 on AT_SYMLINK_NOFOLLOW.
8898 2009-09-24 Eric Blake <ebb9@byu.net>
8900 test-linkat: make test more robust
8901 * tests/test-linkat.c (main): Avoid collision with EEXIST.
8903 getopt: fix inclusion guards for cygwin
8904 * modules/getopt-posix (Depends-on): Add include-next.
8905 (Makefile.am): Substitute more items in replacement header.
8906 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8908 * lib/getopt.in.h (includes): Use split inclusion guard, and
8909 prefer <getopt.h> over include <unistd.h> when one is present.
8910 (option): Also override name of 'struct option'.
8912 same-inode: revert prior change; it is not yet ready
8913 * NEWS: Undo mention of this change.
8914 * lib/same-inode.h (same-inode.h): Undo tri-state change.
8915 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8916 * lib/cycle-check.c (cycle_check): Likewise.
8917 * lib/same.c (same_name): Likewise.
8918 * lib/at-func2.c (at_func2): Likewise.
8920 2009-09-23 Eric Blake <ebb9@byu.net>
8923 * modules/linkat: New file.
8924 * lib/at-func2.c (at_func2): Likewise.
8925 * lib/linkat.c (linkat): Likewise.
8926 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8927 * lib/openat-priv.h (at_func2): Add declaration.
8928 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8929 * modules/unistd (Makefile.am): Substitute them.
8930 * lib/unistd.in.h (linkat): Declare it.
8931 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8932 * doc/posix-functions/linkat.texi (linkat): Likewise.
8933 * doc/posix-functions/link.texi (link): Tweak wording.
8934 * tests/test-link.c (main): Move guts...
8935 * tests/test-link.h (test_link): ...into new file.
8936 * modules/linkat-tests: New test.
8937 * tests/test-linkat.c: Likewise.
8938 * modules/link-tests (Files): Ship new file.
8939 (Depends-on): Add stdbool.
8941 dirname: add library-safe mdir_name
8942 * lib/dirname.h (mdir_name): New prototype.
8943 * lib/dirname.c (dir_name): Move guts...
8944 (mdir_name): ...to new function that avoids xalloc_die.
8946 fchdir: another mingw fix
8947 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8948 * lib/fchdir.c (get_name): New helper method; skips canonicalize
8949 on mingw (where it has not yet been ported), and make it optional
8951 (_gl_register_fd): Use it.
8953 same-inode: make SAME_INODE tri-state, to port to mingw
8954 * NEWS: Mention this change.
8955 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8956 st_ino always being 0.
8957 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8958 * lib/cycle-check.c (cycle_check): Likewise.
8959 * lib/same.c (same_name): Likewise.
8961 lstat: avoid mingw compilation error
8962 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8963 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8965 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8967 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8968 the checks for lstat.
8969 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8971 link: fix test failure on Solaris 9
8972 * lib/link.c (rpl_link): Don't assume link will catch bogus
8973 trailing slash on source.
8975 test-symlinkat: enhance test
8976 * tests/test-readlink.c (main): Move guts...
8977 * tests/test-readlink.h (test_readlink): ...into new file.
8978 * tests/test-symlink.c (main): Move guts...
8979 * tests/test-symlink.h (test_symlink): ...into new file.
8980 * tests/test-symlinkat.c (main): Use new files for further
8982 (do_symlink, do_readlink): New helper functions.
8983 * modules/symlink-tests (Files): Ship new file.
8984 (Depends-on): Add stdbool.
8985 * modules/readlink-tests (Files): Ship new file.
8986 (Depends-on): Add stdbool.
8987 * modules/symlinkat-tests (Files): Use new files.
8989 2009-09-23 Eric Blake <ebb9@byu.net>
8991 readlink: document portability issue with symlink length
8992 * doc/posix-functions/lstat.texi (lstat): Mention that some file
8993 systems have bogus st_size on symlinks, and mention the
8994 areadlink-with-size module.
8995 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8996 * doc/posix-functions/readlink.texi (readlink): Mention the
8997 areadlink module, and ERANGE failure.
8998 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8999 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9001 readlink: fix Solaris 9 bug with trailing slash
9002 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9003 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9004 * doc/posix-functions/readlink.texi (readlink): Document this.
9005 * modules/readlink-tests: New test.
9006 * tests/test-readlink.c: Likewise.
9008 readlink: fix cygwin 1.5.x bug with return type
9009 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9010 * lib/unistd.in.h (readlink): Use ssize_t.
9011 * lib/readlink.c (readlink): Likewise.
9012 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9013 * modules/unistd (Makefile.am): Substitute it.
9014 * lib/unistd.in.h (readlink): Declare replacement.
9015 * doc/posix-functions/readlink.texi (readlink): Document this.
9017 symlink: use throughout gnulib
9018 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9019 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9020 symlink is not used.
9021 * modules/symlinkat (Depends-on): Add symlink.
9022 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9023 * modules/canonicalize-tests (Depends-on): Likewise.
9024 * modules/lstat-tests (Depends-on): Likewise.
9025 * modules/openat-tests (Depends-on): Likewise.
9026 * modules/remove-tests (Depends-on): Likewise.
9027 * modules/rmdir-tests (Depends-on): Likewise.
9028 * modules/unlink-tests (Depends-on): Likewise.
9029 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9030 * tests/test-canonicalize.c (symlink): Likewise.
9031 * tests/test-fstatat.c (symlink): Likewise.
9032 * tests/test-lstat.c (symlink): Likewise.
9033 * tests/test-remove.c (symlink): Likewise.
9034 * tests/test-rmdir.c (symlink): Likewise.
9035 * tests/test-unlink.c (symlink): Likewise.
9036 * tests/test-unlinkat.c (symlink): Likewise.
9038 symlink: new module, for Solaris 9 bug
9039 * modules/symlink: New file.
9040 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9041 * lib/symlink.c: Likewise.
9042 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9043 * modules/unistd (Makefile.am): Substitute them.
9044 * lib/unistd.in.h (symlink): Declare replacement.
9045 * MODULES.html.sh (File system functions): Mention it.
9046 * doc/posix-functions/symlink.texi (symlink): Likewise.
9047 * modules/symlink-tests: New test.
9048 * tests/test-symlink.c: Likewise.
9050 2009-09-23 Bruno Haible <bruno@clisp.org>
9052 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9054 Test case: gnulib-tool --import --with-tests atexit inttypes.
9055 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9057 2009-09-23 Bruno Haible <bruno@clisp.org>
9059 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9060 subcommand, not in a subshell.
9062 2009-09-22 Eric Blake <ebb9@byu.net>
9064 unistd: sort replacement declarations
9065 * lib/unistd.in.h: Sort declarations.
9067 open, openat: minor optimization
9068 * lib/open.c (open): If open succeeded, len is non-zero.
9069 * lib/openat.c (rpl_openat): Likewise.
9071 link-follow: ensure correct result
9072 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9073 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9074 distinguish between possible failures.
9076 2009-09-21 Eric Blake <ebb9@byu.net>
9078 fts: avoid compiler warning
9079 * lib/fts.c (dirent_inode_sort_may_be_useful)
9080 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9082 2009-09-19 Bruno Haible <bruno@clisp.org>
9084 * lib/progreloc.c (canonicalize_file_name): New declaration.
9086 2009-09-19 Eric Blake <ebb9@byu.net>
9089 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9091 openat: fix openat bugs on Solaris 9
9092 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9093 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9094 * modules/openat (Depends-on): Add open.
9095 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9096 * modules/fcntl-h (Makefile.am): Substitute it.
9097 * lib/fcntl.in.h (openat): Declare replacement.
9098 * doc/posix-functions/openat.texi (openat): Document this.
9100 openat: move fstatat and unlinkat into correct files
9101 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9103 * lib/openat.c (fstatat, unlinkat): Move...
9104 * lib/fstatat.c (fstatat): ...into correct files.
9105 * lib/unlinkat.c (unlinkat): Likewise.
9107 openat: fix unlinkat bugs on Solaris 9
9108 * lib/unlinkat.c (unlinkat): New file.
9109 * modules/openat (Depends-on): Add unlink.
9110 (Files): Distribute it.
9111 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9112 trailing slash behavior is broken.
9113 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9114 * modules/unistd (Makefile.am): Substitute it.
9115 * lib/unistd.in.h (unlinkat): Declare replacement.
9116 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9118 openat: fix fstatat bugs on Solaris 9
9119 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9121 * doc/posix-functions/fstatat.texi (fstatat): Document this.
9123 test-unlinkat: enhance test, to expose Solaris 9 bug
9124 * tests/test-unlink.c (main): Factor guts...
9125 * tests/test-unlink.h (test_rmdir_func): ...into new file.
9126 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9127 * tests/test-rmdir.c (main): Adjust caller.
9128 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
9129 (unlinker): New helper function.
9130 (rmdirat): Enhance check.
9131 * modules/rmdir-tests (Depends-on): Add stdbool.
9132 * modules/unlink-tests (Depends-on): Likewise.
9133 (Files): Add test-unlink.h.
9134 * modules/openat-tests (Files): Likewise.
9135 (Depends-on): Add unlinkdir.
9137 test-fstatat: new test, to expose Solaris 9 bugs
9138 * tests/test-stat.c (main): Factor guts...
9139 * tests/test-stat.h (test_stat_func): ...into new file.
9140 * tests/test-lstat.c (main): Factor guts...
9141 * tests/test-lstat.h (test_lstat_func): ...into new file.
9142 * tests/test-fstatat.c: New file.
9143 * modules/stat-tests (Files): Add test-stat.h.
9144 * modules/lstat-tests (Files): Add test-lstat.h.
9145 (Depends-on): Add stdbool.
9146 * modules/openat-tests (Depends-on): Add pathmax.
9147 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9148 (Makefile.am): Run new test.
9150 remove: new module, for mingw and Solaris 9 bugs
9151 * modules/remove: New file.
9152 * lib/remove.c: Likewise.
9153 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9154 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9155 * modules/stdio (Makefile.am): Use them.
9156 * lib/stdio.in.h (remove): Declare replacement.
9157 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9158 * doc/posix-functions/remove.texi (remove): Likewise.
9159 * modules/remove-tests: New test.
9160 * tests/test-remove.c: Likewise.
9162 unlink: new module, for Solaris 9 bug
9163 * modules/unlink: New file.
9164 * lib/unlink.c: Likewise.
9165 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9166 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9167 * modules/unistd (Makefile.am): Use them.
9168 * lib/unistd.in.h (stat): Declare replacement.
9169 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9170 * doc/posix-functions/unlink.texi (unlink): Likewise.
9171 * modules/unlink-tests: New test.
9172 * tests/test-unlink.c: Likewise.
9174 lstat: fix Solaris 9 bug
9175 * lib/lstat.c (lstat): Also check for trailing slash on
9176 non-symlink, non-directories. Use stat module to simplify logic.
9177 * doc/posix-functions/lstat.texi (lstat): Document it.
9178 * modules/lstat-tests (Depends-on): Add errno, same-inode.
9179 (configure.ac): Check for symlink.
9180 * tests/test-lstat.c (main): Add more tests.
9182 stat: add as dependency to other modules
9183 * modules/chown (Depends-on): Add stat.
9184 * modules/euidaccess (Depends-on): Likewise.
9185 * modules/fchdir (Depends-on): Likewise.
9186 * modules/isdir (Depends-on): Likewise.
9187 * modules/link (Depends-on): Likewise.
9188 * modules/lstat (Depends-on): Likewise.
9189 * modules/mkdir-p (Depends-on): Likewise.
9190 * modules/modechange (Depends-on): Likewise.
9191 * modules/open (Depends-on): Likewise.
9192 * modules/readlink (Depends-on): Likewise.
9193 * modules/same (Depends-on): Likewise.
9195 stat: fix Solaris 9 bug
9196 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9198 * lib/stat.c (rpl_stat): Work around it.
9199 * doc/posix-functions/stat.texi (stat): Update documentation.
9201 stat: new module, for mingw bug
9202 * modules/stat: New file.
9203 * lib/stat.c: Likewise.
9204 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9205 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9206 * modules/sys_stat (Makefile.am): Use them.
9207 * lib/sys_stat.in.h (stat): Declare replacement.
9208 * lib/openat.c (fstatat): Deal with lstat and stat being function
9210 * modules/openat (Depends-on): Add inline.
9211 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9212 * doc/posix-functions/stat.texi (stat): Likewise.
9213 * modules/stat-tests: New test.
9214 * tests/test-stat.c: Likewise.
9216 2009-09-19 Jim Meyering <meyering@redhat.com>
9218 syntax-check: detect unnecessary inclusion of canonicalize.h
9219 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9221 2009-09-19 Eric Blake <ebb9@byu.net>
9223 canonicalize-lgpl: adjust clients to use correct header
9224 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9225 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9226 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9227 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9228 * lib/progreloc.c (includes): Likewise.
9230 2009-09-19 Jim Meyering <meyering@redhat.com>
9232 test-posixtm.c: correct a comment
9233 * tests/test-posixtm.c: Correct first-line comment.
9234 Spotted by Eric Blake.
9236 2009-09-16 Jim Meyering <meyering@redhat.com>
9238 posixtm-tests: make T const-correct; add a test case
9239 * tests/test-posixtm.c (T): Declare const.
9240 Add a test for -(2^31+1).
9241 Remove useless can-succeed-only-in-2002 test.
9243 posixtm-tests: adjust the sole failing test
9244 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9245 expected output matches what mktime now produces. Cross-checked via
9246 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9248 posixtm: move #ifdef'd tests into a new module
9249 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
9250 * tests/test-posixtm.c: ... this new file.
9251 * modules/posixtm-tests: New module.
9253 2009-09-19 Eric Blake <ebb9@byu.net>
9255 openat: simplify use of at-func.c
9256 * lib/at-func.c (includes): Include prerequisites here, to
9257 simplify requirements on client files.
9258 * lib/openat-priv.h: Add double-inclusion guard.
9259 * lib/faccessat.c (includes): Simplify.
9260 * lib/fchmodat.c (includes): Likewise.
9261 * lib/fchownat.c (includes): Likewise.
9262 * lib/mkdirat.c (includes): Likewise.
9263 * lib/mkfifoat.c (includes): Likewise.
9264 * lib/symlinkat.c (includes): Likewise.
9266 openat: allow return of fd 0
9267 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9268 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9270 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9271 <fcntl.h>; this module does not leak fds.
9272 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9273 must be allowed to return 0, leaving openat_safer to add the
9275 (openat_permissive): Avoid writing to just-opened fd 2 if
9276 restoring the current directory fails.
9277 * lib/openat-die.c (openat_restore_fail): Add comment.
9278 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9279 (save_cwd): Guarantee safe fd, but without use of open_safer.
9280 * tests/test-openat.c: New test.
9281 * modules/openat-tests (Files, Makefile.am): Distribute and build
9284 relocatable-prog-wrapper: fix build
9285 * modules/relocatable-prog-wrapper (Files): Update name of
9286 canonicalize m4 file, broken on 2009-09-17.
9287 Reported by emad hajjar <aleppos@hotmail.com>.
9289 2009-09-19 Bruno Haible <bruno@clisp.org>
9291 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9292 * lib/safe-alloc.c: Likewise.
9293 Reported by Ian Beckwith <ianb@erislabs.net>.
9295 2009-09-18 Bruno Haible <bruno@clisp.org>
9297 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9298 Reported by <erobles@sensacd.com.mx>.
9300 2009-09-17 Eric Blake <ebb9@byu.net>
9302 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9303 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9304 slashes when checking if last component is missing.
9305 * tests/test-canonicalize.c (main): Test this.
9307 canonicalize, canonicalize-lgpl: honor // if distinct from /
9308 * modules/canonicalize (Files): Add double-slash-root.m4.
9309 * modules/canonicalize-lgpl (Files): Likewise.
9310 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9311 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9312 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9313 fallback definition.
9314 (canonicalize_filename_mode): Use it to protect //.
9315 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9316 (__realpath): Likewise.
9317 * tests/test-canonicalize.c (main): Test this.
9318 * tests/test-canonicalize-lgpl.c (main): Likewise.
9319 * modules/canonicalize-tests (Depends-on): Add same-inode.
9320 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9322 canonicalize-lgpl: fix glibc bug with trailing slash
9323 * m4/canonicalize-lgpl.m4: Move contents...
9324 * m4/canonicalize.m4: ...here.
9325 (gl_CANONICALIZE_LGPL): Factor realpath check...
9326 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9327 glibc 2.3.5 bug, fixed 2005-04-27.
9328 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9329 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9330 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9331 * modules/canonicalize-lgpl (Files): Manage file rename.
9332 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9333 * modules/stdlib (Makefile.am): Substitute witness.
9334 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9336 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9337 replacement is required.
9338 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9339 * doc/glibc-functions/canonicalize_file_name.texi
9340 (canonicalize_file_name): Document this.
9341 * doc/posix-functions/realpath.texi (realpath): Likewise.
9343 canonicalize-lgpl: reject non-directory with trailing slash
9344 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9345 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9346 catches failures in glibc 2.3.5.
9347 * tests/test-canonicalize.c (main): Likewise.
9349 canonicalize-lgpl: use native realpath if it works
9350 * lib/canonicalize-lgpl.c (realpath): Guard with
9351 FUNC_REALPATH_WORKS.
9352 * lib/stdlib.in.h (realpath): Make declaration optional based on
9354 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9355 native realpath works.
9356 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9357 * modules/stdlib (Makefile.am): Substitute witness.
9359 canonicalize, canonicalize-lgpl: use <stdlib.h>
9360 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9361 (Include): Mention <stdlib.h>.
9362 (configure.ac): Mention functions we provide.
9363 * modules/canonicalize (configure.ac): Likewise.
9364 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9365 realpath if canonicalize_file_name is missing.
9366 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9367 * modules/stdlib (Makefile.am): Substitute witnesses.
9368 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9369 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9370 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9371 * NEWS: Document this.
9372 * doc/glibc-functions/canonicalize_file_name.texi
9373 (canonicalize_file_name): Likewise.
9374 * doc/posix-functions/realpath.texi (realpath): Likewise.
9375 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9377 test-canonicalize: consolidate into single C program
9378 * tests/test-canonicalize.sh: Delete; move setup into...
9379 * tests/test-canonicalize.c (main): ...the program, making it
9380 easier to run in debugger. Add some tests.
9381 * modules/canonicalize-tests (Files): Remove unused file.
9382 (Depends-on): Add progname.
9383 (configure.ac, Makefile.am): Simplify.
9385 test-canonicalize-lgpl: consolidate into single C program
9386 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9387 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9388 easier to run in debugger. Add some tests.
9389 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9390 (configure.ac, Makefile.am): Simplify.
9392 canonicalize: avoid resolvepath
9393 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9395 * lib/canonicalize.c (includes): Simplify.
9396 (canonicalize_file_name): Drop resolvepath implementation.
9397 * modules/canonicalize (Depends-on): Drop filenamecat.
9399 canonicalize: don't lose errno
9400 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9403 canonicalize: simplify errno handling
9404 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9407 canonicalize, canonicalize-lgpl: update module dependencies
9408 * modules/canonicalize (Depends-on): Add extensions, lstat,
9410 (Files): Drop pathmax.h.
9411 (configure.ac): Adjust macro name.
9412 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9413 lstat, stdlib, sys_stat.
9414 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9415 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9417 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9418 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9419 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9420 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9421 declaration, if available.
9422 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9423 we can rely on the readlink module.
9424 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9425 (includes): Use <unistd.h> unconditionally.
9427 2009-09-17 Eric Blake <ebb9@byu.net>
9429 maint: make Include sections of modules consistent
9430 * modules/alloca: Use only header name; no need to list #include.
9431 * modules/alloca-opt: Likewise.
9432 * modules/arpa_inet: Likewise.
9433 * modules/canon-host: Likewise.
9434 * modules/configmake: Likewise.
9435 * modules/dirent: Likewise.
9436 * modules/eealloc: Likewise.
9437 * modules/environ: Likewise.
9438 * modules/fchdir: Likewise.
9439 * modules/fcntl: Likewise.
9440 * modules/fcntl-h: Likewise.
9441 * modules/gethrxtime: Likewise.
9442 * modules/gettime: Likewise.
9443 * modules/ignore-value: Likewise.
9444 * modules/inet_ntop: Likewise.
9445 * modules/inet_pton: Likewise.
9446 * modules/inttypes: Likewise.
9447 * modules/isnand-nolibm: Likewise.
9448 * modules/isnanf-nolibm: Likewise.
9449 * modules/mbchar: Likewise.
9450 * modules/mbfile: Likewise.
9451 * modules/mbiter: Likewise.
9452 * modules/mbuiter: Likewise.
9453 * modules/netdb: Likewise.
9454 * modules/netinet_in: Likewise.
9455 * modules/nproc: Likewise.
9456 * modules/pagealign_alloc: Likewise.
9457 * modules/poll: Likewise.
9458 * modules/printf-frexp: Likewise.
9459 * modules/pthread: Likewise.
9460 * modules/putenv: Likewise.
9461 * modules/random_r: Likewise.
9462 * modules/relocatable-prog: Likewise.
9463 * modules/search: Likewise.
9464 * modules/select: Likewise.
9465 * modules/selinux-h: Likewise.
9466 * modules/settime: Likewise.
9467 * modules/signal: Likewise.
9468 * modules/size_max: Likewise.
9469 * modules/socklen: Likewise.
9470 * modules/ssize_t: Likewise.
9471 * modules/stdarg: Likewise.
9472 * modules/stdbool: Likewise.
9473 * modules/stddef: Likewise.
9474 * modules/stdint: Likewise.
9475 * modules/stdio: Likewise.
9476 * modules/stdlib: Likewise.
9477 * modules/string: Likewise.
9478 * modules/strings: Likewise.
9479 * modules/sys_file: Likewise.
9480 * modules/sys_ioctl: Likewise.
9481 * modules/sys_select: Likewise.
9482 * modules/sys_socket: Likewise.
9483 * modules/sys_stat: Likewise.
9484 * modules/sys_time: Likewise.
9485 * modules/sys_times: Likewise.
9486 * modules/sys_utsname: Likewise.
9487 * modules/sys_wait: Likewise.
9488 * modules/sysexits: Likewise.
9489 * modules/time: Likewise.
9490 * modules/times: Likewise.
9491 * modules/tmpfile: Likewise.
9492 * modules/trim: Likewise.
9493 * modules/unistd: Likewise.
9494 * modules/wchar: Likewise.
9495 * modules/wctype: Likewise.
9497 2009-09-17 Bruno Haible <bruno@clisp.org>
9499 Make getdate.y compile on QNX and NetBSD 5 / i386.
9500 * m4/getdate.m4 (gl_GETDATE): Conditionally define
9501 TIME_T_FITS_IN_LONG_INT.
9502 * lib/getdate.y (long_time_t): New type.
9503 (relative_time): Change type of 'seconds' field to long_time_t.
9504 (get_date): Update types of local variables. Check against overflow
9505 during conversion from long_time_t to time_t.
9506 Reported by Matt Kraai <kraai@ftbfs.org>
9507 and Hasso Tepper <hasso@netbsd.org>.
9509 2009-09-17 Bruno Haible <bruno@clisp.org>
9511 * modules/COPYING: Update copyright years.
9512 * modules/README: Likeiwse.
9513 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9514 Reported by Ian Beckwith <ianb@erislabs.net>.
9516 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9518 * users.txt: Update references for gnuit package.
9520 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9522 * m4/getdelim.m4: Fix typo in copyright line.
9524 2009-09-17 Bruno Haible <bruno@clisp.org>
9526 * lib/atoll.c: Use the standard header with GPL copyright.
9527 * lib/argz.in.h: Likewise.
9528 * lib/glob.c: Likewise.
9529 * lib/glob-libc.h: Likewise.
9530 * lib/random_r.c: Likewise.
9531 * lib/siglist.h: Likewise.
9532 * lib/strsignal.c: Likewise.
9533 Reported by Ian Beckwith <ianb@erislabs.net>.
9535 2009-09-17 Eric Blake <ebb9@byu.net>
9537 rmdir: ensure correct dependency order
9538 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9540 2009-09-17 Bruno Haible <bruno@clisp.org>
9542 Disable assertion that fails on NetBSD 5 / i386.
9543 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9544 Reported by Sam Steingold <sds@gnu.org>
9545 and Hasso Tepper <hasso@netbsd.org>.
9547 2009-09-16 Eric Blake <ebb9@byu.net>
9549 unlinkdir: port to mingw
9550 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9551 on which no one can unlink a directory.
9553 stdlib: sort witness names
9554 * modules/stdlib (Makefile.am): Sort replacements.
9555 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9556 * lib/stdlib.in.h: Likewise.
9558 parse-duration-tests: avoid link failure
9559 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9561 Reported by Tom G. Christensen.
9563 openat-tests: ensure unlinkat behaves like rmdir
9564 * tests/test-rmdir.c (main): Factor guts...
9565 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9566 * modules/rmdir-tests (Files): Ship new file.
9567 * modules/openat-tests: New test.
9568 * tests/test-unlinkat.c: Likewise.
9570 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9571 * modules/rmdir-errno (Status, Notice): Now obsolete.
9573 rmdir: work around cygwin 1.5.x and mingw bugs
9574 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9575 * lib/rmdir.c (rmdir): Work around it.
9576 * modules/rmdir (Status, Notice): No longer obsolete.
9577 (Files): Add dos.m4.
9578 (Depends-on): Add unistd.
9579 (configure.ac): Set witnesses.
9580 (License): Relax to LGPLv2+.
9581 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9582 * modules/unistd (Makefile.am): Substitute witnesses.
9583 * lib/unistd.in.h (rmdir): Declare replacement.
9584 * doc/posix-functions/rmdir.texi (rmdir): Document this.
9585 * modules/rmdir-tests: New tests.
9586 * tests/test-rmdir.c: Likewise.
9588 2009-09-15 Eric Blake <ebb9@byu.net>
9590 fchdir: improve use of replacement functions
9591 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9592 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9593 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9595 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9596 * modules/sys_stat (Makefile.am): Substitute correct witness.
9597 * modules/dirent (Makefile.am): Likewise.
9598 * modules/unistd (Makefile.am): Likewise.
9599 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9600 * lib/unistd.in.h (dup): Likewise.
9601 * lib/sys_stat.in.h (fstat): Likewise.
9603 maint: ignore gnulib-tool temp files
9604 * .gitignore: Ignore files created during gnulib-tool --test.
9606 2009-09-13 Jim Meyering <meyering@redhat.com>
9608 posixtm: don't reject a time that specify "60" as the number of seconds
9609 * lib/posixtm.c (posixtime): The code to reject invalid dates
9610 would also reject a time specified with the .60 suffix.
9611 But POSIX allows that, in order to accommodate leap seconds.
9613 (main): Adjust tests accordingly.
9614 * modules/posixtm (Depends-on): Add stpcpy.
9616 2009-09-11 Jim Meyering <meyering@redhat.com>
9618 announce-gen: include [$release_type] in emitted Subject:
9619 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9620 e.g., [stable] in the emitted Subject: line.
9622 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9624 Remove obsolete macros from several modules.
9625 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9626 obsolete Autoconf macros with their modern counterparts.
9627 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9628 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9629 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9630 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9631 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9632 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9633 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9634 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9635 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9636 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9637 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9638 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9639 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9640 * m4/sockets.m4 (gl_SOCKETS): Likewise.
9641 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9642 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9643 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9644 * m4/time_r.m4 (gl_TIME_R): Likewise.
9645 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9646 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9647 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9649 Fix copyright header in build-aux scripts.
9650 * build-aux/git-version-gen: Fix copyright header to match GPLv3
9652 * build-aux/ncftpput-ftp: Likewise.
9653 * build-aux/update-copyright: Likewise.
9655 2009-09-09 Eric Blake <ebb9@byu.net>
9657 test-link: allow Linux choice of errno
9658 * tests/test-link.c (main): Relax test for alternate error.
9660 strndup: fix improper m4 caching
9661 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9662 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9663 (gl_PREREQ_STRNDUP): Delete.
9664 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9665 * modules/string (Makefile.am): Substitute it.
9666 * lib/string.in.h (strndup): Modernize prototype.
9668 getcwd: port to mingw
9669 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9670 different from the POSIX assumptions made throughout the getcwd
9671 module; fortunately, the mingw getcwd does not need replacement.
9672 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9673 * modules/getcwd-tests: New test.
9674 * tests/test-getcwd.c: Likewise.
9676 link: fix platform bugs
9677 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9678 * lib/link.c (link): Work around them. Fix related mingw bug.
9679 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9680 * modules/unistd (Makefile.am): Substitute it.
9681 * lib/unistd.in.h (link): Declare replacement.
9682 * doc/posix-functions/link.texi (link): Document this.
9683 * modules/link (Depends-on): Add strdup-posix, sys_stat.
9685 test-link: consolidate into single C program, test more cases
9686 * tests/test-link.sh: Delete.
9687 * tests/test-link.c: Test more error conditions. Exposes bugs on
9688 at least Cygwin and Solaris.
9689 * modules/link-tests (Files): Remove unused file.
9690 (Depends-on): Add errno, sys_stat.
9691 (Makefile.am): Simplify.
9693 2009-09-08 Bruno Haible <bruno@clisp.org>
9695 Work around towlower, towupper bug on mingw.
9696 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9697 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9698 * doc/posix-functions/towlower.texi: Mention the mingw bug.
9699 * doc/posix-functions/towupper.texi: Likewise.
9700 Reported by Eric Blake.
9702 2009-09-08 Jim Meyering <meyering@redhat.com>
9704 build: don't try to run autoheader if we don't use it
9705 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9706 is not used in configure.ac.
9708 2009-09-08 Eric Blake <ebb9@byu.net>
9710 euidaccess: fix compilation error
9711 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9713 rawmemchr: relax license
9714 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9716 Reported by Jim Meyering.
9718 mkfifoat: new module
9719 * modules/mkfifoat: New file.
9720 * lib/mkfifoat.c: Likewise.
9721 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9722 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9723 * modules/sys_stat (Makefile.am): Use them.
9724 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9725 * MODULES.html.sh (File system functions): Mention module.
9726 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9727 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9728 * modules/mkfifoat-tests: New test.
9729 * tests/test-mkfifoat.c: Likewise.
9731 strchrnul: relax license
9732 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9734 Reported by Jim Meyering.
9736 2009-09-08 Eric Blake <ebb9@byu.net>
9738 fstatat: fix compilation on Solaris
9739 * lib/fstatat.c (includes): Add fcntl.h.
9740 Reported by Pádraig Brady.
9742 2009-09-07 Eric Blake <ebb9@byu.net>
9744 rename: modernize replacement
9745 * modules/rename (Depends-on): Add stdio.
9746 (configure.ac): Declare witness.
9747 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9748 stdio take care of replacement.
9749 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9750 * modules/stdio (Makefile.am): Substitute them.
9751 * lib/stdio.in.h (rename): Declare replacement.
9752 * lib/rename.c (includes): Allow cross-compilation to non-windows
9754 * doc/posix-functions/rename.texi (rename): Improve
9757 stdio: sort witness names
9758 * modules/stdio (Makefile.am): Sort replacements.
9759 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9760 * lib/stdio.in.h: Likewise.
9762 getcwd: minor cleanups
9763 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9764 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9766 openat: provide more convenience names
9767 * modules/faccessat (configure.ac): Add C witness.
9768 * lib/unistd.in.h (readlinkat): Fix typo.
9769 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9770 convenience wrappers.
9771 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9772 wrappers in syntax checks.
9774 2009-09-06 Eric Blake <ebb9@byu.net>
9776 doc: fix comments in recent patches
9777 * lib/faccessat.c: Mention correct function.
9778 * lib/fchmodat.c: Likewise.
9779 * lib/fchownat.c: Likewise.
9780 * lib/symlinkat.c: Likewise.
9781 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9784 faccessat, symlinkat: continue cleanup of previous patch
9785 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9786 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9787 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9788 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9789 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9790 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9793 2009-09-06 Bruno Haible <bruno@clisp.org>
9795 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9796 (fstatat): Declare if GNULIB_FSTATAT is set.
9797 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9798 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9799 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9800 * modules/fcntl-h (Files): Remove m4/openat.m4.
9801 * modules/sys_stat (Files): Remove m4/openat.m4.
9802 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9803 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9804 * modules/unistd (Files): Remove m4/openat.m4.
9805 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9807 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9808 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9809 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9810 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9811 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9813 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9814 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9815 Don't require gl_OPENAT_DEFAULTS.
9816 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9817 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9818 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9819 (gl_OPENAT_DEFAULTS): Remove macro.
9821 2009-09-06 Bruno Haible <bruno@clisp.org>
9823 * modules/openat (configure.ac): Remove unneeded witness.
9825 2009-09-06 Bruno Haible <bruno@clisp.org>
9827 Set errno to ENOSYS when a function is entirely unsupported.
9828 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9830 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9831 * modules/chown (Depends-on): Remove errno.
9833 2009-09-06 Bruno Haible <bruno@clisp.org>
9835 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9837 2009-09-06 Bruno Haible <bruno@clisp.org>
9839 * lib/sys_stat.in.h: Fix preprocessor command indentation.
9841 2009-09-06 Ben Pfaff <blp@gnu.org>
9842 Bruno Haible <bruno@clisp.org>
9844 Work around a glibc bug in strtok_r.
9845 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9846 Undefine if UNDEFINE_STRTOK_R is set.
9847 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9848 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9849 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9850 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9851 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9853 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9855 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
9858 * lib/exclude.c: Include wctype.h
9860 2009-09-06 Akim Demaille <demaille@gostai.com>
9862 bootstrap: improve error message
9863 * build-aux/bootstrap (find_tool): Upon failure, report the list
9865 Honor the initial value of the envvar.
9867 2009-09-05 Eric Blake <ebb9@byu.net>
9869 symlinkat: new module
9870 * modules/symlinkat: New file.
9871 * lib/symlinkat.c: Likewise.
9872 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9873 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9874 * modules/unistd (Makefile.am): Use them.
9875 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9876 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9877 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9878 * MODULES.html.sh (File system functions): Mention module.
9879 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9880 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9881 * modules/symlinkat-tests: New test.
9882 * tests/test-symlinkat.c: Likewise.
9884 test-openat-safer: add more checks
9885 * tests/test-openat-safer.c (main): Check more code paths.
9887 2009-09-05 Jim Meyering <meyering@redhat.com>
9889 syntax-check: detect unnecessary inclusion of openat.h
9890 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9892 2009-09-05 Bruno Haible <bruno@clisp.org>
9894 Support towlower, towupper.
9895 * doc/posix-functions/towlower.texi: Mention module wctype.
9896 * doc/posix-functions/towupper.texi: Likewise.
9897 * lib/wctype.in.h (towlower, towupper): New functions.
9898 * tests/test-wctype.c: Include stdio.h, stdlib.h.
9899 (ASSERT): New macro.
9901 (main): Test also towlower, towupper. Test WEOF argument.
9902 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9904 2009-09-05 Bruno Haible <bruno@clisp.org>
9906 Fix conversion behaviour when the input is invalid.
9907 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9908 mark occurring in first pass of indirect conversion.
9909 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9911 Found by clang's static analyzer.
9913 2009-09-05 Bruno Haible <bruno@clisp.org>
9915 * tests/test-striconveh.c (main): Test indirect conversion on platforms
9916 where direct conversion is possible.
9918 2009-09-04 Eric Blake <ebb9@byu.net>
9920 openat: fail with ENOENT on empty name
9921 * lib/openat-proc.c (openat_proc_name): Special-case the empty
9924 link-follow: fix logic bug in prior patch
9925 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9926 reversed sense of yes and no in prior patch. Avoid confusing
9927 compilation failure with desired semantics.
9929 link-follow: accomodate mingw and cross-compilation
9930 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9931 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
9932 cross-compilation results to -1, to make linkat easier to
9933 implement when cross-compiling. Trivially support mingw.
9934 * modules/link-follow (configure.ac): Call new name.
9935 * NEWS: Mention this.
9937 2009-09-03 Eric Blake <ebb9@byu.net>
9939 faccessat: compile replacement
9940 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9943 fts: fix compilation error
9944 * lib/fts.c (includes): Re-add "openat.h", for
9945 openat_needs_fchdir.
9947 faccessat: new module
9948 * modules/faccessat: New file.
9949 * lib/faccessat.c: Likewise.
9950 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9951 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9952 * modules/unistd (Makefile.am): Use it.
9953 * lib/unistd.in.h (faccessat): Declare it.
9954 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9955 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9956 * MODULES.html.sh (File system functions): Mention it.
9957 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9958 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9960 euidaccess: prefer POSIX over non-standard implementation
9961 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9962 * lib/euidaccess.c (euidaccess): Use it if available.
9964 openat: make template easier to use
9965 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9966 AT_FUNC_F2 to be undefined.
9967 (VALIDATE_FLAG): New macro; use it to reject bad flags.
9968 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9969 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9970 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9971 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9973 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9974 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9975 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9978 openat: declare in POSIX headers
9979 * NEWS: Mention this.
9980 * modules/openat (configure.ac): Declare witnesses.
9981 (Depends-on): Add fcntl-h, sys_stat, unistd.
9982 (Include): Mention correct headers.
9983 * modules/fcntl-h (Depends-on): Add link-warning.
9984 (Files): Add openat.m4.
9985 (Makefile.am): Substitute witnesses.
9986 * modules/sys_stat (Files, Makefile.am): Likewise.
9987 * modules/unistd (Files, Makefile.am): Likewise.
9988 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9989 (gl_OPENAT_DEFAULTS): New macro.
9990 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9991 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9992 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9993 (SYS_STAT_H): Remove unused variable.
9994 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9995 * lib/fcntl--.h (includes): Remove unneeded header.
9996 * lib/openat-safer.c (includes): Likewise.
9997 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9998 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9999 appropriate headers.
10000 (__OPENAT_PREFIX): Delete.
10001 * lib/fcntl.in.h (openat): Provide declaration.
10002 (AT_FDCWD): Fix Solaris bug.
10003 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10004 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10005 * lib/fchmodat.c (includes): Adjust to find declaration.
10006 * lib/fchownat.c (includes): Likewise.
10007 * lib/mkdirat.c (includes): Likewise.
10008 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
10011 2009-09-02 Eric Blake <ebb9@byu.net>
10013 errno: use consistently
10014 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10015 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10016 * lib/canonicalize.c (ELOOP): Likewise.
10017 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10018 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10019 * lib/lchown.c (EOPNOTSUPP): Likewise.
10020 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10021 * lib/savewd.c (ESTALE): Likewise.
10022 * lib/settime.c (ENOSYS): Likewise.
10023 * lib/utimens.c (ENOSYS): Likewise.
10024 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10025 * lib/chdir-safer.c (ELOOP): Likewise.
10026 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10027 * modules/c-stack (Depends-on): Add errno.
10028 * modules/canonicalize (Depends-on): Likewise.
10029 * modules/chdir-safer (Depends-on): Likewise.
10030 * modules/fdopendir (Depends-on): Likewise.
10031 * modules/inet_ntop (Depends-on): Likewise.
10032 * modules/inet_pton (Depends-on): Likewise.
10033 * modules/lchown (Depends-on): Likewise.
10034 * modules/openat (Depends-on): Likewise.
10035 * modules/savewd (Depends-on): Likewise.
10036 * modules/settime (Depends-on): Likewise.
10037 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10039 fts: avoid leaking fds
10040 * modules/fts (Depends-on): Add cloexec.
10041 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10044 fts: make directory fds more robust
10045 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10046 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10048 backupfile, chdir-long, fts, savedir: make safer
10049 * lib/backupfile.c (includes): Use "dirent--.h", since
10050 numbered_backup can write to stderr during readdir.
10051 * lib/savedir.c (includes): Likewise.
10052 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10053 emulation can write to stderr on failure.
10054 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10055 * lib/getcwd.c: Document why opendir_safer is unused.
10056 * lib/glob.c: Likewise.
10057 * lib/scandir.c: Likewise.
10058 * lib/openat-proc.c: Likewise, for open_safer.
10059 * modules/backupfile (Depends-on): Add dirent-safer.
10060 * modules/savedir (Depends-on): Likewise.
10061 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10062 * modules/chdir-long (Depends-on): Add openat-safer.
10064 openat-safer: new module
10065 * modules/openat-safer: New file.
10066 * lib/openat-safer.c: Likewise.
10067 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10068 * lib/fcntl-safer.h (openat_safer): Declare.
10069 * lib/fcntl--.h (openat): Override.
10070 * MODULES.html.sh (File descriptor based I/O): Mention it.
10071 * lib/openat.h: Add double-inclusion guards.
10072 * lib/openat.c (includes): Only include "fcntl-safer.h", not
10073 "fcntl--.h", so we can implement openat.
10074 * modules/openat-safer-tests: New test.
10075 * tests/test-openat-safer.c: New file.
10077 dirent-safer: new module
10078 * modules/dirent-safer: New file.
10079 * lib/dirent--.h: Likewise.
10080 * lib/dirent-safer.h: Likewise.
10081 * lib/opendir-safer.c: Likewise.
10082 * m4/dirent-safer.m4: Likewise.
10083 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10084 * modules/dirent-safer-tests: New test.
10085 * tests/test-dirent-safer.c: New file.
10086 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10088 fdopendir: optimize on mingw
10089 * lib/unistd.in.h (_gl_directory_name): New prototype.
10090 * lib/fchdir.c (_gl_directory_name): Implement it.
10091 (fchdir): Use it to simplify implementation.
10092 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10093 fchdir, when available, to avoid calling [f]chdir().
10095 fdopendir: split into its own module
10096 * lib/openat.c (fdopendir): Move...
10097 * lib/fdopendir.c: ...into new file.
10098 * modules/fdopendir: New module.
10099 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10100 * modules/openat (Depends-on): Add fdopendir.
10101 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10103 * modules/savedir (Depends-on): Only need fdopendir, not full
10105 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10106 * lib/openat.h (fdopendir): Drop prototype.
10107 * lib/dirent.in.h (fdopendir): Provide prototype.
10108 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10109 * modules/dirent (Makefile.am): Substitute them.
10110 * MODULES.html.sh (File system functions): Mention it.
10111 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10112 * modules/fdopendir-tests: New file.
10113 * tests/test-fdopendir.c: Likewise.
10115 fchdir: use more consistent macro convention
10116 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10117 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10118 REPLACE_FCHDIR, rather than relying on config.h macros.
10119 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10120 inside a single make-time REPLACE_FCHDIR block, rather than using
10121 the config.h FCHDIR_REPLACEMENT.
10122 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10123 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
10124 Manage fstat replacement.
10125 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10127 * modules/sys_stat (Files): Add m4/unistd_h.m4.
10128 (Makefile.am): Substitute REPLACE_FCHDIR.
10129 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10130 FCHDIR_REPLACEMENT.
10131 * lib/dup-safer.c (dup_safer): Likewise.
10132 * lib/dup2.c (rpl_dup2): Likewise.
10133 * lib/dup3.c (rpl_dup3): Likewise.
10134 * lib/open.c (rpl_open): Likewise.
10136 fchdir: simplify error handling, and support dup3
10137 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
10138 stdbool, malloc-posix, realloc-posix.
10139 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10140 (ensure_dirs_slot): Return false on allocation failure.
10141 (rpl_dup2): Delete.
10142 (_gl_register_dup): New function.
10143 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10144 (_gl_register_fd): Close fd on allocation failure.
10145 * lib/fcntl.in.h (_gl_register_fd): Update signature.
10146 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10148 (rpl_dup2_fchdir): Delete prototype.
10149 * lib/open.c (open): Update caller.
10150 * lib/dup2.c (dup2): Track fchdir metadata.
10151 * lib/dup3.c (dup3): Likewise.
10152 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10153 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10155 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10157 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10158 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10159 don't pass arguments to AC_OUTPUT.
10161 2009-09-02 Bruno Haible <bruno@clisp.org>
10163 * modules/mkdtemp (License): Relicense under LGPLv2+.
10164 Reported by Paolo Bonzini.
10166 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10168 Replace uses of obsolete autoconf macros in Jim's modules.
10169 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10170 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10171 can evoke a warning from autoconf when run with -Wobsolete
10172 enabled. They were declared obsolete for good reasons (see
10173 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10174 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10175 should not continue using the deprecated macros.
10176 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10177 obsolete Autoconf macros with modern counterparts.
10178 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10179 * m4/dos.m4 (gl_AC_DOS): Likewise.
10180 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10181 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10182 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10183 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10184 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10185 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10186 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10187 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10188 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10190 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10191 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10192 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10193 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10194 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10195 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10197 2009-09-01 Eric Blake <ebb9@byu.net>
10199 fchdir: fix off-by-one bug in previous patch
10200 * lib/fchdir.c (rpl_fstat): Use correct bounds.
10201 (_gl_unregister_fd): Delete useless if.
10203 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
10205 maint.mk: sort the list of syntax-check rules
10206 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10207 easier to get a sense of progress when the rules are run sequentially
10208 and take a long time.
10210 2009-09-01 Simon Josefsson <simon@josefsson.org>
10212 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10213 * modules/netinet_in: Likewise.
10214 * modules/sys_file: Likewise.
10215 * modules/sys_ioctl: Likewise.
10216 * modules/sys_select: Likewise.
10217 * modules/sys_socket: Likewise.
10218 * modules/sys_stat: Likewise.
10219 * modules/sys_time: Likewise.
10220 * modules/sys_times: Likewise.
10221 * modules/sys_utsname: Likewise.
10222 * modules/sys_wait: Likewise.
10224 2009-09-01 Jim Meyering <meyering@redhat.com>
10226 fts: help ensure that return values are not ignored
10227 * lib/fts_.h (__GNUC_PREREQ): Define.
10228 (__attribute_warn_unused_result__): Define.
10229 (fts_children, fts_close, fts_open, fts_read): Declare with
10230 __attribute_warn_unused_result__.
10232 fts: fts_close now fails also when closing a dir file descriptor fails
10233 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10234 and propagate to caller, along with errno.
10236 announce-gen: correct formatting in --help output
10237 * build-aux/announce-gen (usage): Move the one-line description in
10238 --help output "up", to where it belongs, just after Usage:.
10240 2009-08-31 Eric Blake <ebb9@byu.net>
10242 fchdir: port to mingw
10243 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10244 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10245 opened, then use a substitute.
10246 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10248 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10249 (_gl_register_fd): No need to check stat if open already filters
10251 (fchdir): Fix error condition to match POSIX.
10252 * modules/fchdir (Depends-on): Add sys_stat.
10253 * doc/posix-functions/open.texi (open): Document the limitation.
10254 * modules/fchdir-tests: New file.
10255 * tests/test-fchdir.c: Likewise.
10257 canonicalize: allow cross-testing from cygwin to mingw
10258 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10259 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10260 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10262 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10263 target does not support symlinks.
10264 * tests/test-canonicalize-lgpl.sh: Likewise.
10266 chown: avoid compilation warning on mingw
10267 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10268 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10270 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10271 * modules/chown (Depends-on): Add errno.
10273 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10275 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10278 2009-08-31 Jim Meyering <meyering@redhat.com>
10280 canonicalize: remove useless initialization
10281 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10282 initialization of local, "end".
10284 2009-08-30 Bruno Haible <bruno@clisp.org>
10286 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10287 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10290 2009-08-30 Bruno Haible <bruno@clisp.org>
10292 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10293 /usr/xpg4/bin/tr when it exists.
10294 * tests/test-pipe-filter-gi1.sh: Likewise.
10296 2009-08-30 Bruno Haible <bruno@clisp.org>
10298 Work around deficient /usr/bin/id program on Solaris.
10299 * tests/test-file-has-acl.sh (ID): New variable.
10300 * tests/test-set-mode-acl.sh (ID): Likewise.
10301 * tests/test-copy-acl.sh (ID): Likewise.
10302 * tests/test-copy-file.sh (ID): Likewise.
10304 2009-08-30 Bruno Haible <bruno@clisp.org>
10306 New module 'xstriconveh'.
10307 * lib/xstriconveh.h: New file.
10308 * lib/xstriconveh.c: New file.
10309 * modules/xstriconveh: New file.
10311 2009-08-30 Bruno Haible <bruno@clisp.org>
10313 Make it easier to use mem_cd_iconveh.
10314 * lib/striconveh.h (iconveh_t): New type.
10315 (iconveh_open, iconveh_close): New declarations.
10316 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10317 with a single 'const iconveh_t *' argument.
10318 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10319 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10320 with a single 'const iconveh_t *' argument.
10321 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10322 * tests/test-striconveh.c (main): Update.
10323 * NEWS: Mention the change.
10325 2009-08-30 Bruno Haible <bruno@clisp.org>
10327 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10330 2009-08-30 Bruno Haible <bruno@clisp.org>
10332 Work around iconv_open problem on Solaris.
10333 * lib/iconv_open-solaris.gperf: New file.
10334 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10335 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10336 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10337 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10338 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10339 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10341 2009-08-29 Jim Meyering <meyering@redhat.com>
10343 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10344 * top/maint.mk (cvs-check): Remove target; it was just an alias
10345 to the better-named vc-diff-check.
10346 (maintainer-distcheck): Remove rule. It was used only from
10347 the (alpha/beta/major) target, and all of its commands but one
10348 were coreutils-specific.
10349 (vc-dist): Remove rule.
10350 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10351 Run vc-diff-check, not vc-dist.
10352 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10354 2009-08-27 Bruno Haible <bruno@clisp.org>
10356 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10359 2009-08-27 Bruno Haible <bruno@clisp.org>
10361 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10363 * doc/func.texi: Document the SunPRO C bug.
10365 2009-08-27 Bruno Haible <bruno@clisp.org>
10367 Fix link error on Solaris.
10368 * tests/test-parse-duration.c (xstrdup): Remove function.
10370 2009-08-26 Pádraig Brady <P@draigbrady.com>
10372 ignore-value: handle pointer types, too
10373 * lib/ignore-value.h (__attribute__): Remove definition.
10374 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10375 of a more concise and more-often effective "(void) i" statement.
10376 (ignore_ptr): New function to suppress warnings from functions that
10377 return pointers, and to make it explicit that one function doesn't
10380 2009-08-25 Bruno Haible <bruno@clisp.org>
10382 dup2: work around a Linux bug.
10383 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10384 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10385 * doc/posix-functions/dup2.texi: Mention the Linux bug.
10386 Reported by Simon Josefsson.
10388 2009-08-25 Jim Meyering <meyering@redhat.com>
10390 libguestfs uses gnulib
10391 * users.txt: Add libguestfs.
10393 2009-08-24 Eric Blake <ebb9@byu.net>
10395 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10396 * lib/pipe2.c (includes): Add binary-io.h.
10397 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10399 2009-08-24 Bruno Haible <bruno@clisp.org>
10401 Tolerate declared but missing accept4 syscall.
10402 * lib/accept4.c (accept4): Invoke original accept4 function first, if
10404 * lib/sys_socket.in.h (accept4): If the function is already present,
10406 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10407 * modules/accept4 (Makefile.am): Compile accept4.c always.
10408 Reported by Paolo Bonzini and Eric Blake.
10410 2009-08-23 Bruno Haible <bruno@clisp.org>
10412 New module 'accept4'.
10413 * lib/sys_socket.in.h (accept4): New declaration.
10414 * lib/accept4.c: New file.
10415 * m4/accept4.m4: New file.
10416 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10417 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10418 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10420 * modules/accept4: New file.
10421 * doc/glibc-functions/accept4.texi: Mention the new module.
10423 2009-08-24 Jim Meyering <meyering@redhat.com>
10425 progname: also set global program_invocation_name, when possible
10426 Before this change, a libtool-enabled program that calls glibc's
10427 error function would report the program name as
10428 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10429 * modules/progname (configure.ac): Check for a declaration of
10430 program_invocation_name.
10431 * lib/progname.c: Include <errno.h>.
10432 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10433 Set program_invocation_name.
10435 2009-08-23 Bruno Haible <bruno@clisp.org>
10437 * lib/dup3.c: Include <string.h>.
10439 2009-08-23 Bruno Haible <bruno@clisp.org>
10441 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10442 * lib/pipe2.c (pipe2): Likewise.
10443 Suggested by Eric Blake.
10445 2009-08-23 Bruno Haible <bruno@clisp.org>
10447 Tolerate declared but missing dup3 syscall.
10448 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10449 * lib/unistd.in.h (dup3): If the function is already present,
10451 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10452 * modules/dup3 (Makefile.am): Compile dup3.c always.
10453 Reported by Paolo Bonzini.
10455 2009-08-23 Bruno Haible <bruno@clisp.org>
10457 Tolerate declared but missing pipe2 syscall.
10458 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10460 * lib/unistd.in.h (pipe2): If the function is already present,
10462 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10463 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10464 Reported by Paolo Bonzini.
10466 2009-08-23 Bruno Haible <bruno@clisp.org>
10468 * lib/pipe2.c (pipe2): Move #ifs inside function.
10470 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10472 quotearg: document limitations of quote_these_too
10473 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10474 those limitations are created.
10475 * lib/quotearg.h (set_char_quoting): Document that digits and
10476 letters that are special after backslash are not permitted.
10477 (quotearg_char): Cross-reference set_char_quoting documentation.
10479 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
10481 quotearg: implement custom_quoting_style
10482 * lib/quotearg.c: (struct quoting_options): Add left_quote and
10483 right_quote fields.
10484 (set_custom_quoting): New public function.
10485 (quotearg_buffer_restyled): Add left_quote and right_quote
10486 arguments, handle them very much like locale quoting, and update
10488 (quotearg_n_custom): New public function.
10489 (quotearg_n_custom_mem): New public function.
10490 (quotearg_custom): New public function.
10491 (quotearg_custom_mem): New public function.
10492 * lib/quotearg.h: Prototype and document new public functions.
10493 (enum quoting_style): For escape_quoting_style and
10494 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10495 ignored even though they're otherwise like c_quoting_style.
10496 Add custom_quoting_style member and document with comparison to
10497 clocale_quoting_style.
10498 * tests/test-quotearg.c (custom_quotes): New array.
10499 (custom_results): New array.
10500 (main): Extend to test custom quoting.
10502 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10504 quotearg: fix right quote escaping when it's in quote_these_too
10505 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10506 quote, be sure to prepend only one backslash.
10507 * tests/test-quotearg.c (use_quote_double_quotes): New function.
10510 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10512 quotearg-tests: test escaping of embedded locale quotes
10513 * tests/test-quotearg.c (struct result_strings): Add member for
10515 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10516 (inputs): Add new input.
10517 (results_g): Add expected results.
10518 (flag_results): Likewise.
10519 (locale_results): Likewise.
10520 (compare_strings): Check those.
10522 2009-08-23 Bruno Haible <bruno@clisp.org>
10524 Tests for module 'dup3'.
10525 * modules/dup3-tests: New file.
10526 * tests/test-dup3.c: New file.
10529 * lib/unistd.in.h (dup3): New declaration.
10530 * lib/dup3.c: New file.
10531 * m4/dup3.m4: New file.
10532 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10534 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10535 * modules/dup3: New file.
10536 * doc/glibc-functions/dup3.texi: Mention the new module.
10538 2009-08-23 Bruno Haible <bruno@clisp.org>
10540 Tweak the dup2 test.
10541 * tests/test-dup2.c (main): Create the test file empty. Verify that an
10542 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10543 the test file is still empty. Fix argument order of lseek.
10545 2009-08-23 Bruno Haible <bruno@clisp.org>
10547 Avoid test link errors when the modules getopt-gnu, gettext are used.
10548 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10549 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10551 2009-08-23 Bruno Haible <bruno@clisp.org>
10553 Fix getdtablesize() on mingw.
10554 * lib/getdtablesize.c (getdtablesize): Implement differently.
10555 * lib/unistd.in.h (getdtablesize): Improve comment.
10557 2009-08-23 Bruno Haible <bruno@clisp.org>
10559 New module 'mkostemp'.
10560 Based on Ulrich Drepper's 2007-08-10 change in glibc.
10561 * lib/stdlib.in.h (mksotemp): New declaration.
10562 * lib/mkostemp.c: New file, from glibc with modifications.
10563 * lib/tempname.h (GT_FILE): Remove outdated comment.
10564 (gen_tempname): Add flags argument.
10565 * lib/tempname.c (__GT_BIGFILE): Remove macro.
10566 (__GT_FILE): Map to 1.
10567 (small_open, large_open): Remove macros.
10568 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10569 * lib/mkstemp.c (mkstemp): Update.
10570 * lib/mkdtemp.c (mkdtemp): Likewise.
10571 * m4/mkostemp.m4: New file.
10572 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10574 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10576 * modules/mkostemp: New file, based on modules/mkstemp.
10577 * doc/glibc-functions/mkostemp.texi: Mention the new module.
10578 * NEWS: Mention the change.
10580 2009-08-23 Bruno Haible <bruno@clisp.org>
10582 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10583 Reported by Eric Blake.
10585 2009-08-23 Bruno Haible <bruno@clisp.org>
10587 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10588 Reported by Eric Blake.
10590 2009-08-23 Bruno Haible <bruno@clisp.org>
10592 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10593 * modules/pipe2 (Depends-on): Likewise.
10595 2009-08-23 Eric Blake <ebb9@byu.net>
10597 fcntl-h: add O_TTY_INIT support
10598 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10599 * tests/test-fcntl-h.c (o): Test it.
10600 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10602 fcntl-h: rename from fcntl, in preparation for fcntl(2)
10603 * modules/fcntl: Move <fcntl.h> header replacement...
10604 * modules/fcntl-h: ...to new name, so as not to collide with
10605 like-named function.
10606 * tests/test-fcntl.c: Rename...
10607 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
10608 * modules/fcntl-tests: Rename...
10609 * modules/fcntl-h-tests: ...to this. Update test file name.
10610 * modules/chdir-long (Depends-on): Update clients.
10611 * modules/chdir-safer (Depends-on): Likewise.
10612 * modules/fcntl-safer (Depends-on): Likewise.
10613 * modules/fts (Depends-on): Likewise.
10614 * modules/mkancesdirs (Depends-on): Likewise.
10615 * modules/mkdir-p (Depends-on): Likewise.
10616 * modules/open (Depends-on): Likewise.
10617 * modules/savewd (Depends-on): Likewise.
10618 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10619 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10621 2009-08-22 Bruno Haible <bruno@clisp.org>
10623 * modules/binary-io (License): Relicense under LGPL.
10624 * modules/pipe2 (License): Likewise.
10626 2009-08-22 Bruno Haible <bruno@clisp.org>
10628 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10630 * lib/pipe-filter-gi.c (filter_init): Likewise.
10631 Reported by Eric Blake.
10633 2009-08-22 Bruno Haible <bruno@clisp.org>
10635 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10636 * modules/pipe (Depends-on): Add pipe2.
10638 2009-08-22 Bruno Haible <bruno@clisp.org>
10640 Tests for module 'pipe2'.
10641 * modules/pipe2-tests: New file.
10642 * tests/test-pipe2.c: New file.
10644 New module 'pipe2'.
10645 * lib/unistd.in.h (pipe2): New declaration.
10646 * lib/pipe2.c: New file.
10647 * m4/pipe2.m4: New file.
10648 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10650 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10651 * modules/pipe2: New file.
10652 * doc/glibc-functions/pipe2.texi: Mention the new module.
10654 2009-08-22 Bruno Haible <bruno@clisp.org>
10656 Reference some new glibc functions.
10657 * doc/glibc-functions/accept4.texi: New file.
10658 * doc/glibc-functions/dup3.texi: New file.
10659 * doc/glibc-functions/mkostemp.texi: New file.
10660 * doc/glibc-functions/pipe2.texi: New file.
10661 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10662 (Glibc sys/socket.h): Refer to accept4.
10663 (Glibc unistd.h): Refer to dup3, pipe2.
10664 Reported by Eric Blake.
10666 2009-08-22 Jim Meyering <meyering@redhat.com>
10667 Bruno Haible <bruno@clisp.org>
10669 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10670 This makes it so packages using automake-1.11's silent-rules option
10671 can print e.g., a single "GEN configmake.h" line, rather than
10672 the 30+ statements that perform the job. If you want to see the
10673 actual commands, you can still run "make V=1".
10674 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10675 so that make output is abbreviated when those variables are defined
10677 * modules/argz: Likewise.
10678 * modules/arpa_inet: Likewise.
10679 * modules/byteswap: Likewise.
10680 * modules/configmake: Likewise.
10681 * modules/dirent: Likewise.
10682 * modules/errno: Likewise.
10683 * modules/fcntl: Likewise.
10684 * modules/float: Likewise.
10685 * modules/fnmatch: Likewise.
10686 * modules/getopt-posix: Likewise.
10687 * modules/glob: Likewise.
10688 * modules/iconv_open: Likewise.
10689 * modules/inttypes: Likewise.
10690 * modules/localcharset: Likewise.
10691 * modules/locale: Likewise.
10692 * modules/math: Likewise.
10693 * modules/netdb: Likewise.
10694 * modules/netinet_in: Likewise.
10695 * modules/poll: Likewise.
10696 * modules/posix_spawnp-tests: Likewise.
10697 * modules/sched: Likewise.
10698 * modules/search: Likewise.
10699 * modules/selinux-h: Likewise.
10700 * modules/signal: Likewise.
10701 * modules/spawn: Likewise.
10702 * modules/stdarg: Likewise.
10703 * modules/stdbool: Likewise.
10704 * modules/stddef: Likewise.
10705 * modules/stdint: Likewise.
10706 * modules/stdio: Likewise.
10707 * modules/stdlib: Likewise.
10708 * modules/string: Likewise.
10709 * modules/strings: Likewise.
10710 * modules/sys_file: Likewise.
10711 * modules/sys_ioctl: Likewise.
10712 * modules/sys_select: Likewise.
10713 * modules/sys_socket: Likewise.
10714 * modules/sys_stat: Likewise.
10715 * modules/sys_time: Likewise.
10716 * modules/sys_times: Likewise.
10717 * modules/sys_utsname: Likewise.
10718 * modules/sys_wait: Likewise.
10719 * modules/sysexits: Likewise.
10720 * modules/time: Likewise.
10721 * modules/unistd: Likewise.
10722 * modules/wchar: Likewise.
10723 * modules/wctype: Likewise.
10725 2009-08-22 Jim Meyering <meyering@redhat.com>
10727 announce-gen: detect write failure
10728 * build-aux/announce-gen: Add Coda at end.
10729 Remove equivalent-but-more-verbose block at top.
10731 2009-08-19 Akim Demaille <demaille@gostai.com>
10733 bootstrap: --help to stdout.
10734 * bootstrap (usage): Don't send --help to stderr.
10735 Use a here doc instead of a long string.
10737 2009-08-21 Eric Blake <ebb9@byu.net>
10739 test-popen-safer: split from test-popen
10740 * tests/test-popen.c (main): Move...
10741 * tests/test-popen.h: ...into new file.
10742 * tests/test-popen-safer2.c: New file.
10743 * modules/popen-tests (Files): Add test-popen.h.
10744 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10745 Suggested by Bruno Haible.
10747 test-fcntl-safer: split from test-open
10748 * tests/test-open.c (main): Move...
10749 * tests/test-open.h: ...into new file.
10750 * tests/test-fcntl-safer.c: New file.
10751 * modules/open-tests (Files): Add test-open.h.
10752 * modules/fcntl-safer-tests: New file.
10753 Suggested by Bruno Haible.
10755 test-fopen-safer: split from test-fopen
10756 * tests/test-fopen.c (main): Move...
10757 * tests/test-fopen.h: ...into new file.
10758 * tests/test-fopen-safer.c: New file.
10759 * modules/fopen-tests (Files): Add test-fopen.h.
10760 * modules/fopen-safer-tests: New file.
10761 Suggested by Bruno Haible.
10763 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10765 popen-safer: test O_CLOEXEC at run-time.
10766 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10768 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10770 fcntl: move more flags to the header
10771 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10772 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10773 * lib/fcntl.in.h: Do both things here.
10775 2009-08-21 Jim Meyering <meyering@redhat.com>
10777 consistently remove $@-t before redirecting to it
10778 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10779 * modules/alloca-opt: Likewise.
10780 * modules/byteswap: Likewise.
10781 * modules/fnmatch: Likewise.
10782 * modules/getopt-posix: Likewise.
10783 * modules/glob: Likewise.
10784 * modules/poll: Likewise.
10785 * modules/posix_spawnp-tests: Likewise.
10786 * modules/sys_socket: Likewise.
10787 * modules/sysexits: Likewise.
10789 2009-08-21 Eric Blake <ebb9@byu.net>
10791 popen: simplify access to original popen
10792 * lib/popen.c (rpl_popen): No need to worry about popen being a
10794 Reported by Bruno Haible.
10796 2009-08-20 Eric Blake <ebb9@byu.net>
10798 build: avoid some compiler warnings
10799 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10800 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10802 (new_exclude_segment, excluded_file_pattern_p)
10803 (excluded_file_name_p): Reduce scope.
10804 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10805 old-style declaration.
10807 2009-08-20 Simon Josefsson <simon@josefsson.org>
10809 * tests/test-exclude1.sh: Handle Windows EOL.
10810 * tests/test-exclude2.sh: Likewise.
10811 * tests/test-exclude3.sh: Likewise.
10812 * tests/test-exclude4.sh: Likewise.
10813 * tests/test-exclude5.sh: Likewise.
10814 * tests/test-exclude6.sh: Likewise.
10815 * tests/test-exclude7.sh: Likewise.
10817 2009-08-19 Akim Demaille <demaille@gostai.com>
10819 bootstrap: find sha1sum when named gsha1sum.
10820 * bootstrap (find_tool): New.
10824 2009-08-20 Jim Meyering <meyering@redhat.com>
10826 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10827 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10828 expression that converts "." in a file name to "\." in the resulting
10829 regexp. Start with a dummy statement, so that prior shell variable
10830 definitions are expanded portably. Reported by Simon Josefsson.
10832 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10834 Fix polling for writeability of a screen buffer.
10835 * lib/poll.c: Distinguish input and screen buffers for the
10836 Win32 implementation.
10837 * lib/select.c: Likewise.
10839 2009-08-19 Eric Blake <ebb9@byu.net>
10841 popen-safer: prevent popen from clobbering std descriptors
10842 * modules/popen-safer: New file.
10843 * lib/popen-safer.c: Likewise.
10844 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10845 * lib/stdio--.h (popen): Provide override.
10846 * lib/stdio-safer.h (popen_safer): Provide declaration.
10847 * tests/test-popen.c (includes): Partially test this.
10848 * modules/popen-safer-tests: New file, for more tests.
10849 * tests/test-popen-safer.c: Likewise.
10850 * MODULES.html.sh (file stream based Input/Output): Mention it.
10852 tests: test some of the *-safer modules
10853 * modules/fopen-safer (Depends-on): Add fopen.
10854 * modules/fcntl-safer (Depends-on): Add fcntl.
10855 * modules/stdlib-safer (Depends-on): Add stdlib.
10856 (configure.ac): Set indicator.
10857 * modules/unistd-safer (configure.ac): Likewise.
10858 * modules/tmpfile-safer (configure.ac): Likewise.
10859 (Depends-on): Add tmpfile.
10860 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10862 * tests/test-fopen.c (includes): Test safer versions when they are
10864 * tests/test-open.c (includes): Likewise.
10866 popen: fix cygwin 1.5 bug when stdin closed
10867 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10868 * modules/popen: New file.
10869 * modules/popen-tests: Likewise.
10870 * tests/test-popen.c: Likewise.
10871 * m4/popen.m4: Likewise.
10872 * lib/popen.c: Likewise.
10873 * lib/stdio.in.h (popen): New declaration.
10874 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10875 * modules/stdio (Makefile.am): Likewise.
10876 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10878 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
10880 maint.mk: give full control over update-copyright exclusions
10881 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10882 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10883 (update-copyright): Don't force inclusion of top-level
10884 ChangeLog. Don't force exclusion of all COPYING files, but make
10885 them the default exclusion instead.
10887 2009-08-16 Bruno Haible <bruno@clisp.org>
10889 Fix test failures on Solaris 10.
10890 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10891 tests when Solaris iconv() is used.
10892 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10893 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10894 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10895 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10896 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10898 2009-08-16 Bruno Haible <bruno@clisp.org>
10900 Fix test failures on Solaris 10.
10901 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10902 'tr' program and pass it as first argument.
10903 * tests/test-pipe-filter-gi1.sh: Likewise.
10904 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10905 program as first argument.
10906 * tests/test-pipe-filter-gi1.c (main): Likewise.
10908 2009-08-16 Eric Blake <ebb9@byu.net>
10910 fpurge: fix previous commits
10911 * modules/fpurge (Makefile.am): Make replacement conditional,
10912 partially reverting 2007-04-29 change; missed in previous
10914 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10917 2009-08-16 Bruno Haible <bruno@clisp.org>
10919 Clarify fpurge's effect on the file position.
10920 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10921 * tests/test-fpurge.c (main): Make a second pass for checking the file
10924 2009-08-16 Bruno Haible <bruno@clisp.org>
10926 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10927 declaration of fpurge is missing.
10928 * tests/test-fpurge.c (main): Check that the file has not more contents
10929 than expected. Close the file before removing it.
10931 2009-08-15 Eric Blake <ebb9@byu.net>
10933 fpurge: don't wrap working cygwin implementation
10934 * lib/fpurge.c (fpurge): Fix comment typo.
10935 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10936 1.7 to avoid replacement.
10937 * tests/test-fpurge.c (main): Enhance test.
10939 2009-08-15 Eric Blake <ebb9@byu.net>
10940 and Jim Meyering <meyering@redhat.com>
10942 test-update-copyright: skip if perl is insufficient
10943 * tests/test-update-copyright.sh: Failure to run maintainer tool
10944 should not cause testsuite failure on cygwin 1.5.
10946 2009-08-14 Eric Blake <ebb9@byu.net>
10948 doc: mention more functions added in cygwin 1.7.0
10949 * doc/posix-headers/limits.texi (limits.h): Update for recent
10951 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10952 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10953 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10954 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10955 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10957 2009-08-14 Eric Blake <ebb9@byu.net>
10959 maint.mk: simplify update-copyright rule
10960 * top/maint.mk (update-copyright-local): Delete, and document how
10961 to do it in cfg.mk instead.
10962 (update-copyright-exclude-regexp): Delete, and document how to do
10963 it in .x-update-copyright instead.
10964 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
10967 2009-08-14 Bruno Haible <bruno@clisp.org>
10969 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10971 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10973 maint.mk: support update-copyright-env
10974 * top/maint.mk (update-copyright-env): Define place-holder.
10975 (update-copyright): Expand $(update-copyright-env) before
10976 invoking update-copyright.
10978 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10980 update-copyright: implement forced reformatting
10981 * build-aux/update-copyright: Implement and document
10982 UPDATE_COPYRIGHT_FORCE.
10983 * tests/test-update-copyright.sh: Test it.
10985 2009-08-14 Eric Blake <ebb9@byu.net>
10986 and Bruno Haible <bruno@clisp.org>
10988 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10989 * tests/test-locale.c: Revert previous patch related to NULL.
10990 * tests/test-stdio.c: Likewise.
10991 * tests/test-stdlib.c: Likewise.
10992 * tests/test-string.c: Likewise.
10993 * tests/test-unistd.c: Likewise.
10994 * modules/time-tests (Depends-on): Add verify.
10995 * modules/wchar-tests (Depends-on): Likewise.
10996 * tests/test-time.c: Test for NULL compliance.
10997 * tests/test-wchar.c: Likewise.
10998 * modules/locale (Depends-on): Add stddef.
10999 * modules/stdio (Depends-on): Likewise.
11000 * modules/stdlib (Depends-on): Likewise.
11001 * modules/string (Depends-on): Likewise.
11002 * modules/time (Depends-on): Likewise.
11003 * modules/unistd (Depends-on): Likewise.
11004 * modules/wchar (Depends-on): Likewise.
11005 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11006 * lib/stdlib.in.h (includes): Likewise.
11007 * lib/string.in.h (includes): Likewise.
11008 * lib/time.in.h (includes): Likewise.
11009 * lib/unistd.in.h (includes): Likewise.
11010 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11012 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11013 * m4/stddef_h.m4: New file.
11014 * modules/stddef: Likewise.
11015 * lib/stddef.in.h: Likewise.
11016 * modules/stddef-tests: Likewise.
11017 * tests/test-stddef.c: Likewise.
11018 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11019 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11020 * doc/posix-headers/locale.texi (locale.h): Likewise.
11021 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11022 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11023 * doc/posix-headers/string.texi (string.h): Likewise.
11024 * doc/posix-headers/time.texi (time.h): Likewise.
11025 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11026 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11028 2009-08-14 Eric Blake <ebb9@byu.net>
11030 doc: improve git diff of texinfo files
11031 * .gitattributes: Add rule for *.texi files, with hint on how to
11033 Copied from m4, and based on a report by Bruno Haible.
11035 2009-08-14 Bruno Haible <bruno@clisp.org>
11037 Disable multithread support by default on Cygwin 1.5.x for real.
11038 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11040 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11042 update-copyright: much ado about intervals
11043 * build-aux/update-copyright: Implement and document
11044 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11045 of copyright year intervals.
11046 Also, document UPDATE_COPYRIGHT_YEAR.
11047 * tests/test-update-copyright.sh: Test it.
11049 update-copyright: convert 2-digit to 4-digit years
11050 * build-aux/update-copyright: Implement and document.
11051 * tests/test-update-copyright.sh: Update.
11053 2009-08-14 Jim Meyering <meyering@redhat.com>
11055 test-exclude: avoid coreutils "make check" failure
11056 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11057 just as in test-argmatch.c.
11059 2009-08-13 Eric Blake <ebb9@byu.net>
11061 test-dup2: fix bad assumption
11062 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11063 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11065 test-version-etc: fix CRLF portability issue
11066 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11068 * tests/test-argp-version-etc-1.sh: Likewise.
11070 getopt: update client modules
11071 * modules/argp (Depends-on): Use getopt-gnu.
11072 * modules/git-merge-changelog (Depends-on): Likewise.
11073 * modules/long-options (Depends-on): Likewise.
11074 * modules/xstrtol (Depends-on): Likewise.
11076 2009-08-13 Simon Josefsson <simon@josefsson.org>
11078 * tests/test-version-etc.sh: Don't fail on different
11079 project/version. Don't fail on CRLF differences. Rewrite to use
11080 multiple -e instead of multiple sed forks, suggested by Eric Blake
11082 * tests/test-argp-version-etc-1.sh: Likewise.
11084 2009-08-13 Simon Josefsson <simon@josefsson.org>
11086 * tests/test-version-etc.sh: Don't fail on different
11089 2009-08-12 Bruno Haible <bruno@clisp.org>
11091 Tests for modules 'getopt-posix', 'getopt-gnu'.
11092 * modules/getopt-posix-tests: New file.
11093 * tests/test-getopt.c: New file.
11094 * tests/test-getopt.h: New file.
11095 * tests/test-getopt_long.h: New file.
11097 New modules 'getopt-posix', 'getopt-gnu'.
11098 * modules/getopt-gnu: New file, renamed from modules/getopt.
11099 * modules/getopt-posix: New file.
11100 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11101 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11102 (gl_GETOPT): Remove macro.
11103 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11104 Disable the test against BSD systems that declare optreset. Test
11105 against mingw bug. Test against lack of support of optional arguments
11107 * doc/glibc-headers/getopt.texi: Update module name and list of
11108 relevant platforms.
11109 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11110 'getopt-gnu' and more portability problems.
11111 * NEWS: Mention the changes.
11113 2009-08-12 Bruno Haible <bruno@clisp.org>
11115 Ensure that optarg etc. get declared by <unistd.h>.
11116 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11117 AC_USE_SYSTEM_EXTENSIONS.
11118 * modules/getopt (Depends-on): Add 'extensions'.
11120 2009-08-12 Bruno Haible <bruno@clisp.org>
11122 Avoid test link errors.
11123 * modules/pipe-filter-ii-tests (Makefile.am): Define
11124 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11125 * modules/pipe-filter-gi-tests (Makefile.am): Define
11126 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11127 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11129 2009-08-12 Bruno Haible <bruno@clisp.org>
11131 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11132 gl_GETOPT_SUBSTITUTE before.
11133 (gl_GETOPT): Use it.
11134 * m4/argp.m4 (gl_ARGP): Update.
11135 Reported by Sergey Poznyakoff.
11137 * m4/getopt.m4: Reorder macros.
11138 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11139 (gl_GETOPT_SUBSTITUTE): Remove macro.
11141 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11143 Minor improvement in gitlog-to-changelog
11145 * build-aux/gitlog-to-changelog: New option `--format' makes
11146 output format string configurable.
11148 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11150 Optimize exclude: use hash tables for non-wildcard patterns.
11152 * lib/exclude.c: Include hash.h and mbuiter.h
11153 (struct exclude_pattern, exclude_segment): New data types.
11154 (struct exclude): Rewrite.
11155 (fnmatch_pattern_has_wildcards): New function.
11156 (new_exclude_segment, free_exclude_segment): New functions.
11157 (excluded_file_pattern_p, excluded_file_name_p): New functions.
11158 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11159 * lib/exclude.h (is_fnmatch_pattern): New prototype.
11160 * modules/exclude: Depend on hash and mbuiter.
11162 * modules/exclude-tests: New file.
11163 * tests/test-exclude.c: New file.
11164 * tests/test-exclude1.sh: New file.
11165 * tests/test-exclude2.sh: New file.
11166 * tests/test-exclude3.sh: New file.
11167 * tests/test-exclude4.sh: New file.
11168 * tests/test-exclude5.sh: New file.
11169 * tests/test-exclude6.sh: New file.
11170 * tests/test-exclude7.sh: New file.
11172 2009-08-12 Bruno Haible <bruno@clisp.org>
11174 Ensure that getopt() gets declared by <unistd.h>.
11175 * lib/unistd.in.h: Conditionally include getopt.h.
11176 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11177 Set GNULIB_UNISTD_H_GETOPT.
11178 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11179 GNULIB_UNISTD_H_GETOPT.
11180 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11182 2009-08-12 Bruno Haible <bruno@clisp.org>
11185 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11186 gl_replace_getopt instead of GETOPT_H.
11188 2009-08-12 Bruno Haible <bruno@clisp.org>
11190 * m4/getopt.m4: Add comments.
11192 2009-08-12 Bruno Haible <bruno@clisp.org>
11194 Disable multithread support by default on Cygwin 1.5.x.
11195 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11196 set gl_use_threads=no if not specified otherwise.
11198 2009-08-11 Bruno Haible <bruno@clisp.org>
11200 Avoid compilation error on NetBSD 5.0.
11201 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11202 * tests/test-stdio.c: Likewise.
11203 * tests/test-stdlib.c: Likewise.
11204 * tests/test-string.c: Likewise.
11205 * tests/test-unistd.c: Likewise.
11206 Reported by Greg Troxel <gdt@ir.bbn.com>
11207 at <https://savannah.gnu.org/support/?106973>.
11209 2009-08-11 Bruno Haible <bruno@clisp.org>
11211 * modules/dup2-tests (Depends-on): Remove close.
11213 Undo 2009-07-19 commit.
11214 * modules/acl-tests (Depends-on): Remove close.
11215 * modules/binary-io-tests (Depends-on): Likewise.
11216 * modules/closein-tests (Depends-on): Likewise.
11217 * modules/flock-tests (Depends-on): Likewise.
11218 * modules/fsync-tests (Depends-on): Likewise.
11219 * modules/lseek-tests (Depends-on): Likewise.
11220 * modules/pipe-tests (Depends-on): Likewise.
11221 * modules/posix_spawn-tests (Depends-on): Likewise.
11222 * modules/posix_spawnp-tests (Depends-on): Likewise.
11223 * modules/stat-time-tests (Depends-on): Likewise.
11224 * modules/yesno-tests (Depends-on): Likewise.
11226 2009-08-10 Bruno Haible <bruno@clisp.org>
11228 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11230 2009-08-10 Bruno Haible <bruno@clisp.org>
11233 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11235 2009-08-10 Bruno Haible <bruno@clisp.org>
11237 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11238 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11239 not only the first time.
11240 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11241 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11242 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11243 is 1, not only the the first time.
11245 2009-08-10 Bruno Haible <bruno@clisp.org>
11247 Make it possible to use module 'gethostname' without module 'close'.
11248 * lib/unistd.in.h (close): Evoke a link error only if
11249 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11250 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11251 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11252 * modules/unistd (Makefile.am): Substitute
11253 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11254 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11255 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11256 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11257 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11258 * modules/sys_ioctl (Makefile.am): Substitute
11259 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11260 * modules/socket (configure.ac): On native Windows, set
11261 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11262 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11263 Reported by Sam Steingold <sds@gnu.org>.
11265 2009-08-10 Bruno Haible <bruno@clisp.org>
11267 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11268 * modules/ioctl (configure.ac): Likewise.
11270 2009-08-10 Bruno Haible <bruno@clisp.org>
11272 Avoid collision between gnulib wrapper and libintl wrapper.
11273 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11274 already defined in intl/printf.c.
11275 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11276 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11278 2009-08-09 Bruno Haible <bruno@clisp.org>
11280 Make <sys/select.h> really self-contained, also on Solaris 10.
11281 * lib/sys_select.in.h: Include <string.h>.
11282 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11283 Solaris 10 problem.
11284 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11285 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11286 Reported by Jim Meyering.
11288 2009-08-09 Bruno Haible <bruno@clisp.org>
11290 Avoid warnings from 'aclocal' that are due to a use of macro name
11291 AM_XGETTEXT_OPTION that is not defined in automake.
11292 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11294 * modules/error (configure.ac): Likewise.
11295 * modules/propername (configure.ac): Likewise.
11296 * modules/vasprintf (configure.ac): Likewise.
11297 * modules/verror (configure.ac): Likewise.
11298 * modules/xprintf (configure.ac): Likewise.
11299 * modules/xvasprintf (configure.ac): Likewise.
11301 2009-08-08 Bruno Haible <bruno@clisp.org>
11303 Avoid compilation error in C++ mode.
11304 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11305 Reported by Sam Steingold <sds@gnu.org>.
11307 2009-08-08 Bruno Haible <bruno@clisp.org>
11309 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11310 for the various Unix platforms.
11311 * doc/posix-headers/limits.texi: Update platforms list regarding
11313 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11315 2009-08-07 Jim Meyering <meyering@redhat.com>
11317 selinux-at: fix typo in a comment
11318 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11319 Spotted by Paolo Bonzini.
11321 selinux-at: remove redundant m4 code, add documentation
11322 * modules/selinux-at (configure.ac): Remove redundant code.
11323 LIB_SELINUX is already set via the dependent module, selinux-h.
11324 (Include): Add quotes around selinux-at.h.
11325 * lib/selinux-at.h: Add documentation.
11326 Reported by Bruno Haible in
11327 http://marc.info/?l=gnulib-bug&m=124958988300749
11329 2009-08-07 Bruno Haible <bruno@clisp.org>
11331 Avoid link error on MacOS X 10.3 and 10.4.
11332 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11333 on non-ELF systems.
11334 * lib/argp-pv.c (argp_program_version): Likewise.
11335 Reported by Simon Josefsson.
11337 2009-08-07 Simon Josefsson <simon@josefsson.org>
11339 * tests/test-version-etc.sh: Use $EXEEXT.
11341 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11343 update-copyright: update documentation to point to maint.mk
11344 * build-aux/update-copyright: Here.
11346 2009-08-06 Jim Meyering <meyering@redhat.com>
11348 maint.mk: support update-copyright-local
11349 * top/maint.mk (update-copyright-local): Define place-holder.
11350 (update-copyright): Depend on $(update-copyright-local).
11352 2009-08-06 Jim Meyering <meyering@redhat.com>
11354 selinux-at: new module
11355 Initially written for coreutils, this module will soon be
11356 used by findutils, too.
11357 * MODULES.html.sh [Misc]: Add selinux-at.
11358 * lib/selinux-at.h: New file, from coreutils.
11359 * lib/selinux-at.c: Likewise.
11360 * modules/selinux-at: Likewise.
11361 (License): Change from LGPL to GPL, since it depends
11362 on the GPL'd openat module.
11365 * README: Remove references to cogito.
11366 Remove cvs-repo-updating instructions from 2007.
11367 Don't imply that CVS is better if you have limited disk space.
11369 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11371 update-copyright: support C-style comments
11372 * build-aux/update-copyright: Implement and document.
11373 * tests/test-update-copyright.sh: Test.
11375 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11377 update-copyright: support omitted "(C)"
11378 * build-aux/update-copyright: Implement and document. Also,
11379 allow variable whitespace before "(C)".
11380 * tests/test-update-copyright.sh: Test.
11382 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11384 update-copyright: don't trip on non-FSF copyright statements
11385 * build-aux/update-copyright: Fix so that the first correctly
11386 formatted FSF copyright statement is recognized no matter what
11387 appears before it. Update documentation.
11388 * tests/test-update-copyright.sh: Test that.
11390 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11392 update-copyright: clean up code a little
11393 * build-aux/update-copyright: Append "_re" to the name of any
11394 variable holding a regular expression.
11395 Replace "old" and "new" with "stmt" in variable names.
11396 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11398 Format code more consistently.
11400 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11402 update-copyright-tests: improve portability
11403 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11404 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
11406 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11408 update-copyright: support @copyright{} and ©
11409 * build-aux/update-copyright: Implement and document.
11410 * tests/test-update-copyright.sh: Test.
11412 2009-08-04 Jim Meyering <meyering@redhat.com>
11414 update-copyright-tests: correctly test EOL=\r\n handling
11415 * tests/test-update-copyright.sh: Put \r at the end of some lines
11416 for the dos-eol tests. Based on a patch by Joel E. Denny.
11418 maint.mk: make update-copyright exclusion list more configurable
11419 * top/maint.mk (update-copyright): Default to excluding COPYING,
11420 but allow an override, in case someone does want to update that file.
11422 maint.mk: don't update copyright date in COPYING
11423 * top/maint.mk (update-copyright): Exclude COPYING.
11425 maint.mk: add a copyright-updating rule
11426 * top/maint.mk (update-copyright): New rule.
11427 Derived from coreutils/Makefile.am.
11429 update-copyright: rename some variables
11430 * build-aux/update-copyright: Rename a few variables for clarity.
11431 Tweak syntax. List Joel E. Denny as coauthor.
11433 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11435 update-copyright: fix bug for 2-digit last year and add tests
11436 * build-aux/update-copyright: Fix bug.
11437 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11439 * modules/update-copyright-tests: New
11440 * tests/test-update-copyright.sh: New.
11442 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11444 update-copyright: handle leading tabs in line prefix
11445 * build-aux/update-copyright: Count leading tabs as 8 spaces
11446 when computing margin. This helps with the formatting of
11447 ChangeLogs, for example.
11448 Fix documentation a little.
11450 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11452 update-copyright: support EOL=\r\n
11453 * build-aux/update-copyright: Implement that.
11455 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11457 update-copyright: automatically format copyright statements
11458 * build-aux/update-copyright: Implement that.
11459 Also, be a little more predictable and safer by always failing
11460 when the full copyright format is not perfectly recognized as an
11461 unbroken whole. Discussed at
11462 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11463 Rewrite documentation.
11465 2009-08-03 Bruno Haible <bruno@clisp.org>
11467 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11469 2009-08-02 Bruno Haible <bruno@clisp.org>
11471 Tests for module 'uname'.
11472 * modules/uname-tests: New file.
11473 * tests/test-uname.c: New file.
11475 New module 'uname'.
11476 * lib/uname.c: New file.
11477 * m4/uname.m4: New file.
11478 * modules/uname: New file.
11479 * doc/posix-functions/uname.texi: Mention the new module.
11481 2009-08-02 Bruno Haible <bruno@clisp.org>
11483 Tests for module 'sys_utsname'.
11484 * modules/sys_utsname-tests: New file.
11485 * tests/test-sys_utsname.c: New file.
11487 New module 'sys_utsname'.
11488 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11489 * m4/sys_utsname_h.m4: New file.
11490 * modules/sys_utsname: New file.
11491 * doc/posix-headers/sys_utsname.texi: Mention the new module.
11493 2009-08-02 Bruno Haible <bruno@clisp.org>
11495 Implicitly initialize the sockets library.
11496 * lib/gethostname.c: Include sockets.h.
11497 (rpl_gethostname): Invoke gl_sockets_startup.
11498 * lib/socket.c: Include sockets.h.
11499 (rpl_socket): Invoke gl_sockets_startup.
11500 * modules/gethostname (Depends-on): Add sockets.
11501 * modules/socket (Depends-on): Likewise.
11502 * tests/test-poll.c: Don't include sockets.h.
11503 (main): Don't invoke gl_sockets_startup.
11504 * tests/test-select.c: Don't include sockets.h.
11505 (main): Don't invoke gl_sockets_startup.
11507 2009-08-02 Bruno Haible <bruno@clisp.org>
11509 Allow multiple calls to gl_sockets_startup.
11510 * lib/sockets.c (initialized_sockets_version): New variable.
11511 (gl_sockets_startup): Do nothing if already called for this or a higher
11513 (gl_sockets_cleanup): Reset initialized_sockets_version.
11515 2009-08-03 Simon Josefsson <simon@josefsson.org>
11517 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
11518 different project/version.
11520 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
11521 Bruno Haible <bruno@clisp.org>
11523 Tests for module 'pipe-filter-gi'.
11524 * modules/pipe-filter-gi-tests: New file.
11525 * tests/test-pipe-filter-gi1.sh: New file.
11526 * tests/test-pipe-filter-gi1.c: New file.
11527 * tests/test-pipe-filter-gi2.sh: New file.
11528 * tests/test-pipe-filter-gi2-main.c: New file.
11529 * tests/test-pipe-filter-gi2-child.c: New file.
11531 New module 'pipe-filter-gi'.
11532 * lib/pipe-filter-gi.c: New file.
11533 * modules/pipe-filter-gi: New file.
11535 2009-08-02 Bruno Haible <bruno@clisp.org>
11536 Paolo Bonzini <bonzini@gnu.org>
11538 Tests for module 'pipe-filter-ii'.
11539 * modules/pipe-filter-ii-tests: New file.
11540 * tests/test-pipe-filter-ii1.sh: New file.
11541 * tests/test-pipe-filter-ii1.c: New file.
11542 * tests/test-pipe-filter-ii2.sh: New file.
11543 * tests/test-pipe-filter-ii2-main.c: New file.
11544 * tests/test-pipe-filter-ii2-child.c: New file.
11546 New module 'pipe-filter-ii'.
11547 * lib/pipe-filter.h: New file.
11548 * lib/pipe-filter-ii.c: New file.
11549 * lib/pipe-filter-aux.h: New file.
11550 * modules/pipe-filter-ii: New file.
11552 2009-08-02 Simon Josefsson <simon@josefsson.org>
11554 * lib/gc-libgcrypt.c: Change copyright to FSF.
11555 * lib/gc-gnulib.c: Likewise.
11557 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
11559 * lib/gethostname.c: Include limits.h.
11561 2009-08-02 Simon Josefsson <simon@josefsson.org>
11562 Bruno Haible <bruno@clisp.org>
11564 Ensure HOST_NAME_MAX as part of the gethostname module.
11565 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11566 define also HOST_NAME_MAX.
11567 * tests/test-gethostname.c: Include <limits.h>.
11568 (main): Check also HOST_NAME_MAX.
11569 * doc/posix-headers/limits.texi: Document the mingw problem.
11571 2009-08-02 Bruno Haible <bruno@clisp.org>
11573 * lib/gethostname.c (gethostname): Fix handling of large len argument.
11576 2009-03-31 Simon Josefsson <simon@josefsson.org>
11578 * lib/gethostname.c: Add Windows wrapper.
11579 * m4/gethostname.m4: Look for gethostname in -lws2_32.
11580 * modules/gethostname: Depend on sys_socket & errno, for also
11581 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
11582 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11584 2009-07-31 Jim Meyering <meyering@redhat.com>
11586 getloadavg: fix symbol name in comment
11587 * lib/getloadavg.c: Correct a typo I introduced when adding
11588 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11589 Matt Kraai spotted the problem.
11591 2009-07-29 Matt Kraai <mkraai@beckman.com>
11593 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11594 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11595 code also if ! defined N_NAME_POINTER.
11596 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11597 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11598 but the n_name member is a 12-byte array.
11600 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
11602 update-copyright: generalize comment handling
11603 * build-aux/update-copyright: Handle copyright statements
11604 within more comment styles.
11606 Report any file with an external copyright holder or parse failure.
11608 2009-07-29 Jim Meyering <meyering@redhat.com>
11610 mktime: correct setting of REPLACE_MKTIME
11611 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11613 update-copyright: new module
11614 * modules/update-copyright: New file.
11615 * build-aux/update-copyright: New file.
11616 * MODULES.html.sh (maint+release support): Add update-copyright.
11618 2009-07-27 Bruno Haible <bruno@clisp.org>
11620 Fix compilation error when <ctime> is used and mktime is replaced.
11621 * lib/time.in.h (mktime): New declaration.
11622 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11623 REPLACE_MKTIME instead of defining mktime in config.h.
11624 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11625 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11626 Reported by Ross McFarland <rwmcfa1@neces.com>.
11628 2009-07-27 Bruno Haible <bruno@clisp.org>
11630 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11631 Reported by Matt Kraai <mkraai@beckman.com>.
11633 2009-07-25 Jim Meyering <meyering@redhat.com>
11635 maint.mk: avoid warnings about missing files
11636 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11637 diagnostic when .prev-version does not exist.
11638 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11639 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11640 nonexistent cfg.mk.
11641 Suggestions from Simon Josefsson.
11643 2009-07-25 Bruno Haible <bruno@clisp.org>
11645 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11646 defined as macros. Needed on QNX 6.4.1.
11647 Reported by Matt Kraai <mkraai@beckman.com>.
11649 2009-07-23 Jim Meyering <meyering@redhat.com>
11651 maint.mk: invoke "make dist" with a working value of XZ_OPT
11652 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11654 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
11656 Make fseeko.c compile on QNX.
11657 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11659 2009-07-22 Peter Simons <simons@cryp.to>
11661 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11662 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11663 * lib/md4.h: Likewise.
11664 * lib/md5.h: Likewise.
11665 * lib/sha1.h: Likewise.
11666 * lib/sha256.h: Likewise.
11667 * lib/sha512.h: Likewise.
11669 tests-sha1: don't assign literal string to 'char *' variable
11670 * tests/test-sha1.c (main): Declare locals with "const" to match
11671 attributes of the right hand side.
11673 2009-07-21 Eric Blake <ebb9@byu.net>
11675 dup2: fix more mingw problems
11676 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11678 * doc/posix-functions/dup2.texi (dup2): Document the bug.
11679 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11680 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11681 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11682 care of mingw bugs.
11684 2009-07-21 Jim Meyering <meyering@redhat.com>
11686 vc-list-files: avoid failure when /bin/sh is dash
11687 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11688 On some Debian based systems, /bin/sh is a symlink to dash, and running
11689 this command would omit the "/" following each 'tests' prefix:
11690 dash -x build-aux/vc-list-files -C . tests
11691 That is because bash and dash work differently:
11692 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11696 2009-07-21 Eric Blake <ebb9@byu.net>
11698 dup2-tests: test previous patch
11699 * modules/dup2-tests: New file.
11700 * tests/test-dup2.c: Likewise.
11701 * tests/test-open.c (main): Avoid unspecified behavior.
11702 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11705 dup2: work around mingw and cygwin 1.5 bug
11706 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11707 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11708 * modules/unistd (Makefile.am): Substitute it.
11709 * lib/unistd.in.h (dup2): Declare the replacement.
11710 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11711 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11712 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11713 * modules/execute (Depends-on): Add dup2.
11714 * modules/fseterr (Depends-on): Likewise.
11715 * modules/pipe (Depends-on): Likewise.
11716 * modules/posix_spawn-internal (Depends-on): Likewise.
11718 2009-07-21 Bruno Haible <bruno@clisp.org>
11720 * modules/.gitattributes: New file.
11722 2009-07-20 Bruno Haible <bruno@clisp.org>
11724 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11727 2009-07-20 Eric Blake <ebb9@byu.net>
11729 test-pipe: make a bit more robust.
11730 * tests/test-pipe.c (myerr): Allow error messages regardless of
11731 what we do to stderr.
11732 (test_pipe): Rearrange to avoid deadlock.
11733 (child_main): Try a larger read, to ensure we avoided deadlock.
11734 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11735 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11738 2009-07-19 Jim Meyering <meyering@redhat.com>
11740 fts: avoid false-positive cycle-detection
11741 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11742 for each new command line argument.
11744 2009-07-19 Bruno Haible <bruno@clisp.org>
11746 Fix build error on mingw with the modules sys_select and unistd.
11747 * modules/acl-tests (Depends-on): Add close.
11748 * modules/binary-io-tests (Depends-on): Likewise.
11749 * modules/closein-tests (Depends-on): Likewise.
11750 * modules/flock-tests (Depends-on): Likewise.
11751 * modules/fsync-tests (Depends-on): Likewise.
11752 * modules/lseek-tests (Depends-on): Likewise.
11753 * modules/pipe-tests (Depends-on): Likewise.
11754 * modules/posix_spawn-tests (Depends-on): Likewise.
11755 * modules/posix_spawnp-tests (Depends-on): Likewise.
11756 * modules/stat-time-tests (Depends-on): Likewise.
11757 * modules/yesno-tests (Depends-on): Likewise.
11759 2009-07-19 Bruno Haible <bruno@clisp.org>
11761 Unify conditionals.
11762 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11763 macros, not at the compiler macros.
11764 * lib/pipe.c: Likewise.
11765 * lib/execute.c: Likewise.
11766 * lib/spawni.c: Likewise.
11768 2009-07-19 Bruno Haible <bruno@clisp.org>
11770 Fix handling of closed stdin/stdout/stderr on mingw.
11771 * lib/w32spawn.h: Include unistd.h.
11772 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11773 file descriptor with O_NOINHERIT flag.
11774 (fd_safer_noinherit): New function, based on fd-safer.c.
11775 (dup_safer_noinherit): New function, based on dup-safer.c.
11776 (undup_safer_noinherit): New function.
11777 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11778 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11779 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11780 instead of fd_safer.
11781 * tests/test-pipe.c: Include <windows.h>.
11782 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11784 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11786 (test_pipe): Pass an extra argument for disambiguation.
11787 (main): Invoke parent_main or child_main.
11789 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11792 2009-07-18 Eric Blake <ebb9@byu.net>
11794 test-pipe: fix mingw build
11795 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11797 2009-07-18 Bruno Haible <bruno@clisp.org>
11799 * modules/pipe-tests (Makefile.am): Fix typo.
11801 2009-07-18 Eric Blake <ebb9@byu.net>
11803 error: fix mingw build
11804 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11805 Reported by Bruno Haible.
11807 error: avoid undefined use of stdout
11808 * lib/error.c (error, error_at_line): Check that fd 1 is open
11809 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11810 is handling faults and the close_stdout module wants to report the
11811 detection of closed stdout as an error.
11813 2009-07-17 Eric Blake <ebb9@byu.net>
11815 pipe: be robust in face of closed fds
11816 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11817 should cause child to misbehave.
11818 * modules/pipe-tests: New module.
11819 * tests/test-pipe.c: New file.
11820 * tests/test-pipe.sh: New file.
11821 Reported by Akim Demaille.
11823 2009-07-14 Bruno Haible <bruno@clisp.org>
11825 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11826 Reported by anonymous kc.
11828 2009-07-07 Jim Meyering <meyering@redhat.com>
11830 maint.mk: don't look for translatable strings in *.m4 or *.mk
11831 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11832 when searching for translatable strings.
11834 2009-07-05 Jim Meyering <meyering@redhat.com>
11836 remove superfluous parentheses in STREQ definition
11837 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11838 * lib/getugroups.c (STREQ): Likewise.
11839 * lib/fnmatch.c (STREQ): Likewise.
11840 Spotted by Bruno Haible.
11842 2009-07-04 Jim Meyering <meyering@redhat.com>
11844 argv-iter: new module
11845 * MODULES.html.sh: Add argv-iter.
11846 * lib/argv-iter.c, lib/argv-iter.h: New files.
11847 * modules/argv-iter: New file.
11848 * modules/argv-iter-tests: New file.
11849 * tests/test-argv-iter.c: Test it.
11851 2009-07-04 Bruno Haible <bruno@clisp.org>
11854 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11855 contains more exact copies of a given entry than file2, leave the extra
11856 copies unpaired rather than aborting.
11857 Reported by Eric Blake.
11859 2009-07-02 Bruno Haible <bruno@clisp.org>
11861 Speedup git-merge-changelog for git cherry-pick.
11862 * lib/git-merge-changelog.c (struct entries_mapping): New type.
11863 (entries_mapping_get): New function, extracted from compute_mapping.
11864 (entries_mapping_reverse_get): New function.
11865 (compute_mapping): Add a 'full' argument. Return the result in a
11866 'struct entries_mapping'.
11867 (main): Update. Access the mappings through entries_mapping_get.
11868 Reported by Eric Blake.
11870 2009-07-02 Bruno Haible <bruno@clisp.org>
11872 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11875 2009-07-02 Bruno Haible <bruno@clisp.org>
11877 Speed up approximate search for matching ChangeLog entries.
11878 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11879 argument. Call fstrcmp_bounded instead of fstrcmp.
11880 (compute_mapping, try_split_merged_entry, main): Update callers.
11882 2009-07-02 Bruno Haible <bruno@clisp.org>
11884 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11886 2009-06-30 Bruno Haible <bruno@clisp.org>
11888 Reduce the number of uc_is_cased calls.
11889 * lib/unicase.h (casing_suffix_context_t): Add
11890 'first_char_except_ignorable' field.
11891 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11892 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11893 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11894 Update initializer.
11895 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11896 case-ignorable characters.
11897 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11898 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11899 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11900 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11901 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11903 2009-06-30 Bruno Haible <bruno@clisp.org>
11905 Tests for module 'unicase/ignorable'.
11906 * modules/unicase/ignorable-tests: New file.
11907 * tests/unicase/test-ignorable.c: New file, generated by
11910 Tests for module 'unicase/cased'.
11911 * modules/unicase/cased-tests: New file.
11912 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11913 * tests/unicase/test-predicate-part1.h: New file, derived from
11914 tests/unictype/test-predicate-part1.h.
11915 * tests/unicase/test-predicate-part2.h: New file, same as
11916 tests/unictype/test-predicate-part2.h.
11918 Fix evaluation of "Before C" condition of FINAL_SIGMA.
11919 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11920 (output_casing_properties): New function.
11922 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11923 * lib/unicase/cased.c: Include unictype/bitmap.h.
11924 (uc_is_cased): Define through a bitmap lookup.
11925 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11926 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11927 (uc_is_case_ignorable): Define through a bitmap lookup.
11928 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11929 lib/unictype/bitmap.h.
11930 (Depends-on): Add inline. Clean up.
11931 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11932 lib/unictype/bitmap.h.
11933 (Depends-on): Add inline. Clean up.
11934 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11936 * tests/unicase/test-u16-tolower.c (main): Likewise.
11937 * tests/unicase/test-u32-tolower.c (main): Likewise.
11939 2009-06-30 Bruno Haible <bruno@clisp.org>
11941 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11942 * lib/unicase/u16-casemap.c: Likewise.
11943 * lib/unicase/u32-casemap.c: Likewise.
11945 2009-06-29 Bruno Haible <bruno@clisp.org>
11947 Define u32_casefold as a wrapper around u32_ct_casefold.
11948 * lib/unicase/u32-casefold.c: Update.
11949 * modules/unicase/u32-casefold (Depends-on): Add
11950 unicase/u32-ct-casefold, unicase/empty-prefix-context,
11951 unicase/empty-suffix-context. Clean up.
11953 Define u16_casefold as a wrapper around u16_ct_casefold.
11954 * lib/unicase/u16-casefold.c: Update.
11955 * modules/unicase/u16-casefold (Depends-on): Add
11956 unicase/u16-ct-casefold, unicase/empty-prefix-context,
11957 unicase/empty-suffix-context. Clean up.
11959 Define u8_casefold as a wrapper around u8_ct_casefold.
11960 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11961 * lib/unicase/u8-casefold.c: Update.
11962 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11963 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11965 Define u32_totitle as a wrapper around u32_ct_totitle.
11966 * lib/unicase/u32-totitle.c: Update.
11967 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11968 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11970 Define u16_totitle as a wrapper around u16_ct_totitle.
11971 * lib/unicase/u16-totitle.c: Update.
11972 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11973 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11975 Define u8_totitle as a wrapper around u8_ct_totitle.
11976 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11978 (FUNC): Delegate to U_CT_TOTITLE.
11979 * lib/unicase/u8-totitle.c: Update.
11980 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11981 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11983 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11985 * modules/unicase/u32-tolower (Depends-on): Add
11986 unicase/empty-prefix-context, unicase/empty-suffix-context.
11988 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11990 * modules/unicase/u16-tolower (Depends-on): Add
11991 unicase/empty-prefix-context, unicase/empty-suffix-context.
11993 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11994 * modules/unicase/u8-tolower (Depends-on): Add
11995 unicase/empty-prefix-context, unicase/empty-suffix-context.
11997 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11999 * modules/unicase/u32-toupper (Depends-on): Add
12000 unicase/empty-prefix-context, unicase/empty-suffix-context.
12002 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12004 * modules/unicase/u16-toupper (Depends-on): Add
12005 unicase/empty-prefix-context, unicase/empty-suffix-context.
12007 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12008 * modules/unicase/u8-toupper (Depends-on): Add
12009 unicase/empty-prefix-context, unicase/empty-suffix-context.
12011 New module 'unicase/u32-ct-casefold'.
12012 * lib/unicase/u32-ct-casefold.c: New file.
12013 * modules/unicase/u32-ct-casefold: New file.
12015 New module 'unicase/u16-ct-casefold'.
12016 * lib/unicase/u16-ct-casefold.c: New file.
12017 * modules/unicase/u16-ct-casefold: New file.
12019 New module 'unicase/u8-ct-casefold'.
12020 * lib/unicase/u8-ct-casefold.c: New file.
12021 * lib/unicase/u-ct-casefold.h: New file, derived from
12022 lib/unicase/u-casefold.h.
12023 * modules/unicase/u8-ct-casefold: New file.
12025 New module 'unicase/u32-ct-totitle'.
12026 * lib/unicase/u32-ct-totitle.c: New file.
12027 * modules/unicase/u32-ct-totitle: New file.
12029 New module 'unicase/u16-ct-totitle'.
12030 * lib/unicase/u16-ct-totitle.c: New file.
12031 * modules/unicase/u16-ct-totitle: New file.
12033 New module 'unicase/u8-ct-totitle'.
12034 * lib/unicase/u8-ct-totitle.c: New file.
12035 * lib/unicase/u-ct-totitle.h: New file, derived from
12036 lib/unicase/u-totitle.h.
12037 * modules/unicase/u8-ct-totitle: New file.
12039 New module 'unicase/u32-ct-tolower'.
12040 * lib/unicase/u32-ct-tolower.c: New file.
12041 * modules/unicase/u32-ct-tolower: New file.
12043 New module 'unicase/u16-ct-tolower'.
12044 * lib/unicase/u16-ct-tolower.c: New file.
12045 * modules/unicase/u16-ct-tolower: New file.
12047 New module 'unicase/u8-ct-tolower'.
12048 * lib/unicase/u8-ct-tolower.c: New file.
12049 * modules/unicase/u8-ct-tolower: New file.
12051 New module 'unicase/u32-ct-toupper'.
12052 * lib/unicase/u32-ct-toupper.c: New file.
12053 * modules/unicase/u32-ct-toupper: New file.
12055 New module 'unicase/u16-ct-toupper'.
12056 * lib/unicase/u16-ct-toupper.c: New file.
12057 * modules/unicase/u16-ct-toupper: New file.
12059 New module 'unicase/u8-ct-toupper'.
12060 * lib/unicase/u8-ct-toupper.c: New file.
12061 * modules/unicase/u8-ct-toupper: New file.
12063 Add context arguments to u*_casemap functions.
12064 * lib/unicase/unicasemap.h: Include unicase.h.
12065 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12066 suffix_context arguments.
12067 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12069 (FUNC): Add prefix_context and suffix_context arguments. Use
12070 uc_is_cased and uc_is_case_ignorable.
12071 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12072 * lib/unicase/u16-casemap.c: Likewise.
12073 * lib/unicase/u32-casemap.c: Likewise.
12074 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12075 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12076 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12077 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12078 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12079 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12081 New module 'unicase/u32-suffix-context'.
12082 * lib/unicase/u32-suffix-context.c: New file.
12083 * modules/unicase/u32-suffix-context: New file.
12085 New module 'unicase/u16-suffix-context'.
12086 * lib/unicase/u16-suffix-context.c: New file.
12087 * modules/unicase/u16-suffix-context: New file.
12089 New module 'unicase/u8-suffix-context'.
12090 * lib/unicase/u8-suffix-context.c: New file.
12091 * lib/unicase/u-suffix-context.h: New file.
12092 * modules/unicase/u8-suffix-context: New file.
12094 New module 'unicase/empty-suffix-context'.
12095 * lib/unicase/empty-suffix-context.c: New file.
12096 * modules/unicase/empty-suffix-context: New file.
12098 New module 'unicase/u32-prefix-context'.
12099 * lib/unicase/u32-prefix-context.c: New file.
12100 * modules/unicase/u32-prefix-context: New file.
12102 New module 'unicase/u16-prefix-context'.
12103 * lib/unicase/u16-prefix-context.c: New file.
12104 * modules/unicase/u16-prefix-context: New file.
12106 New module 'unicase/u8-prefix-context'.
12107 * lib/unicase/u8-prefix-context.c: New file.
12108 * lib/unicase/u-prefix-context.h: New file.
12109 * lib/unicase/context.h: New file.
12110 * modules/unicase/u8-prefix-context: New file.
12112 New module 'unicase/empty-prefix-context'.
12113 * lib/unicase/empty-prefix-context.c: New file.
12114 * modules/unicase/empty-prefix-context: New file.
12116 New module 'unicase/ignorable'.
12117 * lib/unicase/ignorable.c: New file.
12118 * modules/unicase/ignorable: New file.
12120 New module 'unicase/cased'.
12121 * lib/unicase/caseprop.h: New file.
12122 * lib/unicase/cased.c: New file.
12123 * modules/unicase/cased: New file.
12125 New functions for case mapping of substrings.
12126 * lib/unicase.h (casing_prefix_context_t): New type.
12127 (unicase_empty_prefix_context): New variable.
12128 (u8_casing_prefix_context, u16_casing_prefix_context,
12129 u32_casing_prefix_context, u8_casing_prefixes_context,
12130 u16_casing_prefixes_context, u32_casing_prefixes_context): New
12132 (casing_suffix_context_t): New type.
12133 (unicase_empty_suffix_context): New variable.
12134 (u8_casing_suffix_context, u16_casing_suffix_context,
12135 u32_casing_suffix_context, u8_casing_suffixes_context,
12136 u16_casing_suffixes_context, u32_casing_suffixes_context,
12137 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12138 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12139 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12142 2009-06-28 Jim Meyering <meyering@redhat.com>
12144 boostrap: indent only with spaces
12145 * build-aux/bootstrap: Indent only with spaces, never TABs.
12147 bootstrap: split long lines
12148 * build-aux/bootstrap: Keep line length < 80.
12150 bootstrap: sync from coreutils
12151 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12152 just as autoreconf does. Verify a list of prerequisite
12153 package-name,version-number pairs if defined in bootstrap.conf.
12154 Refer to README-prereq, if prerequisites are not satisfied.
12156 2009-06-27 Eric Blake <ebb9@byu.net>
12158 tests: add test for bogus NULL definition
12159 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12160 * tests/test-stdlib.c: Likewise.
12161 * tests/test-string.c: Likewise.
12162 * tests/test-locale.c: Likewise.
12163 * tests/test-unistd.c: Likewise.
12164 * modules/stdio-tests (Depends-on): Add verify.
12165 * modules/stdlib-tests (Depends-on): Likewise.
12166 * modules/string-tests (Depends-on): Likewise.
12167 * modules/locale-tests (Depends-on): Likewise.
12168 * modules/unistd-tests (Depends-on): Likewise.
12170 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12172 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12173 self-explaining comment.
12174 * m4/selinux-selinux-h: Update serial.
12175 (gl_LIBSELINUX): New macro, adding a warning for missing development
12176 packages to code extracted from...
12177 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
12178 Add warning for missing development packages here, too.
12180 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
12182 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12184 2009-06-25 Eric Blake <ebb9@byu.net>
12186 version-etc: fix regression
12187 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12189 (version_etc): Use it, to catch bugs with trailing NULL.
12190 * lib/version-etc.c (version_etc_arn): Delete unused argument.
12191 (version_etc_va): Fix logic bug.
12192 * modules/version-etc-tests: Add test.
12193 * tests/test-version-etc.c: New file.
12194 * tests/test-version-etc.sh: Likewise.
12196 2009-06-25 Sam Steingold <sds@gnu.org>
12198 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12199 mbtowc declaration.
12201 2009-06-25 Eric Blake <ebb9@byu.net>
12203 fpurge: migrate into <stdio.h>
12204 * lib/fpurge.h: Delete...
12205 * lib/stdio.in.h (fpurge): ...and declare here, instead.
12206 * lib/fpurge.c (fpurge): Change declaring header.
12207 * modules/fpurge (Files): Drop deleted file.
12208 (Depends-on): Add stdio.
12209 (configure.ac): Set witness.
12210 * modules/stdio (Makefile.am): Support fpurge macros.
12211 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12212 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12213 * lib/fflush.c: Update client.
12214 * tests/test-fpurge.c: Likewise.
12215 * NEWS: Mention the change.
12217 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12219 * lib/argp-version-etc.c (program_authors): Add const
12221 * lib/version-etc.c: Fix typos in the comments.
12222 * modules/argp-version-etc: Depends on version-etc.
12224 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12226 argp-version-etc: new module.
12228 * lib/argp-version-etc.c: New file.
12229 * lib/argp-version-etc.h: New file.
12230 * modules/argp-version-etc: New file.
12231 * modules/argp-version-etc-tests: New file.
12232 * tests/test-argp-version-etc.c: New test.
12233 * tests/test-argp-version-etc-1.sh: New test.
12235 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12237 Provide additional interfaces and documentation for version-etc
12240 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12242 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12245 2009-06-24 Bruno Haible <bruno@clisp.org>
12247 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12248 HAVE_LIB${NAME} macro.
12249 Reported by Sam Steingold <sds@gnu.org>.
12251 2009-06-23 Simon Josefsson <simon@josefsson.org>
12253 * modules/hash-tests (test_hash_LDADD): Link to libintl when
12256 2009-06-21 Bruno Haible <bruno@clisp.org>
12258 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12260 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12261 together with LIB${NAME}, LTLIB${NAME}.
12262 Reported by Sam Steingold <sds@gnu.org>.
12264 2009-06-20 Jim Meyering <meyering@redhat.com>
12266 tests: make sc_require_test_exit_idiom more generic
12267 * top/maint.mk (Exit_witness_file): New overridable variable.
12268 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12269 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12271 2009-06-19 Jim Meyering <meyering@redhat.com>
12273 hash: reverse order of src/dst parameters in an internal interface
12274 * lib/hash.c (transfer_entries): Reverse order of parameters to
12275 put DST before SRC. Adjust callers.
12277 tests: test-hash: avoid wholesale duplication
12278 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12279 Instead, use a loop and add a single conditional.
12281 tests: test-hash: allow seed selection via a command line argument
12282 * tests/test-hash.c (get_seed): New function.
12285 2009-06-19 Eric Blake <ebb9@byu.net>
12287 hash: avoid memory leak on allocation failure
12288 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12289 failure. Factor repeated algorithm...
12290 (transfer_entries): ...into new helper routine.
12291 (hash_delete): React to hash_rehash return value.
12293 hash: reduce memory pressure in hash_rehash no-op case
12294 * lib/hash.c (next_prime): Avoid overflow.
12295 (hash_initialize): Factor bucket size computation...
12296 (compute_bucket_size): ...into new helper function.
12297 (hash_rehash): Use new function and open coding to reduce memory
12298 pressure, and avoid a memory leak in USE_OBSTACK code.
12299 Reported by Jim Meyering.
12301 2009-06-18 Eric Blake <ebb9@byu.net>
12303 hash: make rotation more obvious
12304 * modules/hash (Depends-on): Add bitrotate and stdint.
12305 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12306 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12307 (SIZE_MAX): Rely on headers for definition.
12308 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12309 (raw_hasher): Use rotr_sz.
12310 Suggested by Jim Meyering.
12312 hash: fix memory leak in last patch
12313 * lib/hash.c (hash_rehash): Avoid memory leak.
12315 hash: avoid no-op rehashing
12316 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12318 hash: provide default callback functions
12319 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12320 (hash_initialize): Use them as defaults.
12321 * tests/test-hash.c (main): Test this.
12323 hash: minor optimization
12324 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12326 (hash_initialize): Document this promise.
12327 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12328 * tests/test-hash.c (hash_compare_strings): Test this.
12330 2009-06-18 Bruno Haible <bruno@clisp.org>
12332 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12333 going to be replaced anyway.
12335 2009-06-18 Bruno Haible <bruno@clisp.org>
12337 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12339 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12340 be replaced anyway.
12342 2009-06-18 Eric Blake <ebb9@byu.net>
12344 hash: check for resize before insertion
12345 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12346 threshold before insertion, so that a pathological hash_rehash
12347 that fills every bucket can still trigger another rehash.
12349 2009-06-18 Jim Meyering <meyering@redhat.com>
12351 hash-tests: add a loop around the small tests
12352 * tests/test-hash.c (main): Repeat small tests with selected
12353 small initial table sizes.
12355 2009-06-17 Eric Blake <ebb9@byu.net>
12357 hash: minor cleanups
12358 * lib/hash.h (hash_entry): Make opaque, by moving...
12359 * lib/hash.c (hash_entry): ...here.
12360 (hash_insert): Clarify restrictions on what can be inserted.
12361 (hash_get_next): Clarify when it is safe to remove an element
12363 (check_tuning): Skip verification when tuning is known safe.
12364 (hash_initialize): Clarify restrictions on tuning.
12366 2009-06-17 Jim Meyering <jim@meyering.net>
12367 and Eric Blake <ebb9@byu.net>
12369 hash-tests: new module
12370 * modules/hash-tests: New file.
12371 * tests/test-hash.c: New file.
12373 2009-06-17 Eric Blake <ebb9@byu.net>
12375 strstr-simple: document new module
12376 * MODULES.html.sh: Document new module.
12378 strstr, strcasestr: replace on platforms with broken memchr
12379 * modules/strstr: Split into...
12380 * modules/strstr-simple: ...new module that does not care about
12381 performance, but does care about glibc bug.
12382 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12383 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12384 if platform memchr is broken, per Debian bug 521737.
12385 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12387 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12388 * doc/posix-functions/strstr.texi (strstr): Document the fix.
12389 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12390 * modules/mountlist (Depends-on): Add strstr-simple.
12391 * modules/gen-uni-tables (Depends-on): Likewise.
12392 * modules/argz (Depends-on): Add strstr.
12394 2009-06-17 Bruno Haible <bruno@clisp.org>
12396 * modules/posix_spawn-internal (Depends-on): Add errno.
12398 2009-06-17 Bruno Haible <bruno@clisp.org>
12400 Define missing ESTALE on Interix 3.5.
12401 * lib/errno.in.h (ESTALE): Assign a value if missing.
12402 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12403 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12405 * doc/posix-headers/errno.texi: Mention the Interix bug.
12406 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12408 2009-06-15 Eric Blake <ebb9@byu.net>
12410 memchr, memchr2: add valgrind exception
12411 * lib/memchr.valgrind: New file.
12412 * lib/memchr2.valgrind: New file.
12413 * modules/memchr (Files): Distribute valgrind file.
12414 * modules/memchr2 (Files): Likewise.
12416 docs: memchr is no longer obsolete
12417 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12418 * lib/string.in.h (memchr): Simplify logic.
12420 2009-06-14 Jim Meyering <meyering@redhat.com>
12422 link-follow: fix the "checking..." message to not mention trailing slash
12423 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12424 never considered trailing slashes.
12426 2009-06-14 Bruno Haible <bruno@clisp.org>
12428 * m4/memchr.m4: Mention also the bug on IA-64.
12429 * doc/posix-functions/memchr.texi: Likewise.
12431 2009-06-12 Eric Blake <ebb9@byu.net>
12433 memchr: detect broken x86_64 and alpha implementations
12434 * modules/memchr-tests (Depends-on): Move mmap detection...
12435 * modules/memchr (Depends-on): ...here.
12436 (configure.ac): Set indicator.
12437 * lib/string.in.h (memchr): Declare replacement.
12438 * modules/string (Makefile.am): Trigger replacement.
12439 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12440 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12442 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12443 * modules/getpagesize (License): Relax license.
12445 2009-06-11 Bruno Haible <bruno@clisp.org>
12447 * lib/idpriv.h: Add more references.
12449 2009-06-08 Bruno Haible <bruno@clisp.org>
12451 Tests for module 'idpriv-droptemp'.
12452 * modules/idpriv-droptemp-tests: New file.
12453 * tests/test-idpriv-droptemp.sh: New file.
12454 * tests/test-idpriv-droptemp.su.sh: New file.
12455 * tests/test-idpriv-droptemp.c: New file.
12457 New module 'idpriv-droptemp'.
12458 * lib/idpriv-droptemp.c: New file.
12459 * modules/idpriv-droptemp: New file.
12461 2009-06-08 Bruno Haible <bruno@clisp.org>
12463 Tests for module 'idpriv-drop'.
12464 * modules/idpriv-drop-tests: New file.
12465 * tests/test-idpriv-drop.sh: New file.
12466 * tests/test-idpriv-drop.su.sh: New file.
12467 * tests/test-idpriv-drop.c: New file.
12469 New module 'idpriv-drop'.
12470 * lib/idpriv.h: New file.
12471 * lib-idpriv-drop.c: New file.
12472 * m4/idpriv.m4: New file.
12473 * modules/idpriv-drop: New file.
12475 2009-06-08 Bruno Haible <bruno@clisp.org>
12477 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12478 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12479 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12480 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12481 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12482 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12483 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12485 2009-06-08 Eric Blake <ebb9@byu.net>
12487 test-strstr: use memory fence, when possible
12488 * tests/test-strstr.c (main): Use memory fence, in order to be
12489 more likely to trigger Debian bug 521737.
12490 * modules/strstr-tests (Files): Pull in additional files.
12492 memchr: no longer obsolete, for wider field testing
12493 * modules/memchr (Status, Notice): Delete, this module is no
12495 * modules/vasnprintf (Depends-on): Add memchr.
12497 2009-06-07 Jim Meyering <meyering@redhat.com>
12499 hash: declare some functions with the warn_unused_result attribute
12500 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12502 2009-06-07 Bruno Haible <bruno@clisp.org>
12504 * tests/test-alignof.c: Don't test int64_t if it does not exist.
12505 Reported by Eric Blake.
12507 2009-06-06 Eric Blake <ebb9@byu.net>
12509 test-alignof: fix typo with long double
12510 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12513 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
12515 Escape non-texinfo { and }s.
12516 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12519 2009-06-04 Jim Meyering <meyering@redhat.com>
12521 gitlog-to-changelog: don't infloop on an empty commit log
12522 * build-aux/gitlog-to-changelog: Warn about an empty log message.
12523 Reported by Boris Petersen <transacid@centerim.org>.
12525 2009-06-03 Mike Frysinger <vapier@gentoo.org>
12527 version-etc: extend for packagers
12528 Add three new configure options, intended for packagers:
12529 --with-packager="packager name"
12530 --with-packager-version="packager-specific version"
12531 --with-packager-bug-reports="packager bug reporting"
12532 An example with coreutils:
12534 --with-packager=Gentoo \
12535 --with-packager-bug-report=http://bugs.gentoo.org/ \
12536 --with-packager-version="patchset 1.6"
12537 $ ./src/ls --version | head -n2
12538 ls (GNU coreutils) 7.1-dirty
12539 Packaged by Gentoo (patchset 1.6)
12540 Note that the bug reporting info via --help doesn't show up because
12541 coreutils uses its own custom emit_bug_reporting_address() implementation
12542 in src/system.h. If it didn't, it'd look like:
12543 $ ./src/ls --help | tail -n4
12544 Report bugs to <bug-coreutils@gnu.org>.
12545 Report Gentoo bugs to <http://bugs.gentoo.org/>.
12546 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12547 General help using GNU software: <http://www.gnu.org/gethelp/>.
12548 * lib/version-etc.c: Print new information, if provided.
12549 * m4/version-etc.m4: New file.
12550 * modules/version-etc (Files): Add m4/version-etc.m4.
12551 (configure.ac): Add gl_VERSION_ETC.
12553 2009-05-31 Bruno Haible <bruno@clisp.org>
12555 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12557 * modules/alignof-tests (Dependencies): Add stdint.
12558 Reported by Eric Blake.
12560 2009-05-31 Bruno Haible <bruno@clisp.org>
12562 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12563 restriction due to compiler bugs.
12564 Reported by Eric Blake.
12566 2009-05-31 Simon Josefsson <simon@josefsson.org>
12567 Bruno Haible <bruno@clisp.org>
12569 Fix test-alignof failure.
12570 * lib/alignof.h (alignof_slot): New macro.
12571 (alignof_type): New macro, with the same semantics as the previous
12573 (alignof): Alias to alignof_slot.
12574 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12575 check that the results are usable as constant expressions.
12577 2009-05-31 Bruno Haible <bruno@clisp.org>
12579 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12580 * tests/test-memchr.c (main): Check that memchr does not read past the
12581 first occurrence of the byte.
12582 * tests/test-strstr.c (main): Update comment.
12583 Suggested by Eric Blake.
12585 2009-05-30 Bruno Haible <bruno@clisp.org>
12587 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12588 detail how to use dumpbin.
12589 Reported by David Byron <dbyron@dbyron.com>.
12591 2009-06-02 Simon Josefsson <simon@josefsson.org>
12593 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12595 2009-06-02 Simon Josefsson <simon@josefsson.org>
12597 * m4/manywarnings.m4: Add GCC 4.4 warnings.
12599 2009-05-28 Bruno Haible <bruno@clisp.org>
12601 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12604 2009-05-28 Simon Josefsson <simon@josefsson.org>
12606 * gnulib-tool (func_import): Transform license on build-aux/ files too.
12608 2009-05-27 Simon Josefsson <simon@josefsson.org>
12610 * gnulib-tool (sed_transform_main_lib_file)
12611 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12614 2009-05-26 Simon Josefsson <simon@josefsson.org>
12616 * tests/test-strstr.c: Add another self-test.
12617 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12618 strdup. Suggested by Eric Blake <ebb9@byu.net>.
12620 2009-05-23 Bruno Haible <bruno@clisp.org>
12622 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12625 2009-05-21 Bruno Haible <bruno@clisp.org>
12627 Simplify use of mode_t varargs.
12628 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12629 uses 'mode_t' or 'int'.
12630 * lib/openat.c (openat): Likewise.
12631 * lib/open-safer.c (open_safer): Likewise.
12632 * m4/mode_t.m4: New file.
12633 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12634 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12635 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12636 * modules/open (Files): Add m4/mode_t.m4.
12637 * modules/openat (Files): Likewise.
12638 * modules/fcntl-safer (Files): Likewise.
12639 Suggested by Eric Blake.
12641 2009-05-21 Pádraig Brady <P@draigbrady.com>
12643 * doc/glibc-functions/fallocate.texi: New file.
12644 * doc/gnulib.texi: Include it.
12646 2009-05-21 Eric Blake <ebb9@byu.net>
12647 Bruno Haible <bruno@clisp.org>
12649 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12651 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12653 2009-05-21 Eric Blake <ebb9@byu.net>
12654 Bruno Haible <bruno@clisp.org>
12656 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12657 include_next. Fix of 2008-11-20 commit.
12658 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12659 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12660 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12662 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12663 instead of NEXT_MATH_H.
12665 2009-05-21 Bruno Haible <bruno@clisp.org>
12667 Avoid redefinition warnings for SIZE_MAX.
12668 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12669 Reported by Simon Josefsson.
12671 2009-05-21 Bruno Haible <bruno@clisp.org>
12673 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12676 2009-05-20 Bruno Haible <bruno@clisp.org>
12678 Make zeroptr.h work on mingw.
12679 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12681 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12682 * modules/memchr2-tests (configure.ac): Likewise.
12683 * modules/memcmp-tests (configure.ac): Likewise.
12684 * modules/memmem-tests (configure.ac): Likewise.
12685 * modules/memrchr-tests (configure.ac): Likewise.
12686 Reported by Simon Josefsson.
12688 2009-05-20 Simon Josefsson <simon@josefsson.org>
12690 * tests/test-glob.c: Include string.h for strcmp prototype.
12692 2009-05-20 Simon Josefsson <simon@josefsson.org>
12694 * modules/getdelim (Depends-on): Add explicit stdint, although it
12695 was implicitly already pulled in via realloc-posix.
12696 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12698 2009-05-20 Simon Josefsson <simon@josefsson.org>
12700 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
12701 G. Christensen" <tgc@jupiterrise.com>.
12702 * m4/sys_socket_h.m4: Check for sa_family_t.
12703 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12704 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12705 * tests/test-sys_socket.c: Check that sa_family_t works.
12707 2009-05-18 Eric Blake <ebb9@byu.net>
12709 maint.mk: allow gnulib_dir in VPATH build
12710 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12712 2009-05-15 Jim Meyering <meyering@redhat.com>
12714 maint.mk: Give gnulib_dir a default definition.
12715 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12716 Thus, most packages no longer need to specify this variable in cfg.mk
12718 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
12720 rename.m4: fix typos that would make non-mingw cross-configure fail
12721 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12723 2009-05-13 Eric Blake <ebb9@byu.net>
12725 mmap-anon: avoid out-of-order autoconf expansion
12726 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12727 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12728 * modules/memchr-tests (Depends-on): Add extensions.
12729 * modules/memchr2-tests (Depends-on): Add extensions.
12730 * modules/memcmp-tests (Depends-on): Add extensions.
12731 * modules/memmem-tests (Depends-on): Add extensions.
12732 * modules/memrchr-tests (Depends-on): Add extensions.
12734 2009-05-13 Bruno Haible <bruno@clisp.org>
12736 Make some tests ISO C 99 compliant.
12737 * tests/zerosize-ptr.h: New file.
12738 * tests/test-memchr.c: Include zerosize-ptr.h.
12739 (main): Use a zero-size object pointer instead of NULL.
12740 * tests/test-memchr2.c: Include zerosize-ptr.h.
12741 (main): Use a zero-size object pointer instead of NULL.
12742 * tests/test-memcmp.c: Include zerosize-ptr.h.
12743 (main): Use a zero-size object pointer instead of NULL.
12744 * tests/test-memmem.c: Include zerosize-ptr.h.
12745 (main): Use a zero-size object pointer instead of NULL.
12746 * tests/test-memrchr.c: Include zerosize-ptr.h.
12747 (main): Use a zero-size object pointer instead of NULL.
12748 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12750 (Depends-on): Add getpagesize.
12751 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12752 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12754 (Depends-on): Add getpagesize.
12755 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12756 * modules/memcmp-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/memmem-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/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12766 (Depends-on): Add getpagesize.
12767 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12769 2009-05-12 Bruno Haible <bruno@clisp.org>
12771 Tests for module 'alignof'.
12772 * modules/alignof-tests: New file.
12773 * tests/test-alignof.c: New file.
12775 2009-05-12 Bruno Haible <bruno@clisp.org>
12778 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12779 vendor compilers that are always correct.
12781 2009-05-12 Bruno Haible <bruno@clisp.org>
12783 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12784 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12785 not whether its fully works.
12787 2009-05-12 Bruno Haible <bruno@clisp.org>
12789 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12791 2009-05-12 Jim Meyering <meyering@redhat.com>
12793 * top/maint.mk: Adjust backslash alignment.
12795 2009-05-11 Simon Josefsson <simon@josefsson.org>
12797 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12799 2009-05-11 Eric Blake <ebb9@byu.net>
12801 argp: avoid undefined behavior
12802 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12805 2009-05-08 Simon Josefsson <simon@josefsson.org>
12807 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12808 user.name to prevent git commit from complaining.
12810 2009-05-10 Bruno Haible <bruno@clisp.org>
12812 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12813 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12814 it rewrites every file name only once.
12815 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12817 2009-05-08 Bruno Haible <bruno@clisp.org>
12819 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12822 2009-05-08 Simon Josefsson <simon@josefsson.org>
12824 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12825 sockaddr_storage test.
12827 2009-05-07 Simon Josefsson <simon@josefsson.org>
12829 * modules/sys_socket (Makefile.am): Substitute
12830 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12831 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12832 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12833 * tests/test-sys_socket.c: Check sockaddr_storage.
12835 2009-05-08 Bruno Haible <bruno@clisp.org>
12837 New module 'alignof'.
12838 * lib/alignof.h: New file.
12839 * modules/alignof: New file.
12841 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12842 Bruno Haible <bruno@clisp.org>
12844 Fix test-file-has-acl on FreeBSD.
12845 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12846 mask is implicitly added.
12847 * tests/test-file-has-acl.c: Include <signal.h>.
12848 (main): Terminate the test after 5 seconds.
12849 * modules/acl-tests (configure.ac): Check for alarm function.
12851 2009-05-04 Bruno Haible <bruno@clisp.org>
12853 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12854 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12855 * modules/errno (configure.ac): Drop AC_REQUIRE.
12856 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12857 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12859 2009-05-04 Simon Josefsson <simon@josefsson.org>
12861 * modules/glob-tests: New module.
12862 * tests/test-glob.c: Add.
12864 2009-05-04 Simon Josefsson <simon@josefsson.org>
12866 * modules/fnmatch-tests: New module.
12867 * tests/test-fnmatch.c: Add.
12869 2009-05-04 Eric Blake <ebb9@byu.net>
12871 maint: make the new no-submodule-changes rule VPATH-safe
12872 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12874 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12875 Bruno Haible <bruno@clisp.org>
12877 acl: Fix infinite loop on FreeBSD.
12878 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12879 of return value from acl_get_entry.
12880 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12883 2009-05-03 Bruno Haible <bruno@clisp.org>
12885 * lib/acl-internal.h (acl_entries): Clarify return value.
12886 * lib/acl_entries.c (acl_entries): Likewise.
12888 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12890 Bug fix in acl module.
12891 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12893 2009-05-03 Bruno Haible <bruno@clisp.org>
12895 Create gperf-generated file in the source dir, not in the build dir.
12896 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12897 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12898 * modules/unicase/locale-language (unicase/locale-languages.h):
12900 * modules/unicase/special-casing (unicase/special-casing-table.h):
12902 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12903 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12904 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12905 Reported by Ralf Wildenhues.
12907 2009-05-03 Bruno Haible <bruno@clisp.org>
12909 * modules/fnmatch (Description, configure.ac): Taken from
12911 * modules/fnmatch-posix: Turn into a symbolic reference to the
12912 'fnmatch' module, and deprecate.
12913 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12915 2009-05-03 Bruno Haible <bruno@clisp.org>
12917 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12918 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12919 Reported by Ralf Wildenhues.
12921 2009-05-04 Simon Josefsson <simon@josefsson.org>
12923 * m4/fnmatch.m4: Fix fnmatch re-define.
12925 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
12927 priv-set: new module and tests; adapt write-any-file
12928 * lib/priv-set.c: New file.
12929 * lib/priv-set.h: New file.
12930 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12931 * lib/write-any-file.c: Simplify by using priv-set module.
12932 * m4/priv-set.m4: New file.
12933 * modules/priv-set: New file.
12934 * modules/unlinkdir: Add dependency on priv-set module.
12935 * modules/write-any-file: Likewise.
12937 Tests for module 'priv-set'.
12938 * modules/priv-set-tests: New file.
12939 * tests/test-priv-set.c: New file.
12941 2009-05-03 Jim Meyering <meyering@redhat.com>
12942 Bruno Haible <bruno@clisp.org>
12944 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12945 use the converted UTF-8 variant of the name instead.
12947 2009-05-03 Jim Meyering <meyering@redhat.com>
12949 tests: tighten some getdate tests
12950 * tests/test-getdate.c (main): Tighten tests: require equality,
12951 not just greater than. Set TZ envvar to UTC0.
12953 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
12955 getdate: correctly interpret "next monday" when run on a Monday
12956 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12957 that e.g., "next tues" (when run on a tuesday) results in a date
12958 that is one week in the future, and not today's date.
12959 I.e., add a week when the wday is the same as the current one.
12960 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12961 and earlier by Martin Bernreuther and Jan Minář.
12962 * tests/test-getdate.c (main): Check that "next DAY" is always in
12963 the future and that "last DAY" is always in the past.
12965 2009-05-02 Jim Meyering <meyering@redhat.com>
12967 build: ensure that a release build fails when a submodule is unclean
12968 * top/maint.mk (no-submodule-changes): New rule.
12969 (alpha beta major): Depend on it.
12971 2009-05-02 Bruno Haible <bruno@clisp.org>
12973 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12974 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12975 shell variable gl_fnmatch_required to detect which variant is
12977 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12978 gl_FUNC_FNMATCH_POSIX.
12979 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12980 exclude fnmatch-posix.
12982 2009-05-02 Bruno Haible <bruno@clisp.org>
12984 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12985 * modules/mbsrtowcs (License): Change to LGPLv2+.
12986 * modules/strnlen1 (License): Likewise.
12987 Reported by Simon Josefsson.
12989 2009-05-02 Bruno Haible <bruno@clisp.org>
12991 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12993 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12994 gnulib-tool was called with option --source-base=lib.
12996 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12998 Use automake *-local hooks without commands, for extensibility.
12999 * modules/localcharset (Makefile.am): Rename install-exec-local
13000 rule to install-exec-localcharset, and make it a prerequisite of
13001 install-exec-local. Likewise, rename the uninstall-local rule to
13002 uninstall-localcharset, and make it a prerequisite of the former.
13004 2009-05-01 Bruno Haible <bruno@clisp.org>
13006 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13007 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13008 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13009 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13010 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13011 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13012 m4/locale-zh.m4, m4/codeset.m4.
13014 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13015 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13016 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13019 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13020 REPLACE_WCRTOMB if mbstate_t must be replaced.
13021 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13022 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13024 2009-05-01 Bruno Haible <bruno@clisp.org>
13026 Avoid compiler warnings when redefining macros defined by <libintl.h>.
13027 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13028 dngettext, dcngettext, textdomain, bindtextdomain,
13029 bind_textdomain_codeset): Undefine before redefining.
13031 2009-04-30 Bruno Haible <bruno@clisp.org>
13033 Fix bug introduced on 2009-04-25.
13034 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13035 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13036 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13038 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13040 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13042 Reported by Elbert_Pol <elbert.pol@gmail.com>.
13044 2009-04-28 Bruno Haible <bruno@clisp.org>
13047 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13048 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13049 * lib/unicase.h (u*_casexfrm): Likewise.
13050 Reported by Paolo Bonzini.
13052 2009-04-28 Bruno Haible <bruno@clisp.org>
13054 Fix a compilation error.
13055 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13056 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13057 Reported by Jim Meyering.
13059 2009-04-27 Bruno Haible <bruno@clisp.org>
13061 New module 'libunistring'.
13062 * modules/libunistring: New file.
13063 * m4/libunistring.m4: New file.
13064 * MODULES.html.sh (Unicode string functions): Add it.
13066 2009-04-27 Eric Blake <ebb9@byu.net>
13068 maint.mk: allow package-specific header to provide <config.h>
13069 * top/maint.mk (sc_require_config_h): New variable.
13070 (sc_require_config_h, sc_require_config_h_first): Use it.
13072 2009-04-27 Simon Josefsson <simon@josefsson.org>
13074 * top/maint.mk (sc_avoid_if_before_free): Except
13075 useless-if-before-free script.
13077 2009-04-27 Eric Blake <ebb9@byu.net>
13079 maintainer-makefile: depend on all required helper scripts
13080 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13081 useless-if-before-free.
13082 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13083 version, rather than assuming gnulib checkout is available.
13084 Reported by Simen Josefsson.
13086 2009-04-26 Bruno Haible <bruno@clisp.org>
13088 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13089 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13092 2009-04-26 Bruno Haible <bruno@clisp.org>
13094 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13095 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13096 AC_LIB_HAVE_LINKFLAGS.
13098 2009-04-26 Bruno Haible <bruno@clisp.org>
13100 Simplify calling convention of u*_conv_from_encoding.
13101 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13102 u32_conv_from_encoding): Expect a resultbuf argument and return the
13103 result directly as a pointer.
13104 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13105 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13106 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13107 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13108 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13109 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13111 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13112 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13113 * lib/vasnprintf.c (VASNPRINTF): Update.
13114 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13115 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13116 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13117 * NEWS: Mention the change.
13119 2009-04-26 Bruno Haible <bruno@clisp.org>
13121 Simplify calling convention of u*_conv_to_encoding.
13122 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13123 u32_conv_to_encoding): Expect a resultbuf argument and return the
13124 result directly as a pointer.
13125 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13126 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13127 freeing scaled_offsets if mem_iconveha failed.
13128 * lib/unicase/u-casexfrm.h (FUNC): Update.
13129 * lib/uninorm/u-normxfrm.h (FUNC): Update.
13130 * lib/vasnprintf.c (VASNPRINTF): Update.
13131 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13132 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13133 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13134 * NEWS: Mention the change.
13136 2009-04-26 Bruno Haible <bruno@clisp.org>
13138 Avoid test failures on AIX and OSF/1.
13139 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13141 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13142 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13144 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13145 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13146 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13147 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13148 * doc/posix-functions/malloc.texi: Document the portability problem
13149 related to malloc(0).
13151 2009-04-26 Bruno Haible <bruno@clisp.org>
13153 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13154 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13155 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13157 2009-04-25 Bruno Haible <bruno@clisp.org>
13159 Avoid link error when creating a namespace clean library.
13160 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13161 as macro with arguments if already defined as an alias.
13162 * lib/signbitf.c (gl_signbitf): Don't undefine.
13163 * lib/signbitd.c (gl_signbitd): Don't undefine.
13164 * lib/signbitl.c (gl_signbitl): Don't undefine.
13166 2009-04-25 Jim Meyering <meyering@redhat.com>
13168 vc-list-files: fix another quoting bug
13169 * build-aux/vc-list-files: Avoid sed backslash expansion
13170 of pathological directory names.
13172 2009-04-25 Eric Blake <ebb9@byu.net>
13174 vc-list-files: fix shell quoting error
13175 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
13178 2009-04-25 Jim Meyering <meyering@redhat.com>
13180 vc-list-files: restore lost functionality with subdir argument
13181 * build-aux/vc-list-files: When given a non-"." sub-directory
13182 argument, substitute the $dir/ prefix back onto each resulting name.
13183 Otherwise, coreutils' root_tests check would fail.
13185 2009-04-24 Eric Blake <ebb9@byu.net>
13187 vc-list-files: ignore git symlinks
13188 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13189 than ls-files, to ignore git symlinks.
13191 maint.mk: import improvements from m4
13192 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13193 (move_if_change): Delete unused macro.
13194 (news-date-check, vc-diff-check): Support VPATH builds.
13195 (announcement): Likewise. Split --bootstrap-tools list...
13196 (boostrap-tools): ...into separate list, which can be overridden
13198 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13199 requiring dependency on useless-if-before-free module.
13200 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13201 Support VPATH builds.
13203 2009-04-24 Jim Meyering <meyering@redhat.com>
13205 maint.mk: remove coreutils-specific rules and variables
13206 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13207 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13208 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13210 maint.mk: remove obsolete rule
13211 * top/maint.mk (rel-check): Remove rule.
13212 (WGET, WGETFLAGS): Remove now-unused variables.
13214 2009-04-24 Simon Josefsson <simon@josefsson.org>
13216 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13219 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13220 '$(PATH_SEPARATOR)' instead of ':'.
13222 2009-04-24 Simon Josefsson <simon@josefsson.org>
13224 * lib/getopt1.c (main): Use 'const' for static array.
13226 2009-04-24 Simon Josefsson <simon@josefsson.org>
13228 * top/maint.mk: Sync with coreutils.
13229 * NEWS: Explain incompatibilities.
13231 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13232 Bruno Haible <bruno@clisp.org>
13234 Fix cross-compilation results.
13235 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13236 statement, as third argument of AC_TRY_RUN.
13237 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13238 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13240 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13241 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13243 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13244 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13245 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13247 2009-04-20 Bruno Haible <bruno@clisp.org>
13249 Avoid test failure on mingw.
13250 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13252 2009-04-20 Bruno Haible <bruno@clisp.org>
13254 Avoid compilation error on mingw.
13255 * modules/localename-tests (Depends-on): Add locale.
13257 2009-04-19 Bruno Haible <bruno@clisp.org>
13259 Support for building a shared library on Windows platforms.
13260 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13261 (main): Test the presence of UNINORM_NFC here.
13262 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13263 (main): Test the presence of UNINORM_NFD here.
13264 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13265 (main): Test the presence of UNINORM_NFKC here.
13266 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13267 (main): Test the presence of UNINORM_NFKD here.
13269 2009-04-19 Bruno Haible <bruno@clisp.org>
13271 Avoid a compiler warning.
13272 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13273 Change type of variable 'sequence'.
13275 2009-04-19 Bruno Haible <bruno@clisp.org>
13277 * modules/configmake (Makefile.am): When the contents of configmake.h
13278 does not change, arrange to preserve its modification time.
13280 2009-04-17 Simon Josefsson <simon@josefsson.org>
13282 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13285 2009-04-16 Jim Meyering <meyering@redhat.com>
13287 useless-if-before-free: improve conversion code
13288 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13289 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13291 2009-04-14 Bruno Haible <bruno@clisp.org>
13293 * modules/fcntl (Depends-on): Add extensions.
13294 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13296 2009-04-12 Ben Pfaff <blp@gnu.org>
13298 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13299 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13301 2009-03-20 Ben Pfaff <blp@gnu.org>
13303 Make rename replace existing destinations on Windows.
13304 * m4/rename.m4: Add test for Mingw.
13305 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13306 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13307 * doc/posix-functions/rename.texi: Document.
13309 2009-04-10 Bruno Haible <bruno@clisp.org>
13311 New include file "iconveh.h".
13312 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13313 * lib/striconveh.h: Include it.
13314 (enum iconv_ilseq_handler): Remove definition.
13315 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13317 * lib/striconveha.c: Include striconveh.h.
13318 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13319 * modules/striconveh (Files): Add lib/iconveh.h.
13320 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13323 2009-04-10 Bruno Haible <bruno@clisp.org>
13325 * lib/uniconv.h: Update comment.
13327 2009-04-10 Bruno Haible <bruno@clisp.org>
13329 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13331 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13332 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13333 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13334 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13335 "unistring-notinline.h", so that the function gets defined always.
13336 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13337 * lib/unistr/u8-uctomb.c: Likewise.
13338 * lib/unistr/u16-mbtouc.c: Likewise.
13339 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13340 * lib/unistr/u16-uctomb.c: Likewise.
13341 * lib/unistr/u32-mbtouc.c: Likewise.
13342 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13343 * lib/unistr/u32-uctomb.c: Likewise.
13345 2009-04-10 Bruno Haible <bruno@clisp.org>
13347 Mark 'utime' obsolete.
13348 * modules/utime (Status, Notice): New sections.
13349 Suggested by Jim Meyering.
13351 Fix cross-compile guess for utime test.
13352 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13354 * doc/posix-functions/utime.texi: Give more precisions.
13355 Reported by Jan <ipif@ymail.com>.
13357 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13359 filevercmp: correct today's change
13360 * lib/filevercmp.c: Also handle coreutils' test inputs.
13361 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13363 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13365 * lib/filevercmp.c: Special handle for "", "." and "..".
13366 * tests/test-filevercmp.c: Enlarge the set suite.
13368 2009-04-07 Jim Meyering <meyering@redhat.com>
13370 useless-if-before-free: show how to remove braced useless free, too
13371 * build-aux/useless-if-before-free: still only in a comment, though.
13373 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13375 maint.mk: import changes to syntax-check macros from coreutils
13376 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13377 Use them in the relevant macros.
13379 2009-04-06 Bruno Haible <bruno@clisp.org>
13381 Fix unportable use of bit-fields.
13382 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13383 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13384 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13386 2009-04-06 Bruno Haible <bruno@clisp.org>
13388 Avoid test failures on AIX and OSF/1.
13389 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13390 that malloc(0) = NULL.
13391 * tests/unicase/test-u8-tolower.c (check): Likewise.
13392 * tests/unicase/test-u8-totitle.c (check): Likewise.
13393 * tests/unicase/test-u8-toupper.c (check): Likewise.
13394 * tests/unicase/test-u16-casefold.c (check): Likewise.
13395 * tests/unicase/test-u16-tolower.c (check): Likewise.
13396 * tests/unicase/test-u16-totitle.c (check): Likewise.
13397 * tests/unicase/test-u16-toupper.c (check): Likewise.
13398 * tests/unicase/test-u32-casefold.c (check): Likewise.
13399 * tests/unicase/test-u32-tolower.c (check): Likewise.
13400 * tests/unicase/test-u32-totitle.c (check): Likewise.
13401 * tests/unicase/test-u32-toupper.c (check): Likewise.
13402 * tests/uninorm/test-u8-nfc.c (check): Likewise.
13403 * tests/uninorm/test-u8-nfd.c (check): Likewise.
13404 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13405 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13406 * tests/uninorm/test-u16-nfc.c (check): Likewise.
13407 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13408 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13409 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13410 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13411 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13412 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13413 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13415 2009-04-05 Bruno Haible <bruno@clisp.org>
13417 Work around an autoconf limitation.
13418 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13419 comment line if it would be longer than 3 KB.
13421 2009-04-05 Bruno Haible <bruno@clisp.org>
13423 Avoid test failure with libiconv-1.13.
13424 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13425 of the expected test results.
13427 2009-04-05 Bruno Haible <bruno@clisp.org>
13429 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13430 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13431 that it should be installed.
13433 2009-04-05 Bruno Haible <bruno@clisp.org>
13435 * gnulib-tool: New option --copy-file.
13436 (func_usage): Document it.
13437 (func_dest_tmpfilename): Moved out of func_import.
13438 (func_add_file, func_update_file): New functions, extracted from
13440 (func_import): Update.
13442 2009-04-05 Karl Berry <karl@gnu.org>
13444 * README: prominently mention gnulib-tool.
13445 Rearrange sections so getting the code is near the top.
13447 2009-04-05 Bruno Haible <bruno@clisp.org>
13449 * lib/unicase.h: Mention u*_cmp2.
13450 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13451 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13452 * lib/unicase/ulc-casecmp.c: Likewise.
13453 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13454 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13455 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13457 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13458 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13460 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13463 * lib/uninorm.h: Mention u*_cmp2.
13464 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13465 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13466 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13467 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13468 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13470 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13472 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13475 New module 'unistr/u32-cmp2'.
13476 * lib/unistr/u32-cmp2.c: New file.
13477 * modules/unistr/u32-cmp2: New file.
13479 New module 'unistr/u16-cmp2'.
13480 * lib/unistr/u16-cmp2.c: New file.
13481 * modules/unistr/u16-cmp2: New file.
13483 New module 'unistr/u8-cmp2'.
13484 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13485 * lib/unistr/u8-cmp2.c: New file.
13486 * lib/unistr/u-cmp2.h: New file.
13487 * modules/unistr/u8-cmp2: New file.
13489 2009-04-05 Bruno Haible <bruno@clisp.org>
13491 * lib/unictype.h (uc_property_is_valid): New macro.
13492 * tests/unictype/test-pr_byname.c (main): Use it.
13494 * lib/unistr.h: Doc fixes.
13495 * lib/uniconv.h: Doc fixes.
13496 * lib/unictype.h: Doc fixes.
13498 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
13500 Port coreutils 7.2 to Solaris 8.
13502 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13503 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13504 for Solaris 8. This is a bit of a hack, as it means it's the
13505 caller's responsibility to add -lnsl if needed, but most likely it
13506 won't be needed since only getaddrinfo uses this and getaddrinfo
13507 isn't needed on Solaris 8.
13509 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13510 problem to Solaris 8 encountered with coreutils 7.2, which
13511 resulted in a message "fnmatch.c:292: warning: passing argument 4
13512 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
13513 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13515 2009-04-03 Simon Josefsson <simon@josefsson.org>
13517 * m4/ld-version-script.m4: Add FIXME comment.
13519 2009-04-02 Simon Josefsson <simon@josefsson.org>
13521 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13522 SOVERSION variable.
13524 2009-04-02 Bruno Haible <bruno@clisp.org>
13526 * Makefile (info, html, dvi, pdf): Combine the rules.
13527 Suggested by Jim Meyering.
13529 2009-04-01 Bruno Haible <bruno@clisp.org>
13531 * Makefile (info, html, dvi, pdf): New targets.
13532 Reported by Reuben Thomas <rrt@sc3d.org>.
13534 2009-04-01 Bruno Haible <bruno@clisp.org>
13536 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13537 can be put into PATH.
13538 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13540 2009-04-01 Bruno Haible <bruno@clisp.org>
13542 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13544 2009-04-01 Bruno Haible <bruno@clisp.org>
13546 Rename module 'visibility'.
13547 * modules/lib-symbol-visibility: Renamed from modules/visibility.
13548 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13549 * doc/gnulib.texi: Update.
13550 * MODULES.html.sh (Misc): Update.
13551 * NEWS: Mention the change.
13553 2009-04-01 Simon Josefsson <simon@josefsson.org>
13555 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
13556 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13557 Eric Blake <ebb9@byu.net> for review.
13558 * MODULES.html.sh: Add lib-msvc-compat.
13559 * doc/gnulib.texi: Link to new section.
13560 * m4/ld-output-def.m4: New file.
13561 * doc/ld-output-def.texi: New file.
13563 2009-04-01 Simon Josefsson <simon@josefsson.org>
13565 Rename ld-version-script to lib-symbol-versions. Suggested by
13566 Bruno Haible <bruno@clisp.org>.
13567 * modules/ld-version-script: Renamed to lib-symbol-versions.
13568 * doc/ld-version-script.texi: Fix module name.
13569 * MODULES.html.sh: Add lib-symbol-versions.
13571 2009-03-31 Simon Josefsson <simon@josefsson.org>
13573 * modules/u64-tests: New file.
13574 * tests/test-u64.c: New file.
13576 2009-03-04 Simon Josefsson <simon@josefsson.org>
13578 * MODULES.html.sh: Mention u64.
13579 * modules/u64: New module.
13580 * modules/crypto/sha512: Depend on u64 module instead of providing
13583 2009-03-27 Eric Blake <ebb9@byu.net>
13585 test-strerror: make debugging EAI_SYSTEM easier
13586 * modules/getaddrinfo-tests (Depends-on): Add strerror.
13587 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13588 failure was EAI_SYSTEM.
13590 2009-03-25 Bruno Haible <bruno@clisp.org>
13592 Fix a problem with --enable-relocatable on Solaris 7.
13593 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13596 2009-03-25 Eric Blake <ebb9@byu.net>
13598 test-sockets: avoid gcc warning
13599 * tests/test-sockets.c (main): Silence compiler warning.
13601 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
13603 New modules nproc, pthread, contributed by Glen Lenker.
13605 * MODULES.html.sh: Add pthread, nproc.
13606 * lib/nproc.c: New file.
13607 * lib/nproc.h: New file.
13608 * lib/pthread.in.h: New file.
13609 * m4/pthread.m4: New file.
13610 * modules/nproc: New file.
13611 * modules/pthread: New file.
13613 2009-03-24 Simon Josefsson <simon@josefsson.org>
13615 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13618 2009-03-24 Kamil Dudka <kdudka@redhat.com>
13620 filevercmp: handle simple~ and numbered.~3~ backup suffixes
13621 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13622 * tests/test-filevercmp.c: Add tests for backup suffixes.
13624 2009-03-24 Simon Josefsson <simon@josefsson.org>
13626 * modules/stdlib (Depends-on): Add stdint, needed when defining
13627 struct random_data on, for example, HP-UX 10.20. Reported by
13628 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13630 2009-03-24 Simon Josefsson <simon@josefsson.org>
13632 * lib/readline.c (readline): Call fflush on stdout after printing
13635 2009-03-20 Bruno Haible <bruno@clisp.org>
13637 Remove dependency from 'close' module to -lws2_32 on native Windows.
13638 * lib/close-hook.h: New file.
13639 * lib/close-hook.c: New file.
13640 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13642 (_gl_close_fd_maybe_socket): Remove function.
13643 (rpl_close): Invoke execute_all_close_hooks instead of
13644 _gl_close_fd_maybe_socket.
13645 * lib/sockets.c: Include close-hook.h, w32sock.h.
13646 (close_fd_maybe_socket): New function, essentially from lib/close.c.
13647 (close_sockets_hook): New variable.
13648 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13649 (gl_sockets_cleanup): Unregister it.
13650 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13651 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13652 * modules/close-hook: New file.
13653 * modules/close (Files): Remove lib/w32sock.h.
13654 (Depends-on): Add close-hook.
13655 (Link): Remove section.
13656 * modules/sockets (Files): Add lib/w32sock.h.
13657 (Depends-on): Add close-hook.
13658 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13660 * NEWS: Mention that LIB_CLOSE is gone.
13662 2009-03-23 Eric Blake <ebb9@byu.net>
13664 signal-tests: test previous patch
13665 * tests/test-signal.c: New file.
13666 * modules/signal-tests: Likewise.
13668 signal.h: always support 'volatile sig_atomic_t'
13669 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13670 (gl_SIGNAL_H_DEFAULTS): Add a default.
13671 * modules/signal (Makefile.am): Substitute if needed.
13672 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13673 users can blindly add volatile.
13674 * doc/posix-headers/signal.texi (signal.h): Document it.
13675 Reported by Matthew Woehlke.
13677 2009-03-23 Jim Meyering <meyering@redhat.com>
13679 pathmax: PATH_MAX: use pathconf only when available
13680 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13681 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
13682 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13683 This avoids a link failure in a PSP cross-compilation environment
13684 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13686 * lib/vasnprintf.c (divide): Fix typo in comment.
13688 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13690 * gnulib-tool (func_filter_filelist): Fix comment.
13692 2009-03-20 Bruno Haible <bruno@clisp.org>
13694 Make sockets.h self-contained.
13695 * lib/sockets.c: Include sockets.h first.
13696 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13698 2009-03-19 Eric Blake <ebb9@byu.net>
13700 doc: mention more functions added in cygwin 1.7.0
13701 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13703 * doc/posix-functions/log2f.texi: Likewise.
13705 2009-03-19 Jim Meyering <meyering@redhat.com>
13707 fsusage: avoid syntax error due to statement-before-declaration
13708 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13709 after all declarations. Reported by Matthew Woehlke in
13710 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13712 2009-03-18 Eric Blake <ebb9@byu.net>
13714 build-aux/compile: sync from automake
13715 * build-aux/compile: New file, from automake.
13716 * config/srclist.txt: Mention build-aux/compile.
13718 2009-03-17 Bruno Haible <bruno@clisp.org>
13720 * lib/git-merge-changelog.c: Fix typo in comment.
13721 Reported by Reuben Thomas <rrt@sc3d.org>.
13723 2009-03-17 Reuben Thomas <rrt@sc3d.org>
13725 * m4/regex.m4: update and improve help for
13726 --without-included-regex.
13728 2009-03-17 Simon Josefsson <simon@josefsson.org>
13730 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13731 failure on missing include files.
13733 2009-03-17 Eric Blake <ebb9@byu.net>
13735 doc: mention more functions added in cygwin 1.7.0
13736 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13738 * doc/posix-functions/fwscanf.texi: Likewise.
13739 * doc/posix-functions/swprintf.texi: Likewise.
13740 * doc/posix-functions/swscanf.texi: Likewise.
13741 * doc/posix-functions/vfwprintf.texi: Likewise.
13742 * doc/posix-functions/vfwscanf.texi: Likewise.
13743 * doc/posix-functions/vswprintf.texi: Likewise.
13744 * doc/posix-functions/vswscanf.texi: Likewise.
13745 * doc/posix-functions/vwprintf.texi: Likewise.
13746 * doc/posix-functions/vwscanf.texi: Likewise.
13747 * doc/posix-functions/wcscasecmp.texi: Likewise.
13748 * doc/posix-functions/wcsdup.texi: Likewise.
13749 * doc/posix-functions/wcsftime.texi: Likewise.
13750 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13751 * doc/posix-functions/wprintf.texi: Likewise.
13752 * doc/posix-functions/wscanf.texi: Likewise.
13753 * doc/glibc-functions/gethostbyname2.texi: Likewise.
13755 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13757 maint.mk: really add $(AM_MAKEFLAGS)
13758 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13759 was inadvertently omitted in the last commit.
13760 Spotted by Bruno Haible.
13762 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13763 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13764 $(AM_MAKEFLAGS)' rather than plain `make'.
13766 gnulib-tool: execute $MAKE not make
13767 * gnulib-tool: Default $MAKE to 'make'.
13768 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13769 than make. Initialize $MAKE in the do-autobuild script.
13771 gnulib-tool: use $MAKE not make in generated files
13772 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13773 make, in generated files. Initialize $MAKE in the do-autobuild
13776 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13778 GNUmakefile: disable parallelism only for multiple, recursive targets
13779 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13780 additions in the Makefile.
13781 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13783 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13784 are listed on the command line and at least one of them is
13785 listed in $(ALL_RECURSIVE_TARGETS).
13787 2009-03-14 Bruno Haible <bruno@clisp.org>
13789 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13790 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13791 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13792 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13793 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13794 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13795 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13797 * modules/unistr/u8-strchr (Depends-on): Likewise.
13798 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13799 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13801 * modules/unistr/u16-strchr (Depends-on): Likewise.
13802 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13804 2009-03-12 Bruno Haible <bruno@clisp.org>
13806 Work around select() bug on Interix 3.5.
13807 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13808 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13809 * m4/select.m4: New file.
13810 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13811 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13812 * modules/select (Files): Add m4/select.m4.
13813 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13814 * modules/nanosleep (Depends-on): Add select.
13815 * modules/poll (Depends-on): Likewise.
13816 * doc/posix-functions/select.texi: Mention the Interix bug.
13817 Reported by Markus Duft <mduft@gentoo.org>.
13819 * lib/select.c: Renamed from lib/winsock-select.c.
13820 * modules/select (Files): Add lib/select.c, remove
13821 lib/winsock-select.c.
13822 (configure.ac): Update.
13824 2009-03-12 Jim Meyering <meyering@redhat.com>
13826 avoid gcc warnings about unused macro definitions
13827 * lib/readtokens.c (STREQ): Remove unused definition.
13828 * lib/xmalloc.c (SIZE_MAX): Likewise.
13829 * lib/openat-die.c (N_): Likewise.
13830 * lib/mountlist.c (SIZE_MAX): Remove definition.
13831 Instead, include <stdint.h>.
13832 * lib/readutmp.c: Likewise.
13833 * modules/readutmp (Depends-on): Add stdint.
13834 * modules/mountlist (Depends-on): Add stdint.
13835 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13837 2009-03-10 Bruno Haible <bruno@clisp.org>
13839 Tests for module 'mbmemcasecoll'.
13840 * modules/mbmemcasecoll-tests: New file.
13841 * tests/test-mbmemcasecoll1.sh: New file.
13842 * tests/test-mbmemcasecoll2.sh: New file.
13843 * tests/test-mbmemcasecoll3.sh: New file.
13844 * tests/test-mbmemcasecoll.c: New file.
13846 New module 'mbmemcasecoll'.
13847 * lib/mbmemcasecoll.h: New file.
13848 * lib/mbmemcasecoll.c: New file.
13849 * modules/mbmemcasecoll: New file.
13851 * tests/test-mbmemcasecmp.h: New file, extracted from
13852 tests/test-mbmemcasecmp.c.
13853 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13854 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13856 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13858 2009-03-09 Bruno Haible <bruno@clisp.org>
13860 Tests for module 'mbmemcasecmp'.
13861 * modules/mbmemcasecmp-tests: New file.
13862 * tests/test-mbmemcasecmp1.sh: New file.
13863 * tests/test-mbmemcasecmp2.sh: New file.
13864 * tests/test-mbmemcasecmp3.sh: New file.
13865 * tests/test-mbmemcasecmp.c: New file.
13867 New module 'mbmemcasecmp'.
13868 * lib/mbmemcasecmp.h: New file.
13869 * lib/mbmemcasecmp.c: New file.
13870 * modules/mbmemcasecmp: New file.
13872 2009-03-09 Bruno Haible <bruno@clisp.org>
13874 Tests for module 'unicase/ulc-casecoll'.
13875 * modules/unicase/ulc-casecoll-tests: New file.
13876 * tests/unicase/test-ulc-casecoll1.sh: New file.
13877 * tests/unicase/test-ulc-casecoll2.sh: New file.
13878 * tests/unicase/test-ulc-casecoll.c: New file.
13880 New module 'unicase/ulc-casecoll'.
13881 * lib/unicase.h (ulc_casecoll): New declaration.
13882 * lib/unicase/ulc-casecoll.c: New file.
13883 * modules/unicase/ulc-casecoll: New file.
13885 New module 'unicase/ulc-casexfrm'.
13886 * lib/unicase.h (ulc_casexfrm): New declaration.
13887 * lib/unicase/ulc-casexfrm.c: New file.
13888 * modules/unicase/ulc-casexfrm: New file.
13890 2009-03-09 Bruno Haible <bruno@clisp.org>
13892 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13895 * m4/mbscasecmp.m4: Remove file.
13896 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13897 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13899 * m4/mbscasestr.m4: Remove file.
13900 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13901 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13903 * m4/mbschr.m4: Remove file.
13904 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13905 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13907 * m4/mbscspn.m4: Remove file.
13908 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13909 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13911 * m4/mbslen.m4: Remove file.
13912 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13913 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13915 * m4/mbsncasecmp.m4: Remove file.
13916 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13917 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13919 * m4/mbsnlen.m4: Remove file.
13920 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13921 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13923 * m4/mbspbrk.m4: Remove file.
13924 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13925 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13927 * m4/mbspcasecmp.m4: Remove file.
13928 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13929 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13931 * m4/mbsrchr.m4: Remove file.
13932 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13933 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13935 * m4/mbssep.m4: Remove file.
13936 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13937 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13939 * m4/mbsspn.m4: Remove file.
13940 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13941 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13943 * m4/mbsstr.m4: Remove file.
13944 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13945 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13947 * m4/mbstok_r.m4: Remove file.
13948 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13949 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13951 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13953 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13954 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13956 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13958 2009-03-08 Bruno Haible <bruno@clisp.org>
13960 Tests for module 'unicase/ulc-casecmp'.
13961 * modules/unicase/ulc-casecmp-tests: New file.
13962 * tests/unicase/test-ulc-casecmp1.sh: New file.
13963 * tests/unicase/test-ulc-casecmp2.sh: New file.
13964 * tests/unicase/test-ulc-casecmp.c: New file.
13966 New module 'unicase/ulc-casecmp'.
13967 * lib/unicase.h (ulc_casecmp): New declaration.
13968 * lib/unicase/ulc-casecmp.c: New file.
13969 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13970 'const SRC_UNIT *'.
13971 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13972 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13973 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13974 * modules/unicase/ulc-casecmp: New file.
13976 Tests for module 'unicase/u32-is-cased'.
13977 * modules/unicase/u32-is-cased-tests: New file.
13978 * tests/unicase/test-u32-is-cased.c: New file.
13980 Tests for module 'unicase/u16-is-cased'.
13981 * modules/unicase/u16-is-cased-tests: New file.
13982 * tests/unicase/test-u16-is-cased.c: New file.
13984 Tests for module 'unicase/u8-is-cased'.
13985 * modules/unicase/u8-is-cased-tests: New file.
13986 * tests/unicase/test-u8-is-cased.c: New file.
13987 * tests/unicase/test-is-cased.h: New file.
13989 New module 'unicase/u32-is-cased'.
13990 * lib/unicase/u32-is-cased.c: New file.
13991 * modules/unicase/u32-is-cased: New file.
13993 New module 'unicase/u16-is-cased'.
13994 * lib/unicase/u16-is-cased.c: New file.
13995 * modules/unicase/u16-is-cased: New file.
13997 New module 'unicase/u8-is-cased'.
13998 * lib/unicase/u8-is-cased.c: New file.
13999 * lib/unicase/u-is-cased.h: New file.
14000 * modules/unicase/u8-is-cased: New file.
14002 Tests for module 'unicase/u32-is-casefolded'.
14003 * modules/unicase/u32-is-casefolded-tests: New file.
14004 * tests/unicase/test-u32-is-casefolded.c: New file.
14006 Tests for module 'unicase/u16-is-casefolded'.
14007 * modules/unicase/u16-is-casefolded-tests: New file.
14008 * tests/unicase/test-u16-is-casefolded.c: New file.
14010 Tests for module 'unicase/u8-is-casefolded'.
14011 * modules/unicase/u8-is-casefolded-tests: New file.
14012 * tests/unicase/test-u8-is-casefolded.c: New file.
14013 * tests/unicase/test-is-casefolded.h: New file.
14015 New module 'unicase/u32-is-casefolded'.
14016 * lib/unicase/u32-is-casefolded.c: New file.
14017 * modules/unicase/u32-is-casefolded: New file.
14019 New module 'unicase/u16-is-casefolded'.
14020 * lib/unicase/u16-is-casefolded.c: New file.
14021 * modules/unicase/u16-is-casefolded: New file.
14023 New module 'unicase/u8-is-casefolded'.
14024 * lib/unicase/u8-is-casefolded.c: New file.
14025 * modules/unicase/u8-is-casefolded: New file.
14027 Tests for module 'unicase/u32-is-titlecase'.
14028 * modules/unicase/u32-is-titlecase-tests: New file.
14029 * tests/unicase/test-u32-is-titlecase.c: New file.
14031 Tests for module 'unicase/u16-is-titlecase'.
14032 * modules/unicase/u16-is-titlecase-tests: New file.
14033 * tests/unicase/test-u16-is-titlecase.c: New file.
14035 Tests for module 'unicase/u8-is-titlecase'.
14036 * modules/unicase/u8-is-titlecase-tests: New file.
14037 * tests/unicase/test-u8-is-titlecase.c: New file.
14038 * tests/unicase/test-is-titlecase.h: New file.
14040 New module 'unicase/u32-is-titlecase'.
14041 * lib/unicase/u32-is-titlecase.c: New file.
14042 * modules/unicase/u32-is-titlecase: New file.
14044 New module 'unicase/u16-is-titlecase'.
14045 * lib/unicase/u16-is-titlecase.c: New file.
14046 * modules/unicase/u16-is-titlecase: New file.
14048 New module 'unicase/u8-is-titlecase'.
14049 * lib/unicase/u8-is-titlecase.c: New file.
14050 * modules/unicase/u8-is-titlecase: New file.
14052 Tests for module 'unicase/u32-is-lowercase'.
14053 * modules/unicase/u32-is-lowercase-tests: New file.
14054 * tests/unicase/test-u32-is-lowercase.c: New file.
14056 Tests for module 'unicase/u16-is-lowercase'.
14057 * modules/unicase/u16-is-lowercase-tests: New file.
14058 * tests/unicase/test-u16-is-lowercase.c: New file.
14060 Tests for module 'unicase/u8-is-lowercase'.
14061 * modules/unicase/u8-is-lowercase-tests: New file.
14062 * tests/unicase/test-u8-is-lowercase.c: New file.
14063 * tests/unicase/test-is-lowercase.h: New file.
14065 New module 'unicase/u32-is-lowercase'.
14066 * lib/unicase/u32-is-lowercase.c: New file.
14067 * modules/unicase/u32-is-lowercase: New file.
14069 New module 'unicase/u16-is-lowercase'.
14070 * lib/unicase/u16-is-lowercase.c: New file.
14071 * modules/unicase/u16-is-lowercase: New file.
14073 New module 'unicase/u8-is-lowercase'.
14074 * lib/unicase/u8-is-lowercase.c: New file.
14075 * modules/unicase/u8-is-lowercase: New file.
14077 Tests for module 'unicase/u32-is-uppercase'.
14078 * modules/unicase/u32-is-uppercase-tests: New file.
14079 * tests/unicase/test-u32-is-uppercase.c: New file.
14081 Tests for module 'unicase/u16-is-uppercase'.
14082 * modules/unicase/u16-is-uppercase-tests: New file.
14083 * tests/unicase/test-u16-is-uppercase.c: New file.
14085 Tests for module 'unicase/u8-is-uppercase'.
14086 * modules/unicase/u8-is-uppercase-tests: New file.
14087 * tests/unicase/test-u8-is-uppercase.c: New file.
14088 * tests/unicase/test-is-uppercase.h: New file.
14090 New module 'unicase/u32-is-uppercase'.
14091 * lib/unicase/u32-is-uppercase.c: New file.
14092 * modules/unicase/u32-is-uppercase: New file.
14094 New module 'unicase/u16-is-uppercase'.
14095 * lib/unicase/u16-is-uppercase.c: New file.
14096 * modules/unicase/u16-is-uppercase: New file.
14098 New module 'unicase/u8-is-uppercase'.
14099 * lib/unicase/u8-is-uppercase.c: New file.
14100 * modules/unicase/u8-is-uppercase: New file.
14102 New module 'unicase/u32-is-invariant'.
14103 * lib/unicase/u32-is-invariant.c: New file.
14104 * modules/unicase/u32-is-invariant: New file.
14106 New module 'unicase/u16-is-invariant'.
14107 * lib/unicase/u16-is-invariant.c: New file.
14108 * modules/unicase/u16-is-invariant: New file.
14110 New module 'unicase/u8-is-invariant'.
14111 * lib/unicase/u8-is-invariant.c: New file.
14112 * lib/unicase/invariant.h: New file.
14113 * lib/unicase/u-is-invariant.h: New file.
14114 * modules/unicase/u8-is-invariant: New file.
14116 Tests for module 'unicase/u32-casecoll'.
14117 * modules/unicase/u32-casecoll-tests: New file.
14118 * tests/unicase/test-u32-casecoll.c: New file.
14120 Tests for module 'unicase/u16-casecoll'.
14121 * modules/unicase/u16-casecoll-tests: New file.
14122 * tests/unicase/test-u16-casecoll.c: New file.
14124 Tests for module 'unicase/u8-casecoll'.
14125 * modules/unicase/u8-casecoll-tests: New file.
14126 * tests/unicase/test-u8-casecoll.c: New file.
14128 New module 'unicase/u32-casecoll'.
14129 * lib/unicase/u32-casecoll.c: New file.
14130 * modules/unicase/u32-casecoll: New file.
14132 New module 'unicase/u16-casecoll'.
14133 * lib/unicase/u16-casecoll.c: New file.
14134 * modules/unicase/u16-casecoll: New file.
14136 New module 'unicase/u8-casecoll'.
14137 * lib/unicase/u8-casecoll.c: New file.
14138 * lib/unicase/u-casecoll.h: New file.
14139 * modules/unicase/u8-casecoll: New file.
14141 New module 'unicase/u32-casexfrm'.
14142 * lib/unicase/u32-casexfrm.c: New file.
14143 * modules/unicase/u32-casexfrm: New file.
14145 New module 'unicase/u16-casexfrm'.
14146 * lib/unicase/u16-casexfrm.c: New file.
14147 * modules/unicase/u16-casexfrm: New file.
14149 New module 'unicase/u8-casexfrm'.
14150 * lib/unicase/u8-casexfrm.c: New file.
14151 * lib/unicase/u-casexfrm.h: New file.
14152 * modules/unicase/u8-casexfrm: New file.
14154 Tests for module 'unicase/u32-casecmp'.
14155 * modules/unicase/u32-casecmp-tests: New file.
14156 * tests/unicase/test-u32-casecmp.c: New file.
14158 Tests for module 'unicase/u16-casecmp'.
14159 * modules/unicase/u16-casecmp-tests: New file.
14160 * tests/unicase/test-u16-casecmp.c: New file.
14162 Tests for module 'unicase/u8-casecmp'.
14163 * modules/unicase/u8-casecmp-tests: New file.
14164 * tests/unicase/test-u8-casecmp.c: New file.
14165 * tests/unicase/test-casecmp.h: New file.
14167 New module 'unicase/u32-casecmp'.
14168 * lib/unicase/u32-casecmp.c: New file.
14169 * modules/unicase/u32-casecmp: New file.
14171 New module 'unicase/u16-casecmp'.
14172 * lib/unicase/u16-casecmp.c: New file.
14173 * modules/unicase/u16-casecmp: New file.
14175 New module 'unicase/u8-casecmp'.
14176 * lib/unicase/u8-casecmp.c: New file.
14177 * lib/unicase/u-casecmp.h: New file.
14178 * modules/unicase/u8-casecmp: New file.
14180 Tests for module 'unicase/u32-casefold'.
14181 * modules/unicase/u32-casefold-tests: New file.
14182 * tests/unicase/test-u32-casefold.c: New file.
14184 Tests for module 'unicase/u16-casefold'.
14185 * modules/unicase/u16-casefold-tests: New file.
14186 * tests/unicase/test-u16-casefold.c: New file.
14188 Tests for module 'unicase/u8-casefold'.
14189 * modules/unicase/u8-casefold-tests: New file.
14190 * tests/unicase/test-u8-casefold.c: New file.
14192 New module 'unicase/u32-casefold'.
14193 * lib/unicase/u32-casefold.c: New file.
14194 * modules/unicase/u32-casefold: New file.
14196 New module 'unicase/u16-casefold'.
14197 * lib/unicase/u16-casefold.c: New file.
14198 * modules/unicase/u16-casefold: New file.
14200 New module 'unicase/u8-casefold'.
14201 * lib/unicase/u8-casefold.c: New file.
14202 * lib/unicase/u-casefold.h: New file.
14203 * modules/unicase/u8-casefold: New file.
14205 New module 'unicase/tocasefold'.
14206 * lib/unicase/casefold.h: New file.
14207 * lib/unicase/tocasefold.c: New file.
14208 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14209 * modules/unicase/tocasefold: New file.
14211 Tests for module 'unicase/u32-totitle'.
14212 * modules/unicase/u32-totitle-tests: New file.
14213 * tests/unicase/test-u32-totitle.c: New file.
14215 Tests for module 'unicase/u16-totitle'.
14216 * modules/unicase/u16-totitle-tests: New file.
14217 * tests/unicase/test-u16-totitle.c: New file.
14219 Tests for module 'unicase/u8-totitle'.
14220 * modules/unicase/u8-totitle-tests: New file.
14221 * tests/unicase/test-u8-totitle.c: New file.
14223 New module 'unicase/u32-totitle'.
14224 * lib/unicase/u32-totitle.c: New file.
14225 * modules/unicase/u32-totitle: New file.
14227 New module 'unicase/u16-totitle'.
14228 * lib/unicase/u16-totitle.c: New file.
14229 * modules/unicase/u16-totitle: New file.
14231 New module 'unicase/u8-totitle'.
14232 * lib/unicase/u8-totitle.c: New file.
14233 * lib/unicase/u-totitle.h: New file.
14234 * modules/unicase/u8-totitle: New file.
14236 Tests for module 'unicase/u32-tolower'.
14237 * modules/unicase/u32-tolower-tests: New file.
14238 * tests/unicase/test-u32-tolower.c: New file.
14240 Tests for module 'unicase/u16-tolower'.
14241 * modules/unicase/u16-tolower-tests: New file.
14242 * tests/unicase/test-u16-tolower.c: New file.
14244 Tests for module 'unicase/u8-tolower'.
14245 * modules/unicase/u8-tolower-tests: New file.
14246 * tests/unicase/test-u8-tolower.c: New file.
14248 New module 'unicase/u32-tolower'.
14249 * lib/unicase/u32-tolower.c: New file.
14250 * modules/unicase/u32-tolower: New file.
14252 New module 'unicase/u16-tolower'.
14253 * lib/unicase/u16-tolower.c: New file.
14254 * modules/unicase/u16-tolower: New file.
14256 New module 'unicase/u8-tolower'.
14257 * lib/unicase/u8-tolower.c: New file.
14258 * modules/unicase/u8-tolower: New file.
14260 Tests for module 'unicase/u32-toupper'.
14261 * modules/unicase/u32-toupper-tests: New file.
14262 * tests/unicase/test-u32-toupper.c: New file.
14264 Tests for module 'unicase/u16-toupper'.
14265 * modules/unicase/u16-toupper-tests: New file.
14266 * tests/unicase/test-u16-toupper.c: New file.
14268 Tests for module 'unicase/u8-toupper'.
14269 * modules/unicase/u8-toupper-tests: New file.
14270 * tests/unicase/test-u8-toupper.c: New file.
14272 New module 'unicase/u32-toupper'.
14273 * lib/unicase/u32-toupper.c: New file.
14274 * modules/unicase/u32-toupper: New file.
14276 New module 'unicase/u16-toupper'.
14277 * lib/unicase/u16-toupper.c: New file.
14278 * modules/unicase/u16-toupper: New file.
14280 New module 'unicase/u8-toupper'.
14281 * lib/unicase/u8-toupper.c: New file.
14282 * modules/unicase/u8-toupper: New file.
14284 New module 'unicase/u32-casemap'.
14285 * lib/unicase/u32-casemap.c: New file.
14286 * modules/unicase/u32-casemap: New file.
14288 New module 'unicase/u16-casemap'.
14289 * lib/unicase/u16-casemap.c: New file.
14290 * modules/unicase/u16-casemap: New file.
14292 New module 'unicase/u8-casemap'.
14293 * lib/unicase/unicasemap.h: New file.
14294 * lib/unicase/u8-casemap.c: New file.
14295 * lib/unicase/u-casemap.h: New file.
14296 * modules/unicase/u8-casemap: New file.
14298 New module 'unicase/special-casing'.
14299 * lib/unicase/special-casing.h: New file.
14300 * lib/unicase/special-casing.c: New file.
14301 * lib/unicase/special-casing-table.gperf: New file, generated by
14303 * modules/unicase/special-casing: New file.
14305 Tests for module 'unicase/locale-language'.
14306 * modules/unicase/locale-language-tests: New file.
14307 * tests/unicase/test-locale-language.sh: New file.
14308 * tests/unicase/test-locale-language.c: New file.
14310 New module 'unicase/locale-language'.
14311 * lib/unicase/locale-language.c: New file.
14312 * lib/unicase/locale-languages.gperf: New file.
14313 * modules/unicase/locale-language: New file.
14315 Generate more tables for case conversion and case folding.
14316 * lib/gen-uni-tables.c (SCC_*): New enum items.
14317 (struct special_casing_rule): New type.
14318 (casing_rules, num_casing_rules, allocated_casing_rules): New
14320 (add_casing_rule, fill_casing_rules): New functions.
14321 (struct casefold_rule): New type.
14322 (casefolding_rules, num_casefolding_rules,
14323 allocated_casefolding_rules): New variables.
14324 (fill_casefolding_rules): New function.
14325 (unicode_casefold): New variable.
14326 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14327 sort_casing_rules, output_casing_rules): New functions.
14328 (main): Accept to more arguments: SpecialCasing.txt and
14329 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14330 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14331 Output mapping for casefolding.
14333 * lib/unicase.h: Include stdbool.h, uninorm.h.
14334 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14335 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14336 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14338 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14340 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14341 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14343 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14344 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14345 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14346 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14348 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14350 2009-03-08 Bruno Haible <bruno@clisp.org>
14352 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14353 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14354 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14355 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14357 2009-03-07 Bruno Haible <bruno@clisp.org>
14359 Adjust u*_normcmp, u*_normcoll API.
14360 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14361 u16_normcoll, u32_normcoll): Change failure conventions.
14362 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14363 errno and return -1.
14364 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14366 2009-03-07 Bruno Haible <bruno@clisp.org>
14368 Tests for module 'uninorm/u32-normcoll'.
14369 * modules/uninorm/u32-normcoll-tests: New file.
14370 * tests/uninorm/test-u32-normcoll.c: New file.
14372 Tests for module 'uninorm/u16-normcoll'.
14373 * modules/uninorm/u16-normcoll-tests: New file.
14374 * tests/uninorm/test-u16-normcoll.c: New file.
14376 Tests for module 'uninorm/u8-normcoll'.
14377 * modules/uninorm/u8-normcoll-tests: New file.
14378 * tests/uninorm/test-u8-normcoll.c: New file.
14380 2009-03-07 Bruno Haible <bruno@clisp.org>
14382 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14383 tests/uninorm/test-u32-normcmp.c.
14384 * tests/uninorm/test-u32-normcmp.c: Include it.
14385 (test_nonascii): New function, extracted from main. Add some more
14387 (main): Invoke test_ascii and test_nonascii.
14388 * modules/uninorm/u32-normcmp-tests (Files): Add
14389 tests/uninorm/test-u32-normcmp.h.
14390 (Depends-on): Remove uninorm/u32-normcmp.
14392 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14393 tests/uninorm/test-u16-normcmp.c.
14394 * tests/uninorm/test-u16-normcmp.c: Include it.
14395 (test_nonascii): New function, extracted from main. Add some more
14397 (main): Invoke test_ascii and test_nonascii.
14398 * modules/uninorm/u16-normcmp-tests (Files): Add
14399 tests/uninorm/test-u16-normcmp.h.
14400 (Depends-on): Remove uninorm/u16-normcmp.
14402 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14403 tests/uninorm/test-u8-normcmp.c.
14404 * tests/uninorm/test-u8-normcmp.c: Include it.
14405 (test_nonascii): New function, extracted from main. Add some more
14407 (main): Invoke test_ascii and test_nonascii.
14408 * modules/uninorm/u8-normcmp-tests (Files): Add
14409 tests/uninorm/test-u8-normcmp.h.
14410 (Depends-on): Remove uninorm/u8-normcmp.
14412 2009-03-07 Bruno Haible <bruno@clisp.org>
14414 New module 'uninorm/u32-normcoll'.
14415 * lib/uninorm/u32-normcoll.c: New file.
14416 * modules/uninorm/u32-normcoll: New file.
14418 New module 'uninorm/u16-normcoll'.
14419 * lib/uninorm/u16-normcoll.c: New file.
14420 * modules/uninorm/u16-normcoll: New file.
14422 New module 'uninorm/u8-normcoll'.
14423 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14425 * lib/uninorm/u8-normcoll.c: New file.
14426 * lib/uninorm/u-normcoll.h: New file.
14427 * modules/uninorm/u8-normcoll: New file.
14429 New module 'uninorm/u32-normxfrm'.
14430 * lib/uninorm/u32-normxfrm.c: New file.
14431 * modules/uninorm/u32-normxfrm: New file.
14433 New module 'uninorm/u16-normxfrm'.
14434 * lib/uninorm/u16-normxfrm.c: New file.
14435 * modules/uninorm/u16-normxfrm: New file.
14437 New module 'uninorm/u8-normxfrm'.
14438 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14440 * lib/uninorm/u8-normxfrm.c: New file.
14441 * lib/uninorm/u-normxfrm.h: New file.
14442 * modules/uninorm/u8-normxfrm: New file.
14444 2009-03-07 Bruno Haible <bruno@clisp.org>
14446 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14447 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14448 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14450 2009-03-07 Bruno Haible <bruno@clisp.org>
14452 New module 'memxfrm'.
14453 * lib/memxfrm.h: New file.
14454 * lib/memxfrm.c: New file.
14455 * modules/memxfrm: New file.
14457 2009-03-07 Bruno Haible <bruno@clisp.org>
14459 New module 'memcmp2'.
14460 * lib/memcmp2.h: New file.
14461 * lib/memcmp2.c: New file.
14462 * modules/memcmp2: New file.
14464 2009-03-07 Bruno Haible <bruno@clisp.org>
14466 Tests for module 'uninorm/decomposing-form'.
14467 * modules/uninorm/decomposing-form-tests: New file.
14468 * tests/uninorm/test-decomposing-form.c: New file.
14470 New module 'uninorm/decomposing-form'.
14471 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14472 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14473 Add 'decomposing_variant' field.
14474 * lib/uninorm/decomposing-form.c: New file.
14475 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14476 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14477 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14478 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14479 * modules/uninorm/decomposing-form: New file.
14480 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14481 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14483 2009-03-07 Bruno Haible <bruno@clisp.org>
14485 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14488 2009-03-06 Bruno Haible <bruno@clisp.org>
14490 Tests for module 'uninorm/u32-normcmp'.
14491 * tests/uninorm/test-u32-normcmp.c: New file.
14492 * modules/uninorm/u32-normcmp-tests: New file.
14494 Tests for module 'uninorm/u16-normcmp'.
14495 * tests/uninorm/test-u16-normcmp.c: New file.
14496 * modules/uninorm/u16-normcmp-tests: New file.
14498 Tests for module 'uninorm/u8-normcmp'.
14499 * tests/uninorm/test-u8-normcmp.c: New file.
14500 * modules/uninorm/u8-normcmp-tests: New file.
14502 New module 'uninorm/u32-normcmp'.
14503 * lib/uninorm/u32-normcmp.c: New file.
14504 * modules/uninorm/u32-normcmp: New file.
14506 New module 'uninorm/u16-normcmp'.
14507 * lib/uninorm/u16-normcmp.c: New file.
14508 * modules/uninorm/u16-normcmp: New file.
14510 New module 'uninorm/u8-normcmp'.
14511 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14513 * lib/uninorm/u8-normcmp.c: New file.
14514 * lib/uninorm/u-normcmp.h: New file.
14515 * modules/uninorm/u8-normcmp: New file.
14517 2009-03-06 Bruno Haible <bruno@clisp.org>
14519 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14520 Reported by Eric Blake.
14522 2009-03-06 Eric Blake <ebb9@byu.net>
14523 Bruno Haible <bruno@clisp.org>
14525 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14526 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14528 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14529 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14531 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14533 2009-03-06 Eric Blake <ebb9@byu.net>
14535 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14536 to avoid compiler warnings.
14537 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14539 2009-03-05 Bruno Haible <bruno@clisp.org>
14541 * tests/test-ftell.c (main): Disable test beyond end of file on
14543 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14545 2009-03-05 Kamil Dudka <kdudka@redhat.com>
14547 * lib/filevercmp.c: Move hidden files up in ordering.
14548 * tests/test-filevercmp.c: Add tests for hidden files.
14550 2009-03-04 Bruno Haible <bruno@clisp.org>
14552 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14553 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14555 Reported by Simon Josefsson.
14557 2009-03-03 Bruno Haible <bruno@clisp.org>
14559 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14560 Reported by Simon Josefsson.
14562 * doc/ld-version-script.texi: Update node reference.
14564 2009-03-03 Bruno Haible <bruno@clisp.org>
14566 * modules/visibility (License): Change to 'unlimited'.
14567 Suggested by Simon Josefsson.
14569 2009-03-03 Jim Meyering <meyering@redhat.com>
14571 unlinkdir: cannot_unlink_dir may modify process state
14572 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14573 it's neither thread-safe nor appropriate for use in a library.
14575 2009-03-03 Eric Blake <ebb9@byu.net>
14577 test-closein: silence test under Darwin
14578 * tests/test-closein.sh: Ignore stderr from cat, since we don't
14579 care if it dies from EPIPE or EBADF.
14581 2009-03-03 Bruno Haible <bruno@clisp.org>
14583 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14585 * doc/visibility.texi: Fix @node and @section.
14587 2009-03-03 Simon Josefsson <simon@josefsson.org>
14589 * doc/gnulib.texi: Link to sections for ld version script and
14591 * doc/visibility.texi: Add @node and @section.
14592 * modules/ld-version-script: New module.
14593 * m4/ld-version-script.m4: New file.
14594 * doc/ld-version-script.texi: New file.
14596 2009-03-02 David Lutterkort <lutter@redhat.com>
14598 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14599 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14601 2009-03-02 Bruno Haible <bruno@clisp.org>
14603 * doc/visibility.texi: Mention libtool's -export-symbols option.
14605 2009-03-02 Jim Meyering <meyering@redhat.com>
14607 announce-gen: new option: --no-print-checksums
14608 * build-aux/announce-gen (usage): Describe it.
14609 (print_checksums): Print a newline here, not in the [*] footnote.
14612 2009-03-01 Bruno Haible <bruno@clisp.org>
14614 Use socklen_t in the native Windows replacements prototypes.
14615 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14617 * lib/getsockopt.c (rpl_getsockopt): Likewise.
14618 * lib/setsockopt.c (rpl_setsockopt): Likewise.
14619 * modules/getsockopt (Depends-on): Add socklen.
14620 * modules/setsockopt (Depends-on): Add socklen.
14622 2009-03-01 Bruno Haible <bruno@clisp.org>
14624 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14627 2009-03-01 Eric Blake <ebb9@byu.net>
14628 Bruno Haible <bruno@clisp.org>
14630 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14632 * lib/wait-process.c (wait_subprocess): Omit error message about
14633 deadly signal sent to the child of termsigp != NULL.
14635 2009-03-01 Eric Blake <ebb9@byu.net>
14637 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14639 2009-03-01 Bruno Haible <bruno@clisp.org>
14641 Avoid a gcc warning.
14642 * tests/test-sched.c (b): Make global.
14643 Reported by Eric Blake.
14645 2009-01-19 Martin Lambers <marlam@marlam.de>
14647 Provide POSIX semantics for socket timeout options on W32.
14648 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14649 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14650 * modules/setsockopt: Depend on sys_time module for struct timeval.
14651 * modules/getsockopt: Depend on sys_time module for struct timeval.
14653 2009-03-01 Simon Josefsson <simon@josefsson.org>
14655 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14656 __USE_GNU, for consistency with netdb.in.h.
14657 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14659 2009-03-01 Bruno Haible <bruno@clisp.org>
14661 More support for FreeMiNT.
14662 * lib/fseeko.c (rpl_fseeko): Complete last commit.
14663 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14665 2009-03-01 Bruno Haible <bruno@clisp.org>
14667 More support for FreeMiNT.
14668 * lib/fpurge.c (fpurge): Correct last commit.
14669 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14671 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14673 Fix unportable awk script in vc-list-files.
14674 * build-aux/vc-list-files: In the replacement awk script, use
14675 substr with a second argument of 1, not zero.
14676 Report by Simon Josefsson.
14678 2009-02-28 Bruno Haible <bruno@clisp.org>
14680 More support for FreeMiNT.
14681 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14683 * lib/fwriting.c (fwriting): Likewise.
14684 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14686 2009-02-28 Bruno Haible <bruno@clisp.org>
14688 * tests/test-freadseek.c (main): Disable test beyond end of file on
14690 * tests/test-ftello.c (main): Likewise.
14691 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14693 2009-02-28 Bruno Haible <bruno@clisp.org>
14695 Add tentative support for FreeMiNT.
14696 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14697 * lib/fpurge.c (fpurge): Likewise.
14698 * lib/freadable.c (freadable): Likewise.
14699 * lib/freading.c (freading): Likewise.
14700 * lib/freadptr.c (freadptr): Likewise.
14701 * lib/freadseek.c (freadptrinc): Likewise.
14702 * lib/fseeko.c (rpl_fseeko): Likewise.
14703 * lib/fseterr.c (fseterr): Likewise.
14704 * lib/fwritable.c (fwritable): Likewise.
14705 * lib/fwriting.c (fwriting): Likewise.
14706 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14708 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14710 2009-02-28 Bruno Haible <bruno@clisp.org>
14712 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14714 Reported by Jim Meyering.
14716 2009-02-28 Bruno Haible <bruno@clisp.org>
14718 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14719 Mention the results of these tests on various platforms.
14720 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14722 * doc/posix-functions/printf.texi: Likewise.
14723 * doc/posix-functions/snprintf.texi: Likewise.
14724 * doc/posix-functions/sprintf.texi: Likewise.
14725 * doc/posix-functions/vfprintf.texi: Likewise.
14726 * doc/posix-functions/vprintf.texi: Likewise.
14727 * doc/posix-functions/vsnprintf.texi: Likewise.
14728 * doc/posix-functions/vsprintf.texi: Likewise.
14729 * doc/glibc-functions/obstack_printf.texi: Likewise.
14730 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14732 2009-02-28 Bruno Haible <bruno@clisp.org>
14734 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14735 Reported by Loïc Minier <lool@dooz.org>.
14737 2009-02-27 Bruno Haible <bruno@clisp.org>
14739 * gnulib-tool (func_import): Make the sed expression used to create the
14740 sed script for updating the .gitignore file POSIX compliant.
14741 Reported by Eric Blake.
14743 2009-02-27 Bruno Haible <bruno@clisp.org>
14745 * gnulib-tool (sed): Don't alias as "sed --posix".
14746 Reported by Eric Blake.
14748 2009-02-27 Bruno Haible <bruno@clisp.org>
14750 Avoid test link errors.
14751 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14752 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14753 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14754 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14755 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14757 2009-02-27 Bruno Haible <bruno@clisp.org>
14759 Avoid spurious "(cached)" in configure output.
14760 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14761 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14762 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14763 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14764 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14765 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14766 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14767 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14768 Reported by Eric Blake.
14770 2009-02-27 Eric Blake <ebb9@byu.net>
14772 printf: fix regression in previous patch
14773 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14775 2009-02-27 Bruno Haible <bruno@clisp.org>
14777 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14779 * lib/stdint.in.h: Likewise.
14780 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14782 2009-02-27 Eric Blake <ebb9@byu.net>
14784 doc: mention more functions added in cygwin 1.7.0
14785 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14787 * doc/posix-functions/open_wmemstream.texi: Likewise.
14788 * doc/posix-functions/wcsnlen.texi: Likewise.
14789 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14790 * doc/posix-functions/wcstod.texi: Likewise.
14791 * doc/posix-functions/wcstof.texi: Likewise.
14792 * doc/posix-functions/wcstoimax.texi: Likewise.
14793 * doc/posix-functions/wcstok.texi: Likewise.
14794 * doc/posix-functions/wcstoumax.texi: Likewise.
14796 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14797 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14798 * doc/posix-functions/fprintf.texi: Update.
14799 * doc/posix-functions/printf.texi: Update.
14800 * doc/posix-functions/snprintf.texi: Update.
14801 * doc/posix-functions/sprintf.texi: Update.
14802 * doc/posix-functions/vfprintf.texi: Update.
14803 * doc/posix-functions/vprintf.texi: Update.
14804 * doc/posix-functions/vsnprintf.texi: Update.
14805 * doc/posix-functions/vsprintf.texi: Update.
14806 * doc/glibc-functions/obstack_printf.texi: Update.
14807 * doc/glibc-functions/obstack_vprintf.texi: Update.
14809 2009-02-26 Eric Blake <ebb9@byu.net>
14811 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14812 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14813 compilation bug by using runtime conversion.
14814 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14815 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14816 * modules/ceill-tests (Files): Use nan.h.
14817 * modules/floorl-tests (Files): Likewise.
14818 * modules/frexpl-tests (Files): Likewise.
14819 * modules/isnanl-tests (Files): Likewise.
14820 * modules/ldexpl-tests (Files): Likewise.
14821 * modules/roundl-tests (Files): Likewise.
14822 * modules/truncl-tests (Files): Likewise.
14823 * tests/test-ceill.c (main): Use a working NaN.
14824 * tests/test-floorl.c (main): Likewise.
14825 * tests/test-frexpl.c (main): Likewise.
14826 * tests/test-isnan.c (test_long_double): Likewise.
14827 * tests/test-isnanl.h (main): Likewise.
14828 * tests/test-ldexpl.h (main): Likewise.
14829 * tests/test-roundl.h (main): Likewise.
14830 * tests/test-truncl.h (main): Likewise.
14831 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14833 2009-02-26 Eric Blake <ebb9@byu.net>
14834 Bruno Haible <bruno@clisp.org>
14836 Work around a *printf bug with %ls on Solaris.
14837 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14838 precision is specified, sprintf stops converting the wide string
14839 argument when the number of bytes that have been produced by this
14840 conversion equals or exceeds the precision.
14841 * doc/posix-functions/fprintf.texi: Update.
14842 * doc/posix-functions/printf.texi: Update.
14843 * doc/posix-functions/snprintf.texi: Update.
14844 * doc/posix-functions/sprintf.texi: Update.
14845 * doc/posix-functions/vfprintf.texi: Update.
14846 * doc/posix-functions/vprintf.texi: Update.
14847 * doc/posix-functions/vsnprintf.texi: Update.
14848 * doc/posix-functions/vsprintf.texi: Update.
14849 * doc/glibc-functions/obstack_printf.texi: Update.
14850 * doc/glibc-functions/obstack_vprintf.texi: Update.
14852 2009-02-26 Eric Blake <ebb9@byu.net>
14854 stdlib: favor compiler check of random.h
14855 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
14856 to avoid an ObjC random.h installed by Swarm.
14858 2009-02-26 Bruno Haible <bruno@clisp.org>
14860 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14861 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14862 Reported by Gary V. Vaughan <gary@gnu.org>.
14864 2009-02-26 Bruno Haible <bruno@clisp.org>
14866 Fix *printf behaviour regarding the %ls directive.
14867 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14868 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14869 NEED_PRINTF_DIRECTIVE_LS.
14870 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14871 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14872 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14873 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14874 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14875 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14876 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14877 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14878 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14879 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14880 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14881 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14882 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14883 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14884 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14885 * doc/posix-functions/fprintf.texi: Update.
14886 * doc/posix-functions/printf.texi: Update.
14887 * doc/posix-functions/snprintf.texi: Update.
14888 * doc/posix-functions/sprintf.texi: Update.
14889 * doc/posix-functions/vfprintf.texi: Update.
14890 * doc/posix-functions/vprintf.texi: Update.
14891 * doc/posix-functions/vsnprintf.texi: Update.
14892 * doc/posix-functions/vsprintf.texi: Update.
14893 * doc/glibc-functions/obstack_printf.texi: Update.
14894 * doc/glibc-functions/obstack_vprintf.texi: Update.
14895 Reported by Eric Blake.
14897 2009-02-25 Bruno Haible <bruno@clisp.org>
14899 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14901 Reported by Gary V. Vaughan <gary@gnu.org>.
14903 2009-02-25 Bruno Haible <bruno@clisp.org>
14905 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14906 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14907 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14908 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14909 Reported by Gary V. Vaughan <gary@gnu.org>.
14911 2009-02-25 Bruno Haible <bruno@clisp.org>
14913 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14914 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14915 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14916 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14917 Reported by Gary V. Vaughan <gary@gnu.org>.
14919 2009-02-25 Eric Blake <ebb9@byu.net>
14921 tests: skip fseek/ftell tests if ungetc is broken
14922 * m4/ungetc.m4: New file.
14923 * modules/fseek-tests: Split test, so ungetc dependency is
14924 separate from rest of test.
14925 * modules/fseeko-tests: Likewise.
14926 * modules/ftell-tests: Likewise.
14927 * modules/ftello-tests: Likewise.
14928 * tests/test-fseek.c (main): Isolate ungetc dependency.
14929 * tests/test-fseeko.c (main): Likewise.
14930 * tests/test-ftell.c (main): Likewise.
14931 * tests/test-ftello.c (main): Likewise.
14932 * tests/test-fseek2.sh: New file.
14933 * tests/test-fseeko2.sh: Likewise.
14934 * tests/test-ftell2.sh: Likewise.
14935 * tests/test-ftello2.sh: Likewise.
14937 2009-02-25 Ondřej Vašík <ovasik@redhat.com>
14939 test-getaddrinfo: fix usage of skip return code 77
14940 * tests/test-gettaddrinfo.c: Return skip code 77 only
14941 for first occurance of skip (4x77 is not 77)
14943 2009-02-25 Gary V. Vaughan <gary@gnu.org>
14945 strtod: avoid C99 decl-after-statement
14946 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14948 2009-02-24 Eric Blake <ebb9@byu.net>
14950 strtod: detect HP-UX 11.31 bug
14951 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14952 Reported by Gary V. Vaughan.
14954 2009-02-23 Bruno Haible <bruno@clisp.org>
14956 Fix invalid read past end of memory block.
14957 * lib/vasnprintf.c (DCHAR_SET): Define.
14958 (local_wcslen): Define only when needed.
14959 (local_strnlen, local_wcsnlen): New functions.
14960 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14961 directives that involve a conversion ourselves.
14962 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14963 wcsnlen, mbrtowc, wcrtomb.
14964 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14965 * tests/test-vasprintf-posix.c (test_function): Likewise.
14966 * tests/test-snprintf-posix.h (test_function): Likewise.
14967 * tests/test-sprintf-posix.h (test_function): Likewise.
14968 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14970 2009-02-22 Bruno Haible <bruno@clisp.org>
14972 Implement new clarified decomposition of Hangul syllables.
14973 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14974 of type LTV, return only a pairwise decomposition.
14975 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14977 * tests/uninorm/test-decomposition.c (main): Updated expected result.
14978 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14979 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14981 2009-02-22 Bruno Haible <bruno@clisp.org>
14983 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14984 zero-length results and shrink excess allocated memory.
14985 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14986 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14987 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14988 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14989 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14990 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14991 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14992 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14993 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14994 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14995 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14996 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14998 2009-02-21 Bruno Haible <bruno@clisp.org>
15000 * doc/gnulib.texi: Include safe-alloc.texi earlier.
15001 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15002 spaces after a period. Put a space between a macro name and its
15003 argument list. Trivial rewordings.
15004 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15005 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15006 (main): Return 0 explicitly.
15008 2009-02-21 Bruno Haible <bruno@clisp.org>
15010 Tests for module 'uninorm/filter'.
15011 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15012 * modules/uninorm/filter-tests: New file.
15014 New module 'uninorm/filter'.
15015 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15016 uninorm_filter_flush, uninorm_filter_free): New declarations.
15017 * lib/uninorm/uninorm-filter.c: New file.
15018 * modules/uninorm/filter: New file.
15020 2009-02-21 Bruno Haible <bruno@clisp.org>
15022 Tests for module 'uninorm/nfkc'.
15023 * tests/uninorm/test-nfkc.c: New file.
15024 * tests/uninorm/test-u8-nfkc.c: New file.
15025 * tests/uninorm/test-u16-nfkc.c: New file.
15026 * tests/uninorm/test-u32-nfkc.c: New file.
15027 * tests/uninorm/test-u32-nfkc-big.sh: New file.
15028 * tests/uninorm/test-u32-nfkc-big.c: New file.
15029 * modules/uninorm/nfkc-tests: New file.
15031 New module 'uninorm/nfkc'.
15032 * lib/uninorm/nfkc.c: New file.
15033 * modules/uninorm/nfkc: New file.
15035 Tests for module 'uninorm/nfkd'.
15036 * tests/uninorm/test-nfkd.c: New file.
15037 * tests/uninorm/test-u8-nfkd.c: New file.
15038 * tests/uninorm/test-u16-nfkd.c: New file.
15039 * tests/uninorm/test-u32-nfkd.c: New file.
15040 * tests/uninorm/test-u32-nfkd-big.sh: New file.
15041 * tests/uninorm/test-u32-nfkd-big.c: New file.
15042 * modules/uninorm/nfkd-tests: New file.
15044 New module 'uninorm/nfkd'.
15045 * lib/uninorm/nfkd.c: New file.
15046 * modules/uninorm/nfkd: New file.
15048 Tests for module 'uninorm/nfc'.
15049 * tests/uninorm/test-nfc.c: New file.
15050 * tests/uninorm/test-u8-nfc.c: New file.
15051 * tests/uninorm/test-u16-nfc.c: New file.
15052 * tests/uninorm/test-u32-nfc.c: New file.
15053 * tests/uninorm/test-u32-nfc-big.sh: New file.
15054 * tests/uninorm/test-u32-nfc-big.c: New file.
15055 * modules/uninorm/nfc-tests: New file.
15057 New module 'uninorm/nfc'.
15058 * lib/uninorm/nfc.c: New file.
15059 * modules/uninorm/nfc: New file.
15061 Tests for module 'uninorm/nfd'.
15062 * tests/uninorm/test-nfd.c: New file.
15063 * tests/uninorm/test-u8-nfd.c: New file.
15064 * tests/uninorm/test-u16-nfd.c: New file.
15065 * tests/uninorm/test-u32-nfd.c: New file.
15066 * tests/uninorm/test-u32-nfd-big.sh: New file.
15067 * tests/uninorm/test-u32-nfd-big.c: New file.
15068 * tests/uninorm/test-u32-normalize-big.h: New file.
15069 * tests/uninorm/test-u32-normalize-big.c: New file.
15070 * tests/uninorm/NormalizationTest.txt: New file, created from
15071 Unicode 5.1.0 NormalizationTest.txt.
15072 * modules/uninorm/nfd-tests: New file.
15074 New module 'uninorm/nfd'.
15075 * lib/uninorm/nfd.c: New file.
15076 * modules/uninorm/nfd: New file.
15078 New module 'uninorm/u32-normalize'.
15079 * lib/uninorm/u32-normalize.c: New file.
15080 * modules/uninorm/u32-normalize: New file.
15082 New module 'uninorm/u16-normalize'.
15083 * lib/uninorm/u16-normalize.c: New file.
15084 * modules/uninorm/u16-normalize: New file.
15086 New module 'uninorm/u8-normalize'.
15087 * lib/uninorm/u8-normalize.c: New file.
15088 * lib/uninorm/normalize-internal.h: New file.
15089 * lib/uninorm/u-normalize-internal.h: New file.
15090 * modules/uninorm/u8-normalize: New file.
15092 New module 'uninorm/decompose-internal'.
15093 * lib/uninorm/decompose-internal.c: New file.
15094 * modules/uninorm/decompose-internal: New file.
15096 Tests for module 'uninorm/composition'.
15097 * tests/uninorm/test-composition.c: New file.
15098 * modules/uninorm/composition-tests: New file.
15100 New module 'uninorm/composition'.
15101 * lib/uninorm/composition.c: New file.
15102 * lib/uninorm/composition-table.gperf: New file, generated by
15104 * modules/uninorm/composition: New file.
15106 Tests for module 'uninorm/compat-decomposition'.
15107 * tests/uninorm/test-compat-decomposition.c: New file.
15108 * modules/uninorm/compat-decomposition-tests: New file.
15110 New module 'uninorm/compat-decomposition'.
15111 * lib/uninorm/decompose-internal.h: New file.
15112 * lib/uninorm/compat-decomposition.c: New file.
15113 * modules/uninorm/compat-decomposition: New file.
15115 Tests for module 'uninorm/canonical-decomposition'.
15116 * tests/uninorm/test-canonical-decomposition.c: New file.
15117 * modules/uninorm/canonical-decomposition-tests: New file.
15119 New module 'uninorm/canonical-decomposition'.
15120 * lib/uninorm/canonical-decomposition.c: New file.
15121 * modules/uninorm/canonical-decomposition: New file.
15123 Tests for module 'uninorm/decomposition'.
15124 * tests/uninorm/test-decomposition.c: New file.
15125 * modules/uninorm/decomposition-tests: New file.
15127 New module 'uninorm/decomposition'.
15128 * lib/uninorm/decomposition.c: New file.
15129 * modules/uninorm/decomposition: New file.
15131 New module 'uninorm/decomposition-table'.
15132 * lib/uninorm/decomposition-table.h: New file.
15133 * lib/uninorm/decomposition-table.c: New file.
15134 * lib/uninorm/decomposition-table1.h: New file, generated by
15136 * lib/uninorm/decomposition-table2.h: New file, generated by
15138 * modules/uninorm/decomposition-table: New file.
15140 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15141 (UC_DECOMP_*): New enumeration items.
15142 (get_decomposition): New function.
15143 (struct decomp_table): New type.
15144 (output_decomposition, output_decomposition_tables): New functions.
15145 (unicode_composition_exclusions): New variable.
15146 (fill_composition_exclusions, debug_output_composition_tables): New
15148 (main): Accept one more argument. Invoke fill_composition_exclusions.
15149 Output decomposition and composition tables.
15151 New module 'uninorm/base'.
15152 * lib/uninorm.h: New file.
15153 * lib/unictype.h: Update comment.
15154 * modules/uninorm/base: New file.
15156 2009-02-21 David Lutterkort <lutter@redhat.com>
15158 Tests for module 'safe-alloc'.
15159 * tests/test-safe-alloc.c: New file.
15160 * modules/safe-alloc-tests: New file.
15162 New module 'safe-alloc'.
15163 * lib/safe-alloc.h: New file.
15164 * lib/safe-alloc.c: New file.
15165 * m4/safe-alloc.m4: New file.
15166 * modules/safe-alloc: New file.
15167 * doc/safe-alloc.texi: New file.
15168 * doc/gnulib.texi: Include it.
15169 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15172 2009-02-18 Bruno Haible <bruno@clisp.org>
15174 Fix link error on non-glibc systems.
15175 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15177 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15179 2009-02-18 Jim Meyering <meyering@redhat.com>
15181 fts: avoid used-uninitialized error due to recent change
15182 * lib/fts.c (fts_read): Guard uses of the new member,
15183 parent->fts_n_dirs_remaining, since it's not relevant for
15184 the parent of a directory specified on the command-line.
15186 2009-02-17 James Youngman <jay@gnu.org>
15187 Bruno Haible <bruno@clisp.org>
15189 * m4/include_next.m4: Reformulate comment.
15191 2009-02-16 Jim Meyering <meyering@redhat.com>
15193 fts: add #if guards so that the fts_lgpl module still builds
15194 * lib/fts.c: Guard just-added hash-table-using parts with
15195 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15196 Reported by Simon Josefsson.
15198 2009-02-15 Bruno Haible <bruno@clisp.org>
15200 * modules/array-mergesort-tests: New file.
15201 * tests/test-array-mergesort.c: New file.
15203 New module 'array-mergesort'.
15204 * modules/array-mergesort: New file.
15205 * lib/array-mergesort.h: New file.
15207 2009-02-15 Bruno Haible <bruno@clisp.org>
15209 Fix 2009-02-07 commit.
15210 * lib/gen-uni-tables.c (output_predicate, output_category,
15211 output_combclass, output_bidi_category, output_decimal_digit,
15212 output_digit, output_numeric, output_mirror, output_scripts,
15213 output_ident_category, output_simple_mapping): Fix format directives.
15214 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15216 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
15218 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15219 fixes are available from IBM.
15221 2009-02-13 Jim Meyering <meyering@redhat.com>
15223 fts: arrange not to stat non-directories in more cases
15224 This makes GNU find (when it doesn't need to stat each file)
15225 *much* more efficient at traversing reiserfs file systems.
15226 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15227 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15228 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15229 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15230 (leaf_optimization_applies): New function.
15231 (LCO_hash, LCO_compare): New helper functions.
15232 (link_count_optimize_ok): New function.
15233 (fts_stat): Initialize new member (if dir).
15234 (fts_read): Decrement parent's fts_n_dirs_remaining count if
15235 we've just stat'ed a directory. Skip the stat call when possible.
15237 Note this AFS-related exchange:
15238 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15239 and note find's pioctl call in find/fstype.c.
15240 But that is necessary only if you want to enable the
15241 optimization for AFS, and for now, I don't.
15243 fts: move a function definition "up" (no semantic change)
15244 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15245 "up" to precede upcoming use of a related function.
15247 2009-02-11 Jim Meyering <meyering@redhat.com>
15249 fts: correct internal computation of nlinks (optimization-related)
15250 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15251 whether the current entry is a directory, so don't test it.
15253 2009-02-10 Bruno Haible <bruno@clisp.org>
15255 Tests for module 'uniwbrk/ulc-wordbreaks'.
15256 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15257 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15258 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15260 Tests for module 'uniwbrk/u32-wordbreaks'.
15261 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15262 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15264 Tests for module 'uniwbrk/u16-wordbreaks'.
15265 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15266 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15268 Tests for module 'uniwbrk/u8-wordbreaks'.
15269 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15270 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15272 2009-02-10 Bruno Haible <bruno@clisp.org>
15274 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15276 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15277 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15278 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15280 2009-02-10 Simon Josefsson <simon@josefsson.org>
15282 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15283 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15285 2009-02-10 Bruno Haible <bruno@clisp.org>
15287 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15288 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15289 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15290 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15291 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15292 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15294 2009-02-09 Simon Josefsson <simon@josefsson.org>
15296 * lib/sockets.h (gl_fd_to_handle): New function.
15298 * tests/test-sockets.c: Call gl_fd_to_handle.
15300 2009-02-09 Bruno Haible <bruno@clisp.org>
15302 * doc/havelib.texi: Document the conventions on bi-arch systems.
15304 2009-02-08 Bruno Haible <bruno@clisp.org>
15306 Document the AC_LIB_LINKFLAGS macro.
15307 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15308 * doc/gnulib.texi: Include it.
15310 2009-02-08 Bruno Haible <bruno@clisp.org>
15312 Fix wrong order of sections, compared to TOC.
15313 * doc/gnulib.texi: Include relocatable-maint.texi after the
15314 "Regular expressions" node, not before.
15316 2009-02-08 Bruno Haible <bruno@clisp.org>
15318 Tests for module 'unicase/totitle'.
15319 * modules/unicase/totitle-tests: New file.
15321 Tests for module 'unicase/tolower'.
15322 * modules/unicase/tolower-tests: New file.
15324 Tests for module 'unicase/toupper'.
15325 * modules/unicase/toupper-tests: New file.
15326 * tests/unicase/test-mapping-part1.h: New file.
15327 * tests/unicase/test-mapping-part2.h: New file.
15329 New module 'unicase/totitle'.
15330 * modules/unicase/totitle: New file.
15331 * lib/unicase/totitle.c: New file.
15333 New module 'unicase/tolower'.
15334 * modules/unicase/tolower: New file.
15335 * lib/unicase/tolower.c: New file.
15337 New module 'unicase/toupper'.
15338 * modules/unicase/toupper: New file.
15339 * lib/unicase/toupper.c: New file.
15340 * lib/unicase/simple-mapping.h: New file.
15342 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15343 (mapping_table): New structure.
15344 (output_simple_mapping): New function.
15345 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15346 * modules/gen-uni-tables (Description): Update.
15347 * lib/unicase/toupper.h: New file, automatically generated by
15349 * lib/unicase/tolower.h: New file, automatically generated by
15351 * lib/unicase/totitle.h: New file, automatically generated by
15353 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15355 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15357 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15360 New module 'unicase/base'.
15361 * modules/unicase/base: New file.
15362 * lib/unicase.h: New file.
15364 2009-02-08 Bruno Haible <bruno@clisp.org>
15366 New module 'uniwbrk/ulc-wordbreaks'.
15367 * modules/uniwbrk/ulc-wordbreaks: New file.
15368 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15370 New module 'uniwbrk/u32-wordbreaks'.
15371 * modules/uniwbrk/u32-wordbreaks: New file.
15372 * lib/uniwbrk/u32-wordbreaks.c: New file.
15374 New module 'uniwbrk/u16-wordbreaks'.
15375 * modules/uniwbrk/u16-wordbreaks: New file.
15376 * lib/uniwbrk/u16-wordbreaks.c: New file.
15378 New module 'uniwbrk/u8-wordbreaks'.
15379 * modules/uniwbrk/u8-wordbreaks: New file.
15380 * lib/uniwbrk/u8-wordbreaks.c: New file.
15381 * lib/uniwbrk/u-wordbreaks.h: New file.
15383 New module 'uniwbrk/table'.
15384 * modules/uniwbrk/table: New file.
15385 * lib/uniwbrk/wbrktable.h: New file.
15386 * lib/uniwbrk/wbrktable.c: New file.
15388 New module 'uniwbrk/wordbreak-property'.
15389 * modules/uniwbrk/wordbreak-property: New file.
15390 * lib/uniwbrk/wordbreak-property.c: New file.
15392 * lib/gen-uni-tables.c (WBP_*): New enum items.
15393 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15394 (unicode_org_wbp): New variable.
15395 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15397 (wbp_table): New structure.
15398 (output_wbp, output_wbrk_tables): New functions.
15399 (main): Accept additional argument. Invoke fill_org_wbp,
15400 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15401 output_wbrk_tables.
15402 * modules/gen-uni-tables (Description): Update.
15403 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15406 New module 'uniwbrk/base'.
15407 * modules/uniwbrk/base: New file.
15408 * lib/uniwbrk.h: New file.
15410 2009-02-08 Bruno Haible <bruno@clisp.org>
15412 Update to Unicode 5.1.0.
15413 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15415 (is_property_default_ignorable_code_point): Don't include characters
15416 of category Cc or Cs and not-a-characters.
15417 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15418 U+0D79, U+109E, U+109F, U+A60C.
15419 * lib/unictype/bidi_of.h: Regenerated.
15420 * lib/unictype/blocks.h: Regenerated.
15421 * lib/unictype/categ_C.h: Regenerated.
15422 * lib/unictype/categ_Cf.h: Regenerated.
15423 * lib/unictype/categ_Cn.h: Regenerated.
15424 * lib/unictype/categ_L.h: Regenerated.
15425 * lib/unictype/categ_Ll.h: Regenerated.
15426 * lib/unictype/categ_Lm.h: Regenerated.
15427 * lib/unictype/categ_Lo.h: Regenerated.
15428 * lib/unictype/categ_Lu.h: Regenerated.
15429 * lib/unictype/categ_M.h: Regenerated.
15430 * lib/unictype/categ_Mc.h: Regenerated.
15431 * lib/unictype/categ_Me.h: Regenerated.
15432 * lib/unictype/categ_Mn.h: Regenerated.
15433 * lib/unictype/categ_N.h: Regenerated.
15434 * lib/unictype/categ_Nd.h: Regenerated.
15435 * lib/unictype/categ_Nl.h: Regenerated.
15436 * lib/unictype/categ_No.h: Regenerated.
15437 * lib/unictype/categ_P.h: Regenerated.
15438 * lib/unictype/categ_Pd.h: Regenerated.
15439 * lib/unictype/categ_Pe.h: Regenerated.
15440 * lib/unictype/categ_Pf.h: Regenerated.
15441 * lib/unictype/categ_Pi.h: Regenerated.
15442 * lib/unictype/categ_Po.h: Regenerated.
15443 * lib/unictype/categ_Ps.h: Regenerated.
15444 * lib/unictype/categ_S.h: Regenerated.
15445 * lib/unictype/categ_Sk.h: Regenerated.
15446 * lib/unictype/categ_Sm.h: Regenerated.
15447 * lib/unictype/categ_So.h: Regenerated.
15448 * lib/unictype/categ_of.h: Regenerated.
15449 * lib/unictype/combining.h: Regenerated.
15450 * lib/unictype/ctype_alnum.h: Regenerated.
15451 * lib/unictype/ctype_alpha.h: Regenerated.
15452 * lib/unictype/ctype_graph.h: Regenerated.
15453 * lib/unictype/ctype_lower.h: Regenerated.
15454 * lib/unictype/ctype_print.h: Regenerated.
15455 * lib/unictype/ctype_punct.h: Regenerated.
15456 * lib/unictype/ctype_upper.h: Regenerated.
15457 * lib/unictype/decdigit.h: Regenerated.
15458 * lib/unictype/digit.h: Regenerated.
15459 * lib/unictype/mirror.h: Regenerated.
15460 * lib/unictype/numeric.h: Regenerated.
15461 * lib/unictype/pr_alphabetic.h: Regenerated.
15462 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15463 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15464 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15465 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15466 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15467 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15468 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15469 * lib/unictype/pr_combining.h: Regenerated.
15470 * lib/unictype/pr_dash.h: Regenerated.
15471 * lib/unictype/pr_decimal_digit.h: Regenerated.
15472 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15473 * lib/unictype/pr_deprecated.h: Regenerated.
15474 * lib/unictype/pr_diacritic.h: Regenerated.
15475 * lib/unictype/pr_extender.h: Regenerated.
15476 * lib/unictype/pr_format_control.h: Regenerated.
15477 * lib/unictype/pr_grapheme_base.h: Regenerated.
15478 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15479 * lib/unictype/pr_grapheme_link.h: Regenerated.
15480 * lib/unictype/pr_id_continue.h: Regenerated.
15481 * lib/unictype/pr_id_start.h: Regenerated.
15482 * lib/unictype/pr_ideographic.h: Regenerated.
15483 * lib/unictype/pr_ignorable_control.h: Regenerated.
15484 * lib/unictype/pr_lowercase.h: Regenerated.
15485 * lib/unictype/pr_math.h: Regenerated.
15486 * lib/unictype/pr_numeric.h: Regenerated.
15487 * lib/unictype/pr_other_alphabetic.h: Regenerated.
15488 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15489 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15490 * lib/unictype/pr_other_id_continue.h: Regenerated.
15491 * lib/unictype/pr_other_lowercase.h: Regenerated.
15492 * lib/unictype/pr_other_math.h: Regenerated.
15493 * lib/unictype/pr_punctuation.h: Regenerated.
15494 * lib/unictype/pr_sentence_terminal.h: Regenerated.
15495 * lib/unictype/pr_soft_dotted.h: Regenerated.
15496 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15497 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15498 * lib/unictype/pr_unified_ideograph.h: Regenerated.
15499 * lib/unictype/pr_uppercase.h: Regenerated.
15500 * lib/unictype/pr_xid_continue.h: Regenerated.
15501 * lib/unictype/pr_xid_start.h: Regenerated.
15502 * lib/unictype/pr_zero_width.h: Regenerated.
15503 * lib/unictype/scripts.h: Regenerated.
15504 * lib/unictype/scripts_byname.gperf: Regenerated.
15505 * lib/unictype/sy_java_ident.h: Regenerated.
15506 * lib/unilbrk/lbrkprop1.h: Regenerated.
15507 * lib/unilbrk/lbrkprop2.h: Regenerated.
15508 * tests/unictype/test-categ_C.c: Regenerated.
15509 * tests/unictype/test-categ_Cf.c: Regenerated.
15510 * tests/unictype/test-categ_Cn.c: Regenerated.
15511 * tests/unictype/test-categ_L.c: Regenerated.
15512 * tests/unictype/test-categ_Ll.c: Regenerated.
15513 * tests/unictype/test-categ_Lm.c: Regenerated.
15514 * tests/unictype/test-categ_Lo.c: Regenerated.
15515 * tests/unictype/test-categ_Lu.c: Regenerated.
15516 * tests/unictype/test-categ_M.c: Regenerated.
15517 * tests/unictype/test-categ_Mc.c: Regenerated.
15518 * tests/unictype/test-categ_Me.c: Regenerated.
15519 * tests/unictype/test-categ_Mn.c: Regenerated.
15520 * tests/unictype/test-categ_N.c: Regenerated.
15521 * tests/unictype/test-categ_Nd.c: Regenerated.
15522 * tests/unictype/test-categ_Nl.c: Regenerated.
15523 * tests/unictype/test-categ_No.c: Regenerated.
15524 * tests/unictype/test-categ_P.c: Regenerated.
15525 * tests/unictype/test-categ_Pd.c: Regenerated.
15526 * tests/unictype/test-categ_Pe.c: Regenerated.
15527 * tests/unictype/test-categ_Pf.c: Regenerated.
15528 * tests/unictype/test-categ_Pi.c: Regenerated.
15529 * tests/unictype/test-categ_Po.c: Regenerated.
15530 * tests/unictype/test-categ_Ps.c: Regenerated.
15531 * tests/unictype/test-categ_S.c: Regenerated.
15532 * tests/unictype/test-categ_Sk.c: Regenerated.
15533 * tests/unictype/test-categ_Sm.c: Regenerated.
15534 * tests/unictype/test-categ_So.c: Regenerated.
15535 * tests/unictype/test-ctype_alnum.c: Regenerated.
15536 * tests/unictype/test-ctype_alpha.c: Regenerated.
15537 * tests/unictype/test-ctype_graph.c: Regenerated.
15538 * tests/unictype/test-ctype_lower.c: Regenerated.
15539 * tests/unictype/test-ctype_print.c: Regenerated.
15540 * tests/unictype/test-ctype_punct.c: Regenerated.
15541 * tests/unictype/test-ctype_upper.c: Regenerated.
15542 * tests/unictype/test-decdigit.h: Regenerated.
15543 * tests/unictype/test-digit.h: Regenerated.
15544 * tests/unictype/test-numeric.h: Regenerated.
15545 * tests/unictype/test-pr_alphabetic.c: Regenerated.
15546 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15547 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15548 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15549 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15550 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15551 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15552 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15553 * tests/unictype/test-pr_combining.c: Regenerated.
15554 * tests/unictype/test-pr_dash.c: Regenerated.
15555 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15556 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15557 * tests/unictype/test-pr_deprecated.c: Regenerated.
15558 * tests/unictype/test-pr_diacritic.c: Regenerated.
15559 * tests/unictype/test-pr_extender.c: Regenerated.
15560 * tests/unictype/test-pr_format_control.c: Regenerated.
15561 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15562 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15563 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15564 * tests/unictype/test-pr_id_continue.c: Regenerated.
15565 * tests/unictype/test-pr_id_start.c: Regenerated.
15566 * tests/unictype/test-pr_ideographic.c: Regenerated.
15567 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15568 * tests/unictype/test-pr_lowercase.c: Regenerated.
15569 * tests/unictype/test-pr_math.c: Regenerated.
15570 * tests/unictype/test-pr_numeric.c: Regenerated.
15571 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15572 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15574 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15575 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15576 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15577 * tests/unictype/test-pr_other_math.c: Regenerated.
15578 * tests/unictype/test-pr_punctuation.c: Regenerated.
15579 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15580 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15581 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15582 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15583 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15584 * tests/unictype/test-pr_uppercase.c: Regenerated.
15585 * tests/unictype/test-pr_xid_continue.c: Regenerated.
15586 * tests/unictype/test-pr_xid_start.c: Regenerated.
15587 * tests/unictype/test-pr_zero_width.c: Regenerated.
15589 Update to Unicode 5.1.0.
15590 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15591 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15592 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15593 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15594 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15595 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15596 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15597 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15598 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15599 (nonspacing_table_ind): Update.
15600 * tests/uniwidth/test-uc_width2.sh: Update expected result.
15602 Update to Unicode 5.1.0.
15603 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15605 * lib/uniname/uniname.c (unicode_character_name,
15606 unicode_name_character): Add the range 0x1Fxxx to the code transform.
15607 * lib/uniname/uninames.h: Regenerated.
15608 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15610 2009-02-07 Bruno Haible <bruno@clisp.org>
15612 Merge gen-ctype and gen-lbrk into a single program.
15613 * lib/gen-uni-tables.c: New file, incorporating
15614 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15615 Add directory prefixes to the names of the generated files.
15616 * lib/unictype/gen-ctype.c: Remove file.
15617 * lib/unilbrk/gen-lbrk.c: Remove file.
15618 * modules/gen-uni-tables: New file.
15619 * modules/unictype/gen-ctype: Remove file.
15620 * modules/unilbrk/gen-lbrk: Remove file.
15622 2009-02-07 Bruno Haible <bruno@clisp.org>
15624 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15626 New module 'unistr/u32-strcoll'.
15627 * modules/unistr/u32-strcoll: New file.
15628 * lib/unistr/u32-strcoll.c: New file.
15630 New module 'unistr/u16-strcoll'.
15631 * modules/unistr/u16-strcoll: New file.
15632 * lib/unistr/u16-strcoll.c: New file.
15634 New module 'unistr/u8-strcoll'.
15635 * modules/unistr/u8-strcoll: New file.
15636 * lib/unistr/u8-strcoll.c: New file.
15637 * lib/unistr/u-strcoll.h: New file.
15639 2009-02-07 Bruno Haible <bruno@clisp.org>
15641 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15642 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15643 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15644 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15645 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15646 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15648 2009-02-07 Bruno Haible <bruno@clisp.org>
15651 * lib/unictype/gen-ctype.c (output_predicate, output_category,
15652 output_combclass, output_bidi_category, output_decimal_digit,
15653 output_digit, output_numeric, output_mirror, output_scripts,
15654 output_ident_category): Use proper width specifier in format strings.
15656 2009-02-07 Bruno Haible <bruno@clisp.org>
15658 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15661 2009-02-07 Jim Meyering <meyering@redhat.com>
15663 regex: avoid compilation failure with upcoming gcc-4.4
15664 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15665 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
15666 "... error: integer overflow in preprocessor expression".
15668 2009-02-05 Ben Pfaff <blp@gnu.org>
15670 Fix link errors on Windows when close module is used.
15671 * modules/close: Add $(LIB_CLOSE) to Link section.
15672 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15673 $(LIB_CLOSE) on Windows.
15675 2009-02-05 Jim Meyering <meyering@redhat.com>
15677 still avoid unused-parameter warnings, but do it cleanly
15678 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15679 (get_fs_usage): Cast to void instead.
15680 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15681 (dev_from_mount_options, read_file_system_list): Cast to void.
15682 Prompted by Bruno Haible.
15684 2009-02-04 Jim Meyering <meyering@redhat.com>
15686 fsusage.c: correct copyright year
15687 * lib/fsusage.c: Reflect year in which the change is pushed into
15689 avoid misc. warnings
15690 * lib/fsusage.c (UNUSED_PARAM): Define.
15691 (get_fs_usage): Mark parameter "disk" as unused.
15692 * lib/getugroups.c (getgrent): Use "void" in prototype.
15693 * lib/mountlist.c: Mark unused parameters.
15694 (read_file_system_list): Declare a local with "const".
15695 * lib/nanosleep.c (getnow): Declare static.
15696 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15698 dirfd: set errno upon failure
15699 * lib/dirfd.c: Include <errno.h>.
15700 Set errno to ENOTSUP when returning -1.
15701 * modules/dirfd (Depends-on): Add errno.
15702 Suggested by John Kodis <kodis@comcast.net>.
15704 2009-02-01 Bruno Haible <bruno@clisp.org>
15706 Don't assume sizeof (long) >= sizeof (void *).
15707 * lib/memcmp.c: Include stdint.h.
15708 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15709 srcp2 to 'const byte *'.
15710 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15711 types to uintptr_t.
15712 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15713 * modules/memcmp (Depends-on): Add stdint.
15714 Reported by Ozkan Sezer <sezeroz@gmail.com>.
15716 2009-01-30 Eric Blake <ebb9@byu.net>
15718 fix more require-before-expand issues
15719 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15720 expand, AC_PROG_AWK.
15721 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15723 2009-01-28 Eric Blake <ebb9@byu.net>
15725 version-etc: use consistent URL formatting
15726 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15727 Improve formatting. Use fputs for string without %.
15729 2009-01-28 Jim Meyering <meyering@redhat.com>
15731 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15732 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15733 "underquoted definition of NAME" from autoconf-2.59.
15735 2009-01-28 Bruno Haible <bruno@clisp.org>
15737 * doc/gnulib.texi: Add "Obsolete modules" to index.
15739 2009-01-28 Jim Meyering <meyering@redhat.com>
15741 useless-if-before-free: recognize more variants
15742 * build-aux/useless-if-before-free: Also recognize e.g.,
15743 if (NULL != p) free (p);
15745 2009-01-27 Mark McLoughlin <markmc@redhat.com>
15747 test-getaddrinfo: skip (don't fail) this test when there's no network
15748 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15749 on the presumption that it means you lack network access.
15751 2009-01-26 Jim Meyering <meyering@redhat.com>
15753 fflush: avoid warnings on modern systems
15754 * lib/fflush.c (rpl_fflush): Move declarations of locals,
15755 pos and result, into scopes where they're used.
15757 2009-01-26 Eric Blake <ebb9@byu.net>
15759 Silence warning reintroduced by recent extensions patch.
15760 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15761 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15764 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15765 * m4/00gnulib.m4: New file.
15766 * gnulib-tool (func_get_filelist): Always use it.
15767 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15768 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15770 2009-01-25 Bruno Haible <bruno@clisp.org>
15772 Make test-quotearg work on MacOS X and AIX.
15773 * tests/test-quotearg.sh: New file.
15774 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15775 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15776 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15777 include <libintl.h>.
15778 (fake_locale): Remove variable.
15779 (gettext, dgettext, dcgettext): Remove functions.
15780 (main): Instead of setting a fake locale, set a real locale. Call
15781 textdomain and bindtextdomain.
15782 * modules/quotearg-tests (Files): Add the new files.
15783 (Depends-on): Add gettext, setenv, unsetenv.
15784 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15785 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15786 Augment TESTS_ENVIRONMENT.
15788 2009-01-25 Bruno Haible <bruno@clisp.org>
15790 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15791 fr_FR.ISO8859-1 locale on MacOS X.
15792 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15793 ja_JP.eucJP locale on MacOS X.
15794 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15795 zh_CN.GB18030 locale on MacOS X.
15797 2009-01-25 Bruno Haible <bruno@clisp.org>
15799 Avoid link errors on MacOS X 10.3.
15800 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15801 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15803 2009-01-25 Bruno Haible <bruno@clisp.org>
15805 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15806 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15807 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15808 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15809 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15810 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15811 posix_spawnattr_init, posix_spawnattr_setsigmask,
15812 posix_spawnattr_setflags, posix_spawnattr_destroy.
15814 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15815 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15816 * modules/execute (Files): Remove m4/posix_spawn.m4.
15817 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
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 2009-01-25 Bruno Haible <bruno@clisp.org>
15824 * lib/glthread/threadlib.c: Include <stdlib.h>.
15826 2009-01-25 Bruno Haible <bruno@clisp.org>
15828 * lib/glthread/threadlib.c (dummy): New declaration.
15830 2009-01-25 Bruno Haible <bruno@clisp.org>
15832 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15833 multibyte characters also for the GB18030 encoding. Don't crash when
15834 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15836 2009-01-25 Bruno Haible <bruno@clisp.org>
15838 Avoid redefining 'struct random_data' on OSF/1 5.1.
15839 * lib/stdlib.in.h: Include <random.h> if it exists.
15840 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15841 HAVE_RANDOM_H. Include <random.h> when testing whether
15842 'struct random_data' exists.
15843 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15845 2009-01-25 Bruno Haible <bruno@clisp.org>
15847 Don't install charset.alias on MacOS X >= 10.3.
15848 * lib/localcharset.c (DARWIN7): New macro.
15849 (get_charset_aliases): Hardcode the result for Darwin7.
15850 * modules/localcharset (install-exec-local): Don't install
15851 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15853 2009-01-25 Bruno Haible <bruno@clisp.org>
15855 Don't install charset.alias on mingw and Cygwin.
15856 * modules/localcharset (install-exec-local): Don't install
15857 charset.alias on mingw and Cygwin, if the file does not yet exist.
15858 The result for these platforms is hardcoded in localcharset.c.
15860 2009-01-25 Bruno Haible <bruno@clisp.org>
15862 Make it possible again to use AC_GNU_SOURCE together with gnulib.
15863 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15864 before requiring AC_USE_SYSTEM_EXTENSIONS.
15866 2009-01-25 Jim Meyering <meyering@redhat.com>
15868 c-strtod: avoid warnings
15869 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15870 "assignment discards qualifiers from pointer target type" warnings.
15872 2009-01-24 Bruno Haible <bruno@clisp.org>
15874 Add support for non-UTF-8 locales on MacOS X.
15875 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15876 canonical encodings. For Darwin 7 and newer, don't map traditional
15877 encodings to UTF-8.
15878 Reported by Vincent Lefevre <vincent@vinc17.org>
15879 at <http://savannah.gnu.org/bugs/?25235>.
15881 2009-01-24 Bruno Haible <bruno@clisp.org>
15883 * doc/gnulib.texi (Obsolete modules): New section.
15884 Reported by Mike Frysinger <vapier@gentoo.org>.
15886 2009-01-24 Bruno Haible <bruno@clisp.org>
15888 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15891 2009-01-24 Bruno Haible <bruno@clisp.org>
15893 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15894 Reported by Eric Blake.
15896 2009-01-24 Bruno Haible <bruno@clisp.org>
15898 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15899 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15900 Reported by Gary V. Vaughan <gary@gnu.org>.
15902 2009-01-24 Bruno Haible <bruno@clisp.org>
15904 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15906 2009-01-23 Bruno Haible <bruno@clisp.org>
15908 Make c-strtod, c-strtold usable in libraries.
15909 * lib/c-strtod.c: Include string.h instead of xalloc.h.
15910 (C_STRTOD): Call strdup instead of xstrdup.
15911 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15912 * modules/c-strtold (Depends-on): Likewise.
15913 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15914 * NEWS: Mention the change.
15915 Reported by Michael Gold <mgold@ncf.ca>.
15917 2009-01-23 Jim Meyering <meyering@redhat.com>
15919 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15920 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15921 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15923 2009-01-23 Simon Josefsson <simon@josefsson.org>
15925 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15927 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15928 * modules/version-etc (Description): Update.
15930 2009-01-22 Bruno Haible <bruno@clisp.org>
15932 Cache the C locale object.
15933 * lib/c-strtod.c (c_locale_cache): New variable.
15934 (c_locale): New function.
15935 (C_STRTOD): Use it, and don't call freelocale.
15936 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15937 Suggested by Paolo Bonzini.
15939 2009-01-21 Bruno Haible <bruno@clisp.org>
15941 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15942 conditions other than overflow.
15944 2009-01-21 Bruno Haible <bruno@clisp.org>
15946 * lib/c-strtod.c: Include errno.h.
15947 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15948 value from STRTOD_L and STRTOD.
15950 2009-01-21 Bruno Haible <bruno@clisp.org>
15951 and Jim Meyering <meyering@redhat.com>
15953 nanosleep: skip configure test (fail it) for apple universal builds
15954 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15955 universal builds, assume that nanosleep does not work.
15956 * modules/nanosleep (Depends-on): Add multiarch.
15958 mktime: skip configure test (fail it) for apple universal builds
15959 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15960 universal builds, assume that mktime does not work.
15961 * modules/mktime (Depends-on): Add multiarch.
15963 2009-01-21 Eric Blake <ebb9@byu.net>
15965 multiarch: avoid expand-before-require warning
15966 * modules/multiarch (configure.ac): Require, rather than expand,
15968 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15969 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15970 enforce that all clients require it. Partial reversion of
15973 error: avoid expand-before-require warning
15974 * modules/errno (configure.ac): Require, rather than expand,
15976 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15977 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15978 enforce that all clients require it.
15980 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15981 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15982 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15983 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15985 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
15988 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15990 regex: do not depend on obsolete modules.
15991 * modules/regex: Remove memcmp and memmove.
15993 2009-01-20 Bruno Haible <bruno@clisp.org>
15995 Make the 'link' module link on Windows NT 4.
15996 * lib/link.c (_WIN32_WINNT): Don't define.
15997 (CreateHardLinkFuncType): New type.
15998 (CreateHardLinkFunc, initialized): New variables.
15999 (initialize): New function.
16000 (link): Invoke CreateHardLink indirectly through the function pointer.
16002 2009-01-20 Bruno Haible <bruno@clisp.org>
16004 Fix compilation failure on mingw.
16005 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16007 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
16009 * doc/c-strtod.texi: Mention a couple of restrictions.
16011 2009-01-20 Jim Meyering <meyering@redhat.com>
16013 gettimeofday: move more declarations out of functions
16014 * lib/gettimeofday.c: Move extern declarations of tzset and
16015 gmtime out of containing functions. Prompted by Bruno Haible.
16017 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16019 regex: do not depend on obsolete modules.
16020 * modules/regex: Remove memcmp and memmove.
16022 2009-01-19 Bruno Haible <bruno@clisp.org>
16024 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16025 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16026 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16027 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16028 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16030 2009-01-19 Bruno Haible <bruno@clisp.org>
16032 * tests/test-link.c: Include <errno.h>.
16033 (main): Exit with code 77 when a hard link cannot be created due to
16035 * tests/test-link.sh: Skip test when a hard link cannot be created due
16036 to the file system.
16037 Suggested by Eric Blake.
16039 2009-01-19 Martin Lambers <marlam@marlam.de>
16041 * modules/link-tests: New file.
16042 * tests/test-link.sh: New file.
16043 * tests/test-link.c: New file.
16045 2009-01-19 Eric Blake <ebb9@byu.net>
16047 doc: mention another function added in cygwin 1.7.0
16048 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16049 Another new function in cygwin 1.7.
16051 2009-01-19 Bruno Haible <bruno@clisp.org>
16053 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16054 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16055 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16056 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16057 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16058 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16059 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16060 * m4/md4.m4 (gl_MD4): Likewise.
16061 * m4/md5.m4 (gl_MD5): Likewise.
16062 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16063 * m4/sha1.m4 (gl_SHA1): Likewise.
16064 * m4/sha256.m4 (gl_SHA256): Likewise.
16065 * m4/sha512.m4 (gl_SHA512): Likewise.
16067 2009-01-19 Bruno Haible <bruno@clisp.org>
16069 * modules/uniname/uniname-tests (Depends-on): Add progname.
16070 * tests/uniname/test-uninames.c: Include progname.h.
16071 (main): Call set_program_name.
16073 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16074 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16075 (main): Call set_program_name.
16077 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16078 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16079 (main): Call set_program_name.
16081 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16082 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16083 (main): Call set_program_name.
16085 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16086 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16087 (main): Call set_program_name.
16089 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16090 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16091 (main): Call set_program_name.
16093 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16094 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16095 (main): Call set_program_name.
16097 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16098 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16099 (main): Call set_program_name.
16101 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16102 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16103 (main): Call set_program_name.
16105 2009-01-19 Eric Blake <ebb9@byu.net>
16107 test-unistd: test previous patch
16108 * tests/test-unistd.c: Test *_FILENO macros.
16110 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16111 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16112 Guarantee a definition.
16113 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16114 * modules/unistd-safer (Depends-on): Add dependency on unistd.
16115 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16116 * lib/dup-safer.c (STDERR_FILENO): Likewise.
16117 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16119 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16120 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16121 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16123 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16124 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16125 (STDERR_FILENO): Likewise.
16126 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16127 (STDERR_FILENO): Likewise.
16128 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16129 (STDERR_FILENO): Likewise.
16130 Reported by Elbert Pol.
16132 2009-01-19 Eric Blake <ebb9@byu.net>
16134 doc: mention more functions added in cygwin 1.7.0
16135 * doc/posix-functions/abort.texi (abort): Update wording related
16137 * doc/posix-functions/daylight.texi (daylight): Likewise.
16138 * doc/posix-functions/optarg.texi (optarg): Likewise.
16139 * doc/posix-functions/optarg.texi (opterr): Likewise.
16140 * doc/posix-functions/optarg.texi (optind): Likewise.
16141 * doc/posix-functions/optarg.texi (optopt): Likewise.
16142 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16143 worked in 1.5.x, and was withdrawn in 1.7.
16144 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16145 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16147 * doc/posix-functions/perror.texi (perror): Likewise.
16148 * doc/posix-functions/printf.texi (printf): Likewise.
16149 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16150 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16151 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16152 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16153 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16154 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16155 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16157 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16159 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16161 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16162 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16164 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16165 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16166 * doc/posix-functions/confstr.texi (confstr): Likewise.
16167 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16168 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16169 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16170 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16171 * doc/posix-functions/fputws.texi (fputws): Likewise.
16172 * doc/posix-functions/fwide.texi (fwide): Likewise.
16173 * doc/posix-functions/getwc.texi (getwc): Likewise.
16174 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16175 * doc/posix-functions/putwc.texi (putwc): Likewise.
16176 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16177 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16178 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16179 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16180 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16181 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16182 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16183 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16184 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16185 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16186 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16188 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16190 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16191 * lib/ioctl.c: Include <sys/ioctl.h>.
16193 2009-01-19 Simon Josefsson <simon@josefsson.org>
16195 * modules/getdate-tests (Depends-on): Add progname.
16196 * tests/test-getdate.c: Use progname module, to avoid link errors
16197 on non-glibc systems.
16199 2009-01-18 Simon Josefsson <simon@josefsson.org>
16201 * modules/filenamecat-tests (Depends-on): Add progname.
16202 * modules/fstrcmp-tests (Depends-on): Likewise.
16204 * tests/test-filenamecat.c: Use progname module, to avoid link
16205 errors on non-glibc systems.
16206 * tests/test-fstrcmp.c: Likewise.
16208 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16210 gettimeofday: avoid warning: nested extern declaration of 'localtime'
16211 * lib/gettimeofday.c: Move extern declaration out of function.
16213 2009-01-18 Bruno Haible <bruno@clisp.org>
16215 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16216 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16217 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16219 2009-01-18 Bruno Haible <bruno@clisp.org>
16221 * lib/strftime.c (MEMPCPY): Remove unused macro.
16222 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16224 2009-01-18 Martin Lambers <marlam@marlam.de>
16227 * lib/unistd.in.h (link): New declaration.
16228 * lib/link.c: New file.
16229 * m4/link.m4: New file.
16230 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16232 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16233 * modules/link: New file.
16234 * doc/posix-functions/link.texi: Mention the new module.
16236 2009-01-18 Bruno Haible <bruno@clisp.org>
16238 * tests/test-avltree_list.c (main): Call set_program_name.
16239 * tests/test-avltree_oset.c (main): Likewise.
16240 * tests/test-obstack-printf.c: Include progname.h.
16241 (main): Call set_program_name.
16242 * tests/test-quotearg.c: Include progname.h.
16243 (main): Call set_program_name.
16244 * tests/test-xmemdup0.c: Include progname.h.
16245 (main): Call set_program_name.
16247 2009-01-18 Bruno Haible <bruno@clisp.org>
16249 New module 'alphasort'.
16250 * lib/dirent.in.h (alphasort): New declaration.
16251 * lib/alphasort.c: New file, from glibc with modifications.
16252 * m4/alphasort.m4: New file.
16253 * modules/alphasort: New file.
16254 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16256 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16258 * doc/posix-functions/alphasort.texi: Mention the new module and the
16259 portability problems.
16261 2009-01-18 Bruno Haible <bruno@clisp.org>
16263 New module 'scandir'.
16264 * lib/dirent.in.h (scandir): New declaration.
16265 * lib/scandir.c: New file, from glibc with modifications.
16266 * m4/scandir.m4: New file.
16267 * modules/scandir: New file.
16268 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16270 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16272 * doc/posix-functions/scandir.texi: Mention the new module and the
16273 portability problems.
16275 2009-01-17 Bruno Haible <bruno@clisp.org>
16277 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16278 Update documentation.
16279 (func_remove_suffix): Escape all dots in the suffix. Update
16281 (func_filter_filelist): Update documentation.
16282 Reported by Ralf Wildenhues.
16284 2009-01-17 Bruno Haible <bruno@clisp.org>
16286 * modules/dprintf-posix-tests: New file.
16287 * tests/test-dprintf-posix.sh: New file.
16288 * tests/test-dprintf-posix.c: New file.
16290 New modules 'dprintf', 'dprintf-posix'.
16291 * lib/stdio.in.h (dprintf): New declaration.
16292 * lib/dprintf.c: New file.
16293 * m4/dprintf.m4: New file.
16294 * m4/dprintf-posix.m4: New file.
16295 * modules/dprintf: New file.
16296 * modules/dprintf-posix: New file.
16297 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16298 HAVE_DPRINTF, REPLACE_DPRINTF.
16299 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16300 HAVE_DPRINTF, REPLACE_DPRINTF.
16301 * doc/posix-functions/dprintf.texi: Mention the new modules.
16303 2009-01-17 Bruno Haible <bruno@clisp.org>
16305 * modules/vdprintf-posix-tests: New file.
16306 * tests/test-vdprintf-posix.sh: New file.
16307 * tests/test-vdprintf-posix.c: New file.
16309 New modules 'vdprintf', 'vdprintf-posix'.
16310 * lib/stdio.in.h (vdprintf): New declaration.
16311 * lib/vdprintf.c: New file.
16312 * m4/vdprintf.m4: New file.
16313 * m4/vdprintf-posix.m4: New file.
16314 * modules/vdprintf: New file.
16315 * modules/vdprintf-posix: New file.
16316 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16317 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16318 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16319 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16320 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16322 2009-01-17 Bruno Haible <bruno@clisp.org>
16324 Fix replacement of fopen on mingw.
16325 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16328 2009-01-17 Bruno Haible <bruno@clisp.org>
16330 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16331 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16333 2009-01-17 Bruno Haible <bruno@clisp.org>
16335 Avoid test-fflush2.sh failure on mingw.
16336 * tests/test-fflush2.c: Include binary-io.h.
16337 (main): Put standard input into binary mode.
16338 * modules/fflush-tests (Depends-on): Add binary-io.
16340 2009-01-17 Bruno Haible <bruno@clisp.org>
16342 * lib/wchar.in.h: In another particular situation, include only the
16343 system's <wchar.h> file.
16344 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16345 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16346 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16348 2009-01-17 Bruno Haible <bruno@clisp.org>
16350 Support for stripping executables in --enable-relocatable.
16351 * build-aux/install-reloc: Expect one more argument, or an environment
16352 variable RELOC_STRIP_PROG. If set, strip the destination program and
16354 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16356 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16357 to set RELOCATABLE_STRIP.
16358 * NEWS: Mention the new Makefile requirement.
16360 2009-01-17 Bruno Haible <bruno@clisp.org>
16362 * build-aux/install-reloc: Remove debugging information left over by
16363 C compiler on MacOS X.
16365 2009-01-17 Bruno Haible <bruno@clisp.org>
16367 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16368 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16369 _NSGetExecutablePath.
16371 2009-01-16 Jim Meyering <meyering@redhat.com>
16373 strerror: avoid warnings about discarding "const"
16374 * lib/strerror.c (rpl_strerror): Instead of returning a const
16375 string from each and every "case", use a variable, and add a single
16376 cast after the switch.
16378 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16380 * lib/arpa_inet.in.h: Add extern "C" block for C++.
16382 2009-01-16 Bruno Haible <bruno@clisp.org>
16384 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16385 array initializer syntax that also works in C++ mode.
16386 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16388 2009-01-16 Jim Meyering <meyering@redhat.com>
16390 poll: suppress a warning
16391 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16392 to ignore "...unsigned expression < 0 is always false" warnings.
16394 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
16396 poll: remove declarations of unused variables
16397 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16398 sockbuf and optlen.
16400 2009-01-15 Bruno Haible <bruno@clisp.org>
16402 Make fflush-after-ungetc POSIX compliant on BSD systems.
16403 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16404 (clear_ungetc_buffer): Implement also for other systems.
16405 (rpl_fflush): On glibc systems, invoke
16406 clear_ungetc_buffer_preserving_position. Otherwise, invoke
16407 clear_ungetc_buffer after fetching the stream's position, not before.
16409 2009-01-15 Bruno Haible <bruno@clisp.org>
16411 Make fflush-after-ungetc POSIX compliant on glibc systems.
16412 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16414 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16415 (rpl_fflush): On glibc systems, simply call the system's fflush
16416 function after clearing the ungetc buffer.
16417 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16418 Instead, lseek only to the end of file, then use the system's fseeko
16419 for the rest. On glibc systems, reset the EOF indicator bit.
16421 2009-01-15 Jim Meyering <meyering@redhat.com>
16423 openmp.m4: revert quote-adding change, for portability to older autoconf
16424 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16425 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16426 Simon Josefsson noticed the problem when using autoconf-2.61.
16428 2009-01-15 Bruno Haible <bruno@clisp.org>
16430 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16431 * tests/test-fflush2.c (ASSERT): Always fail.
16432 (main): Add two tests for fflush() after ungetc(), taking into account
16433 the Austin Group's clarification.
16434 Suggested by Eric Blake.
16436 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16438 mktime.m4: remove K&R-style function prototypes
16439 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16440 for the Sun C++ compiler.
16442 2009-01-14 Bruno Haible <bruno@clisp.org>
16444 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16445 while including <wchar.h>.
16446 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16447 the system's <wchar.h> file.
16448 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16450 2009-01-14 Bruno Haible <bruno@clisp.org>
16452 * m4/csharp.m4: Don't mention gettext on the serial number line.
16453 * m4/csharpexec.m4: Likewise.
16454 * m4/eaccess.m4: Likewise.
16455 * m4/javaexec.m4: Likewise.
16456 * m4/sig_atomic_t.m4: Likewise.
16457 * m4/tmpdir.m4: Likewise.
16458 * m4/intldir.m4: Bump gettext version.
16459 * m4/lib-ld.m4: Likewise.
16461 2009-01-14 Bruno Haible <bruno@clisp.org>
16463 * lib/progname.c (set_program_name): Add more comments.
16464 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16466 2009-01-14 Simon Josefsson <simon@josefsson.org>
16468 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16469 were sys/stat.h does not define it.
16471 2009-01-14 Jim Meyering <meyering@redhat.com>
16473 many *.m4 files: improve m4 quoting
16474 99% of this change was performed by running the following commands:
16475 git ls-files | grep '\.m4$' | xargs perl -pi \
16476 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16477 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16478 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16479 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16480 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16481 The remainder were to add Copyright dates, increment serial numbers,
16482 undo some changes in comments, exclude m4/intl.m4, and add quotes
16483 around the "1" in ",1" where the unusual spacing prohibited the
16484 above regexps from doing the job. For more details, see
16485 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16486 * m4/acl.m4: Modified.
16487 * m4/afs.m4: Likewise.
16488 * m4/alloca.m4: Likewise.
16489 * m4/argp.m4: Likewise.
16490 * m4/argz.m4: Likewise.
16491 * m4/atexit.m4: Likewise.
16492 * m4/bison-i18n.m4: Likewise.
16493 * m4/bison.m4: Likewise.
16494 * m4/byteswap.m4: Likewise.
16495 * m4/c-stack.m4: Likewise.
16496 * m4/c-strtod.m4: Likewise.
16497 * m4/calloc.m4: Likewise.
16498 * m4/canonicalize-lgpl.m4: Likewise.
16499 * m4/chown.m4: Likewise.
16500 * m4/clock_time.m4: Likewise.
16501 * m4/codeset.m4: Likewise.
16502 * m4/copy-file.m4: Likewise.
16503 * m4/csharp.m4: Likewise.
16504 * m4/csharpcomp.m4: Likewise.
16505 * m4/csharpexec.m4: Likewise.
16506 * m4/d-ino.m4: Likewise.
16507 * m4/d-type.m4: Likewise.
16508 * m4/dirfd.m4: Likewise.
16509 * m4/double-slash-root.m4: Likewise.
16510 * m4/eaccess.m4: Likewise.
16511 * m4/eealloc.m4: Likewise.
16512 * m4/environ.m4: Likewise.
16513 * m4/errno_h.m4: Likewise.
16514 * m4/euidaccess.m4: Likewise.
16515 * m4/execute.m4: Likewise.
16516 * m4/fatal-signal.m4: Likewise.
16517 * m4/fchdir.m4: Likewise.
16518 * m4/fcntl_h.m4: Likewise.
16519 * m4/fileblocks.m4: Likewise.
16520 * m4/filenamecat.m4: Likewise.
16521 * m4/findprog.m4: Likewise.
16522 * m4/flexmember.m4: Likewise.
16523 * m4/fnmatch.m4: Likewise.
16524 * m4/fopen.m4: Likewise.
16525 * m4/fpending.m4: Likewise.
16526 * m4/fprintf-posix.m4: Likewise.
16527 * m4/free.m4: Likewise.
16528 * m4/frexp.m4: Likewise.
16529 * m4/frexpl.m4: Likewise.
16530 * m4/fsusage.m4: Likewise.
16531 * m4/ftruncate.m4: Likewise.
16532 * m4/gc-camellia.m4: Likewise.
16533 * m4/gc-random.m4: Likewise.
16534 * m4/gc.m4: Likewise.
16535 * m4/getaddrinfo.m4: Likewise.
16536 * m4/getcwd-abort-bug.m4: Likewise.
16537 * m4/getcwd-path-max.m4: Likewise.
16538 * m4/getdate.m4: Likewise.
16539 * m4/getdomainname.m4: Likewise.
16540 * m4/getgroups.m4: Likewise.
16541 * m4/gethostname.m4: Likewise.
16542 * m4/gethrxtime.m4: Likewise.
16543 * m4/getline.m4: Likewise.
16544 * m4/getloadavg.m4: Likewise.
16545 * m4/getndelim2.m4: Likewise.
16546 * m4/getpass.m4: Likewise.
16547 * m4/gettext.m4: Likewise.
16548 * m4/gettime.m4: Likewise.
16549 * m4/gettimeofday.m4: Likewise.
16550 * m4/gnulib-common.m4: Likewise.
16551 * m4/group-member.m4: Likewise.
16552 * m4/host-os.m4: Likewise.
16553 * m4/iconv.m4: Likewise.
16554 * m4/iconv_open.m4: Likewise.
16555 * m4/inet_ntop.m4: Likewise.
16556 * m4/inet_pton.m4: Likewise.
16557 * m4/inline.m4: Likewise.
16558 * m4/intldir.m4: Likewise.
16559 * m4/intlmacosx.m4: Likewise.
16560 * m4/intmax.m4: Likewise.
16561 * m4/intmax_t.m4: Likewise.
16562 * m4/inttypes.m4: Likewise.
16563 * m4/inttypes_h.m4: Likewise.
16564 * m4/inttypes-pri.m4: Likewise.
16565 * m4/isapipe.m4: Likewise.
16566 * m4/isnand.m4: Likewise.
16567 * m4/isnanf.m4: Likewise.
16568 * m4/isnanl.m4: Likewise.
16569 * m4/javacomp.m4: Likewise.
16570 * m4/javaexec.m4: Likewise.
16571 * m4/jm-winsz1.m4: Likewise.
16572 * m4/jm-winsz2.m4: Likewise.
16573 * m4/lchown.m4: Likewise.
16574 * m4/lcmessage.m4: Likewise.
16575 * m4/ldexpl.m4: Likewise.
16576 * m4/lib-ld.m4: Likewise.
16577 * m4/lib-link.m4: Likewise.
16578 * m4/libsigsegv.m4: Likewise.
16579 * m4/link-follow.m4: Likewise.
16580 * m4/localcharset.m4: Likewise.
16581 * m4/locale-fr.m4: Likewise.
16582 * m4/locale-ja.m4: Likewise.
16583 * m4/locale-tr.m4: Likewise.
16584 * m4/locale-zh.m4: Likewise.
16585 * m4/lock.m4: Likewise.
16586 * m4/longlong.m4: Likewise.
16587 * m4/ls-mntd-fs.m4: Likewise.
16588 * m4/lstat.m4: Likewise.
16589 * m4/malloc.m4: Likewise.
16590 * m4/mathl.m4: Likewise.
16591 * m4/mbrtowc.m4: Likewise.
16592 * m4/mbstate_t.m4: Likewise.
16593 * m4/mbswidth.m4: Likewise.
16594 * m4/memchr.m4: Likewise.
16595 * m4/memcmp.m4: Likewise.
16596 * m4/memcpy.m4: Likewise.
16597 * m4/memmem.m4: Likewise.
16598 * m4/memmove.m4: Likewise.
16599 * m4/mempcpy.m4: Likewise.
16600 * m4/memrchr.m4: Likewise.
16601 * m4/memset.m4: Likewise.
16602 * m4/minmax.m4: Likewise.
16603 * m4/mkdir-slash.m4: Likewise.
16604 * m4/mkdtemp.m4: Likewise.
16605 * m4/mktime.m4: Likewise.
16606 * m4/mmap-anon.m4: Likewise.
16607 * m4/mountlist.m4: Likewise.
16608 * m4/nanosleep.m4: Likewise.
16609 * m4/nls.m4: Likewise.
16610 * m4/nocrash.m4: Likewise.
16611 * m4/open.m4: Likewise.
16612 * m4/openat.m4: Likewise.
16613 * m4/openmp.m4: Likewise.
16614 * m4/pathmax.m4: Likewise.
16615 * m4/perl.m4: Likewise.
16616 * m4/physmem.m4: Likewise.
16617 * m4/pipe.m4: Likewise.
16618 * m4/po.m4: Likewise.
16619 * m4/poll.m4: Likewise.
16620 * m4/posixtm.m4: Likewise.
16621 * m4/posixver.m4: Likewise.
16622 * m4/printf-frexp.m4: Likewise.
16623 * m4/printf-frexpl.m4: Likewise.
16624 * m4/printf-posix.m4: Likewise.
16625 * m4/printf-posix-rpl.m4: Likewise.
16626 * m4/printf.m4: Likewise.
16627 * m4/progtest.m4: Likewise.
16628 * m4/putenv.m4: Likewise.
16629 * m4/readline.m4: Likewise.
16630 * m4/readlink.m4: Likewise.
16631 * m4/readutmp.m4: Likewise.
16632 * m4/realloc.m4: Likewise.
16633 * m4/regex.m4: Likewise.
16634 * m4/relocatable.m4: Likewise.
16635 * m4/relocatable-lib.m4: Likewise.
16636 * m4/rename-dest-slash.m4: Likewise.
16637 * m4/rename.m4: Likewise.
16638 * m4/rmdir-errno.m4: Likewise.
16639 * m4/rmdir.m4: Likewise.
16640 * m4/roundf.m4: Likewise.
16641 * m4/roundl.m4: Likewise.
16642 * m4/rpmatch.m4: Likewise.
16643 * m4/save-cwd.m4: Likewise.
16644 * m4/selinux-selinux-h.m4: Likewise.
16645 * m4/setenv.m4: Likewise.
16646 * m4/settime.m4: Likewise.
16647 * m4/sig2str.m4: Likewise.
16648 * m4/sig_atomic_t.m4: Likewise.
16649 * m4/signalblocking.m4: Likewise.
16650 * m4/signbit.m4: Likewise.
16651 * m4/sigpipe.m4: Likewise.
16652 * m4/sockets.m4: Likewise.
16653 * m4/sockpfaf.m4: Likewise.
16654 * m4/st_dm_mode.m4: Likewise.
16655 * m4/stat-time.m4: Likewise.
16656 * m4/stdbool.m4: Likewise.
16657 * m4/stdint.m4: Likewise.
16658 * m4/stdint_h.m4: Likewise.
16659 * m4/stpcpy.m4: Likewise.
16660 * m4/stpncpy.m4: Likewise.
16661 * m4/strcase.m4: Likewise.
16662 * m4/strchrnul.m4: Likewise.
16663 * m4/strcspn.m4: Likewise.
16664 * m4/strdup.m4: Likewise.
16665 * m4/strftime.m4: Likewise.
16666 * m4/strndup.m4: Likewise.
16667 * m4/strnlen.m4: Likewise.
16668 * m4/strpbrk.m4: Likewise.
16669 * m4/strptime.m4: Likewise.
16670 * m4/strsep.m4: Likewise.
16671 * m4/strtod.m4: Likewise.
16672 * m4/strtoimax.m4: Likewise.
16673 * m4/strtok_r.m4: Likewise.
16674 * m4/strtol.m4: Likewise.
16675 * m4/strtoll.m4: Likewise.
16676 * m4/strtoul.m4: Likewise.
16677 * m4/strtoull.m4: Likewise.
16678 * m4/strtoumax.m4: Likewise.
16679 * m4/strverscmp.m4: Likewise.
16680 * m4/threadlib.m4: Likewise.
16681 * m4/timegm.m4: Likewise.
16682 * m4/tm_gmtoff.m4: Likewise.
16683 * m4/tmpdir.m4: Likewise.
16684 * m4/tmpfile.m4: Likewise.
16685 * m4/tzset.m4: Likewise.
16686 * m4/uintmax_t.m4: Likewise.
16687 * m4/unlinkdir.m4: Likewise.
16688 * m4/unlocked-io.m4: Likewise.
16689 * m4/uptime.m4: Likewise.
16690 * m4/userspec.m4: Likewise.
16691 * m4/utimbuf.m4: Likewise.
16692 * m4/utime.m4: Likewise.
16693 * m4/utimes-null.m4: Likewise.
16694 * m4/utimes.m4: Likewise.
16695 * m4/vararrays.m4: Likewise.
16696 * m4/vasnprintf.m4: Likewise.
16697 * m4/vfprintf-posix.m4: Likewise.
16698 * m4/vprintf-posix.m4: Likewise.
16699 * m4/wait-process.m4: Likewise.
16700 * m4/wchar_t.m4: Likewise.
16701 * m4/wint_t.m4: Likewise.
16702 * m4/write-any-file.m4: Likewise.
16703 * m4/yield.m4: Likewise.
16705 2009-01-13 Bruno Haible <bruno@clisp.org>
16707 Avoid test-copy-file.sh failures when ACL support insufficient.
16708 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16710 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16711 Reported by Jim Meyering.
16713 2009-01-13 Bruno Haible <bruno@clisp.org>
16715 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16716 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16717 * modules/unistdio/u8-printf-parse (Files): Likewise.
16718 * modules/unistdio/u32-printf-parse (Files): Likewise.
16719 * modules/unistdio/ulc-printf-parse (Files): Likewise.
16721 2009-01-13 Simon Josefsson <simon@josefsson.org>
16723 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16724 and m4/inttypes_h.m4 too.
16726 2009-01-12 Eric Blake <ebb9@byu.net>
16728 tests: IRIX 6.2 cc can't compile -0.0 into .data
16729 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16730 rather than at compile-time.
16731 * tests/test-floorl.c (minus_zero): Likewise.
16732 * tests/test-frexpl.c (minus_zero): Likewise.
16733 * tests/test-isnan.c (minus_zerol): Likewise.
16734 * tests/test-isnanl.h (minus_zero): Likewise.
16735 * tests/test-ldexpl.c (minus_zero): Likewise.
16736 * tests/test-roundl.c (minus_zero): Likewise.
16737 * tests/test-signbit.c (minus_zerol): Likewise.
16738 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16739 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16740 * tests/test-truncl.c (minus_zero): Likewise.
16741 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16742 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16743 Reported by Tom G. Christensen and Nelson H. F. Beebe.
16745 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16747 regex: fix glibc bug 9697
16748 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16751 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16753 regex: fix glibc bug 697
16754 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16755 being NULL also if there are no backreferences.
16757 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16759 regex: merge glibc changes
16760 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16761 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16762 re_string_skip_chars, re_string_reconstruct): Likewise.
16763 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16765 2009-01-07 Jim Meyering <meyering@redhat.com>
16767 poll: filter through cppi
16768 * lib/poll.c: Indent cpp directives to reflect nesting.
16770 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16772 poll: don't return uninitialized
16773 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16775 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16777 avoid compile failure on AIX 6.1
16778 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16779 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16781 2009-01-04 Jim Meyering <meyering@redhat.com>
16783 remove duplicate inclusion of <stdio.h>
16784 * tests/test-fprintf-posix.c: Likewise.
16785 * tests/test-printf-posix.c: Likewise.
16786 * tests/test-snprintf-posix.c: Likewise.
16787 * tests/test-sprintf-posix.c: Likewise.
16788 * tests/test-vasprintf-posix.c: Likewise.
16789 * tests/test-vfprintf-posix.c: Likewise.
16790 * tests/test-vprintf-posix.c: Likewise.
16791 * tests/test-vsnprintf-posix.c: Likewise.
16792 * tests/test-vsprintf-posix.c: Likewise.
16794 2009-01-03 Jim Meyering <meyering@redhat.com>
16796 gnulib-tool: fix sed-based filtering
16797 * gnulib-tool (func_filter_filelist): Remove extra backslash
16798 in sed_fff_filter definition.
16800 2009-01-02 Jim Meyering <meyering@redhat.com>
16802 strftime: avoid compilation failure on Solaris 2.6
16803 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16804 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16805 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16806 be available. Reported by Tom G. Christensen. Details in
16807 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16809 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16810 Bruno Haible <bruno@clisp.org>
16812 Speed up gnulib-tool by doing more string processing through shell
16814 * gnulib-tool (fast_func_append): New variable.
16815 (func_remove_prefix, func_remove_suffix): New functions.
16816 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16817 (func_filter_filelist): New function.
16818 (func_get_dependencies): Use func_remove_suffix instead of sed.
16819 (func_get_automake_snippet): Use func_filter_filelist instead of a
16820 subshell and sed invocation.
16822 2009-01-01 Bruno Haible <bruno@clisp.org>
16824 Fix a security bug.
16825 * gnulib-tool (func_import, import, update): Don't allow the characters
16826 '"', '$', '`', '\' in macro arguments that become part of commands that
16829 2009-01-01 Bruno Haible <bruno@clisp.org>
16831 * gnulib-tool (func_reset_sigpipe): Add more comments.
16833 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16835 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16836 func_emit_tests_Makefile_am, func_import): Abort loops early if we
16837 already know the answer.
16839 2009-01-01 Jim Meyering <meyering@redhat.com>
16841 * lib/version-etc.c (version_etc_va): Update copyright year.
16843 2008-12-30 Bruno Haible <bruno@clisp.org>
16845 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16846 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16847 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16849 2008-12-29 Eric Blake <ebb9@byu.net>
16851 multiarch: avoid autoconf AC_REQUIRE bug
16852 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16853 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16855 Reported by Bruno Haible, and analyzed in
16856 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16858 2008-12-29 Bruno Haible <bruno@clisp.org>
16860 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16861 files in subdirectories correctly.
16862 Reported by Ralf Wildenhues.
16864 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16866 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16867 rather than 'join FILE -', for Solaris join.
16869 2008-12-29 Bruno Haible <bruno@clisp.org>
16871 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16873 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16874 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16875 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16876 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16877 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16878 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16879 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16880 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16881 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16882 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16883 * m4/nls.m4 (AM_NLS): Likewise.
16884 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16885 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16886 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16887 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16888 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16889 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16890 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16891 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16892 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16893 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16894 * m4/xsize.m4 (gl_XSIZE): Likewise.
16895 Suggested by Jim Meyering.
16897 2008-11-17 Bruce Korb <bkorb@gnu.org>
16899 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16900 * lib/parse-duration.c: use a switch instead of cascading if's.
16902 2008-12-29 Eric Blake <ebb9@byu.net>
16904 wchar.h: supply WEOF on Irix 5.3
16905 * lib/wchar.in.h (wint_t): Also supply WEOF.
16906 * lib/wctype.in.h (wint_t): Likewise.
16907 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16908 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16909 Reported by Tom G. Christensen.
16911 2008-12-26 Bruno Haible <bruno@clisp.org>
16913 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16916 2008-12-26 Bruno Haible <bruno@clisp.org>
16918 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16920 2008-12-26 Bruno Haible <bruno@clisp.org>
16922 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16923 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16924 not __STDC_CONSTANT_MACROS.
16925 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16927 2008-12-25 Bruno Haible <bruno@clisp.org>
16929 Add support for universal builds to vasnprintf.
16930 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16931 universal builds, guess no.
16932 * modules/vasnprintf-posix (Depends-on): Add multiarch.
16933 * modules/vasprintf-posix (Depends-on): Likewise.
16934 * modules/fprintf-posix (Depends-on): Likewise.
16935 * modules/vfprintf-posix (Depends-on): Likewise.
16936 * modules/snprintf-posix (Depends-on): Likewise.
16937 * modules/vsnprintf-posix (Depends-on): Likewise.
16938 * modules/sprintf-posix (Depends-on): Likewise.
16939 * modules/vsprintf-posix (Depends-on): Likewise.
16940 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16941 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16942 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16943 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16944 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16945 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16946 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16948 Add support for universal builds to <inttypes.h>.
16949 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16950 _SCNu64_PREFIX): In Apple
16951 universal builds, define directly, using _LP64.
16952 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16953 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16954 * modules/inttypes (Depends-on): Add multiarch.
16955 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16957 Add support for universal builds to <stdint.h>.
16958 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16959 universal builds, define directly, using _LP64.
16960 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16961 Apple universal builds, don't test for the size and suffix of ptrdiff_t
16963 * modules/stdint (Depends-on): Add multiarch.
16964 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16966 New module 'multiarch'.
16967 * modules/multiarch: New file.
16968 * m4/multiarch.m4: New file.
16970 2008-12-25 Bruno Haible <bruno@clisp.org>
16972 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16974 2008-12-25 Bruno Haible <bruno@clisp.org>
16976 * modules/btowc (License): Relicense under LGPLv2+.
16977 * modules/mbsinit (License): Likewise.
16978 * modules/mbrtowc (License): Likewise.
16979 * modules/wcrtomb (License): Likewise.
16980 * modules/streq (License): Likewise.
16981 Reported by David Lutterkort <lutter@redhat.com>.
16983 2008-12-23 Bruno Haible <bruno@clisp.org>
16985 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16987 2008-12-23 Bruno Haible <bruno@clisp.org>
16989 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16990 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16991 GETADDRINFO_LIB, not in LIBS.
16992 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16993 * modules/canon-host (Link): Likewise.
16994 * NEWS: Mention the change.
16995 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16998 2008-12-22 Bruno Haible <bruno@clisp.org>
17000 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17001 * doc/posix-functions/iswalpha_l.texi: Likewise.
17002 * doc/posix-functions/iswblank_l.texi: Likewise.
17003 * doc/posix-functions/iswcntrl_l.texi: Likewise.
17004 * doc/posix-functions/iswctype_l.texi: Likewise.
17005 * doc/posix-functions/iswdigit_l.texi: Likewise.
17006 * doc/posix-functions/iswgraph_l.texi: Likewise.
17007 * doc/posix-functions/iswlower_l.texi: Likewise.
17008 * doc/posix-functions/iswprint_l.texi: Likewise.
17009 * doc/posix-functions/iswpunct_l.texi: Likewise.
17010 * doc/posix-functions/iswspace_l.texi: Likewise.
17011 * doc/posix-functions/iswupper_l.texi: Likewise.
17012 * doc/posix-functions/iswxdigit_l.texi: Likewise.
17013 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17014 * doc/posix-functions/open_wmemstream.texi: Likewise.
17015 * doc/posix-functions/swscanf.texi: Likewise.
17016 * doc/posix-functions/towctrans_l.texi: Likewise.
17017 * doc/posix-functions/towlower.texi: Likewise.
17018 * doc/posix-functions/towlower_l.texi: Likewise.
17019 * doc/posix-functions/towupper.texi: Likewise.
17020 * doc/posix-functions/towupper_l.texi: Likewise.
17021 * doc/posix-functions/vfwprintf.texi: Likewise.
17022 * doc/posix-functions/vfwscanf.texi: Likewise.
17023 * doc/posix-functions/vswscanf.texi: Likewise.
17024 * doc/posix-functions/vwprintf.texi: Likewise.
17025 * doc/posix-functions/vwscanf.texi: Likewise.
17026 * doc/posix-functions/wcpcpy.texi: Likewise.
17027 * doc/posix-functions/wcpncpy.texi: Likewise.
17028 * doc/posix-functions/wcscasecmp.texi: Likewise.
17029 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17030 * doc/posix-functions/wcscoll_l.texi: Likewise.
17031 * doc/posix-functions/wcsdup.texi: Likewise.
17032 * doc/posix-functions/wcsncasecmp.texi: Likewise.
17033 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17034 * doc/posix-functions/wcsnlen.texi: Likewise.
17035 * doc/posix-functions/wcsnrtombs.texi: Likewise.
17036 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17037 * doc/posix-functions/wctrans_l.texi: Likewise.
17038 * doc/posix-functions/wctype_l.texi: Likewise.
17039 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17040 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17041 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17042 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17043 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17044 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17045 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17046 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17047 * doc/glibc-functions/wcschrnul.texi: Likewise.
17048 * doc/glibc-functions/wcsftime_l.texi: Likewise.
17049 * doc/glibc-functions/wcstod_l.texi: Likewise.
17050 * doc/glibc-functions/wcstof_l.texi: Likewise.
17051 * doc/glibc-functions/wcstol_l.texi: Likewise.
17052 * doc/glibc-functions/wcstold_l.texi: Likewise.
17053 * doc/glibc-functions/wcstoll_l.texi: Likewise.
17054 * doc/glibc-functions/wcstoq.texi: Likewise.
17055 * doc/glibc-functions/wcstoul_l.texi: Likewise.
17056 * doc/glibc-functions/wcstoull_l.texi: Likewise.
17057 * doc/glibc-functions/wcstouq.texi: Likewise.
17058 * doc/glibc-functions/wmempcpy.texi: Likewise.
17060 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
17061 Eric Blake <ebb9@byu.net>
17062 Paolo Bonzini <bonzini@gnu.org>
17063 Bruno Haible <bruno@clisp.org>
17065 Make c-stack work on Haiku.
17066 * lib/c-stack.c (SA_ONSTACK): Define fallback.
17067 (c_stack_action): Use SA_ONSTACK flag.
17069 2008-12-22 Bruno Haible <bruno@clisp.org>
17071 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17073 2008-12-22 Bruno Haible <bruno@clisp.org>
17075 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17076 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17078 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17080 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17081 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17082 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17083 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17085 2008-12-22 Bruno Haible <bruno@clisp.org>
17087 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17090 2008-12-22 Eric Blake <ebb9@byu.net>
17092 Avoid gcc warnings on cygwin.
17093 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17094 Avoid unused variable.
17095 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17098 2008-12-22 Bruno Haible <bruno@clisp.org>
17100 Remove HAVE_MBRTOWC conditionals.
17101 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17102 (mbscasecmp): Assume mbrtowc function.
17103 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17104 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17105 * lib/mbschr.c: Include mbuiter.h unconditionally.
17106 (mbschr): Assume mbrtowc function.
17107 * lib/mbscspn.c: Include mbuiter.h unconditionally.
17108 (mbscspn): Assume mbrtowc function.
17109 * lib/mbslen.c: Include mbuiter.h unconditionally.
17110 (mbslen): Assume mbrtowc function.
17111 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17112 (mbsncasecmp): Assume mbrtowc function.
17113 * lib/mbsnlen.c: Include mbiter.h unconditionally.
17114 (mbsnlen): Assume mbrtowc function.
17115 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17116 (mbspbrk): Assume mbrtowc function.
17117 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17118 (mbspcasecmp): Assume mbrtowc function.
17119 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17120 (mbsrchr): Assume mbrtowc function.
17121 * lib/mbssep.c: Include mbuiter.h unconditionally.
17122 (mbssep): Assume mbrtowc function.
17123 * lib/mbsspn.c: Include mbuiter.h unconditionally.
17124 (mbsspn): Assume mbrtowc function.
17125 * lib/mbsstr.c: Include mbuiter.h unconditionally.
17126 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17127 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17128 (mbstok_r): Assume mbrtowc function.
17129 * lib/propername.c: Include mbuiter.h unconditionally.
17130 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17131 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17132 (trim2): Assume mbrtowc function.
17133 * lib/mbswidth.c (mbsinit): Remove fallback definition.
17134 (mbsnwidth): Assume mbrtowc function.
17135 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17136 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17137 fallback definitions.
17138 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17140 2008-12-22 Bruno Haible <bruno@clisp.org>
17142 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17144 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
17146 * modules/regex: Request emulations for the mb*/wc* functions we need.
17147 * m4/regex.m4: Don't look for those functions here.
17148 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17150 2008-12-22 Bruno Haible <bruno@clisp.org>
17152 * modules/fnmatch (Depends-on): Remove duplicated dependency.
17154 2008-12-21 Bruno Haible <bruno@clisp.org>
17156 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17157 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17158 (Include): Remove conditionalization.
17159 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17160 (Include): Remove conditionalization.
17161 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17162 (Include): Remove conditionalization.
17163 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17164 * m4/mbfile.m4 (gl_MBFILE): Likewise.
17165 * NEWS: Mention the change.
17166 Reported by Alan Hourihane <alanh@fairlite.co.uk>
17167 via Sergey Poznyakoff <gray@gnu.org.ua>.
17169 2008-12-21 Bruno Haible <bruno@clisp.org>
17171 * MODULES.html.sh (Extended multibyte and wide character utilities
17172 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17173 wcrtomb, wcsrtombs.
17174 (Support for systems lacking POSIX:2008): Add accept, bind, close,
17175 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17176 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17177 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17179 2008-12-21 Bruno Haible <bruno@clisp.org>
17181 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17183 2008-12-21 Bruno Haible <bruno@clisp.org>
17185 * modules/wcsnrtombs-tests: New file.
17186 * tests/test-wcsnrtombs1.sh: New file.
17187 * tests/test-wcsnrtombs2.sh: New file.
17188 * tests/test-wcsnrtombs3.sh: New file.
17189 * tests/test-wcsnrtombs4.sh: New file.
17190 * tests/test-wcsnrtombs.c: New file.
17192 New module 'wcsnrtombs'.
17193 * lib/wchar.in.h (wcsnrtombs): New declaration.
17194 * lib/wcsnrtombs.c: New file.
17195 * lib/wcsrtombs-state.c: New file.
17196 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17197 (internal_state): Remove variable.
17198 * m4/wcsnrtombs.m4: New file.
17199 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17201 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17203 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17205 * modules/wcsnrtombs: New file.
17206 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17207 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17209 2008-12-21 Bruno Haible <bruno@clisp.org>
17211 * modules/wcsrtombs-tests: New file.
17212 * tests/test-wcsrtombs1.sh: New file.
17213 * tests/test-wcsrtombs2.sh: New file.
17214 * tests/test-wcsrtombs3.sh: New file.
17215 * tests/test-wcsrtombs4.sh: New file.
17216 * tests/test-wcsrtombs.c: New file.
17218 New module 'wcsrtombs'.
17219 * lib/wchar.in.h (wcsrtombs): New declaration.
17220 * lib/wcsrtombs.c: New file.
17221 * m4/wcsrtombs.m4: New file.
17222 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17223 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17224 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17225 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17226 * modules/wcsrtombs: New file.
17227 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17230 2008-12-21 Bruno Haible <bruno@clisp.org>
17232 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17233 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17234 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17235 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17237 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17238 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17239 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17240 m4/locale-zh.m4, m4/codeset.m4.
17241 * doc/posix-functions/wcrtomb.texi: Document the bug.
17243 2008-12-21 Bruno Haible <bruno@clisp.org>
17245 Work around a btowc() bug on IRIX 6.5.
17246 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17247 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17248 REPLACE_WTOBC if not.
17249 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17250 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17251 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17253 2008-12-21 Bruno Haible <bruno@clisp.org>
17255 * modules/wcrtomb-tests: New file.
17256 * tests/test-wcrtomb.sh: New file.
17257 * tests/test-wcrtomb.c: New file.
17259 New module 'wcrtomb'.
17260 * lib/wchar.in.h (wcrtomb): New declaration.
17261 * lib/wcrtomb.c: New file.
17262 * m4/wcrtomb.m4: New file.
17263 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17265 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17267 * modules/wcrtomb: New file.
17268 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17270 2008-12-21 Bruno Haible <bruno@clisp.org>
17272 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17273 * modules/mbsrtowcs (Files): Likewise.
17274 * modules/wctob (Files): Likewise.
17275 * modules/c-strcase-tests (Files): Likewise.
17276 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17277 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17278 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17279 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17280 * modules/vasnprintf-posix-tests (Files): Likewise.
17282 2008-12-21 William Pursell <bill.pursell@gmail.com>
17284 gitlog-to-changelog: pass all command-line arguments to git-log
17285 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17286 it is sometimes convenient to filter the commits in various ways.
17287 gitlog-to-changelog only allows --since to specify a start date,
17288 but git-log itself supports many other filtering mechanisms.
17289 At the moment, I want to filter by branch name. Rather than
17290 adding a --branch option to gitlog-to-changelog, it seems more
17291 flexible to simply pass all options directly to git-log and let
17292 git do the work. Notice that this effectively makes --since a
17293 redundant option for gitlog-to-changelog, but removing it would
17294 require current usage to change since calls would then require
17295 an additional '--'.
17297 2008-12-21 Bruno Haible <bruno@clisp.org>
17299 * modules/mbsnrtowcs-tests: New file.
17300 * tests/test-mbsnrtowcs1.sh: New file.
17301 * tests/test-mbsnrtowcs2.sh: New file.
17302 * tests/test-mbsnrtowcs3.sh: New file.
17303 * tests/test-mbsnrtowcs4.sh: New file.
17304 * tests/test-mbsnrtowcs.c: New file.
17306 New module 'mbsnrtowcs'.
17307 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17308 * lib/mbsnrtowcs.c: New file.
17309 * lib/mbsrtowcs-state.c: New file.
17310 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17311 (internal_state): Remove variable.
17312 * m4/mbsnrtowcs.m4: New file.
17313 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17315 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17316 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17317 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17318 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17319 * modules/mbsnrtowcs: New file.
17320 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17321 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17322 portability problem.
17324 2008-12-21 Bruno Haible <bruno@clisp.org>
17326 Work around mbsrtowcs bug.
17327 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17328 (gl_FUNC_MBSRTOWCS): Invoke it.
17329 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17331 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17333 2008-12-21 Bruno Haible <bruno@clisp.org>
17335 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17337 2008-12-21 Bruno Haible <bruno@clisp.org>
17339 Update doc for AIX.
17340 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17341 16-bit wchar_t type.
17342 * doc/posix-functions/btowc.texi: Likewise.
17343 * doc/posix-functions/fgetwc.texi: Likewise.
17344 * doc/posix-functions/fgetws.texi: Likewise.
17345 * doc/posix-functions/fputwc.texi: Likewise.
17346 * doc/posix-functions/fputws.texi: Likewise.
17347 * doc/posix-functions/fwide.texi: Likewise.
17348 * doc/posix-functions/fwprintf.texi: Likewise.
17349 * doc/posix-functions/fwscanf.texi: Likewise.
17350 * doc/posix-functions/getwchar.texi: Likewise.
17351 * doc/posix-functions/getwc.texi: Likewise.
17352 * doc/posix-functions/iswalnum.texi: Likewise.
17353 * doc/posix-functions/iswalpha.texi: Likewise.
17354 * doc/posix-functions/iswblank.texi: Likewise.
17355 * doc/posix-functions/iswcntrl.texi: Likewise.
17356 * doc/posix-functions/iswctype.texi: Likewise.
17357 * doc/posix-functions/iswdigit.texi: Likewise.
17358 * doc/posix-functions/iswgraph.texi: Likewise.
17359 * doc/posix-functions/iswlower.texi: Likewise.
17360 * doc/posix-functions/iswprint.texi: Likewise.
17361 * doc/posix-functions/iswpunct.texi: Likewise.
17362 * doc/posix-functions/iswspace.texi: Likewise.
17363 * doc/posix-functions/iswupper.texi: Likewise.
17364 * doc/posix-functions/iswxdigit.texi: Likewise.
17365 * doc/posix-functions/mbrtowc.texi: Likewise.
17366 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17367 * doc/posix-functions/mbstowcs.texi: Likewise.
17368 * doc/posix-functions/mbtowc.texi: Likewise.
17369 * doc/posix-functions/putwchar.texi: Likewise.
17370 * doc/posix-functions/putwc.texi: Likewise.
17371 * doc/posix-functions/swprintf.texi: Likewise.
17372 * doc/posix-functions/tolower.texi: Likewise.
17373 * doc/posix-functions/toupper.texi: Likewise.
17374 * doc/posix-functions/towctrans.texi: Likewise.
17375 * doc/posix-functions/ungetwc.texi: Likewise.
17376 * doc/posix-functions/vswprintf.texi: Likewise.
17377 * doc/posix-functions/wcrtomb.texi: Likewise.
17378 * doc/posix-functions/wcscat.texi: Likewise.
17379 * doc/posix-functions/wcschr.texi: Likewise.
17380 * doc/posix-functions/wcscmp.texi: Likewise.
17381 * doc/posix-functions/wcscoll.texi: Likewise.
17382 * doc/posix-functions/wcscpy.texi: Likewise.
17383 * doc/posix-functions/wcscspn.texi: Likewise.
17384 * doc/posix-functions/wcsftime.texi: Likewise.
17385 * doc/posix-functions/wcslen.texi: Likewise.
17386 * doc/posix-functions/wcsncat.texi: Likewise.
17387 * doc/posix-functions/wcsncmp.texi: Likewise.
17388 * doc/posix-functions/wcsncpy.texi: Likewise.
17389 * doc/posix-functions/wcspbrk.texi: Likewise.
17390 * doc/posix-functions/wcsrchr.texi: Likewise.
17391 * doc/posix-functions/wcsrtombs.texi: Likewise.
17392 * doc/posix-functions/wcsspn.texi: Likewise.
17393 * doc/posix-functions/wcsstr.texi: Likewise.
17394 * doc/posix-functions/wcstod.texi: Likewise.
17395 * doc/posix-functions/wcstof.texi: Likewise.
17396 * doc/posix-functions/wcstoimax.texi: Likewise.
17397 * doc/posix-functions/wcstok.texi: Likewise.
17398 * doc/posix-functions/wcstold.texi: Likewise.
17399 * doc/posix-functions/wcstoll.texi: Likewise.
17400 * doc/posix-functions/wcstol.texi: Likewise.
17401 * doc/posix-functions/wcstombs.texi: Likewise.
17402 * doc/posix-functions/wcstoull.texi: Likewise.
17403 * doc/posix-functions/wcstoul.texi: Likewise.
17404 * doc/posix-functions/wcstoumax.texi: Likewise.
17405 * doc/posix-functions/wcswidth.texi: Likewise.
17406 * doc/posix-functions/wcsxfrm.texi: Likewise.
17407 * doc/posix-functions/wctob.texi: Likewise.
17408 * doc/posix-functions/wctomb.texi: Likewise.
17409 * doc/posix-functions/wctrans.texi: Likewise.
17410 * doc/posix-functions/wctype.texi: Likewise.
17411 * doc/posix-functions/wcwidth.texi: Likewise.
17412 * doc/posix-functions/wmemchr.texi: Likewise.
17413 * doc/posix-functions/wmemcmp.texi: Likewise.
17414 * doc/posix-functions/wmemcpy.texi: Likewise.
17415 * doc/posix-functions/wmemmove.texi: Likewise.
17416 * doc/posix-functions/wmemset.texi: Likewise.
17417 * doc/posix-functions/wprintf.texi: Likewise.
17418 * doc/posix-functions/wscanf.texi: Likewise.
17420 2008-12-21 Bruno Haible <bruno@clisp.org>
17422 Update doc for HP-UX 11.11.
17423 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17424 in HP-UX version 11.00, not in all versions of HP-UX 11.
17425 * doc/posix-functions/fwide.texi: Likewise.
17426 * doc/posix-functions/fwprintf.texi: Likewise.
17427 * doc/posix-functions/fwscanf.texi: Likewise.
17428 * doc/posix-functions/inet_ntop.texi: Likewise.
17429 * doc/posix-functions/inet_pton.texi: Likewise.
17430 * doc/posix-functions/mbrlen.texi: Likewise.
17431 * doc/posix-functions/mbrtowc.texi: Likewise.
17432 * doc/posix-functions/mbsinit.texi: Likewise.
17433 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17434 * doc/posix-functions/swprintf.texi: Likewise.
17435 * doc/posix-functions/swscanf.texi: Likewise.
17436 * doc/posix-functions/towctrans.texi: Likewise.
17437 * doc/posix-functions/vfwprintf.texi: Likewise.
17438 * doc/posix-functions/vswprintf.texi: Likewise.
17439 * doc/posix-functions/vwprintf.texi: Likewise.
17440 * doc/posix-functions/wcrtomb.texi: Likewise.
17441 * doc/posix-functions/wcsrtombs.texi: Likewise.
17442 * doc/posix-functions/wcsstr.texi: Likewise.
17443 * doc/posix-functions/wctob.texi: Likewise.
17444 * doc/posix-functions/wctrans.texi: Likewise.
17445 * doc/posix-functions/wmemchr.texi: Likewise.
17446 * doc/posix-functions/wmemcmp.texi: Likewise.
17447 * doc/posix-functions/wmemcpy.texi: Likewise.
17448 * doc/posix-functions/wmemmove.texi: Likewise.
17449 * doc/posix-functions/wmemset.texi: Likewise.
17450 * doc/posix-functions/wprintf.texi: Likewise.
17451 * doc/posix-functions/wscanf.texi: Likewise.
17453 2008-12-21 Bruno Haible <bruno@clisp.org>
17455 Work around a portability problem.
17456 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17457 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17459 2008-12-20 Bruno Haible <bruno@clisp.org>
17461 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17462 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17463 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17464 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17465 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17467 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17468 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17470 (GNULIB_defined_mbstate_t): New macro.
17471 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17472 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17473 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17474 reuses the system's mbrtowc function but works around the bugs.
17475 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17476 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17478 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17479 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17480 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17481 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17482 REPLACE_MBSINIT if mbsinit needs to be overridden.
17483 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17484 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17485 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17486 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17487 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17489 (Depends): Add mbsinit.
17490 * modules/mbsinit (Depends): Add mbrtowc.
17491 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17493 2008-12-20 Bruno Haible <bruno@clisp.org>
17495 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17496 so that there are no conversion errors on AIX.
17497 * tests/test-mbsrtowcs.c (main): LIkewise.
17499 2008-12-20 Bruno Haible <bruno@clisp.org>
17501 Work around wctob bug on Solaris <= 9.
17502 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17503 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17504 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17505 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17506 * modules/wctob (Files): Add m4/locale-fr.m4.
17507 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17509 2008-12-20 Bruno Haible <bruno@clisp.org>
17511 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17513 * tests/test-select-in.sh: Likewise.
17514 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17516 2008-12-20 Bruno Haible <bruno@clisp.org>
17518 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17519 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17522 2008-12-20 Bruno Haible <bruno@clisp.org>
17524 Ensure mbstate_t is defined on HP-UX 11.11.
17525 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17526 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17527 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17528 AC_USE_SYSTEM_EXTENSIONS.
17529 * modules/fnmatch (Depends-on): Add extensions.
17530 * modules/mbrlen (Depends-on): Likewise.
17531 * modules/mbrtowc (Depends-on): Likewise.
17532 * modules/mbsinit (Depends-on): Likewise.
17533 * modules/mbsrtowcs (Depends-on): Likewise.
17534 * modules/mbswidth (Depends-on): Likewise.
17535 * modules/quotearg (Depends-on): Likewise.
17536 * modules/strftime (Depends-on): Likewise.
17538 2008-12-20 Bruno Haible <bruno@clisp.org>
17540 Ensure wctob is declared on IRIX 6.5.
17541 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17542 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17543 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17544 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17546 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17548 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17550 2008-12-19 Bruno Haible <bruno@clisp.org>
17552 * modules/mbsrtowcs-tests: New file.
17553 * tests/test-mbsrtowcs1.sh: New file.
17554 * tests/test-mbsrtowcs2.sh: New file.
17555 * tests/test-mbsrtowcs3.sh: New file.
17556 * tests/test-mbsrtowcs4.sh: New file.
17557 * tests/test-mbsrtowcs.c: New file.
17559 New module 'mbsrtowcs'.
17560 * lib/wchar.in.h (mbsrtowcs): New declaration.
17561 * lib/mbsrtowcs.c: New file.
17562 * m4/mbsrtowcs.m4: New file.
17563 * modules/mbsrtowcs: New file.
17564 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17566 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17568 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17570 2008-12-19 Bruno Haible <bruno@clisp.org>
17572 New module 'mbrlen'.
17573 * lib/wchar.in.h (mbrlen): New declaration.
17574 * lib/mbrlen.c: New file.
17575 * m4/mbrlen.m4: New file.
17576 * modules/mbrlen: New file.
17577 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17579 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17581 * doc/posix-functions/mbrlen.texi: Document the new module.
17583 2008-12-19 Bruno Haible <bruno@clisp.org>
17585 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17586 * modules/mbrtowc (Depends-on): Add verify.
17587 Suggested by Paul Eggert.
17589 2008-12-18 Bruno Haible <bruno@clisp.org>
17591 * modules/mbsinit-tests: New file.
17592 * tests/test-mbsinit.sh: New file.
17593 * tests/test-mbsinit.c: New file.
17595 2008-12-18 Bruno Haible <bruno@clisp.org>
17597 * modules/mbrtowc-tests: New file.
17598 * tests/test-mbrtowc1.sh: New file.
17599 * tests/test-mbrtowc2.sh: New file.
17600 * tests/test-mbrtowc3.sh: New file.
17601 * tests/test-mbrtowc4.sh: New file.
17602 * tests/test-mbrtowc.c: New file.
17604 New module 'mbrtowc'.
17605 * lib/wchar.in.h (mbstate_t): Override when the system does not have
17606 mbsinit and mbrtowc.
17607 (mbrtowc): New declaration.
17608 * lib/mbrtowc.c: New file.
17609 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17610 * modules/mbrtowc: New file.
17611 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17613 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17615 * doc/posix-functions/mbrtowc.texi: Document the new module.
17617 2008-12-18 Bruno Haible <bruno@clisp.org>
17619 New module 'wctob'.
17620 * lib/wchar.in.h (wctob): New declaration.
17621 * lib/wctob.c: New file.
17622 * m4/wctob.m4: New file.
17623 * modules/wctob: New file.
17624 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17626 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17627 * doc/posix-functions/wctob.texi: Document the new module.
17629 2008-12-18 Bruno Haible <bruno@clisp.org>
17631 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17632 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17634 2008-12-18 Simon Josefsson <simon@josefsson.org>
17636 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
17637 G. Christensen" <tgc@jupiterrise.com>.
17639 * lib/flock.c: Need to include errno.h. Reported by "Tom
17640 G. Christensen" <tgc@jupiterrise.com>.
17642 * lib/flock.c: Need to include string.h. Reported by "Tom
17643 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17646 2008-12-18 Bruno Haible <bruno@clisp.org>
17648 * m4/locale-ja.m4: New file, from GNU gettext.
17650 2008-12-17 Bruno Haible <bruno@clisp.org>
17652 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17653 Suggested by Eric Blake.
17655 2008-12-17 Bruno Haible <bruno@clisp.org>
17657 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17659 2008-12-17 Bruno Haible <bruno@clisp.org>
17661 * lib/mbsinit.c: Include verify.h. Verify an assumption.
17662 * modules/mbsinit (Depends-on): Add verify.
17663 Suggested by Paul Eggert.
17665 2008-12-17 Bruno Haible <bruno@clisp.org>
17667 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17668 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17670 * m4/mbiter.m4 (gl_MBITER): LIkewise.
17671 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17672 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17673 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17674 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17675 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17676 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17677 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17678 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17679 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17680 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17681 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17682 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17683 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17684 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17685 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17686 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17687 * modules/trim (configure.ac): Likewise.
17689 2008-12-17 Bruno Haible <bruno@clisp.org>
17691 * modules/btowc-tests: New file.
17692 * tests/test-btowc1.sh: New file.
17693 * tests/test-btowc2.sh: New file.
17694 * tests/test-btowc.c: New file.
17696 New module 'btowc'.
17697 * lib/wchar.in.h (btowc): New declaration.
17698 * lib/btowc.c: New file.
17699 * m4/btowc.m4: New file.
17700 * modules/btowc: New file.
17701 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17703 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17704 * doc/posix-functions/btowc.texi: Document the new module.
17706 2008-12-17 Bruno Haible <bruno@clisp.org>
17708 New module 'mbsinit'.
17709 * lib/wchar.in.h (mbsinit): New declaration.
17710 * lib/mbsinit.c: New file.
17711 * m4/mbsinit.m4: New file.
17712 * modules/mbsinit: New file.
17713 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17715 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17717 * doc/posix-functions/mbsinit.texi: Document the new module.
17719 2008-12-16 Bruno Haible <bruno@clisp.org>
17721 * lib/unistd.in.h: Add comment.
17722 * tests/test-environ.c: Don't include <stdlib.h>.
17724 2008-12-16 Bruno Haible <bruno@clisp.org>
17726 * lib/parse-duration.h (parse_duration): Document return value
17728 * lib/parse-duration.c: Include specification header first. Add
17731 (parse_year_month_day, parse_hour_minute_second): Move side effects
17732 outside of strchr call.
17733 (parse_non_iso8601): Move side effects outside of isspace call.
17734 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17737 2008-12-16 Bruno Haible <bruno@clisp.org>
17739 * tests/test-parse-duration.sh: Produce no output when the test
17742 2008-12-16 Bruno Haible <bruno@clisp.org>
17744 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17747 2008-12-15 Bruno Haible <bruno@clisp.org>
17749 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17750 * doc/glibc-functions/flistxattr.texi: Likewise.
17751 * doc/glibc-functions/fopencookie.texi: Likewise.
17752 * doc/glibc-functions/fremovexattr.texi: Likewise.
17753 * doc/glibc-functions/fsetxattr.texi: Likewise.
17754 * doc/glibc-functions/getxattr.texi: Likewise.
17755 * doc/glibc-functions/lgetxattr.texi: Likewise.
17756 * doc/glibc-functions/listxattr.texi: Likewise.
17757 * doc/glibc-functions/llistxattr.texi: Likewise.
17758 * doc/glibc-functions/lremovexattr.texi: Likewise.
17759 * doc/glibc-functions/lsetxattr.texi: Likewise.
17760 * doc/glibc-functions/removexattr.texi: Likewise.
17761 * doc/glibc-functions/setxattr.texi: Likewise.
17762 * doc/posix-functions/open_memstream.texi: Likewise.
17764 2008-12-15 Eric Blake <ebb9@byu.net>
17766 Update doc for cygwin 1.7.
17767 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17769 * doc/posix-functions/fchmodat.texi: Likewise.
17770 * doc/posix-functions/fchownat.texi: Likewise.
17771 * doc/posix-functions/fdopendir.texi: Likewise.
17772 * doc/posix-functions/fmemopen.texi: Likewise.
17773 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17774 * doc/posix-functions/fstatat.texi: Likewise.
17775 * doc/posix-functions/futimens.texi: Likewise.
17776 * doc/posix-functions/gai_strerror.texi: Likewise.
17777 * doc/posix-functions/getaddrinfo.texi: Likewise.
17778 * doc/posix-functions/getnameinfo.texi: Likewise.
17779 * doc/posix-functions/if_freenameindex.texi: Likewise.
17780 * doc/posix-functions/if_indextoname.texi: Likewise.
17781 * doc/posix-functions/if_nameindex.texi: Likewise.
17782 * doc/posix-functions/if_nametoindex.texi: Likewise.
17783 * doc/posix-functions/insque.texi: Likewise.
17784 * doc/posix-functions/linkat.texi: Likewise.
17785 * doc/posix-functions/llrint.texi: Likewise.
17786 * doc/posix-functions/llrintf.texi: Likewise.
17787 * doc/posix-functions/llrintl.texi: Likewise.
17788 * doc/posix-functions/lockf.texi: Likewise.
17789 * doc/posix-functions/lrintl.texi: Likewise.
17790 * doc/posix-functions/mkdirat.texi: Likewise.
17791 * doc/posix-functions/mkfifoat.texi: Likewise.
17792 * doc/posix-functions/mknodat.texi: Likewise.
17793 * doc/posix-functions/mq_close.texi: Likewise.
17794 * doc/posix-functions/mq_getattr.texi: Likewise.
17795 * doc/posix-functions/mq_notify.texi: Likewise.
17796 * doc/posix-functions/mq_open.texi: Likewise.
17797 * doc/posix-functions/mq_receive.texi: Likewise.
17798 * doc/posix-functions/mq_send.texi: Likewise.
17799 * doc/posix-functions/mq_setattr.texi: Likewise.
17800 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17801 * doc/posix-functions/mq_timedsend.texi: Likewise.
17802 * doc/posix-functions/mq_unlink.texi: Likewise.
17803 * doc/posix-functions/open_memstream.texi: Likewise.
17804 * doc/posix-functions/openat.texi: Likewise.
17805 * doc/posix-functions/posix_fadvise.texi: Likewise.
17806 * doc/posix-functions/posix_fallocate.texi: Likewise.
17807 * doc/posix-functions/posix_madvise.texi: Likewise.
17808 * doc/posix-functions/posix_memalign.texi: Likewise.
17809 * doc/posix-functions/posix_openpt.texi: Likewise.
17810 * doc/posix-functions/readlinkat.texi: Likewise.
17811 * doc/posix-functions/remque.texi: Likewise.
17812 * doc/posix-functions/renameat.texi: Likewise.
17813 * doc/posix-functions/rintl.texi: Likewise.
17814 * doc/posix-functions/sem_unlink.texi: Likewise.
17815 * doc/posix-functions/shm_open.texi: Likewise.
17816 * doc/posix-functions/shm_unlink.texi: Likewise.
17817 * doc/posix-functions/signgam.texi: Likewise.
17818 * doc/posix-functions/sigset.texi: Likewise.
17819 * doc/posix-functions/stpcpy.texi: Likewise.
17820 * doc/posix-functions/stpncpy.texi: Likewise.
17821 * doc/posix-functions/strerror.texi: Likewise.
17822 * doc/posix-functions/strtod.texi: Likewise.
17823 * doc/posix-functions/symlinkat.texi: Likewise.
17824 * doc/posix-functions/unlinkat.texi: Likewise.
17825 * doc/posix-functions/utimensat.texi: Likewise.
17826 * doc/glibc-functions/bindresvport.texi: Likewise.
17827 * doc/glibc-functions/dn_expand.texi: Likewise.
17828 * doc/glibc-functions/exp10.texi: Likewise.
17829 * doc/glibc-functions/exp10f.texi: Likewise.
17830 * doc/glibc-functions/fgetxattr.texi: Likewise.
17831 * doc/glibc-functions/flistxattr.texi: Likewise.
17832 * doc/glibc-functions/fopencookie.texi: Likewise.
17833 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17834 * doc/glibc-functions/fremovexattr.texi: Likewise.
17835 * doc/glibc-functions/fsetxattr.texi: Likewise.
17836 * doc/glibc-functions/getifaddrs.texi: Likewise.
17837 * doc/glibc-functions/getxattr.texi: Likewise.
17838 * doc/glibc-functions/lgetxattr.texi: Likewise.
17839 * doc/glibc-functions/listxattr.texi: Likewise.
17840 * doc/glibc-functions/llistxattr.texi: Likewise.
17841 * doc/glibc-functions/lremovexattr.texi: Likewise.
17842 * doc/glibc-functions/lsetxattr.texi: Likewise.
17843 * doc/glibc-functions/pow10.texi: Likewise.
17844 * doc/glibc-functions/pow10f.texi: Likewise.
17845 * doc/glibc-functions/rcmd_af.texi: Likewise.
17846 * doc/glibc-functions/removexattr.texi: Likewise.
17847 * doc/glibc-functions/res_init.texi: Likewise.
17848 * doc/glibc-functions/res_mkquery.texi: Likewise.
17849 * doc/glibc-functions/res_query.texi: Likewise.
17850 * doc/glibc-functions/res_querydomain.texi: Likewise.
17851 * doc/glibc-functions/res_send.texi: Likewise.
17852 * doc/glibc-functions/rresvport_af.texi: Likewise.
17853 * doc/glibc-functions/setxattr.texi: Likewise.
17854 * doc/glibc-functions/strcasestr.texi: Likewise.
17856 2008-12-15 Bruno Haible <bruno@clisp.org>
17858 Fix compilation error on OSF/1 4.0.
17859 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17860 <sys/time.h>, simply delegate to the system header.
17861 Reported by Daniel Richard G. <oss@teragram.com>.
17863 2008-12-15 Bruno Haible <bruno@clisp.org>
17865 * doc/posix-functions/openat.texi: Mention the 'openat' module.
17866 * doc/posix-functions/fchmodat.texi: Likewise.
17867 * doc/posix-functions/fchownat.texi: Likewise.
17868 * doc/posix-functions/fdopendir.texi: Likewise.
17869 * doc/posix-functions/fstatat.texi: Likewise.
17870 * doc/posix-functions/mkdirat.texi: Likewise.
17871 * doc/posix-functions/unlinkat.texi: Likewise.
17873 2008-12-14 Bruno Haible <bruno@clisp.org>
17875 Update doc for POSIX:2008.
17876 * doc/posix-functions/faccessat.texi: New file.
17877 * doc/posix-functions/fchmodat.texi: New file.
17878 * doc/posix-functions/fchownat.texi: New file.
17879 * doc/posix-functions/fdopendir.texi: New file.
17880 * doc/posix-functions/fstatat.texi: New file.
17881 * doc/posix-functions/futimens.texi: New file.
17882 * doc/posix-functions/linkat.texi: New file.
17883 * doc/posix-functions/mkdirat.texi: New file.
17884 * doc/posix-functions/mkfifoat.texi: New file.
17885 * doc/posix-functions/mknodat.texi: New file.
17886 * doc/posix-functions/open_wmemstream.texi: New file.
17887 * doc/posix-functions/openat.texi: New file.
17888 * doc/posix-functions/psiginfo.texi: New file.
17889 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17890 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17891 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17892 * doc/posix-functions/readlinkat.texi: New file.
17893 * doc/posix-functions/renameat.texi: New file.
17894 * doc/posix-functions/strerror_l.texi: New file.
17895 * doc/posix-functions/symlinkat.texi: New file.
17896 * doc/posix-functions/unlinkat.texi: New file.
17897 * doc/posix-functions/utimensat.texi: New file.
17898 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17900 2008-12-14 Bruno Haible <bruno@clisp.org>
17902 Update doc for POSIX:2008.
17903 * doc/posix-functions/alphasort.texi: Renamed from
17904 doc/glibc-functions/alphasort.texi.
17905 * doc/posix-functions/dirfd.texi: Renamed from
17906 doc/glibc-functions/dirfd.texi.
17907 * doc/posix-functions/dprintf.texi: Renamed from
17908 doc/glibc-functions/dprintf.texi.
17909 * doc/posix-functions/duplocale.texi: Renamed from
17910 doc/glibc-functions/duplocale.texi.
17911 * doc/posix-functions/fexecve.texi: Renamed from
17912 doc/glibc-functions/fexecve.texi.
17913 * doc/posix-functions/fmemopen.texi: Renamed from
17914 doc/glibc-functions/fmemopen.texi.
17915 * doc/posix-functions/freelocale.texi: Renamed from
17916 doc/glibc-functions/freelocale.texi.
17917 * doc/posix-functions/getdate_err.texi: Renamed from
17918 doc/glibc-functions/getdate_err.texi.
17919 * doc/posix-functions/isalnum_l.texi: Renamed from
17920 doc/glibc-functions/isalnum_l.texi.
17921 * doc/posix-functions/isalpha_l.texi: Renamed from
17922 doc/glibc-functions/isalpha_l.texi.
17923 * doc/posix-functions/isblank_l.texi: Renamed from
17924 doc/glibc-functions/isblank_l.texi.
17925 * doc/posix-functions/iscntrl_l.texi: Renamed from
17926 doc/glibc-functions/iscntrl_l.texi.
17927 * doc/posix-functions/isdigit_l.texi: Renamed from
17928 doc/glibc-functions/isdigit_l.texi.
17929 * doc/posix-functions/isgraph_l.texi: Renamed from
17930 doc/glibc-functions/isgraph_l.texi.
17931 * doc/posix-functions/islower_l.texi: Renamed from
17932 doc/glibc-functions/islower_l.texi.
17933 * doc/posix-functions/isprint_l.texi: Renamed from
17934 doc/glibc-functions/isprint_l.texi.
17935 * doc/posix-functions/ispunct_l.texi: Renamed from
17936 doc/glibc-functions/ispunct_l.texi.
17937 * doc/posix-functions/isspace_l.texi: Renamed from
17938 doc/glibc-functions/isspace_l.texi.
17939 * doc/posix-functions/isupper_l.texi: Renamed from
17940 doc/glibc-functions/isupper_l.texi.
17941 * doc/posix-functions/iswalnum_l.texi: Renamed from
17942 doc/glibc-functions/iswalnum_l.texi.
17943 * doc/posix-functions/iswalpha_l.texi: Renamed from
17944 doc/glibc-functions/iswalpha_l.texi.
17945 * doc/posix-functions/iswblank_l.texi: Renamed from
17946 doc/glibc-functions/iswblank_l.texi.
17947 * doc/posix-functions/iswcntrl_l.texi: Renamed from
17948 doc/glibc-functions/iswcntrl_l.texi.
17949 * doc/posix-functions/iswctype_l.texi: Renamed from
17950 doc/glibc-functions/iswctype_l.texi.
17951 * doc/posix-functions/iswdigit_l.texi: Renamed from
17952 doc/glibc-functions/iswdigit_l.texi.
17953 * doc/posix-functions/iswgraph_l.texi: Renamed from
17954 doc/glibc-functions/iswgraph_l.texi.
17955 * doc/posix-functions/iswlower_l.texi: Renamed from
17956 doc/glibc-functions/iswlower_l.texi.
17957 * doc/posix-functions/iswprint_l.texi: Renamed from
17958 doc/glibc-functions/iswprint_l.texi.
17959 * doc/posix-functions/iswpunct_l.texi: Renamed from
17960 doc/glibc-functions/iswpunct_l.texi.
17961 * doc/posix-functions/iswspace_l.texi: Renamed from
17962 doc/glibc-functions/iswspace_l.texi.
17963 * doc/posix-functions/iswupper_l.texi: Renamed from
17964 doc/glibc-functions/iswupper_l.texi.
17965 * doc/posix-functions/iswxdigit_l.texi: Renamed from
17966 doc/glibc-functions/iswxdigit_l.texi.
17967 * doc/posix-functions/isxdigit_l.texi: Renamed from
17968 doc/glibc-functions/isxdigit_l.texi.
17969 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17970 doc/glibc-functions/mbsnrtowcs.texi.
17971 * doc/posix-functions/mkdtemp.texi: Renamed from
17972 doc/glibc-functions/mkdtemp.texi.
17973 * doc/posix-functions/newlocale.texi: Renamed from
17974 doc/glibc-functions/newlocale.texi.
17975 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17976 doc/glibc-functions/nl_langinfo_l.texi.
17977 * doc/posix-functions/open_memstream.texi: Renamed from
17978 doc/glibc-functions/open_memstream.texi.
17979 * doc/posix-functions/opterr.texi: Renamed from
17980 doc/glibc-functions/opterr.texi.
17981 * doc/posix-functions/optind.texi: Renamed from
17982 doc/glibc-functions/optind.texi.
17983 * doc/posix-functions/optopt.texi: Renamed from
17984 doc/glibc-functions/optopt.texi.
17985 * doc/posix-functions/psignal.texi: Renamed from
17986 doc/glibc-functions/psignal.texi.
17987 * doc/posix-functions/scandir.texi: Renamed from
17988 doc/glibc-functions/scandir.texi.
17989 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17990 doc/glibc-functions/sched_get_priority_min.texi.
17991 * doc/posix-functions/signgam.texi: Renamed from
17992 doc/glibc-functions/signgam.texi.
17993 * doc/posix-functions/stpcpy.texi: Renamed from
17994 doc/glibc-functions/stpcpy.texi.
17995 * doc/posix-functions/stpncpy.texi: Renamed from
17996 doc/glibc-functions/stpncpy.texi.
17997 * doc/posix-functions/strcasecmp_l.texi: Renamed from
17998 doc/glibc-functions/strcasecmp_l.texi.
17999 * doc/posix-functions/strcoll_l.texi: Renamed from
18000 doc/glibc-functions/strcoll_l.texi.
18001 * doc/posix-functions/strfmon_l.texi: Renamed from
18002 doc/glibc-functions/strfmon_l.texi.
18003 * doc/posix-functions/strftime_l.texi: Renamed from
18004 doc/glibc-functions/strftime_l.texi.
18005 * doc/posix-functions/strncasecmp_l.texi: Renamed from
18006 doc/glibc-functions/strncasecmp_l.texi.
18007 * doc/posix-functions/strndup.texi: Renamed from
18008 doc/glibc-functions/strndup.texi.
18009 * doc/posix-functions/strnlen.texi: Renamed from
18010 doc/glibc-functions/strnlen.texi.
18011 * doc/posix-functions/strsignal.texi: Renamed from
18012 doc/glibc-functions/strsignal.texi.
18013 * doc/posix-functions/strxfrm_l.texi: Renamed from
18014 doc/glibc-functions/strxfrm_l.texi.
18015 * doc/posix-functions/timer_gettime.texi: Renamed from
18016 doc/glibc-functions/timer_gettime.texi.
18017 * doc/posix-functions/tolower_l.texi: Renamed from
18018 doc/glibc-functions/tolower_l.texi.
18019 * doc/posix-functions/toupper_l.texi: Renamed from
18020 doc/glibc-functions/toupper_l.texi.
18021 * doc/posix-functions/towctrans_l.texi: Renamed from
18022 doc/glibc-functions/towctrans_l.texi.
18023 * doc/posix-functions/towlower_l.texi: Renamed from
18024 doc/glibc-functions/towlower_l.texi.
18025 * doc/posix-functions/towupper_l.texi: Renamed from
18026 doc/glibc-functions/towupper_l.texi.
18027 * doc/posix-functions/uselocale.texi: Renamed from
18028 doc/glibc-functions/uselocale.texi.
18029 * doc/posix-functions/vdprintf.texi: Renamed from
18030 doc/glibc-functions/vdprintf.texi.
18031 * doc/posix-functions/wcpcpy.texi:
18032 Renamed from doc/glibc-functions/wcpcpy.texi.
18033 * doc/posix-functions/wcpncpy.texi: Renamed from
18034 doc/glibc-functions/wcpncpy.texi.
18035 * doc/posix-functions/wcscasecmp.texi: Renamed from
18036 doc/glibc-functions/wcscasecmp.texi.
18037 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18038 doc/glibc-functions/wcscasecmp_l.texi.
18039 * doc/posix-functions/wcscoll_l.texi: Renamed from
18040 doc/glibc-functions/wcscoll_l.texi.
18041 * doc/posix-functions/wcsdup.texi: Renamed from
18042 doc/glibc-functions/wcsdup.texi.
18043 * doc/posix-functions/wcsncasecmp.texi: Renamed from
18044 doc/glibc-functions/wcsncasecmp.texi.
18045 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18046 doc/glibc-functions/wcsncasecmp_l.texi.
18047 * doc/posix-functions/wcsnlen.texi: Renamed from
18048 doc/glibc-functions/wcsnlen.texi.
18049 * doc/posix-functions/wcsnrtombs.texi: Renamed from
18050 doc/glibc-functions/wcsnrtombs.texi.
18051 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18052 doc/glibc-functions/wcsxfrm_l.texi.
18053 * doc/posix-functions/wctrans_l.texi: Renamed from
18054 doc/glibc-functions/wctrans_l.texi.
18055 * doc/posix-functions/wctype_l.texi: Renamed from
18056 doc/glibc-functions/wctype_l.texi.
18057 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18058 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18059 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18060 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18062 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18065 2008-12-14 Bruno Haible <bruno@clisp.org>
18067 Update doc for POSIX:2008.
18068 * doc/posix-functions/*.texi: Update URL of POSIX specification.
18070 2008-12-14 Bruno Haible <bruno@clisp.org>
18072 Update doc for POSIX:2008.
18073 * doc/pastposix-functions/bcmp.texi: Renamed from
18074 doc/posix-functions/bcmp.texi.
18075 * doc/pastposix-functions/bcopy.texi: Renamed from
18076 doc/posix-functions/bcopy.texi.
18077 * doc/pastposix-functions/bsd_signal.texi: Renamed from
18078 doc/posix-functions/bsd_signal.texi.
18079 * doc/pastposix-functions/bzero.texi: Renamed from
18080 doc/posix-functions/bzero.texi.
18081 * doc/pastposix-functions/ecvt.texi: Renamed from
18082 doc/posix-functions/ecvt.texi.
18083 * doc/pastposix-functions/fcvt.texi: Renamed from
18084 doc/posix-functions/fcvt.texi.
18085 * doc/pastposix-functions/ftime.texi: Renamed from
18086 doc/posix-functions/ftime.texi.
18087 * doc/pastposix-functions/gcvt.texi: Renamed from
18088 doc/posix-functions/gcvt.texi.
18089 * doc/pastposix-functions/getcontext.texi: Renamed from
18090 doc/posix-functions/getcontext.texi.
18091 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18092 doc/posix-functions/gethostbyaddr.texi.
18093 * doc/pastposix-functions/gethostbyname.texi: Renamed from
18094 doc/posix-functions/gethostbyname.texi.
18095 * doc/pastposix-functions/getwd.texi: Renamed from
18096 doc/posix-functions/getwd.texi.
18097 * doc/pastposix-functions/h_errno.texi: Renamed from
18098 doc/posix-functions/h_errno.texi.
18099 * doc/pastposix-functions/index.texi: Renamed from
18100 doc/posix-functions/index.texi.
18101 * doc/pastposix-functions/makecontext.texi: Renamed from
18102 doc/posix-functions/makecontext.texi.
18103 * doc/pastposix-functions/mktemp.texi: Renamed from
18104 doc/posix-functions/mktemp.texi.
18105 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18106 doc/posix-functions/pthread_attr_getstackaddr.texi.
18107 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18108 doc/posix-functions/pthread_attr_setstackaddr.texi.
18109 * doc/pastposix-functions/rindex.texi: Renamed from
18110 doc/posix-functions/rindex.texi.
18111 * doc/pastposix-functions/scalb.texi: Renamed from
18112 doc/posix-functions/scalb.texi.
18113 * doc/pastposix-functions/setcontext.texi: Renamed from
18114 doc/posix-functions/setcontext.texi.
18115 * doc/pastposix-functions/swapcontext.texi: Renamed from
18116 doc/posix-functions/swapcontext.texi.
18117 * doc/pastposix-functions/ualarm.texi: Renamed from
18118 doc/posix-functions/ualarm.texi.
18119 * doc/pastposix-functions/usleep.texi: Renamed from
18120 doc/posix-functions/usleep.texi.
18121 * doc/pastposix-functions/vfork.texi: Renamed from
18122 doc/posix-functions/vfork.texi.
18123 * doc/pastposix-functions/wcswcs.texi: Renamed from
18124 doc/posix-functions/wcswcs.texi.
18125 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18126 (Function Substitutes): Update.
18128 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18130 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18133 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18134 Bruno Haible <bruno@clisp.org>
18136 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18138 2008-12-13 Bruno Haible <bruno@clisp.org>
18140 * modules/strtoull (Depends-on): Remove unistd.
18142 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18144 * modules/strtoull (Depends-on): Add stdlib.
18146 2008-12-11 Simon Josefsson <simon@josefsson.org>
18148 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18150 2008-12-10 Jim Meyering <meyering@redhat.com>
18152 gl_ASSERT: don't say assertions are disabled when they're not
18153 * m4/assert.m4 (gl_ASSERT): Do not make configure report
18154 "checking whether to enable assertions... no", when they are in
18155 fact enabled. This is solely a bug in the output of configure.
18156 In spite of saying "no", NDEBUG was not defined in that case.
18157 Also, as noted by Eric Blake, leave assertions enabled upon
18158 --enable-assert=INVALID.
18160 2008-12-10 Bruno Haible <bruno@clisp.org>
18162 Change MODULES.html to refer to POSIX:2008 where possible.
18163 * MODULES.html.sh (POSIX2008_URL): New variable.
18164 (posix_headers): Remove sys/timeb, ucontext.
18165 (posix2001_headers): New variable.
18166 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18167 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18168 index, makecontext, mktemp, pthread_attr_getstackaddr,
18169 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18170 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18171 (posix2001_functions): New variable.
18172 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18175 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18177 add missing include to parse-duration.c
18178 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18179 * modules/parse-duration (Depends-on): Add xalloc.
18181 fix sed script reading maint.mk
18182 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18183 (syntax-check-rules): Use it.
18185 2008-12-09 Bruno Haible <bruno@clisp.org>
18187 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18188 MacOS X 10.4/PowerPC.
18189 Reported by Simon Josefsson.
18191 2008-12-08 Jim Meyering <meyering@redhat.com>
18193 work around mingw's lack of some S_IF definitions
18194 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18195 Reported by Simon Josefsson.
18197 2008-12-08 Bruno Haible <bruno@clisp.org>
18199 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18200 applied to variables. Needed on MacOS X 10.4/PowerPC.
18201 Reported by Simon Josefsson.
18203 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
18204 and Eric Blake <ebb9@byu.net>
18206 assert: honor --enable-assert
18207 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18208 order to honor --enable-assert, rather than treating it as a
18209 synonym for --disable-assert.
18211 2008-12-08 Jim Meyering <meyering@redhat.com>
18213 * lib/posixtm.c: Remove now-useless declaration of mktime.
18215 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18217 2008-12-07 Bruno Haible <bruno@clisp.org>
18219 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18220 test_once): Mark functions as static.
18221 * tests/test-tls.c (test_tls): Likewise.
18223 2008-12-07 Bruno Haible <bruno@clisp.org>
18225 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18226 iconv_register_autodetect.
18228 2008-12-07 Jim Meyering <meyering@redhat.com>
18230 posixtm.c: avoid a warning
18231 * lib/posixtm.c (posixtime): Don't initialize tm0.
18232 It's no longer needed to placate gcc4's -Wuninitialized,
18233 and the attempt to placate would elicit a new warning.
18235 unicodeio.c: mark unused parameters
18236 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18237 (fallback_failure_callback): Likewise.
18239 2008-12-07 Bruno Haible <bruno@clisp.org>
18241 * gnulib-tool (func_create_testdir): When building the tests
18242 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18243 Reported by Simon Josefsson.
18245 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18247 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18249 2008-12-06 Bruno Haible <bruno@clisp.org>
18251 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18252 Suggested by Eric Blake.
18254 2008-12-06 Bruno Haible <bruno@clisp.org>
18256 Fix a c-stack test failure on MacOS X.
18257 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18258 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18259 handler for SIGBUS as well.
18260 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18261 install a signal handler for SIGBUS as well.
18262 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18264 2008-12-06 Bruno Haible <bruno@clisp.org>
18266 Advocacy documentation.
18267 * doc/gnulib-intro.texi (Benefits): New section.
18268 * doc/gnulib.texi: Update.
18270 2008-12-06 Bruno Haible <bruno@clisp.org>
18272 Document the 'manywarnings' module.
18273 * doc/manywarnings.texi: New file.
18274 * doc/gnulib.texi: Include it.
18276 2008-12-05 Eric Blake <ebb9@byu.net>
18278 tests: silence some gcc warnings
18279 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18280 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18283 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18284 Bruno Haible <bruno@clisp.org>
18286 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18288 2008-11-29 Jim Meyering <meyering@redhat.com>
18290 unicodeio.c: mark unused parameters
18291 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18292 (fallback_failure_callback): Likewise.
18295 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18296 (set_stat_type): Return S_IF*-valued "type" directly.
18297 Prompted by James Youngman's spotting a related bug.
18298 Confirmed by further testing through find.
18300 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18301 * lib/fts.c (D_TYPE): Define.
18302 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18303 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18304 (s_ifmt_shift_bits): New function.
18305 (set_stat_type): New function.
18306 (fts_build): When not calling fts_stat, call set_stat_type
18307 to propagate dirent.d_type info to fts_read caller.
18308 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18309 fts_statp->st_mode type information may be valid.
18311 2008-11-28 Simon Josefsson <simon@josefsson.org>
18313 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18314 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18317 2008-11-20 Bruno Haible <bruno@clisp.org>
18319 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18320 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18322 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18323 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18324 * modules/math (Makefile.am): Substitute
18325 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18326 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18328 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18329 Bruno Haible <bruno@clisp.org>
18331 * lib/stdint.in.h: Define all type macros so that their expansion is
18332 a single typedef'ed token. Fixes a compilation failure in Boost which
18333 does "using ::int8_t;".
18335 2008-11-18 Simon Josefsson <simon@josefsson.org>
18337 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18338 gl_MANYWARN_ALL_GCC.
18339 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18340 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18341 * modules/manywarnings: New file.
18342 * MODULES.html.sh: Mention manywarnings module.
18344 2008-11-18 Bruno Haible <bruno@clisp.org>
18346 * doc/gnulib-tool.texi (Unit tests): New section.
18348 2008-11-18 Simon Josefsson <simon@josefsson.org>
18350 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18351 paths like 'lib/po/foo.po'.
18353 2008-11-17 Simon Josefsson <simon@josefsson.org>
18355 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18356 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18358 2008-11-17 Simon Josefsson <simon@josefsson.org>
18360 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18363 2008-11-17 Simon Josefsson <simon@josefsson.org>
18365 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18367 2008-11-17 Bruce Korb <bkorb@gnu.org>
18369 * modules/parse-duration-tests: New file.
18370 * tests/test-parse-duration.sh: New file.
18371 * tests/test-parse-duration.c: New file.
18373 New module 'parse-duration'.
18374 * lib/parse-duration.h: New file.
18375 * lib/parse-duration.c: New file.
18376 * modules/parse-duration: New file.
18378 2008-11-17 Bruno Haible <bruno@clisp.org>
18380 * tests/test-select-out.sh: Comment out the first pipe test.
18381 Reported by Simon Josefsson.
18383 2008-11-17 Bruno Haible <bruno@clisp.org>
18385 * modules/getaddrinfo (Depends-on): Add servent, hostent.
18386 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18389 2008-11-17 Bruno Haible <bruno@clisp.org>
18391 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18392 -lnetwork and -lnet. Needed for Haiku and BeOS.
18394 2008-11-16 Bruno Haible <bruno@clisp.org>
18396 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18398 2008-11-16 Bruno Haible <bruno@clisp.org>
18400 Avoid test failure on Haiku.
18401 * tests/test-fsync.c: Include <errno.h>.
18402 (main): Don't require that fsync (0) fails.
18404 2008-11-15 Bruno Haible <bruno@clisp.org>
18406 New module 'hostent'.
18407 * modules/hostent: New file.
18408 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18410 2008-11-15 Bruno Haible <bruno@clisp.org>
18412 New module 'servent'.
18413 * modules/servent: New file.
18414 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18416 2008-11-15 Bruno Haible <bruno@clisp.org>
18418 Avoid generating same test program with two different rules.
18419 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18420 test-frexp to test-frexp-nolibm.
18421 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18422 test-frexpl to test-frexpl-nolibm.
18424 2008-11-15 Bruno Haible <bruno@clisp.org>
18426 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18429 2008-11-15 Bruno Haible <bruno@clisp.org>
18431 * lib/netdb.in.h: Activate the definitions also when the system's
18432 <netdb.h> has 'struct addrinfo'.
18433 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18434 EAI_OVERFLOW or AI_NUMERICSERV.
18435 * doc/posix-headers/netdb.texi: Document the problem.
18437 2008-11-15 Bruno Haible <bruno@clisp.org>
18439 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18441 Make the 'sched' module work on platforms where <sched.h> exists but
18442 is incomplete (such as Haiku).
18443 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18444 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18445 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18446 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18447 HAVE_STRUCT_SCHED_PARAM.
18448 * modules/sched (Depends-on): Add include_next.
18449 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18450 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18451 * doc/posix-headers/sched.texi: Document the issue.
18453 2008-11-13 Jim Meyering <meyering@redhat.com>
18455 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18456 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18457 test would fail due to the difference in the Report bugs to ...
18458 line. The expected address is empty, "<>", while the actual
18459 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18461 2008-11-12 Bruno Haible <bruno@clisp.org>
18463 lstat: don't compile lstat.c on systems lacking lstat
18464 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18465 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18466 Reported by Daniel P. Berrange via Jim Meyering.
18468 2008-11-12 Jim Meyering <meyering@redhat.com>
18470 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18472 2008-11-12 Simon Josefsson <simon@josefsson.org>
18474 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18477 2008-11-12 Bruno Haible <bruno@clisp.org>
18479 * lib/unicodeio.c: Include unistr.h.
18480 (utf8_wctomb): Remove function.
18481 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18483 2008-11-12 Simon Josefsson <simon@josefsson.org>
18485 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18486 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18488 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18490 2008-11-12 Simon Josefsson <simon@josefsson.org>
18492 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18493 * doc/gnulib.texi: Add section for warnings.
18495 2008-11-11 Bruno Haible <bruno@clisp.org>
18497 * lib/sockets.h: Add a comment.
18499 2008-11-11 Karl Berry <karl@gnu.org>
18501 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18503 2008-11-11 Eric Blake <ebb9@byu.net>
18505 fdl.texi: avoid git symlinks
18506 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18508 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18510 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18512 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18514 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18515 (gl_WARN_ADD): Substitute $2 if literal.
18517 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18519 * m4/warning.m4: Remove.
18521 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18523 * m4/warnings.m4: Almost complete rewrite. :-)
18525 2008-11-10 Simon Josefsson <simon@josefsson.org>
18527 * modules/warnings: New module.
18528 * m4/warnings.m4: New file.
18529 * MODULES.html.sh: Mention warnings module.
18530 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18531 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18533 2008-11-10 Eric Blake <ebb9@byu.net>
18535 fdl.texi: make a symlink to the latest version
18536 * doc/standards.texi: Revert today's earlier change.
18537 * doc/fdl-1.2.texi: Rename from old fdl.texi...
18538 * doc/fdl.texi: ...and replace this with a symlink to the newer
18541 2008-11-10 Bruno Haible <bruno@clisp.org>
18543 * tests/test-select-fd.c (main): Accept the result file name as fourth
18545 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18546 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18548 2008-11-10 Bruno Haible <bruno@clisp.org>
18550 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18551 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18552 as autoconf-substituted macros.
18553 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18554 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18555 gl_NETDB_H_DEFAULTS. Set these variables.
18556 * modules/netdb (Makefile.am): Substitute these variables.
18558 2008-11-10 Eric Blake <ebb9@byu.net>
18560 standards.texi: include correct file for FDL 1.3
18561 * doc/standards.texi (GNU Free Documentation License): Change
18562 include file to pull in FDL 1.3, not 1.2.
18564 fdl.texi: revert accidental change to license
18565 * doc/fdl.texi: This is FDL 1.2, not 1.3.
18567 2008-11-10 Bruno Haible <bruno@clisp.org>
18569 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18570 cross-compiling guesses also when the native compile gives no result.
18572 2008-11-10 Bruno Haible <bruno@clisp.org>
18574 * lib/spawni.c (__spawni): Force variable into the stack.
18576 2008-11-10 Bruno Haible <bruno@clisp.org>
18578 Add support for Haiku.
18579 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18580 glibc and BeOS, but also on Haiku.
18581 * lib/fpurge.c (fpurge): Likewise.
18582 * lib/freadable.c (freadable): Likewise.
18583 * lib/freadahead.c (freadahead): Likewise.
18584 * lib/freading.c (freading): Likewise.
18585 * lib/freadptr.c (freadptr): Likewise.
18586 * lib/freadseek.c (freadptrinc): Likewise.
18587 * lib/fseeko.c (rpl_fseeko): Likewise.
18588 * lib/fseterr.c (fseterr): Likewise.
18589 * lib/fwritable.c (fwritable): Likewise.
18590 * lib/fwriting.c (fwriting): Likewise.
18591 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18593 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18595 * lib/config.charset: Treat Haiku like BeOS.
18597 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18599 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18600 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18602 2008-11-08 Bruno Haible <bruno@clisp.org>
18604 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18607 2008-11-08 Bruno Haible <bruno@clisp.org>
18609 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18611 2008-11-08 Bruno Haible <bruno@clisp.org>
18613 * tests/test-select-fd.c: New file.
18614 * tests/test-select-in.sh: New file.
18615 * tests/test-select-out.sh: New file.
18616 * tests/test-select-stdin.c: New file.
18617 * modules/select-tests (Files): Add the new files.
18618 (Depends-on): Add gettimeofday.
18619 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18620 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18621 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18623 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
18624 Bruno Haible <bruno@clisp.org>
18626 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18628 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
18630 * build-aux/pmccabe2html: Added support for C++ source files.
18632 2008-11-05 Ben Pfaff <blp@gnu.org>
18634 Fix lib/close.c build on Windows.
18635 * modules/close (Files): Add lib/w32sock.h.
18637 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
18639 Accept Bison's NEWS format.
18640 * build-aux/announce-gen (print_news_deltas): Tweak
18643 2008-11-04 Bruno Haible <bruno@clisp.org>
18645 * modules/random_r (Maintainer): Add glibc.
18647 2008-11-04 Simon Josefsson <simon@josefsson.org>
18649 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18650 by karl@freefriends.org (Karl Berry).
18651 * doc/alloca.texi: Likewise.
18652 * doc/c-ctype.texi: Likewise.
18653 * doc/c-strcase.texi: Likewise.
18654 * doc/c-strcaseeq.texi: Likewise.
18655 * doc/c-strcasestr.texi: Likewise.
18656 * doc/c-strstr.texi: Likewise.
18657 * doc/c-strtod.texi: Likewise.
18658 * doc/c-strtold.texi: Likewise.
18659 * doc/ctime.texi: Likewise.
18660 * doc/error.texi: Likewise.
18661 * doc/fdl.texi: Likewise.
18662 * doc/gcd.texi: Likewise.
18663 * doc/getdate.texi: Likewise.
18664 * doc/gnulib-intro.texi: Likewise.
18665 * doc/gnulib-tool.texi: Likewise.
18666 * doc/gnulib.texi: Likewise.
18667 * doc/inet_ntoa.texi: Likewise.
18668 * doc/maintain.texi: Likewise.
18669 * doc/make-stds.texi: Likewise.
18670 * doc/quote.texi: Likewise.
18671 * doc/regexprops-generic.texi: Likewise.
18672 * doc/standards.texi: Likewise.
18673 * doc/verify.texi: Likewise.
18674 * doc/visibility.texi: Likewise.
18675 * doc/gnulib.texi (GNU Free Documentation License): Include
18676 fdl-1.3.texi instead of fdl.texi.
18678 2008-11-04 Simon Josefsson <simon@josefsson.org>
18680 * doc/fdl-1.3.texi: New file, from
18681 <http://www.gnu.org/licenses/fdl-1.3.texi>.
18682 * modules/fdl-1.3: Add.
18683 * MODULES.html.sh: Add fdl-1.3.
18685 2008-11-03 Bruno Haible <bruno@clisp.org>
18687 Make determination of absolute name of header file work with AIX xlc.
18688 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18689 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18691 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18692 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18694 2008-11-03 Simon Josefsson <simon@josefsson.org>
18696 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18697 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
18700 2008-11-02 Bruno Haible <bruno@clisp.org>
18702 Mark 'strpbrk' obsolete.
18703 * modules/strpbrk (Status, Notice): New sections.
18704 * modules/strtok_r (Depends-on): Add strpbrk.
18706 2008-11-02 Bruno Haible <bruno@clisp.org>
18708 Mark 'strdup' obsolete.
18709 * modules/strdup (Status, Notice): New sections.
18710 * modules/findprog (Depends-on): Add strdup.
18711 * modules/getaddrinfo (Depends-on): Likewise.
18712 * modules/localename (Depends-on): Likewise.
18713 * modules/relocatable-lib (Depends-on): Likewise.
18714 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18715 * modules/relocatable-prog (Depends-on): Likewise.
18716 * modules/trim (Depends-on): Likewise.
18717 * modules/unictype/gen-ctype (Depends-on): Likewise.
18718 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18720 2008-11-02 Bruno Haible <bruno@clisp.org>
18722 Mark 'strcspn' obsolete.
18723 * modules/strcspn (Status, Notice): New sections.
18725 2008-11-02 Bruno Haible <bruno@clisp.org>
18727 Mark 'rmdir' obsolete.
18728 * modules/rmdir (Status, Notice): New sections.
18729 * modules/clean-temp (Depends-on): Add rmdir.
18730 * modules/openat (Depends-on): Likewise.
18732 2008-11-02 Bruno Haible <bruno@clisp.org>
18734 Mark 'raise' obsolete.
18735 * modules/raise (Status, Notice): New sections.
18736 (Include): Specify <signal.h>.
18737 * modules/stdio (Depends-on): Add raise.
18738 * modules/write (Depends-on): Likewise.
18740 2008-11-02 Bruno Haible <bruno@clisp.org>
18742 Mark 'memset' obsolete.
18743 * modules/memset (Status, Notice): New sections.
18745 2008-11-02 Bruno Haible <bruno@clisp.org>
18747 Mark 'memmove' obsolete.
18748 * modules/memmove (Status, Notice): New sections.
18749 * modules/argp (Depends-on): Add memmove.
18750 * modules/argz (Depends-on): Likewise.
18751 * modules/canonicalize (Depends-on): Likewise.
18752 * modules/canonicalize-lgpl (Depends-on): Likewise.
18753 * modules/fts (Depends-on): Likewise.
18754 * modules/getcwd (Depends-on): Likewise.
18755 * modules/human (Depends-on): Likewise.
18756 * modules/regex (Depends-on): Likewise.
18757 * modules/striconveh (Depends-on): Likewise.
18758 * modules/trim (Depends-on): Likewise.
18759 * modules/unistr/u8-move (Depends-on): Likewise.
18760 * modules/unistr/u16-move (Depends-on): Likewise.
18761 * modules/unistr/u32-move (Depends-on): Likewise.
18763 2008-11-02 Bruno Haible <bruno@clisp.org>
18765 Mark 'memcpy' obsolete.
18766 * modules/memcpy (Status, Notice): New sections.
18768 2008-11-02 Bruno Haible <bruno@clisp.org>
18770 Mark 'memcmp' obsolete.
18771 * modules/memcmp (Status, Notice): New sections.
18772 * modules/argmatch (Depends-on): Add memchr.
18773 * modules/backupfile (Depends-on): Likewise.
18774 * modules/c-strcasestr (Depends-on): Likewise.
18775 * modules/crypto/des (Depends-on): Likewise.
18776 * modules/csharpcomp (Depends-on): Likewise.
18777 * modules/fnmatch (Depends-on): Likewise.
18778 * modules/git-merge-changelog (Depends-on): Likewise.
18779 * modules/isnand (Depends-on): Likewise.
18780 * modules/isnand-nolibm (Depends-on): Likewise.
18781 * modules/isnanf (Depends-on): Likewise.
18782 * modules/isnanf-nolibm (Depends-on): Likewise.
18783 * modules/isnanl (Depends-on): Likewise.
18784 * modules/isnanl-nolibm (Depends-on): Likewise.
18785 * modules/mbchar (Depends-on): Likewise.
18786 * modules/memcoll (Depends-on): Likewise.
18787 * modules/quotearg (Depends-on): Likewise.
18788 * modules/regex (Depends-on): Likewise.
18789 * modules/relocatable-prog (Depends-on): Likewise.
18790 * modules/same (Depends-on): Likewise.
18791 * modules/signbit (Depends-on): Likewise.
18792 * modules/strcasestr-simple (Depends-on): Likewise.
18793 * modules/unictype/gen-ctype (Depends-on): Likewise.
18794 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18795 * modules/uniname/uniname (Depends-on): Likewise.
18796 * modules/unistr/u8-cmp (Depends-on): Likewise.
18798 2008-11-02 Bruno Haible <bruno@clisp.org>
18800 Mark 'memchr' obsolete.
18801 * modules/memchr (Status, Notice): New sections.
18802 * modules/argp (Depends-on): Add memchr.
18803 * modules/base64 (Depends-on): Likewise.
18804 * modules/c-strcasestr (Depends-on): Likewise.
18805 * modules/chdir-long (Depends-on): Likewise.
18806 * modules/fnmatch (Depends-on): Likewise.
18807 * modules/getsubopt (Depends-on): Likewise.
18808 * modules/git-merge-changelog (Depends-on): Likewise.
18809 * modules/glob (Depends-on): Likewise.
18810 * modules/strcasestr-simple (Depends-on): Likewise.
18811 * modules/strnlen (Depends-on): Likewise.
18813 2008-11-02 Bruno Haible <bruno@clisp.org>
18815 Mark 'atexit' obsolete.
18816 * modules/atexit (Status, Notice): New sections.
18817 * modules/chdir-long (Depends-on): Add atexit.
18818 * modules/wait-process (Depends-on): Likewise.
18820 2008-11-02 Bruno Haible <bruno@clisp.org>
18822 * gnulib-tool: New option --with-obsolete.
18823 (func_usage): Document it.
18824 (func_modules_transitive_closure): Drop obsolete dependencies if
18825 incobsolete is not true.
18826 (func_import): Read and save the incobsolete variable to the cache.
18828 2008-11-02 Bruno Haible <bruno@clisp.org>
18830 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18831 * gnulib-tool: New option --extract-status.
18832 (func_usage): Document it.
18833 (sed_extract_prog): Recognize it.
18834 (func_get_status): New function.
18836 2008-10-30 Simon Josefsson <simon@josefsson.org>
18838 * modules/sockets (License): Change from LGPL to LGPLv2+.
18840 2008-10-28 Simon Josefsson <simon@josefsson.org>
18842 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18844 2008-10-28 Simon Josefsson <simon@josefsson.org>
18846 * MODULES.html.sh (Support for systems lacking POSIX:2001):
18847 Mention times and sys_times.
18848 * modules/sys_times, modules/sys_times-tests: New modules.
18849 * modules/times, modules/times-tests: Likewise
18850 * m4/sys_times_h.m4: New file.
18851 * lib/sys_times.in.h: Likewise
18852 * lib/times.c: Likewise.
18853 * tests/test-sys_times.c: Likewise.
18854 * tests/test-times.c: Likewise.
18855 * doc/posix-headers/sys_times.texi: Update.
18856 * doc/posix-functions/times.texi: Update.
18858 2008-10-28 Jim Meyering <meyering@redhat.com>
18860 * modules/tempname (Depends-on): Add lstat.
18862 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18864 2008-10-28 Simon Josefsson <simon@josefsson.org>
18866 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18867 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18868 using idiom used elsewhere in gnulib.
18870 2008-10-27 Jim Meyering <meyering@redhat.com>
18872 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18874 2008-10-27 Simon Josefsson <simon@josefsson.org>
18876 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18877 TESTS_ENVIRONMENT, for shell scripts that needs to call built
18879 * tests/test-argp-2.sh: Use $EXEEXT when needed.
18881 2008-10-27 Simon Josefsson <simon@josefsson.org>
18883 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18885 2008-10-27 Bruno Haible <bruno@clisp.org>
18887 * tests/test-lstat.c: Include <stdio.h>.
18889 2008-10-27 Simon Josefsson <simon@josefsson.org>
18891 * modules/lstat-tests: New module.
18892 * tests/test-lstat.c: New file.
18894 2008-10-26 Jim Meyering <meyering@redhat.com>
18896 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18898 2008-10-26 Simon Josefsson <simon@josefsson.org>
18899 Bruno Haible <bruno@clisp.org>
18901 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18902 * modules/configmake (Include): Add a note that the include must come
18903 after all system headers.
18904 * lib/javaversion.c: Include configmake.h after all other includes.
18906 2008-10-26 Bruno Haible <bruno@clisp.org>
18908 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18909 HAVE_STRUCT_RANDOM_DATA to 1.
18910 (gl_STDLIB_H): Simplify.
18912 2008-10-26 Simon Josefsson <simon@josefsson.org>
18914 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
18915 substitute HAVE_STRUCT_RANDOM_DATA.
18916 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18918 * modules/stdlib (Makefile.am): Substitute
18919 HAVE_STRUCT_RANDOM_DATA.
18921 2008-10-26 Simon Josefsson <simon@josefsson.org>
18923 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18924 * doc/gnulib-intro.texi (Copyright): Likewise.
18926 2008-10-26 Simon Josefsson <simon@josefsson.org>
18928 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18931 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
18932 Bruno Haible <bruno@clisp.org>
18934 * lib/unistd.in.h: Include <winsock2.h>.
18935 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18936 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18937 Provide dummy declarations.
18938 (gethostname): Override.
18939 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18940 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18941 gl_PREREQ_SYS_H_WINSOCK2.
18942 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18943 * doc/posix-functions/gethostname.texi: More details.
18945 2008-10-25 Bruno Haible <bruno@clisp.org>
18947 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18948 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18949 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18951 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18953 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18954 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18955 gl_UNISTD_H_DEFAULTS.
18957 2008-10-25 Eric Blake <ebb9@byu.net>
18959 signbit: avoid spurious compiler failure
18960 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18961 declarations inside function.
18963 2008-10-24 Simon Josefsson <simon@josefsson.org>
18964 Bruno Haible <bruno@clisp.org>
18966 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18967 * modules/random_r (Depends-on): Add stdint.
18969 2008-10-24 Bruno Haible <bruno@clisp.org>
18971 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18973 * modules/strerror (License): Likewise.
18975 2008-10-24 Jim Meyering <meyering@redhat.com>
18977 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18978 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18980 2008-10-24 Eric Blake <ebb9@byu.net>
18982 getgroups: fix compilation when getgroups is available
18983 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18984 but with <config.h> override of getgroups disabled.
18986 2008-10-24 Simon Josefsson <simon@josefsson.org>
18988 * doc/gnulib.texi (Header files): Add note about C++ problems.
18989 Explained by Bruno Haible <bruno@clisp.org>.
18991 2008-10-23 Bruno Haible <bruno@clisp.org>
18993 Define a dummy SA_NODEFER macro on Interix.
18994 * lib/signal.in.h (SA_NODEFER): Define fallback.
18995 Reported by Aleksey Cheusov <cheusov@tut.by> via
18996 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18998 2008-10-23 Bruno Haible <bruno@clisp.org>
19000 * modules/freadahead (License): Change to LGPLv2+.
19001 Suggested by Simon Josefsson.
19003 2008-10-23 Jim Meyering <meyering@redhat.com>
19005 random_r: new module
19006 * modules/random_r: New file.
19007 * m4/random_r.m4: New file.
19008 * lib/random_r.c: New file, from glibc.
19009 * modules/random_r-tests: New file.
19010 * tests/test-random_r.c: New file.
19011 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19013 (RAND_MAX): Define.
19014 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19015 * modules/stdlib: Substitute them, too.
19016 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19017 * doc/glibc-functions/initstate_r.texi: Mention the new module.
19018 * doc/glibc-functions/random_r.texi: Likewise.
19019 * doc/glibc-functions/setstate_r.texi: Likewise.
19020 * doc/glibc-functions/srandom_r.texi: Likewise.
19021 * config/srclist.txt: Mention it.
19023 2008-10-23 David Lutterkort <lutter@redhat.com>
19025 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19028 2008-10-23 Jim Meyering <meyering@redhat.com>
19030 selinux-h: mark parameters of stub functions as intentionally unused
19031 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19032 * lib/se-context.in.h: Likewise.
19034 2008-10-22 Simon Josefsson <simon@josefsson.org>
19036 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19038 2008-10-22 Simon Josefsson <simon@josefsson.org>
19040 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19042 2008-10-22 Eric Blake <ebb9@byu.net>
19044 glthread/thread: avoid compiler warning
19045 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19046 Add unreachable abort to silence compiler.
19048 2008-10-22 Eric Blake <ebb9@byu.net>
19050 netdb: also supply struct addrinfo for cygwin 1.5.x
19051 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19053 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19055 * doc/posix-headers/netdb.texi (netdb.h): Document this.
19057 2008-10-22 Bruno Haible <bruno@clisp.org>
19059 * users.txt: Update entry about pspp.
19061 2008-10-21 Bruno Haible <bruno@clisp.org>
19064 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19065 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19068 * lib/ioctl.c (ioctl): Don't undefine.
19069 * lib/socket.c (socket): Don't undefine.
19071 Remove unused module indicator macros.
19072 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19073 GNULIB_$1 as a C macro.
19075 * doc/posix-functions/close.texi: Undo last change.
19076 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19079 2008-10-21 Bruno Haible <bruno@clisp.org>
19081 Add gethostname() declaration to <unistd.h>.
19082 * lib/unistd.in.h (gethostname): New declaration.
19083 * lib/gethostname.c: Include <unistd.h>.
19084 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19085 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19086 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19087 and HAVE_GETHOSTNAME.
19088 * modules/gethostname (Depends-on): Add unistd.
19089 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19090 (Include): Specify <unistd.h>.
19091 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19093 * tests/test-gethostname.c: Include <unistd.h> first.
19095 2008-10-21 Bruno Haible <bruno@clisp.org>
19097 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19098 * modules/select-tests (Depends-on): Likewise.
19099 Reported by Simon Josefsson.
19101 2008-10-21 Simon Josefsson <simon@josefsson.org>
19103 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19104 * lib/accept.c: New file, based on winsock.c.
19105 * lib/bind.c: New file, based on winsock.c.
19106 * lib/connect.c: New file, based on winsock.c.
19107 * lib/getpeername.c: New file, based on winsock.c.
19108 * lib/getsockname.c: New file, based on winsock.c.
19109 * lib/getsockopt.c: New file, based on winsock.c.
19110 * lib/ioctl.c: New file, based on winsock.c.
19111 * lib/listen.c: New file, based on winsock.c.
19112 * lib/recv.c: New file, based on winsock.c.
19113 * lib/recvfrom.c: New file, based on winsock.c.
19114 * lib/send.c: New file, based on winsock.c.
19115 * lib/sendto.c: New file, based on winsock.c.
19116 * lib/setsockopt.c: New file, based on winsock.c.
19117 * lib/shutdown.c: New file, based on winsock.c.
19118 * lib/socket.c: New file, based on winsock.c.
19119 * lib/w32sock.h: New file, based on winsock.c.
19120 * lib/winsock.c: Remove file.
19121 * modules/accept: Likewise.
19122 * modules/bind: Likewise.
19123 * modules/connect: Likewise.
19124 * modules/getpeername: Likewise.
19125 * modules/getsockname: Likewise.
19126 * modules/getsockopt: Likewise.
19127 * modules/ioctl: Likewise.
19128 * modules/listen: Likewise.
19129 * modules/recv: Likewise.
19130 * modules/recvfrom: Likewise.
19131 * modules/send: Likewise.
19132 * modules/sendto: Likewise.
19133 * modules/setsockopt: Likewise.
19134 * modules/shutdown: Likewise.
19135 * modules/socket: Use socket.c instead of winsock.c.
19136 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19137 * doc/posix-functions/accept.texi: Doc fix.
19138 * doc/posix-functions/bind.texi: Doc fix.
19139 * doc/posix-functions/close.texi: Doc fix.
19140 * doc/posix-functions/connect.texi: Doc fix.
19141 * doc/posix-functions/getpeername.texi: Doc fix.
19142 * doc/posix-functions/getsockname.texi: Doc fix.
19143 * doc/posix-functions/getsockopt.texi: Doc fix.
19144 * doc/posix-functions/ioctl.texi: Doc fix.
19145 * doc/posix-functions/listen.texi: Doc fix.
19146 * doc/posix-functions/recv.texi: Doc fix.
19147 * doc/posix-functions/recvfrom.texi: Doc fix.
19148 * doc/posix-functions/send.texi: Doc fix.
19149 * doc/posix-functions/sendto.texi: Doc fix.
19150 * doc/posix-functions/setsockopt.texi: Doc fix.
19151 * doc/posix-functions/shutdown.texi: Doc fix.
19152 * doc/posix-functions/socket.texi: Doc fix.
19154 2008-10-20 Bruno Haible <bruno@clisp.org>
19156 Take into account the role of SIGABRT_COMPAT on Windows 2008.
19157 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19158 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19159 as an alias for SIGABRT.
19160 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19161 (sigaction): Map it to SIGABRT.
19162 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19164 2008-10-20 Bruno Haible <bruno@clisp.org>
19166 * lib/fts.c: Don't include lstat.h.
19167 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19169 Move the lstat() declaration to <sys/stat.h>.
19170 * lib/lstat.h: Remove file.
19171 * lib/sys_stat.in.h: Add special invocation convention.
19172 (lstat): New declaration.
19173 * lib/lstat.c (orig_lstat): New function.
19174 (rpl_lstat): Use orig_lstat instead of lstat.
19175 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19176 AC_C_INLINE. Set REPLACE_LSTAT.
19177 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19179 * modules/lstat (Files): Remove lib/lstat.h.
19180 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19181 (Include): Specify <sys/stat.h> instead of lstat.h.
19182 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19184 * NEWS: Mention the change.
19186 2008-10-20 Bruno Haible <bruno@clisp.org>
19188 * modules/posix_spawn-tests: New file.
19189 * tests/test-posix_spawn3.c: New file.
19191 2008-10-20 Bruno Haible <bruno@clisp.org>
19193 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19194 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19195 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19196 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19197 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19199 2008-10-20 Bruno Haible <bruno@clisp.org>
19201 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19202 of posix_spawn on AIX 5.3.
19204 2008-10-20 Bruno Haible <bruno@clisp.org>
19206 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19208 2008-10-20 Bruno Haible <bruno@clisp.org>
19210 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19211 of AC_LANG_PROGRAM.
19213 2008-10-20 Simon Josefsson <simon@josefsson.org>
19215 * lib/netdb.in.h: Don't define GNU specific constants until they
19216 are supported or needed. Reported by Bruno Haible
19219 2008-10-20 Simon Josefsson <simon@josefsson.org>
19221 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19223 2008-10-20 Simon Josefsson <simon@josefsson.org>
19225 * lib/getaddrinfo.h: Remove file.
19226 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19227 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
19228 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19229 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19230 * modules/netdb: Substitute GNULIB_GETADDRINFO.
19231 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19232 * tests/test-getaddrinfo.c: Likewise.
19233 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
19234 * NEWS: Mention change.
19236 2008-10-19 Bruno Haible <bruno@clisp.org>
19238 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19240 2008-10-19 Bruno Haible <bruno@clisp.org>
19242 * lib/wait-process.c: Include simply <sys/wait.h>.
19243 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19244 WIFSTOPPED): Remove fallback definitions.
19245 * modules/wait-process (Depends-on): Add sys_wait.
19247 New module 'sys_wait'.
19248 * modules/sys_wait: New file.
19249 * lib/sys_wait.in.h: New file, partially copied from
19250 lib/wait-process.c.
19251 * m4/sys_wait_h.m4: New file.
19252 * doc/posix-headers/sys_wait.texi: Mention the new module.
19254 2008-10-19 Bruno Haible <bruno@clisp.org>
19256 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19258 2008-10-19 Bruno Haible <bruno@clisp.org>
19260 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19261 * lib/wait-process.c (WAIT_T): Remove type.
19262 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19263 (wait_subprocess): Update.
19265 2008-10-19 Bruno Haible <bruno@clisp.org>
19267 New module 'atoll'.
19268 * modules/atoll: New file.
19269 * lib/stdlib.in.h (atoll): New declaration.
19270 * lib/atoll.c: New file, from glibc with modifications.
19271 * m4/atoll.m4: New file.
19272 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19274 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19275 * doc/posix-functions/atoll.texi: Mention the new module.
19277 2008-10-19 Bruno Haible <bruno@clisp.org>
19279 Add strtoull() declaration to <stdlib.h>.
19280 * lib/stdlib.in.h (strtoull): New declaration.
19281 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19283 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19285 * modules/strtoull (Depends-on): Add stdlib.
19286 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19287 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19290 2008-10-19 Bruno Haible <bruno@clisp.org>
19292 Add strtoll() declaration to <stdlib.h>.
19293 * lib/stdlib.in.h (strtoll): New declaration.
19294 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19296 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19298 * modules/strtoll (Depends-on): Add stdlib.
19299 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19300 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19302 2008-10-19 Bruno Haible <bruno@clisp.org>
19304 * modules/bcopy (Depends-on): Add strings.
19305 (Include): Specify <strings.h>.
19307 2008-10-19 Bruno Haible <bruno@clisp.org>
19309 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19311 2008-10-19 Bruno Haible <bruno@clisp.org>
19313 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19314 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19317 2008-10-19 Bruno Haible <bruno@clisp.org>
19319 * lib/atanl.c: Don't include isnanl.h.
19320 * lib/cosl.c: Likewise.
19321 * lib/ldexpl.c: Likewise.
19322 * lib/logl.c: Likewise.
19323 * lib/sinl.c: Likewise.
19324 * lib/sqrtl.c: Likewise.
19325 * lib/tanl.c: Likewise.
19327 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19328 * lib/isnanf.h: Remove file.
19329 * lib/isnand.h: Remove file.
19330 * lib/isnanl.h: Remove file.
19331 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19332 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19334 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19335 HAVE_ISNANF, don't define it as a C macro.
19336 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19337 HAVE_ISNAND, don't define it as a C macro.
19338 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19339 HAVE_ISNANL, don't define it as a C macro.
19340 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19342 * modules/isnanf (Files): Remove lib/isnanf.h.
19343 (Depends-on): Add math.
19344 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19345 (Include): Specify <math.h> instead of isnanf.h.
19346 * modules/isnand (Files): Remove lib/isnand.h.
19347 (Depends-on): Add math.
19348 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19349 (Include): Specify <math.h> instead of isnand.h.
19350 * modules/isnanl (Files): Remove lib/isnanl.h.
19351 (Depends-on): Add math.
19352 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19353 (Include): Specify <math.h> instead of isnanl.h.
19354 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19356 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19357 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19358 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19359 * NEWS: Mention the change.
19361 2008-10-18 Bruno Haible <bruno@clisp.org>
19363 Add getusershell(), setusershell(), endusershell() declarations to
19365 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19367 * lib/getusershell.c: Include unistd.h.
19368 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19369 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19371 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19372 and HAVE_GETUSERSHELL.
19373 * modules/getusershell (Depends-on): Add unistd, extensions.
19374 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19375 (Include): Specify <unistd.h>.
19376 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19379 2008-10-18 Bruno Haible <bruno@clisp.org>
19381 Add a getloadavg() declaration to <stdlib.h>.
19382 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19383 getloadavg declaration.
19384 (getloadavg): New declaration.
19385 * lib/getloadavg.c: Include <stdlib.h> first.
19386 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19387 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19388 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19389 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19390 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19391 * modules/getloadavg (Depends-on): Add stdlib, extensions.
19392 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19393 (Include): Specify <stdlib.h>.
19394 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19395 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19397 2008-10-18 Bruno Haible <bruno@clisp.org>
19399 * lib/dirchownmod.c: Don't include lchmod.h.
19401 Move the lchmod() declaration to <sys/stat.h>.
19402 * lib/lchmod.h: Remove file.
19403 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19404 (lchmod): New declaration, moved here from lib/lchown.h.
19405 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19406 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19407 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19409 * modules/lchmod (Files): Remove lib/lchmod.h.
19410 (Depends-on): Add sys_stat, extensions.
19411 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19412 (Include): Specify <sys/stat.h> instead of lchmod.h.
19413 * modules/sys_stat (Depends-on): Add link-warning.
19414 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19415 definition of GL_LINK_WARNING.
19416 * NEWS: Mention the change.
19418 2008-10-18 Bruno Haible <bruno@clisp.org>
19420 * lib/fchdir.c: Don't include dirfd.h.
19421 * lib/fts.c: Likewise.
19422 * lib/getcwd.c: Likewise.
19423 * lib/glob.c: Likewise.
19425 Move the dirfd() declaration to <dirent.h>.
19426 * lib/dirfd.h: Remove file.
19427 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19428 (dirfd): New declaration.
19429 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19430 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19431 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19433 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19435 * modules/dirfd (Files): Remove lib/dirfd.h.
19436 (Depends-on): Add dirent, extensions.
19437 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19438 (Include): Specify <dirent.h> instead of dirfd.h.
19439 * modules/dirent (Depends-on): Add link-warning.
19440 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19441 definition of GL_LINK_WARNING.
19442 * NEWS: Mention the change.
19444 2008-10-18 Bruno Haible <bruno@clisp.org>
19446 Move the euidaccess() declaration to <unistd.h>.
19447 * lib/euidaccess.h: Remove file.
19448 * lib/unistd.in.h (euidaccess): New declaration.
19449 * lib/euidaccess.c: Don't include euidaccess.h.
19450 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19451 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19452 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19453 and HAVE_EUIDACCESS.
19454 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19455 (Depends-on): Add unistd.
19456 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19457 (Include): Specify <unistd.h> instead of euidaccess.h.
19458 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19460 * NEWS: Mention the change.
19462 2008-10-18 Bruno Haible <bruno@clisp.org>
19464 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19466 Move the getdomainname() declaration to <unistd.h>.
19467 * lib/getdomainname.h: Remove file.
19468 * lib/unistd.in.h (getdomainname): New declaration.
19469 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19470 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19471 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19472 HAVE_GETDOMAINNAME.
19473 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19474 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19475 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19476 (Depends-on): Add unistd, extensions.
19477 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19478 (Includes): Specify <unistd.h> instead of getdomainname.h.
19479 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19480 HAVE_GETDOMAINNAME.
19481 * NEWS: Mention the change.
19483 2008-10-18 Bruno Haible <bruno@clisp.org>
19485 * modules/dirent: New file.
19486 * m4/dirent_h.m4: New file.
19487 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19488 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19489 * modules/fchdir (Files): Remove lib/dirent.in.h.
19490 (Depends-on): Add dirent.
19491 (Makefile.am): Move rules to modules/dirent.
19492 * doc/posix-headers/dirent.texi: Mention the new module.
19494 2008-10-18 Bruno Haible <bruno@clisp.org>
19496 Avoid -Wunused-parameter warnings in public gnulib header files.
19497 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19499 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19501 2008-10-18 Bruno Haible <bruno@clisp.org>
19503 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19504 * doc/glibc-functions/error.texi: Mention the module 'error'.
19505 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19506 * doc/glibc-functions/getdomainname.texi: Mention the module
19508 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19509 * doc/glibc-functions/getpagesize.texi: Mention the module
19511 * doc/glibc-functions/getusershell.texi: Mention the module
19513 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19514 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19515 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19516 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19517 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19518 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19519 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19520 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19521 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19522 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19523 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19524 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19525 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19526 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19528 2008-10-17 Bruno Haible <bruno@clisp.org>
19530 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19531 HP-UX and IRIX, use -0.0L.
19532 * tests/test-ceill.c (minus_zero): Likewise.
19533 * tests/test-floorl.c (minus_zero): Likewise.
19534 * tests/test-frexpl.c (minus_zero): Likewise.
19535 * tests/test-isnan.c (minus_zerol): Likewise.
19536 * tests/test-isnanl.h (minus_zero): Likewise.
19537 * tests/test-ldexpl.c (minus_zero): Likewise.
19538 * tests/test-roundl.c (minus_zero): Likewise.
19539 * tests/test-signbit.c (minus_zerol): Likewise.
19540 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19541 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19542 * tests/test-truncl.c (minus_zero): Likewise.
19543 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19544 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19545 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19546 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19548 2008-10-17 Bruno Haible <bruno@clisp.org>
19550 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19551 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19552 that it gets activated only for gcc >= 3.0.
19553 * lib/dirent.in.h: Likewise.
19554 * lib/errno.in.h: Likewise.
19555 * lib/fcntl.in.h: Likewise.
19556 * lib/float.in.h: Likewise.
19557 * lib/iconv.in.h: Likewise.
19558 * lib/inttypes.in.h: Likewise.
19559 * lib/locale.in.h: Likewise.
19560 * lib/math.in.h: Likewise.
19561 * lib/netdb.in.h: Likewise.
19562 * lib/netinet_in.in.h: Likewise.
19563 * lib/search.in.h: Likewise.
19564 * lib/signal.in.h: Likewise.
19565 * lib/spawn.in.h: Likewise.
19566 * lib/stdarg.in.h: Likewise.
19567 * lib/stdint.in.h: Likewise.
19568 * lib/stdio.in.h: Likewise.
19569 * lib/stdlib.in.h: Likewise.
19570 * lib/string.in.h: Likewise.
19571 * lib/strings.in.h: Likewise.
19572 * lib/sys_file.in.h: Likewise.
19573 * lib/sys_ioctl.in.h: Likewise.
19574 * lib/sys_select.in.h: Likewise.
19575 * lib/sys_socket.in.h: Likewise.
19576 * lib/sys_stat.in.h: Likewise.
19577 * lib/sys_time.in.h: Likewise.
19578 * lib/sysexits.in.h: Likewise.
19579 * lib/time.in.h: Likewise.
19580 * lib/unistd.in.h: Likewise.
19581 * lib/wchar.in.h: Likewise.
19582 * lib/wctype.in.h: Likewise.
19583 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19585 2008-10-17 Jim Meyering <meyering@redhat.com>
19587 ignore-value: don't depend on inline module
19588 * modules/ignore-value (Depends-on): Remove 'inline'.
19589 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19590 Suggestion from Bruno Haible.
19592 2008-10-17 Bruno Haible <bruno@clisp.org>
19594 New implementation of condition variables for Win32.
19595 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19596 (gl_linked_waitqueue_t): New type.
19597 (gl_cond_t): Use it.
19598 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19599 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19600 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19601 (glthread_cond_init_func, glthread_cond_wait_func,
19602 glthread_cond_timedwait_func, glthread_cond_signal_func,
19603 glthread_cond_broadcast_func, glthread_cond_destroy_func):
19604 Reimplemented on the basis of gl_linked_waitqueue_t.
19605 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19607 (gl_rwlock_t): Update.
19608 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19610 2008-10-17 Simon Josefsson <simon@josefsson.org>
19612 * modules/recvfrom (Depends-on): Add dependency on getpeername.
19613 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19615 2008-10-17 Jim Meyering <meyering@redhat.com>
19617 ignore-value: new module
19618 * modules/ignore-value: New file.
19619 * lib/ignore-value.h: New file.
19620 * MODULES.html.sh (Compiler warning management): New section,
19621 just for this module. More to come.
19623 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
19625 open-safer.c: avoid 'signed and unsigned in conditional...' warning
19626 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19627 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
19629 2008-10-16 Jim Meyering <meyering@redhat.com>
19631 openat-die.c: avoid 'no previous prototype' warning
19632 * lib/openat-die.c: Include "openat.h".
19633 Reported by Reuben Thomas <rrt@sc3d.org>.
19635 2008-10-16 Simon Josefsson <simon@josefsson.org>
19637 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19638 * lib/netdb.in.h: Fix typo.
19639 Reported by Bruno Haible <bruno@clisp.org>
19641 * lib/netdb.in.h: Include sys/socket.h for platforms without
19642 netdb.h, to get structures like hostent on MinGW.
19643 * modules/netdb (Depends-on): Add sys_socket.
19645 2008-10-15 Simon Josefsson <simon@josefsson.org>
19647 * modules/netdb, modules/netdb-tests: New file.
19648 * m4/netdb_h.m4: New file.
19649 * lib/netdb.in.h: Add, currently just an empty file pending
19651 * tests/test-netdb.c: New file.
19652 * doc/posix-headers/netdb.texi: Mention that we replace it if
19654 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19657 2008-10-15 Simon Josefsson <simon@josefsson.org>
19659 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19662 2008-10-13 Bruno Haible <bruno@clisp.org>
19664 * lib/glthread/cond.c (glthread_cond_wait_func,
19665 glthread_cond_timedwait_func): Add a comment.
19667 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
19669 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19670 * tests/test-select.c: Likewise,
19672 2008-10-13 Bruno Haible <bruno@clisp.org>
19674 * lib/glthread/cond.c (glthread_cond_wait_func,
19675 glthread_cond_timedwait_func): Fix variable name.
19676 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19678 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
19680 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19681 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19682 struct sockaddr.sa_len.
19683 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19685 2008-10-13 Simon Josefsson <simon@josefsson.org>
19687 * build-aux/pmccabe2html: Add css and css_url parameters.
19689 2008-10-12 Bruno Haible <bruno@clisp.org>
19691 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19693 Reported by Rainer Tammer <tammer@tammer.net>.
19695 2008-10-12 Bruno Haible <bruno@clisp.org>
19697 Use msvcrt aware primitives for creation/termination of Win32 threads.
19698 * lib/glthread/thread.c: Include <process.h>.
19699 (glthread_create_func): Use _beginthreadex instead of CreateThread.
19700 (wrapper_func): Update signature.
19701 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19703 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19704 Bruno Haible <bruno@clisp.org>
19706 Provide a Win32 implementation of the 'cond' module.
19707 * lib/glthread/cond.h [USE_WIN32]: New implementation.
19708 * lib/glthread/cond.c (glthread_cond_init_func,
19709 glthread_cond_wait_func, glthread_cond_timedwait_func,
19710 glthread_cond_signal_func, glthread_cond_broadcast_func,
19711 glthread_cond_destroy_func) [USE_WIN32]: New functions.
19712 * modules/cond (Dependencies): Add gettimeofday.
19714 2008-10-11 Bruno Haible <bruno@clisp.org>
19716 Make sleep work on older versions of mingw.
19717 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19718 only whether it exists.
19719 * doc/posix-functions/sleep.texi: Mention the problem with older
19722 2008-10-11 Bruno Haible <bruno@clisp.org>
19724 New module 'shutdown'.
19725 * modules/shutdown: New file.
19726 * lib/sys_socket.in.h (shutdown): New declaration.
19727 * lib/winsock.c (shutdown): New function.
19728 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19730 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19731 * doc/posix-functions/shutdown.texi: Document the new module.
19733 2008-10-11 Jim Meyering <meyering@redhat.com>
19735 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19737 2008-10-11 Bruno Haible <bruno@clisp.org>
19739 New module 'fclose'.
19740 * modules/fclose: New file.
19741 * lib/stdio.in.h (fclose): New declaration.
19742 * lib/fclose.c: New file.
19743 * m4/fclose.m4: New file.
19744 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19746 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19747 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19749 * modules/close (Depends-on): fclose.
19750 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19752 2008-10-11 Bruno Haible <bruno@clisp.org>
19754 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19755 set errno and don't call _close.
19757 2008-10-10 Bruno Haible <bruno@clisp.org>
19759 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19760 ACL, not afterwards. Fixes test failure on Cygwin.
19762 2008-10-09 Ben Pfaff <blp@gnu.org>
19764 * build-aux/announce-gen: Fix gnulib version related part of usage
19765 message. Die with a useful error message if no tarballs are
19768 2008-10-10 Jim Meyering <meyering@redhat.com>
19770 bootstrap: use git's --depth=N option only if it's supported
19771 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19772 recognize the --depth option. Reported by Pádraig Brady.
19774 2008-10-09 Bruno Haible <bruno@clisp.org>
19776 New module 'ioctl'.
19777 * modules/ioctl: New file.
19778 * lib/sys_socket.in.h (ioctl): Remove declaration.
19779 * lib/winsock.c: Include <sys/ioctl.h>.
19780 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19781 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19782 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19783 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19784 * doc/posix-functions/ioctl.texi: Mention the new module.
19786 2008-10-09 Bruno Haible <bruno@clisp.org>
19788 New module 'sys_ioctl'.
19789 * lib/sys_ioctl.in.h: New file.
19790 * m4/sys_ioctl_h.m4: New file.
19791 * modules/sys_ioctl: New file.
19792 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19794 2008-10-09 Bruno Haible <bruno@clisp.org>
19796 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19797 * lib/winsock.c: Include <stdarg.h>.
19798 (rpl_ioctl): Change to second argument 'int' and then varargs.
19800 2008-10-09 Bruno Haible <bruno@clisp.org>
19802 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19803 when the sys_socket module is present and the system has <winsock2.h>.
19805 2008-10-09 Bruno Haible <bruno@clisp.org>
19807 * doc/posix-functions/close.texi: Mention module 'close' instead of
19808 module 'sys_socket'.
19810 2008-10-09 Bruno Haible <bruno@clisp.org>
19812 * doc/glibc-headers/sys_ioctl.texi: New file.
19813 * doc/gnulib.texi: Include it.
19815 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19816 Bruno Haible <bruno@clisp.org>
19818 Combine the two replacements of 'close'.
19819 * lib/sys_socket.in.h (close): Define to a reminder to include
19821 (_gl_close_fd_maybe_socket): New declaration.
19822 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19823 * lib/winsock.c (close): Remove undefinition.
19824 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19825 needed for the gnulib module 'close'.
19826 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19827 define to an error symbol or to a warning, if suitable.
19828 * lib/close.c: Include <sys/socket.h>.
19829 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19830 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19831 UNISTD_H_HAVE_WINSOCK2_H.
19832 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19833 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19834 UNISTD_H_HAVE_WINSOCK2_H.
19835 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19836 (configure.ac): Set a module indicator.
19837 (Makefile.am): Substitute GNULIB_CLOSE.
19838 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19839 * modules/poll-tests (Depends-on): Add close.
19840 * modules/select-tests (Depends-on): Likewise.
19842 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19843 Bruno Haible <bruno@clisp.org>
19845 New module 'close'.
19846 * modules/close: New file.
19847 * lib/unistd.in.h (close): Move declaration out of the
19848 FCHDIR_REPLACEMENT scope.
19849 (_gl_unregister_fd): New declaration.
19850 * lib/close.c: New file.
19851 * lib/fchdir.c (rpl_close): Remove function.
19852 * m4/close.m4: New file.
19853 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19855 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19857 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19859 * modules/fchdir (Depends-on): Add close.
19861 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19862 Bruno Haible <bruno@clisp.org>
19864 * lib/fcntl.in.h (open): Simplify conditionals.
19865 (_gl_register_fd): New declaration.
19866 * lib/fchdir.c (rpl_open): Remove function.
19867 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19869 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19870 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19873 2008-10-09 Jim Meyering <meyering@redhat.com>
19875 GNUmakefile: use the more name-space-friendly "_version"
19876 * top/GNUmakefile (_dummy): Update.
19877 (_version): Rename from "version".
19879 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19880 Bruno Haible <bruno@clisp.org>
19882 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19884 (_gl_register_fd): New function, extracted from rpl_open.
19885 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19886 (rpl_open, rpl_opendir): Use _gl_register_fd.
19888 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19890 Fix organization of 'open' replacement.
19891 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19892 (gl_FUNC_OPEN): Use it.
19893 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19895 2008-10-08 Bruno Haible <bruno@clisp.org>
19897 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19899 2008-10-08 Simon Josefsson <simon@josefsson.org>
19901 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
19902 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19905 2008-10-08 Eric Blake <ebb9@byu.net>
19907 GNUmakefile: add 'make version' target
19908 * top/GNUmakefile (_curr-ver): Split version update rules...
19909 (version): ...into a target.
19911 2008-10-07 Bruno Haible <bruno@clisp.org>
19913 Use a more portable replacement expression for -0.0L.
19914 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19915 instead of -0.0L. Fix m4 quotation.
19917 * tests/test-signbit.c: Include <float.h>.
19918 (minus_zero): New variable.
19919 (test_signbitl): Use minus_zero instead of -zero.
19920 * modules/signbit-tests (Depends-on): Add float.
19922 * tests/test-ceill.c: Include <float.h>.
19923 (zero): Remove variable.
19924 (minus_zero): New variable.
19925 (main): Use minus_zero instead of -zero.
19926 * modules/ceill-tests (Depends-on): Add float.
19928 * tests/test-floorl.c: Include <float.h>.
19929 (zero): Remove variable.
19930 (minus_zero): New variable.
19931 (main): Use minus_zero instead of -zero.
19932 * modules/floorl-tests (Depends-on): Add float.
19934 * tests/test-roundl.c: Include <float.h>.
19935 (zero): Remove variable.
19936 (minus_zero): New variable.
19937 (main): Use minus_zero instead of -zero.
19938 * modules/roundl-tests (Depends-on): Add float.
19940 * tests/test-truncl.c: Include <float.h>.
19941 (zero): Remove variable.
19942 (minus_zero): New variable.
19943 (main): Use minus_zero instead of -zero.
19944 * modules/truncl-tests (Depends-on): Add float.
19946 * tests/test-frexpl.c (zero): Remove variable.
19947 (minus_zero): New variable.
19948 (main): Use minus_zero instead of -zero.
19949 * modules/frexpl-tests (Depends-on): Add float.
19951 * tests/test-isnan.c (zerol): Remove variable.
19952 (minus_zerol): New variable.
19953 (test_long_double): Use minus_zerol instead of -zerol.
19954 * modules/isnan-tests (Depends-on): Add float.
19956 * tests/test-isnanl.h (zero): Remove variable.
19957 (minus_zero): New variable.
19958 (main): Use minus_zero instead of -zero.
19959 * modules/isnanl-nolibm-tests (Depends-on): Add float.
19960 * modules/isnanl-tests (Depends-on): Add float.
19962 * tests/test-ldexpl.c (zero): Remove variable.
19963 (minus_zero): New variable.
19964 (main): Use minus_zero instead of -zero.
19965 * modules/ldexpl-tests (Depends-on): Add float.
19967 * tests/test-snprintf-posix.h (zerol): Remove variable.
19968 (minus_zerol): New variable.
19969 (test_function): Use minus_zerol instead of -zerol.
19970 * modules/snprintf-posix-tests (Depends-on): Add float.
19971 * modules/vsnprintf-posix-tests (Depends-on): Add float.
19973 * tests/test-sprintf-posix.h (zerol): Remove variable.
19974 (minus_zerol): New variable.
19975 (test_function): Use minus_zerol instead of -zerol.
19976 * modules/sprintf-posix-tests (Depends-on): Add float.
19977 * modules/vsprintf-posix-tests (Depends-on): Add float.
19979 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19980 (minus_zerol): New variable.
19981 (test_function): Use minus_zerol instead of -zerol.
19982 * modules/vasnprintf-posix-tests (Depends-on): Add float.
19984 * tests/test-vasprintf-posix.c (zerol): Remove variable.
19985 (minus_zerol): New variable.
19986 (test_function): Use minus_zerol instead of -zerol.
19987 * modules/vasprintf-posix-tests (Depends-on): Add float.
19989 2008-10-07 Simon Josefsson <simon@josefsson.org>
19991 * MODULES.html.sh (Support for building documentation): Mention
19992 pmccabe2html. Sort entries.
19994 Add pmccabe2html module, from gnupdf.
19995 * build-aux/pmccabe.css: New file.
19996 * build-aux/pmccabe2html: New file.
19997 * m4/pmccabe2html.m4: New file.
19998 * modules/pmccabe2html: New file.
20000 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
20003 * MODULES.html.sh: Add to list of modules.
20004 * lib/flock.c: flock implementation for Windows and Unix systems
20006 * doc/glibc-functions/flock.texi: Update documentation.
20007 * lib/sys_file.in.h: <sys/file.h> header file.
20008 * m4/flock.m4: M4 macros.
20009 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20010 * modules/flock: flock module.
20011 * modules/flock-tests: flock tests module.
20012 * modules/sys_file: sys/file.h module.
20013 * tests/test-flock.c: test suite for flock.
20015 2008-10-06 Jim Meyering <meyering@redhat.com>
20017 bootstrap: check for LT_INIT more portably still ;-)
20018 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20019 Spotted by Bruno Haible.
20021 2008-10-06 Eric Blake <ebb9@byu.net>
20023 test-signbit: avoid tripping Irix cc bug on -0.0L
20024 * tests/test-signbit.c (minus_zerol): Delete, and replace with
20025 '-zerol'. This may break on HP-UX/hppa, but at least makes the
20026 entire testsuite consistent and avoids an Irix 6.2 bug.
20028 2008-10-05 Bruno Haible <bruno@clisp.org>
20029 Jim Meyering <jim@meyering.net>
20031 Add an option for ignoring EPIPE during close_stdout.
20032 * lib/closeout.h: Include <stdbool.h>.
20033 (close_stdout_set_ignore_EPIPE): New declaration.
20034 * lib/closeout.c: Include <stdbool.h>.
20035 (ignore_EPIPE): New variable.
20036 (close_stdout_set_ignore_EPIPE): New function.
20037 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20038 * lib/close-stream.c (close_stream): Mention the possible EPIPE
20040 * modules/closeout (Depends-on): Add stdbool.
20042 2008-10-05 Bruno Haible <bruno@clisp.org>
20044 * modules/accept: New file.
20045 * modules/bind: New file.
20046 * modules/connect: New file.
20047 * modules/getpeername: New file.
20048 * modules/getsockname: New file.
20049 * modules/getsockopt: New file.
20050 * modules/listen: New file.
20051 * modules/recv: New file.
20052 * modules/recvfrom: New file.
20053 * modules/send: New file.
20054 * modules/sendto: New file.
20055 * modules/setsockopt: New file.
20056 * modules/socket: New file.
20057 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20058 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20059 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20060 the particular module is requested. Add a link warning when the
20061 particular module is not requested.
20062 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20063 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20064 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20065 the particular module is requested.
20066 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20067 gl_SYS_SOCKET_H_DEFAULTS): New macros.
20068 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20069 * modules/sys_socket (Depends-on): Add link-warning.
20070 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20071 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20072 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20073 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20075 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20076 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20077 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20078 * doc/posix-functions/getpeername.texi: Mention the new module
20080 * doc/posix-functions/getsockname.texi: Mention the new module
20082 * doc/posix-functions/getsockopt.texi: Mention the new module
20084 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20085 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20086 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20087 * doc/posix-functions/send.texi: Mention the new module 'send'.
20088 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20089 * doc/posix-functions/setsockopt.texi: Mention the new module
20091 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20092 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20093 listen, connect, accept.
20094 * modules/select-tests (Depends-on): Likewise.
20096 2008-10-05 Bruno Haible <bruno@clisp.org>
20098 * lib/winsock.c (strerror): Remove unused #undef.
20099 (rpl_close): Remove unused local variable.
20101 * modules/sys_socket (Depends-on); Add errno.
20103 2008-10-05 Bruno Haible <bruno@clisp.org>
20105 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20106 (select): Add a link warning when the 'select' module is not used.
20107 * modules/sys_select (Depends-on): Add link-warning.
20108 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20109 Suggested by Paolo Bonzini.
20111 2008-10-05 Jim Meyering <meyering@redhat.com>
20113 bootstrap: check for LT_INIT more portably
20114 * build-aux/bootstrap: Avoid using grep -E, since it's not
20115 portable enough. Suggestion from Bruno Haible.
20117 2008-10-05 Bruno Haible <bruno@clisp.org>
20119 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20120 as being fixed by gnulib.
20122 2008-10-05 Bruno Haible <bruno@clisp.org>
20124 * modules/select-tests: New file, mostly copied from
20125 modules/sys_select-tests.
20126 * tests/test-select.c: New file, mostly copied from
20127 tests/test-sys_select.c.
20128 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20129 * modules/sys_select-tests (Depends-on): Remove all dependencies.
20130 (Makefile.am): Remove test_sys_select_LDADD.
20132 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20133 to an undefined symbol, for an error message.
20134 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20135 (gl_SYS_SELECT_H_DEFAULTS): New macro.
20136 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20137 winsock-select.c here.
20138 * modules/sys_select (Files): Remove lib/winsock-select.c.
20139 (Depends-on): Remove alloca.
20140 (Makefile.am): Substitute GNULIB_SELECT.
20141 * modules/select: New file.
20142 * doc/posix-functions/select.texi: Update.
20144 2008-10-05 Bruno Haible <bruno@clisp.org>
20146 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20147 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20148 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20149 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20151 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20152 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20154 2008-10-05 Bruno Haible <bruno@clisp.org>
20156 * modules/getdtablesize-tests: New file.
20157 * tests/test-getdtablesize.c: New file.
20159 New module 'getdtablesize'.
20160 * lib/unistd.in.h (getdtablesize): New declaration.
20161 * lib/getdtablesize.c: New file.
20162 * m4/getdtablesize.m4: New file.
20163 * modules/getdtablesize: New file.
20164 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20165 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20166 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20167 HAVE_GETDTABLESIZE.
20168 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20170 2008-10-05 Bruno Haible <bruno@clisp.org>
20172 * modules/sched (Makefile.am): Fix typo.
20173 Reported by Simon Josefsson.
20175 2008-10-05 Jim Meyering <meyering@redhat.com>
20177 bootstrap: check for LT_INIT, too
20178 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20179 are deprecated. Suggestion from Ralf Wildenhues.
20181 2008-10-05 Bruno Haible <bruno@clisp.org>
20183 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20184 overriding them by ours.
20185 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20187 2008-10-05 Jim Meyering <meyering@redhat.com>
20189 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20190 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20191 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
20193 2008-10-04 Bruno Haible <bruno@clisp.org>
20195 * modules/dup2 (License): Change to LGPLv2+.
20196 * modules/sleep (License): Likewise.
20197 * modules/perror (License): Likewise.
20198 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20200 * modules/signal (License): Likewise.
20201 * modules/sigprocmask (License): Likewise.
20202 * modules/raise (License): Change to LGPLv2+, with approval by Jim
20205 2008-10-04 Bruno Haible <bruno@clisp.org>
20207 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20208 Reported by Rainer Tammer <tammer@tammer.net>.
20210 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
20211 Bruno Haible <bruno@clisp.org>
20213 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20214 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20215 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20217 2008-10-03 Kamil Dudka <kdudka@redhat.com>
20219 filevercmp: new module
20220 * lib/filevercmp.h: New function filevercmp comparing version strings.
20221 * lib/filevercmp.c: Implementation of filevercmp function.
20222 * modules/filevercmp: Module metadata.
20223 * tests/test-filevercmp.c: Unit test for new module.
20224 * modules/filevercmp-tests: Unit test metadata.
20225 * MODULES.html.sh: Add filevercmp module.
20227 2008-10-03 Bruno Haible <bruno@clisp.org>
20229 * lib/c-ctype.h: Add comment.
20230 Reported by Jim Meyering.
20232 2008-10-02 Bruno Haible <bruno@clisp.org>
20234 * modules/posix_spawn-internal (Depends-on): Add 'open'.
20236 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20238 * build-aux/bootstrap: Allow renaming bootstrap, and change the
20239 name of bootstrap.conf accordingly.
20241 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20243 * build-aux/bootstrap: Install git-merge-changelog configuration
20244 items into .gitconfig if needed.
20246 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20248 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20249 git repository, and initialize/update it accordingly.
20251 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
20253 * modules/fsync-tests: New file.
20254 * tests/test-fsync.c: New file.
20256 New module 'fsync'.
20257 * lib/fsync.c: New file.
20258 * m4/fsync.m4: New file.
20259 * modules/fsync: New file.
20260 * lib/unistd.in.h (fsync): New declaration.
20261 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20262 GNULIB_FSYNC and HAVE_FSYNC.
20263 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20264 * MODULES.html.sh (posix_functions): Add fsync.
20265 * doc/posix-functions/fsync.texi: Mention the new module.
20267 2008-10-02 Jim Meyering <meyering@redhat.com>
20269 fts.c: sync with similar code from coreutils' remove.c
20270 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20271 Guard also with "#if defined __linux__", since for now at least,
20272 this code is Linux-kernel-specific.
20274 2008-10-02 Jim Meyering <meyering@redhat.com>
20277 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20278 Include <sys/vfs.h>, not <sys/statfs.h>.
20280 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20281 Include <sys/vfs.h>, not <sys/statfs.h>.
20283 2008-10-01 Bruno Haible <bruno@clisp.org>
20285 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20286 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20287 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20288 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20289 * doc/posix-functions/posix_spawnp.texi: Likewise.
20290 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20291 whether posix_spawn actually works.
20292 * m4/pipe.m4 (gl_PIPE): Likewise.
20293 * modules/execute (Files): Add m4/posix_spawn.m4.
20294 * modules/pipe (Files): Add m4/posix_spawn.m4.
20295 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20297 2008-10-01 Jim Meyering <meyering@redhat.com>
20299 remove trailing spaces
20301 * lib/poll.c (poll): Likewise.
20302 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20303 * lib/winsock.c (rpl_close): Likewise.
20304 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20305 * modules/yield: Likewise.
20306 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20307 * tests/test-sys_select.c (connect_to_socket): Likewise.
20309 fts.c: adjust a new interface to be more generally useful
20310 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20311 (fts_build): Adjust caller.
20313 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20315 * modules/cond-tests: New file.
20316 * tests/test-cond.c: New file.
20318 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20319 Bruno Haible <bruno@clisp.org>
20321 * modules/cond (Dependencies): Add errno, time.
20322 * lib/glthread/cond.h: Include <time.h>.
20323 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20326 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20327 Bruno Haible <bruno@clisp.org>
20329 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20331 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20332 Bruno Haible <bruno@clisp.org>
20334 * modules/tls-tests (Depends-on): Add thread, yield.
20335 (configure.ac): Remove all checks.
20336 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20337 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20338 gl_thread_self): Remove definitions. Include glthread/thread.h and
20339 glthread/yield.h instead.
20340 (test_tls): Pass an additional NULL argument to gl_thread_join.
20342 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20343 Bruno Haible <bruno@clisp.org>
20345 * modules/lock-tests (Depends-on): Add thread, yield.
20346 (configure.ac): Remove all checks.
20347 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20348 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20349 gl_thread_self): Remove definitions. Include glthread/thread.h and
20350 glthread/yield.h instead.
20351 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20352 additional NULL argument to gl_thread_join.
20354 2008-09-30 Bruno Haible <bruno@clisp.org>
20356 Fix the Win32 implementation of the 'thread' module.
20357 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20359 (gl_thread_self): Invoke gl_thread_self_func.
20360 (gl_thread_self_func): New declaration.
20361 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20362 (do_init_self_key, init_self_key): New functions.
20363 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20364 Remove some fields.
20365 (running_threads, running_lock): Remove variables.
20366 (get_current_thread_handle): New function.
20367 (gl_thread_self_func, wrapper_func, glthread_create_func,
20368 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20371 2008-09-30 Bruno Haible <bruno@clisp.org>
20373 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20376 2008-09-30 Jim Meyering <meyering@redhat.com>
20378 fts.m4: correct the test for statfs.f_type
20379 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20380 when checking for statfs.f_type.
20382 2008-09-15 Simon Josefsson <simon@josefsson.org>
20384 tests: avoid some compiler warnings
20385 * tests/test-memchr.c (main): Pass NULL indirectly.
20386 * tests/test-getdate.c (main): Remove unused variable 'ret'.
20388 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
20390 getdate.y: disallow countable dayshifts like "4 yesterday ago"
20391 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20392 exactly specified dayshifts.
20393 (dayshift): New rule.
20394 (rel): Add dayshift.
20395 (relative_time_table) [tomorrow, yesterday, today, now]:
20396 Use tDAY_SHIFT in place of tDAY_UNIT.
20397 * tests/test-getdate.c: Add tests for now-disallowed countable
20398 dayshifts, e.g., "4 yesterday ago".
20400 2008-09-29 Bruno Haible <bruno@clisp.org>
20402 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20403 * tests/test-posix_spawn1.in.sh: Renamed from
20404 tests/test-posix_spawn.in.sh.
20405 * tests/test-posix_spawn2.c: New file.
20406 * tests/test-posix_spawn2.in.sh: New file.
20407 * modules/posix_spawnp-tests (Files): Update.
20408 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20410 2008-09-29 Bruno Haible <bruno@clisp.org>
20412 Propagate effects of putenv/setenv/unsetenv to child processes.
20413 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20414 * lib/pipe.c (create_pipe): Likewise.
20416 2008-09-29 Bruno Haible <bruno@clisp.org>
20418 Enable use of shell scripts as executables in mingw.
20419 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20420 run the program as a shell script.
20421 * lib/pipe.c (create_pipe): Likewise.
20422 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20425 2008-09-29 Eric Blake <ebb9@byu.net>
20427 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20429 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20431 * doc/posix-functions/accept.texi: Update mingw problems.
20432 * doc/posix-functions/bind.texi: Update mingw problems.
20433 * doc/posix-functions/close.texi: Update mingw problems.
20434 * doc/posix-functions/connect.texi: Update mingw problems.
20435 * doc/posix-functions/getpeername.texi: Update mingw problems.
20436 * doc/posix-functions/getsockname.texi: Update mingw problems.
20437 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20438 * doc/posix-functions/ioctl.texi: Update mingw problems.
20439 * doc/posix-functions/listen.texi: Update mingw problems.
20440 * doc/posix-functions/recv.texi: Update mingw problems.
20441 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20442 * doc/posix-functions/select.texi: Update mingw problems.
20443 * doc/posix-functions/send.texi: Update mingw problems.
20444 * doc/posix-functions/sendto.texi: Update mingw problems.
20445 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20446 * doc/posix-functions/socket.texi: Update mingw problems.
20448 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20449 Bruno Haible <bruno@clisp.org>
20451 * lib/sys_select.in.h: Include sys/time.h.
20452 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20453 * modules/sys_select: Depend on sys_time.
20454 * tests/test-sys_select.c: Test that sys/select.h defines struct
20457 2008-09-29 Bruno Haible <bruno@clisp.org>
20459 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20460 * lib/sys_select.in.h: Likewise.
20462 2008-09-29 Bruno Haible <bruno@clisp.org>
20464 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20466 2008-09-29 Bruno Haible <bruno@clisp.org>
20468 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20469 Set LIBSOCKET instead of augmenting LIBS.
20470 * modules/sockets (Link): New section.
20471 * modules/sockets-tests (test_sockets_LDADD): New variable.
20472 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20473 * modules/poll-tests (test_poll_LDADD): New variable.
20474 * NEWS: Document the change.
20476 2008-09-29 Bruno Haible <bruno@clisp.org>
20478 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20479 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20480 ARPA_INET_H directly.
20481 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20483 2008-09-28 Bruno Haible <bruno@clisp.org>
20485 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20486 from gl_HEADER_SYS_SOCKET.
20487 (gl_HEADER_SYS_SOCKET): Invoke it.
20488 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20490 2008-09-28 Bruno Haible <bruno@clisp.org>
20492 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20493 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20494 Needed on OSF/1 4.0.
20496 2008-09-28 Bruno Haible <bruno@clisp.org>
20498 Override open more carefully.
20499 * lib/open.c (orig_open): New function.
20500 (rpl_open): Use orig_open instead of open.
20501 * lib/fcntl.in.h: Add special invocation convention.
20502 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20503 (gl_FUNC_OPEN): Invoke it.
20505 Override freopen more carefully.
20506 * lib/freopen.c (orig_freopen): New function.
20507 (rpl_freopen): Use orig_freopen instead of freopen.
20508 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20509 (gl_FUNC_FREOPEN): Invoke it.
20511 Override fopen more carefully.
20512 * lib/fopen.c (orig_fopen): New function.
20513 (rpl_fopen): Use orig_fopen instead of fopen.
20514 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20515 (gl_FUNC_FOPEN): Invoke it.
20516 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20518 2008-09-28 Bruno Haible <bruno@clisp.org>
20520 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20523 2008-09-28 Bruno Haible <bruno@clisp.org>
20525 * tests/test-sigaction.c (handler, main): Disable the check whether
20526 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20527 glibc systems with LinuxThreads.
20529 2008-09-28 Bruno Haible <bruno@clisp.org>
20531 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20533 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20535 * lib/fcntl.in.h (open): Likewise.
20536 Reported by Rainer Tammer <tammer@tammer.net>.
20538 2008-09-28 Bruno Haible <bruno@clisp.org>
20540 * modules/posix_spawnp-tests: New file.
20541 * tests/test-posix_spawn.c: New file.
20542 * tests/test-posix_spawn.in.sh: New file.
20544 New module 'posix_spawnp'.
20545 * modules/posix_spawnp: New file.
20546 * lib/spawnp.c: New file, from GNU libc with modifications.
20547 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20549 New module 'posix_spawn'.
20550 * modules/posix_spawn: New file.
20551 * lib/spawn.c: New file, from GNU libc with modifications.
20552 * doc/posix-functions/posix_spawn.texi: Mention the new module.
20554 New module 'posix_spawnattr_destroy'.
20555 * modules/posix_spawnattr_destroy: New file.
20556 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20557 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20560 New module 'posix_spawnattr_setsigmask'.
20561 * modules/posix_spawnattr_setsigmask: New file.
20562 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20564 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20567 New module 'posix_spawnattr_getsigmask'.
20568 * modules/posix_spawnattr_getsigmask: New file.
20569 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20571 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20574 New module 'posix_spawnattr_setsigdefault'.
20575 * modules/posix_spawnattr_setsigdefault: New file.
20576 * lib/spawnattr_setdefault.c: New file, from GNU libc with
20578 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20581 New module 'posix_spawnattr_getsigdefault'.
20582 * modules/posix_spawnattr_getsigdefault: New file.
20583 * lib/spawnattr_getdefault.c: New file, from GNU libc with
20585 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20588 New module 'posix_spawnattr_setschedpolicy'.
20589 * modules/posix_spawnattr_setschedpolicy: New file.
20590 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20592 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20595 New module 'posix_spawnattr_getschedpolicy'.
20596 * modules/posix_spawnattr_getschedpolicy: New file.
20597 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20599 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20602 New module 'posix_spawnattr_setschedparam'.
20603 * modules/posix_spawnattr_setschedparam: New file.
20604 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20606 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20609 New module 'posix_spawnattr_getschedparam'.
20610 * modules/posix_spawnattr_getschedparam: New file.
20611 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20613 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20616 New module 'posix_spawnattr_setpgroup'.
20617 * modules/posix_spawnattr_setpgroup: New file.
20618 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20620 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20623 New module 'posix_spawnattr_getpgroup'.
20624 * modules/posix_spawnattr_getpgroup: New file.
20625 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20627 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20630 New module 'posix_spawnattr_setflags'.
20631 * modules/posix_spawnattr_setflags: New file.
20632 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20633 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20636 New module 'posix_spawnattr_getflags'.
20637 * modules/posix_spawnattr_getflags: New file.
20638 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20639 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20642 New module 'posix_spawnattr_init'.
20643 * modules/posix_spawnattr_init: New file.
20644 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20645 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20648 New module 'posix_spawn_file_actions_destroy'.
20649 * modules/posix_spawn_file_actions_destroy: New file.
20650 * lib/spawn_faction_destroy.c: New file, from GNU libc with
20652 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20655 New module 'posix_spawn_file_actions_addopen'.
20656 * modules/posix_spawn_file_actions_addopen: New file.
20657 * lib/spawn_faction_addopen.c: New file, from GNU libc with
20659 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20662 New module 'posix_spawn_file_actions_adddup2'.
20663 * modules/posix_spawn_file_actions_adddup2: New file.
20664 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20666 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20669 New module 'posix_spawn_file_actions_addclose'.
20670 * modules/posix_spawn_file_actions_addclose: New file.
20671 * lib/spawn_faction_addclose.c: New file, from GNU libc with
20673 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20676 New module 'posix_spawn_file_actions_init'.
20677 * modules/posix_spawn_file_actions_init: New file.
20678 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20679 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20682 New module 'posix_spawn-internal'.
20683 * modules/posix_spawn-internal: New file.
20684 * lib/spawn_int.h: New file, from GNU libc with modifications.
20685 * lib/spawni.c: New file, from GNU libc with modifications.
20686 * m4/posix_spawn.m4: New file.
20688 New module 'spawn'.
20689 * modules/spawn: New file.
20690 * lib/spawn.in.h: New file, from GNU libc with modifications.
20691 * m4/spawn_h.m4: New file.
20692 * doc/posix-headers/spawn.texi: Mention the new module.
20694 2008-09-28 Bruno Haible <bruno@clisp.org>
20696 * modules/sched-tests: New file.
20697 * tests/test-sched.c: New file.
20699 New module 'sched'.
20700 * modules/sched: New file.
20701 * lib/sched.in.h: New file.
20702 * m4/sched_h.m4: New file.
20703 * doc/posix-headers/sched.texi: Mention the new module.
20705 2008-09-27 Eric Blake <ebb9@byu.net>
20707 Fix previous patch, and tweak references to $0.
20708 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20709 (func_version, func_gnulib_dir): Don't call this program
20711 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20712 with using $0 in function.
20713 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20714 (func_fatal_error): Reuse the name the user invoked us with.
20716 2008-09-27 Bruno Haible <bruno@clisp.org>
20718 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20719 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20720 (gl_ICONV_H): Not here.
20721 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20722 instead of assigning ICONV_H directly.
20724 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20725 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20728 2008-09-27 Bruno Haible <bruno@clisp.org>
20730 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20731 * modules/arpa_inet (Depends-on): Add link-warning.
20732 (Makefile.am): Insert the definition of GL_LINK-WARNING.
20733 * modules/unistd (Makefile.am): Likewise.
20735 2008-09-26 Bruno Haible <bruno@clisp.org>
20737 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20739 (func_version): Essentially copied from gnulib-tool.
20740 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20741 func_readlink): Copied from gnulib-tool.
20743 2008-09-26 Bruno Haible <bruno@clisp.org>
20745 * gnulib-tool (func_version): Change directory to $gnulib_dir before
20746 invoking git-version-gen.
20748 2008-09-26 Bruno Haible <bruno@clisp.org>
20750 * posix-modules: Update to directory names changed on 2008-01-19.
20751 Remove commas in output before splitting into words. No more need to
20752 avoid 'ftruncate' since 2007-02-19.
20754 2008-09-26 Bruno Haible <bruno@clisp.org>
20756 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20758 2008-09-26 Bruno Haible <bruno@clisp.org>
20760 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20761 * modules/fwriteerror (Depends-on): Add errno.
20763 2008-09-26 Bruno Haible <bruno@clisp.org>
20765 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20766 * tests/test-vc-list-files-cvs.sh: Likewise.
20768 2008-09-26 Bruno Haible <bruno@clisp.org>
20770 * doc/posix-headers/sys_resource.texi: Reorder items.
20772 2008-09-26 Jim Meyering <meyering@redhat.com>
20774 fts: tweak inode comparison function
20775 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20776 inode numbers, as documented.
20778 fts: sort dirent entries on inode number before traversing
20779 This avoids a quadratic, seek-related performance penalty when
20780 operating on a directory containing many entries (measurable at 10k;
20781 3.5 hours at 2 million entries with a cold cache) on certain types
20782 of file systems, including ext3 and ext4, but not tmpfs.
20783 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20784 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20785 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20786 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20787 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20788 (fts_build): Set the stat.st_ino member from D_INO.
20789 If it is likely to be useful, sort dirent entries on inode number.
20791 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20792 and the struct statfs.f_type member.
20793 * modules/fts (Depends-on): Add d-ino.
20795 2008-09-26 Bruno Haible <bruno@clisp.org>
20797 * modules/sigpipe-die (Depends-on): Add sigpipe.
20799 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20800 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20801 and GNULIB_STDIO_H_SIGPIPE are set.
20802 * lib/stdio-write.c: New file.
20803 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20804 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20805 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20806 REPLACE_STDIO_WRITE_FUNCS.
20807 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20808 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20809 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20810 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20811 * modules/stdio (Files): Add lib/stdio-write.c.
20812 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20813 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20814 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20815 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20816 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20817 REPLACE_FPRINTF_POSIX.
20818 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20819 REPLACE_PRINTF_POSIX.
20820 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20821 REPLACE_VFPRINTF_POSIX.
20822 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20823 REPLACE_VPRINTF_POSIX.
20824 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20826 * doc/posix-functions/fputc.texi: Likewise.
20827 * doc/posix-functions/fputs.texi: Likewise.
20828 * doc/posix-functions/fwrite.texi: Likewise.
20829 * doc/posix-functions/printf.texi: Likewise.
20830 * doc/posix-functions/putc.texi: Likewise.
20831 * doc/posix-functions/putchar.texi: Likewise.
20832 * doc/posix-functions/puts.texi: Likewise.
20833 * doc/posix-functions/vfprintf.texi: Likewise.
20834 * doc/posix-functions/vprintf.texi: Likewise.
20836 * modules/safe-write (Depends-on): Add write.
20838 * modules/sigpipe-tests: New file.
20839 * tests/test-sigpipe.c: New file.
20840 * tests/test-sigpipe.sh: New file.
20842 * modules/write: New file.
20843 * lib/unistd.in.h: Include <sys/types.h>.
20844 (write): New declaration.
20845 * lib/write.c: New file.
20846 * m4/write.m4: New file.
20847 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20848 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20849 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20850 GNULIB_WRITE, REPLACE_WRITE.
20851 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20852 and the SIGPIPE issue.
20854 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20855 (raise): New declaration.
20856 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20857 (ext_signal): New function.
20858 (rpl_raise): New function.
20859 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20860 GNULIB_SIGNAL_H_SIGPIPE.
20861 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20862 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20864 * modules/sigpipe: New file.
20865 * m4/sigpipe.m4: New file.
20867 2008-09-25 Derek Price <derek@ximbiot.com>
20868 Bruno Haible <bruno@clisp.org>
20870 * gnulib-tool (func_import): Report all license incompatibilities, not
20871 just the first one.
20873 2008-09-25 Bruno Haible <bruno@clisp.org>
20875 * gnulib-tool (func_import): When computing the edits, consider not
20876 only the Makefile.ams that exist but also those that will be generated.
20878 2008-09-25 Simon Josefsson <simon@josefsson.org>
20880 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20881 fixes gnulib-tool --test warning about duplicate dependency.
20883 2008-09-25 Bruno Haible <bruno@clisp.org>
20885 * gnulib-tool: Don't ask the user to perform edits in the generated
20887 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20888 apply to the Makefile.am being generated.
20889 (func_emit_tests_Makefile_am): Execute edits that apply to the
20890 Makefile.am being generated.
20891 (func_import): Setup list of Makefile.am edits before emitting the
20892 Makefile.ams, not at the end.
20893 (func_create_testdir): Update.
20894 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20896 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20898 * gnulib-tool (func_import): Store the --tests-base option in the
20899 comment in gnulib-cache.m4.
20901 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
20903 * NEWS: Document increased portability that sys_select now provides.
20905 * lib/sys_select.in.h: Install select wrapper.
20906 * lib/sys_socket.in.h: Use more descriptive name when there is no
20908 * lib/winsock-select.c: New.
20909 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20910 Require gl_HEADER_SYS_SOCKET.
20911 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20912 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20913 * tests/test-sys_select.c: Add functional tests.
20915 2008-09-24 Eric Blake <ebb9@byu.net>
20917 open, fopen: close fd leak in last patch
20918 * lib/open.c (rpl_open): Close fd before returning error.
20919 * lib/fopen.c (rpl_fopen): Close fd before returning error.
20920 * doc/posix-functions/open.texi (open): Document that Irix also
20922 * doc/posix-functions/fopen.texi (fopen): Likewise.
20923 Reported by Paolo Bonzini.
20925 2008-09-24 Bruno Haible <bruno@clisp.org>
20927 Ensure that a filename ending in a slash cannot be used to access a
20929 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20930 to check whether it's really a directory.
20931 * lib/fopen.c: Include fcntl.h, unistd.h.
20932 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20934 * modules/fopen (Depends-on): Add unistd.
20935 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20936 * tests/test-fopen.c (main): Likewise.
20937 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20938 * doc/posix-functions/fopen.texi: Likewise.
20939 Reported by Eric Blake.
20941 2008-09-23 Eric Blake <ebb9@byu.net>
20943 c-stack: avoid compiler optimizations when provoking overflow
20944 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20945 recursion harder to optimize, to ensure a stack overflow occurs.
20946 * tests/test-c-stack.c (recurse): Likewise.
20947 Borrowed from libsigsegv.
20949 c-stack: work around Irix sigaltstack bug
20950 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20951 whether sigaltstack uses wrong end of stack_t (copied in part from
20953 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20954 Irix bug, without requiring an over-allocation.
20955 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20958 fopen: document mingw bug on directories
20959 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20960 not allowing a stream visiting a directory, even though reading
20961 from such a stream is not portable.
20963 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20965 * lib/poll.c: Rewrite.
20966 * modules/poll: Depend on alloca.
20968 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20970 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20971 instead define prototypes for a full set of wrappers. Ensure
20972 that Cygwin does not use the compatibility code, which is only
20974 * lib/winsock.c: New.
20975 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20976 * modules/sys_socket: Add lib/winsock.c.
20978 * modules/poll-tests: Add errno and perror.
20979 * tests/test-poll.c: Use ioctl, not ioctlsocket.
20981 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20983 * tests/test-poll.c: Downgrade minimum needed Winsock version.
20985 2008-09-23 Bruno Haible <bruno@clisp.org>
20987 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20988 * doc/glibc-functions/*: Likewise.
20990 2008-09-23 Simon Josefsson <simon@josefsson.org>
20992 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20995 2008-09-22 Eric Blake <ebb9@byu.net>
20996 Bruno Haible <bruno@clisp.org>
20998 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20999 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21000 supply %A but mishandle pseudo-NaN.
21001 Reported by Simon Josefsson.
21003 2008-09-21 Bruno Haible <bruno@clisp.org>
21005 * tests/test-lock.c (main): Tweak skip message.
21006 * tests/test-tls.c (main): Likewise.
21008 2008-09-21 Bruno Haible <bruno@clisp.org>
21010 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21011 whether 'struct sigaction' has sa_sigaction here...
21012 (gl_PREREQ_SIG_HANDLER_H): ... not here.
21013 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21015 2008-09-21 Bruno Haible <bruno@clisp.org>
21017 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21019 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21020 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21022 (Support for obsolete systems lacking POSIX:2001): New section.
21023 (String handling <string.h>): Move strdup to the new section.
21024 Suggested by Simon Josefsson and Paolo Bonzini.
21026 2008-09-21 Bruno Haible <bruno@clisp.org>
21028 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21029 exponents in %e and %g results on 'long double'. Needed for mingw's
21030 improved *printf functions.
21031 * tests/test-vasprintf-posix.c (test_function): Likewise.
21032 * tests/test-snprintf-posix.h (test_function): Likewise.
21033 * tests/test-sprintf-posix.h (test_function): Likewise.
21034 Reported by Eric Blake.
21036 2008-09-21 Bruno Haible <bruno@clisp.org>
21038 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21039 * tests/test-sprintf-posix.h (test_function): Likewise.
21041 2008-09-21 Bruno Haible <bruno@clisp.org>
21043 * modules/getpass (Depends-on): Add strdup-posix.
21045 New module 'strdup-posix'.
21046 * modules/strdup-posix: New file.
21047 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21048 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21049 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21051 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21052 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21053 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21056 * modules/strdup (Depends-on): Remove malloc-posix.
21058 2008-09-20 Bruno Haible <bruno@clisp.org>
21060 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21063 2008-09-20 Bruno Haible <bruno@clisp.org>
21065 Ensure that wint_t gets defined on IRIX 5.3.
21066 * lib/wchar.in.h (wint_t): Define if not defined by the system.
21067 * lib/wctype.in.h (wint_t): Likewise.
21068 (__wctype_wint_t): Remove type.
21069 (isw*): Use wint_t instead of __wctype_wint_t.
21070 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21071 * modules/wchar (Files): Add m4/wint_t.m4.
21072 (Makefile.am): Substitute HAVE_WINT_T.
21073 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21074 * tests/test-wctype.c: Check that wint_t is defined.
21075 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21076 * doc/posix-headers/wctype.texi: Likewise.
21077 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21079 2008-09-18 Bruno Haible <bruno@clisp.org>
21081 * gnulib-tool (func_exit): Update comment.
21083 2008-09-18 Simon Josefsson <simon@josefsson.org>
21085 * modules/getaddrinfo (Depends-on): Remove strdup, this module
21086 assumes strdup exists and does not depend on strdup to return
21087 ENOMEM on out of memory conditions.
21089 2008-09-18 Bruno Haible <bruno@clisp.org>
21091 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21092 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21093 digits for the exponent.
21095 2008-09-18 Jim Meyering <meyering@redhat.com>
21096 Bruno Haible <bruno@clisp.org>
21098 * lib/vasnprintf.c (decimal_point_char): Define also if
21099 NEED_PRINTF_INFINITE_LONG_DOUBLE.
21101 2008-09-16 Bruno Haible <bruno@clisp.org>
21102 and Eric Blake <ebb9@byu.net>
21104 vasnprintf: support Irix 5.3
21105 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21106 that mishandle long double infinity.
21107 Reported by Tom G. Christensen.
21109 2008-09-16 Bruno Haible <bruno@clisp.org>
21111 * doc/glibc-functions/scandir.texi: Mention the function is missing on
21113 * doc/glibc-functions/alphasort.texi: Likewise.
21114 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21116 2008-09-16 Jim Meyering <meyering@redhat.com>
21118 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21119 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21120 a umask modification leak out of a subshell. Otherwise, the
21121 opensolaris /bin/sh would be accepted and thus cause unwarranted
21122 failures in the coreutils test suite.
21124 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
21126 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21129 2008-09-16 Jim Meyering <meyering@redhat.com>
21131 avoid spurious test failure when library is built without ACL support
21132 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21133 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21134 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21135 * tests/test-copy-acl.sh: Likewise.
21137 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21139 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21140 based on character occurrence counts.
21142 2008-09-15 Eric Blake <ebb9@byu.net>
21144 tests: avoid some compiler warnings
21145 * tests/test-memchr.c (main): Pass NULL indirectly.
21146 * tests/test-closein.c (main): Avoid unused variable.
21148 2008-09-15 Bruno Haible <bruno@clisp.org>
21150 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21151 are missing on OpenBSD 4.0 individually.
21152 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21154 2008-09-15 Bruno Haible <bruno@clisp.org>
21156 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21157 * doc/posix-functions/strerror.texi: Mention also Cygwin.
21158 * doc/posix-functions/perror.texi: Likewise.
21159 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21161 Reported by Eric Blake.
21163 * lib/errno.in.h: Use replacement values >= 2000.
21164 Reported by Eric Blake.
21166 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21168 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21169 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21171 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21172 compareseq was aborted.
21174 2008-09-14 Bruno Haible <bruno@clisp.org>
21176 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21178 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21179 (fstrcmp_bounded): Simplify result computation accordingly.
21181 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21183 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21184 (fstrcmp): Define in terms of fstrcmp_bounded.
21185 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21186 lower_bound argument.
21187 Return quickly if the result is certainly < lower_bound.
21188 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21190 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21192 * lib/diffseq.h (EARLY_ABORT): New macro.
21193 (compareseq): Change return type to bool. Return true when EARLY_ABORT
21196 2008-09-14 Bruno Haible <bruno@clisp.org>
21198 * modules/perror-tests: New file.
21199 * tests/test-perror.sh: New file.
21200 * tests/test-perror.c: New file.
21202 New module 'perror'.
21203 * lib/stdio.in.h (perror): New declaration.
21204 * lib/perror.c: New file.
21205 * m4/perror.m4: New file.
21206 * modules/perror: New file.
21207 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21208 * doc/posix-functions/perror.texi: Mention the perror module.
21209 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21211 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21214 2008-09-14 Bruno Haible <bruno@clisp.org>
21216 * modules/stdio (Makefile.am): Reorder to match the order in
21218 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21220 2008-09-13 Bruno Haible <bruno@clisp.org>
21222 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21224 2008-09-13 Bruno Haible <bruno@clisp.org>
21226 Extend strerror to cover the added errno values.
21227 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21228 (rpl_strerror): Provide error messages for the added errno values and
21229 for the WSA* values.
21230 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21231 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21233 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21234 * modules/strerror (Depends-on): Add errno.
21235 * doc/posix-functions/strerror.texi: Document the change.
21236 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21239 2008-09-13 Bruno Haible <bruno@clisp.org>
21241 * modules/EOVERFLOW: Remove file.
21242 * m4/eoverflow.m4: Remove file.
21243 * modules/EOVERFLOW-tests: Remove file.
21244 * tests/test-EOVERFLOW.c: Remove file.
21245 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21246 * modules/ftell (Depends-on): Likewise.
21247 * modules/getdelim (Depends-on): Likewise.
21248 * modules/getugroups (Depends-on): Likewise.
21249 * modules/poll (Depends-on): Likewise.
21250 * modules/snprintf (Depends-on): Likewise.
21251 * modules/sprintf-posix (Depends-on): Likewise.
21252 * modules/vasnprintf (Depends-on): Likewise.
21253 * modules/vasprintf (Depends-on): Likewise.
21254 * modules/vfprintf-posix (Depends-on): Likewise.
21255 * modules/vsnprintf (Depends-on): Likewise.
21256 * modules/vsprintf-posix (Depends-on): Likewise.
21257 * modules/xvasprintf (Depends-on): Likewise.
21258 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21259 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21260 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21261 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21262 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21263 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21264 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21265 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21266 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21267 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21268 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21269 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21270 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21271 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21272 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21273 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21274 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21275 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21276 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21277 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21278 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21279 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21280 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21281 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21282 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21283 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21284 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21285 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21286 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21287 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21288 * MODULES.html.sh: Remove EOVERFLOW.
21289 * NEWS: Mention the change.
21291 2008-09-13 Bruno Haible <bruno@clisp.org>
21293 * modules/errno-tests: New file.
21294 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21296 * lib/errno.in.h: New file.
21297 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21298 * modules/errno: New file.
21299 * doc/posix-headers/errno.texi: Update documentation.
21300 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21302 2008-09-13 Bruno Haible <bruno@clisp.org>
21304 * tests/test-poll.c: Use #if for native Windows, rather than testing
21307 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21308 Bruno Haible <bruno@clisp.org>
21310 * lib/glob.c: Don't include <pwd.h> on native Windows.
21311 (WINDOWS32): New macro.
21312 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21314 2008-09-13 Bruno Haible <bruno@clisp.org>
21316 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21317 (ETIMEDOUT): Remove macro.
21318 (glthread_cond_timedwait_multithreaded): New declaration.
21319 (glthread_cond_timedwait): Use it.
21320 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21321 (glthread_cond_timedwait_multithreaded): New function.
21323 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21325 * modules/poll-tests: Do not check for io.h.
21326 * tests/test-poll.c: Check for __MSVCRT__ instead.
21328 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21330 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21331 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21332 * tests/test-poll.c: Use them. Use _pipe on Windows.
21334 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21336 * modules/poll-tests: New.
21337 * tests/test-poll.c: New.
21339 2008-09-12 Eric Blake <ebb9@byu.net>
21341 frexp: test for NetBSD failure on -0.0
21342 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21343 not all, bugs from NetBSD 3.0 have been fixed.
21344 * doc/posix-functions/frexp.texi (frexp): Document bug.
21345 Reported by Thomas Klausner.
21347 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21348 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21350 Reported by Jonathan C. Patschke <jp@centtech.com>.
21352 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21354 * lib/glthread/cond.h: Use dummy implementation also if
21357 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21359 * modules/fnmatch-posix (License): Change to LGPLv2+.
21360 * modules/fnmatch-gnu (License): Likewise.
21362 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21364 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21366 2008-09-11 Jim Meyering <meyering@redhat.com>
21368 * users.txt: Add gtk-vnc.
21370 2008-09-08 Simon Josefsson <simon@josefsson.org>
21372 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21375 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21376 required for 16-bit and 8-bit rotates.
21377 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21378 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21379 UINT8_MAX instead of hard-coded constants.
21380 Suggested by Paul Eggert.
21382 2008-09-07 Bruno Haible <bruno@clisp.org>
21384 * tests/test-striconveh.c (main): Check behaviour when converting from
21387 Make striconveh work better with stateful encodings.
21388 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21389 that iconv does not increment the inptr when returning -1/EINVAL.
21391 2008-09-07 Bruno Haible <bruno@clisp.org>
21393 * build-aux/config.rpath: Update according to libtool-2.2.6.
21394 * build-aux/config.libpath: Likewise.
21396 2008-09-06 Bruno Haible <bruno@clisp.org>
21398 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21399 * lib/freadptr.c (freadptr): Likewise.
21400 * lib/freadseek.c (freadptrinc): Likewise.
21401 Reported by Simon Josefsson.
21403 2008-09-06 Bruno Haible <bruno@clisp.org>
21405 * modules/freadptr (License): Change to LGPLv2+.
21406 * modules/freadseek (License): Likewise.
21407 Suggested by Eric Blake.
21409 * modules/memchr2 (License): Change to LGPLv2+.
21410 Approved by Eric Blake.
21412 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21413 Bruno Haible <bruno@clisp.org>
21415 Make gnulib-tool work with native 'sed' on AIX.
21416 * gnulib-tool (sed_noop): New variable.
21417 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21418 func_add_or_update, func_create_testdir): Use it to initialize sed
21420 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21422 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21423 Bruno Haible <bruno@clisp.org>
21425 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21426 also works after #include directives.
21428 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
21430 getdate.y: reject an out-of-range timezone value
21431 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21432 the range [-24...+24]. When specified with only one or two digits,
21433 * tests/test-getdate.c: Tests for the fix.
21434 * doc/getdate.texi: Document this change.
21436 2008-09-03 Bruno Haible <bruno@clisp.org>
21438 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21440 2008-09-02 Simon Josefsson <simon@josefsson.org>
21442 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21443 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21444 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21445 Blake <ebb9@byu.net>.
21447 * tests/test-bitrotate.c: Add more test vectors.
21449 2008-09-02 Eric Blake <ebb9@byu.net>
21451 vasnprintf-posix: handle large precision via %.*d
21452 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21453 when handling it ourselves.
21454 * tests/test-vasnprintf-posix.c (test_function): Add test.
21455 * tests/test-snprintf-posix.h (test_function): Likewise.
21456 * tests/test-sprintf-posix.h (test_function): Likewise.
21457 * tests/test-vasprintf-posix.c (test_function): Likewise.
21458 Reported by Alain Guibert.
21460 2008-09-01 Eric Blake <ebb9@byu.net>
21462 c-stack: make configure-time check more robust
21463 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21464 successful sigaction call.
21465 Reported by Tom G. Christensen.
21467 2008-09-01 Bruno Haible <bruno@clisp.org>
21469 New module 'findprog-lgpl'.
21470 * modules/findprog-lgpl: New file.
21471 * lib/findprog-lgpl.c: New file.
21472 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21473 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21474 to decide whether to use strdup or xstrdup, concatenated_filename or
21475 xconcatenated_filename.
21477 2008-09-01 Bruno Haible <bruno@clisp.org>
21479 Split module 'concat-filename' into 'concat-filename' (LGPL) and
21480 'xconcat-filename' (GPL).
21481 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21482 (License): Change to LGPLv2+.
21483 * modules/xconcat-filename: New file.
21484 * lib/concat-filename.h (concatenated_filename): Change specification.
21485 (xconcatenated_filename): New declaration.
21486 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21487 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21489 * lib/xconcat-filename.c: New file.
21490 * NEWS: Mention the change.
21491 * lib/findprog.c: Include concat-filename.h, not filename.h.
21492 (find_in_path): Use xconcatenated_filename instead of
21493 concatenated_filename.
21494 * lib/javacomp.c: Include concat-filename.h, not filename.h.
21495 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21496 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21497 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21498 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21499 instead of concatenated_filename.
21500 * lib/javaexec.c: Include concat-filename.h, not filename.h.
21501 (execute_java_class): Use xconcatenated_filename instead of
21502 concatenated_filename.
21503 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21504 * modules/javacomp (Depends-on): Likewise.
21505 * modules/javaexec (Depends-on): Likewise.
21507 2008-09-01 Bruno Haible <bruno@clisp.org>
21509 Split module 'filename' into 'filename' and 'concat-filename'.
21510 * modules/filename: Keep only lib/filename.h.
21511 (License): Change to LGPLv2+.
21512 * modules/concat-filename: New file, extracted from modules/filename.
21513 * lib/filename.h (concatenated_filename): Remove declaration.
21514 * lib/concat-filename.h: New file, extracted from lib/filename.h.
21515 * lib/concat-filename.c: Include concat-filename.h.
21516 * NEWS: Mention the change.
21518 2008-09-01 Simon Josefsson <simon@josefsson.org>
21520 * lib/bitrotate.h (rotl8, rotr8): Add.
21522 * modules/bitrotate (configure.ac): Need
21523 AC_REQUIRE([AC_C_INLINE]).
21524 (Description): Mention stdint.h. Reported by Bruno Haible
21527 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
21528 Paolo Bonzini <bonzini@gnu.org>.
21530 2008-08-31 Bruno Haible <bruno@clisp.org>
21532 Assume Solaris specific bi-arch conventions on Solaris systems.
21533 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21534 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21535 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21536 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21537 like acl_libdirstem.
21538 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21540 * NEWS: Mention the change.
21541 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21543 2008-08-31 Jim Meyering <meyering@redhat.com>
21545 * lib/strftime.h: Add comments describing the two added arguments.
21547 remove duplicate #include directives
21548 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21549 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21551 2008-08-31 Bruno Haible <bruno@clisp.org>
21553 New module 'sigpipe-die'.
21554 * modules/sigpipe-die: New file.
21555 * lib/sigpipe-die.h: New file.
21556 * lib/sigpipe-die.c: New file.
21557 * MODULES.html.sh (Signal handling): Add sigpipe-die.
21559 2008-08-31 Bruno Haible <bruno@clisp.org>
21561 Don't override previously installed signal handlers.
21562 * lib/fatal-signal.c (saved_sigactions): New variable.
21563 (uninstall_handlers): Reset the signal to the saved handler, not
21564 to SIG_DFL (except when ignored).
21565 (install_handlers): Save the previous handlers.
21567 2008-08-30 Bruno Haible <bruno@clisp.org>
21569 * gnulib-tool (func_reset_sigpipe): New function.
21570 (func_get_automake_snippet, func_modules_transitive_closure,
21571 func_import): Invoke it before a join command that reads from stdin,
21572 to avoid "echo: write error: Broken pipe" error messages on stderr.
21573 Reported by Sam Steingold <sds@gnu.org>.
21575 2008-08-30 Bruno Haible <bruno@clisp.org>
21577 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21578 Code copied from m4/open.m4.
21579 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21580 access and the filename ends in a slash. Code copied from lib/open.c.
21581 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21582 * tests/test-fopen.c (main): Check against bug with trailing slash.
21584 2008-08-29 Bruno Haible <bruno@clisp.org>
21586 Avoid some "gcc -pedantic" warnings.
21587 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21588 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21589 * lib/dirent.in.h: Likewise.
21590 * lib/fcntl.in.h: Likewise.
21591 * lib/float.in.h: Likewise.
21592 * lib/iconv.in.h: Likewise.
21593 * lib/inttypes.in.h: Likewise.
21594 * lib/locale.in.h: Likewise.
21595 * lib/math.in.h: Likewise.
21596 * lib/netinet_in.in.h: Likewise.
21597 * lib/search.in.h: Likewise.
21598 * lib/signal.in.h: Likewise.
21599 * lib/stdarg.in.h: Likewise.
21600 * lib/stdint.in.h: Likewise.
21601 * lib/stdio.in.h: Likewise.
21602 * lib/stdlib.in.h: Likewise.
21603 * lib/string.in.h: Likewise.
21604 * lib/strings.in.h: Likewise.
21605 * lib/sys_select.in.h: Likewise.
21606 * lib/sys_socket.in.h: Likewise.
21607 * lib/sys_stat.in.h: Likewise.
21608 * lib/sys_time.in.h: Likewise.
21609 * lib/sysexits.in.h: Likewise.
21610 * lib/time.in.h: Likewise.
21611 * lib/unistd.in.h: Likewise.
21612 * lib/wchar.in.h: Likewise.
21613 * lib/wctype.in.h: Likewise.
21614 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21615 * modules/fchdir (Makefile.am): Likewise.
21616 * modules/fcntl (Makefile.am): Likewise.
21617 * modules/float (Makefile.am): Likewise.
21618 * modules/iconv_open (Makefile.am): Likewise.
21619 * modules/inttypes (Makefile.am): Likewise.
21620 * modules/locale (Makefile.am): Likewise.
21621 * modules/math (Makefile.am): Likewise.
21622 * modules/netinet_in (Makefile.am): Likewise.
21623 * modules/search (Makefile.am): Likewise.
21624 * modules/signal (Makefile.am): Likewise.
21625 * modules/stdarg (Makefile.am): Likewise.
21626 * modules/stdint (Makefile.am): Likewise.
21627 * modules/stdio (Makefile.am): Likewise.
21628 * modules/stdlib (Makefile.am): Likewise.
21629 * modules/string (Makefile.am): Likewise.
21630 * modules/strings (Makefile.am): Likewise.
21631 * modules/sys_select (Makefile.am): Likewise.
21632 * modules/sys_socket (Makefile.am): Likewise.
21633 * modules/sys_stat (Makefile.am): Likewise.
21634 * modules/sys_time (Makefile.am): Likewise.
21635 * modules/sysexits (Makefile.am): Likewise.
21636 * modules/time (Makefile.am): Likewise.
21637 * modules/unistd (Makefile.am): Likewise.
21638 * modules/wchar (Makefile.am): Likewise.
21639 * modules/wctype (Makefile.am): Likewise.
21640 Reported by Reuben Thomas <rrt@sc3d.org>.
21642 2008-08-29 Bruno Haible <bruno@clisp.org>
21644 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21647 2008-08-29 Simon Josefsson <simon@josefsson.org>
21649 * MODULES.html.sh (Misc): Add bitrotate.
21651 * modules/bitrotate: New file.
21653 * lib/bitrotate.h: New file.
21655 * modules/bitrotate-tests: New file.
21657 * tests/test-bitrotate.c: New file.
21659 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21660 on the bitrotate module.
21662 * lib/arctwo.c: Use new bitrotate module.
21664 2008-08-29 Jim Meyering <meyering@redhat.com>
21666 bootstrap: merge changes from coreutils
21667 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21668 of copied files. Remove a kludge, now that this is fixed.
21669 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21670 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21671 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21673 2008-08-29 Bruno Haible <bruno@clisp.org>
21675 * MODULES.html.sh: Remove --cvs-urls option.
21677 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
21679 maint.mk: adjust to file name change
21680 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21682 2008-08-28 Jim Meyering <meyering@redhat.com>
21684 * modules/getndelim2 (License): Relicense to LGPLv2+.
21685 Approved by Richard Stallman for the version of 1995, and by
21686 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21688 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
21690 * lib/getdelim.c (flockfile, funlockfile): Make all of them
21691 dummy if one is not available. Do not touch them if
21692 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21693 (getc_maybe_unlocked): New.
21694 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21696 2008-08-26 Eric Blake <ebb9@byu.net>
21698 doc/INSTALL: resync from autoconf
21699 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21700 (INSTALL_PRELUDE): Delete; this is done more efficiently by
21702 * install.texi [!autoconf]: ...here. Resync from autoconf.
21703 * INSTALL: Regenerate.
21704 * INSTALL.ISO: New file.
21705 * INSTALL.UTF-8: Likewise.
21707 2008-08-26 Jim Meyering <meyering@redhat.com>
21709 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21710 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21711 these definitions conditional, so that they may be overridden, too.
21713 2008-08-26 Bruno Haible <bruno@clisp.org>
21715 Generate INSTALL file variants with prettier quotes.
21716 * doc/Makefile (INSTALL_PRELUDE): New macro.
21718 (INSTALL.ISO, INSTALL.UTF-8): New rules.
21720 2008-08-26 Bruno Haible <bruno@clisp.org>
21722 Run makeinfo in an English locale.
21723 * doc/Makefile (MAKEINFO): New variable.
21725 2008-08-26 Bruno Haible <bruno@clisp.org>
21727 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21728 Suggested by Eric Blake.
21730 2008-08-25 Bruno Haible <bruno@clisp.org>
21732 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21734 2008-08-25 Eric Blake <ebb9@byu.net>
21736 c-stack: test that stack overflow can be caught
21737 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21738 that platform allows handling stack overflow; at least OS/2 EMX
21739 has sigaltstack, but crashes before transferring control to
21740 handler on stack overflow.
21741 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21742 check for HAVE_STACK_OVERFLOW_HANDLING.
21743 Reported by Elbert Pol.
21745 2008-08-25 Bruno Haible <bruno@clisp.org>
21747 * doc/posix-functions/strftime.texi: Fix description of strftime
21750 2008-08-24 Bruno Haible <bruno@clisp.org>
21752 * tests/uniwidth/test-uc_width2.c: New file.
21753 * tests/uniwidth/test-uc_width2.sh: New file.
21754 * modules/uniwidth/width-tests (Files): Add the new files.
21755 (TESTS): Add uniwidth/test-uc_width2.sh.
21756 (TESTS_ENVIRONMENT): New variable.
21757 (check_PROGRAMS): Add test-uc_width2.
21758 (test_uc_width2_SOURCES): New variable.
21760 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21761 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21763 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21765 2008-08-22 Eric Blake <ebb9@byu.net>
21767 test-lock, test-tls: mention why a test is skipped
21768 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21770 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21772 count-one-bits: relax license
21773 * modules/count-one-bits (License): Relicense to LGPLv2+.
21774 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21776 2008-08-22 Andreas Schwab <schwab@suse.de>
21778 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21779 Remove spurious space in assignment.
21781 2008-08-21 Simon Josefsson <simon@josefsson.org>
21783 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21784 Paul Eggert <eggert@CS.UCLA.EDU>.
21786 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21788 * modules/gettext: Add m4/threadlib.m4.
21790 2008-08-19 Eric Blake <ebb9@byu.net>
21792 test-c-stack: fix compilation failure on FreeBSD 5.0
21793 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21794 headers before <sys/resource.h>.
21795 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21797 Reported by Nelson H. F. Beebe.
21799 strverscmp: migrate from "strverscmp.h" to <string.h>
21800 * modules/string (Makefile.am): Add new hooks.
21801 * modules/strverscmp (Files): Remove strverscmp.h.
21802 (Depends-on): Add string.
21803 (configure.ac): Add indicator.
21804 (Include): Mention new header.
21805 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21807 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21809 * lib/strverscmp.h: Delete.
21810 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21811 * tests/test-strverscmp.c (includes): Adjust client.
21812 * lib/check-version.c (includes): Likewise.
21813 * NEWS: Document the change.
21815 strverscmp: add unit test
21816 * modules/strverscmp-tests: New file.
21817 * tests/test-strverscmp.c: Likewise.
21819 2008-08-19 Simon Josefsson <simon@josefsson.org>
21821 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21822 regarding Windows crypto stuff, from Mono.
21824 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21826 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21827 if present, for intel RND. Return error on failures.
21829 2008-08-18 Ben Pfaff <blp@gnu.org>
21831 gitlog-to-changelog: give better diagnostic for failed pipe-open
21832 * build-aux/gitlog-to-changelog: Improve error message: suggest
21833 that the version of Git may be too old.
21835 2008-08-18 Simon Josefsson <simon@josefsson.org>
21837 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
21838 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
21840 2008-08-18 Bruno Haible <bruno@clisp.org>
21842 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21845 2008-08-18 Bruno Haible <bruno@clisp.org>
21847 * lib/glthread/threadlib.c: Include <pthread.h>.
21849 2008-08-18 Bruno Haible <bruno@clisp.org>
21851 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21852 glthread_recursive_lock_* macros.
21853 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21856 2008-08-18 Bruno Haible <bruno@clisp.org>
21858 * lib/glthread/thread.c: Avoid forcing a context switch right after
21861 2008-08-17 Bruno Haible <bruno@clisp.org>
21863 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21864 * lib/glthread/thread.h: Provide Win32 specific implementation.
21865 * modules/thread (Files): Add lib/glthread/thread.c.
21866 (Depends-on): Add lock.
21867 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21869 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21871 New module 'yield'.
21872 * modules/yield: New file.
21873 * lib/glthread/yield.h: New file.
21874 * m4/yield.m4: New file.
21875 * MODULES.html.sh (Multithreading): Add yield.
21877 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21879 New module 'thread'.
21880 * modules/thread: New file.
21881 * lib/glthread/thread.h: New file.
21882 * m4/thread.m4: New file.
21883 * MODULES.html.sh (Multithreading): Add thread.
21885 2008-08-17 Bruno Haible <bruno@clisp.org>
21887 * lib/glthread/lock.h: Include <stdlib.h> always.
21888 * lib/glthread/tls.h: Likewise.
21889 * lib/glthread/cond.h: Likewise.
21891 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21894 * modules/cond: New file.
21895 * lib/glthread/cond.h: New file.
21896 * lib/glthread/cond.c: New file.
21897 * m4/cond.m4: New file.
21898 * MODULES.html.sh (Multithreading): Add cond.
21900 2008-08-16 Eric Blake <ebb9@byu.net>
21902 c-stack: fix regression on Irix 5.3 from 2008-06-21
21903 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21905 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21906 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21907 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21908 * modules/signal (Makefile.am): Use the value.
21909 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21910 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21911 * doc/posix-headers/signal.texi (signal.h): Document this
21913 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21914 Reported by Tom G. Christensen.
21916 2008-08-17 Bruno Haible <bruno@clisp.org>
21918 New module 'threadlib'.
21919 * modules/threadlib: New file.
21920 * lib/glthread/threadlib.c: New file, extracted from
21921 lib/glthread/lock.c.
21922 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21924 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21925 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21926 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21928 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21929 (gl_DISABLE_THREADS): Remove macro.
21930 * modules/lock (Files): Remove build-aux/config.rpath.
21931 (Depends-on): Remove havelib. Add threadlib.
21932 (configure.ac-early): Remove section.
21933 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21934 * modules/tls (Depends-on): Remove lock. Add threadlib.
21935 (Link): New section, copied from threadlib.
21936 * MODULES.html.sh (Multithreading): Add threadlib.
21938 2008-08-14 Bruno Haible <bruno@clisp.org>
21940 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21941 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21942 glthread_rwlock_unlock, glthread_rwlock_destroy,
21943 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21944 glthread_recursive_lock_destroy): Define as macros always.
21945 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21946 glthread_lock_lock.
21947 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21948 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21949 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21950 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21951 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21952 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21953 (glthread_recursive_lock_lock_func): Renamed from
21954 glthread_recursive_lock_lock.
21955 (glthread_recursive_lock_unlock_func): Renamed from
21956 glthread_recursive_lock_unlock.
21957 (glthread_recursive_lock_destroy_func): Renamed from
21958 glthread_recursive_lock_destroy.
21960 2008-08-14 Bruno Haible <bruno@clisp.org>
21962 * lib/glthread/lock.h: Renamed from lib/lock.h.
21963 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21964 * lib/glthread/tls.h: Renamed from lib/tls.h.
21965 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21966 * lib/fstrcmp.c: Update includes.
21967 * lib/strsignal.c: Update includes.
21968 * modules/lock (Files, Makefile.am): Update.
21969 (Include): Change to "glthread/lock.h".
21970 * modules/tls (Files, Makefile.am): Update.
21971 (Include): Change to "glthread/tls.h".
21972 * tests/test-lock.c: Update includes.
21973 * tests/test-tls.c: Update includes.
21974 * NEWS: Mention the renamed header files.
21976 2008-08-11 Jim Meyering <meyering@redhat.com>
21978 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21980 2008-08-11 Eric Blake <ebb9@byu.net>
21982 test-c-stack: avoid C99-ism
21983 * tests/test-c-stack.c (main): Fix whitespace, move declaration
21985 Reported by Alain Guibert.
21987 2008-08-10 Jim Meyering <meyering@redhat.com>
21989 ensure that return value of uinttostr et al are not ignored
21990 * lib/inttostr.h (__GNUC_PREREQ): Define.
21991 (__attribute_warn_unused_result__): Define.
21992 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21994 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
21996 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21997 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21999 2008-08-07 Jim Meyering <meyering@redhat.com>
22001 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22003 * modules/mkstemp (License): Relicense under LGPLv2+.
22004 * modules/tempname (License): Likewise.
22006 2008-08-06 Bruno Haible <bruno@clisp.org>
22008 * lib/poll.c (poll): Further micro-optimization.
22010 2008-08-06 Jim Meyering <meyering@redhat.com>
22012 inet_pton.c: use locale-independent tolower
22013 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22014 (inet_pton6): Use c_tolower rather than tolower.
22015 * modules/inet_pton (Depends-on): Add c-ctype.
22017 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
22019 * lib/poll.c (poll): Avoid division when timeout is 0, cache
22020 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
22022 2008-08-06 Jim Meyering <meyering@redhat.com>
22024 * modules/inet_pton (License): Relicense under LGPLv2+.
22026 2008-08-03 Bruno Haible <bruno@clisp.org>
22028 Additional non-aborting API for lock and tls.
22029 * lib/lock.h: Include <errno.h>.
22030 (glthread_lock_init): New macro/function.
22031 (gl_lock_init): Define as wrapper around glthread_lock_init.
22032 (glthread_lock_lock): New macro/function.
22033 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22034 (glthread_lock_unlock): New macro/function.
22035 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22036 (glthread_lock_destroy): New macro/function.
22037 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22038 (glthread_rwlock_init): New macro/function.
22039 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22040 (glthread_rwlock_rdlock): New macro/function.
22041 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22042 (glthread_rwlock_wrlock): New macro/function.
22043 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22044 (glthread_rwlock_unlock): New macro/function.
22045 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22046 (glthread_rwlock_destroy): New macro/function.
22047 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22048 (glthread_recursive_lock_init): New macro/function.
22049 (gl_recursive_lock_init): Define as wrapper around
22050 glthread_recursive_lock_init.
22051 (glthread_recursive_lock_lock): New macro/function.
22052 (gl_recursive_lock_lock): Define as wrapper around
22053 glthread_recursive_lock_lock.
22054 (glthread_recursive_lock_unlock): New macro/function.
22055 (gl_recursive_lock_unlock): Define as wrapper around
22056 glthread_recursive_lock_unlock.
22057 (glthread_recursive_lock_destroy): New macro/function.
22058 (gl_recursive_lock_destroy): Define as wrapper around
22059 glthread_recursive_lock_destroy.
22060 (glthread_once): New macro/function.
22061 (gl_once): Define as wrapper around glthread_once.
22062 Update function declarations.
22063 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22064 glthread_rwlock_init. Return error code.
22065 (glthread_rwlock_rdlock_multithreaded): Renamed from
22066 glthread_rwlock_rdlock. Return error code.
22067 (glthread_rwlock_wrlock_multithreaded): Renamed from
22068 glthread_rwlock_wrlock. Return error code.
22069 (glthread_rwlock_unlock_multithreaded): Renamed from
22070 glthread_rwlock_unlock. Return error code.
22071 (glthread_rwlock_destroy_multithreaded): Renamed from
22072 glthread_rwlock_destroy. Return error code.
22073 (glthread_recursive_lock_init_multithreaded): Renamed from
22074 glthread_recursive_lock_init. Return error code.
22075 (glthread_recursive_lock_lock_multithreaded): Renamed from
22076 glthread_recursive_lock_lock. Return error code.
22077 (glthread_recursive_lock_unlock_multithreaded): Renamed from
22078 glthread_recursive_lock_unlock. Return error code.
22079 (glthread_recursive_lock_destroy_multithreaded): Renamed from
22080 glthread_recursive_lock_destroy. Return error code.
22081 (glthread_once_call): Make static.
22082 (glthread_once_multithreaded): Renamed from glthread_once.
22083 * lib/tls.h: Include <errno.h>.
22084 (glthread_tls_key_init): New macro/function.
22085 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22086 (glthread_tls_set): New macro/function.
22087 (gl_tls_set): Define as wrapper around glthread_tls_set.
22088 (glthread_tls_key_destroy): New macro/function.
22089 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22090 Update function declarations.
22091 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22093 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22095 2008-08-04 Eric Blake <ebb9@byu.net>
22097 gnumakefile: use space, not TAB, outside of targets
22098 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22100 2008-08-02 Jim Meyering <meyering@redhat.com>
22102 getdate.y: avoid locale-dependent date parsing failure
22103 In Turkish locales, getdate would fail to recognize keywords
22104 containing a lowercase "i". The solution is not to rely on
22105 locale-sensitive case-conversion.
22106 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22107 (lookup_word): Use c_toupper in place of toupper.
22108 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22109 Reported by Vefa Bicakci <bicave@superonline.com> in
22110 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22111 * modules/getdate (Depends-on): Add c-ctype.
22113 2008-08-02 Bruno Haible <bruno@clisp.org>
22115 * gnulib-tool (func_import): When updating or creating a .gitignore
22116 file, prepend each added line with a slash, and ignore leading slashes
22117 from the existing lines.
22118 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22120 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22122 Portability fix for GNU make 3.79.1.
22123 * top/GNUmakefile: Avoid 'else COND', which older GNU make
22124 versions do not understand.
22126 2008-08-01 Bruno Haible <bruno@clisp.org>
22128 Work around bug of HP-UX 10.20 cc with -0.0 literal.
22129 * tests/test-isnanf.h (zero): New variable.
22130 (main): Avoid literal -0.0f.
22131 * tests/test-isnand.h (zero): New variable.
22132 (main): Avoid literal -0.0.
22133 * tests/test-isnanl.h (zero): New variable.
22134 (main): Avoid literal -0.0L.
22135 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22136 (test_float, test_double, test_long_double): Avoid literals -0.0f,
22138 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22139 (test_signbitd): Avoid literal -0.0.
22140 (test_signbitl): Avoid literal -0.0L.
22141 * tests/test-ceilf1.c (zero): New variable.
22142 (main): Avoid literal -0.0f.
22143 * tests/test-ceill.c (zero): New variable.
22144 (main): Avoid literal -0.0L.
22145 * tests/test-floorf1.c (zero): New variable.
22146 (main): Avoid literal -0.0f.
22147 * tests/test-floorl.c (zero): New variable.
22148 (main): Avoid literal -0.0L.
22149 * tests/test-roundf1.c (zero): New variable.
22150 (main): Avoid literal -0.0f.
22151 * tests/test-round1.c (zero): New variable.
22152 (main): Avoid literal -0.0.
22153 * tests/test-roundl.c (zero): New variable.
22154 (main): Avoid literal -0.0L.
22155 * tests/test-truncf1.c (zero): New variable.
22156 (main): Avoid literal -0.0f.
22157 * tests/test-trunc1.c (zero): New variable.
22158 (main): Avoid literal -0.0.
22159 * tests/test-truncl.c (zero): New variable.
22160 (main): Avoid literal -0.0L.
22161 * tests/test-frexp.c (zero): New variable.
22162 (main): Avoid literal -0.0.
22163 * tests/test-frexpl.c (zero): New variable.
22164 (main): Avoid literal -0.0L.
22165 * tests/test-ldexpl.c (zero): New variable.
22166 (main): Avoid literal -0.0L.
22167 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22168 (zerod, zerol): New variables.
22169 (test_function): Avoid literals -0.0, -0.0L.
22170 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22171 (zerod, zerol): New variables.
22172 (test_function): Avoid literals -0.0, -0.0L.
22173 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22174 (zerod, zerol): New variables.
22175 (test_function): Avoid literals -0.0, -0.0L.
22176 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22177 (zerod, zerol): New variables.
22178 (test_function): Avoid literals -0.0, -0.0L.
22179 * tests/test-strtod.c (zero): New variable.
22180 (main): Avoid literal -0.0.
22181 Reported by Jonathan C. Patschke <jp@centtech.com>.
22183 2008-07-31 Jim Meyering <meyering@redhat.com>
22185 sha256.h: correct definition of SHA224_DIGEST_SIZE
22186 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22187 Reported by Paulie Pena IV <paulie4@gmail.com>.
22188 Define as 224 / 8, rather than as a literal.
22189 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22190 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22191 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22193 2008-07-31 Bruno Haible <bruno@clisp.org>
22195 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22196 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22197 Reported by Jonathan Patschke <jp@centtech.com>.
22199 2008-07-31 Bruno Haible <bruno@clisp.org>
22201 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22202 Reported by Paolo Bonzini <bonzini@gnu.org>.
22204 2008-07-30 Eric Blake <ebb9@byu.net>
22206 test-strtod: allow compilation without -lm
22207 * tests/test-strtod.c (main): Avoid link dependence on fabs.
22208 Reported by Dennis Clarke <blastwave@gmail.com>.
22210 2008-07-28 Jim Meyering <meyering@redhat.com>
22212 bootstrap: work also when there are no .po files in po/
22213 * build-aux/bootstrap (update_po_files): Complete the change
22214 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22216 2008-07-27 Jim Meyering <meyering@redhat.com>
22218 * users.txt: Add zile.
22220 2008-07-26 Ben Pfaff <blp@gnu.org>
22222 Add missing dependencies on new m4/exponent[fdl].m4 files.
22223 * modules/isnanf-nolibm: Add m4/exponentf.m4.
22224 * modules/isnand-nolibm: Add m4/exponentd.m4.
22225 * modules/isnanl-nolibm: Add m4/exponentl.m4.
22226 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22227 m4/isnan[fdl].m4, because the macros actually used moved.
22228 Reported by Jim Meyering.
22230 2008-07-14 Ben Pfaff <blp@gnu.org>
22233 * lib/isinf.c: New file.
22234 * lib/math.in.h: Define isinf macro if we have decided to replace
22236 * m4/isinf.m4: New file.
22237 * m4/math_h.m4: Initialize and substitute variables for isinf
22239 * modules/isinf: New file.
22240 * modules/isinf-tests: New file.
22241 * modules/math: Add substitutions for new module.
22242 * tests/test-isinf.c: New file.
22243 * doc/posix-functions/isinf.texi: Mention new module.
22244 * MODULES.html.sh: Mention new module.
22246 2008-07-14 Ben Pfaff <blp@gnu.org>
22248 Factor out some macros for use by additional modules.
22249 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22251 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22253 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22255 * m4/exponentf.m4: New file.
22256 * m4/exponentd.m4: New file.
22257 * m4/exponentl.m4: New file.
22258 * modules/isnanf: Use new file m4/exponentf.m4.
22259 * modules/isnand: Use new file m4/exponentd.m4.
22260 * modules/isnanl: Use new file m4/exponentl.m4.
22262 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22264 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22265 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22266 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22267 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22269 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22270 readlink on platforms without PATH_MAX.
22272 2008-07-21 Eric Blake <ebb9@byu.net>
22274 Warn, not fail, on stale version.
22275 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22277 Don't allow installation with stale devel version number.
22278 * top/GNUmakefile (_is-install-target): New macro.
22279 (_curr-ver): Forbid installation with stale version number.
22281 2008-07-20 Bruno Haible <bruno@clisp.org>
22283 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22285 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22287 2008-07-20 Bruno Haible <bruno@clisp.org>
22289 * lib/c-stack.h (c_stack_action): Add documentation.
22290 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22292 2008-07-20 Bruno Haible <bruno@clisp.org>
22294 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22295 * modules/readlink (License): Likewise.
22297 2008-07-17 Eric Blake <ebb9@byu.net>
22299 * modules/c-stack (Link): Fix typo.
22301 Make c-stack use libsigsegv, when available.
22302 * modules/c-stack (Depends-on): Add libsigsegv.
22303 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22305 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22306 (segv_handler, overflow_handler, c_stack_action)
22307 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22308 implementation when libsigsegv is available, but only when using
22309 the library is necessary.
22310 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22311 comment, explaining why XSI check fails on Linux.
22312 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22313 * tests/test-c-stack2.sh: Tweak skip message.
22314 * NEWS: Document new link-time requirements.
22316 2008-07-16 Eric Blake <ebb9@byu.net>
22318 c-stack: Expose false positives when not using libsigsegv.
22319 * modules/c-stack-tests (Files): Expand test.
22320 * tests/test-c-stack.c (main): Add means to conditionally trigger
22321 non-overflow SIGSEGV.
22322 * tests/test-c-stack2.sh: New file.
22324 2008-07-14 Bruno Haible <bruno@clisp.org>
22326 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22327 Reported by Eric Blake.
22329 2008-07-14 Sam Steingold <sds@gnu.org>
22330 Bruno Haible <bruno@clisp.org>
22332 New module libsigsegv.
22333 * modules/libsigsegv: New file.
22334 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22336 * MODULES.html.sh (Signal handling): New section.
22338 2008-07-14 Bruno Haible <bruno@clisp.org>
22340 * modules/unictype/ctype-* (Description): Add the word "function".
22341 Improves the resulting doc in MODULES.html.
22343 2008-07-12 Ben Pfaff <blp@gnu.org>
22345 Add longlong module.
22346 * modules/longlong: New file.
22348 2008-07-12 Bruno Haible <bruno@clisp.org>
22350 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22353 2008-07-10 Ben Pfaff <blp@gnu.org>
22356 * doc/posix-functions/isnan.texi: Mention new module.
22357 * lib/math.in.h: Define isnan macro if we have decided to replace
22359 * m4/isnan.m4: New file.
22360 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22361 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22363 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22365 * m4/math_h.m4: Initialize and substitute variables for isnan
22367 * modules/isnan: New file.
22368 * modules/isnan-tests: New file.
22369 * modules/math: Add substitutions for new module.
22370 * tests/test-isnan.c: New file.
22371 * MODULES.html.sh: Mention new module.
22373 2008-07-10 Ben Pfaff <blp@gnu.org>
22376 * lib/isnanf.m4: New file.
22377 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22378 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22379 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22380 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22381 * modules/isnanf: New file.
22382 * modules/isnanf-tests: New file.
22383 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22385 * tests/test-isnanf-nolibm.c: factored most of its contents into
22386 new file tests/test-isnanf.h.
22387 * tests/test-isnanf.h: New file.
22388 * tests/test-isnanf.c: New file.
22389 * MODULES.html.sh: Mention new module.
22390 * doc/glibc-functions/isnanf.texi: Mention new module.
22392 2008-07-10 Ben Pfaff <blp@gnu.org>
22395 * lib/isnand.h: New file.
22396 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22397 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22398 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22399 functionality also.
22400 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22401 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22402 (gl_HAVE_ISNAND_IN_LIBM): New macro.
22403 * modules/isnand: New file.
22404 * modules/isnand-tests: New file.
22405 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22407 * tests/test-isnand-nolibm.c: factored most of its contents into
22408 new file tests/test-isnand.h.
22409 * tests/test-isnand.h: New file.
22410 * tests/test-isnand.c: New file.
22411 * MODULES.html.sh: Mention new module.
22413 2008-07-10 Ben Pfaff <blp@gnu.org>
22415 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22416 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22417 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22418 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22419 * modules/isnanf-nolibm: Update references to renamed files.
22420 * modules/isnand-nolibm: Likewise.
22421 * modules/isnanf-nolibm-tests: Likewise.
22422 * modules/isnand-nolibm-tests: Likewise.
22423 * lib/frexp.c: Likewise.
22424 * lib/isfinite.c: Likewise.
22425 * lib/signbitd.c: Likewise.
22426 * lib/signbitf.c: Likewise.
22427 * lib/vasnprintf.c: Likewise.
22428 * tests/test-ceilf1.c: Likewise.
22429 * tests/test-ceilf2.c: Likewise.
22430 * tests/test-floorf1.c: Likewise.
22431 * tests/test-floorf2.c: Likewise.
22432 * tests/test-frexp.c: Likewise.
22433 * tests/test-round1.c: Likewise.
22434 * tests/test-round2.c: Likewise.
22435 * tests/test-roundf1.c: Likewise.
22436 * tests/test-strtod.c: Likewise.
22437 * tests/test-trunc1.c: Likewise.
22438 * tests/test-trunc2.c: Likewise.
22439 * tests/test-truncf1.c: Likewise.
22440 * tests/test-truncf2.c: Likewise.
22441 * NEWS: Mention the renamed header files.
22443 2008-07-11 Jim Meyering <meyering@redhat.com>
22445 vc-list-files: make the last-resort awk code more portable
22446 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22447 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22448 does not support it.
22450 2008-07-10 Eric Blake <ebb9@byu.net>
22452 Work with tar's bootstrap.
22453 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22454 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22457 2008-07-09 Jim Meyering <meyering@redhat.com>
22459 posix-shell.m4: fix typo that made this test malfunction
22460 * m4/posix-shell.m4: Remove capitalization in variable name.
22462 2008-07-08 Bruno Haible <bruno@clisp.org>
22464 * m4/onceonly.m4: Update comments.
22465 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22467 2008-07-04 Jim Meyering <meyering@redhat.com>
22469 * users.txt: Add vc-dwim.
22470 (bison, coreutils): Use the gitweb URL.
22472 2008-07-03 Jim Meyering <meyering@redhat.com>
22474 * users.txt: Add libffcall. From Sam Steingold.
22476 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
22478 getdate.y: do not ignore TZ with relative day, month or year offset
22479 * lib/getdate.y (get_date): Move the tz-handling block to follow the
22480 relative-date-handling, since otherwise, the latter would clobber the
22481 sole output (an updated Start value) of the tz-handling block.
22482 * tests/test-getdate.c: Tests for the fix
22484 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22486 Recognize 'foo_LIBRARIES += libgnu.a'.
22487 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22488 makefile snippet has already specified an installation location,
22491 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
22493 getdate.y: factor out common actions
22494 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22495 Use them in place of open-coded actions.
22497 2008-07-01 Simon Josefsson <simon@josefsson.org>
22499 Add self-test for getdate module.
22500 * modules/getdate-tests: New file.
22501 * tests/test-getdate.c: New file.
22503 2008-06-29 Bruno Haible <bruno@clisp.org>
22505 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22507 Reported by Sylvain Beucler <beuc@beuc.net>.
22509 2008-06-29 Bruno Haible <bruno@clisp.org>
22511 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22512 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22514 2008-06-29 Bruno Haible <bruno@clisp.org>
22516 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22518 Reported by Sylvain Beucler <beuc@beuc.net>.
22520 2008-06-26 Jim Meyering <meyering@redhat.com>
22522 make several modules depend on the "open" module
22523 This provides slightly increased consistency when opening-for-write
22524 the name of a non-directory spelled with a trailing slash.
22525 * modules/chdir-safer: Likewise.
22526 * modules/chown: Likewise.
22527 * modules/clean-temp: Likewise.
22528 * modules/copy-file: Likewise.
22529 * modules/fchdir: Likewise.
22530 * modules/fcntl-safer: Likewise.
22531 * modules/pipe: Likewise.
22532 * modules/utime: Likewise.
22533 Prompted by Eric Blake and Bruno Haible.
22535 2008-06-24 Andreas Schwab <schwab@suse.de>
22537 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22538 literals can be used as initializers for global variables.
22540 2008-06-23 Eric Blake <ebb9@byu.net>
22542 Make gnulib-cache.m4 easier to diff.
22543 * gnulib-tool (func_import): Allow newlines when reading cached
22544 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22546 2008-06-23 Bruno Haible <bruno@clisp.org>
22548 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22549 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22550 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22551 m4/signalblocking.m4.
22552 (gl_PREREQ_SIGACTION): Don't invoke it.
22553 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22554 gl_PREREQ_SIG_HANDLER_H.
22555 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22556 Don't check for sigaction here.
22558 2008-06-23 Bruno Haible <bruno@clisp.org>
22560 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22561 (install_handlers): Don't set the SA_RESETHAND flag.
22563 2008-06-23 Bruno Haible <bruno@clisp.org>
22565 * m4/sigaction.m4: Comment fixes.
22566 * lib/signal.in.h: Likewise.
22568 2008-06-23 Eric Blake <ebb9@byu.net>
22571 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22573 Avoid SA_ namespace.
22574 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22575 Reported by Ralf Wildenhues.
22577 Avoid test failure due to SA_RESTORER.
22578 * tests/test-sigaction.c (SA_MASK): New macro.
22579 (main): Avoid failing due to extension flags being set.
22580 Reported by Jim Meyering.
22582 Revert use of sig-handler.h in sigprocmask.c.
22583 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22584 it requires the existence of struct sigaction.
22585 * lib/sigprocmask.c (handler_t): Restore typedef.
22586 (rpl_signal, old_handlers): Use local type.
22588 2008-06-22 Bruno Haible <bruno@clisp.org>
22590 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22592 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22594 2008-06-22 Bruno Haible <bruno@clisp.org>
22596 * doc/posix-functions/siginterrupt.texi: Move note.
22598 * lib/signal.in.h (SA_RESTART): New macro.
22599 * lib/sigaction.c: Update comment.
22601 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22603 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22604 (gl_PREREQ_SIGPROCMASK): Invoke it.
22605 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22607 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22609 * lib/sigprocmask.c: Update a comment.
22611 2008-06-21 Eric Blake <ebb9@byu.net>
22613 Use sigaction module rather than signal().
22614 * modules/c-stack (Depends-on): Add sigaction.
22615 * modules/fatal-signal (Depends-on): Likewise.
22616 * modules/nanosleep (Depends-on): Likewise.
22617 * modules/sigprocmask (Files): Add sig-handler.h.
22618 * modules/sigaction (Files): Likewise.
22619 * lib/sig-handler.h (get_handler): New file, suggested by Paul
22621 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22622 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22623 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22624 (init_fatal_signals): Likewise.
22625 * lib/nanosleep.c (rpl_nanosleep): Likewise.
22626 (siginterrupt): Delete fallback.
22627 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22629 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22632 New module sigaction, for mingw.
22633 * modules/sigaction: New module...
22634 * modules/sigaction-tests: ...and its test.
22635 * m4/sigaction.m4: New file.
22636 * lib/sigaction.c: Likewise.
22637 * tests/test-sigaction.c: Likewise.
22638 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22639 * modules/signal (Makefile.am): Likewise.
22640 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22642 * doc/posix-headers/signal.texi (signal.h): Mention provided
22644 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22645 that sigaction is preferable.
22646 * doc/posix-functions/sigaction.texi (sigaction): Mention new
22648 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22651 Improve robustness of sigprocmask by overriding signal.
22652 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22654 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22655 (SIGKILL, SIGSTOP): Provide fallbacks.
22656 (rpl_signal): Implement.
22657 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22658 signal can be called inside handlers.
22660 Fix nanosleep module on mingw.
22661 * modules/nanosleep (Depends-on): Add sys_select.
22662 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22664 Fix licensing of sigprocmask.
22665 * modules/raise (License): Relicense as LGPL.
22667 2008-06-21 Bruno Haible <bruno@clisp.org>
22669 * lib/propername.c (proper_name_utf8): Don't use the transliterated
22670 result if it contains question marks.
22671 Reported by Michael Geng <linux@michaelgeng.de>.
22673 2008-06-19 Bruno Haible <bruno@clisp.org>
22676 * doc/gnulib.texi: Include updated-stamp.texi.
22677 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22678 (updated-stamp.texi): New rule.
22679 (gnulib.info): Depend on it.
22680 * doc/.gitignore: Add updated-stamp.texi.
22681 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22683 2008-06-19 Bruno Haible <bruno@clisp.org>
22685 * doc/Makefile (gnulib.info): Update and simplify dependencies.
22686 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22688 2008-06-19 Eric Blake <ebb9@byu.net>
22690 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22691 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22692 Reported by Stepan Kasal.
22694 2008-06-18 Bruno Haible <bruno@clisp.org>
22696 * lib/fatal-signal.c (init_fatal_signals): Add comment.
22697 Reported by Eric Blake.
22699 2008-06-18 Eric Blake <ebb9@byu.net>
22701 Work around cygwin 1.5.25 strsignal bug.
22702 * tests/test-strsignal.c: Allow for const char *.
22703 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22705 2008-06-18 Simon Josefsson <simon@josefsson.org>
22707 * users.txt: Update URL to article and add author/date
22710 2008-06-17 Bruno Haible <bruno@clisp.org>
22712 New macro gl_DISABLE_THREADS.
22713 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22714 if the user did not pass --enable-threads or --disable-threads option.
22715 (gl_DISABLE_THREADS): New macro.
22716 Reported by Eric Blake <ebb9@byu.net>.
22718 2008-06-17 Bruno Haible <bruno@clisp.org>
22720 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22721 when the macro ignores it.
22722 Based on a patch by Eric Blake <ebb9@byu.net>.
22724 2008-06-17 Bruno Haible <bruno@clisp.org>
22726 * modules/tls (License): Change to LGPLv2+.
22727 Reported by Eric Blake.
22729 2008-06-17 Eric Blake <ebb9@byu.net>
22731 Simplify c-stack prerequisites.
22732 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22733 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22734 no longer requires <ucontext.h> to exist. Optimize setrlimit
22736 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22739 Move c-stack test into testsuite.
22740 * modules/c-stack-tests: New file.
22741 * lib/c-stack.c [DEBUG]: Move test program...
22742 * tests/test-c-stack.c: ...into this new file. Skip rather than
22743 fail test if sigaltstack is lacking.
22744 * tests/test-c-stack.sh: New driver file.
22746 2008-06-16 Eric Blake <ebb9@byu.net>
22748 Use raise module consistently.
22749 * modules/fatal-signal (Depends-on): Add raise.
22750 * modules/sigprocmask (Depends-on): Likewise.
22751 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22752 * lib/sigprocmask.c (sigprocmask): Likewise.
22753 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22754 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22756 Fix compliance bug in sigpending.
22757 * lib/sigprocmask.c (sigpending): Return pending array via
22758 parameter, not return value.
22760 2008-06-14 Eric Blake <ebb9@byu.net>
22762 Improve obstack-printf test code.
22763 * tests/test-obstack-printf.c (test_function): Fix comment, and
22764 simplify usage of obstack_* in macros. Add a test for coverage.
22765 Reported by Bruno Haible.
22767 2008-06-14 Bruno Haible <bruno@clisp.org>
22769 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22770 array size as a constant, not as a const variable.
22771 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22772 AC_USE_SYSTEM_EXTENSIONS.
22773 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22774 Test whether the obstack_printf function actually exists.
22775 * modules/obstack-printf (Depends-on): Add extensions.
22776 (Include): Remove obstack.h.
22777 * modules/obstack-printf-posix (Depends-on): Add extensions.
22778 (Include): Remove obstack.h.
22780 2008-06-13 Eric Blake <ebb9@byu.net>
22782 Add obstack-printf and obstack-printf-posix modules.
22783 * modules/obstack-printf: New file.
22784 * modules/obstack-printf-posix: Likewise.
22785 * MODULES.html.sh (Misc): Mention them.
22786 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22788 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22790 * modules/stdio (Makefile.am): Accomodate new modules.
22791 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22792 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22794 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22796 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22797 (gl_REPLACE_OBSTACK_PRINTF): New macros
22798 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22799 * tests/test-obstack-printf.c: New file.
22800 * modules/obstack-printf-tests: Likewise.
22801 * modules/obstack-printf-posix-tests: Likewise.
22803 2008-06-11 Bruno Haible <bruno@clisp.org>
22805 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22806 * lib/open.c: Include errno.h.
22807 (open): Fail when attempting to write to a file that has a trailing
22809 * tests/test-open.c (main): Test against trailing slash bug.
22810 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22812 2008-06-10 Bruno Haible <bruno@clisp.org>
22814 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22815 for $? to work inside the trap command, with various /bin/sh-s.
22816 * tests/test-vc-list-files-cvs.sh: Likewise.
22818 2008-06-10 Bruno Haible <bruno@clisp.org>
22820 * lib/acl-internal.h: Don't include gettext.h here.
22821 * lib/set-mode-acl.c: Include gettext.h here.
22822 * lib/copy-acl.c: Likewise.
22824 2008-06-10 Bruno Haible <bruno@clisp.org>
22826 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22827 * lib/wait-process.c (wait_subprocess): Likewise.
22828 * lib/execute.h (execute): Add termsigp argument.
22829 * lib/execute.c (execute): Likewise.
22830 * lib/csharpcomp.c (compile_csharp_using_pnet,
22831 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22832 * lib/csharpexec.c (execute_csharp_using_pnet,
22833 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22834 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22835 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22836 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22837 is_jikes_present): Update.
22838 * lib/javaexec.c (execute_java_class): Update.
22839 * lib/javaversion.c (execute_and_read_line): Update.
22840 * NEWS: Document the changes.
22841 Reported by Eric Blake.
22843 2008-06-10 Eric Blake <ebb9@byu.net>
22845 Add missing include.
22846 * tests/test-strstr.c (includes): Add <signal.h>.
22847 * tests/test-strcasestr.c (includes): Likewise.
22848 * tests/test-memmem.c (includes): Likewise.
22850 2008-06-10 Bruno Haible <bruno@clisp.org>
22852 * lib/wait-process.c (wait_subprocess): Add an assertion.
22854 2008-06-10 Bruno Haible <bruno@clisp.org>
22856 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22858 2008-06-10 Bruno Haible <bruno@clisp.org>
22860 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22862 * tests/test-strcasestr.c (main): Likewise.
22863 * tests/test-strstr.c (main): Likewise.
22865 2008-06-09 Bruno Haible <bruno@clisp.org>
22867 Work around the Solaris 10 ACE ACLs ABI change.
22868 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22869 declare if ACL_NO_TRIVIAL is present.
22870 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22871 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22872 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22873 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22874 define if ACL_NO_TRIVIAL is present.
22875 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22876 and use the current ABI.
22877 (file_has_acl): Use same #if condition as elsewhere.
22878 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22879 in use, and use the current ABI.
22880 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22881 Reported by Jim Meyering.
22883 2008-06-09 Eric Blake <ebb9@byu.net>
22885 Work around environments that (stupidly) ignore SIGALRM.
22886 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22887 before using alarm().
22888 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22889 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22890 Reported by Ian Beckwith <ianb@erislabs.net>.
22892 Produce autobuild blurb earlier in log.
22893 * modules/autobuild (configure.ac-early): Move AB_INIT here.
22895 2008-06-09 Jim Meyering <meyering@redhat.com>
22896 and Ondřej Vašík <ovasik@redhat.com>
22898 utimens.c: correct kernel bug work-around
22899 Ondřej Vašík found that the invalid return value of 280 indicates
22900 failure, not success, and the kernel bug we're trying to work
22901 around affects not just the utimensat call, but also the fallback
22903 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22905 [HAVE_FUTIMENS]: Use the same work-around, here.
22907 2008-06-09 Jim Meyering <meyering@redhat.com>
22909 add more guards around definition of ACE_-related code
22910 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22911 ALLOW and ACE_OWNER are also defined.
22913 2008-06-08 Bruno Haible <bruno@clisp.org>
22915 * lib/acl-internal.h: Add me as co-author.
22916 * lib/file-has-acl.c: Likewise.
22917 * lib/set-mode-acl.c: Likewise.
22918 * lib/copy-acl.c: Likewise.
22920 2008-06-08 Bruno Haible <bruno@clisp.org>
22922 Add support for AIX ACLs.
22923 * lib/acl-internal.h (acl_nontrivial): New declaration.
22924 * lib/file-has-acl.c (acl_nontrivial): New function.
22925 (file_has_acl): Add implementation using AIX 4 ACL API.
22926 * lib/set-mode-acl.c (qset_acl): Likewise.
22927 * lib/copy-acl.c (qcopy_acl): Likewise.
22929 2008-06-08 Bruno Haible <bruno@clisp.org>
22931 Add support for HP-UX ACLs.
22932 * lib/acl-internal.h (acl_nontrivial): New declaration.
22933 * lib/file-has-acl.c (acl_nontrivial): New function.
22934 (file_has_acl): Add implementation using HP-UX 11 ACL API.
22935 * lib/set-mode-acl.c (qset_acl): Likewise.
22936 * lib/copy-acl.c (qcopy_acl): Likewise.
22938 2008-06-08 Bruno Haible <bruno@clisp.org>
22940 Add support for Cygwin ACLs.
22941 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22942 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22943 the chmod_or_fchmod call.
22944 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22946 2008-06-08 Bruno Haible <bruno@clisp.org>
22948 Fix bug with setuid modes in Solaris 10+ code.
22949 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22950 succeeded, when the mode contains some special bits.
22952 2008-06-08 Bruno Haible <bruno@clisp.org>
22954 Add support for Solaris 7..10 ACLs.
22955 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22957 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22959 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22960 * lib/set-mode-acl.c (qset_acl): Likewise.
22961 * lib/copy-acl.c (qcopy_acl): Likewise.
22963 2008-06-08 Bruno Haible <bruno@clisp.org>
22965 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22967 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22968 (acl_access_nontrivial): Remove MacOS X case.
22969 (file_has_acl): Use acl_extended_nontrivial.
22970 * lib/copy-acl.c (qcopy_acl): Likewise.
22972 2008-06-08 Bruno Haible <bruno@clisp.org>
22974 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22976 2008-06-08 Jim Meyering <meyering@redhat.com>
22978 * modules/acl (Maintainer): Add Bruno Haible.
22980 2008-06-07 Bruno Haible <bruno@clisp.org>
22982 Improve support for Tru64 ACLs.
22983 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22986 2008-06-07 Bruno Haible <bruno@clisp.org>
22988 Add support for MacOS X ACLs.
22989 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22990 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22991 * lib/set-mode-acl.c (qset_acl): Likewise.
22992 * lib/copy-acl.c (qcopy_acl): Likewise.
22994 2008-06-07 Bruno Haible <bruno@clisp.org>
22996 Fix memory leak introduced on 2008-05-22.
22997 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23000 2008-06-07 Bruno Haible <bruno@clisp.org>
23002 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23003 to construct an empty ACL.
23005 2008-06-07 Bruno Haible <bruno@clisp.org>
23007 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23009 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23011 2008-06-07 Bruno Haible <bruno@clisp.org>
23013 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23014 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23016 2008-06-07 Bruno Haible <bruno@clisp.org>
23018 * doc/posix-functions/_setjmp.texi: Explain the use of this function
23019 regardless of POSIX.
23020 * doc/posix-functions/_longjmp.texi: Likewise.
23021 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23022 SystemV platform in this case.
23024 2008-06-06 Eric Blake <ebb9@byu.net>
23026 Document abort() bugs.
23027 * doc/posix-functions/abort.texi (abort): Mention anomalies.
23029 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23030 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23032 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23033 siglongjmp, but only as a macro.
23034 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23036 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23038 Tweak documentation to cover cygwin argz bugs.
23039 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23040 argz bug fix; no code change needed since no cygwin releases
23041 occurred between the last fix and the bug being tested.
23042 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23043 module and recently fixed cygwin bugs.
23044 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23045 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23046 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23047 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23048 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23050 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23051 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23052 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23053 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23054 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23055 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23058 Avoid gcc warning on cygwin.
23059 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23060 !ACL_NO_TRIVIAL]: Avoid unused variable.
23062 2008-06-05 Eric Blake <ebb9@byu.net>
23064 Be tolerant of UNKNOWN version in gnulib-tool test dir.
23065 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23066 git-version-gen fails to come up with a version.
23067 Reported by Simon Josefsson.
23069 2008-06-05 Jim Meyering <meyering@redhat.com>
23070 Paul Eggert <eggert@cs.ucla.edu>
23072 utimens.c: work around a probable Linux kernel bug
23073 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23074 appears to be a kernel bug that causes utimensat to return 280
23075 instead of 0, indicating success.
23077 2008-06-04 Bruno Haible <bruno@clisp.org>
23079 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23082 2008-06-04 Bruno Haible <bruno@clisp.org>
23084 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23085 * lib/file-has-acl.c (acl_access_nontrivial): New function.
23086 (file_has_acl): Use it. Save errno afterwards.
23087 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23089 2008-06-03 Bruno Haible <bruno@clisp.org>
23091 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23092 draft code. Simplify #ifs.
23093 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23094 Put Solaris code after POSIX-draft code. Fix comments regarding
23095 Solaris 10, HP-UX. Mention Cygwin.
23096 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23098 2008-06-03 Eric Blake <ebb9@byu.net>
23100 Provide fallback for older kernels.
23101 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23102 Provide runtime fallback if kernel lacks support.
23103 Reported by Mike Frysinger.
23105 2008-06-02 Bruno Haible <bruno@clisp.org>
23107 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23110 2008-06-02 Bruno Haible <bruno@clisp.org>
23112 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23113 * lib/copy-acl.c (qcopy_acl): Update comment.
23115 2008-06-02 Bruno Haible <bruno@clisp.org>
23117 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23120 2008-06-02 Bruno Haible <bruno@clisp.org>
23122 * tests/test-file-has-acl.sh: Use different code for Cygwin.
23123 * tests/test-set-mode-acl.sh: Likewise.
23124 * tests/test-copy-acl.sh: Likewise.
23125 * tests/test-copy-file.sh: Likewise.
23127 2008-06-02 Bruno Haible <bruno@clisp.org>
23129 * tests/test-file-has-acl.sh: Remove unused code.
23131 2008-06-01 Bruno Haible <bruno@clisp.org>
23133 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23134 (copy_acl): Just a wrapper around qcopy_acl that emits the error
23136 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23138 2008-06-01 Bruno Haible <bruno@clisp.org>
23140 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23141 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23142 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23144 * modules/acl-tests (configure.ac): Remove tests now contained in
23147 2008-06-02 Jim Meyering <meyering@redhat.com>
23149 announce-gen: use a better key-server host name
23150 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23151 it may be more consistently reliable. Suggested by Werner Koch
23152 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23154 2008-06-01 Bruno Haible <bruno@clisp.org>
23156 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23157 Reported by Voroskoi Andras <voroskoi@gmail.com>.
23159 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
23161 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23163 2008-06-01 Bruno Haible <bruno@clisp.org>
23166 * tests/test-file-has-acl.sh: New file.
23167 * tests/test-file-has-acl.c: New file.
23168 * tests/test-set-mode-acl.sh: New file.
23169 * tests/test-set-mode-acl.c: New file.
23170 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23171 * tests/test-copy-acl.c: New file.
23172 * modules/acl-tests: New file, based on modules/copy-file-tests.
23173 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23174 (Depends-on): Add acl-tests.
23175 (configure.ac): Remove checks.
23176 (Makefile.am): Don't create test-sameacls program here any more.
23178 2008-06-01 Bruno Haible <bruno@clisp.org>
23180 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23181 * tests/test-sameacls.c: Include progname.h.
23182 (main): Invoke set_program_name. Portability fixes for MacOS X,
23185 2008-06-01 Bruno Haible <bruno@clisp.org>
23187 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23189 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23191 2008-06-01 Bruno Haible <bruno@clisp.org>
23193 * modules/rpmatch (Depends-on): Add strdup.
23195 2008-06-01 Bruno Haible <bruno@clisp.org>
23197 * lib/pipe.c: Include unistd-safer.h.
23198 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23199 * modules/pipe (Depends-on): Add unistd-safer.
23201 2008-05-30 Simon Josefsson <simon@josefsson.org>
23203 * modules/autobuild (configure.ac): Call AB_INIT.
23205 2008-05-30 Simon Josefsson <simon@josefsson.org>
23207 * tests/test-getaddrinfo.c: Don't print debug messages by default.
23208 Suggested by Bruno Haible <bruno@clisp.org>.
23210 2008-05-30 Simon Josefsson <simon@josefsson.org>
23212 * tests/test-base64.c: Cast size_t to unsigned long when invoking
23213 printf. Use %lu instead of %d. Reported by Bruno Haible
23216 2008-05-29 Eric Blake <ebb9@byu.net>
23218 Prefer new POSIX 200x interfaces over futimesat.
23219 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23220 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23222 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23224 2008-05-28 Bruno Haible <bruno@clisp.org>
23226 * modules/stpcpy (License): Change to LGPLv2+.
23227 Requested by David Lutterkort <dlutter@redhat.com>.
23229 2008-05-27 Bruno Haible <bruno@clisp.org>
23231 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23233 Reported by Jose E. Marchesi <jemarch@gnu.org>.
23235 2008-05-27 Bruno Haible <bruno@clisp.org>
23237 * modules/iconv_open (Link): New section, from module 'iconv'.
23238 * modules/striconv (Link): Likewise.
23239 * modules/striconveh (Link): Likewise.
23240 * modules/xstriconv (Link): Likewise.
23241 * modules/unicodeio (Link): Likewise.
23242 * modules/propername (Link): Likewise.
23243 Reported by Jim Meyering.
23245 2008-05-26 Jim Meyering <meyering@redhat.com>
23247 sha256: do not artificially restrict buffer length to be < 2^32
23248 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23249 uint32_t to size_t.
23250 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23253 avoid unaligned access errors, e.g., on sparc
23254 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23255 direct access through a possibly-unaligned uint64* pointer.
23256 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23257 direct access through a possibly-unaligned uint32* pointer.
23258 Prompted by this patch from Tom "spot" Callaway:
23259 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23261 sha512.c: fix typo in comment
23262 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23264 2008-05-25 Bruno Haible <bruno@clisp.org>
23266 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23267 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23268 (Makefile.am): Update lib_SOURCES.
23270 2008-05-25 Bruno Haible <bruno@clisp.org>
23272 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23274 2008-05-25 Jim Meyering <meyering@redhat.com>
23276 useless-if-before-free: freed expr may have white-space differences
23277 * build-aux/useless-if-before-free: Recognize cases in which the
23278 freed expression differs from the tested one in embedded white
23279 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23280 $1 was used, so we can't make any regexp shy. Improved tests now
23283 useless-if-before-free: accept white space in the expression.
23284 * build-aux/useless-if-before-free: For now, any white space
23285 in the expression must be identical in the free argument.
23287 useless-if-before-free: efficiency tweak
23288 * build-aux/useless-if-before-free: Make the expression-matching
23290 Make the *outer* regexp shy, not the expr-matching one.
23292 update code-in-comment to accept cast of free arg
23293 * build-aux/useless-if-before-free: Update regexp.
23295 2008-05-25 Bruno Haible <bruno@clisp.org>
23297 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23298 * modules/copy-file-tests (Files, Makefile.am): Update.
23299 * tests/test-copy-file.c (func_test_copy): Update.
23301 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23303 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23305 2008-05-23 Bruno Haible <bruno@clisp.org>
23307 Improve support for ACLs on OSF/1.
23308 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23309 Remove fallback for unknown flavors of ACLs.
23311 2008-05-22 Bruno Haible <bruno@clisp.org>
23313 Add support for ACLs on OSF/1.
23314 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23316 (acl_free_text): New macro fallback.
23317 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23319 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23320 acl_free_text function. Require AC_C_INLINE.
23322 2008-05-22 Bruno Haible <bruno@clisp.org>
23324 Make copy_acl work on MacOS X 10.5.
23325 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23326 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23327 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23328 If MODE_INSIDE_ACL, don't assume that every system has the same text
23329 representation for ACLs as FreeBSD.
23330 * lib/copy-acl.c (copy_acl): Add support for platforms with
23332 * lib/file-has-acl.c (file_has_acl): Likewise.
23333 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23334 FreeBSD, MacOS X, or IRIX, respectively.
23336 2008-05-22 Bruno Haible <bruno@clisp.org>
23338 * lib/acl.h: Don't include <sys/acl.h>.
23339 (GETACLCNT): Move fallback to lib/acl-internal.h.
23340 * lib/acl-internal.h: Include <sys/acl.h> here.
23341 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23343 2008-05-22 Bruno Haible <bruno@clisp.org>
23345 Split off copy_acl function to separate file.
23346 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23347 * lib/acl.c (copy_acl): Moved function to separate file.
23348 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23349 * modules/acl (Files): Add lib/copy-acl.c.
23350 (Makefiles.am): Augment lib_SOURCES.
23352 2008-05-22 Bruno Haible <bruno@clisp.org>
23354 * modules/copy-file-tests: New file.
23355 * tests/test-copy-file.sh: New file.
23356 * tests/test-copy-file.c: New file.
23357 * tests/test-copy-file-sameacls.c: New file.
23359 2008-05-22 Eric Blake <ebb9@byu.net>
23362 * tests/test-memcmp.c (main): Pass NULL indirectly.
23364 2008-05-21 Bruno Haible <bruno@clisp.org>
23366 Add reference doc about ACLs.
23367 * doc/acl-resources.txt: New file.
23368 * doc/acl-cygwin.txt: New file.
23370 2008-05-21 Bruno Haible <bruno@clisp.org>
23372 Avoid one more warning from gcc.
23373 * lib/vasnprintf.c (IF_LINT): Update comments.
23374 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23376 2008-05-21 Jim Meyering <meyering@redhat.com>
23378 avoid a warning from gcc
23379 * lib/vasnprintf.c (IF_LINT): Define.
23380 (scale10_round_decimal_long_double):
23381 Use it to avoid a "may be used uninitialized" warning.
23382 (scale10_round_decimal_double): Likewise.
23384 2008-05-21 Simon Josefsson <simon@josefsson.org>
23386 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23389 2008-05-20 Bruno Haible <bruno@clisp.org>
23391 * tests/test-memcmp.c (main): Test also the sign of the result. Test
23392 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23394 2008-05-20 Simon Josefsson <simon@josefsson.org>
23396 * modules/memcmp-tests: New file.
23397 * tests/test-memcmp.c: New file.
23399 2008-05-19 Bruno Haible <bruno@clisp.org>
23401 * modules/propername (Notice, configure.ac): Put quoted "..." into
23403 * lib/propername.h: Update comments accordingly.
23404 Reported by Eric Blake.
23406 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23408 * modules/getpass-gnu (Depends-on): Add fseeko.
23410 2008-05-19 Simon Josefsson <simon@josefsson.org>
23412 * modules/base64-tests: New file.
23414 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23416 * lib/base64.c (base64_decode_ctx): If a decode context structure
23417 was passed in use it to ignore newlines. If a context structure
23418 was _not_ passed in, continue to treat newlines as garbage (this
23419 is the historical behavior). Formerly base64_decode.
23420 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23421 takes a decode context structure.
23422 * lib/base64.h (base64_decode): Macro for four-argument calls.
23423 (base64_decode_alloc): Likewise.
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.
23433 2008-05-19 Jim Meyering <meyering@redhat.com>
23435 avoid a warning from gcc
23436 * lib/trim.c (IF_LINT): Define.
23437 (trim2): Use it to avoid a "may be used uninitialized" warning.
23440 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23442 2008-05-19 Bruno Haible <bruno@clisp.org>
23444 * doc/glibc-functions/getpass.texi: Document limits of other
23447 2008-05-19 Simon Josefsson <simon@josefsson.org>
23448 Bruno Haible <bruno@clisp.org>
23450 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23452 2008-05-18 Bruno Haible <bruno@clisp.org>
23454 * modules/propername: New file, from GNU gettext.
23455 * lib/propername.h: New file, from GNU gettext.
23456 * lib/propername.c: New file, from GNU gettext.
23457 * MODULES.html.sh (Internationalization functions): Add propername.
23459 2008-05-16 Jim Meyering <meyering@redhat.com>
23460 Bruno Haible <bruno@clisp.org>
23462 Avoid some warnings from "gcc -Wshadow".
23463 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23465 2008-05-15 Eric Blake <ebb9@byu.net>
23467 Extend previous patch to cygwin 1.7.0.
23468 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23469 fast implementation in cygwin >= 1.7.0.
23470 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23471 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23473 2008-05-15 Bruno Haible <bruno@clisp.org>
23475 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23476 implementation in glibc >= 2.9.
23477 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23478 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23480 2008-05-15 Bruno Haible <bruno@clisp.org>
23482 * MODULES.html.sh (Internationalization functions): Remove linebreak.
23483 (Unicode string functions): Add unilbrk/*.
23484 Reported by Karl Berry.
23486 2008-05-15 Eric Blake <ebb9@byu.net>
23488 Fix violation of <stdbool.h> replacement in regex.
23489 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23490 * lib/regexec.c (re_search_internal): Likewise.
23491 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23493 2008-05-15 Jim Meyering <meyering@redhat.com>
23495 avoid distracting test output when git or cvs is not found
23496 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23497 * tests/test-vc-list-files-git.sh: Likewise.
23499 2008-05-15 Eric Blake <ebb9@byu.net>
23501 Glibc finally accepted the memmem speedup code, bugzilla #5514.
23502 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23504 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23505 * doc/posix-functions/strstr.texi (strstr): Likewise.
23506 * lib/str-two-way.h (MAX): Sychronize with glibc.
23508 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
23510 * lib/regcomp.c (optimize_utf8): Add a note on why we test
23512 (calc_first): Initialize constraint field.
23513 (duplicate_node_closure): Use it instead of special casing ANCHORS.
23515 (duplicate_node): Merge constraint field for all node types.
23516 (calc_eclosure_iter): Look at constraint field for all node types.
23517 * lib/regex_internal.c (create_cd_newstate): Don't look at
23520 2008-05-14 Bruno Haible <bruno@clisp.org>
23522 Help GCC to do better code generation.
23523 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23524 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23525 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23526 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23527 Declare with attribute 'malloc' if supported.
23529 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
23531 use "echo STR|wc -c" rather than unportable "expr length STR"
23532 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23533 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23535 2008-05-14 Jim Meyering <meyering@redhat.com>
23537 use dd ibs=$n count=1 ... rather than less-portable head -c$n
23538 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23539 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23540 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23543 2008-05-14 Eric Blake <ebb9@byu.net>
23545 Avoid quadratic growth in gl_LIBSOURCES.
23546 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23547 Suggested by Bruno Haible.
23550 * modules/xmemdup0-tests: New file.
23551 * tests/test-xmemdup0.c: Likewise.
23553 2008-05-13 Eric Blake <ebb9@byu.net>
23555 Split xmemdup0 into its own module.
23556 * modules/xmemdup0: New file.
23557 * lib/xmemdup0.h: Likewise.
23558 * lib/xmemdup0.c: Likewise.
23559 * MODULES.html.sh (Memory management functions): Add xmemdup0.
23560 * lib/xalloc.h (xmemdup0): Remove.
23561 * lib/xmalloc.c (xmemdup0): Likewise.
23563 2008-05-13 Eric Blake <ebb9@byu.net>
23564 Bruno Haible <bruno@clisp.org>
23566 Reduce number of forks required during autoconf.
23567 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23568 and gl_LIBSOURCES_DIR.
23569 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23570 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23571 m4_syscmd per file.
23572 <m4_foreach_w>: Move...
23573 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23575 2008-05-13 Eric Blake <ebb9@byu.net>
23577 * gnulib-tool: Fix various comment typos.
23579 2008-05-12 Bruno Haible <bruno@clisp.org>
23581 Tailor the linebreaking algorithm.
23582 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23584 2008-05-12 Bruno Haible <bruno@clisp.org>
23586 Update to Unicode 5.0.0.
23587 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23588 LBP_JV, LBP_JT. Redistribute values.
23589 (unilbrk_table): Change size.
23590 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23591 Unicode TR#14 rev. 22.
23592 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23593 LBP_JV, LBP_JT. Redistribute values.
23594 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23595 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23597 * lib/unilbrk/lbrkprop1.h: Regenerated.
23598 * lib/unilbrk/lbrkprop2.h: Regenerated.
23599 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23600 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23601 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23603 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23605 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23607 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23608 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23609 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23610 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23611 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23612 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23614 2008-05-11 Bruno Haible <bruno@clisp.org>
23616 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23618 2008-05-11 Bruno Haible <bruno@clisp.org>
23620 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23621 * modules/unilbrk/gen-lbrk: New file.
23623 2008-05-11 Bruno Haible <bruno@clisp.org>
23625 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23626 * m4/sha512.m4 (gl_SHA512): Likewise.
23628 2008-05-11 Jim Meyering <meyering@redhat.com>
23630 New modules: crypto/sha256, crypto/sha512 (from coreutils)
23631 * modules/crypto/sha256: New file.
23632 * modules/crypto/sha512: Likewise.
23633 * lib/sha256.c: Likewise.
23634 * lib/sha256.h: Likewise.
23635 * lib/sha512.c: Likewise.
23636 * lib/sha512.h: Likewise.
23637 * lib/u64.h: Likewise.
23638 * m4/sha256.m4: Likewise.
23639 * m4/sha512.m4: Likewise.
23640 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23642 2008-05-10 Bruno Haible <bruno@clisp.org>
23644 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23645 (Input/Output <stdio.h>): Add xprintf.
23646 (Signal handling <signal.h>): Add strsignal.
23647 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23648 (Core language properties): Add func.
23649 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23650 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23652 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23653 (Input/output): New section.
23654 (File system functions): Add openat-die, stat-macros.
23655 (Networking functions): Add sockets.
23656 (Unicode string functions): Add unictype/*.
23657 (Support for building libraries and executables): Add gperf.
23658 (Support for building documentation): Add agpl-3.0.
23659 (Misc): Add nocrash.
23661 2008-05-10 Bruno Haible <bruno@clisp.org>
23663 * modules/unictype/gen-ctype: New file.
23665 2008-05-10 Jim Meyering <meyering@redhat.com>
23667 Make chdir-safer.c more efficient on a system with no symlinks.
23668 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23669 also if ELOOP is zero. Suggested by Bruno Haible.
23671 Make chdir-safer.c slightly safer.
23672 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23673 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23675 Avoid compile failure on systems without ELOOP (like mingw).
23676 * lib/chdir-safer.c (ELOOP): Define if not already defined.
23677 Reported by Bruno Haible.
23679 2008-05-10 Bruno Haible <bruno@clisp.org>
23681 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23682 (is_utf8_encoding): Use a case-insensitive comparison.
23683 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23686 2008-05-10 Bruno Haible <bruno@clisp.org>
23688 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23689 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23690 * lib/unilbrk/ulc-common.h (iconv_string_length,
23691 iconv_string_keeping_offsets): Remove declarations.
23692 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23693 Don't include <iconv.h>, streq.h, xsize.h.
23694 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23696 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23697 <iconv.h>, streq.h, xsize.h.
23698 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23700 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23701 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23702 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23703 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23705 2008-05-10 Bruno Haible <bruno@clisp.org>
23707 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23708 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23710 * modules/unilbrk/u32-width-linebreaks-tests: New file.
23711 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23713 * modules/unilbrk/u16-width-linebreaks-tests: New file.
23714 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23716 * modules/unilbrk/u8-width-linebreaks-tests: New file.
23717 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23719 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23720 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23722 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23723 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23725 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23726 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23728 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23729 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23731 2008-05-10 Bruno Haible <bruno@clisp.org>
23733 Split up 'linebreak' module.
23734 * lib/unilbrk.h: New file, based on lib/linebreak.h.
23735 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23736 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23738 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23739 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23740 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23742 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23744 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23746 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23747 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23748 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23750 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23752 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23754 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23756 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23758 * modules/unilbrk/base: New file.
23759 * modules/unilbrk/tables: New file.
23760 * modules/unilbrk/u8-possible-linebreaks: New file.
23761 * modules/unilbrk/u16-possible-linebreaks: New file.
23762 * modules/unilbrk/u32-possible-linebreaks: New file.
23763 * modules/unilbrk/ulc-common: New file.
23764 * modules/unilbrk/ulc-possible-linebreaks: New file.
23765 * modules/unilbrk/u8-width-linebreaks: New file.
23766 * modules/unilbrk/u16-width-linebreaks: New file.
23767 * modules/unilbrk/u32-width-linebreaks: New file.
23768 * modules/unilbrk/ulc-width-linebreaks: New file.
23769 * lib/linebreak.h: Remove file.
23770 * lib/linebreak.c: Remove file.
23771 * m4/linebreak.m4: Remove file.
23772 * modules/linebreak: Remove file.
23773 * NEWS: Mention the changes.
23775 2008-05-09 Eric Blake <ebb9@byu.net>
23778 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23780 * lib/xmalloc.c (xmemdup0): New C implementation.
23782 2008-05-08 Bruno Haible <bruno@clisp.org>
23784 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23786 2008-05-07 Eric Blake <ebb9@byu.net>
23788 Support cross-compilation of <wctype.h>.
23789 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23792 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23794 * build-aux/vc-list-files: Add support for bzr.
23796 2008-05-03 Jim Meyering <meyering@redhat.com>
23798 avoid failed assertion with tight malloc
23799 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23801 2008-05-03 Simon Josefsson <simon@josefsson.org>
23803 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23804 are needed from arpa/inet.h.
23805 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23806 Reported by Bruno Haible.
23808 2008-05-02 Jim Meyering <meyering@redhat.com>
23810 avoid compilation error on FreeBSD 6
23811 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23813 2008-05-01 Jim Meyering <meyering@redhat.com>
23815 useless-if-before-free: correct --help's exit status description
23816 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23817 for one or more matches, etc. Reported by Bruno Haible.
23819 vc-list-files: make the stand-alone gnulib test work
23820 * modules/vc-list-files-tests (configure.ac):
23821 Define and AC_SUBST abs_aux_dir.
23822 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23823 $(abs_top_srcdir) to each script and having each of them
23824 duplicate the work of setting PATH, set PATH here, using
23825 the new variable, abs_aux_dir instead.
23826 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23827 * tests/test-vc-list-files-git.sh: Likewise.
23828 Reported by Bruno Haible.
23830 2008-05-01 Bruno Haible <bruno@clisp.org>
23832 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23833 reallocation. Rename 'done' to 'found_delimiter'.
23835 2008-05-01 Jim Meyering <meyering@redhat.com>
23837 vc-list-files: accommodate /bin/sh like the one from Solaris 10
23838 * build-aux/vc-list-files: Use `...`, not $(...).
23840 2008-04-30 Jim Meyering <meyering@redhat.com>
23842 add tests for vc-list-files
23843 * modules/vc-list-files-tests: New module.
23844 * tests/test-vc-list-files-cvs.sh: New file.
23845 * tests/test-vc-list-files-git.sh: New file.
23847 avoid a warning from gcc
23848 * lib/getndelim2.c (IF_LINT): Define.
23849 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23851 vc-list-files: work properly with build-aux/cvsu, too
23852 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23853 to all cvs-based clauses.
23855 vc-list-files: work properly in the CVS+awk case, too
23856 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23858 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23859 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23860 take more than one file argument, so . Add quotes, just in case $dir
23861 ever contains a shell meta-character. Prompted by Soren Hansen in
23862 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23864 2008-04-29 Eric Blake <ebb9@byu.net>
23866 Optimize getndelim2 to use block operations when possible.
23867 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23868 freadseek, and memchr2.
23869 * lib/getndelim2.c (getndelim2): Use them for block reads.
23871 2008-04-29 Bruno Haible <bruno@clisp.org>
23873 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23874 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23875 * modules/inet_ntop (Depends-on): Add extensions.
23876 * modules/inet_pton (Depends-on): Likewise.
23877 Reported by Simon Josefsson.
23879 2008-04-29 Jim Meyering <meyering@redhat.com>
23881 When the is more than one match in a block, match all of them.
23882 * build-aux/useless-if-before-free: Iterate through each block
23883 until there are no more matches.
23885 Fix broken useless-if-before-free script.
23886 * build-aux/useless-if-before-free: Fix typo: missing "?" after
23887 the expression to match cast of argument to free-like function.
23889 2008-04-29 Eric Blake <ebb9@byu.net>
23892 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23894 2008-04-29 Jim Meyering <meyering@redhat.com>
23896 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23897 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23898 by gnulib to exist and to declare e.g., inet_ntop.
23899 Don't include "inet_ntop.h", now removed.
23901 * m4/arpa_inet_h.m4: Remove trailing blanks.
23903 2008-04-29 Eric Blake <ebb9@byu.net>
23905 Silence valgrind on safe reads beyond potential array bounds.
23906 * lib/rawmemchr.valgrind: New file.
23907 * lib/strchrnul.valgrind: Likewise.
23908 * modules/rawmemchr (Files): Distribute new file.
23909 * modules/strchrnul (Files): Likewise.
23910 Suggested by Bruno Haible.
23912 2008-04-29 Bruno Haible <bruno@clisp.org>
23914 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23915 (inet_ntop, inet_pton): Change portability warning's wording.
23916 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23917 Invoke gl_CHECK_NEXT_HEADERS.
23918 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23919 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23921 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23922 * modules/arpa_inet (Description): No longer only for systems that
23924 (Depends-on): Add include_next.
23925 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23928 2008-04-29 Jim Meyering <meyering@redhat.com>
23930 * modules/mkdir (License): Re-license as LGPLv2+.
23932 2008-04-29 Bruno Haible <bruno@clisp.org>
23934 * modules/rawmemchr (Maintainer): Set to Eric.
23935 * modules/strchrnul (Maintainer): Likewise.
23937 2008-04-29 Simon Josefsson <simon@josefsson.org>
23939 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23940 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23942 * modules/arpa_inet (arpa/inet.h): Use them.
23944 2008-04-28 Eric Blake <ebb9@byu.net>
23947 * modules/getndelim2-tests: New file.
23948 * tests/test-getndelim2.c: Likewise.
23949 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
23951 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23953 * MODULES.html.sh: Document new module.
23955 2008-04-20 Bruno Haible <bruno@clisp.org>
23957 * lib/c-stack.c (die): Use raise.
23958 * modules/c-stack (Depends-on): Add raise.
23960 2008-04-28 Bruno Haible <bruno@clisp.org>
23962 Expect rpmatch to be declared.
23963 * lib/yesno.c (rpmatch): Remove declaration.
23966 * lib/stdlib.in.h (rpmatch): New declaration.
23967 * lib/rpmatch.c: Include <stdlib.h> first.
23968 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23969 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23970 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23972 * modules/rpmatch (Depends-on): Add stdlib, extensions.
23973 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23974 (Include): Set to <stdlib.h>.
23975 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23977 * NEWS: Document the change.
23979 2008-04-28 Bruno Haible <bruno@clisp.org>
23981 Change rpmatch to use nl_langinfo when appropriate.
23982 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23984 (localized_pattern): New function/macro.
23985 (try): Remove match, nomatch arguments. Copy the pattern into safe
23986 memory before caching it.
23987 (rpmatch): Use localized_pattern. Add translator comments.
23988 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23989 Suggested by Eric Blake.
23990 * modules/rpmatch (Depends-on): Add stdbool.
23992 2008-04-28 Eric Blake <ebb9@byu.net>
23994 Add rawmemchr module, matching glibc.
23995 * modules/string (Makefile.am): New indicator.
23996 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23997 * lib/string.in.h (rawmemchr): Declare when appropriate.
23998 * modules/rawmemchr: New file.
23999 * m4/rawmemchr.m4: Likewise.
24000 * lib/rawmemchr.c: Likewise.
24001 * modules/rawmemchr-tests: Likewise.
24002 * tests/test-rawmemchr.c: Likewise.
24003 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24005 * modules/strchrnul (Depends-on): Add rawmemchr.
24006 * lib/strchrnul.c (strchrnul): Optimize a corner case.
24008 Whitespace cleanup.
24009 * tests/test-strchrnul.c: Reindent.
24010 * lib/strchrnul.c: Likewise.
24012 Optimize and test strchrnul.
24013 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24014 * modules/strchrnul-tests: New file.
24015 * tests/test-strchrnul.c: Likewise.
24017 Remove intprops dependency.
24018 * modules/memchr (Depends-on): Remove intprops.
24019 * modules/memrchr (Depends-on): Likewise.
24020 * modules/memchr2 (Depends-on): Likewise.
24021 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24022 * lib/memrchr.c (__memrchr): Likewise.
24023 * lib/memrchr2.c (memchr2): Likewise.
24024 Reported by Simon Josefsson.
24026 2008-04-28 Simon Josefsson <simon@josefsson.org>
24028 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24029 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24031 2008-04-28 Simon Josefsson <simon@josefsson.org>
24033 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24035 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24037 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24039 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24041 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24043 * m4/inet_pton.m4: Don't check for header files.
24045 * m4/inet_ntop.m4: Don't check for header files.
24047 2008-04-28 Simon Josefsson <simon@josefsson.org>
24049 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24050 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24051 trigger for cygwin).
24052 Reported by Bruno Haible <bruno@clisp.org>.
24054 2008-04-28 Bruno Haible <bruno@clisp.org>
24056 * doc/posix-functions/strdup.texi: Mention mingw problem.
24058 2008-04-27 Bruno Haible <bruno@clisp.org>
24060 * modules/stat-time-tests (Depends-on): Add sleep.
24061 * tests/test-stat-time.c (force_unlink): New function.
24063 (test_mtime): Remove the ctime related tests.
24064 (test_ctime): New function, containing the ctime related tests.
24065 (main): Call test_ctime, except on native Windows platforms.
24067 2008-04-27 Bruno Haible <bruno@clisp.org>
24069 * lib/rpmatch.c (rpmatch): Add some comments.
24070 Reported by James Youngman <jay@gnu.org>.
24072 2008-04-27 Bruno Haible <bruno@clisp.org>
24074 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24077 2008-04-27 Bruno Haible <bruno@clisp.org>
24079 Make test-yesno.sh work on mingw.
24080 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24081 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24082 (main): Set stdin to binary mode.
24083 * modules/yesno-tests (Depends-on): Add binary-io.
24085 2008-04-27 Bruno Haible <bruno@clisp.org>
24087 Fix 'isfinite' on x86, x86_64, ia64 platforms.
24088 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24089 argument that lie outside the IEEE 854 domain.
24090 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24091 (gl_ISFINITE): Use it.
24092 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24094 2008-04-27 Bruno Haible <bruno@clisp.org>
24096 Allow local renaming in config.h.
24097 * lib/memrchr.c (memrchr): Don't undefine outside libc.
24099 2008-04-27 Bruno Haible <bruno@clisp.org>
24101 * lib/memchr.c (__memchr): Change type of 'i'.
24102 * lib/memchr2.c (memchr2): Likewise.
24104 2008-04-26 Eric Blake <ebb9@byu.net>
24105 and Bruno Haible <bruno@clisp.org>
24107 Optimize and test memrchr.
24108 * modules/memrchr (Depends-on): Add intprops.
24109 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24110 * modules/memrchr-tests: New file.
24111 * tests/test-memrchr.c: New file.
24113 2008-04-26 Bruno Haible <bruno@clisp.org>
24115 Add tentative support for DragonFly BSD.
24116 * lib/stdio-impl.h: Add macros for DragonFly BSD.
24117 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24119 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24120 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24121 * lib/fpurge.c (fpurge): Likewise.
24122 * lib/freadable.c (freaadable): Likewise.
24123 * lib/freadahead.c (freadahead): Likewise.
24124 * lib/freading.c (freading): Likewise.
24125 * lib/freadptr.c (freadptr): Likewise.
24126 * lib/freadseek.c (freadptrinc): Likewise.
24127 * lib/fseeko.c (fseeko): Likewise.
24128 * lib/fseterr.c (fseterr): Likewise.
24129 * lib/fwritable.c (fwritable): Likewise.
24130 * lib/fwriting.c (fwriting): Likewise.
24132 2008-04-26 Bruno Haible <bruno@clisp.org>
24134 * lib/stdio-impl.h: New file.
24135 * lib/fbufmode.c: Include stdio-impl.h.
24136 (fbufmode): Use fp_, remove redundant #defines.
24137 * lib/fflush.c: Include stdio-impl.h.
24138 (clear_ungetc_buffer): Remove redundant #defines.
24139 * lib/fpurge.c: Include stdio-impl.h.
24140 (fpurge): Remove redundant #defines.
24141 * lib/freadable.c: Include stdio-impl.h.
24142 (freadable): Remove redundant #defines.
24143 * lib/freadahead.c: Include stdio-impl.h.
24144 (freadahead): Remove redundant #defines.
24145 * lib/freading.c: Include stdio-impl.h.
24146 (freading): Remove redundant #defines.
24147 * lib/freadptr.c: Include stdio-impl.h.
24148 (freadptr): Remove redundant #defines.
24149 * lib/freadseek.c: Include stdio-impl.h.
24150 (freadptrinc): Remove redundant #defines.
24151 * lib/fseeko.c: Include stdio-impl.h.
24152 (rpl_fseeko): Remove redundant #defines.
24153 * lib/fseterr.c: Include stdio-impl.h.
24154 (fseterr): Remove redundant #defines.
24155 * lib/fwritable.c: Include stdio-impl.h.
24156 (fwritable: Remove redundant #defines.
24157 * lib/fwriting.c: Include stdio-impl.h.
24158 (fwriting): Remove redundant #defines.
24159 * modules/fbufmode (Files): Add lib/stdio-impl.h.
24160 * modules/fflush (Files): Likewise.
24161 * modules/fpurge (Files): Likewise.
24162 * modules/freadable (Files): Likewise.
24163 * modules/freadahead (Files): Likewise.
24164 * modules/freading (Files): Likewise.
24165 * modules/freadptr (Files): Likewise.
24166 * modules/freadseek (Files): Likewise.
24167 * modules/fseeko (Files): Likewise.
24168 * modules/fseterr (Files): Likewise.
24169 * modules/fwritable (Files): Likewise.
24170 * modules/fwriting (Files): Likewise.
24172 2008-04-26 Bruno Haible <bruno@clisp.org>
24174 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24175 restore_seek_optimization, update_fpos_cache): New functions, extracted
24177 (rpl_fflush): Use them.
24178 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24179 (gl_REPLACE_FFLUSH): Use it.
24181 2008-04-26 Bruno Haible <bruno@clisp.org>
24183 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24185 * tests/test-xstrtoimax.sh: Likewise.
24186 * tests/test-xstrtoumax.sh: Likewise.
24187 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24189 2008-04-26 Bruno Haible <bruno@clisp.org>
24191 * modules/memchr-tests: New file.
24192 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24194 2008-04-26 Eric Blake <ebb9@byu.net>
24195 Bruno Haible <bruno@clisp.org>
24197 * lib/memchr.c: Include intprops.h.
24198 (__memchr): Optimize parallel detection of matching bytes. Rename local
24199 variables. Add explanatory comments.
24201 2008-04-26 Bruno Haible <bruno@clisp.org>
24203 Fix module 'memchr', broken since 2000-10-28.
24204 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24206 2008-04-26 Bruno Haible <bruno@clisp.org>
24208 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24211 2008-04-25 Eric Blake <ebb9@byu.net>
24213 Use native fstatat on cygwin 1.7.0.
24214 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24217 2008-04-23 Eric Blake <ebb9@byu.net>
24219 Improve memchr2 performance.
24220 * lib/memchr2.c (memchr2): Further optimize parallel detection of
24222 * modules/memchr2 (Depends-on): Use intprops.h.
24224 2008-04-23 Simon Josefsson <simon@josefsson.org>
24226 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24227 an inline function instead of a CPP macro. Patch by Ben Pfaff
24228 <blp@cs.stanford.edu>.
24230 2008-04-23 Simon Josefsson <simon@josefsson.org>
24232 * lib/arpa_inet.in.h: New file.
24234 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24235 (Makefile.am): Sed in substitute header file.
24237 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24238 gl_ARPA_INET_MODULE_INDICATOR. Use them.
24240 * modules/inet_ntop (configure.ac): Use
24241 gl_ARPA_INET_MODULE_INDICATOR.
24243 * modules/inet_pton (configure.ac): Use
24244 gl_ARPA_INET_MODULE_INDICATOR.
24246 2008-04-22 Jim Meyering <meyering@redhat.com>
24248 * modules/verify (License): Re-license as LGPLv2+.
24250 2008-04-22 Simon Josefsson <simon@josefsson.org>
24252 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24253 parameter to void* as per POSIX standard (MinGW uses char*).
24255 2008-04-21 Bruno Haible <bruno@clisp.org>
24257 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24258 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24259 Define to replacements if REPLACE_ISWCNTRL is 1.
24260 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24261 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24262 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24263 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24265 * doc/posix-functions/iswalpha.texi: Likewise.
24266 * doc/posix-functions/iswblank.texi: Likewise.
24267 * doc/posix-functions/iswcntrl.texi: Likewise.
24268 * doc/posix-functions/iswdigit.texi: Likewise.
24269 * doc/posix-functions/iswgraph.texi: Likewise.
24270 * doc/posix-functions/iswlower.texi: Likewise.
24271 * doc/posix-functions/iswprint.texi: Likewise.
24272 * doc/posix-functions/iswpunct.texi: Likewise.
24273 * doc/posix-functions/iswspace.texi: Likewise.
24274 * doc/posix-functions/iswupper.texi: Likewise.
24275 * doc/posix-functions/iswxdigit.texi: Likewise.
24276 Reported by Alain Guibert.
24278 2008-04-21 Bruno Haible <bruno@clisp.org>
24280 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24281 Patch by Alain Guibert.
24283 2008-04-21 Bruno Haible <bruno@clisp.org>
24285 Fix test failures on mingw.
24286 * tests/test-xstrtol.c (print_no_progname): New function.
24287 (main): Install it in error_print_progname hook.
24288 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24289 * tests/test-xstrtoimax.sh: Likewise.
24290 * tests/test-xstrtoumax.sh: Likewise.
24292 2008-04-21 Bruno Haible <bruno@clisp.org>
24294 Fix test failure on mingw.
24295 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24297 2008-04-21 Bruno Haible <bruno@clisp.org>
24299 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24300 Actually assign a value.
24302 2008-04-20 Bruno Haible <bruno@clisp.org>
24304 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24306 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24307 'canonicalize-lgpl' module is also used.
24308 * lib/canonicalize-lgpl.c: Undo last change.
24309 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24311 2008-04-20 Bruno Haible <bruno@clisp.org>
24313 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24314 config.h. Provide _mkdir based fallback for mingw.
24315 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24316 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24317 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24318 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24319 rather than defining mkdir in config.h.
24320 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24321 (gl_SYS_STAT_H_DEFAULTS): New macro.
24322 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24323 HAVE_IO_H any more.
24324 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24325 HAVE_DECL_MKDIR and HAVE_IO_H.
24327 2008-04-20 Bruno Haible <bruno@clisp.org>
24329 * lib/isapipe.c: Port to native Windows platforms.
24331 2008-04-20 Bruno Haible <bruno@clisp.org>
24333 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24335 2008-04-21 Eric Blake <ebb9@byu.net>
24337 Work around preprocessors that don't handle UINTMAX_MAX.
24338 * lib/memchr2.c (memchr2): Avoid embedded #if.
24339 Reported by Alain Guibert, fix suggested by Bruno Haible.
24341 2008-04-21 Simon Josefsson <simon@josefsson.org>
24343 * doc/posix-functions/strftime.texi (strftime): Explain better
24344 Windows incompatibility. Suggested by Micah Cowan
24345 <micah@cowan.name>.
24347 2008-04-20 Bruno Haible <bruno@clisp.org>
24349 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24352 2008-04-20 Bruno Haible <bruno@clisp.org>
24354 Fix test failure on platforms with non-GNU iconv.
24355 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24356 (U_TO_U8): Use it, rather than u16_to_u8.
24357 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24358 units at the end of the input string.
24359 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24361 2008-04-20 Bruno Haible <bruno@clisp.org>
24363 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24364 when the resulting length is 0.
24365 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24367 2008-04-20 Bruno Haible <bruno@clisp.org>
24369 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24371 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24373 2008-04-20 Bruno Haible <bruno@clisp.org>
24375 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24376 * modules/tsearch-tests (configure.ac): Test for initstate function.
24378 2008-04-20 Bruno Haible <bruno@clisp.org>
24380 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24381 for nlink_t if missing.
24382 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24384 2008-04-19 Bruno Haible <bruno@clisp.org>
24386 Work around snprintf bug on Linux libc5.
24387 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24388 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24390 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24391 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24393 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24394 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24395 * modules/snprintf (Files): Add m4/printf.m4.
24396 * modules/vsnprintf (Files): Likewise.
24397 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24398 * doc/posix-functions/vsnprintf.texi: Likewise.
24400 2008-04-19 Bruno Haible <bruno@clisp.org>
24402 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24403 from 0.0058 to less than 10^-7.
24405 2008-04-19 Bruno Haible <bruno@clisp.org>
24407 Fix rounding when a precision is given.
24408 * lib/vasnprintf.c (is_borderline): New function.
24409 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24411 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24413 * tests/test-vasprintf-posix.c (test_function): Likewise.
24414 * tests/test-snprintf-posix.h (test_function): Likewise.
24415 * tests/test-sprintf-posix.h (test_function): Likewise.
24416 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24417 * tests/test-printf-posix.h (test_function): Likewise.
24418 * tests/test-printf-posix.output: Update.
24419 Reported by John Darrington <john@darrington.wattle.id.au> via
24420 Ben Pfaff <blp@cs.stanford.edu>.
24422 2008-04-18 Simon Josefsson <simon@josefsson.org>
24424 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24425 Suggested by Bruno Haible <bruno@clisp.org>.
24427 2008-04-17 Bruno Haible <bruno@clisp.org>
24429 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24430 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24432 Patch by Bruce Merry <bmerry@gmail.com>.
24434 2008-04-17 Simon Josefsson <simon@josefsson.org>
24436 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24437 doesn't work under Windows.
24439 2008-04-16 Bruno Haible <bruno@clisp.org>
24441 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24443 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24444 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24445 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24446 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24447 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24448 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24449 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24451 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24452 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24453 Northern Sotho, Uighur.
24455 2008-04-16 Bruno Haible <bruno@clisp.org>
24457 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24458 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24459 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24460 Reported by Daniel Bergström <daniel@octocode.com>.
24462 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24463 Bruno Haible <bruno@clisp.org>
24465 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24467 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24468 New functions, mostly extracted from gl_locale_name_default.
24469 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24471 2008-04-16 Eric Blake <ebb9@byu.net>
24473 Adjust strtod detection to catch glibc 2.7 bug.
24474 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24475 Reported by John Gatewood Ham.
24477 2008-04-16 Bruno Haible <bruno@clisp.org>
24479 Add tentative support for Linux libc5.
24480 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24481 * lib/fpurge.c (fpurge): Likewise.
24482 * lib/freadable.c (freadable): Likewise.
24483 * lib/freadahead.c (freadahead): Likewise.
24484 * lib/freading.c (freading): Likewise.
24485 * lib/freadptr.c (freadptr): Likewise.
24486 * lib/freadseek.c (freadptrinc): Likewise.
24487 * lib/fseeko.c (rpl_fseeko): Likewise.
24488 * lib/fseterr.c (fseterr): Likewise.
24489 * lib/fwritable.c (fwritable): Likewise.
24490 * lib/fwriting.c (fwriting): Likewise.
24491 Reported by Alain Guibert <alguibert+bts@free.fr>.
24493 2008-04-15 Bruno Haible <bruno@clisp.org>
24495 * modules/mathl (configure.ac): Define module indicator.
24497 2008-04-15 Bruno Haible <bruno@clisp.org>
24499 * lib/logl.c (logl): Remove unused variables.
24501 2008-04-15 Bruno Haible <bruno@clisp.org>
24503 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24506 2008-04-15 Bruno Haible <bruno@clisp.org>
24508 * lib/trim.c (trim2): Fix argument of isspace() macro.
24510 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
24512 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24514 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24516 2008-04-14 Bruno Haible <bruno@clisp.org>
24518 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24519 AC_LANG_PROGRAM argument.
24520 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24521 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24522 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24523 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24524 * m4/math_h.m4 (gl_MATH_H): Likewise.
24525 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24526 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24527 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24528 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24529 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24530 * m4/regex.m4 (gl_REGEX): Likewise.
24531 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24532 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24533 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24534 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24535 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24536 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24537 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24538 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24540 2008-04-14 Jim Meyering <meyering@redhat.com>
24542 test-strtod: fix typos: s/abs/fabs/
24543 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24545 2008-04-13 Bruno Haible <bruno@clisp.org>
24547 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24548 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24549 module is also used and while not building the reloc-wrapper.
24551 2008-04-13 Bruno Haible <bruno@clisp.org>
24553 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24555 2008-04-13 Bruno Haible <bruno@clisp.org>
24557 Fix AIX compilation failure introduced on 2008-04-02.
24558 * tests/test-frexp.c (exp): Undefine before redefining.
24559 * tests/test-frexpl.c (exp): Likewise.
24561 2008-04-13 Bruno Haible <bruno@clisp.org>
24563 Work around a HP-UX stdio bug.
24564 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24565 * tests/test-ftello.c (main): Likewise.
24566 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24567 * doc/posix-functions/ftello.texi: Likewise.
24569 2008-04-13 Bruno Haible <bruno@clisp.org>
24571 Make test-signbit pass on HP-UX/hppa.
24572 * tests/test-signbit.c (minus_zerol): New variable.
24573 (test_signbitl): Use it.
24575 2008-04-13 Bruno Haible <bruno@clisp.org>
24577 Make truncl work on OSF/1 4.0.
24578 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24579 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24580 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24581 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24583 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24585 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24587 2008-04-13 Bruno Haible <bruno@clisp.org>
24589 * lib/unictype.h: Remove trailing comma from enumeration definitions.
24591 2008-04-13 Bruno Haible <bruno@clisp.org>
24593 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24594 expression, so as to avoid HP-UX 11 cc compiler bug.
24596 2008-04-13 Bruno Haible <bruno@clisp.org>
24598 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24600 2008-04-13 Bruno Haible <bruno@clisp.org>
24602 * lib/git-merge-changelog.c: Remove empty declaration outside of
24605 2008-04-13 Bruno Haible <bruno@clisp.org>
24607 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24609 2008-04-13 Bruno Haible <bruno@clisp.org>
24611 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24612 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24613 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24614 also if it exists but lacks definitions of the SHUT_* macros.
24615 * modules/sys_socket (Description): Update.
24616 Reported by Elbert Pol <e.pol@chello.nl>.
24618 2008-04-13 Bruno Haible <bruno@clisp.org>
24620 * lib/localcharset.c (OS2): Don't redefine if already defined.
24621 Reported by Elbert Pol <e.pol@chello.nl>.
24623 2008-04-13 Bruno Haible <bruno@clisp.org>
24625 * lib/binary-io.h [__EMX__]: Include <io.h>.
24626 Reported by Elbert Pol <e.pol@chello.nl>.
24628 2008-04-12 Bruno Haible <bruno@clisp.org>
24630 * lib/fpucw.h: Enable the definitions also for x86_64.
24631 Needed for NetBSD/x86_64.
24632 Reported by Thomas Klausner <tk@giga.or.at>.
24634 2008-04-12 Bruno Haible <bruno@clisp.org>
24636 * tests/test-strtod.c: Include isnand.h.
24637 (main): Use isnand instead of isnan.
24638 Reported by Jim Meyering.
24640 2008-04-12 Bruno Haible <bruno@clisp.org>
24642 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24643 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24645 2008-04-12 Jim Meyering <meyering@redhat.com>
24647 * m4/math_h.m4 (gl_MATH_H): Fix typos.
24649 2008-04-12 Bruno Haible <bruno@clisp.org>
24651 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24652 Reported by Elbert Pol <e.pol@chello.nl>.
24654 2008-04-12 Eric Blake <ebb9@byu.net>
24656 Work around Solaris 10 math.h bug.
24657 * m4/math_h.m4 (gl_MATH_H): Check for bug.
24658 (gl_MATH_H_DEFAULTS): Set up default.
24659 * modules/math (Makefile.am): Replace new indicators.
24660 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24661 * tests/test-math.c (main): Test this.
24662 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24663 * doc/posix-headers/math.texi (math.h): Mention bug.
24664 Reported by Nelson H. F. Beebe and Jim Meyering.
24666 2008-04-11 Bruno Haible <bruno@clisp.org>
24668 Adapt to future versions of Apple GCC.
24669 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24670 Reported by Peter O'Gorman <peter@pogma.com>.
24672 2008-04-11 Bruno Haible <bruno@clisp.org>
24674 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24676 2008-04-11 Bruno Haible <bruno@clisp.org>
24678 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24680 * modules/getaddrinfo-tests (Makefile.am): Define
24681 test_getaddrinfo_LDADD.
24683 2008-04-11 Bruno Haible <bruno@clisp.org>
24685 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24686 (init): Fix syntax error.
24687 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24690 2008-04-11 Bruno Haible <bruno@clisp.org>
24692 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24693 * modules/glob (Depends-on): Add stdbool.
24695 2008-04-11 Bruno Haible <bruno@clisp.org>
24697 * lib/trim.c: Include <string.h>.
24699 2008-04-11 Eric Blake <ebb9@byu.net>
24701 Avoid compile failure on OS/2.
24702 * lib/regex_internal.h (internal_function): Disable optimization
24703 on OS/2 (__EMX__), where it caused compiler error.
24704 Reported by Elbert Pol.
24706 2008-04-11 Bruno Haible <bruno@clisp.org>
24708 Flush the standard error stream before aborting. Needed on mingw.
24709 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24710 * tests/test-array_list.c (ASSERT): Likewise.
24711 * tests/test-array_oset.c (ASSERT): Likewise.
24712 * tests/test-avltree_list.c (ASSERT): Likewise.
24713 * tests/test-avltree_oset.c (ASSERT): Likewise.
24714 * tests/test-avltreehash_list.c (ASSERT): Likewise.
24715 * tests/test-binary-io.c (ASSERT): Likewise.
24716 * tests/test-byteswap.c (ASSERT): Likewise.
24717 * tests/test-c-ctype.c (ASSERT): Likewise.
24718 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24719 * tests/test-c-strcasestr.c (ASSERT): Likewise.
24720 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24721 * tests/test-c-strstr.c (ASSERT): Likewise.
24722 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24723 * tests/test-canonicalize.c (ASSERT): Likewise.
24724 * tests/test-carray_list.c (ASSERT): Likewise.
24725 * tests/test-ceilf1.c (ASSERT): Likewise.
24726 * tests/test-ceilf2.c (ASSERT): Likewise.
24727 * tests/test-ceill.c (ASSERT): Likewise.
24728 * tests/test-count-one-bits.c (ASSERT): Likewise.
24729 * tests/test-fbufmode.c (ASSERT): Likewise.
24730 * tests/test-fflush2.c (ASSERT): Likewise.
24731 * tests/test-floorf1.c (ASSERT): Likewise.
24732 * tests/test-floorf2.c (ASSERT): Likewise.
24733 * tests/test-floorl.c (ASSERT): Likewise.
24734 * tests/test-fopen.c (ASSERT): Likewise.
24735 * tests/test-fpending.c (ASSERT): Likewise.
24736 * tests/test-fprintf-posix.c (ASSERT): Likewise.
24737 * tests/test-fpurge.c (ASSERT): Likewise.
24738 * tests/test-freadable.c (ASSERT): Likewise.
24739 * tests/test-freadahead.c (ASSERT): Likewise.
24740 * tests/test-freading.c (ASSERT): Likewise.
24741 * tests/test-freadptr.c (ASSERT): Likewise.
24742 * tests/test-freadptr2.c (ASSERT): Likewise.
24743 * tests/test-freadseek.c (ASSERT): Likewise.
24744 * tests/test-freopen.c (ASSERT): Likewise.
24745 * tests/test-frexp.c (ASSERT): Likewise.
24746 * tests/test-frexpl.c (ASSERT): Likewise.
24747 * tests/test-fseek.c (ASSERT): Likewise.
24748 * tests/test-fseeko.c (ASSERT): Likewise.
24749 * tests/test-fstrcmp.c (ASSERT): Likewise.
24750 * tests/test-ftell.c (ASSERT): Likewise.
24751 * tests/test-ftello.c (ASSERT): Likewise.
24752 * tests/test-func.c (ASSERT): Likewise.
24753 * tests/test-fwritable.c (ASSERT): Likewise.
24754 * tests/test-fwriting.c (ASSERT): Likewise.
24755 * tests/test-getdelim.c (ASSERT): Likewise.
24756 * tests/test-getline.c (ASSERT): Likewise.
24757 * tests/test-i-ring.c (ASSERT): Likewise.
24758 * tests/test-iconv-utf.c (ASSERT): Likewise.
24759 * tests/test-iconv.c (ASSERT): Likewise.
24760 * tests/test-isfinite.c (ASSERT): Likewise.
24761 * tests/test-isnand.c (ASSERT): Likewise.
24762 * tests/test-isnanf.c (ASSERT): Likewise.
24763 * tests/test-isnanl.h (ASSERT): Likewise.
24764 * tests/test-ldexpl.c (ASSERT): Likewise.
24765 * tests/test-linked_list.c (ASSERT): Likewise.
24766 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24767 * tests/test-localename.c (ASSERT): Likewise.
24768 * tests/test-lseek.c (ASSERT): Likewise.
24769 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24770 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24771 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24772 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24773 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24774 * tests/test-mbschr.c (ASSERT): Likewise.
24775 * tests/test-mbscspn.c (ASSERT): Likewise.
24776 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24777 * tests/test-mbspbrk.c (ASSERT): Likewise.
24778 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24779 * tests/test-mbsrchr.c (ASSERT): Likewise.
24780 * tests/test-mbsspn.c (ASSERT): Likewise.
24781 * tests/test-mbsstr1.c (ASSERT): Likewise.
24782 * tests/test-mbsstr2.c (ASSERT): Likewise.
24783 * tests/test-mbsstr3.c (ASSERT): Likewise.
24784 * tests/test-memchr2.c (ASSERT): Likewise.
24785 * tests/test-memmem.c (ASSERT): Likewise.
24786 * tests/test-open.c (ASSERT): Likewise.
24787 * tests/test-printf-frexp.c (ASSERT): Likewise.
24788 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24789 * tests/test-printf-posix.c (ASSERT): Likewise.
24790 * tests/test-quotearg.c (ASSERT): Likewise.
24791 * tests/test-rbtree_list.c (ASSERT): Likewise.
24792 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24793 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24794 * tests/test-round1.c (ASSERT): Likewise.
24795 * tests/test-roundf1.c (ASSERT): Likewise.
24796 * tests/test-roundl.c (ASSERT): Likewise.
24797 * tests/test-signbit.c (ASSERT): Likewise.
24798 * tests/test-sleep.c (ASSERT): Likewise.
24799 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24800 * tests/test-snprintf.c (ASSERT): Likewise.
24801 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24802 * tests/test-stat-time.c (ASSERT): Likewise.
24803 * tests/test-strcasestr.c (ASSERT): Likewise.
24804 * tests/test-strerror.c (ASSERT): Likewise.
24805 * tests/test-striconv.c (ASSERT): Likewise.
24806 * tests/test-striconveh.c (ASSERT): Likewise.
24807 * tests/test-striconveha.c (ASSERT): Likewise.
24808 * tests/test-strsignal.c (ASSERT): Likewise.
24809 * tests/test-strstr.c (ASSERT): Likewise.
24810 * tests/test-strtod.c (ASSERT): Likewise.
24811 * tests/test-trunc1.c (ASSERT): Likewise.
24812 * tests/test-trunc2.c (ASSERT): Likewise.
24813 * tests/test-truncf1.c (ASSERT): Likewise.
24814 * tests/test-truncf2.c (ASSERT): Likewise.
24815 * tests/test-truncl.c (ASSERT): Likewise.
24816 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24817 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24818 * tests/test-vasnprintf.c (ASSERT): Likewise.
24819 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24820 * tests/test-vasprintf.c (ASSERT): Likewise.
24821 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24822 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24823 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24824 * tests/test-vsnprintf.c (ASSERT): Likewise.
24825 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24826 * tests/test-wcwidth.c (ASSERT): Likewise.
24827 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24828 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24829 * tests/test-xvasprintf.c (ASSERT): Likewise.
24830 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24831 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24832 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24833 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24834 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24835 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24836 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24837 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24838 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24839 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24840 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24841 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24842 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24843 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24844 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24845 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24846 * tests/unictype/test-block_list.c (ASSERT): Likewise.
24847 * tests/unictype/test-block_of.c (ASSERT): Likewise.
24848 * tests/unictype/test-block_test.c (ASSERT): Likewise.
24849 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24850 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24851 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24852 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24853 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24854 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24855 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24856 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24857 * tests/unictype/test-combining.c (ASSERT): Likewise.
24858 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24859 * tests/unictype/test-digit.c (ASSERT): Likewise.
24860 * tests/unictype/test-mirror.c (ASSERT): Likewise.
24861 * tests/unictype/test-numeric.c (ASSERT): Likewise.
24862 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24863 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24864 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24865 * tests/unictype/test-scripts.c (ASSERT): Likewise.
24866 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24867 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24868 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24869 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24870 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24871 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24872 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24873 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24874 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24875 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24876 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24877 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24878 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24879 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24880 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24881 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24882 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24883 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24884 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24885 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24886 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24887 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24888 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24889 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24890 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24891 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24892 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24893 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24894 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24895 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24896 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24897 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24898 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24899 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24900 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24901 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24902 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24903 Reported by Eric Blake.
24905 2008-04-11 Bruno Haible <bruno@clisp.org>
24907 * lib/wchar.in.h: Tweak comment.
24909 2008-04-11 Bruno Haible <bruno@clisp.org>
24911 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24912 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24914 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24916 2008-04-11 Bruno Haible <bruno@clisp.org>
24918 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24920 2008-04-11 Simon Josefsson <simon@josefsson.org>
24922 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24923 of attempting to use non-existing /dev/*random. Based on patch
24924 from Adam Strzelecki <ono@java.pl> in
24925 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24927 2008-04-08 Bruno Haible <bruno@clisp.org>
24929 Add tentative support for emx+gcc.
24930 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24931 * lib/fpurge.c (fpurge): Likewise.
24932 * lib/freadable.c (freadable): Likewise.
24933 * lib/freadahead.c (freadahead): Likewise.
24934 * lib/freading.c (freading): Likewise.
24935 * lib/freadptr.c (freadptr): Likewise.
24936 * lib/freadseek.c (freadptrinc): Likewise.
24937 * lib/fseeko.c (rpl_fseeko): Likewise.
24938 * lib/fseterr.c (fseterr): Likewise.
24939 * lib/fwritable.c (fwritable): Likewise.
24940 * lib/fwriting.c (fwriting): Likewise.
24941 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24943 2008-04-09 Eric Blake <ebb9@byu.net>
24945 Avoid some autoconf warnings.
24946 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24947 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24948 * m4/afs.m4 (gl_AFS): Likewise.
24949 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24950 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24951 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24952 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24953 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24954 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24955 (AC_CHECK_DECLS_ONCE): Likewise.
24957 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24958 gnulib-tool requires autoconf 2.59 or better.
24959 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24961 2008-04-08 Eric Blake <ebb9@byu.net>
24963 Use 'git describe --match' if present (added in git 1.5.5).
24964 * build-aux/git-version-gen: Limit result to tags that match 'v*'
24967 2008-04-08 Bruno Haible <bruno@clisp.org>
24969 Add tentative support for OpenServer.
24970 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24972 * lib/fpurge.c (fpurge): Likewise.
24973 * lib/freadable.c (freadable): Likewise.
24974 * lib/freadahead.c (freadahead): Likewise.
24975 * lib/freading.c (freading): Likewise.
24976 * lib/freadptr.c (freadptr): Likewise.
24977 * lib/freadseek.c (freadptrinc): Likewise.
24978 * lib/fseeko.c (rpl_fseeko): Likewise.
24979 * lib/fseterr.c (fseterr): Likewise.
24980 * lib/fwritable.c (fwritable): Likewise.
24981 * lib/fwriting.c (fwriting): Likewise.
24982 Reported by Roger Cornelius <rac@tenzing.org> and
24983 Brian K. White <brian@aljex.com>.
24985 2008-04-06 Jim Meyering <meyering@redhat.com>
24987 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24989 2008-04-06 Bruno Haible <bruno@clisp.org>
24991 Avoid possible error with non-ASCII bytes in UTF-8 locales.
24992 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24993 * tests/test-printf-posix.sh: Likewise.
24994 * tests/test-vfprintf-posix.sh: Likewise.
24995 * tests/test-vprintf-posix.sh: Likewise.
24996 * tests/test-xprintf-posix.sh: Likewise.
24998 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25000 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25001 hide error from 'ls', needed on OS/2.
25002 Report by Elbert Pol <elbert.pol@gmail.com>.
25004 2008-04-04 Eric Blake <ebb9@byu.net>
25006 Make test-fseeko.c failures meaningful.
25007 * tests/test-fseeko.c: Print line number on failure.
25008 * tests/test-fseek.c: Likewise.
25009 Reported by Nelson H. F. Beebe.
25011 Improve strtod bug detection check.
25012 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25013 required for Solaris 10.
25014 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25016 2008-04-04 Bruno Haible <bruno@clisp.org>
25018 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25021 2008-04-03 Eric Blake <ebb9@byu.net>
25023 Ensure sane .version contents.
25024 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25026 * build-aux/git-version-gen: Improve documentation.
25028 Make GNU make output nicer.
25029 * top/GNUmakefile [!_have-Makefile]: Add dependency on
25030 MAKECMDGOALS to enforce message for all command line targets. Set
25031 srcdir for use in maint.mk.
25033 Another maintainer tweak.
25034 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25035 a target that regenerates version.
25037 2008-04-03 Jim Meyering <meyering@redhat.com>
25039 vc-list-files: don't cause coreutils "make po-check" failure
25040 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25042 2008-04-03 Eric Blake <ebb9@byu.net>
25044 Allow VPATH usage of vc-list-files.
25045 * build-aux/vc-list-files (scriptversion): Add timestamp.
25046 (options): Add --help, --version, -C.
25047 (CVS): Support installed cvsu.
25049 2008-04-02 Bruno Haible <bruno@clisp.org>
25051 Avoid some "statement with no effect" warnings from gcc.
25052 * tests/test-wctype.c (main): Explicitly ignore unused values.
25053 Reported by Jim Meyering.
25055 2008-04-02 Jim Meyering <meyering@redhat.com>
25057 Avoid some warnings from "gcc -Wshadow".
25058 * tests/test-frexp.c (exp): Define to a different identifier.
25059 * tests/test-frexpl.c (exp): Likewise.
25061 2008-04-03 Jim Meyering <meyering@redhat.com>
25063 bootstrap: remove dangling *.[ch] symlinks from lib
25064 * build-aux/bootstrap [dangling symlink removal]: Move find's
25065 -depth option to precede all others, to avoid a warning.
25066 Remove *.[ch] files too, and from "$source_base" (usually lib/).
25068 2008-04-02 Bruno Haible <bruno@clisp.org>
25070 Avoid some warnings from "gcc -Wshadow".
25071 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25072 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25073 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25074 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25075 Reported by Jim Meyering.
25077 2008-04-01 Bruno Haible <bruno@clisp.org>
25079 Fix test to work on IRIX 6.5 with cc.
25080 * tests/test-math.c (numeric_equal): New function.
25083 2008-04-01 Bruno Haible <bruno@clisp.org>
25085 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25087 2008-04-01 Bruno Haible <bruno@clisp.org>
25089 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25090 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25091 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25092 (Depends-on): Remove math.
25094 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25095 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25096 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25097 (Depends-on): Remove math.
25099 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25100 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25101 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25102 (Depends-on): Remove math.
25103 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25104 (Depends-on): Remove math.
25106 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25107 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25108 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25109 (Depends-on): Remove math.
25110 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25111 (Depends-on): Remove math.
25113 * tests/test-round1.c: Include nan.h.
25114 (main): Use NaNd instead of NAN.
25115 * modules/round-tests (Files): Add tests/nan.h.
25117 * tests/test-trunc1.c: Include nan.h.
25118 (main): Use NaNd instead of NAN.
25119 * modules/trunc-tests (Files): Add tests/nan.h.
25121 * tests/test-roundf1.c: Include nan.h.
25122 (main): Use NaNf instead of NAN.
25123 * modules/roundf-tests (Files): Add tests/nan.h.
25125 * tests/test-truncf1.c: Include nan.h.
25126 (main): Use NaNf instead of NAN.
25127 * modules/truncf-tests (Files): Add tests/nan.h.
25129 * tests/test-ceilf1.c: Include nan.h.
25130 (main): Use NaNf instead of NAN.
25131 * modules/ceilf-tests (Files): Add tests/nan.h.
25133 * tests/test-floorf1.c: Include nan.h.
25134 (main): Use NaNf instead of NAN.
25135 * modules/floorf-tests (Files): Add tests/nan.h.
25137 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25138 (main): Use NaNf instead of NAN.
25139 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25141 * tests/test-isnand.c: Include nan.h instead of <math.h>.
25142 (main): Use NaNd instead of NAN.
25143 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25145 * tests/test-frexp.c: Include nan.h.
25146 (main): Use NaNd instead of NAN.
25147 * modules/frexp-tests (Files): Add tests/nan.h.
25149 * lib/isnan.c: Don't include <math.h>.
25150 (FUNC): Don't use NAN macro.
25151 * modules/isnand-nolibm (Depends-on): Remove math.
25152 * modules/isnanf-nolibm (Depends-on): Remove math.
25153 * modules/isnanl (Depends-on): Remove math.
25154 * modules/isnanl-nolibm (Depends-on): Remove math.
25156 * tests/nan.h: New file.
25158 2008-04-01 Eric Blake <ebb9@byu.net>
25161 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25162 values to be the right type.
25164 For now, cater to gnulib strtod inaccuracies.
25165 * tests/test-strtod.c (main): Allow 1-ulp error on expected
25166 fractional results. While not as nice from a QoI perspective, it
25167 is a quicker patch than correctly implementing decimal to binary
25170 2008-03-31 Eric Blake <ebb9@byu.net>
25172 Guarantee a definition of NAN.
25173 * lib/math.in.h (NAN): Define if missing.
25174 * tests/test-math.c (main): Test it.
25175 * doc/posix-headers/math.texi (math.h): Document this.
25176 * lib/isnan.c (rpl_isnand): Use it.
25177 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25178 * tests/test-floorf1.c (NaN): Likewise.
25179 * tests/test-frexp.c (NaN): Likewise.
25180 * tests/test-isnand.c (NaN): Likewise.
25181 * tests/test-isnanf.c (NaN): Likewise.
25182 * tests/test-round1.c (NaN): Likewise.
25183 * tests/test-roundf1.c (NaN): Likewise.
25184 * tests/test-snprintf-posix.h (NaN): Likewise.
25185 * tests/test-sprintf-posix.h (NaN): Likewise.
25186 * tests/test-trunc1.c (NaN): Likewise.
25187 * tests/test-truncf1.c (NaN): Likewise.
25188 * tests/test-vasnprintf-posix.c (NaN): Likewise.
25189 * tests/test-vasprintf-posix.c (NaN): Likewise.
25190 * modules/isnand-nolibm (Depends-on): Add math.
25191 * modules/isnanf-nolibm (Depends-on): Likewise.
25192 * modules/isnanl (Depends-on): Likewise.
25193 * modules/isnanl-nolibm (Depends-on): Likewise.
25194 * modules/snprintf-posix-tests (Depends-on): Likewise.
25195 * modules/sprintf-posix-tests (Depends-on): Likewise.
25196 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25197 * modules/vsprintf-posix-tests (Depends-on): Likewise.
25198 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25199 * modules/vasprintf-posix-tests (Depends-on): Likewise.
25201 2008-03-31 Bruno Haible <bruno@clisp.org>
25203 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25204 * doc/posix-functions/strtod.texi: Likewise.
25206 2008-03-31 Bruno Haible <bruno@clisp.org>
25208 * tests/test-strtod.c (main): Don't use C99 syntax.
25210 2008-03-31 Bruno Haible <bruno@clisp.org>
25212 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25213 Reported by Eric Blake.
25215 2008-03-31 Jim Meyering <meyering@redhat.com>
25217 Don't compare actual signbit return values.
25218 * tests/test-strtod.c (main): Rather, compare only their
25219 zero/non-zero nature.
25221 2008-03-31 Eric Blake <ebb9@byu.net>
25223 More strtod documentation.
25224 * doc/posix-functions/strtod.texi (strtod): Interpret more test
25225 failures as distinct bugs.
25227 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
25229 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25230 Problem reported by Erik Benada in
25231 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25233 2008-03-30 Bruno Haible <bruno@clisp.org>
25235 * tests/test-strtod.c: Add comments about which assertion fails on which
25237 * doc/posix-functions/strtod.texi: Add info about many more platforms.
25239 2008-03-30 Eric Blake <ebb9@byu.net>
25241 Test signbit behavior on zeros.
25242 * tests/test-signbit.c (test_signbitf): Add tests for zero.
25243 (test_signbitd, test_signbitl): Likewise.
25245 More strtod touchups.
25246 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25247 sign of negative underflow, for now. Use .5, not .1.
25248 * doc/posix-functions/strtod.texi (strtod): Mention these
25250 Reported by Jim Meyering.
25252 2008-03-30 Bruno Haible <bruno@clisp.org>
25254 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25255 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25257 2008-03-30 Bruno Haible <bruno@clisp.org>
25259 Avoid failure when attempting to return empty iconv results on some
25261 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25262 allocation, don't report ENOMEM when the resulting string is empty.
25264 2008-03-30 Bruno Haible <bruno@clisp.org>
25266 Fix buffer overrun.
25267 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25268 Don't consider the width for tmp_length. Check count against tmp_length
25269 before doing the padding. Ensure enough allocation during padding.
25271 2008-03-30 Eric Blake <ebb9@byu.net>
25274 * lib/strtod.c (strtod): Avoid compiler warnings.
25275 Reported by Jim Meyering.
25277 2008-03-30 Bruno Haible <bruno@clisp.org>
25279 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25280 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25281 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25282 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25283 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25284 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25285 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25286 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25288 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25289 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25290 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25291 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25292 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25293 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25294 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25295 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25297 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25298 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25299 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25300 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25301 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25302 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25303 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25304 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25306 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25307 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25309 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25310 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25312 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25313 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25315 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25316 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25317 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25319 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25320 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25321 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25323 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25324 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25325 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25327 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25328 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25329 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25331 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25332 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25333 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25334 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25335 (Depends-on): Add EOVERFLOW.
25336 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25337 (Depends-on): Add EOVERFLOW.
25338 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25339 (Depends-on): Add EOVERFLOW.
25340 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25341 (Depends-on): Add EOVERFLOW.
25342 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25343 (Depends-on): Add EOVERFLOW.
25344 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25345 (Depends-on): Add EOVERFLOW.
25346 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25347 (Depends-on): Add EOVERFLOW.
25348 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25349 (Depends-on): Add EOVERFLOW.
25351 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25352 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25353 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25355 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25356 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25357 * modules/snprintf (Depends-on): Add EOVERFLOW.
25359 * lib/poll.c (EOVERFLOW): Remove fallback.
25360 * modules/poll (Depends-on): Add EOVERFLOW.
25362 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25363 * modules/getugroups (Depends-on): Add EOVERFLOW.
25365 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25366 * modules/getdelim (Depends-on): Add EOVERFLOW.
25368 * lib/ftell.c (EOVERFLOW): Remove fallback.
25369 * modules/ftell (Depends-on): Add EOVERFLOW.
25371 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25372 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25373 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25375 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25377 * modules/EOVERFLOW-tests: New file.
25378 * tests/test-EOVERFLOW.c: New file.
25380 * modules/EOVERFLOW: New file.
25381 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25383 2008-03-30 Bruno Haible <bruno@clisp.org>
25385 Fix bug introduced on 2007-06-10.
25386 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25387 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25389 2008-03-30 Bruno Haible <bruno@clisp.org>
25391 Improve freadseek's efficiency after ungetc.
25392 * lib/freadseek.c: Include freadahead.h.
25393 (freadptrinc): New function, extracted from freadseek.
25394 (freadseek): Use it in a loop. Use freadahead to determine the number
25395 of loop iterations.
25396 * modules/freadseek (Depends-on): Add freadahead.
25397 (configure.ac): Require AC_C_INLINE.
25399 2008-03-30 Bruno Haible <bruno@clisp.org>
25401 * lib/freadseek.c (freadseek): Don't ignore the return value of
25404 2008-03-29 Eric Blake <ebb9@byu.net>
25406 Add hex float support.
25407 * modules/strtod (Depends-on): Add c-ctype.
25408 (Link): Mention POW_LIB.
25409 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25410 whitespace between 'e' and exponent.
25411 * tests/test-strtod.c (main): Enable hex float tests.
25412 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25415 Document various strtod bugs, with some fixes.
25416 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25417 "-0x", "inf", "nan", and hex constants.
25418 * doc/posix-functions/atof.texi (atof): Likewise.
25419 * modules/stdlib (Makefile.am): Support strtod.
25420 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25421 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25422 detect additional strtod bugs.
25423 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25424 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25425 bool where appropriate. Parse 'inf' and 'nan'.
25426 * tests/test-strtod.c: New file.
25427 * modules/strtod (Depends-on): Add stdbool, stdlib.
25428 (configure.ac): Turn on module indicator.
25429 * modules/strtod-tests: New module.
25431 2008-03-29 Eric Blake <ebb9@byu.net>
25433 Fix ftell on mingw.
25434 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25435 * modules/ftell-tests (Depends-on): Add binary-io.
25436 * modules/ftello-tests (Depends-on): Likewise.
25437 * tests/test-ftell.c (main): Enhance test to cover behavior after
25438 ungetc. Enforce binary mode.
25439 * tests/test-ftello.c (main): Likewise.
25441 Pass test-freadseek on cygwin.
25442 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25443 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25446 * tests/test-fflush2.c (main): Fix typo.
25448 2008-03-29 Bruno Haible <bruno@clisp.org>
25450 * tests/test-fflush2.c (main): Temporarily disable the contents of
25452 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25453 Reported by Eric Blake.
25455 2008-03-28 Simon Josefsson <simon@josefsson.org>
25457 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25458 (GC_SHA224_DIGEST_SIZE): Add.
25460 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25461 (gc_hash_digest_length): Likewise.
25462 (gc_hash_buffer): Likewise.
25464 2008-03-25 Bruno Haible <bruno@clisp.org>
25466 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25467 detail which gettext release to use.
25468 Reported by Simon Josefsson.
25470 2008-03-26 Jim Meyering <meyering@redhat.com>
25472 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25473 * modules/gnumakefile (clean-GNUmakefile): Also, use
25474 test ... && ... || : syntax rather than if-then ... fi.
25476 gnumakefile: Don't double-quote-expand $(VPATH) value.
25477 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25479 2008-03-24 Eric Blake <ebb9@byu.net>
25481 Alter GNUmakefile to install into top directory.
25482 * modules/maintainer-makefile: Split, and add dependency...
25483 * modules/gnumakefile: to this new module.
25484 * build-aux/GNUmakefile: Move...
25485 * top/GNUmakefile: ...here.
25486 * build-aux/maint.mk: Move...
25487 * top/maint.mk: ...here.
25488 * MODULES.html.sh (Support for maintaining...): Document new
25491 2008-03-23 Bruno Haible <bruno@clisp.org>
25493 * gnulib-tool: New options --vc-files, --no-vc-files.
25494 (func_usage): Document them.
25495 (vc_files): New variable.
25496 (func_import): Consider vc_files.
25497 (func_create_testdir): Set vc_files to empty.
25498 Suggested by Jim Meyering and Karl Berry.
25500 2008-03-23 Bruno Haible <bruno@clisp.org>
25502 Fix regex compilation error on HP-UX 11.
25503 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25504 * modules/regex (Files): Add m4/mbstate_t.m4.
25505 Reported by Ton Voon <ton.voon@altinity.com>.
25507 2008-03-23 Bruno Haible <bruno@clisp.org>
25509 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25511 2008-03-23 Eric Blake <ebb9@byu.net>
25512 Bruno Haible <bruno@clisp.org>
25514 Install files from top/ in the destination directory.
25515 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25516 augmentation also for the files from top/.
25517 (func_import, func_create_testdir): Rewrite file names:
25518 top/filename -> filename.
25520 2008-03-23 Bruno Haible <bruno@clisp.org>
25522 Tweak "gnulib --version" output.
25523 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25525 2008-03-23 Bruno Haible <bruno@clisp.org>
25527 Tweak "gnulib --version" output.
25528 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25529 rather than contents of ChangeLog, when possible.
25531 2008-03-21 Eric Blake <ebb9@byu.net>
25533 More --version tweaks.
25534 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
25535 date of last ChangeLog entry.
25537 2008-03-21 Jim Meyering <meyering@redhat.com>
25539 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25541 2008-03-20 Eric Blake <ebb9@byu.net>
25544 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25546 2008-03-20 Simon Josefsson <simon@josefsson.org>
25548 * build-aux/GNUmakefile: Make git-version-gen optional. Add
25549 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
25551 2008-03-20 Eric Blake <ebb9@byu.net>
25553 Sync GNUmakefile with coreutils.
25554 * build-aux/GNUmakefile (have-Makefile): Rename...
25555 (_have-Makefile): ...to this, for namespace consideration.
25556 (GNUmakefile.cfg): Include, if present.
25557 (_autoreconf): Define a default.
25558 (_is-dist-target): New rule for rebuilds to pick up intra-release
25560 (maint-cfg.mk): Rename...
25561 (cfg.mk): ...to this.
25563 2008-03-18 Jim Meyering <meyering@redhat.com>
25565 New script and module: mktempd
25566 * MODULES.html.sh (maint+release support): Add mktempd.
25567 * build-aux/mktempd: New file.
25568 * modules/mktempd: New file.
25570 2008-03-15 Jim Meyering <meyering@redhat.com>
25573 * lib/sha1.c, lib/md5.c: 63 != ~63.
25574 Reported by Andreas Schwab.
25576 sha1.c, md5.c: Hoist a redundant expression.
25577 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25578 "ctx->buflen" only once, before calling *_process_block.
25579 * lib/md5.c (md5_process_bytes): Likewise.
25581 2008-03-14 Eric Blake <ebb9@byu.net>
25583 Bump copyright year in files generated by gnulib-tool.
25584 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25585 gnulib-tool, rather than hard-coding it.
25587 Fix 'gnulib-tool --version' output to work with git.
25588 * gnulib-tool (func_gnulib_dir): New function, extracted from...
25589 (startup): ...here.
25590 (func_version): Use it to invoke git-version-gen, rather than
25591 relying on CVS keyword expansion. Modernize wording.
25592 (cvsdatestamp, last_checkin_date, version): Kill unused
25595 2008-03-12 Jim Meyering <meyering@redhat.com>
25597 Recognize optional cast of the argument to free.
25598 * build-aux/useless-if-before-free: Update regexps.
25600 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25602 2008-03-11 Bruno Haible <bruno@clisp.org>
25604 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25605 by a single package.
25606 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25607 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25608 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25609 Reported by Sam Steingold <sds@gnu.org>.
25611 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
25613 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25616 2008-03-11 Bruno Haible <bruno@clisp.org>
25618 Avoid conflicts between local macro definitions.
25619 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25620 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25622 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
25623 Bruno Haible <bruno@clisp.org>
25625 Make va_copy work with some version of xlc on AIX 5.1.
25626 * lib/stdarg.in.h: New file.
25627 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25628 On AIX, use a <stdarg.h> file substitute.
25629 * modules/stdarg (Files): Add lib/stdarg.in.h.
25630 (Depends-on): Add include_next.
25631 (Makefile.am): Build a stdarg.h substitute if requested.
25632 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25634 2008-03-10 Bruno Haible <bruno@clisp.org>
25636 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25637 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25638 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25640 2008-03-10 Bruno Haible <bruno@clisp.org>
25642 * modules/stdlib (Depends-on): Add include_next, remove
25645 2008-03-09 Bruno Haible <bruno@clisp.org>
25647 * lib/freadahead.h (freadahead): Document more precisely.
25648 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25649 the sum of both buffer sizes.
25650 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25651 * NEWS: Document the change.
25653 2008-03-09 Bruno Haible <bruno@clisp.org>
25655 Extend freadptr to return also the buffer size.
25656 * lib/freadptr.h (freadptr): Add sizep argument.
25657 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25658 (freadptr): Add sizep argument. Determine buffer size like freadahead
25660 * tests/test-freadptr.c: Don't include freadahead.h.
25661 (main): Adapt for new calling convention of freadptr.
25662 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25663 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25664 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25665 tests/test-freadptr2.sh.
25666 (Depends): Remove freadahead.
25667 (TESTS): Add test-freadptr2.sh.
25668 (check_PROGRAMS): Add test-freadptr2.
25670 2008-03-09 Bruno Haible <bruno@clisp.org>
25672 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25673 Report and solution by Simon Josefsson.
25675 2008-03-06 Bruno Haible <bruno@clisp.org>
25677 Make fflush after ungetc work on BSD platforms.
25678 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25679 * tests/test-fflush2.c: New file.
25680 * tests/test-fflush2.sh: New file.
25681 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25682 tests/test-fflush2.c.
25683 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25684 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25686 2008-03-06 Eric Blake <ebb9@byu.net>
25688 Likewise for ftello.
25689 * modules/ftello (Dependencies): Add extensions.
25690 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25692 2008-03-06 Bruno Haible <bruno@clisp.org>
25694 * modules/fseeko (Dependencies): Add extensions.
25695 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25696 Needed on glibc systems.
25698 2008-03-06 Bruno Haible <bruno@clisp.org>
25700 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25702 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25704 2008-03-06 Bruno Haible <bruno@clisp.org>
25706 * users.txt: Add libgnupdf.
25708 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25710 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25711 (Header File Substitutes, Function Substitutes,
25712 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25713 (Build robot for gnulib): Fix typo.
25715 2008-03-06 Bruno Haible <bruno@clisp.org>
25717 * doc/gnulib-tool.texi (VCS Issues): Small updates.
25718 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25720 2008-03-06 Bruno Haible <bruno@clisp.org>
25722 * doc/func.texi: New file, extracted from doc/gnulib.texi.
25723 * doc/gnulib.texi: Include it.
25725 2008-03-06 Simon Josefsson <simon@josefsson.org>
25727 * modules/func (License): Change license to unlimited; there was
25728 no LGPL parts in the module anyway.
25730 2008-03-06 Simon Josefsson <simon@josefsson.org>
25732 * modules/__func__: Renamed to modules/func.
25733 * modules/__func__-tests: Renamed to modules/func-tests.
25734 * tests/test-__func__.c: Renamed to tests/test-func.c.
25735 * m4/__func__.m4: Renamed to m4/func.m4.
25736 * doc/gnulib.texi (__func__): Section renamed to func.
25737 Suggested by Eric Blake <ebb9@byu.net>.
25739 2008-03-06 Simon Josefsson <simon@josefsson.org>
25741 * doc/gnulib.texi (__func__): Use C99 terminology when talking
25742 about __func__. Make example self-contained. Suggested by Eric
25743 Blake <ebb9@byu.net>.
25745 * tests/test-__func__.c (main): Avoid extraneous () around __func.
25746 Suggested by Eric Blake <ebb9@byu.net>.
25748 2008-03-06 Simon Josefsson <simon@josefsson.org>
25750 * modules/__func__: New file.
25751 * modules/__func__-tests: New file.
25752 * tests/test-__func__.c: New file.
25753 * m4/__func__.m4: New file.
25754 * doc/gnulib.texi (__func__): Document __func__ module.
25756 2008-03-05 Simon Josefsson <simon@josefsson.org>
25758 * modules/byteswap (License): Re-license as LGPLv2+.
25760 2008-03-05 Simon Josefsson <simon@josefsson.org>
25762 * doc/Makefile: Add pdf target.
25764 2008-03-05 Simon Josefsson <simon@josefsson.org>
25766 * modules/inline (License): Use 'unlimited', since there are only
25767 *.m4 files in this module.
25769 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25770 Bruno Haible <bruno@clisp.org>
25772 Add support for HP C 7.1 on OpenVMS 8.3.
25773 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25775 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25777 Update VMS specifics.
25778 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25780 2008-03-02 Jim Meyering <meyering@redhat.com>
25782 Remove the last dependency on the "free" module.
25783 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25784 Reported by Bob Proulx.
25786 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25788 Remove useless "if" tests before free. Deprecate "free" module.
25789 * doc/posix-functions/free.texi: Mention that this
25790 module is no longer useful.
25791 * modules/free (Notice): Say this module is obsolete.
25792 * modules/readutmp (Depends-on): Remove free.
25793 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25794 * lib/putenv.c (putenv): Likewise.
25795 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25796 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25797 * tests/test-c-strcasestr.c (main): Likewise.
25798 * tests/test-c-strstr.c (main): Likewise.
25799 * tests/test-mbscasestr1.c (main): Likewise.
25800 * tests/test-mbscasestr2.c (main): Likewise.
25801 * tests/test-mbsstr1.c (main): Likewise.
25802 * tests/test-mbsstr2.c (main): Likewise.
25803 * tests/test-memmem.c (main): Likewise.
25804 * tests/test-strcasestr.c (main): Likewise.
25805 * tests/test-striconv.c (main): Likewise.
25806 * tests/test-striconveh.c (main): Likewise.
25807 * tests/test-striconveha.c (main): Likewise.
25808 * tests/test-strstr.c (main): Likewise.
25810 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25812 bootstrap: sync from coreutils again
25813 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25815 2008-03-01 Jim Meyering <meyering@redhat.com>
25817 bootstrap: sync from coreutils
25818 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25819 also when the target doesn't exist.
25821 2008-03-01 Eric Blake <ebb9@byu.net>
25823 Fix bugs in last patch.
25824 * lib/memchr2.c (memchr2): Fix typo.
25825 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25827 Reported by Bruce Korb.
25829 New module 'memchr2'.
25830 * modules/memchr2: New file.
25831 * modules/memchr2-tests: Likewise.
25832 * lib/memchr2.h: Likewise.
25833 * lib/memchr2.c: Likewise, based on memchr.c.
25834 * tests/test-memchr2.c: New test.
25835 * MODULES.html.sh (String handling): Add memchr2.
25837 2008-02-29 Bruno Haible <bruno@clisp.org>
25839 * modules/freadseek-tests: New file.
25840 * tests/test-freadseek.sh: New file.
25841 * tests/test-freadseek.c: New file.
25843 New module 'freadseek'.
25844 * modules/freadseek: New file.
25845 * lib/freadseek.h: New file.
25846 * lib/freadseek.c: New file.
25847 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25849 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
25851 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25854 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25855 program_invocation_name and program_invocation_short_name are
25858 2008-02-28 Bruno Haible <bruno@clisp.org>
25860 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25861 * tests/test-freadptr.sh: Also test non-seekable stdin.
25863 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
25865 * build-aux/bootstrap (source_base, m4_base)
25866 (doc_base, tests_base): New variables.
25867 (gnulib_tool_options): Do not hardcode base directories, use
25868 the above variables instead.
25870 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
25872 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25874 2008-02-28 Bruno Haible <bruno@clisp.org>
25876 * modules/freadptr-tests: New file.
25877 * tests/test-freadptr.sh: New file.
25878 * tests/test-freadptr.c: New file.
25880 New module 'freadptr'.
25881 * modules/freadptr: New file.
25882 * lib/freadptr.h: New file.
25883 * lib/freadptr.c: New file.
25884 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25886 2008-02-26 Karl Berry <karl@freefriends.org>
25889 * libltdl/argz.c (argz_add, argz_count): New functions.
25890 * libltdl/argz.in.h: Declare them.
25891 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25893 2008-02-22 Bruno Haible <bruno@clisp.org>
25895 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25896 is a pointer type. Needed for HP-UX 10.
25897 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25898 * doc/posix-functions/gmtime_r.texi: Likewise.
25899 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25901 2008-02-24 Bruno Haible <bruno@clisp.org>
25903 * modules/environ-tests: New file.
25904 * tests/test-environ.c: New file.
25906 New module 'environ'.
25907 * modules/environ: New file.
25908 * lib/unistd.in.h (environ): New declaration.
25909 * m4/environ.m4: New file.
25910 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25912 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25914 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25916 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25917 wrong claim that 'environ' is missing on some systems.
25918 * modules/execute (Depends-on): Add environ.
25919 * lib/execute.c (environ): Remove fallback declaration.
25920 * modules/pipe (Depends-on): Add environ.
25921 * lib/pipe.c (environ): Remove fallback declaration.
25922 * modules/setenv (Depends-on): Add environ.
25923 * lib/setenv.c (environ): Remove fallback declaration.
25924 * modules/unsetenv (Depends-on): Add environ.
25925 * lib/unsetenv.c (environ): Remove fallback declaration.
25926 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25928 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25929 (gl_PREREQ_UNSETENV): Likewise.
25931 2008-02-24 Bruno Haible <bruno@clisp.org>
25933 * doc/posix-functions/environ.texi: Document the MacOS X problem.
25935 2008-02-20 Bob Proulx <bob@proulx.com>
25937 Enable use of older two part flavor 'git describe'.
25938 * build-aux/git-version-gen: If using the older two part flavor of
25939 git version then recreate the third part now present in the
25940 newer three part flavor of git describe.
25942 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
25944 * lib/fts.c (fts_build): Typo correction to comment.
25946 2008-02-17 Bruno Haible <bruno@clisp.org>
25948 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25949 generating no-op conflicts.
25951 2008-02-17 Bruno Haible <bruno@clisp.org>
25954 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25955 result_entries, rather than an index-based loop.
25957 2008-02-17 Bruno Haible <bruno@clisp.org>
25960 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25962 (entry_create): New function.
25963 (entry_hashcode): Use the cached hashcode if possible.
25964 (read_changelog_file, try_split_merged_entry): Use entry_create.
25966 2008-02-17 Bruno Haible <bruno@clisp.org>
25968 Speed up from O(n^2) to O(n) for long ChangeLog files.
25969 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25970 (read_changelog_file): Change implementation of entries_reversed list
25972 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25974 2008-02-17 Bruno Haible <bruno@clisp.org>
25976 New option --split-merged-entry.
25977 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25978 (find_paragraph_end, try_split_merged_entry): New functions.
25979 (long_options): Add option --split-merged-entry.
25980 (usage): Document option --split-merged-entry.
25981 (main): Implement option --split-merged-entry.
25982 Reported by Eric Blake.
25984 2008-02-17 Bruno Haible <bruno@clisp.org>
25986 * lib/git-merge-changelog.c: Include c-strstr.h.
25987 (main): Support the "git pull --rebase" situation.
25988 * modules/git-merge-changelog (Depends-on): Add c-strstr.
25989 Reported by Eric Blake.
25991 2008-02-16 Eric Blake <ebb9@byu.net>
25993 Avoid doubling \ in common case of "c-maybe" quoting style.
25994 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25995 eliding outer quotes.
25996 * lib/quotearg.h: Document this.
25997 * tests/test-quotearg.c (result_strings, inputs, results_g)
25998 (flag_results, locale_results): Test it by adding a new string to
26000 (compare_strings): Test new string.
26002 2008-02-13 Eric Blake <ebb9@byu.net>
26004 Avoid trigraph quoting in default output.
26005 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26006 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26007 unless explicitly requested.
26008 * tests/test-quotearg.c (flag_results, main): Add additional tests.
26010 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
26012 Don't rely on signed integer overflowing to negative value.
26013 * lib/getugroups.c (getugroups): Include <limits.h>.
26014 Instead, compare against INT_MAX, and increment only if the test passes.
26016 2008-02-13 Jim Meyering <meyering@redhat.com>
26017 and Eric Blake <ebb9@byu.net>
26019 Avoid shadowing warning and compile errors on Linux.
26020 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26021 forwarding macros on Linux.
26022 (dcgettext): Define a stub, for Linux.
26023 (results_g, main): Avoid warnings.
26025 2008-02-12 Eric Blake <ebb9@byu.net>
26027 Silence warning in last patch.
26028 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26030 Quotearg part 4: add tests, fix c-maybe colon quoting.
26031 * lib/quotearg.h: Improve documentation.
26032 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26033 escapes when adding outer quotes. When quoting trigraphs, use
26034 valid C notation. When quoting NUL, omit extra characters if next
26035 character is not digit. Alter prototype.
26036 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26038 * modules/quotearg-tests: New module.
26039 * tests/test-quotearg.c: New test.
26041 2008-02-07 Eric Blake <ebb9@byu.net>
26043 Quotearg part 3: add flag to control outer quote elision.
26044 * lib/quotearg.h (c_maybe_quoting_style): New style.
26045 (enum quoting_flags): Better documentation of flags.
26046 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26048 (quotearg_buffer_restyled): Handle new flag to elide outer
26051 Quotearg part 2: add flag that can control NUL elision.
26052 * lib/quotearg.h (set_quoting_flags): New prototype.
26053 * lib/quotearg.c (struct quoting_options): Add flag field.
26054 (set_quoting_flags): New function.
26055 (quotearg_buffer_restyled): Add flags parameter.
26056 (quotearg_alloc_mem): Set the flag if length cannot be returned.
26057 (quotearg_n_options): Set the flag, since length cannot be
26059 (quoting_options_from_style): Default flags correctly.
26061 Quotearg part 1: more wrappers, restore quotearg_char state.
26062 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26063 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26064 (quotearg_colon_mem): New wrappers.
26065 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26066 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26068 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26069 (quotearg_colon_mem): New functions.
26071 2008-02-11 Bruno Haible <bruno@clisp.org>
26073 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26074 library in the current directory: it does not work with parallel make.
26075 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26077 2008-02-11 Bruno Haible <bruno@clisp.org>
26079 * .gitattributes: New file.
26081 2008-02-11 Jim Meyering <meyering@redhat.com>
26083 useless-if-before-free: Fix reversed exit values.
26084 * build-aux/useless-if-before-free: Use correct values
26085 for EXIT_MATCH and EXIT_NO_MATCH.
26087 * build-aux/useless-if-before-free: Close stdout carefully.
26089 2008-02-10 Bruno Haible <bruno@clisp.org>
26091 New module 'git-merge-changelog'.
26092 * modules/git-merge-changelog: New file.
26093 * lib/git-merge-changelog.c: New file.
26095 2008-02-10 Jim Meyering <meyering@redhat.com>
26097 useless-if-before-free: New option: --list (-l).
26099 useless-if-before-free: Don't exit immediately upon open failure.
26100 * build-aux/useless-if-before-free: Exit 2 for errors.
26101 Upon failure to open a file, don't exit immediately.
26102 Rather, just warn and continue with any remaining files.
26104 2008-02-10 Bruno Haible <bruno@clisp.org>
26106 New abstract list operation 'node_set_value'.
26107 * lib/gl_list.h (gl_list_node_set_value): New function.
26108 (struct gl_list_implementation): New field node_set_value.
26109 * lib/gl_list.c (gl_list_node_set_value): New function.
26110 * lib/gl_array_list.c (gl_array_node_set_value): New function.
26111 (gl_array_list_implementation): Update.
26112 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26113 (gl_carray_list_implementation): Update.
26114 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26115 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26116 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26117 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26118 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26119 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26120 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26122 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26123 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26124 (gl_sublist_list_implementation): Update.
26126 2008-02-10 Bruno Haible <bruno@clisp.org>
26128 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26129 Needed when ELEMENT is #defined to 'some_type *'.
26131 2008-02-10 Jim Meyering <meyering@redhat.com>
26133 New script and module: useless-if-before-free
26134 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26135 * build-aux/useless-if-before-free: New file.
26136 * modules/useless-if-before-free: New file.
26138 * build-aux/gitlog-to-changelog: Use committer date, not author date.
26140 xstrtol_error: Fix typo.
26141 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26142 s/exit_failure/exit_status/.
26144 2008-02-09 Jim Meyering <meyering@redhat.com>
26146 New script and module: gitlog-to-changelog
26147 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26148 * modules/gitlog-to-changelog: New file.
26149 * build-aux/gitlog-to-changelog: New file.
26151 2008-02-08 Jim Meyering <meyering@redhat.com>
26153 Avoid two "parameter unused" warnings.
26154 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26157 Use "git COMMAND", not "git-COMMAND".
26158 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26159 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26160 * build-aux/git-version-gen: Use "git status", not "git-status".
26162 2008-02-07 Bruno Haible <bruno@clisp.org>
26164 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26165 Avoids a crash on Windows Vista.
26166 Reported by Adam Strzelecki <ono@java.pl> via
26167 Simon Josefsson <simon@josefsson.org>.
26169 2008-02-06 Bruno Haible <bruno@clisp.org>
26171 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26172 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26173 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26174 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26175 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26176 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26177 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26178 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26179 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26180 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26181 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26182 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26183 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26184 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26185 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26186 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26188 * tests/test-snprintf-posix.h (test_function): Likewise.
26189 * tests/test-sprintf-posix.h (test_function): Likewise.
26190 * tests/test-vasprintf-posix.c (test_function): Likewise.
26191 * doc/posix-functions/fprintf.texi: Update.
26192 * doc/posix-functions/printf.texi: Update.
26193 * doc/posix-functions/snprintf.texi: Update.
26194 * doc/posix-functions/sprintf.texi: Update.
26195 * doc/posix-functions/vfprintf.texi: Update.
26196 * doc/posix-functions/vprintf.texi: Update.
26197 * doc/posix-functions/vsnprintf.texi: Update.
26198 * doc/posix-functions/vsprintf.texi: Update.
26199 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26201 2008-02-06 Bruno Haible <bruno@clisp.org>
26203 Fix bug introduced on 2008-01-26.
26204 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26206 2008-02-06 Bruno Haible <bruno@clisp.org>
26208 Fix bug introduced on 2007-06-10.
26209 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26210 !NEED_PRINTF_FLAG_ZERO.
26212 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
26214 getloadavg: use libperfstat on AIX5
26215 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26217 2008-02-03 Bruno Haible <bruno@clisp.org>
26219 * lib/diffseq.h: Add comments about required #includes.
26220 Reported by Michael Biggs <gnulib@doubleplum.net>.
26222 2008-02-01 Bruno Haible <bruno@clisp.org>
26224 * users.txt: Add gnuit.
26226 2008-01-31 Bruno Haible <bruno@clisp.org>
26228 * lib/md4.c (set_uint32): Mark as inline.
26229 * lib/md5.c (set_uint32): Likewise.
26230 * lib/sha1.c (set_uint32): Likewise.
26231 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26232 * m4/md5.m4 (gl_MD5): Likewise.
26233 * m4/sha1.m4 (gl_SHA1): Likewise.
26235 2008-01-31 Jim Meyering <meyering@redhat.com>
26237 Use "sizeof VAR", rather than a literal "4".
26238 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26239 * lib/md4.c (md4_read_ctx): Likewise.
26240 * lib/sha1.c (sha1_read_ctx): Likewise.
26242 2008-01-31 Simon Josefsson <simon@josefsson.org>
26244 * tests/test-sha1.c: New file, based on test-md5.c.
26246 * modules/crypto/sha1-tests: New file.
26248 2008-01-31 Simon Josefsson <simon@josefsson.org>
26250 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26252 2008-01-31 Jim Meyering <meyering@redhat.com>
26254 Prefer "sizeof v" over the equivalent "4".
26255 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26256 * lib/md5.c (set_uint32): Likewise.
26257 * lib/sha1.c (set_uint32): Likewise.
26259 2008-01-31 Simon Josefsson <simon@josefsson.org>
26261 * lib/sha1.c (set_uint32): Mark function as static.
26263 2008-01-31 Simon Josefsson <simon@josefsson.org>
26265 md2: clarify comments to say that alignment is not required.
26266 * lib/md2.h: Remove warning about alignment in comment.
26267 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26268 never been required.
26270 2008-01-31 Simon Josefsson <simon@josefsson.org>
26272 md4: adapt alignment constraint fix from sha1.
26273 * lib/md4.c (set_uint32): New function, from sha1.c
26274 (md4_read_ctx): Use it.
26275 (md4_finish_ctx): Doc fix.
26276 * lib/md4.h: Doc fix.
26278 2008-01-31 Simon Josefsson <simon@josefsson.org>
26280 md5: adapt alignment constraint fix from sha1.
26281 * lib/md5.c (set_uint32): New function, from sha1.c
26282 (md5_read_ctx): Use it.
26283 (md5_finish_ctx): Doc fix.
26284 * lib/md5.h: Doc fix.
26286 2008-01-30 Peter Palfrader <weasel@debian.org>
26288 sha1: remove the result buffer alignment constraint
26289 * lib/sha1.c (set_uint32): New function.
26290 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26292 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26293 * lib/sha1.h: Likewise.
26295 2008-01-30 Andreas Schwab <schwab@suse.de>
26296 Bruno Haible <bruno@clisp.org>
26298 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26299 correct definition of LDBL_MIN_EXP.
26301 2008-01-30 Karl Berry <karl@gnu.org>
26303 * config/srclist-update: try to preserve x bit on updates.
26304 * config/srclistvars.sh: update for karl.
26306 2008-01-29 Jim Meyering <meyering@redhat.com>
26308 vasnprintf.c: Avoid warning about unused label
26309 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26310 "overflow" label definition and associated code with the
26311 same cpp condition that guards the sole use of that label.
26313 2008-01-26 Bruno Haible <bruno@clisp.org>
26315 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26316 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26317 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26318 * lib/isnanl-nolibm.h (isnanl): Likewise.
26319 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26321 2008-01-26 Bruno Haible <bruno@clisp.org>
26323 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26324 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26326 2008-01-26 Bruno Haible <bruno@clisp.org>
26328 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26329 GCC >= 4.0 built-in.
26330 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26332 2008-01-26 Bruno Haible <bruno@clisp.org>
26334 Rename isnan, applicable to 'double' only, to isnand.
26335 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26336 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26337 (configure.ac): Update.
26338 (Include): Replace "isnan.h" with "isnand.h".
26339 * m4/isnand.m4: Renamed from m4/isnan.m4.
26340 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26341 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26342 instead of isnan.c.
26343 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26344 instead of HAVE_ISNAN_IN_LIBC.
26345 (isnand): Renamed from isnan.
26346 * lib/isnand.c: New file.
26347 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26348 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26349 (Makefile.am): Update.
26350 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26351 Include isnand.h instead of isnan.h.
26352 (main): Test isnand instead of isnan.
26353 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26355 * modules/frexp (Depends-on): Likewise.
26356 * modules/frexp-tests (Depends-on): Likewise.
26357 * modules/frexp-nolibm (Depends-on): Likewise.
26358 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26359 * modules/isfinite (Depends-on): Likewise.
26360 * modules/round-tests (Depends-on): Likewise.
26361 * modules/signbit (Depends-on): Likewise.
26362 * modules/signbit-tests (Depends-on): Likewise.
26363 * modules/snprintf-posix (Depends-on): Likewise.
26364 * modules/sprintf-posix (Depends-on): Likewise.
26365 * modules/trunc-tests (Depends-on): Likewise.
26366 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26367 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26368 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26369 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26370 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26371 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26372 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26373 * modules/vasnprintf-posix (Depends-on): Likewise.
26374 * modules/vasprintf-posix (Depends-on): Likewise.
26375 * modules/vfprintf-posix (Depends-on): Likewise.
26376 * modules/vsnprintf-posix (Depends-on): Likewise.
26377 * modules/vsprintf-posix (Depends-on): Likewise.
26378 * lib/frexp.c: Include isnand.h instead of isnan.h.
26379 (ISNAN): Set to isnand instead of isnan.
26380 * lib/isfinite.c: Include isnand.h instead of isnan.h.
26381 (gl_isfinited): Use isnand instead of isnan.
26382 * lib/signbitd.c: Include isnand.h instead of isnan.h.
26383 (gl_signbitd): Use isnand instead of isnan.
26384 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26385 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26386 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26387 (main): Use isnand instead of isnan.
26388 * tests/test-round1.c: Include isnand.h.
26389 (main): Use isnand instead of isnan.
26390 * tests/test-round2.c: Include isnand.h instead of isnan.h.
26391 (ISNAN): Set to isnand instead of isnan.
26392 * tests/test-trunc1.c: Include isnand.h.
26393 (main): Use isnand instead of isnan.
26394 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26395 (equal): Use isnand instead of isnan.
26396 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26398 * NEWS: Mention the change.
26400 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
26401 Bruno Haible <bruno@clisp.org>
26403 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26404 the GCC builtins for signbits are present and set
26405 REPLACE_SIGNBIT_USING_GCC if so.
26406 * lib/math.in.h (signbit): Define using GCC builtins if
26407 REPLACE_SIGNBIT_USING_GCC is set.
26408 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26409 REPLACE_SIGNBIT_USING_GCC.
26410 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26412 2008-01-25 Jim Meyering <meyering@redhat.com>
26414 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26415 * lib/poll.c: Include <config.h>, not "config.h".
26416 * tests/test-getaddrinfo.c: Likewise.
26418 2008-01-25 Simon Josefsson <simon@josefsson.org>
26420 * modules/sockets-tests: New file.
26422 2008-01-24 Simon Josefsson <simon@josefsson.org>
26424 * modules/sockets: New module, can be used to call WSA_Startup and
26425 WSA_Cleanup when needed.
26427 * lib/sockets.h, lib/sockets.c: New files.
26429 * m4/sockets.m4: New file.
26431 * tests/test-sockets.c: New file.
26433 2008-01-19 Bruno Haible <bruno@clisp.org>
26435 * doc/posix-headers: Renamed from doc/headers.
26436 * doc/posix-functions: Renamed from doc/functions.
26437 * doc/gnulib.texi: Update.
26439 2008-01-19 Bruno Haible <bruno@clisp.org>
26441 * doc/glibc-functions/strcasestr.texi: Include contents of
26442 doc/functions/strcasestr.texi, fixing the list of platforms.
26443 * doc/functions/strcasestr.texi: Remove file.
26445 2008-01-19 Bruno Haible <bruno@clisp.org>
26447 * doc/glibc-functions/memmem.texi: Include contents of
26448 doc/functions/memmem.texi.
26449 * doc/functions/memmem.texi: Remove file.
26451 2008-01-18 Bruno Haible <bruno@clisp.org>
26453 * doc/glibc-functions/*.texi: New files.
26454 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26455 to use the new files.
26457 2008-01-17 Bruno Haible <bruno@clisp.org>
26459 * tests/test-gethostname.c (main): Fix printf statement.
26461 2008-01-17 Simon Josefsson <simon@josefsson.org>
26463 * modules/gethostname-tests: New file.
26465 * tests/test-gethostname.c: New file.
26467 2008-01-17 Simon Josefsson <simon@josefsson.org>
26469 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26470 used by the UNAME case. Reported by Bruno Haible
26473 2008-01-17 Eric Blake <ebb9@byu.net>
26475 Convert c-strcasestr to be more efficient.
26476 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26477 (Depends-on): Add c-strcase, remove malloca, strnlen.
26478 * tests/test-c-strcasestr.c (main): Enhance test.
26479 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26481 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
26483 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26484 Use it in creating po/Makevars.
26486 2008-01-15 Simon Josefsson <simon@josefsson.org>
26488 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26489 Applications that requires it should initialize libgcrypt
26492 2008-01-16 Simon Josefsson <simon@josefsson.org>
26494 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26496 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
26498 Fix problem with getdate on mingw32 reported by Simon Josefsson
26499 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26500 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26501 tzname", when deciding whether to declare tzname.
26502 * lib/strftime.c (tzname): Likewise.
26504 2008-01-15 Bruno Haible <bruno@clisp.org>
26506 Work around a MacOS X 10.5 bug in frexpl().
26507 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26508 * doc/functions/frexpl.texi: Document the bug.
26509 Reported by Elias Pipping <pipping@gentoo.org>.
26511 2008-01-14 Eric Blake <ebb9@byu.net>
26513 Touch up previous patch.
26514 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26515 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26517 Convert strcasestr module to use Two-Way algorithm.
26518 * modules/strcasestr-simple: New module, based on the old
26519 strcasestr, but with Two-Way rather than KMP.
26520 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26521 * lib/string.in.h (rpl_strcasestr): Declare.
26522 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26524 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26525 * modules/string (Makefile.am): Support strcasestr.
26526 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26527 * modules/strcasestr-tests (Depends-on): Check for alarm.
26528 * tests/test-strcasestr.c: Augment test.
26529 * lib/str-two-way.h: Clean up stray macro.
26530 * NEWS: Document new module.
26531 * MODULES.html.sh (string handling): Likewise.
26532 * doc/functions/strcasestr.texi: New file.
26533 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
26534 here, since it is not a POSIX function.
26536 2008-01-14 Colin Watson <cjwatson@debian.org>
26537 Bruno Haible <bruno@clisp.org>
26539 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26540 works fine; if not, set REPLACE_STRSIGNAL.
26541 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26542 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26544 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26545 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26546 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26548 2008-01-14 Bruno Haible <bruno@clisp.org>
26550 * modules/strsignal (Include): Change to <string.h>.
26552 2008-01-14 Colin Watson <cjwatson@debian.org>
26554 * modules/argp (Notice): Add a notice recommending to change
26556 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26558 2008-01-13 Colin Watson <cjwatson@debian.org>
26560 * modules/strsignal-tests: New file.
26561 * tests/test-strsignal.c: New file.
26563 * lib/strsignal.c: New file, from glibc with modifications.
26564 * lib/siglist.h: New file, from glibc with modifications.
26565 * lib/string.in.h (strsignal): New declaration.
26566 * m4/strsignal.m4: New file.
26567 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26568 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26569 * modules/strsignal: New file.
26570 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26571 HAVE_DECL_STRSIGNAL.
26573 2008-01-13 Bruno Haible <bruno@clisp.org>
26575 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26576 locale encoding is not ASCII. Needed for OpenBSD 4.0.
26577 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26578 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26580 2008-01-13 Bruno Haible <bruno@clisp.org>
26582 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26583 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26584 * lib/argp.h (__attribute__): Likewise.
26585 * lib/c-stack.c (__attribute__): Likewise.
26586 * lib/error.h (__attribute__): Likewise.
26587 * lib/fts.c (__attribute__): Likewise.
26588 * lib/openat.h (__attribute__): Likewise.
26589 * lib/stdio.in.h (__attribute__): Likewise.
26590 * lib/string.in.h (__attribute__): Likewise.
26591 * lib/utimens.c (__attribute__): Likewise.
26592 * lib/vasnprintf.h (__attribute__): Likewise.
26593 * lib/xalloc.h (__attribute__): Likewise.
26594 * lib/xprintf.h (__attribute__): Likewise.
26595 * lib/xstrtol.h (__attribute__): Likewise.
26596 * lib/xvasprintf.h (__attribute__): Likewise.
26598 2008-01-12 Bruno Haible <bruno@clisp.org>
26600 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26601 * doc/glibc-headers/a.out.texi: New file.
26602 * doc/glibc-headers/aliases.texi: New file.
26603 * doc/glibc-headers/alloca.texi: New file.
26604 * doc/glibc-headers/ar.texi: New file.
26605 * doc/glibc-headers/argp.texi: New file.
26606 * doc/glibc-headers/argz.texi: New file.
26607 * doc/glibc-headers/byteswap.texi: New file.
26608 * doc/glibc-headers/crypt.texi: New file.
26609 * doc/glibc-headers/endian.texi: New file.
26610 * doc/glibc-headers/envz.texi: New file.
26611 * doc/glibc-headers/err.texi: New file.
26612 * doc/glibc-headers/error.texi: New file.
26613 * doc/glibc-headers/execinfo.texi: New file.
26614 * doc/glibc-headers/fpu_control.texi: New file.
26615 * doc/glibc-headers/fstab.texi: New file.
26616 * doc/glibc-headers/fts.texi: New file.
26617 * doc/glibc-headers/getopt.texi: New file.
26618 * doc/glibc-headers/ieee754.texi: New file.
26619 * doc/glibc-headers/ifaddrs.texi: New file.
26620 * doc/glibc-headers/libintl.texi: New file.
26621 * doc/glibc-headers/mcheck.texi: New file.
26622 * doc/glibc-headers/mntent.texi: New file.
26623 * doc/glibc-headers/obstack.texi: New file.
26624 * doc/glibc-headers/paths.texi: New file.
26625 * doc/glibc-headers/printf.texi: New file.
26626 * doc/glibc-headers/pty.texi: New file.
26627 * doc/glibc-headers/resolv.texi: New file.
26628 * doc/glibc-headers/shadow.texi: New file.
26629 * doc/glibc-headers/sysexits.texi: New file.
26630 * doc/glibc-headers/ttyent.texi: New file.
26632 2008-01-12 Jim Meyering <meyering@redhat.com>
26634 announce-gen: emit Gnulib's git-based version string.
26635 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26636 New option --gnulib-version=V, where V is expected to be
26637 the output of running git describe in the gnulib directory.
26638 (get_tool_versions): Request feedback on xdelta. I suspect it's
26639 not useful, and plan to stop publishing an xdelta file with each
26642 * build-aux/announce-gen: Also check for lzma-compressed files.
26644 2008-01-11 Bruno Haible <bruno@clisp.org>
26646 * tests/test-memmem.c (main): Increase maximum allowed time.
26647 * tests/test-strstr.c (main): Likewise.
26649 2008-01-11 Bruno Haible <bruno@clisp.org>
26651 * doc/functions/memmem.texi: Add more precisions about platforms.
26652 * doc/functions/strstr.texi: Likewise.
26654 2008-01-10 Eric Blake <ebb9@byu.net>
26656 * m4/strstr.m4: Delete cruft from copy-n-paste.
26657 Reported by Bruno Haible.
26659 2008-01-10 Bruno Haible <bruno@clisp.org>
26661 Make c-strstr rely on strstr.
26662 * lib/c-strstr.c: Don't include str-kmp.h.
26663 (c_strstr): Define in terms of strstr.
26664 * modules/c-strstr (Files): Remove lib/str-kmp.h.
26665 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26667 2008-01-10 Bruno Haible <bruno@clisp.org>
26669 * doc/gnulib.texi (String Functions in C Locale): New section.
26670 * doc/c-ctype.texi: New file.
26671 * doc/c-strcase.texi: New file.
26672 * doc/c-strcaseeq.texi: New file.
26673 * doc/c-strcasestr.texi: New file.
26674 * doc/c-strstr.texi: New file.
26675 * doc/c-strtod.texi: New file.
26676 * doc/c-strtold.texi: New file.
26678 2008-01-10 Eric Blake <ebb9@byu.net>
26680 * lib/relocatable.h: Fix a comment.
26682 2008-01-10 Eric Blake <ebb9@byu.net>
26684 Share two-way algorithm.
26685 * lib/str-two-way.h: New file, merged from...
26686 * lib/memmem.c: ...here...
26687 * lib/strstr.c: ...and here.
26688 * modules/memmem (Files): Use it.
26689 * modules/strstr (Files): Likewise.
26691 Avoid quadratic strstr implementations.
26692 * lib/strstr.c: New file.
26693 * m4/strstr.m4: Likewise.
26694 * modules/strstr: Likewise.
26695 * modules/strstr-tests: Likewise.
26696 * tests/test-strstr.c: Likewise.
26697 * lib/string.in.h (rpl_strstr): Declare.
26698 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26699 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26700 * modules/string (Makefile.am): Likewise.
26701 * MODULES.html.sh (string handling): Mention new module.
26702 * doc/functions/strstr.texi (strstr): Document the bug.
26704 2008-01-10 Bruno Haible <bruno@clisp.org>
26706 * lib/relocatable.h (relocate): State whether result is freshly
26708 * lib/relocatable.c (relocate): Return a freshly allocated string
26709 instead of a pointer to a privately held string.
26710 Reported by Sylvain Beucler <beuc@gnu.org>.
26712 2008-01-10 Colin Watson <cjwatson@debian.org>
26714 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26715 s/S_ISNLK/S_ISLNK/.
26717 2008-01-09 Bruno Haible <bruno@clisp.org>
26719 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26721 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26722 if it's only a guess.
26723 * modules/memmem: Simplify by depending on memmem-simple.
26725 2008-01-09 Bruno Haible <bruno@clisp.org>
26727 Work around OpenBSD 4.0 tdelete() bug.
26728 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26729 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26730 macros and don't redefine the enum values.
26731 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26732 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26733 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26735 2008-01-09 Bruno Haible <bruno@clisp.org>
26737 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26738 (main): Don't perform the tests if setlocale did not install a UTF-8
26739 locale. Needed on OpenBSD 4.0.
26740 * modules/wcwidth-tests (Depends-on): Add localcharset.
26742 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
26744 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26745 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26746 * NEWS: announce this.
26747 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26749 2008-01-09 Simon Josefsson <simon@josefsson.org>
26750 and Eric Blake <ebb9@byu.net>
26752 Add memmem-simple module.
26753 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26754 (gl_FUNC_MEMMEM): Separate performance from presence checks.
26755 * modules/memmem-simple: New file.
26756 * modules/memmem (Description): Tweak.
26757 * MODULES.html.sh (string handling): Mention new module.
26758 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26759 addressed by memmem-simple.
26760 * NEWS: Document the difference.
26762 2008-01-09 Eric Blake <ebb9@byu.net>
26764 Give gcc some memmem optimization hints.
26765 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26766 (strcasestr): Declare as pure.
26767 * modules/memmem (Maintainer): Claim my implementation.
26769 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26771 Support AIX 6.1 and higher.
26772 * build-aux/config.libpath: Likewise.
26773 * build-aux/config.rpath: Likewise.
26775 2008-01-08 Jim Meyering <meyering@redhat.com>
26776 Bruno Haible <bruno@clisp.org>
26778 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26779 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26780 Reported by Peter Fales in
26781 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26783 2008-01-08 Bruno Haible <bruno@clisp.org>
26785 * modules/unictype/category-of (Depends-on): Add
26786 unictype/category-none.
26787 * modules/unictype/category-and-tests (Depends-on): Add
26788 unictype/category-{L,N,Lu,Nd}.
26789 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26790 * modules/unictype/category-or-tests (Depends-on): Add
26791 unictype/category-{L,N}.
26792 * modules/unictype/category-name-tests (Depends-on): Add
26793 unictype/category-{Z,Nl}.
26794 Reported by Simon Josefsson.
26796 2008-01-08 Bruno Haible <bruno@clisp.org>
26798 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26800 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26801 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26802 Reported by Peter Miller <millerp@canb.auug.org.au>.
26804 2008-01-08 Eric Blake <ebb9@byu.net>
26806 Rewrite memmem to guarantee linear complexity without malloc.
26807 * lib/memmem.c (memmem): Use Two-Way rather than
26808 Knuth-Morris-Pratt, to allow O(1) space usage.
26809 (critical_factorization, two_way_short_needle)
26810 (two_way_long_needle): New functions.
26811 (knuth_morris_pratt): Delete.
26812 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26814 * tests/test-memmem.c (main): Add tests for periodic needle and
26815 sublinear performance.
26816 * doc/functions/memmem.texi (memmem): Document other deficiencies
26817 in cygwin and older glibc.
26819 2008-01-08 Bruno Haible <bruno@clisp.org>
26821 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26824 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26826 Add a configure time option: --disable-acl.
26827 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26828 AC_ARG_ENABLE(acl).
26830 2008-01-06 Simon Josefsson <simon@josefsson.org>
26832 * tests/test-localename.c: Don't include obsolete "setenv.h".
26834 * modules/localename-tests (Depends-on): Need unsetenv.
26836 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26838 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26840 2008-01-06 Colin Watson <cjwatson@debian.org>
26842 * users.txt: Add man-db.
26844 2008-01-07 Bruno Haible <bruno@clisp.org>
26846 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26847 previous section name.
26849 2008-01-07 Bruno Haible <bruno@clisp.org>
26851 * lib/progname.c (set_program_name): Don't strip off a leading
26852 "lt-" prefix outside a .libs directory.
26853 Suggested by Paul Eggert.
26855 2008-01-01 Sylvain Beucler <beuc@gnu.org>
26856 Bruno Haible <bruno@clisp.org>
26858 Improve memory cleanup in 'relocatable' module.
26859 * lib/relocatable.h (compute_curr_prefix): Change return type to
26861 * lib/relocatable.c (compute_curr_prefix): Change return type to
26862 'char *'. Free curr_installdir after use.
26863 (relocate): Free curr_prefix_better after use.
26864 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26866 2008-01-01 Bruno Haible <bruno@clisp.org>
26868 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26869 failure on older glibc systems.
26870 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26872 2008-01-05 Eric Blake <ebb9@byu.net>
26874 Avoid quadratic system memmem.
26875 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26876 Reported by Ralf Wildenhues.
26878 Fix memmem test for mingw.
26879 * modules/memmem-tests (configure.ac): Check for alarm.
26880 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26882 * doc/functions/memmem.texi: New file.
26883 * doc/gnulib.texi (Function Substitutes): Add memmem.
26884 Reported by Bruno Haible.
26886 2008-01-04 Bruno Haible <bruno@clisp.org>
26888 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26889 Require gl_HEADER_STRINGS_H_DEFAULTS, not
26890 gl_HEADER_STRING_H_DEFAULTS.
26892 2008-01-04 Eric Blake <ebb9@byu.net>
26894 Shorten duration of memmem test.
26895 * tests/test-memmem.c (main): Use alarm to declare failure if test
26896 is taking too long.
26897 Reported by Ralf Wildenhues.
26899 2007-12-21 Simon Josefsson <simon@josefsson.org>
26901 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26902 string, needed by strerror.
26904 2008-01-03 Colin Watson <cjwatson@debian.org>
26905 Bruno Haible <bruno@clisp.org>
26907 * doc/gnulib-tool.texi (Localization): New section.
26909 2008-01-02 Bruno Haible <bruno@clisp.org>
26911 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26912 variables to 'unsigned char *' type.
26913 Reported by Paul Eggert.
26915 2008-01-02 Jim Meyering <jim@meyering.net>
26917 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26919 2007-12-31 Jim Meyering <jim@meyering.net>
26921 Avoid use of private FTS type name.
26922 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26924 2007-12-30 Karl Berry <karl@gnu.org>
26926 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26927 work around defect in Texinfo and/or the standalone Info browser.
26929 2007-12-30 Bruno Haible <bruno@clisp.org>
26931 Unify 5 copies of the KMP code.
26932 * lib/str-kmp.h: New file.
26933 * lib/c-strcasestr.c: Include str-kmp.h.
26934 (knuth_morris_pratt): Remove function.
26935 (c_strcasestr): Update.
26936 * lib/c-strstr.c: Include str-kmp.h.
26937 (knuth_morris_pratt): Remove function.
26938 (c_strcasestr): Update.
26939 * lib/mbscasestr.c: Include str-kmp.h.
26940 (knuth_morris_pratt_unibyte): Remove function.
26941 * lib/mbsstr.c: Include str-kmp.h.
26942 (knuth_morris_pratt_unibyte): Remove function.
26943 * lib/strcasestr.c: Include str-kmp.h.
26944 (knuth_morris_pratt): Remove function.
26945 (strcasestr): Update.
26946 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26947 * modules/c-strstr (Files): Likewise.
26948 * modules/mbscasestr (Files): Likewise.
26949 * modules/mbsstr (Files): Likewise.
26950 * modules/strcasestr (Files): Likewise.
26951 Suggested by Paul Eggert.
26953 2007-12-30 Bruno Haible <bruno@clisp.org>
26955 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26958 2007-12-30 Bruno Haible <bruno@clisp.org>
26960 * lib/xmalloca.h: Include xalloc.h.
26961 (xnmalloca): New macro.
26963 2007-12-30 Bruno Haible <bruno@clisp.org>
26965 * lib/malloca.h (nmalloca): New macro.
26966 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26967 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26968 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26969 knuth_morris_pratt_multibyte): Likewise.
26970 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26971 knuth_morris_pratt_multibyte): Likewise.
26972 * lib/memmem.c (knuth_morris_pratt): Likewise.
26973 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26975 2007-12-25 Bruno Haible <bruno@clisp.org>
26977 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26978 * lib/glob.c: Don't include openat.h.
26979 (link_exists2_p): Add back the code that deals with the
26980 !GLOB_ALTDIRFUNC case.
26981 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26982 let it do the filename concatenation.
26983 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26984 * modules/glob (Depends-on): Remove openat.
26986 2007-12-31 Bruno Haible <bruno@clisp.org>
26988 * modules/dirfd (License): Change to LGPLv2+.
26989 Approved by Jim Meyering.
26991 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
26993 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26994 when multiplying M by sizeof (size_t).
26996 2007-12-10 Martin Lambers <marlam@marlam.de>
26998 Override getpagesize on mingw.
26999 * lib/getpagesize.c: New file.
27000 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27001 * modules/getpagesize (Files): Add lib/getpagesize.c.
27002 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27003 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27004 REPLACE_GETPAGESIZE.
27005 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27007 2007-12-25 Bruno Haible <bruno@clisp.org>
27009 * modules/localcharset (Notice): New field.
27010 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27011 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27013 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
27014 Bruno Haible <bruno@clisp.org>
27016 Avoid using the syntax symbol() in formatted documentation.
27017 * MODULES.html.sh (func_module): When replacing symbol() with a
27018 hyperlink, remove the parentheses. Show an error if some remain.
27019 Recognize and render the '...' syntax.
27020 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27021 Rework. Add paragraph about GCC's inlining.
27022 * doc/alloca.texi: Likewise.
27023 * doc/error.texi: Remove parentheses from symbol reference.
27024 * doc/gnulib-intro.texi: Likewise.
27025 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27026 * modules/fnmatch (Description): Reword to say "the ... function".
27027 * modules/full-read (Description): Likewise.
27028 * modules/full-write (Description): Likewise.
27029 * modules/safe-read (Description): Likewise.
27030 * modules/safe-write (Description): Likewise.
27031 * modules/strchrnul (Description): Likewise.
27032 * modules/trim (Description): Likewise.
27033 * modules/error (Description): Remove parentheses from symbol
27035 * modules/verror (Description): Likewise.
27036 Reported by Karl Berry.
27038 2007-12-25 Bruno Haible <bruno@clisp.org>
27040 Fixup after 2007-10-16 commit.
27041 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27043 2007-12-24 Bruno Haible <bruno@clisp.org>
27045 Make --enable-relocatable work with DESTDIR.
27046 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27047 to compute installdir from destprog.
27048 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27049 also set the RELOC_DESTDIR variable.
27050 Reported by Левашев Иван <octagram@bluebottle.com>.
27052 2007-12-24 Bruno Haible <bruno@clisp.org>
27054 Fix link error due to xalloc_die().
27055 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27057 * lib/relocwrapper.c: Update comments.
27058 * build-aux/install-reloc: Remove xreadlink.c from file list.
27059 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27061 Reported by Левашев Иван <octagram@bluebottle.com>.
27063 2007-12-24 Bruno Haible <bruno@clisp.org>
27065 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27066 * lib/setenv.h: Remove file.
27067 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27069 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27070 (Depends-on): Add stdlib.
27071 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27073 (Include): Replace setenv.h with <stdlib.h>.
27074 * modules/unsetenv: New file.
27075 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27076 * lib/unsetenv.c: Include <stdlib.h> first.
27077 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27078 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27079 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27080 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27081 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27082 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27083 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27084 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27085 * doc/functions/unsetenv.texi: Update.
27086 * modules/xsetenv (Depends-on): Add unsetenv.
27087 * modules/getdate (Depends-on): Likewise.
27088 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27089 * lib/xsetenv.c: Don't include setenv.h.
27090 * lib/getdate.y: Likewise.
27091 * lib/relocwrapper.c: Likewise.
27092 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27093 (Depends-on): Add stdlib.
27094 * NEWS: Mention the changes.
27095 Reported by Левашев Иван <octagram@bluebottle.com>.
27097 2007-12-23 Bruno Haible <bruno@clisp.org>
27099 * lib/memmem.c (memmem): Use lowercase variable names. Tab
27102 2007-12-23 Bruno Haible <bruno@clisp.org>
27104 * lib/c-strcasestr.c: Add more comments.
27105 * lib/c-strstr.c: Likewise.
27106 * lib/mbscasestr.c: Likewise.
27107 * lib/mbsstr.c: Likewise.
27108 * lib/strcasestr.c: Likewise.
27109 * lib/memmem.c: Likewise.
27111 2007-12-23 Bruno Haible <bruno@clisp.org>
27113 * tests/test-memmem.c: Include <string.h> first.
27115 2007-12-22 Bruno Haible <bruno@clisp.org>
27117 * gnulib-tool (func_create_testdir): Change $auxdir while generating
27118 the contents of $testsbase.
27119 Reported by Ralf Wildenhues.
27121 2007-12-22 Bruno Haible <bruno@clisp.org>
27123 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27124 two variables local_ldadd_before, local_ldadd_last.
27126 2007-12-20 Eric Blake <ebb9@byu.net>
27128 Work around circular library issue when cross-compiling.
27129 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27130 that progname.o does not need to pull in rpl_memcmp.
27132 2007-12-19 Eric Blake <ebb9@byu.net>
27134 Fix memmem to avoid O(n^2) worst-case complexity.
27135 * lib/memmem.c (knuth_morris_pratt): New function.
27136 (memmem): Use it if first few naive iterations fail.
27137 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27138 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27139 * modules/memchr (License): Likewise.
27140 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27142 * tests/test-memmem.c: Rewrite, borrowing ideas from
27143 test-mbsstr1.c; the old version wouldn't even compile!
27144 * modules/memmem-tests: New file.
27145 * lib/string.in.h (rpl_memmem): Add declaration.
27146 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27147 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27150 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
27152 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27153 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27154 before any system include files, and undef after them all. This
27155 should fix a problem on VMS reported by John E. Malmberg in
27156 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27158 2007-12-17 Eric Blake <ebb9@byu.net>
27160 Revert addition of verify, for BSD/OS.
27161 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27162 can't handle large files, for the sake of obsolete platforms.
27163 * modules/fseeko (Depends-on): Remove verify.
27164 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27165 * doc/functions/ftello.texi (ftello): Likewise.
27166 * doc/functions/fgetpos.texi (fgetpos): Likewise.
27167 Reported by Larry Jones.
27169 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
27171 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27172 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27174 2007-12-17 Jim Meyering <meyering@redhat.com>
27176 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27177 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27178 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27179 * modules/getcwd (Depends-on): Add openat.
27180 Reported by Petr Salinger.
27182 2007-12-17 Bruno Haible <bruno@clisp.org>
27184 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27185 avoid a segmentation fault of the configure test on x86_64 systems.
27187 2007-12-15 Jim Meyering <meyering@redhat.com>
27189 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27191 2007-12-13 Eric Blake <ebb9@byu.net>
27193 Another fseek test.
27194 * tests/test-fseek.c (main): Also test ungetc handling.
27195 * tests/test-fseeko.c (main): Likewise.
27196 * modules/fseeko (Depends-on): Add verify.
27197 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27199 Reported by Larry Jones.
27201 Fix fseeko on mingw.
27202 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27205 Beef up fseek tests.
27206 * tests/test-fseek.c (main): Also test eof handling.
27207 * tests/test-fseeko.c (main): Likewise.
27208 Reported by Larry Jones.
27210 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
27212 Fix fseeko on BSD-based platforms.
27213 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27216 2007-12-12 Eric Blake <ebb9@byu.net>
27218 Allow circular dependency of separate libtests.a
27219 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27222 2007-12-11 Eric Blake <ebb9@byu.net>
27224 Fix bug with -0.0L in previous patch.
27225 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27226 * tests/test-isnan.c (main): Also test on zeroes.
27227 * tests/test-isnanf.c (main): Likewise.
27228 * tests/test-isnanl.h (main): Likewise.
27230 Detect pseudo-denormals on x86 even when cross-compiling.
27231 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27232 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27233 invalid bit patterns that happen to satisfy ==.
27235 Avoid link failures with separate libtests.a.
27236 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27237 last, to satisfy circular dependencies.
27239 2007-12-11 Eric Blake <ebb9@byu.net>
27240 and Bruno Haible <bruno@clisp.org>
27242 Fix OpenBSD 4.0 <float.h> handling of long double.
27243 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27244 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27245 * doc/headers/float.texi (float.h): Document OpenBSD bug.
27247 2007-12-11 Jim Meyering <meyering@redhat.com>
27249 * users.txt: Add libvirt.
27251 Support versions of autoconf prior to 2.59c.
27252 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27253 if it is not already defined.
27255 2007-12-09 Bruno Haible <bruno@clisp.org>
27257 Let 'gnulib-tool --import' collect sources needed for the tests in
27258 tests/ rather than in lib/.
27259 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27260 argument. If true, add rules to generate libtests.a, and put libtests.a
27261 into $(LDADD). Consider source files in subdirectories and set
27263 (func_emit_initmacro_start, func_emit_initmacro_end,
27264 func_emit_initmacro_done): Pass all arguments explicitly.
27265 (func_import): Determine two module lists main_modules,
27266 testsrelated_modules. Determine use_libtests. Determine two variables
27267 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27268 instead of just sed_transform_lib_file. Determine two variables
27269 main_files and testsrelated_files. Compute 'files' as the union of
27270 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27271 func_add_or_update. In the generated gnulib-comp.m4, collect the
27272 object files for tests/ in different variables than those for lib/.
27273 Substitute LIBTESTS_LIBDEPS.
27274 (func_create_testdir): Combine the uses_subdirs results from
27275 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27277 2007-12-09 Bruno Haible <bruno@clisp.org>
27279 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27280 the build-aux directory.
27282 2007-12-09 Bruno Haible <bruno@clisp.org>
27284 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27285 introduced on 2006-09-09.
27287 2007-12-07 Jim Meyering <meyering@redhat.com>
27289 Let these macros work also with autoconf-2.59.
27290 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27291 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27292 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27294 2007-12-06 Jim Meyering <meyering@redhat.com>
27296 Avoid a configure-time syntax error in gl_FUNC_ACL.
27297 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27298 function in each branch, before testing the cache variable.
27300 2007-12-04 Eric Blake <ebb9@byu.net>
27302 Make scripts executable.
27303 * build-aux/config.guess: Add execute permissions.
27304 * build-aux/config.sub: Likewise.
27305 * build-aux/gendocs.sh: Likewise.
27307 Fix frexp on mingw.
27308 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27310 * doc/functions/frexp.texi (frexp): Document the bug.
27312 Make cygwin fseeko check more reliable.
27313 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27314 version numbers, rather than unrelated feature check.
27315 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27316 * doc/functions/ftello.texi (ftello): Likewise.
27317 Reported by Bruno Haible.
27319 * m4/strerror.m4: Bump version number.
27321 2007-12-03 Bruno Haible <bruno@clisp.org>
27323 * doc/functions/mprotect.texi: Mention the mingw problem.
27325 2007-12-03 Eric Blake <ebb9@byu.net>
27327 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27328 REPLACE_STRERROR is initialized before this macro.
27330 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27332 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27333 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27334 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27335 put -lsec in even for programs other than 'ls'. This fixes a problem
27336 for gettext reported by Bruno Haible in
27337 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27338 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27339 Add support for Solaris 10. This isn't efficient, but should get the
27342 2007-12-03 James Youngman <jay@gnu.org>
27344 * doc/regexprops-generic.texi: change "an close-group" to "a
27345 close-group" and "illegal" to "not allowed".
27347 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27349 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27350 pr_byname.h. Needed for the rare case when the maintainer has done
27351 "make maintainer-clean" in the source directory and then attempts a
27352 build outside the source directory.
27353 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27356 2007-12-02 Martin Lambers <marlam@marlam.de>
27357 Bruno Haible <bruno@clisp.org>
27359 * lib/getpagesize.h: Remove file.
27360 * lib/unistd.in.h: Include declaration of getpagesize here.
27361 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27362 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27364 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27365 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27366 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27367 (Depends-on): Add unistd.
27368 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27369 (Include): Use <unistd.h> instead of getpagesize.h.
27370 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27371 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27372 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27373 gl_GETPAGESIZE invocation, already handled by module dependency.
27374 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27376 2007-12-02 Bruno Haible <bruno@clisp.org>
27378 * modules/strings-tests: New file.
27379 * tests/test-strings.c: New file.
27381 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27382 * lib/strings.in.h: New file.
27383 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27384 * m4/strings_h.m4: New file.
27385 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27386 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27387 * modules/strings: New file.
27388 * modules/string (Makefile.am): Update.
27389 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27390 Reported by Karl Berry.
27392 2007-12-01 Eric Blake <ebb9@byu.net>
27394 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27395 accomodate fix in cygwin 1.5.25.
27397 2007-12-01 Jim Meyering <meyering@redhat.com>
27399 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27400 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27401 that would inhibit utf8-optimization of a regexp containing line-
27402 or buffer-anchors, e.g., `^', `$'.
27404 2007-11-30 Bruno Haible <bruno@clisp.org>
27406 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27407 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27408 glthread_recursive_lock_init.
27409 * lib/lock.c (glthread_recursive_lock_init)
27410 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27411 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27413 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27415 New function qset_acl, like set_acl but with syscall semantics.
27416 * lib/acl.h (qset_acl): New decl.
27417 * lib/acl.c (qset_acl): New function.
27418 (set_acl): Use new function. Use more-consistent diagnostics.
27420 2007-11-28 Jim Meyering <meyering@redhat.com>
27422 * modules/physmem (License): Change from GPL to LGPLv2+.
27424 2007-11-26 Bruno Haible <bruno@clisp.org>
27426 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27427 'long double' type has excess precision.
27428 Reported by Jim Meyering in
27429 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27431 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27433 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27434 Sync from <http://gnu.org/licenses>.
27435 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27436 with license text from same location.
27437 * doc/maintain.texi, doc/standards.texi: Sync from
27438 <http://savannah.gnu.org/projects/gnustandards>.
27440 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
27441 and Jim Meyering <meyering@redhat.com>
27443 Adjust getdate' grammar to accept a slightly more regular language.
27444 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27445 Before, the former was rejected.
27446 * lib/getdate.y (digits_to_date_time): New function, factored
27448 (number): ...here. Just call digits_to_date_time.
27449 (hybrid): New non-terminal to handle an <unsigned number,
27450 signed relative offset> sequence consistently.
27452 2007-11-18 Jim Meyering <meyering@redhat.com>
27454 Pull my changes from coreutils:
27455 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27456 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27457 use of $gnulib_tool_option_extras, so that it's separated from the
27458 preceding argument.
27460 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27461 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27462 parent destination directories before copying a file into place.
27464 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27466 bootstrap: work also with 4-argument variant of AC_INIT
27467 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27469 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27471 Port test-getaddrinfo to Solaris.
27472 Problem reported by Bruno Haible in
27473 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27474 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27475 explanation of setting 'hints'.
27476 Don't reject an implementation merely because it returns EAI_SERVICE.
27477 (EAI_SERVICE): Define to 0 if not defined.
27479 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
27481 The license of gnu-make and posix-shell is now "GPLed build tool".
27482 * modules/gnu-make (License): Likewise.
27483 * modules/posix-shell (License): Likewise.
27485 New module posix-shell, for determining a POSIX shell
27486 or perhaps something that is close enough to a POSIX shell.
27487 * m4/posix-shell.m4: New file.
27488 * modules/posix-shell: New file.
27490 * MODULES.html.sh: Mention new module.
27492 New module gnu-make, for determining whether we're using GNU Make.
27493 * m4/gnu-make.m4: New file.
27494 * modules/gnu-make: New file.
27495 * MODULES.html.sh: Mention new module.
27497 2007-11-14 Jim Meyering <meyering@redhat.com>
27499 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27500 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27501 use this macro to create a function _definition_.
27502 Remove useless "#undef ARGMATCH_DIE".
27504 2007-11-14 Bruno Haible <bruno@clisp.org>
27506 * lib/config.charset: Update for OpenBSD 4.1.
27507 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27509 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
27511 Document 64-bit #if problems in stdint.texi.
27512 * doc/headers/stdint.texi (stdint.h): Mention problems with
27513 64-bit-#if, and how to work around them.
27515 Don't insist on 'long long int' support in the preprocessor. It
27516 breaks too many things. For example, PRIdMAX still uses a 'long
27517 long int' format with the latest Sun compiler, even though
27518 HAVE_LONG_LONG_INT isn't defined due to that compiler's
27519 preprocessor problem. This causes the latest coreutils to dump
27520 core on Solaris 10 sparc with the Sun C compiler.
27521 Instead, fix the 2007-10-16 problem in a different way, by evaluating
27522 the troublesome expressions at configure-time, not at #if-time.
27523 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27525 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27526 compile-time C checks, done at 'configure'-time.
27527 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27528 * modules/inttypes (Makefile): Substitute the new symbols that
27529 gl_INTTYPES_H now generates.
27530 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27532 2007-11-12 Bruno Haible <bruno@clisp.org>
27534 Tests for Unicode character classification functions.
27536 * modules/unictype/bidicategory-byname-tests: New file.
27537 * modules/unictype/bidicategory-name-tests: New file.
27538 * modules/unictype/bidicategory-of-tests: New file.
27539 * modules/unictype/bidicategory-test-tests: New file.
27540 * modules/unictype/block-list-tests: New file.
27541 * modules/unictype/block-of-tests: New file.
27542 * modules/unictype/block-test-tests: New file.
27543 * modules/unictype/category-C-tests: New file.
27544 * modules/unictype/category-Cc-tests: New file.
27545 * modules/unictype/category-Cf-tests: New file.
27546 * modules/unictype/category-Cn-tests: New file.
27547 * modules/unictype/category-Co-tests: New file.
27548 * modules/unictype/category-Cs-tests: New file.
27549 * modules/unictype/category-L-tests: New file.
27550 * modules/unictype/category-Ll-tests: New file.
27551 * modules/unictype/category-Lm-tests: New file.
27552 * modules/unictype/category-Lo-tests: New file.
27553 * modules/unictype/category-Lt-tests: New file.
27554 * modules/unictype/category-Lu-tests: New file.
27555 * modules/unictype/category-M-tests: New file.
27556 * modules/unictype/category-Mc-tests: New file.
27557 * modules/unictype/category-Me-tests: New file.
27558 * modules/unictype/category-Mn-tests: New file.
27559 * modules/unictype/category-N-tests: New file.
27560 * modules/unictype/category-Nd-tests: New file.
27561 * modules/unictype/category-Nl-tests: New file.
27562 * modules/unictype/category-No-tests: New file.
27563 * modules/unictype/category-P-tests: New file.
27564 * modules/unictype/category-Pc-tests: New file.
27565 * modules/unictype/category-Pd-tests: New file.
27566 * modules/unictype/category-Pe-tests: New file.
27567 * modules/unictype/category-Pf-tests: New file.
27568 * modules/unictype/category-Pi-tests: New file.
27569 * modules/unictype/category-Po-tests: New file.
27570 * modules/unictype/category-Ps-tests: New file.
27571 * modules/unictype/category-S-tests: New file.
27572 * modules/unictype/category-Sc-tests: New file.
27573 * modules/unictype/category-Sk-tests: New file.
27574 * modules/unictype/category-Sm-tests: New file.
27575 * modules/unictype/category-So-tests: New file.
27576 * modules/unictype/category-Z-tests: New file.
27577 * modules/unictype/category-Zl-tests: New file.
27578 * modules/unictype/category-Zp-tests: New file.
27579 * modules/unictype/category-Zs-tests: New file.
27580 * modules/unictype/category-and-not-tests: New file.
27581 * modules/unictype/category-and-tests: New file.
27582 * modules/unictype/category-byname-tests: New file.
27583 * modules/unictype/category-name-tests: New file.
27584 * modules/unictype/category-none-tests: New file.
27585 * modules/unictype/category-of-tests: New file.
27586 * modules/unictype/category-or-tests: New file.
27587 * modules/unictype/category-test-withtable-tests: New file.
27588 * modules/unictype/combining-class-tests: New file.
27589 * modules/unictype/ctype-alnum-tests: New file.
27590 * modules/unictype/ctype-alpha-tests: New file.
27591 * modules/unictype/ctype-blank-tests: New file.
27592 * modules/unictype/ctype-cntrl-tests: New file.
27593 * modules/unictype/ctype-digit-tests: New file.
27594 * modules/unictype/ctype-graph-tests: New file.
27595 * modules/unictype/ctype-lower-tests: New file.
27596 * modules/unictype/ctype-print-tests: New file.
27597 * modules/unictype/ctype-punct-tests: New file.
27598 * modules/unictype/ctype-space-tests: New file.
27599 * modules/unictype/ctype-upper-tests: New file.
27600 * modules/unictype/ctype-xdigit-tests: New file.
27601 * modules/unictype/decimal-digit-tests: New file.
27602 * modules/unictype/digit-tests: New file.
27603 * modules/unictype/mirror-tests: New file.
27604 * modules/unictype/numeric-tests: New file.
27605 * modules/unictype/property-alphabetic-tests: New file.
27606 * modules/unictype/property-ascii-hex-digit-tests: New file.
27607 * modules/unictype/property-bidi-arabic-digit-tests: New file.
27608 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27609 * modules/unictype/property-bidi-block-separator-tests: New file.
27610 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27611 * modules/unictype/property-bidi-common-separator-tests: New file.
27612 * modules/unictype/property-bidi-control-tests: New file.
27613 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27614 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27615 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27616 * modules/unictype/property-bidi-european-digit-tests: New file.
27617 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27618 * modules/unictype/property-bidi-left-to-right-tests: New file.
27619 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27620 * modules/unictype/property-bidi-other-neutral-tests: New file.
27621 * modules/unictype/property-bidi-pdf-tests: New file.
27622 * modules/unictype/property-bidi-segment-separator-tests: New file.
27623 * modules/unictype/property-bidi-whitespace-tests: New file.
27624 * modules/unictype/property-byname-tests: New file.
27625 * modules/unictype/property-combining-tests: New file.
27626 * modules/unictype/property-composite-tests: New file.
27627 * modules/unictype/property-currency-symbol-tests: New file.
27628 * modules/unictype/property-dash-tests: New file.
27629 * modules/unictype/property-decimal-digit-tests: New file.
27630 * modules/unictype/property-default-ignorable-code-point-tests: New file.
27631 * modules/unictype/property-deprecated-tests: New file.
27632 * modules/unictype/property-diacritic-tests: New file.
27633 * modules/unictype/property-extender-tests: New file.
27634 * modules/unictype/property-format-control-tests: New file.
27635 * modules/unictype/property-grapheme-base-tests: New file.
27636 * modules/unictype/property-grapheme-extend-tests: New file.
27637 * modules/unictype/property-grapheme-link-tests: New file.
27638 * modules/unictype/property-hex-digit-tests: New file.
27639 * modules/unictype/property-hyphen-tests: New file.
27640 * modules/unictype/property-id-continue-tests: New file.
27641 * modules/unictype/property-id-start-tests: New file.
27642 * modules/unictype/property-ideographic-tests: New file.
27643 * modules/unictype/property-ids-binary-operator-tests: New file.
27644 * modules/unictype/property-ids-trinary-operator-tests: New file.
27645 * modules/unictype/property-ignorable-control-tests: New file.
27646 * modules/unictype/property-iso-control-tests: New file.
27647 * modules/unictype/property-join-control-tests: New file.
27648 * modules/unictype/property-left-of-pair-tests: New file.
27649 * modules/unictype/property-line-separator-tests: New file.
27650 * modules/unictype/property-logical-order-exception-tests: New file.
27651 * modules/unictype/property-lowercase-tests: New file.
27652 * modules/unictype/property-math-tests: New file.
27653 * modules/unictype/property-non-break-tests: New file.
27654 * modules/unictype/property-not-a-character-tests: New file.
27655 * modules/unictype/property-numeric-tests: New file.
27656 * modules/unictype/property-other-alphabetic-tests: New file.
27657 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27658 * modules/unictype/property-other-grapheme-extend-tests: New file.
27659 * modules/unictype/property-other-id-continue-tests: New file.
27660 * modules/unictype/property-other-id-start-tests: New file.
27661 * modules/unictype/property-other-lowercase-tests: New file.
27662 * modules/unictype/property-other-math-tests: New file.
27663 * modules/unictype/property-other-uppercase-tests: New file.
27664 * modules/unictype/property-paired-punctuation-tests: New file.
27665 * modules/unictype/property-paragraph-separator-tests: New file.
27666 * modules/unictype/property-pattern-syntax-tests: New file.
27667 * modules/unictype/property-pattern-white-space-tests: New file.
27668 * modules/unictype/property-private-use-tests: New file.
27669 * modules/unictype/property-punctuation-tests: New file.
27670 * modules/unictype/property-quotation-mark-tests: New file.
27671 * modules/unictype/property-radical-tests: New file.
27672 * modules/unictype/property-sentence-terminal-tests: New file.
27673 * modules/unictype/property-soft-dotted-tests: New file.
27674 * modules/unictype/property-space-tests: New file.
27675 * modules/unictype/property-terminal-punctuation-tests: New file.
27676 * modules/unictype/property-test-tests: New file.
27677 * modules/unictype/property-titlecase-tests: New file.
27678 * modules/unictype/property-unassigned-code-value-tests: New file.
27679 * modules/unictype/property-unified-ideograph-tests: New file.
27680 * modules/unictype/property-uppercase-tests: New file.
27681 * modules/unictype/property-variation-selector-tests: New file.
27682 * modules/unictype/property-white-space-tests: New file.
27683 * modules/unictype/property-xid-continue-tests: New file.
27684 * modules/unictype/property-xid-start-tests: New file.
27685 * modules/unictype/property-zero-width-tests: New file.
27686 * modules/unictype/scripts-tests: New file.
27687 * modules/unictype/syntax-c-ident-tests: New file.
27688 * modules/unictype/syntax-c-whitespace-tests: New file.
27689 * modules/unictype/syntax-java-ident-tests: New file.
27690 * modules/unictype/syntax-java-whitespace-tests: New file.
27691 * tests/unictype/test-bidi_byname.c: New file.
27692 * tests/unictype/test-bidi_name.c: New file.
27693 * tests/unictype/test-bidi_of.c: New file.
27694 * tests/unictype/test-bidi_test.c: New file.
27695 * tests/unictype/test-block_list.c: New file.
27696 * tests/unictype/test-block_of.c: New file.
27697 * tests/unictype/test-block_test.c: New file.
27698 * tests/unictype/test-categ_and.c: New file.
27699 * tests/unictype/test-categ_and_not.c: New file.
27700 * tests/unictype/test-categ_byname.c: New file.
27701 * tests/unictype/test-categ_name.c: New file.
27702 * tests/unictype/test-categ_none.c: New file.
27703 * tests/unictype/test-categ_of.c: New file.
27704 * tests/unictype/test-categ_or.c: New file.
27705 * tests/unictype/test-categ_test_withtable.c: New file.
27706 * tests/unictype/test-combining.c: New file.
27707 * tests/unictype/test-decdigit.c: New file.
27708 * tests/unictype/test-digit.c: New file.
27709 * tests/unictype/test-mirror.c: New file.
27710 * tests/unictype/test-numeric.c: New file.
27711 * tests/unictype/test-pr_byname.c: New file.
27712 * tests/unictype/test-pr_test.c: New file.
27713 * tests/unictype/test-predicate-part1.h: New file.
27714 * tests/unictype/test-predicate-part2.h: New file.
27715 * tests/unictype/test-scripts.c: New file.
27716 * tests/unictype/test-sy_c_ident.c: New file.
27717 * tests/unictype/test-sy_java_ident.c: New file.
27719 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27721 * tests/unictype/test-categ_Cc.c: Likewise.
27722 * tests/unictype/test-categ_Cf.c: Likewise.
27723 * tests/unictype/test-categ_Cn.c: Likewise.
27724 * tests/unictype/test-categ_Co.c: Likewise.
27725 * tests/unictype/test-categ_Cs.c: Likewise.
27726 * tests/unictype/test-categ_L.c: Likewise.
27727 * tests/unictype/test-categ_Ll.c: Likewise.
27728 * tests/unictype/test-categ_Lm.c: Likewise.
27729 * tests/unictype/test-categ_Lo.c: Likewise.
27730 * tests/unictype/test-categ_Lt.c: Likewise.
27731 * tests/unictype/test-categ_Lu.c: Likewise.
27732 * tests/unictype/test-categ_M.c: Likewise.
27733 * tests/unictype/test-categ_Mc.c: Likewise.
27734 * tests/unictype/test-categ_Me.c: Likewise.
27735 * tests/unictype/test-categ_Mn.c: Likewise.
27736 * tests/unictype/test-categ_N.c: Likewise.
27737 * tests/unictype/test-categ_Nd.c: Likewise.
27738 * tests/unictype/test-categ_Nl.c: Likewise.
27739 * tests/unictype/test-categ_No.c: Likewise.
27740 * tests/unictype/test-categ_P.c: Likewise.
27741 * tests/unictype/test-categ_Pc.c: Likewise.
27742 * tests/unictype/test-categ_Pd.c: Likewise.
27743 * tests/unictype/test-categ_Pe.c: Likewise.
27744 * tests/unictype/test-categ_Pf.c: Likewise.
27745 * tests/unictype/test-categ_Pi.c: Likewise.
27746 * tests/unictype/test-categ_Po.c: Likewise.
27747 * tests/unictype/test-categ_Ps.c: Likewise.
27748 * tests/unictype/test-categ_S.c: Likewise.
27749 * tests/unictype/test-categ_Sc.c: Likewise.
27750 * tests/unictype/test-categ_Sk.c: Likewise.
27751 * tests/unictype/test-categ_Sm.c: Likewise.
27752 * tests/unictype/test-categ_So.c: Likewise.
27753 * tests/unictype/test-categ_Z.c: Likewise.
27754 * tests/unictype/test-categ_Zl.c: Likewise.
27755 * tests/unictype/test-categ_Zp.c: Likewise.
27756 * tests/unictype/test-categ_Zs.c: Likewise.
27757 * tests/unictype/test-ctype_alnum.c: Likewise.
27758 * tests/unictype/test-ctype_alpha.c: Likewise.
27759 * tests/unictype/test-ctype_blank.c: Likewise.
27760 * tests/unictype/test-ctype_cntrl.c: Likewise.
27761 * tests/unictype/test-ctype_digit.c: Likewise.
27762 * tests/unictype/test-ctype_graph.c: Likewise.
27763 * tests/unictype/test-ctype_lower.c: Likewise.
27764 * tests/unictype/test-ctype_print.c: Likewise.
27765 * tests/unictype/test-ctype_punct.c: Likewise.
27766 * tests/unictype/test-ctype_space.c: Likewise.
27767 * tests/unictype/test-ctype_upper.c: Likewise.
27768 * tests/unictype/test-ctype_xdigit.c: Likewise.
27769 * tests/unictype/test-decdigit.h: Likewise.
27770 * tests/unictype/test-digit.h: Likewise.
27771 * tests/unictype/test-numeric.h: Likewise.
27772 * tests/unictype/test-pr_alphabetic.c: Likewise.
27773 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27774 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27775 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27776 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27777 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27778 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27779 * tests/unictype/test-pr_bidi_control.c: Likewise.
27780 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27781 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27782 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27783 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27784 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27785 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27786 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27787 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27788 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27789 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27790 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27791 * tests/unictype/test-pr_combining.c: Likewise.
27792 * tests/unictype/test-pr_composite.c: Likewise.
27793 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27794 * tests/unictype/test-pr_dash.c: Likewise.
27795 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27796 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27797 * tests/unictype/test-pr_deprecated.c: Likewise.
27798 * tests/unictype/test-pr_diacritic.c: Likewise.
27799 * tests/unictype/test-pr_extender.c: Likewise.
27800 * tests/unictype/test-pr_format_control.c: Likewise.
27801 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27802 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27803 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27804 * tests/unictype/test-pr_hex_digit.c: Likewise.
27805 * tests/unictype/test-pr_hyphen.c: Likewise.
27806 * tests/unictype/test-pr_id_continue.c: Likewise.
27807 * tests/unictype/test-pr_id_start.c: Likewise.
27808 * tests/unictype/test-pr_ideographic.c: Likewise.
27809 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27810 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27811 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27812 * tests/unictype/test-pr_iso_control.c: Likewise.
27813 * tests/unictype/test-pr_join_control.c: Likewise.
27814 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27815 * tests/unictype/test-pr_line_separator.c: Likewise.
27816 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27817 * tests/unictype/test-pr_lowercase.c: Likewise.
27818 * tests/unictype/test-pr_math.c: Likewise.
27819 * tests/unictype/test-pr_non_break.c: Likewise.
27820 * tests/unictype/test-pr_not_a_character.c: Likewise.
27821 * tests/unictype/test-pr_numeric.c: Likewise.
27822 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27823 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27824 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27825 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27826 * tests/unictype/test-pr_other_id_start.c: Likewise.
27827 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27828 * tests/unictype/test-pr_other_math.c: Likewise.
27829 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27830 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27831 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27832 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27833 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27834 * tests/unictype/test-pr_private_use.c: Likewise.
27835 * tests/unictype/test-pr_punctuation.c: Likewise.
27836 * tests/unictype/test-pr_quotation_mark.c: Likewise.
27837 * tests/unictype/test-pr_radical.c: Likewise.
27838 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27839 * tests/unictype/test-pr_soft_dotted.c: Likewise.
27840 * tests/unictype/test-pr_space.c: Likewise.
27841 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27842 * tests/unictype/test-pr_titlecase.c: Likewise.
27843 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27844 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27845 * tests/unictype/test-pr_uppercase.c: Likewise.
27846 * tests/unictype/test-pr_variation_selector.c: Likewise.
27847 * tests/unictype/test-pr_white_space.c: Likewise.
27848 * tests/unictype/test-pr_xid_continue.c: Likewise.
27849 * tests/unictype/test-pr_xid_start.c: Likewise.
27850 * tests/unictype/test-pr_zero_width.c: Likewise.
27851 * tests/unictype/test-sy_c_whitespace.c: Likewise.
27852 * tests/unictype/test-sy_java_whitespace.c: Likewise.
27854 2007-11-12 Bruno Haible <bruno@clisp.org>
27856 Unicode character classification functions.
27857 * lib/unictype.h: New file.
27858 * modules/unictype/base: New file.
27859 * modules/unictype/category-L: New file.
27860 * modules/unictype/category-Lu: New file.
27861 * modules/unictype/category-Ll: New file.
27862 * modules/unictype/category-Lt: New file.
27863 * modules/unictype/category-Lm: New file.
27864 * modules/unictype/category-Lo: New file.
27865 * modules/unictype/category-M: New file.
27866 * modules/unictype/category-Mn: New file.
27867 * modules/unictype/category-Mc: New file.
27868 * modules/unictype/category-Me: New file.
27869 * modules/unictype/category-N: New file.
27870 * modules/unictype/category-Nd: New file.
27871 * modules/unictype/category-Nl: New file.
27872 * modules/unictype/category-No: New file.
27873 * modules/unictype/category-P: New file.
27874 * modules/unictype/category-Pc: New file.
27875 * modules/unictype/category-Pd: New file.
27876 * modules/unictype/category-Ps: New file.
27877 * modules/unictype/category-Pe: New file.
27878 * modules/unictype/category-Pi: New file.
27879 * modules/unictype/category-Pf: New file.
27880 * modules/unictype/category-Po: New file.
27881 * modules/unictype/category-S: New file.
27882 * modules/unictype/category-Sm: New file.
27883 * modules/unictype/category-Sc: New file.
27884 * modules/unictype/category-Sk: New file.
27885 * modules/unictype/category-So: New file.
27886 * modules/unictype/category-Z: New file.
27887 * modules/unictype/category-Zs: New file.
27888 * modules/unictype/category-Zl: New file.
27889 * modules/unictype/category-Zp: New file.
27890 * modules/unictype/category-C: New file.
27891 * modules/unictype/category-Cc: New file.
27892 * modules/unictype/category-Cf: New file.
27893 * modules/unictype/category-Cs: New file.
27894 * modules/unictype/category-Co: New file.
27895 * modules/unictype/category-Cn: New file.
27896 * modules/unictype/category-or: New file.
27897 * modules/unictype/category-of: New file.
27898 * modules/unictype/category-test: New file.
27899 * modules/unictype/category-test-withtable: New file.
27900 * modules/unictype/category-byname: New file.
27901 * modules/unictype/category-none: New file.
27902 * modules/unictype/category-and: New file.
27903 * modules/unictype/category-and-not: New file.
27904 * modules/unictype/category-name: New file.
27905 * modules/unictype/combining-class: New file.
27906 * modules/unictype/category-all: New file.
27907 * modules/unictype/bidicategory-all: New file.
27908 * modules/unictype/bidicategory-byname: New file.
27909 * modules/unictype/bidicategory-name: New file.
27910 * modules/unictype/bidicategory-of: New file.
27911 * modules/unictype/bidicategory-test: New file.
27912 * modules/unictype/decimal-digit: New file.
27913 * modules/unictype/digit: New file.
27914 * modules/unictype/numeric: New file.
27915 * modules/unictype/mirror: New file.
27916 * modules/unictype/property-white-space: New file.
27917 * modules/unictype/property-alphabetic: New file.
27918 * modules/unictype/property-other-alphabetic: New file.
27919 * modules/unictype/property-not-a-character: New file.
27920 * modules/unictype/property-default-ignorable-code-point: New file.
27921 * modules/unictype/property-other-default-ignorable-code-point: New
27923 * modules/unictype/property-deprecated: New file.
27924 * modules/unictype/property-logical-order-exception: New file.
27925 * modules/unictype/property-variation-selector: New file.
27926 * modules/unictype/property-private-use: New file.
27927 * modules/unictype/property-unassigned-code-value: New file.
27928 * modules/unictype/property-uppercase: New file.
27929 * modules/unictype/property-other-uppercase: New file.
27930 * modules/unictype/property-lowercase: New file.
27931 * modules/unictype/property-other-lowercase: New file.
27932 * modules/unictype/property-titlecase: New file.
27933 * modules/unictype/property-soft-dotted: New file.
27934 * modules/unictype/property-id-start: New file.
27935 * modules/unictype/property-other-id-start: New file.
27936 * modules/unictype/property-id-continue: New file.
27937 * modules/unictype/property-other-id-continue: New file.
27938 * modules/unictype/property-xid-start: New file.
27939 * modules/unictype/property-xid-continue: New file.
27940 * modules/unictype/property-pattern-white-space: New file.
27941 * modules/unictype/property-pattern-syntax: New file.
27942 * modules/unictype/property-join-control: New file.
27943 * modules/unictype/property-grapheme-base: New file.
27944 * modules/unictype/property-grapheme-extend: New file.
27945 * modules/unictype/property-other-grapheme-extend: New file.
27946 * modules/unictype/property-grapheme-link: New file.
27947 * modules/unictype/property-bidi-control: New file.
27948 * modules/unictype/property-bidi-left-to-right: New file.
27949 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27950 * modules/unictype/property-bidi-arabic-right-to-left: New file.
27951 * modules/unictype/property-bidi-european-digit: New file.
27952 * modules/unictype/property-bidi-eur-num-separator: New file.
27953 * modules/unictype/property-bidi-eur-num-terminator: New file.
27954 * modules/unictype/property-bidi-arabic-digit: New file.
27955 * modules/unictype/property-bidi-common-separator: New file.
27956 * modules/unictype/property-bidi-block-separator: New file.
27957 * modules/unictype/property-bidi-segment-separator: New file.
27958 * modules/unictype/property-bidi-whitespace: New file.
27959 * modules/unictype/property-bidi-non-spacing-mark: New file.
27960 * modules/unictype/property-bidi-boundary-neutral: New file.
27961 * modules/unictype/property-bidi-pdf: New file.
27962 * modules/unictype/property-bidi-embedding-or-override: New file.
27963 * modules/unictype/property-bidi-other-neutral: New file.
27964 * modules/unictype/property-hex-digit: New file.
27965 * modules/unictype/property-ascii-hex-digit: New file.
27966 * modules/unictype/property-ideographic: New file.
27967 * modules/unictype/property-unified-ideograph: New file.
27968 * modules/unictype/property-radical: New file.
27969 * modules/unictype/property-ids-binary-operator: New file.
27970 * modules/unictype/property-ids-trinary-operator: New file.
27971 * modules/unictype/property-zero-width: New file.
27972 * modules/unictype/property-space: New file.
27973 * modules/unictype/property-non-break: New file.
27974 * modules/unictype/property-iso-control: New file.
27975 * modules/unictype/property-format-control: New file.
27976 * modules/unictype/property-dash: New file.
27977 * modules/unictype/property-hyphen: New file.
27978 * modules/unictype/property-punctuation: New file.
27979 * modules/unictype/property-line-separator: New file.
27980 * modules/unictype/property-paragraph-separator: New file.
27981 * modules/unictype/property-quotation-mark: New file.
27982 * modules/unictype/property-sentence-terminal: New file.
27983 * modules/unictype/property-terminal-punctuation: New file.
27984 * modules/unictype/property-currency-symbol: New file.
27985 * modules/unictype/property-math: New file.
27986 * modules/unictype/property-other-math: New file.
27987 * modules/unictype/property-paired-punctuation: New file.
27988 * modules/unictype/property-left-of-pair: New file.
27989 * modules/unictype/property-combining: New file.
27990 * modules/unictype/property-composite: New file.
27991 * modules/unictype/property-decimal-digit: New file.
27992 * modules/unictype/property-numeric: New file.
27993 * modules/unictype/property-diacritic: New file.
27994 * modules/unictype/property-extender: New file.
27995 * modules/unictype/property-ignorable-control: New file.
27996 * modules/unictype/property-test: New file.
27997 * modules/unictype/property-byname: New file.
27998 * modules/unictype/property-all: New file.
27999 * modules/unictype/scripts: New file.
28000 * modules/unictype/scripts-all: New file.
28001 * modules/unictype/block-of: New file.
28002 * modules/unictype/block-test: New file.
28003 * modules/unictype/block-list: New file.
28004 * modules/unictype/block-all: New file.
28005 * modules/unictype/syntax-c-whitespace: New file.
28006 * modules/unictype/syntax-java-whitespace: New file.
28007 * modules/unictype/syntax-c-ident: New file.
28008 * modules/unictype/syntax-java-ident: New file.
28009 * modules/unictype/ctype-alnum: New file.
28010 * modules/unictype/ctype-alpha: New file.
28011 * modules/unictype/ctype-cntrl: New file.
28012 * modules/unictype/ctype-digit: New file.
28013 * modules/unictype/ctype-graph: New file.
28014 * modules/unictype/ctype-lower: New file.
28015 * modules/unictype/ctype-print: New file.
28016 * modules/unictype/ctype-punct: New file.
28017 * modules/unictype/ctype-space: New file.
28018 * modules/unictype/ctype-upper: New file.
28019 * modules/unictype/ctype-xdigit: New file.
28020 * modules/unictype/ctype-blank: New file.
28021 * lib/unictype/bidi_byname.c: New file.
28022 * lib/unictype/bidi_name.c: New file.
28023 * lib/unictype/bidi_of.c: New file.
28024 * lib/unictype/bidi_test.c: New file.
28025 * lib/unictype/bitmap.h: New file.
28026 * lib/unictype/block_test.c: New file.
28027 * lib/unictype/blocks.c: New file.
28028 * lib/unictype/categ_C.c: New file.
28029 * lib/unictype/categ_Cc.c: New file.
28030 * lib/unictype/categ_Cf.c: New file.
28031 * lib/unictype/categ_Cn.c: New file.
28032 * lib/unictype/categ_Co.c: New file.
28033 * lib/unictype/categ_Cs.c: New file.
28034 * lib/unictype/categ_L.c: New file.
28035 * lib/unictype/categ_Ll.c: New file.
28036 * lib/unictype/categ_Lm.c: New file.
28037 * lib/unictype/categ_Lo.c: New file.
28038 * lib/unictype/categ_Lt.c: New file.
28039 * lib/unictype/categ_Lu.c: New file.
28040 * lib/unictype/categ_M.c: New file.
28041 * lib/unictype/categ_Mc.c: New file.
28042 * lib/unictype/categ_Me.c: New file.
28043 * lib/unictype/categ_Mn.c: New file.
28044 * lib/unictype/categ_N.c: New file.
28045 * lib/unictype/categ_Nd.c: New file.
28046 * lib/unictype/categ_Nl.c: New file.
28047 * lib/unictype/categ_No.c: New file.
28048 * lib/unictype/categ_P.c: New file.
28049 * lib/unictype/categ_Pc.c: New file.
28050 * lib/unictype/categ_Pd.c: New file.
28051 * lib/unictype/categ_Pe.c: New file.
28052 * lib/unictype/categ_Pf.c: New file.
28053 * lib/unictype/categ_Pi.c: New file.
28054 * lib/unictype/categ_Po.c: New file.
28055 * lib/unictype/categ_Ps.c: New file.
28056 * lib/unictype/categ_S.c: New file.
28057 * lib/unictype/categ_Sc.c: New file.
28058 * lib/unictype/categ_Sk.c: New file.
28059 * lib/unictype/categ_Sm.c: New file.
28060 * lib/unictype/categ_So.c: New file.
28061 * lib/unictype/categ_Z.c: New file.
28062 * lib/unictype/categ_Zl.c: New file.
28063 * lib/unictype/categ_Zp.c: New file.
28064 * lib/unictype/categ_Zs.c: New file.
28065 * lib/unictype/categ_and.c: New file.
28066 * lib/unictype/categ_and_not.c: New file.
28067 * lib/unictype/categ_byname.c: New file.
28068 * lib/unictype/categ_name.c: New file.
28069 * lib/unictype/categ_none.c: New file.
28070 * lib/unictype/categ_of.c: New file.
28071 * lib/unictype/categ_or.c: New file.
28072 * lib/unictype/categ_test.c: New file.
28073 * lib/unictype/combining.c: New file.
28074 * lib/unictype/ctype_alnum.c: New file.
28075 * lib/unictype/ctype_alpha.c: New file.
28076 * lib/unictype/ctype_blank.c: New file.
28077 * lib/unictype/ctype_cntrl.c: New file.
28078 * lib/unictype/ctype_digit.c: New file.
28079 * lib/unictype/ctype_graph.c: New file.
28080 * lib/unictype/ctype_lower.c: New file.
28081 * lib/unictype/ctype_print.c: New file.
28082 * lib/unictype/ctype_punct.c: New file.
28083 * lib/unictype/ctype_space.c: New file.
28084 * lib/unictype/ctype_upper.c: New file.
28085 * lib/unictype/ctype_xdigit.c: New file.
28086 * lib/unictype/decdigit.c: New file.
28087 * lib/unictype/digit.c: New file.
28088 * lib/unictype/identsyntaxmap.h: New file.
28089 * lib/unictype/mirror.c: New file.
28090 * lib/unictype/numeric.c: New file.
28091 * lib/unictype/pr_alphabetic.c: New file.
28092 * lib/unictype/pr_ascii_hex_digit.c: New file.
28093 * lib/unictype/pr_bidi_arabic_digit.c: New file.
28094 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28095 * lib/unictype/pr_bidi_block_separator.c: New file.
28096 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28097 * lib/unictype/pr_bidi_common_separator.c: New file.
28098 * lib/unictype/pr_bidi_control.c: New file.
28099 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28100 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28101 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28102 * lib/unictype/pr_bidi_european_digit.c: New file.
28103 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28104 * lib/unictype/pr_bidi_left_to_right.c: New file.
28105 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28106 * lib/unictype/pr_bidi_other_neutral.c: New file.
28107 * lib/unictype/pr_bidi_pdf.c: New file.
28108 * lib/unictype/pr_bidi_segment_separator.c: New file.
28109 * lib/unictype/pr_bidi_whitespace.c: New file.
28110 * lib/unictype/pr_byname.c: New file.
28111 * lib/unictype/pr_byname.gperf: New file.
28112 * lib/unictype/pr_combining.c: New file.
28113 * lib/unictype/pr_composite.c: New file.
28114 * lib/unictype/pr_currency_symbol.c: New file.
28115 * lib/unictype/pr_dash.c: New file.
28116 * lib/unictype/pr_decimal_digit.c: New file.
28117 * lib/unictype/pr_default_ignorable_code_point.c: New file.
28118 * lib/unictype/pr_deprecated.c: New file.
28119 * lib/unictype/pr_diacritic.c: New file.
28120 * lib/unictype/pr_extender.c: New file.
28121 * lib/unictype/pr_format_control.c: New file.
28122 * lib/unictype/pr_grapheme_base.c: New file.
28123 * lib/unictype/pr_grapheme_extend.c: New file.
28124 * lib/unictype/pr_grapheme_link.c: New file.
28125 * lib/unictype/pr_hex_digit.c: New file.
28126 * lib/unictype/pr_hyphen.c: New file.
28127 * lib/unictype/pr_id_continue.c: New file.
28128 * lib/unictype/pr_id_start.c: New file.
28129 * lib/unictype/pr_ideographic.c: New file.
28130 * lib/unictype/pr_ids_binary_operator.c: New file.
28131 * lib/unictype/pr_ids_trinary_operator.c: New file.
28132 * lib/unictype/pr_ignorable_control.c: New file.
28133 * lib/unictype/pr_iso_control.c: New file.
28134 * lib/unictype/pr_join_control.c: New file.
28135 * lib/unictype/pr_left_of_pair.c: New file.
28136 * lib/unictype/pr_line_separator.c: New file.
28137 * lib/unictype/pr_logical_order_exception.c: New file.
28138 * lib/unictype/pr_lowercase.c: New file.
28139 * lib/unictype/pr_math.c: New file.
28140 * lib/unictype/pr_non_break.c: New file.
28141 * lib/unictype/pr_not_a_character.c: New file.
28142 * lib/unictype/pr_numeric.c: New file.
28143 * lib/unictype/pr_other_alphabetic.c: New file.
28144 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28145 * lib/unictype/pr_other_grapheme_extend.c: New file.
28146 * lib/unictype/pr_other_id_continue.c: New file.
28147 * lib/unictype/pr_other_id_start.c: New file.
28148 * lib/unictype/pr_other_lowercase.c: New file.
28149 * lib/unictype/pr_other_math.c: New file.
28150 * lib/unictype/pr_other_uppercase.c: New file.
28151 * lib/unictype/pr_paired_punctuation.c: New file.
28152 * lib/unictype/pr_paragraph_separator.c: New file.
28153 * lib/unictype/pr_pattern_syntax.c: New file.
28154 * lib/unictype/pr_pattern_white_space.c: New file.
28155 * lib/unictype/pr_private_use.c: New file.
28156 * lib/unictype/pr_punctuation.c: New file.
28157 * lib/unictype/pr_quotation_mark.c: New file.
28158 * lib/unictype/pr_radical.c: New file.
28159 * lib/unictype/pr_sentence_terminal.c: New file.
28160 * lib/unictype/pr_soft_dotted.c: New file.
28161 * lib/unictype/pr_space.c: New file.
28162 * lib/unictype/pr_terminal_punctuation.c: New file.
28163 * lib/unictype/pr_test.c: New file.
28164 * lib/unictype/pr_titlecase.c: New file.
28165 * lib/unictype/pr_unassigned_code_value.c: New file.
28166 * lib/unictype/pr_unified_ideograph.c: New file.
28167 * lib/unictype/pr_uppercase.c: New file.
28168 * lib/unictype/pr_variation_selector.c: New file.
28169 * lib/unictype/pr_white_space.c: New file.
28170 * lib/unictype/pr_xid_continue.c: New file.
28171 * lib/unictype/pr_xid_start.c: New file.
28172 * lib/unictype/pr_zero_width.c: New file.
28173 * lib/unictype/scripts.c: New file.
28174 * lib/unictype/sy_c_ident.c: New file.
28175 * lib/unictype/sy_c_whitespace.c: New file.
28176 * lib/unictype/sy_java_ident.c: New file.
28177 * lib/unictype/sy_java_whitespace.c: New file.
28179 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28181 * lib/unictype/blocks.h: Likewise.
28182 * lib/unictype/categ_C.h: Likewise.
28183 * lib/unictype/categ_Cc.h: Likewise.
28184 * lib/unictype/categ_Cf.h: Likewise.
28185 * lib/unictype/categ_Cn.h: Likewise.
28186 * lib/unictype/categ_Co.h: Likewise.
28187 * lib/unictype/categ_Cs.h: Likewise.
28188 * lib/unictype/categ_L.h: Likewise.
28189 * lib/unictype/categ_Ll.h: Likewise.
28190 * lib/unictype/categ_Lm.h: Likewise.
28191 * lib/unictype/categ_Lo.h: Likewise.
28192 * lib/unictype/categ_Lt.h: Likewise.
28193 * lib/unictype/categ_Lu.h: Likewise.
28194 * lib/unictype/categ_M.h: Likewise.
28195 * lib/unictype/categ_Mc.h: Likewise.
28196 * lib/unictype/categ_Me.h: Likewise.
28197 * lib/unictype/categ_Mn.h: Likewise.
28198 * lib/unictype/categ_N.h: Likewise.
28199 * lib/unictype/categ_Nd.h: Likewise.
28200 * lib/unictype/categ_Nl.h: Likewise.
28201 * lib/unictype/categ_No.h: Likewise.
28202 * lib/unictype/categ_P.h: Likewise.
28203 * lib/unictype/categ_Pc.h: Likewise.
28204 * lib/unictype/categ_Pd.h: Likewise.
28205 * lib/unictype/categ_Pe.h: Likewise.
28206 * lib/unictype/categ_Pf.h: Likewise.
28207 * lib/unictype/categ_Pi.h: Likewise.
28208 * lib/unictype/categ_Po.h: Likewise.
28209 * lib/unictype/categ_Ps.h: Likewise.
28210 * lib/unictype/categ_S.h: Likewise.
28211 * lib/unictype/categ_Sc.h: Likewise.
28212 * lib/unictype/categ_Sk.h: Likewise.
28213 * lib/unictype/categ_Sm.h: Likewise.
28214 * lib/unictype/categ_So.h: Likewise.
28215 * lib/unictype/categ_Z.h: Likewise.
28216 * lib/unictype/categ_Zl.h: Likewise.
28217 * lib/unictype/categ_Zp.h: Likewise.
28218 * lib/unictype/categ_Zs.h: Likewise.
28219 * lib/unictype/categ_of.h: Likewise.
28220 * lib/unictype/combining.h: Likewise.
28221 * lib/unictype/ctype_alnum.h: Likewise.
28222 * lib/unictype/ctype_alpha.h: Likewise.
28223 * lib/unictype/ctype_blank.h: Likewise.
28224 * lib/unictype/ctype_cntrl.h: Likewise.
28225 * lib/unictype/ctype_digit.h: Likewise.
28226 * lib/unictype/ctype_graph.h: Likewise.
28227 * lib/unictype/ctype_lower.h: Likewise.
28228 * lib/unictype/ctype_print.h: Likewise.
28229 * lib/unictype/ctype_punct.h: Likewise.
28230 * lib/unictype/ctype_space.h: Likewise.
28231 * lib/unictype/ctype_upper.h: Likewise.
28232 * lib/unictype/ctype_xdigit.h: Likewise.
28233 * lib/unictype/decdigit.h: Likewise.
28234 * lib/unictype/digit.h: Likewise.
28235 * lib/unictype/mirror.h: Likewise.
28236 * lib/unictype/numeric.h: Likewise.
28237 * lib/unictype/pr_alphabetic.h: Likewise.
28238 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28239 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28240 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28241 * lib/unictype/pr_bidi_block_separator.h: Likewise.
28242 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28243 * lib/unictype/pr_bidi_common_separator.h: Likewise.
28244 * lib/unictype/pr_bidi_control.h: Likewise.
28245 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28246 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28247 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28248 * lib/unictype/pr_bidi_european_digit.h: Likewise.
28249 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28250 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28251 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28252 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28253 * lib/unictype/pr_bidi_pdf.h: Likewise.
28254 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28255 * lib/unictype/pr_bidi_whitespace.h: Likewise.
28256 * lib/unictype/pr_combining.h: Likewise.
28257 * lib/unictype/pr_composite.h: Likewise.
28258 * lib/unictype/pr_currency_symbol.h: Likewise.
28259 * lib/unictype/pr_dash.h: Likewise.
28260 * lib/unictype/pr_decimal_digit.h: Likewise.
28261 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28262 * lib/unictype/pr_deprecated.h: Likewise.
28263 * lib/unictype/pr_diacritic.h: Likewise.
28264 * lib/unictype/pr_extender.h: Likewise.
28265 * lib/unictype/pr_format_control.h: Likewise.
28266 * lib/unictype/pr_grapheme_base.h: Likewise.
28267 * lib/unictype/pr_grapheme_extend.h: Likewise.
28268 * lib/unictype/pr_grapheme_link.h: Likewise.
28269 * lib/unictype/pr_hex_digit.h: Likewise.
28270 * lib/unictype/pr_hyphen.h: Likewise.
28271 * lib/unictype/pr_id_continue.h: Likewise.
28272 * lib/unictype/pr_id_start.h: Likewise.
28273 * lib/unictype/pr_ideographic.h: Likewise.
28274 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28275 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28276 * lib/unictype/pr_ignorable_control.h: Likewise.
28277 * lib/unictype/pr_iso_control.h: Likewise.
28278 * lib/unictype/pr_join_control.h: Likewise.
28279 * lib/unictype/pr_left_of_pair.h: Likewise.
28280 * lib/unictype/pr_line_separator.h: Likewise.
28281 * lib/unictype/pr_logical_order_exception.h: Likewise.
28282 * lib/unictype/pr_lowercase.h: Likewise.
28283 * lib/unictype/pr_math.h: Likewise.
28284 * lib/unictype/pr_non_break.h: Likewise.
28285 * lib/unictype/pr_not_a_character.h: Likewise.
28286 * lib/unictype/pr_numeric.h: Likewise.
28287 * lib/unictype/pr_other_alphabetic.h: Likewise.
28288 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28289 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28290 * lib/unictype/pr_other_id_continue.h: Likewise.
28291 * lib/unictype/pr_other_id_start.h: Likewise.
28292 * lib/unictype/pr_other_lowercase.h: Likewise.
28293 * lib/unictype/pr_other_math.h: Likewise.
28294 * lib/unictype/pr_other_uppercase.h: Likewise.
28295 * lib/unictype/pr_paired_punctuation.h: Likewise.
28296 * lib/unictype/pr_paragraph_separator.h: Likewise.
28297 * lib/unictype/pr_pattern_syntax.h: Likewise.
28298 * lib/unictype/pr_pattern_white_space.h: Likewise.
28299 * lib/unictype/pr_private_use.h: Likewise.
28300 * lib/unictype/pr_punctuation.h: Likewise.
28301 * lib/unictype/pr_quotation_mark.h: Likewise.
28302 * lib/unictype/pr_radical.h: Likewise.
28303 * lib/unictype/pr_sentence_terminal.h: Likewise.
28304 * lib/unictype/pr_soft_dotted.h: Likewise.
28305 * lib/unictype/pr_space.h: Likewise.
28306 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28307 * lib/unictype/pr_titlecase.h: Likewise.
28308 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28309 * lib/unictype/pr_unified_ideograph.h: Likewise.
28310 * lib/unictype/pr_uppercase.h: Likewise.
28311 * lib/unictype/pr_variation_selector.h: Likewise.
28312 * lib/unictype/pr_white_space.h: Likewise.
28313 * lib/unictype/pr_xid_continue.h: Likewise.
28314 * lib/unictype/pr_xid_start.h: Likewise.
28315 * lib/unictype/pr_zero_width.h: Likewise.
28316 * lib/unictype/scripts.h: Likewise.
28317 * lib/unictype/scripts_byname.gperf: Likewise.
28318 * lib/unictype/sy_c_ident.h: Likewise.
28319 * lib/unictype/sy_c_whitespace.h: Likewise.
28320 * lib/unictype/sy_java_ident.h: Likewise.
28321 * lib/unictype/sy_java_whitespace.h: Likewise.
28323 * lib/unictype/Makefile: New file.
28324 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28326 * lib/unictype/3level.h: New file, copied from glibc.
28327 * lib/unictype/3levelbit.h: New file.
28329 2007-11-11 Bruno Haible <bruno@clisp.org>
28331 * modules/gperf: New file.
28332 * modules/iconv_open (Depends-on): Add it.
28333 (Makefile.am): Remove the GPERF definition.
28335 2007-11-11 Bruno Haible <bruno@clisp.org>
28337 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28338 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28340 2007-11-11 Bruno Haible <bruno@clisp.org>
28342 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28343 (usage): Remove function.
28345 2007-11-11 Bruno Haible <bruno@clisp.org>
28347 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28348 gl_FUNC_CEILF_LIBS.
28349 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28351 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28352 gl_FUNC_CEILL_LIBS.
28353 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28354 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28355 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28357 2007-11-11 Bruno Haible <bruno@clisp.org>
28359 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28360 roundf were declared but do not exist on functions.
28361 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28362 roundl were declared but do not exist on functions.
28363 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28364 HAVE_FLOORL_AND_CEILL, respectively.
28365 Needed for Sun C on Solaris 10.
28367 2007-11-11 Bruno Haible <bruno@clisp.org>
28369 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28370 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28371 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28372 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28373 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28374 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28375 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28377 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28378 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28379 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28380 of HAVE_DECL_ROUND*.
28381 * modules/math (Makefile.am): Update.
28383 2007-11-10 Bruno Haible <bruno@clisp.org>
28385 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28386 ptrdiff_t as m4/intl.m4.
28388 2007-11-10 Jim Meyering <meyering@redhat.com>
28390 Avoid link failure for the argmatch test.
28391 * tests/test-argmatch.c (usage): Define function to avoid a link
28392 failure: argmatch_die requires a usage function.
28394 2007-11-09 Bruno Haible <bruno@clisp.org>
28396 * doc/functions/snprintf.texi: Mention BeOS deficiency.
28397 * doc/functions/vsnprintf.texi: Likewise.
28398 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28399 with a size argument < 2.
28401 2007-11-09 Bruno Haible <bruno@clisp.org>
28403 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28404 buffer. Fixes an inefficiency introduced on 2007-11-03.
28406 2007-11-09 Bruno Haible <bruno@clisp.org>
28408 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28409 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28411 2007-11-08 Jim Meyering <meyering@redhat.com>
28413 Change cache variable name prefix "jm_" to "gl_" everywhere.
28414 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28415 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28416 * m4/uptime.m4: s/gl_/jm_/
28418 2007-11-07 Bruno Haible <bruno@clisp.org>
28420 Update to GNU gettext 0.17.
28421 * m4/intl.m4: Update to GNU gettext 0.17.
28422 * m4/po.m4: Likewise.
28423 * modules/gettext (Files): Remove m4/ulonglong.m4.
28424 (configure.ac): Require gettext infrastructure from version 0.17.
28426 2007-11-06 Bruno Haible <bruno@clisp.org>
28428 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28429 symbolic values are not defined in a public header.
28430 * lib/freadable.c (freadable) [QNX]: Likewise.
28431 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28432 * lib/freading.c (freading) [QNX]: Likewise.
28433 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28434 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28435 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28436 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28437 Reported by Alain Magloire.
28439 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28441 2007-11-05 Bruno Haible <bruno@clisp.org>
28443 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28444 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28445 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28446 Reported by Eric Blake.
28448 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28449 Bruno Haible <bruno@clisp.org>
28451 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28452 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28453 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28454 (malloc): Undefine also before including <stdlib.h>.
28455 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28456 Needed on OSF/1 4.0.
28458 2007-11-05 Jim Meyering <meyering@redhat.com>
28460 git-version-gen: sync from coreutils.
28461 * build-aux/git-version-gen: Add comments.
28462 Change the first '-' to '.' in the snapshot version string,
28463 e.g., 6.9-377-08144 -> 6.9.377-08144
28464 Remove first parameter.
28465 Don't declare a version "-dirty" merely because a time
28468 2007-11-04 Bruno Haible <bruno@clisp.org>
28470 * lib/lock.h: Protect all macro definitions containing an 'if'
28471 statement through a "do { ... } while (0)".
28472 * lib/tls.h: Likewise.
28474 2007-11-04 Bruno Haible <bruno@clisp.org>
28476 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28478 2007-11-04 Bruno Haible <bruno@clisp.org>
28480 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28481 * modules/fprintf-posix (Depends-on): Add nocrash.
28482 * modules/snprintf-posix (Depends-on): Likewise.
28483 * modules/sprintf-posix (Depends-on): Likewise.
28484 * modules/vasnprintf-posix (Depends-on): Likewise.
28485 * modules/vasprintf-posix (Depends-on): Likewise.
28486 * modules/vfprintf-posix (Depends-on): Likewise.
28487 * modules/vsnprintf-posix (Depends-on): Likewise.
28488 * modules/vsprintf-posix (Depends-on): Likewise.
28489 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28490 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28491 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28492 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28493 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28494 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28495 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28497 2007-11-04 Bruno Haible <bruno@clisp.org>
28499 * modules/nocrash: New file.
28500 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28501 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28503 2007-11-04 Bruno Haible <bruno@clisp.org>
28505 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28506 precision handling.
28507 * tests/test-vasprintf-posix.c (test_function): Likewise.
28508 * tests/test-snprintf-posix.h (test_function): Likewise.
28509 * tests/test-sprintf-posix.h (test_function): Likewise.
28511 Fix *printf behaviour for large precisions on mingw and BeOS.
28512 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28513 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28514 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28515 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28516 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28517 gl_PRINTF_PRECISION and test its result. Invoke
28518 gl_PREREQ_VASNPRINTF_PRECISION.
28519 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28520 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28521 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28522 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28523 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28524 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28525 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28526 * doc/functions/fprintf.texi: Update.
28527 * doc/functions/printf.texi: Update.
28528 * doc/functions/snprintf.texi: Update.
28529 * doc/functions/sprintf.texi: Update.
28530 * doc/functions/vfprintf.texi: Update.
28531 * doc/functions/vprintf.texi: Update.
28532 * doc/functions/vsnprintf.texi: Update.
28533 * doc/functions/vsprintf.texi: Update.
28535 2007-11-04 Bruno Haible <bruno@clisp.org>
28537 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28539 2007-11-04 Bruno Haible <bruno@clisp.org>
28541 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28542 Reported by Sylvain Beucler <beuc@gnu.org>.
28544 2007-11-03 Bruno Haible <bruno@clisp.org>
28546 * tests/test-fprintf-posix2.sh: New file.
28547 * tests/test-fprintf-posix2.c: New file.
28548 * modules/fprintf-posix-tests (Files): Add them.
28549 (TESTS): Add test-fprintf-posix2.sh.
28550 (configure.ac): Check for getrlimit and setrlimit.
28551 (check_PROGRAMS): Add test-fprintf-posix2.
28553 * tests/test-printf-posix2.sh: New file.
28554 * tests/test-printf-posix2.c: New file.
28555 * modules/printf-posix-tests (Files): Add them.
28556 (TESTS): Add test-printf-posix2.sh.
28557 (configure.ac): Check for getrlimit and setrlimit.
28558 (check_PROGRAMS): Add test-printf-posix2.
28560 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28561 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28562 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28563 (decode_double): New function, copied from decode_long_double.
28564 (scale10_round_decimal_decoded): New function, extracted from
28565 scale10_round_decimal_long_double.
28566 (scale10_round_decimal_long_double): Use it.
28567 (scale10_round_decimal_double): New function.
28568 (floorlog10): New function.
28569 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28570 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28571 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28572 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28573 gl_PRINTF_ENOMEM and test its result. Invoke
28574 gl_PREREQ_VASNPRINTF_ENOMEM.
28575 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28576 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28577 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28578 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28579 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28580 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28581 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28582 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28583 * modules/snprintf-posix (Depends-on): Likewise.
28584 * modules/sprintf-posix (Depends-on): Likewise.
28585 * modules/vasnprintf-posix (Depends-on): Likewise.
28586 * modules/vasprintf-posix (Depends-on): Likewise.
28587 * modules/vfprintf-posix (Depends-on): Likewise.
28588 * modules/vsnprintf-posix (Depends-on): Likewise.
28589 * modules/vsprintf-posix (Depends-on): Likewise.
28590 * doc/functions/fprintf.texi: Update.
28591 * doc/functions/printf.texi: Update.
28592 * doc/functions/snprintf.texi: Update.
28593 * doc/functions/sprintf.texi: Update.
28594 * doc/functions/vfprintf.texi: Update.
28595 * doc/functions/vprintf.texi: Update.
28596 * doc/functions/vsnprintf.texi: Update.
28597 * doc/functions/vsprintf.texi: Update.
28599 2007-11-03 Bruno Haible <bruno@clisp.org>
28601 * modules/frexp-nolibm-tests: New file.
28603 * modules/frexp-nolibm: New file.
28604 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28606 2007-11-03 Bruno Haible <bruno@clisp.org>
28608 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28609 value is C99 compliant.
28610 Needed for OSF/1 5.1.
28612 2007-11-03 Bruno Haible <bruno@clisp.org>
28614 Fix out-of-memory handling of vasnprintf.
28615 * lib/printf-parse.c: Include <errno.h>.
28616 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28617 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28620 2007-11-02 Eric Blake <ebb9@byu.net>
28622 Fix tests on cygwin.
28623 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28625 2007-11-01 Bruno Haible <bruno@clisp.org>
28627 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28629 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28630 needed for POSIX compatibility.
28632 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
28634 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28635 for compatibility with GNU.
28637 2007-11-01 Bruno Haible <bruno@clisp.org>
28639 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28640 (putenv): Renamed from rpl_putenv. Change argument type from
28641 'const char *' to 'char *'.
28642 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28643 of defining putenv in config.h, just set REPLACE_PUTENV.
28644 * modules/putenv (Depends-on): Add stdlib.
28645 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28646 (Include): Use <stdlib.h>.
28647 * lib/stdlib.in.h (putenv): New declaration.
28648 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28650 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28652 Needed for MacOS X 10.5.0.
28653 Reported by Peter O'Gorman <peter@pogma.com>.
28655 2007-11-01 Jim Meyering <meyering@redhat.com>
28657 Treat an empty date string exactly like "0".
28658 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28659 if the remaining date string (to be parsed) is empty, use "0".
28660 Reported by Mischa Molhoek and discussed in this thread:
28661 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28663 2007-10-31 Bruno Haible <bruno@clisp.org>
28665 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28666 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28667 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28668 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28669 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28670 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28672 2007-10-31 Bruno Haible <bruno@clisp.org>
28674 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28675 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28676 (AC_TYPE_LONG_LONG_INT): Use it.
28677 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28679 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28681 * modules/stdint (Files): Remove m4/ulonglong.m4.
28682 * modules/strtoull (Files): Use m4/longlong.m4 instead of
28684 * modules/strtoumax (Files): Likewise.
28686 2007-10-30 Bruno Haible <bruno@clisp.org>
28688 * modules/xvasprintf-posix: New file.
28689 Suggested by Eric Blake.
28691 2007-10-30 Bruno Haible <bruno@clisp.org>
28693 * modules/xprintf-posix-tests: New file.
28694 * tests/test-xprintf-posix.sh: New file.
28695 * tests/test-xprintf-posix.c: New file.
28696 * tests/test-xfprintf-posix.c: New file.
28698 * modules/xprintf-posix: New file.
28700 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28702 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28703 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28704 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28706 2007-10-29 Bruno Haible <bruno@clisp.org>
28708 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28709 contain the special marker '_cv_'.
28710 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28711 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28712 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28713 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28714 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28715 Reported by Ralf Wildenhues.
28717 2007-10-29 Bruno Haible <bruno@clisp.org>
28719 * gnulib-tool (func_import): When --lgpl is not specified, set
28720 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28722 Reported by Simon Josefsson.
28724 2007-10-28 Bruno Haible <bruno@clisp.org>
28726 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28727 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28728 HAVE_DECL_ISFINITE.
28729 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28730 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28731 HAVE_DECL_ISFINITE.
28733 2007-10-28 Bruno Haible <bruno@clisp.org>
28735 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28736 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28738 2007-10-28 Bruno Haible <bruno@clisp.org>
28740 Fix link errors with Sun C 5.0 on Solaris 10.
28741 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28742 function is declared but not present in the compiler's libm.
28743 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28744 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28745 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28746 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28747 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28748 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28749 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28750 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28751 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28752 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28753 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28756 2007-10-28 Bruno Haible <bruno@clisp.org>
28758 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28759 gl_FUNC_FLOORL. Cache the result.
28760 (gl_FUNC_FLOORL): Use it.
28761 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28762 gl_FUNC_CEILL. Cache the result.
28763 (gl_FUNC_CEILL): Use it.
28765 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28766 gl_FUNC_FLOOR. Cache the result.
28767 (gl_FUNC_FLOOR): Use it.
28768 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28769 gl_FUNC_CEIL. Cache the result.
28770 (gl_FUNC_CEIL): Use it.
28772 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28773 gl_FUNC_FLOORF. Cache the result.
28774 (gl_FUNC_FLOORF): Use it.
28775 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28776 gl_FUNC_CEILF. Cache the result.
28777 (gl_FUNC_CEILF): Use it.
28779 2007-10-28 Bruno Haible <bruno@clisp.org>
28781 * gnulib-tool: Allow specifying the LGPL version number through
28782 --lgpl=2 or --lgpl=3.
28783 (func_usage): Document --lgpl with argument.
28784 Handle --lgpl=... arguments.
28785 (func_import): Recognize also gl_LGPL calls with an argument. When
28786 --lgpl=2 is used and the module's license is just LGPL, report an
28787 error. Set sed_transform_lib_file according to the lgpl variable. In
28788 the generated files, use --lgpl or gl_LGPL invocations with argument,
28790 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28792 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28795 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28796 Bruno Haible <bruno@clisp.org>
28798 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28799 (u16_uctomb_aux): Likewise.
28800 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28802 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28804 2007-10-28 Bruno Haible <bruno@clisp.org>
28806 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28807 Invoke AM_GETTEXT_OPTION if it exists.
28808 * modules/vasprintf: Likewise.
28809 * modules/verror: Likewise.
28810 * modules/xprintf: Likewise.
28811 * modules/xvasprintf: Likewise.
28813 2007-10-27 Ben Pfaff <blp@gnu.org>
28815 * lib/math.in.h: Define isfinite macro and prototypes for
28816 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28818 * m4/math_h.m4: New substitutions for isfinite module.
28819 * lib/isfinite.c: New file.
28820 * m4/isfinite.m4: New file.
28821 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28822 * modules/isfinite: New file.
28823 * modules/isfinite-tests: New file.
28824 * tests/tests-isfinite.c: New file.
28825 * doc/functions/isfinite.texi: Mention isfinite module.
28826 * MODULES.html.sh: Mention new module.
28828 2007-10-27 Ben Pfaff <blp@gnu.org>
28830 Ralf Wildenhues reported that Tru64 4.0D declares the round
28831 functions but does not have definitions.
28832 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28833 cannot be found in any library, set the output variable to
28834 "missing" instead of "".
28835 * m4/round.m4: Also use our substitute if we cannot find round in
28836 any library, even if it is declared.
28837 * m4/roundf.m4: Likewise for roundf.
28838 * m4/roundl.m4: Likewise for roundl.
28839 * lib/math.in.h: Undefine roundf, round, roundl before defining
28840 their replacements, to allow for hypothetical systems where these
28841 may be defined as macros but not available in libraries.
28843 2007-10-27 Bruno Haible <bruno@clisp.org>
28845 * doc/gnulib.texi: Invoke @firstparagraphindent.
28846 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28848 (Source changes): New section.
28850 2007-10-26 Bruno Haible <bruno@clisp.org>
28852 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28853 borrowed from autoconf.
28855 2007-10-26 Bruno Haible <bruno@clisp.org>
28857 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28858 strerror returned the empty string. Needed on HP-UX 11.00.
28860 2007-10-24 Micah Cowan <micah@cowan.name>
28862 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
28863 * build-aux/bootstrap: Remove support for now-unnecessary option,
28864 --cvs-user, and envvars CVS_USER, CVS_RSH.
28866 2007-10-24 Jim Meyering <meyering@redhat.com>
28868 Avoid diagnostics from sha1sum when there is no cached checksum.
28869 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28870 if the po.s1 file hasn't been created yet.
28872 * build-aux/bootstrap: Sync from coreutils:
28873 2007-10-24 Jim Meyering <meyering@redhat.com>
28874 Get gnulib from the git repository, not from an obsolete cvs one.
28875 * build-aux/bootstrap: Suggestion from Micah Cowan.
28876 2007-10-04 Jim Meyering <jim@meyering.net>
28877 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28878 (update_po_files): Work also when there are no .po files in po/.
28880 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
28882 * README: Append ".git" to git and cg examples.
28883 Problem reported by Benoit Sigoure.
28885 2007-10-23 Micah Cowan <micah@cowan.name>
28887 * users.txt: Add wget.
28889 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28891 Fix linking of some unistdio tests on FreeBSD.
28892 * modules/unistdio/u16-vsnprintf-tests
28893 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28894 * modules/unistdio/u16-vsprintf-tests
28895 (test_u16_vsnprintf1_LDADD): Likewise.
28896 * modules/unistdio/u32-vsnprintf-tests
28897 (test_u32_vsnprintf1_LDADD): Likewise.
28898 * modules/unistdio/u32-vsprintf-tests
28899 (test_u32_vsprintf1_LDADD): Likewise.
28900 * modules/unistdio/u8-vsnprintf-tests
28901 (test_u8_vsnprintf1_LDADD): Likewise.
28902 * modules/unistdio/u8-vsprintf-tests
28903 (test_u8_vsprintf1_LDADD): Likewise.
28904 * modules/unistdio/ulc-vsnprintf-tests
28905 (test_ulc_vsnprintf1_LDADD): Likewise.
28906 * modules/unistdio/ulc-vsprintf-tests
28907 (test_ulc_vsprintf1_LDADD): Likewise.
28909 Fix linking of some uniconv tests on FreeBSD.
28910 * modules/uniconv/u16-conv-from-enc-tests
28911 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28912 * modules/uniconv/u16-conv-to-enc-tests
28913 (test_u16_conv_to_enc_LDADD): Likewise.
28914 * modules/uniconv/u16-strconv-from-enc-tests
28915 (test_u16_strconv_from_enc_LDADD): Likewise.
28916 * modules/uniconv/u16-strconv-to-enc-tests
28917 (test_u16_strconv_to_enc_LDADD): Likewise.
28918 * modules/uniconv/u32-conv-from-enc-tests
28919 (test_u32_conv_from_enc_LDADD): Likewise.
28920 * modules/uniconv/u32-conv-to-enc-tests
28921 (test_u32_conv_to_enc_LDADD): Likewise.
28922 * modules/uniconv/u32-strconv-from-enc-tests
28923 (test_u32_strconv_from_enc_LDADD): Likewise.
28924 * modules/uniconv/u32-strconv-to-enc-tests
28925 (test_u32_strconv_to_enc_LDADD): Likewise.
28926 * modules/uniconv/u8-conv-from-enc-tests
28927 (test_u8_conv_from_enc_LDADD): Likewise.
28928 * modules/uniconv/u8-conv-to-enc-tests
28929 (test_u8_conv_to_enc_LDADD): Likewise.
28930 * modules/uniconv/u8-strconv-from-enc-tests
28931 (test_u8_strconv_from_enc_LDADD): Likewise.
28932 * modules/uniconv/u8-strconv-to-enc-tests
28933 (test_u8_strconv_to_enc_LDADD): Likewise.
28935 2007-10-22 Bruno Haible <bruno@clisp.org>
28937 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28940 2007-10-22 Eric Blake <ebb9@byu.net>
28942 Tweak x*printf documentation.
28943 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28944 variable name and comments.
28945 Suggested by Bruno Haible.
28947 2007-10-22 Bruno Haible <bruno@clisp.org>
28949 * lib/acl.c (copy_acl): Fix file name in comment.
28951 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28953 Fix Tru64 problem with stdbool.h.
28954 * lib/stdbool.in.h (false, true):
28955 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28956 Don't declare as an enum in this situation; it runs afoul of Tru64.
28957 Problem reported by Steven M. Schweda in
28958 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28960 2007-10-22 Eric Blake <ebb9@byu.net>
28962 Also wrap vf?printf.
28963 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28964 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28965 (xvprintf, xvfprintf): New functions.
28967 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28969 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28970 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28972 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28973 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28975 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28977 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
28980 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28983 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28984 Undef `sys' after including sys/table.h, for Tru64 4.0D.
28986 * tests/test-i-ring.c: Work for C89.
28988 2007-10-22 Bruno Haible <bruno@clisp.org>
28990 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28991 -1u, in preprocessor expression, so that we don't test for the bug
28992 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
28993 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28995 2007-10-22 Eric Blake <ebb9@byu.net>
28997 * tests/test-yesno.sh: Silence stderr during test.
28999 2007-10-22 Simon Josefsson <simon@josefsson.org>
29001 * modules/crypto/gc-camellia: New file.
29003 * m4/gc-camellia.m4: New file.
29005 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29007 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29009 2007-10-22 Simon Josefsson <simon@josefsson.org>
29011 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29012 --help to stdout. Reported by sms@antinode.org (Steven
29015 2007-10-22 Simon Josefsson <simon@josefsson.org>
29017 * users.txt: Fix link to libksba.
29019 2007-10-21 Ben Pfaff <blp@gnu.org>
29021 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29022 round.c roundf implementation that depends on floorf and ceilf to
29023 be tested unconditionally.
29025 2007-10-21 Ben Pfaff <blp@gnu.org>
29027 * m4/check-libm-func.m4: Removed.
29028 * m4/check-math-lib.m4: New file.
29029 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29030 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29031 definition and lack of AC_LIBOBJ([roundf]).
29032 * m4/roundl.m4: Ditto, and similarly for roundl.
29033 * modules/round: Reference new m4 file.
29034 * modules/roundf: Ditto.
29035 * modules/roundl: Ditto.
29036 * tests/test-round2.c (main): Use ROUND instead of round.
29037 Bug report from Bruno Haible.
29039 2007-10-21 Bruno Haible <bruno@clisp.org>
29041 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29044 2007-10-21 Bruno Haible <bruno@clisp.org>
29046 * tests/test-wcwidth.c (main): Allow negative result for some control
29049 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29050 Needed on OSF/1 5.1.
29052 2007-10-21 Bruno Haible <bruno@clisp.org>
29054 * tests/test-floorf1.c: Include isnanf.h.
29055 (main): Use isnanf() instead of isnan().
29056 * tests/test-ceilf1.c: Include isnanf.h.
29057 (main): Use isnanf() instead of isnan().
29058 * tests/test-truncf1.c: Include isnanf.h.
29059 (main): Use isnanf() instead of isnan().
29060 * tests/test-roundf1.c: Include isnanf.h.
29061 (main): Use isnanf() instead of isnan().
29063 2007-10-21 Eric Blake <ebb9@byu.net>
29065 * users.txt: Update URL for m4.
29067 2007-10-21 Bruno Haible <bruno@clisp.org>
29069 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29071 2007-10-21 Bruno Haible <bruno@clisp.org>
29073 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29074 Git's management files if the CVS files are not present.
29076 2007-10-20 Bruno Haible <bruno@clisp.org>
29078 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29081 2007-10-20 Ben Pfaff <blp@gnu.org>
29083 * lib/math.in.h: Declare round, roundf, roundl if we are providing
29085 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29086 * lib/round.c: New file.
29087 * lib/roundf.c: New file.
29088 * lib/roundl.c: New file.
29089 * m4/round.m4: New file.
29090 * m4/roundf.m4: New file.
29091 * m4/roundl.m4: New file.
29092 * m4/check-libm-func-m4: New file.
29093 * modules/math: Replace round, roundf, roundl related @VARS@ in
29095 * modules/round: New file.
29096 * modules/round-tests: New file.
29097 * modules/roundf: New file.
29098 * modules/roundf-tests: New file.
29099 * modules/roundl: New file.
29100 * modules/roundl-tests: New file.
29101 * tests/test-round1.c: New file.
29102 * tests/test-round2.c: New file.
29103 * tests/test-roundf1.c: New file.
29104 * tests/test-roundf2.c: New file.
29105 * tests/test-roundl.c: New file.
29106 * doc/functions/round.texi: Mention round module.
29107 * doc/functions/roundf.texi: Mention roundf module.
29108 * doc/functions/roundl.texi: Mention roundl module.
29109 * MODULES.html.sh: Mention new modules.
29110 Thanks to Bruno Haible for suggestions.
29112 2007-10-20 Jim Meyering <meyering@redhat.com>
29114 * lib/xprintf.c: Include <config.h> unconditionally.
29116 Change xprintf's license to GPL.
29117 * modules/xprintf (License): s/LGPL/GPL/, since this module
29118 depends on modules (exit and exitfail) which are GPL.
29119 Suggestion from Bruno Haible.
29122 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29123 Use a clearer diagnostic.
29124 Patch from Bruno Haible.
29126 2007-10-20 Bruno Haible <bruno@clisp.org>
29128 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29129 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29130 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29132 2007-10-20 Bruno Haible <bruno@clisp.org>
29134 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29135 precision in the comparison result > x - 1 or similar.
29136 * tests/test-ceilf2.c (correct_result_p): Likewise.
29137 * tests/test-truncf2.c (correct_result_p): Likewise.
29138 * tests/test-trunc2.c (correct_result_p): Likewise.
29139 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29141 2007-10-20 Bruno Haible <bruno@clisp.org>
29143 * modules/ceil: New file.
29144 * m4/ceil.m4: New file.
29145 * doc/functions/ceil.texi: Mention the 'ceil' module.
29147 2007-10-20 Bruno Haible <bruno@clisp.org>
29149 * modules/floor: New file.
29150 * m4/floor.m4: New file.
29151 * doc/functions/floor.texi: Mention the 'floor' module.
29153 2007-10-20 Bruno Haible <bruno@clisp.org>
29155 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29157 * modules/floorf-tests (Depends-on): Likewise.
29158 * modules/truncf-tests (Depends-on): Likewise.
29159 * modules/trunc-tests (Depends-on): Likewise.
29160 Reported by Ben Pfaff.
29162 2007-10-19 Jim Meyering <meyering@redhat.com>
29164 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29165 Don't bother testing specific errno values. Just test ferror.
29167 New module: xprintf
29168 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29170 2007-10-19 Bruno Haible <bruno@clisp.org>
29172 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29174 * modules/javaexec (Makefile.am): Likewise.
29175 * modules/relocatable-prog (Makefile.am): Likewise.
29176 Suggested by Jim Meyering.
29178 2007-10-18 Bruno Haible <bruno@clisp.org>
29180 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29181 Reported by Jim Meyering.
29183 2007-10-18 Eric Blake <ebb9@byu.net>
29185 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29187 2007-10-18 Bruno Haible <bruno@clisp.org>
29189 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29190 the format string into writable memory. Needed in Fortify conditions.
29192 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
29193 Bruno Haible <bruno@clisp.org>
29195 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29196 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29197 * modules/trim (Depends-on): Add mbchar.
29198 (configure.ac): Add gl_FUNC_MBRTOWC.
29199 (Makefile.am): Augment lib_SOURCES.
29201 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
29203 Modify glob.c to use fstatat and dirfd, to simplify it.
29204 Suggested by Eric Blake.
29205 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29206 Don't include <stdbool.h>; not used.
29207 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29208 (link_exists_p): Simplify implementation, since we can now assume
29210 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
29212 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29214 * gnulib-tool (func_get_dependencies): Fix sed script to
29217 2007-10-17 Bruno Haible <bruno@clisp.org>
29219 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29220 allow locale names without encoding suffix.
29221 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29222 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29224 2007-10-16 Bruno Haible <bruno@clisp.org>
29226 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29227 * lib/getgroups.c (getgroups): Likewise.
29228 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29230 2007-10-16 Bruno Haible <bruno@clisp.org>
29232 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29233 * modules/malloc-posix (License): Likewise.
29234 * modules/realloc-posix (License): Likewise.
29235 * modules/calloc-posix (License): Likewise.
29236 * modules/intprops (License): Change from GPL to LGPL, with
29237 Paul Eggert's approval.
29239 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29241 Merge glibc changes into lib/glob.c.
29243 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29244 2007-10-15 04:59:03 UTC. Here are the changes:
29246 2007-10-14 Ulrich Drepper <drepper@redhat.com>
29248 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29250 * lib/glob.c: Add some branch prediction throughout.
29252 2007-10-07 Ulrich Drepper <drepper@redhat.com>
29255 * lib/glob.c (glob): Recognize patterns starting \/.
29257 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29260 * lib/glob.c (attribute_hidden): Define if not defined.
29261 (glob): Unescape dirname, filename or username when needed and not
29262 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29263 is NULL. Handle unescaped [ in pattern without closing ].
29264 Don't pass GLOB_CHECK down to recursive glob for directories.
29265 (__glob_pattern_type): New function.
29266 (__glob_pattern_p): Implement using __glob_pattern_type.
29267 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29268 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29269 Remove unreachable code.
29271 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29273 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29274 explain why there are no leaks.
29276 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29279 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29280 time, rather allocate increasingly bigger arrays of pointers, if
29281 possible with alloca, if too large with malloc.
29283 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29285 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29286 Problem reported by H.Merijn Brand in
29287 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29288 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29289 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29291 2007-10-15 Bruno Haible <bruno@clisp.org>
29293 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29294 with explicit rpl_ prefix.
29295 * lib/fopen.c (fopen): Likewise.
29296 * lib/freopen.c (freopen): Likewise.
29297 * lib/iconv.c (iconv): Likewise.
29298 * lib/iconv_close.c (iconv_close): Likewise.
29300 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29302 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29304 2007-10-15 Bruno Haible <bruno@clisp.org>
29306 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29307 <stddef.h> instead of <stdlib.h> since we only need NULL.
29308 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29310 2007-10-15 Bruno Haible <bruno@clisp.org>
29312 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29313 Replace paragraph talking about LIBOBJS.
29314 Reported by Colin Watson <cjwatson@debian.org>.
29316 2007-10-15 Bruno Haible <bruno@clisp.org>
29318 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29319 <stdlib.h> before using NULL.
29321 2007-10-15 Simon Josefsson <simon@josefsson.org>
29323 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29324 Reported by Albert Chin <china@thewrittenword.com>.
29326 2007-10-14 Bruno Haible <bruno@clisp.org>
29328 * modules/iconv_open-utf-tests: New file.
29329 * tests/test-iconv-utf.c: New file.
29331 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29332 * modules/iconv_open-utf: New file.
29333 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29334 (iconv, iconv_close): New declarations.
29335 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29337 (iconv_open): Add special handling of conversion between UTF-8 and
29338 UTF-{16,32}{BE,LE}.
29339 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29340 * lib/iconv_close.c: New file.
29341 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29342 gl_FUNC_ICONV_OPEN.
29343 (gl_FUNC_ICONV_OPEN): Use it.
29344 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29345 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29346 and REPLACE_ICONV_UTF.
29347 * modules/iconv_open (Depends-on): Add c-strcase.
29348 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29350 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29352 2007-10-13 Albert Chin <china@thewrittenword.com>
29353 Bruno Haible <bruno@clisp.org>
29355 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29356 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29358 2007-10-13 Bruno Haible <bruno@clisp.org>
29360 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29361 defined, use the ISO C99 inline semantics.
29362 * lib/argp.h (ARGP_EI): Likewise.
29364 2007-10-13 Bruno Haible <bruno@clisp.org>
29366 Handle 'inline' change in gcc 4.3.0.
29367 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29368 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29369 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29370 argp_fmtstream_point): Disable 'extern' declaration if the function
29371 definition is going to be provided inline.
29372 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29373 semantics, not the ISO C99 inline semantics.
29374 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29375 'extern' declaration if the function definition is going to be provided
29377 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29378 the GNU C inline semantics, not the ISO C99 inline semantics. With
29379 GCC 4.2, avoid a warning.
29381 2007-10-13 Bruno Haible <bruno@clisp.org>
29383 * lib/freading.h (freading): Enable the use of __freading for
29385 * lib/freading.c (freading): Likewise.
29387 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
29389 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29390 "warning: C99 inline functions are not supported; using GNU89".
29392 2007-10-12 Bruno Haible <bruno@clisp.org>
29394 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29396 * tests/test-ceilf2.c: New file.
29397 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29399 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29400 * modules/ceilf-tests: Update.
29402 2007-10-12 Bruno Haible <bruno@clisp.org>
29404 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29406 * tests/test-floorf2.c: New file.
29407 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29409 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29410 * modules/floorf-tests: Update.
29412 2007-10-12 Bruno Haible <bruno@clisp.org>
29414 * tests/test-trunc2.c: New file.
29415 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29417 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29418 * modules/trunc-tests: Update.
29420 2007-10-12 Bruno Haible <bruno@clisp.org>
29422 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29424 * tests/test-truncf2.c: New file.
29425 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29427 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29428 * modules/truncf-tests: Update.
29430 2007-10-11 Eric Blake <ebb9@byu.net>
29432 Don't claim strerror is broken on Interix.
29433 * doc/functions/strerror.texi (strerror): Known broken systems are
29434 now Solaris 8, and not Interix.
29435 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29436 Interix on cross-compile.
29437 Reported by Martin Koeppe in
29438 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29440 2007-10-11 Bruno Haible <bruno@clisp.org>
29442 * modules/i-ring-tests: New file.
29443 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29446 2007-10-11 Bruno Haible <bruno@clisp.org>
29448 * modules/filenamecat-tests: New file.
29449 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29450 * lib/filenamecat.c: Remove test code.
29452 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29454 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29456 * lib/strerror.c: Include <string.h> always, to test interface,
29457 and to remove the need for the dummy.
29458 Include intprops.h to compute width instead of doing it ourselves
29459 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29460 (strerror): Define it to return NULL if there's no system strerror.
29461 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29462 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29463 ancient pre-strerror Unix systems well any more. Saying "unknown
29464 system error" is enough.
29465 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29466 simpler strerror.c implementation.
29467 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29468 Simplify the tests to reflect the simpler strerror implementation.
29469 * modules/strerror (Depends-on): Add intprops.
29471 2007-10-09 Eric Blake <ebb9@byu.net>
29473 Silence test-fpending.
29474 * modules/fpending-tests (Files): Add wrapper script.
29475 * tests/test-fpending.sh: New file.
29477 2007-10-09 Bruno Haible <bruno@clisp.org>
29479 * MODULES.html.sh (func_module): Don't create a hyperlink for
29480 function names like 'printf_frexp'.
29481 (Misc): Add crc, memxor.
29482 (Characteristics of floating types): New section.
29483 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29484 isnanf-nolibm, signbit, trunc, truncf, truncl.
29485 (Enhancements for ISO C 99 functions): New subsection Input/output.
29486 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29487 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29488 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29489 (Compatibility checks for POSIX:2001 functions): Add clock-time.
29490 (Enhancements for POSIX:2001 functions): Add chdir-long.
29491 (File system functions): Add areadlink, chdir-safer, read-file.
29492 Remove cycle-check.
29493 (File system as inode set): New section.
29494 (Date and time): Add gethrxtime.
29495 (Multithreading): Add openmp.
29496 (Internationalization functions): Add localename.
29497 (Unicode string functions): Add unistr/u*-mbsnlen.
29498 (Support for maintaining and releasing projects): Add git-version-gen.
29499 (Lone files): Remove directories.
29501 2007-10-08 Ben Pfaff <blp@gnu.org>
29503 * lib/xmalloca.h: Fix typo in comment.
29505 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
29507 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29508 when avoiding problems with integer overflow. Use a portable test
29511 2007-10-08 Simon Josefsson <simon@josefsson.org>
29513 * modules/dummy (License): Change to LGPLv2+.
29514 * modules/float (License): Likewise
29515 * modules/realloc (License): Likewise
29516 * modules/stdlib (License): Likewise
29518 2007-10-07 Bruno Haible <bruno@clisp.org>
29520 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29521 * floor.c (TWO_MANT_DIG): Likewise.
29522 * ceil.c (TWO_MANT_DIG): Likewise.
29523 Reported by Ben Pfaff.
29525 2007-10-07 Bruno Haible <bruno@clisp.org>
29527 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29528 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29529 * lib/frexp.c (FUNC): Likewise.
29530 * lib/printf-frexp.h (printf_frexp): Likewise.
29531 * lib/printf-frexpl.h (printf_frexpl): Likewise.
29532 * lib/printf-frexp.c (FUNC): Likewise.
29533 Suggested by Jim Meyering.
29535 2007-10-07 Jim Meyering <meyering@redhat.com>
29537 Make xnanosleep's integer overflow test more robust.
29538 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29539 so that gcc-4.3.0 doesn't optimize away this test for overflow.
29541 2007-10-07 Bruno Haible <bruno@clisp.org>
29543 * NEWS: Mention the license change.
29545 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29546 abbreviations in the modules files.
29548 Change copyright notice from GPLv2+ to GPLv3+.
29549 * README: Change copyright notice.
29550 * MODULES.html.sh: Likewise.
29551 * build-aux/bootstrap.conf: Likewise.
29552 * build-aux/config.libpath: Likewise.
29553 * build-aux/csharpcomp.sh.in: Likewise.
29554 * build-aux/csharpexec.sh.in: Likewise.
29555 * build-aux/install-reloc: Likewise.
29556 * build-aux/javacomp.sh.in: Likewise.
29557 * build-aux/javaexec.sh.in: Likewise.
29558 * build-aux/ldd.sh.in: Likewise.
29559 * build-aux/reloc-ldflags: Likewise.
29560 * build-aux/relocatable.sh.in: Likewise.
29561 * build-aux/x-to-1.in: Likewise.
29562 * check-module: Likewise.
29563 * config/srclistvars.sh: Likewise.
29564 * gnulib-tool: Likewise.
29565 * lib/acl-internal.h: Likewise.
29566 * lib/acl.c: Likewise.
29567 * lib/acl.h: Likewise.
29568 * lib/acl_entries.c: Likewise.
29569 * lib/areadlink-with-size.c: Likewise.
29570 * lib/areadlink.c: Likewise.
29571 * lib/areadlink.h: Likewise.
29572 * lib/argmatch.c: Likewise.
29573 * lib/argmatch.h: Likewise.
29574 * lib/argp-ba.c: Likewise.
29575 * lib/argp-eexst.c: Likewise.
29576 * lib/argp-fmtstream.c: Likewise.
29577 * lib/argp-fmtstream.h: Likewise.
29578 * lib/argp-fs-xinl.c: Likewise.
29579 * lib/argp-help.c: Likewise.
29580 * lib/argp-namefrob.h: Likewise.
29581 * lib/argp-parse.c: Likewise.
29582 * lib/argp-pin.c: Likewise.
29583 * lib/argp-pv.c: Likewise.
29584 * lib/argp-pvh.c: Likewise.
29585 * lib/argp-xinl.c: Likewise.
29586 * lib/argp.h: Likewise.
29587 * lib/at-func.c: Likewise.
29588 * lib/atanl.c: Likewise.
29589 * lib/backupfile.c: Likewise.
29590 * lib/backupfile.h: Likewise.
29591 * lib/basename.c: Likewise.
29592 * lib/binary-io.h: Likewise.
29593 * lib/byteswap.in.h: Likewise.
29594 * lib/c-stack.c: Likewise.
29595 * lib/c-stack.h: Likewise.
29596 * lib/c-strcasestr.c: Likewise.
29597 * lib/c-strcasestr.h: Likewise.
29598 * lib/c-strstr.c: Likewise.
29599 * lib/c-strstr.h: Likewise.
29600 * lib/c-strtod.c: Likewise.
29601 * lib/calloc.c: Likewise.
29602 * lib/canon-host.c: Likewise.
29603 * lib/canon-host.h: Likewise.
29604 * lib/canonicalize-lgpl.c: Likewise.
29605 * lib/canonicalize.c: Likewise.
29606 * lib/canonicalize.h: Likewise.
29607 * lib/ceil.c: Likewise.
29608 * lib/ceilf.c: Likewise.
29609 * lib/ceill.c: Likewise.
29610 * lib/chdir-long.c: Likewise.
29611 * lib/chdir-long.h: Likewise.
29612 * lib/chdir-safer.c: Likewise.
29613 * lib/chdir-safer.h: Likewise.
29614 * lib/chown.c: Likewise.
29615 * lib/classpath.c: Likewise.
29616 * lib/classpath.h: Likewise.
29617 * lib/clean-temp.c: Likewise.
29618 * lib/clean-temp.h: Likewise.
29619 * lib/cloexec.c: Likewise.
29620 * lib/close-stream.c: Likewise.
29621 * lib/closein.c: Likewise.
29622 * lib/closein.h: Likewise.
29623 * lib/closeout.c: Likewise.
29624 * lib/closeout.h: Likewise.
29625 * lib/concat-filename.c: Likewise.
29626 * lib/copy-file.c: Likewise.
29627 * lib/copy-file.h: Likewise.
29628 * lib/count-one-bits.h: Likewise.
29629 * lib/crc.c: Likewise.
29630 * lib/crc.h: Likewise.
29631 * lib/creat-safer.c: Likewise.
29632 * lib/csharpcomp.c: Likewise.
29633 * lib/csharpcomp.h: Likewise.
29634 * lib/csharpexec.c: Likewise.
29635 * lib/csharpexec.h: Likewise.
29636 * lib/cycle-check.c: Likewise.
29637 * lib/cycle-check.h: Likewise.
29638 * lib/diacrit.c: Likewise.
29639 * lib/diacrit.h: Likewise.
29640 * lib/diffseq.h: Likewise.
29641 * lib/dirchownmod.c: Likewise.
29642 * lib/dirent.in.h: Likewise.
29643 * lib/dirfd.c: Likewise.
29644 * lib/dirfd.h: Likewise.
29645 * lib/dirname.c: Likewise.
29646 * lib/dirname.h: Likewise.
29647 * lib/dummy.c: Likewise.
29648 * lib/dup-safer.c: Likewise.
29649 * lib/dup2.c: Likewise.
29650 * lib/eealloc.h: Likewise.
29651 * lib/error.c: Likewise.
29652 * lib/error.h: Likewise.
29653 * lib/euidaccess.c: Likewise.
29654 * lib/exclude.c: Likewise.
29655 * lib/exclude.h: Likewise.
29656 * lib/execute.c: Likewise.
29657 * lib/execute.h: Likewise.
29658 * lib/exitfail.c: Likewise.
29659 * lib/exitfail.h: Likewise.
29660 * lib/expl.c: Likewise.
29661 * lib/fatal-signal.c: Likewise.
29662 * lib/fatal-signal.h: Likewise.
29663 * lib/fbufmode.c: Likewise.
29664 * lib/fbufmode.h: Likewise.
29665 * lib/fchdir.c: Likewise.
29666 * lib/fchmodat.c: Likewise.
29667 * lib/fchownat.c: Likewise.
29668 * lib/fcntl--.h: Likewise.
29669 * lib/fcntl-safer.h: Likewise.
29670 * lib/fcntl.in.h: Likewise.
29671 * lib/fd-safer.c: Likewise.
29672 * lib/fflush.c: Likewise.
29673 * lib/file-has-acl.c: Likewise.
29674 * lib/file-set.c: Likewise.
29675 * lib/file-type.c: Likewise.
29676 * lib/file-type.h: Likewise.
29677 * lib/fileblocks.c: Likewise.
29678 * lib/filemode.c: Likewise.
29679 * lib/filemode.h: Likewise.
29680 * lib/filename.h: Likewise.
29681 * lib/filenamecat.c: Likewise.
29682 * lib/filenamecat.h: Likewise.
29683 * lib/findprog.c: Likewise.
29684 * lib/findprog.h: Likewise.
29685 * lib/float.in.h: Likewise.
29686 * lib/floor.c: Likewise.
29687 * lib/floorf.c: Likewise.
29688 * lib/floorl.c: Likewise.
29689 * lib/fopen-safer.c: Likewise.
29690 * lib/fopen.c: Likewise.
29691 * lib/fpending.c: Likewise.
29692 * lib/fpending.h: Likewise.
29693 * lib/fprintf.c: Likewise.
29694 * lib/fprintftime.h: Likewise.
29695 * lib/fpucw.h: Likewise.
29696 * lib/fpurge.c: Likewise.
29697 * lib/fpurge.h: Likewise.
29698 * lib/freadable.c: Likewise.
29699 * lib/freadable.h: Likewise.
29700 * lib/freadahead.c: Likewise.
29701 * lib/freadahead.h: Likewise.
29702 * lib/freading.c: Likewise.
29703 * lib/freading.h: Likewise.
29704 * lib/free.c: Likewise.
29705 * lib/freopen.c: Likewise.
29706 * lib/frexp.c: Likewise.
29707 * lib/frexpl.c: Likewise.
29708 * lib/fseek.c: Likewise.
29709 * lib/fseterr.c: Likewise.
29710 * lib/fseterr.h: Likewise.
29711 * lib/fstatat.c: Likewise.
29712 * lib/fstrcmp.c: Likewise.
29713 * lib/fstrcmp.h: Likewise.
29714 * lib/fsusage.c: Likewise.
29715 * lib/fsusage.h: Likewise.
29716 * lib/ftell.c: Likewise.
29717 * lib/ftello.c: Likewise.
29718 * lib/fts-cycle.c: Likewise.
29719 * lib/fts.c: Likewise.
29720 * lib/fts_.h: Likewise.
29721 * lib/full-read.c: Likewise.
29722 * lib/full-read.h: Likewise.
29723 * lib/full-write.c: Likewise.
29724 * lib/full-write.h: Likewise.
29725 * lib/fwritable.c: Likewise.
29726 * lib/fwritable.h: Likewise.
29727 * lib/fwriteerror.c: Likewise.
29728 * lib/fwriteerror.h: Likewise.
29729 * lib/fwriting.c: Likewise.
29730 * lib/fwriting.h: Likewise.
29731 * lib/gcd.c: Likewise.
29732 * lib/gcd.h: Likewise.
29733 * lib/getcwd.c: Likewise.
29734 * lib/getdate.h: Likewise.
29735 * lib/getdate.y: Likewise.
29736 * lib/getdomainname.c: Likewise.
29737 * lib/getdomainname.h: Likewise.
29738 * lib/getgroups.c: Likewise.
29739 * lib/gethostname.c: Likewise.
29740 * lib/gethrxtime.c: Likewise.
29741 * lib/gethrxtime.h: Likewise.
29742 * lib/getloadavg.c: Likewise.
29743 * lib/getndelim2.c: Likewise.
29744 * lib/getndelim2.h: Likewise.
29745 * lib/getnline.c: Likewise.
29746 * lib/getnline.h: Likewise.
29747 * lib/getopt.c: Likewise.
29748 * lib/getopt.in.h: Likewise.
29749 * lib/getopt1.c: Likewise.
29750 * lib/getopt_int.h: Likewise.
29751 * lib/getpagesize.h: Likewise.
29752 * lib/getsubopt.c: Likewise.
29753 * lib/gettime.c: Likewise.
29754 * lib/getugroups.c: Likewise.
29755 * lib/getugroups.h: Likewise.
29756 * lib/getusershell.c: Likewise.
29757 * lib/gl_anyavltree_list1.h: Likewise.
29758 * lib/gl_anyavltree_list2.h: Likewise.
29759 * lib/gl_anyhash_list1.h: Likewise.
29760 * lib/gl_anyhash_list2.h: Likewise.
29761 * lib/gl_anylinked_list1.h: Likewise.
29762 * lib/gl_anylinked_list2.h: Likewise.
29763 * lib/gl_anyrbtree_list1.h: Likewise.
29764 * lib/gl_anyrbtree_list2.h: Likewise.
29765 * lib/gl_anytree_list1.h: Likewise.
29766 * lib/gl_anytree_list2.h: Likewise.
29767 * lib/gl_anytree_oset.h: Likewise.
29768 * lib/gl_anytreehash_list1.h: Likewise.
29769 * lib/gl_anytreehash_list2.h: Likewise.
29770 * lib/gl_array_list.c: Likewise.
29771 * lib/gl_array_list.h: Likewise.
29772 * lib/gl_array_oset.c: Likewise.
29773 * lib/gl_array_oset.h: Likewise.
29774 * lib/gl_avltree_list.c: Likewise.
29775 * lib/gl_avltree_list.h: Likewise.
29776 * lib/gl_avltree_oset.c: Likewise.
29777 * lib/gl_avltree_oset.h: Likewise.
29778 * lib/gl_avltreehash_list.c: Likewise.
29779 * lib/gl_avltreehash_list.h: Likewise.
29780 * lib/gl_carray_list.c: Likewise.
29781 * lib/gl_carray_list.h: Likewise.
29782 * lib/gl_linked_list.c: Likewise.
29783 * lib/gl_linked_list.h: Likewise.
29784 * lib/gl_linkedhash_list.c: Likewise.
29785 * lib/gl_linkedhash_list.h: Likewise.
29786 * lib/gl_list.c: Likewise.
29787 * lib/gl_list.h: Likewise.
29788 * lib/gl_oset.c: Likewise.
29789 * lib/gl_oset.h: Likewise.
29790 * lib/gl_rbtree_list.c: Likewise.
29791 * lib/gl_rbtree_list.h: Likewise.
29792 * lib/gl_rbtree_oset.c: Likewise.
29793 * lib/gl_rbtree_oset.h: Likewise.
29794 * lib/gl_rbtreehash_list.c: Likewise.
29795 * lib/gl_rbtreehash_list.h: Likewise.
29796 * lib/gl_sublist.c: Likewise.
29797 * lib/gl_sublist.h: Likewise.
29798 * lib/group-member.c: Likewise.
29799 * lib/group-member.h: Likewise.
29800 * lib/hard-locale.c: Likewise.
29801 * lib/hard-locale.h: Likewise.
29802 * lib/hash-pjw.c: Likewise.
29803 * lib/hash-pjw.h: Likewise.
29804 * lib/hash-triple.c: Likewise.
29805 * lib/hash.c: Likewise.
29806 * lib/hash.h: Likewise.
29807 * lib/human.c: Likewise.
29808 * lib/human.h: Likewise.
29809 * lib/i-ring.c: Likewise.
29810 * lib/i-ring.h: Likewise.
29811 * lib/idcache.c: Likewise.
29812 * lib/imaxabs.c: Likewise.
29813 * lib/imaxdiv.c: Likewise.
29814 * lib/inet_pton.c: Likewise.
29815 * lib/inet_pton.h: Likewise.
29816 * lib/intprops.h: Likewise.
29817 * lib/inttostr.c: Likewise.
29818 * lib/inttostr.h: Likewise.
29819 * lib/inttypes.in.h: Likewise.
29820 * lib/isapipe.c: Likewise.
29821 * lib/isdir.c: Likewise.
29822 * lib/isnan.c: Likewise.
29823 * lib/isnan.h: Likewise.
29824 * lib/isnanf.c: Likewise.
29825 * lib/isnanf.h: Likewise.
29826 * lib/isnanl-nolibm.h: Likewise.
29827 * lib/isnanl.c: Likewise.
29828 * lib/isnanl.h: Likewise.
29829 * lib/javacomp.c: Likewise.
29830 * lib/javacomp.h: Likewise.
29831 * lib/javaexec.c: Likewise.
29832 * lib/javaexec.h: Likewise.
29833 * lib/javaversion.c: Likewise.
29834 * lib/javaversion.h: Likewise.
29835 * lib/javaversion.java: Likewise.
29836 * lib/lbrkprop.h: Likewise.
29837 * lib/lchmod.h: Likewise.
29838 * lib/lchown.c: Likewise.
29839 * lib/ldexpl.c: Likewise.
29840 * lib/linebreak.c: Likewise.
29841 * lib/linebreak.h: Likewise.
29842 * lib/linebuffer.c: Likewise.
29843 * lib/linebuffer.h: Likewise.
29844 * lib/locale.in.h: Likewise.
29845 * lib/logl.c: Likewise.
29846 * lib/long-options.c: Likewise.
29847 * lib/long-options.h: Likewise.
29848 * lib/lstat.c: Likewise.
29849 * lib/lstat.h: Likewise.
29850 * lib/math.in.h: Likewise.
29851 * lib/mbchar.c: Likewise.
29852 * lib/mbchar.h: Likewise.
29853 * lib/mbfile.h: Likewise.
29854 * lib/mbiter.h: Likewise.
29855 * lib/mbscasecmp.c: Likewise.
29856 * lib/mbscasestr.c: Likewise.
29857 * lib/mbschr.c: Likewise.
29858 * lib/mbscspn.c: Likewise.
29859 * lib/mbslen.c: Likewise.
29860 * lib/mbsncasecmp.c: Likewise.
29861 * lib/mbsnlen.c: Likewise.
29862 * lib/mbspbrk.c: Likewise.
29863 * lib/mbspcasecmp.c: Likewise.
29864 * lib/mbsrchr.c: Likewise.
29865 * lib/mbssep.c: Likewise.
29866 * lib/mbsspn.c: Likewise.
29867 * lib/mbsstr.c: Likewise.
29868 * lib/mbstok_r.c: Likewise.
29869 * lib/mbswidth.c: Likewise.
29870 * lib/mbswidth.h: Likewise.
29871 * lib/mbuiter.h: Likewise.
29872 * lib/memcasecmp.c: Likewise.
29873 * lib/memcasecmp.h: Likewise.
29874 * lib/memchr.c: Likewise.
29875 * lib/memcmp.c: Likewise.
29876 * lib/memcoll.c: Likewise.
29877 * lib/memcoll.h: Likewise.
29878 * lib/memcpy.c: Likewise.
29879 * lib/memrchr.c: Likewise.
29880 * lib/mkancesdirs.c: Likewise.
29881 * lib/mkdir-p.c: Likewise.
29882 * lib/mkdir-p.h: Likewise.
29883 * lib/mkdir.c: Likewise.
29884 * lib/mkdirat.c: Likewise.
29885 * lib/mkdtemp.c: Likewise.
29886 * lib/mkstemp-safer.c: Likewise.
29887 * lib/mkstemp.c: Likewise.
29888 * lib/modechange.c: Likewise.
29889 * lib/modechange.h: Likewise.
29890 * lib/mountlist.c: Likewise.
29891 * lib/mountlist.h: Likewise.
29892 * lib/mpsort.c: Likewise.
29893 * lib/nanosleep.c: Likewise.
29894 * lib/obstack.c: Likewise.
29895 * lib/obstack.h: Likewise.
29896 * lib/open-safer.c: Likewise.
29897 * lib/open.c: Likewise.
29898 * lib/openat-die.c: Likewise.
29899 * lib/openat-priv.h: Likewise.
29900 * lib/openat-proc.c: Likewise.
29901 * lib/openat.c: Likewise.
29902 * lib/openat.h: Likewise.
29903 * lib/pagealign_alloc.c: Likewise.
29904 * lib/pagealign_alloc.h: Likewise.
29905 * lib/physmem.c: Likewise.
29906 * lib/physmem.h: Likewise.
29907 * lib/pipe-safer.c: Likewise.
29908 * lib/pipe.c: Likewise.
29909 * lib/pipe.h: Likewise.
29910 * lib/posixtm.c: Likewise.
29911 * lib/posixtm.h: Likewise.
29912 * lib/posixver.c: Likewise.
29913 * lib/printf-frexp.c: Likewise.
29914 * lib/printf-frexp.h: Likewise.
29915 * lib/printf-frexpl.c: Likewise.
29916 * lib/printf-frexpl.h: Likewise.
29917 * lib/printf.c: Likewise.
29918 * lib/progname.c: Likewise.
29919 * lib/progname.h: Likewise.
29920 * lib/progreloc.c: Likewise.
29921 * lib/putenv.c: Likewise.
29922 * lib/quote.c: Likewise.
29923 * lib/quote.h: Likewise.
29924 * lib/quotearg.c: Likewise.
29925 * lib/quotearg.h: Likewise.
29926 * lib/raise.c: Likewise.
29927 * lib/readline.c: Likewise.
29928 * lib/readline.h: Likewise.
29929 * lib/readlink.c: Likewise.
29930 * lib/readtokens.c: Likewise.
29931 * lib/readtokens.h: Likewise.
29932 * lib/readtokens0.c: Likewise.
29933 * lib/readtokens0.h: Likewise.
29934 * lib/readutmp.c: Likewise.
29935 * lib/readutmp.h: Likewise.
29936 * lib/realloc.c: Likewise.
29937 * lib/relocwrapper.c: Likewise.
29938 * lib/rename-dest-slash.c: Likewise.
29939 * lib/rename.c: Likewise.
29940 * lib/rmdir.c: Likewise.
29941 * lib/rpmatch.c: Likewise.
29942 * lib/safe-read.c: Likewise.
29943 * lib/safe-read.h: Likewise.
29944 * lib/safe-write.c: Likewise.
29945 * lib/safe-write.h: Likewise.
29946 * lib/same-inode.h: Likewise.
29947 * lib/same.c: Likewise.
29948 * lib/same.h: Likewise.
29949 * lib/save-cwd.c: Likewise.
29950 * lib/save-cwd.h: Likewise.
29951 * lib/savedir.c: Likewise.
29952 * lib/savedir.h: Likewise.
29953 * lib/savewd.c: Likewise.
29954 * lib/savewd.h: Likewise.
29955 * lib/search.in.h: Likewise.
29956 * lib/setenv.c: Likewise.
29957 * lib/setenv.h: Likewise.
29958 * lib/settime.c: Likewise.
29959 * lib/sh-quote.c: Likewise.
29960 * lib/sh-quote.h: Likewise.
29961 * lib/sig2str.c: Likewise.
29962 * lib/sig2str.h: Likewise.
29963 * lib/signal.in.h: Likewise.
29964 * lib/signbitd.c: Likewise.
29965 * lib/signbitf.c: Likewise.
29966 * lib/signbitl.c: Likewise.
29967 * lib/sigprocmask.c: Likewise.
29968 * lib/sincosl.c: Likewise.
29969 * lib/sleep.c: Likewise.
29970 * lib/sprintf.c: Likewise.
29971 * lib/sqrtl.c: Likewise.
29972 * lib/stat-time.h: Likewise.
29973 * lib/stdio--.h: Likewise.
29974 * lib/stdio-safer.h: Likewise.
29975 * lib/stdlib--.h: Likewise.
29976 * lib/stdlib-safer.h: Likewise.
29977 * lib/stdlib.in.h: Likewise.
29978 * lib/stpcpy.c: Likewise.
29979 * lib/stpncpy.c: Likewise.
29980 * lib/strchrnul.c: Likewise.
29981 * lib/strcspn.c: Likewise.
29982 * lib/strerror.c: Likewise.
29983 * lib/strftime.c: Likewise.
29984 * lib/strftime.h: Likewise.
29985 * lib/striconveh.c: Likewise.
29986 * lib/striconveh.h: Likewise.
29987 * lib/striconveha.c: Likewise.
29988 * lib/striconveha.h: Likewise.
29989 * lib/stripslash.c: Likewise.
29990 * lib/strnlen1.c: Likewise.
29991 * lib/strnlen1.h: Likewise.
29992 * lib/strtod.c: Likewise.
29993 * lib/strtoimax.c: Likewise.
29994 * lib/strtok_r.c: Likewise.
29995 * lib/strtol.c: Likewise.
29996 * lib/strtoll.c: Likewise.
29997 * lib/strtoul.c: Likewise.
29998 * lib/strtoull.c: Likewise.
29999 * lib/sysexits.in.h: Likewise.
30000 * lib/tempname.c: Likewise.
30001 * lib/tempname.h: Likewise.
30002 * lib/timespec.h: Likewise.
30003 * lib/tls.c: Likewise.
30004 * lib/tls.h: Likewise.
30005 * lib/tmpdir.c: Likewise.
30006 * lib/tmpdir.h: Likewise.
30007 * lib/tmpfile-safer.c: Likewise.
30008 * lib/tmpfile.c: Likewise.
30009 * lib/trigl.c: Likewise.
30010 * lib/trigl.h: Likewise.
30011 * lib/trim.c: Likewise.
30012 * lib/trim.h: Likewise.
30013 * lib/trunc.c: Likewise.
30014 * lib/truncf.c: Likewise.
30015 * lib/truncl.c: Likewise.
30016 * lib/tsearch.c: Likewise.
30017 * lib/unicodeio.c: Likewise.
30018 * lib/unicodeio.h: Likewise.
30019 * lib/unistd--.h: Likewise.
30020 * lib/unistd-safer.h: Likewise.
30021 * lib/unistdio/ulc-fprintf.c: Likewise.
30022 * lib/unistdio/ulc-vfprintf.c: Likewise.
30023 * lib/unlinkdir.c: Likewise.
30024 * lib/unlinkdir.h: Likewise.
30025 * lib/unlocked-io.h: Likewise.
30026 * lib/unsetenv.c: Likewise.
30027 * lib/userspec.c: Likewise.
30028 * lib/utime.c: Likewise.
30029 * lib/utimecmp.c: Likewise.
30030 * lib/utimecmp.h: Likewise.
30031 * lib/utimens.c: Likewise.
30032 * lib/verify.h: Likewise.
30033 * lib/verror.c: Likewise.
30034 * lib/verror.h: Likewise.
30035 * lib/version-etc-fsf.c: Likewise.
30036 * lib/version-etc.c: Likewise.
30037 * lib/version-etc.h: Likewise.
30038 * lib/vfprintf.c: Likewise.
30039 * lib/vprintf.c: Likewise.
30040 * lib/vsprintf.c: Likewise.
30041 * lib/w32spawn.h: Likewise.
30042 * lib/wait-process.c: Likewise.
30043 * lib/wait-process.h: Likewise.
30044 * lib/wcwidth.c: Likewise.
30045 * lib/write-any-file.c: Likewise.
30046 * lib/xalloc-die.c: Likewise.
30047 * lib/xalloc.h: Likewise.
30048 * lib/xasprintf.c: Likewise.
30049 * lib/xgetcwd.c: Likewise.
30050 * lib/xgetcwd.h: Likewise.
30051 * lib/xgetdomainname.c: Likewise.
30052 * lib/xgetdomainname.h: Likewise.
30053 * lib/xgethostname.c: Likewise.
30054 * lib/xmalloc.c: Likewise.
30055 * lib/xmalloca.c: Likewise.
30056 * lib/xmalloca.h: Likewise.
30057 * lib/xmemcoll.c: Likewise.
30058 * lib/xnanosleep.c: Likewise.
30059 * lib/xreadlink.c: Likewise.
30060 * lib/xreadlink.h: Likewise.
30061 * lib/xsetenv.c: Likewise.
30062 * lib/xsetenv.h: Likewise.
30063 * lib/xstriconv.c: Likewise.
30064 * lib/xstriconv.h: Likewise.
30065 * lib/xstrndup.c: Likewise.
30066 * lib/xstrndup.h: Likewise.
30067 * lib/xstrtod.c: Likewise.
30068 * lib/xstrtod.h: Likewise.
30069 * lib/xstrtol-error.c: Likewise.
30070 * lib/xstrtol.c: Likewise.
30071 * lib/xstrtol.h: Likewise.
30072 * lib/xtime.h: Likewise.
30073 * lib/xvasprintf.c: Likewise.
30074 * lib/xvasprintf.h: Likewise.
30075 * lib/yesno.c: Likewise.
30076 * lib/yesno.h: Likewise.
30077 * posix-modules: Likewise.
30078 * tests/test-alloca-opt.c: Likewise.
30079 * tests/test-arcfour.c: Likewise.
30080 * tests/test-arctwo.c: Likewise.
30081 * tests/test-argmatch.c: Likewise.
30082 * tests/test-argp-2.sh: Likewise.
30083 * tests/test-argp.c: Likewise.
30084 * tests/test-arpa_inet.c: Likewise.
30085 * tests/test-array_list.c: Likewise.
30086 * tests/test-array_oset.c: Likewise.
30087 * tests/test-atexit.c: Likewise.
30088 * tests/test-avltree_list.c: Likewise.
30089 * tests/test-avltree_oset.c: Likewise.
30090 * tests/test-avltreehash_list.c: Likewise.
30091 * tests/test-base64.c: Likewise.
30092 * tests/test-binary-io.c: Likewise.
30093 * tests/test-byteswap.c: Likewise.
30094 * tests/test-c-ctype.c: Likewise.
30095 * tests/test-c-strcasecmp.c: Likewise.
30096 * tests/test-c-strcasestr.c: Likewise.
30097 * tests/test-c-strncasecmp.c: Likewise.
30098 * tests/test-c-strstr.c: Likewise.
30099 * tests/test-canonicalize-lgpl.c: Likewise.
30100 * tests/test-canonicalize.c: Likewise.
30101 * tests/test-carray_list.c: Likewise.
30102 * tests/test-ceilf.c: Likewise.
30103 * tests/test-ceill.c: Likewise.
30104 * tests/test-count-one-bits.c: Likewise.
30105 * tests/test-crc.c: Likewise.
30106 * tests/test-dirname.c: Likewise.
30107 * tests/test-fbufmode.c: Likewise.
30108 * tests/test-fcntl.c: Likewise.
30109 * tests/test-fflush.c: Likewise.
30110 * tests/test-floorf.c: Likewise.
30111 * tests/test-floorl.c: Likewise.
30112 * tests/test-fopen.c: Likewise.
30113 * tests/test-fprintf-posix.c: Likewise.
30114 * tests/test-fprintf-posix.h: Likewise.
30115 * tests/test-fpurge.c: Likewise.
30116 * tests/test-freadable.c: Likewise.
30117 * tests/test-freadahead.c: Likewise.
30118 * tests/test-freading.c: Likewise.
30119 * tests/test-freopen.c: Likewise.
30120 * tests/test-frexp.c: Likewise.
30121 * tests/test-frexpl.c: Likewise.
30122 * tests/test-fseek.c: Likewise.
30123 * tests/test-fseeko.c: Likewise.
30124 * tests/test-fseterr.c: Likewise.
30125 * tests/test-fstrcmp.c: Likewise.
30126 * tests/test-ftell.c: Likewise.
30127 * tests/test-ftello.c: Likewise.
30128 * tests/test-fwritable.c: Likewise.
30129 * tests/test-fwriting.c: Likewise.
30130 * tests/test-getaddrinfo.c: Likewise.
30131 * tests/test-getpass.c: Likewise.
30132 * tests/test-gettimeofday.c: Likewise.
30133 * tests/test-hmac-md5.c: Likewise.
30134 * tests/test-hmac-sha1.c: Likewise.
30135 * tests/test-iconv.c: Likewise.
30136 * tests/test-iconvme.c: Likewise.
30137 * tests/test-inttypes.c: Likewise.
30138 * tests/test-isnan.c: Likewise.
30139 * tests/test-isnanf.c: Likewise.
30140 * tests/test-isnanl-nolibm.c: Likewise.
30141 * tests/test-isnanl.c: Likewise.
30142 * tests/test-isnanl.h: Likewise.
30143 * tests/test-ldexpl.c: Likewise.
30144 * tests/test-linked_list.c: Likewise.
30145 * tests/test-linkedhash_list.c: Likewise.
30146 * tests/test-locale.c: Likewise.
30147 * tests/test-localename.c: Likewise.
30148 * tests/test-lock.c: Likewise.
30149 * tests/test-lseek.c: Likewise.
30150 * tests/test-malloca.c: Likewise.
30151 * tests/test-math.c: Likewise.
30152 * tests/test-mbscasecmp.c: Likewise.
30153 * tests/test-mbscasestr1.c: Likewise.
30154 * tests/test-mbscasestr2.c: Likewise.
30155 * tests/test-mbscasestr3.c: Likewise.
30156 * tests/test-mbscasestr4.c: Likewise.
30157 * tests/test-mbschr.c: Likewise.
30158 * tests/test-mbscspn.c: Likewise.
30159 * tests/test-mbsncasecmp.c: Likewise.
30160 * tests/test-mbspbrk.c: Likewise.
30161 * tests/test-mbspcasecmp.c: Likewise.
30162 * tests/test-mbsrchr.c: Likewise.
30163 * tests/test-mbsspn.c: Likewise.
30164 * tests/test-mbsstr1.c: Likewise.
30165 * tests/test-mbsstr2.c: Likewise.
30166 * tests/test-mbsstr3.c: Likewise.
30167 * tests/test-md5.c: Likewise.
30168 * tests/test-memmem.c: Likewise.
30169 * tests/test-netinet_in.c: Likewise.
30170 * tests/test-open.c: Likewise.
30171 * tests/test-printf-frexp.c: Likewise.
30172 * tests/test-printf-frexpl.c: Likewise.
30173 * tests/test-printf-posix.c: Likewise.
30174 * tests/test-printf-posix.h: Likewise.
30175 * tests/test-rbtree_list.c: Likewise.
30176 * tests/test-rbtree_oset.c: Likewise.
30177 * tests/test-rbtreehash_list.c: Likewise.
30178 * tests/test-read-file.c: Likewise.
30179 * tests/test-rijndael.c: Likewise.
30180 * tests/test-search.c: Likewise.
30181 * tests/test-signbit.c: Likewise.
30182 * tests/test-sleep.c: Likewise.
30183 * tests/test-snprintf-posix.c: Likewise.
30184 * tests/test-snprintf-posix.h: Likewise.
30185 * tests/test-snprintf.c: Likewise.
30186 * tests/test-sprintf-posix.c: Likewise.
30187 * tests/test-sprintf-posix.h: Likewise.
30188 * tests/test-stat-time.c: Likewise.
30189 * tests/test-stdbool.c: Likewise.
30190 * tests/test-stdint.c: Likewise.
30191 * tests/test-stdio.c: Likewise.
30192 * tests/test-stdlib.c: Likewise.
30193 * tests/test-stpncpy.c: Likewise.
30194 * tests/test-strcasestr.c: Likewise.
30195 * tests/test-striconv.c: Likewise.
30196 * tests/test-striconveh.c: Likewise.
30197 * tests/test-striconveha.c: Likewise.
30198 * tests/test-string.c: Likewise.
30199 * tests/test-sys_select.c: Likewise.
30200 * tests/test-sys_socket.c: Likewise.
30201 * tests/test-sys_stat.c: Likewise.
30202 * tests/test-sys_time.c: Likewise.
30203 * tests/test-sysexits.c: Likewise.
30204 * tests/test-time.c: Likewise.
30205 * tests/test-tls.c: Likewise.
30206 * tests/test-trunc.c: Likewise.
30207 * tests/test-truncf.c: Likewise.
30208 * tests/test-truncl.c: Likewise.
30209 * tests/test-unistd.c: Likewise.
30210 * tests/test-vasnprintf-posix.c: Likewise.
30211 * tests/test-vasnprintf-posix2.c: Likewise.
30212 * tests/test-vasnprintf.c: Likewise.
30213 * tests/test-vasprintf-posix.c: Likewise.
30214 * tests/test-vasprintf.c: Likewise.
30215 * tests/test-verify.c: Likewise.
30216 * tests/test-vfprintf-posix.c: Likewise.
30217 * tests/test-vprintf-posix.c: Likewise.
30218 * tests/test-vsnprintf-posix.c: Likewise.
30219 * tests/test-vsnprintf.c: Likewise.
30220 * tests/test-vsprintf-posix.c: Likewise.
30221 * tests/test-wchar.c: Likewise.
30222 * tests/test-wctype.c: Likewise.
30223 * tests/test-wcwidth.c: Likewise.
30224 * tests/test-xstrtol.c: Likewise.
30225 * tests/test-xvasprintf.c: Likewise.
30226 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30227 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30228 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30229 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30230 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30231 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30232 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30233 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30234 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30235 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30236 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30237 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30238 * tests/uniname/test-uninames.c: Likewise.
30239 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30240 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30241 * tests/unistdio/test-u16-printf1.h: Likewise.
30242 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30243 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30244 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30245 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30246 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30247 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30248 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30249 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30250 * tests/unistdio/test-u32-printf1.h: Likewise.
30251 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30252 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30253 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30254 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30255 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30256 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30257 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30258 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30259 * tests/unistdio/test-u8-printf1.h: Likewise.
30260 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30261 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30262 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30263 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30264 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30265 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30266 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30267 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30268 * tests/unistdio/test-ulc-printf1.h: Likewise.
30269 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30270 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30271 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30272 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30273 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30274 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30275 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30276 * tests/uniwidth/test-u16-width.c: Likewise.
30277 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30278 * tests/uniwidth/test-u32-width.c: Likewise.
30279 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30280 * tests/uniwidth/test-u8-width.c: Likewise.
30281 * tests/uniwidth/test-uc_width.c: Likewise.
30282 * config/srclist-update: Likewise.
30283 (fixlicense): Update to GPLv3+.
30285 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30286 * tests/test-tsearch.c: Change copyright notice.
30288 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30289 * lib/c-strcaseeq.h: Change copyright notice.
30290 * lib/streq.h: Likewise.
30291 * lib/uniconv.h: Likewise.
30292 * lib/uniconv/u-conv-from-enc.h: Likewise.
30293 * lib/uniconv/u-conv-to-enc.h: Likewise.
30294 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30295 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30296 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30297 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30298 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30299 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30300 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30301 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30302 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30303 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30304 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30305 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30306 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30307 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30308 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30309 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30310 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30311 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30312 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30313 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30314 * lib/uniname.h: Likewise.
30315 * lib/uniname/uniname.c: Likewise.
30316 * lib/unistdio.h: Likewise.
30317 * lib/unistdio/u-asnprintf.h: Likewise.
30318 * lib/unistdio/u-asprintf.h: Likewise.
30319 * lib/unistdio/u-printf-args.c: Likewise.
30320 * lib/unistdio/u-printf-args.h: Likewise.
30321 * lib/unistdio/u-printf-parse.h: Likewise.
30322 * lib/unistdio/u-snprintf.h: Likewise.
30323 * lib/unistdio/u-sprintf.h: Likewise.
30324 * lib/unistdio/u-vasprintf.h: Likewise.
30325 * lib/unistdio/u-vsnprintf.h: Likewise.
30326 * lib/unistdio/u-vsprintf.h: Likewise.
30327 * lib/unistdio/u16-asnprintf.c: Likewise.
30328 * lib/unistdio/u16-asprintf.c: Likewise.
30329 * lib/unistdio/u16-printf-parse.c: Likewise.
30330 * lib/unistdio/u16-snprintf.c: Likewise.
30331 * lib/unistdio/u16-sprintf.c: Likewise.
30332 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30333 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30334 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30335 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30336 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30337 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30338 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30339 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30340 * lib/unistdio/u16-vasnprintf.c: Likewise.
30341 * lib/unistdio/u16-vasprintf.c: Likewise.
30342 * lib/unistdio/u16-vsnprintf.c: Likewise.
30343 * lib/unistdio/u16-vsprintf.c: Likewise.
30344 * lib/unistdio/u32-asnprintf.c: Likewise.
30345 * lib/unistdio/u32-asprintf.c: Likewise.
30346 * lib/unistdio/u32-printf-parse.c: Likewise.
30347 * lib/unistdio/u32-snprintf.c: Likewise.
30348 * lib/unistdio/u32-sprintf.c: Likewise.
30349 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30350 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30351 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30352 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30353 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30354 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30355 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30356 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30357 * lib/unistdio/u32-vasnprintf.c: Likewise.
30358 * lib/unistdio/u32-vasprintf.c: Likewise.
30359 * lib/unistdio/u32-vsnprintf.c: Likewise.
30360 * lib/unistdio/u32-vsprintf.c: Likewise.
30361 * lib/unistdio/u8-asnprintf.c: Likewise.
30362 * lib/unistdio/u8-asprintf.c: Likewise.
30363 * lib/unistdio/u8-printf-parse.c: Likewise.
30364 * lib/unistdio/u8-snprintf.c: Likewise.
30365 * lib/unistdio/u8-sprintf.c: Likewise.
30366 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30367 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30368 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30369 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30370 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30371 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30372 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30373 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30374 * lib/unistdio/u8-vasnprintf.c: Likewise.
30375 * lib/unistdio/u8-vasprintf.c: Likewise.
30376 * lib/unistdio/u8-vsnprintf.c: Likewise.
30377 * lib/unistdio/u8-vsprintf.c: Likewise.
30378 * lib/unistdio/ulc-asnprintf.c: Likewise.
30379 * lib/unistdio/ulc-asprintf.c: Likewise.
30380 * lib/unistdio/ulc-printf-parse.c: Likewise.
30381 * lib/unistdio/ulc-snprintf.c: Likewise.
30382 * lib/unistdio/ulc-sprintf.c: Likewise.
30383 * lib/unistdio/ulc-vasnprintf.c: Likewise.
30384 * lib/unistdio/ulc-vasprintf.c: Likewise.
30385 * lib/unistdio/ulc-vsnprintf.c: Likewise.
30386 * lib/unistdio/ulc-vsprintf.c: Likewise.
30387 * lib/unistr.h: Likewise.
30388 * lib/unistr/u-cpy-alloc.h: Likewise.
30389 * lib/unistr/u-cpy.h: Likewise.
30390 * lib/unistr/u-endswith.h: Likewise.
30391 * lib/unistr/u-move.h: Likewise.
30392 * lib/unistr/u-set.h: Likewise.
30393 * lib/unistr/u-startswith.h: Likewise.
30394 * lib/unistr/u-stpcpy.h: Likewise.
30395 * lib/unistr/u-stpncpy.h: Likewise.
30396 * lib/unistr/u-strcat.h: Likewise.
30397 * lib/unistr/u-strcpy.h: Likewise.
30398 * lib/unistr/u-strcspn.h: Likewise.
30399 * lib/unistr/u-strdup.h: Likewise.
30400 * lib/unistr/u-strlen.h: Likewise.
30401 * lib/unistr/u-strncat.h: Likewise.
30402 * lib/unistr/u-strncpy.h: Likewise.
30403 * lib/unistr/u-strnlen.h: Likewise.
30404 * lib/unistr/u-strpbrk.h: Likewise.
30405 * lib/unistr/u-strspn.h: Likewise.
30406 * lib/unistr/u-strstr.h: Likewise.
30407 * lib/unistr/u-strtok.h: Likewise.
30408 * lib/unistr/u16-check.c: Likewise.
30409 * lib/unistr/u16-chr.c: Likewise.
30410 * lib/unistr/u16-cmp.c: Likewise.
30411 * lib/unistr/u16-cpy-alloc.c: Likewise.
30412 * lib/unistr/u16-cpy.c: Likewise.
30413 * lib/unistr/u16-endswith.c: Likewise.
30414 * lib/unistr/u16-mblen.c: Likewise.
30415 * lib/unistr/u16-mbsnlen.c: Likewise.
30416 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30417 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30418 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30419 * lib/unistr/u16-mbtouc.c: Likewise.
30420 * lib/unistr/u16-mbtoucr.c: Likewise.
30421 * lib/unistr/u16-move.c: Likewise.
30422 * lib/unistr/u16-next.c: Likewise.
30423 * lib/unistr/u16-prev.c: Likewise.
30424 * lib/unistr/u16-set.c: Likewise.
30425 * lib/unistr/u16-startswith.c: Likewise.
30426 * lib/unistr/u16-stpcpy.c: Likewise.
30427 * lib/unistr/u16-stpncpy.c: Likewise.
30428 * lib/unistr/u16-strcat.c: Likewise.
30429 * lib/unistr/u16-strchr.c: Likewise.
30430 * lib/unistr/u16-strcmp.c: Likewise.
30431 * lib/unistr/u16-strcpy.c: Likewise.
30432 * lib/unistr/u16-strcspn.c: Likewise.
30433 * lib/unistr/u16-strdup.c: Likewise.
30434 * lib/unistr/u16-strlen.c: Likewise.
30435 * lib/unistr/u16-strmblen.c: Likewise.
30436 * lib/unistr/u16-strmbtouc.c: Likewise.
30437 * lib/unistr/u16-strncat.c: Likewise.
30438 * lib/unistr/u16-strncmp.c: Likewise.
30439 * lib/unistr/u16-strncpy.c: Likewise.
30440 * lib/unistr/u16-strnlen.c: Likewise.
30441 * lib/unistr/u16-strpbrk.c: Likewise.
30442 * lib/unistr/u16-strrchr.c: Likewise.
30443 * lib/unistr/u16-strspn.c: Likewise.
30444 * lib/unistr/u16-strstr.c: Likewise.
30445 * lib/unistr/u16-strtok.c: Likewise.
30446 * lib/unistr/u16-to-u32.c: Likewise.
30447 * lib/unistr/u16-to-u8.c: Likewise.
30448 * lib/unistr/u16-uctomb-aux.c: Likewise.
30449 * lib/unistr/u16-uctomb.c: Likewise.
30450 * lib/unistr/u32-check.c: Likewise.
30451 * lib/unistr/u32-chr.c: Likewise.
30452 * lib/unistr/u32-cmp.c: Likewise.
30453 * lib/unistr/u32-cpy-alloc.c: Likewise.
30454 * lib/unistr/u32-cpy.c: Likewise.
30455 * lib/unistr/u32-endswith.c: Likewise.
30456 * lib/unistr/u32-mblen.c: Likewise.
30457 * lib/unistr/u32-mbsnlen.c: Likewise.
30458 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30459 * lib/unistr/u32-mbtouc.c: Likewise.
30460 * lib/unistr/u32-mbtoucr.c: Likewise.
30461 * lib/unistr/u32-move.c: Likewise.
30462 * lib/unistr/u32-next.c: Likewise.
30463 * lib/unistr/u32-prev.c: Likewise.
30464 * lib/unistr/u32-set.c: Likewise.
30465 * lib/unistr/u32-startswith.c: Likewise.
30466 * lib/unistr/u32-stpcpy.c: Likewise.
30467 * lib/unistr/u32-stpncpy.c: Likewise.
30468 * lib/unistr/u32-strcat.c: Likewise.
30469 * lib/unistr/u32-strchr.c: Likewise.
30470 * lib/unistr/u32-strcmp.c: Likewise.
30471 * lib/unistr/u32-strcpy.c: Likewise.
30472 * lib/unistr/u32-strcspn.c: Likewise.
30473 * lib/unistr/u32-strdup.c: Likewise.
30474 * lib/unistr/u32-strlen.c: Likewise.
30475 * lib/unistr/u32-strmblen.c: Likewise.
30476 * lib/unistr/u32-strmbtouc.c: Likewise.
30477 * lib/unistr/u32-strncat.c: Likewise.
30478 * lib/unistr/u32-strncmp.c: Likewise.
30479 * lib/unistr/u32-strncpy.c: Likewise.
30480 * lib/unistr/u32-strnlen.c: Likewise.
30481 * lib/unistr/u32-strpbrk.c: Likewise.
30482 * lib/unistr/u32-strrchr.c: Likewise.
30483 * lib/unistr/u32-strspn.c: Likewise.
30484 * lib/unistr/u32-strstr.c: Likewise.
30485 * lib/unistr/u32-strtok.c: Likewise.
30486 * lib/unistr/u32-to-u16.c: Likewise.
30487 * lib/unistr/u32-to-u8.c: Likewise.
30488 * lib/unistr/u32-uctomb.c: Likewise.
30489 * lib/unistr/u8-check.c: Likewise.
30490 * lib/unistr/u8-chr.c: Likewise.
30491 * lib/unistr/u8-cmp.c: Likewise.
30492 * lib/unistr/u8-cpy-alloc.c: Likewise.
30493 * lib/unistr/u8-cpy.c: Likewise.
30494 * lib/unistr/u8-endswith.c: Likewise.
30495 * lib/unistr/u8-mblen.c: Likewise.
30496 * lib/unistr/u8-mbsnlen.c: Likewise.
30497 * lib/unistr/u8-mbtouc-aux.c: Likewise.
30498 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30499 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30500 * lib/unistr/u8-mbtouc.c: Likewise.
30501 * lib/unistr/u8-mbtoucr.c: Likewise.
30502 * lib/unistr/u8-move.c: Likewise.
30503 * lib/unistr/u8-next.c: Likewise.
30504 * lib/unistr/u8-prev.c: Likewise.
30505 * lib/unistr/u8-set.c: Likewise.
30506 * lib/unistr/u8-startswith.c: Likewise.
30507 * lib/unistr/u8-stpcpy.c: Likewise.
30508 * lib/unistr/u8-stpncpy.c: Likewise.
30509 * lib/unistr/u8-strcat.c: Likewise.
30510 * lib/unistr/u8-strchr.c: Likewise.
30511 * lib/unistr/u8-strcmp.c: Likewise.
30512 * lib/unistr/u8-strcpy.c: Likewise.
30513 * lib/unistr/u8-strcspn.c: Likewise.
30514 * lib/unistr/u8-strdup.c: Likewise.
30515 * lib/unistr/u8-strlen.c: Likewise.
30516 * lib/unistr/u8-strmblen.c: Likewise.
30517 * lib/unistr/u8-strmbtouc.c: Likewise.
30518 * lib/unistr/u8-strncat.c: Likewise.
30519 * lib/unistr/u8-strncmp.c: Likewise.
30520 * lib/unistr/u8-strncpy.c: Likewise.
30521 * lib/unistr/u8-strnlen.c: Likewise.
30522 * lib/unistr/u8-strpbrk.c: Likewise.
30523 * lib/unistr/u8-strrchr.c: Likewise.
30524 * lib/unistr/u8-strspn.c: Likewise.
30525 * lib/unistr/u8-strstr.c: Likewise.
30526 * lib/unistr/u8-strtok.c: Likewise.
30527 * lib/unistr/u8-to-u16.c: Likewise.
30528 * lib/unistr/u8-to-u32.c: Likewise.
30529 * lib/unistr/u8-uctomb-aux.c: Likewise.
30530 * lib/unistr/u8-uctomb.c: Likewise.
30531 * lib/unitypes.h: Likewise.
30532 * lib/uniwidth.h: Likewise.
30533 * lib/uniwidth/cjk.h: Likewise.
30534 * lib/uniwidth/u16-strwidth.c: Likewise.
30535 * lib/uniwidth/u16-width.c: Likewise.
30536 * lib/uniwidth/u32-strwidth.c: Likewise.
30537 * lib/uniwidth/u32-width.c: Likewise.
30538 * lib/uniwidth/u8-strwidth.c: Likewise.
30539 * lib/uniwidth/u8-width.c: Likewise.
30540 * lib/uniwidth/width.c: Likewise.
30542 2007-10-07 Bruno Haible <bruno@clisp.org>
30544 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30545 The file is still under LGPL (see modules/inttypes).
30547 2007-10-06 Bruno Haible <bruno@clisp.org>
30549 * modules/trunc (Dependencies): Add 'extensions'.
30550 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30551 Reported by Ben Pfaff <blp@gnu.org>.
30553 2007-10-06 Bruno Haible <bruno@clisp.org>
30555 * modules/freopen-tests: New file.
30556 * tests/test-freopen.c: New file.
30558 * modules/fopen-tests: New file.
30559 * tests/test-fopen.c: New file.
30561 * modules/fopen: New file.
30562 * lib/fopen.c: New file.
30563 * m4/fopen.m4: New file.
30564 * modules/freopen: New file.
30565 * lib/freopen.c: New file.
30566 * m4/freopen.m4: New file.
30567 * lib/stdio.in.h (fopen, freopen): New declarations.
30568 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30569 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30570 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30571 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30572 * doc/functions/fopen.texi: Mention the 'fopen' module.
30573 * doc/functions/freopen.texi: Mention the 'freopen' module.
30575 2007-10-06 Bruno Haible <bruno@clisp.org>
30577 * modules/open-tests: New file.
30578 * tests/test-open.c: New file.
30580 * modules/open: New file.
30581 * lib/open.c: New file.
30582 * m4/open.m4: New file.
30583 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30585 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30586 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30588 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30589 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30591 * doc/functions/open.texi: Mention the 'open' module.
30593 2007-10-04 Bruno Haible <bruno@clisp.org>
30595 * modules/ceill-tests: New file.
30596 * tests/test-ceill.c: New file.
30598 * modules/ceill: New file.
30599 * lib/ceill.c: Replace entire file.
30600 * m4/ceill.m4: New file.
30601 * lib/math.in.h (ceill): Replace declaration.
30602 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30603 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30604 * doc/functions/ceill.texi: Mention the 'ceill' module.
30605 * modules/mathl (Files): Remove lib/ceill.c.
30606 (Depends-on): Add ceill.
30608 2007-10-04 Bruno Haible <bruno@clisp.org>
30610 * modules/ceilf-tests: New file.
30611 * tests/test-ceilf.c: New file.
30613 * modules/ceilf: New file.
30614 * lib/ceil.c: New file.
30615 * lib/ceilf.c: New file.
30616 * m4/ceilf.m4: New file.
30617 * lib/math.in.h (ceilf): New declaration.
30618 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30620 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30622 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30624 2007-10-04 Bruno Haible <bruno@clisp.org>
30626 * modules/floorl-tests: New file.
30627 * tests/test-floorl.c: New file.
30629 * modules/floorl: New file.
30630 * lib/floorl.c: Replace entire file.
30631 * m4/floorl.m4: New file.
30632 * lib/math.in.h (floorl): Replace declaration.
30633 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30634 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30635 * doc/functions/floorl.texi: Mention the 'floorl' module.
30636 * modules/mathl (Files): Remove lib/floorl.c.
30637 (Depends-on): Add floorl.
30639 2007-10-04 Bruno Haible <bruno@clisp.org>
30641 * modules/floorf-tests: New file.
30642 * tests/test-floorf.c: New file.
30644 * modules/floorf: New file.
30645 * lib/floor.c: New file.
30646 * lib/floorf.c: New file.
30647 * m4/floorf.m4: New file.
30648 * lib/math.in.h (floorf): New declaration.
30649 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30651 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30653 * doc/functions/floorf.texi: Mention the 'floorf' module.
30655 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
30656 Bruno Haible <bruno@clisp.org>
30658 Advertise for the Git server instead of the CVS server.
30659 * doc/gnulib-intro.texi (Steady Development): Mention the Git
30660 repository instead of the CVS one.
30661 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30662 about all VCS systems generically.
30663 * doc/gnulib.texi (Introduction): Capitalize `Git'.
30665 2007-10-04 Bruno Haible <bruno@clisp.org>
30667 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30669 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30671 2007-10-04 Bruno Haible <bruno@clisp.org>
30673 * modules/truncl-tests: New file.
30674 * tests/test-truncl.c: New file.
30676 * modules/truncl: New file.
30677 * lib/truncl.c: New file.
30678 * m4/truncl.m4: New file.
30679 * lib/math.in.h (truncl): New declaration.
30680 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30682 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30684 * doc/functions/truncl.texi: Mention the 'truncl' module.
30686 2007-10-04 Bruno Haible <bruno@clisp.org>
30688 * modules/truncf-tests: New file.
30689 * tests/test-truncf.c: New file.
30691 * modules/truncf: New file.
30692 * lib/trunc.c: Make paramerizable through USE_* macros.
30693 * lib/truncf.c: New file.
30694 * m4/truncf.m4: New file.
30695 * lib/math.in.h (truncf): New declaration.
30696 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30698 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30700 * doc/functions/truncf.texi: Mention the 'truncf' module.
30702 2007-10-03 Bruno Haible <bruno@clisp.org>
30704 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30705 augmentation also for tests modules.
30706 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30707 * modules/atexit-tests (Makefile.am): Likewise.
30708 * modules/binary-io-tests (Makefile.am): Likewise.
30709 * modules/c-strcase-tests (Makefile.am): Likewise.
30710 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30711 * modules/canonicalize-tests (Makefile.am): Likewise.
30712 * modules/closein-tests (Makefile.am): Likewise.
30713 * modules/fprintf-posix-tests (Makefile.am): Likewise.
30714 * modules/freadahead-tests (Makefile.am): Likewise.
30715 * modules/fseek-tests (Makefile.am): Likewise.
30716 * modules/fseeko-tests (Makefile.am): Likewise.
30717 * modules/ftell-tests (Makefile.am): Likewise.
30718 * modules/ftello-tests (Makefile.am): Likewise.
30719 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30720 * modules/isnanl-tests (Makefile.am): Likewise.
30721 * modules/lseek-tests (Makefile.am): Likewise.
30722 * modules/mbscasecmp-tests (Makefile.am): Likewise.
30723 * modules/mbscasestr-tests (Makefile.am): Likewise.
30724 * modules/mbschr-tests (Makefile.am): Likewise.
30725 * modules/mbscspn-tests (Makefile.am): Likewise.
30726 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30727 * modules/mbspbrk-tests (Makefile.am): Likewise.
30728 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30729 * modules/mbsrchr-tests (Makefile.am): Likewise.
30730 * modules/mbsspn-tests (Makefile.am): Likewise.
30731 * modules/mbsstr-tests (Makefile.am): Likewise.
30732 * modules/printf-posix-tests (Makefile.am): Likewise.
30733 * modules/snprintf-posix-tests (Makefile.am): Likewise.
30734 * modules/sprintf-posix-tests (Makefile.am): Likewise.
30735 * modules/tsearch-tests (Makefile.am): Likewise.
30736 * modules/uniname/uniname-tests (Makefile.am): Likewise.
30737 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30738 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30739 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30740 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30741 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30742 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30743 * modules/vprintf-posix-tests (Makefile.am): Likewise.
30744 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30745 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30746 * modules/xstrtoimax-tests (Makefile.am): Likewise.
30747 * modules/xstrtol-tests (Makefile.am): Likewise.
30748 * modules/xstrtoumax-tests (Makefile.am): Likewise.
30749 * modules/yesno-tests (Makefile.am): Likewise.
30751 2007-10-03 Bruno Haible <bruno@clisp.org>
30753 * modules/trunc-tests: New file.
30754 * tests/test-trunc.c: New file.
30756 * modules/trunc: New file.
30757 * lib/trunc.c: New file.
30758 * m4/trunc.m4: New file.
30759 * lib/math.in.h (trunc): New declaration.
30760 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30762 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30764 * doc/functions/trunc.texi: Mention the 'trunc' module.
30766 2007-10-03 Bruno Haible <bruno@clisp.org>
30768 * tests/test-fpending.c: New file, mostly copied
30769 from coreutils/lib/t-fpending.c.
30770 * modules/fpending-tests: New file.
30772 2007-10-03 Bruno Haible <bruno@clisp.org>
30774 Port the stdio extensions to QNX (untested).
30775 * lib/fseterr.c (fseterr): Add support for QNX.
30776 * lib/fbufmode.c (fbufmode): Likewise.
30777 * lib/freadable.c (freadable): Likewise.
30778 * lib/fwritable.c (fwritable): Likewise.
30779 * lib/freading.c (freading): Likewise.
30780 * lib/fwriting.c (fwriting): Likewise.
30781 * lib/freadahead.c (freadahed): Likewise.
30782 * lib/fpurge.c (fpurge): Likewise.
30783 * lib/fseeko.c (rpl_fseeko): Likewise.
30785 2007-10-03 Bruno Haible <bruno@clisp.org>
30786 Jim Meyering <jim@meyering.net>
30787 Eric Blake <ebb9@byu.net>
30789 * doc/relocatable.texi: Use @command instead of @program.
30791 2007-10-02 Jim Meyering <jim@meyering.net>
30793 Perform one more "_.h" -> ".in.h" substitution.
30794 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30795 instead of unistd_.h here, too.
30797 2007-10-01 Bruno Haible <bruno@clisp.org>
30799 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30800 Needed for the alloca-opt module.
30802 2007-09-30 Bruno Haible <bruno@clisp.org>
30804 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30805 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30807 * lib/argz.in.h: Renamed from lib/argz_.h.
30808 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30809 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30810 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30812 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30813 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30815 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30816 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30818 * lib/float.in.h: Renamed from lib/float_.h.
30819 * modules/float (Files, Makefile.am): Use float.in.h instead of
30821 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30822 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30824 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30825 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30827 * lib/glob.in.h: Renamed from lib/glob_.h.
30828 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30829 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30830 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30832 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30833 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30835 * lib/locale.in.h: Renamed from lib/locale_.h.
30836 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30838 * lib/math.in.h: Renamed from lib/math_.h.
30839 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30840 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30841 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30842 of netinet_in_.h. Add dependency.
30843 * lib/poll.in.h: Renamed from lib/poll_.h.
30844 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30845 * lib/search.in.h: Renamed from lib/search_.h.
30846 * modules/search (Files, Makefile.am): Use search.in.h instead of
30848 * lib/signal.in.h: Renamed from lib/signal_.h.
30849 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30851 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30852 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30854 * lib/stdint.in.h: Renamed from lib/stdint_.h.
30855 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30857 * lib/stdio.in.h: Renamed from lib/stdio_.h.
30858 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30860 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30861 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30863 * lib/string.in.h: Renamed from lib/string_.h.
30864 * modules/string (Files, Makefile.am): Use string.in.h instead of
30866 * doc/gnulib-tool.texi (Initial import): Update.
30867 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30868 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30869 of sys_select_.h. Add dependency.
30870 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30871 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30873 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30874 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30876 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30877 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30879 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30880 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30882 * lib/time.in.h: Renamed from lib/time_.h.
30883 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30884 * lib/unistd.in.h: Renamed from lib/unistd_.h.
30885 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30887 * lib/wchar.in.h: Renamed from lib/wchar_.h.
30888 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30890 * lib/wctype.in.h: Renamed from lib/wctype_.h.
30891 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30893 * build-aux/bootstrap (slurp): Update.
30894 * lib/.cppi-disable: Update.
30896 2007-09-30 Bruno Haible <bruno@clisp.org>
30898 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30901 2007-09-30 Bruno Haible <bruno@clisp.org>
30903 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30905 2007-09-29 Bruno Haible <bruno@clisp.org>
30907 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30909 2007-09-29 Bruno Haible <bruno@clisp.org>
30911 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30912 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30913 * build-aux/install-reloc: Compile also areadlink.c.
30914 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30916 2007-09-29 Bruno Haible <bruno@clisp.org>
30918 * gnulib-tool (func_emit_initmacro_done): Indentation.
30920 2007-09-29 Bruno Haible <bruno@clisp.org>
30922 * README: Add CVS checkout update instructions.
30923 Info from Bob Proulx <bob@proulx.com>.
30925 2007-09-28 Eric Blake <ebb9@byu.net>
30927 Provide move-if-change.
30928 * build-aux/move-if-change: New file, based on best practice
30929 rather than any canonical upstream location.
30931 2007-09-28 Jim Meyering <jim@meyering.net>
30933 Fix canonicalize loop-detection corner case.
30934 Do not attempt to stat the symlink values stored via seen_triple.
30935 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30936 on linux-2.6.18, (but not 2.6.22).
30937 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30938 triple_compare. The former compares dev,ino,filename, while the latter
30939 would actually stat dirname(filename) when dev and ino were equal.
30940 * lib/hash-triple.c: Install <string.h>.
30942 (triple_compare_ino_str): New function.
30943 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30945 2007-09-28 Eric Blake <ebb9@byu.net>
30947 Enforce that AC_REPLACE_FUNCS files exist.
30948 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30949 override check for typos.
30951 Fix test-closein on Solaris 10.
30952 * tests/test-closein.c (main): Don't assume stdin can be inherited
30953 closed on all systems.
30954 * tests/test-closein.sh: Likewise.
30955 Reported by Piotr Tarnowski.
30957 2007-09-28 Jim Meyering <jim@meyering.net>
30959 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30961 2007-09-27 Jim Meyering <jim@meyering.net>
30963 canonicalize: Avoid a false-positive cycle failure.
30964 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30965 Sort. Remove cycle-check.
30966 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30968 (seen_triple): New function.
30969 (canonicalize_filename_mode): Use it instead of cycle-check.
30970 * tests/test-canonicalize.c: Add a test for this bug.
30971 * tests/test-canonicalize.sh: Set up and run the test.
30973 New module, file-set, from coreutils.
30974 * modules/file-set: Define it.
30975 * lib/file-set.c, lib/file-set.h: Implement.
30977 New module, hash-triple, from coreutils.
30978 * modules/hash-triple: Define it.
30979 * lib/hash-triple.c, lib/hash-triple.h: Implement.
30981 2007-09-25 Eric Blake <ebb9@byu.net>
30983 Fix strerror on Interix.
30984 * lib/string_.h (strerror): Declare replacement.
30985 * doc/functions/strerror.texi (strerror): Document the Interix
30987 * modules/string (Makefile.am): Support new hooks.
30988 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30989 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30990 gl_FUNC_STRERROR_SEPARATE.
30991 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30992 * lib/strerror.c (rpl_strerror): Provide replacement.
30993 * modules/strerror (Depends-on): Add string.
30994 (configure.ac): Detect use of module.
30995 * tests/test-strerror.c: New file.
30996 * modules/strerror-tests: New test module.
30997 * modules/argp (Depends-on): Add strerror.
30998 * modules/error (Depends-on): Likewise.
30999 Reported by Martin Koeppe.
31001 2007-09-24 Bruno Haible <bruno@clisp.org>
31003 * README: Update git instructions.
31005 2007-09-24 Eric Blake <ebb9@byu.net>
31007 Revert fpending breakage from 2007-09-08.
31008 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31011 2007-09-24 Jim Meyering <jim@meyering.net>
31013 filenamecat.c: Add a test.
31014 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31015 showing how the function works when DIR is the empty string.
31017 2007-09-21 Simon Josefsson <simon@josefsson.org>
31019 * tests/test-canonicalize.sh: Turn on executable bit.
31021 2007-09-19 Eric Blake <ebb9@byu.net>
31023 * README: Update CVS instructions.
31025 2007-09-18 Bruno Haible <bruno@clisp.org>
31027 * modules/areadlink: New file.
31028 * lib/areadlink.h (areadlink): New declaration.
31029 * lib/areadlink.c: New file, based on lib/xreadlink.c.
31031 2007-09-17 Jim Meyering <jim@meyering.net>
31033 * lib/savewd.c (ESTALE) [!defined]: Define.
31034 Reported to be required on Interix by Martin Koeppe.
31036 2007-09-17 Bruno Haible <bruno@clisp.org>
31038 * gnulib-tool (func_version): Use $version.
31040 2007-09-16 Bruno Haible <bruno@clisp.org>
31042 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31043 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31044 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31045 Reported by Greg Schafer <gschafer@zip.com.au>.
31047 2007-09-15 Bruno Haible <bruno@clisp.org>
31049 * gnulib-tool (sed): Try a little harder to make bash understand the
31051 Reported by Bruce Korb <bruce.korb@gmail.com>.
31053 2007-09-13 Eric Blake <ebb9@byu.net>
31055 * ChangeLog: Remove conflict markers.
31057 2007-09-13 Simon Josefsson <simon@josefsson.org>
31059 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31060 Reported by Bruno Haible <bruno@clisp.org>.
31062 2007-09-12 Bruno Haible <bruno@clisp.org>
31064 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31065 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31068 2007-09-12 Eric Blake <ebb9@byu.net>
31070 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31071 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31072 Autoconf definition.
31073 * modules/euidaccess (Depends-on): Add extensions, for
31074 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31075 * modules/fnmatch (Depends-on): Likewise.
31076 * modules/getaddrinfo (Depends-on): Likewise.
31077 * modules/getdelim (Depends-on): Likewise.
31078 * modules/getline (Depends-on): Likewise.
31079 * modules/getsubopt (Depends-on): Likewise.
31080 * modules/gettext (Depends-on): Likewise.
31081 * modules/group-member (Depends-on): Likewise.
31082 * modules/mbchar (Depends-on): Likewise.
31083 * modules/memmem (Depends-on): Likewise.
31084 * modules/mempcpy (Depends-on): Likewise.
31085 * modules/memrchr (Depends-on): Likewise.
31086 * modules/pagealign_alloc (Depends-on): Likewise.
31087 * modules/readutmp (Depends-on): Likewise.
31088 * modules/stpcpy (Depends-on): Likewise.
31089 * modules/stpncpy (Depends-on): Likewise.
31090 * modules/strchrnul (Depends-on): Likewise.
31091 * modules/strndup (Depends-on): Likewise.
31092 * modules/strsep (Depends-on): Likewise.
31093 * modules/strverscmp (Depends-on): Likewise.
31094 * modules/vasprintf (Depends-on): Likewise.
31095 * modules/wcwidth (Depends-on): Likewise.
31096 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31097 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31098 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31099 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31100 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31101 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31102 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31103 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31104 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31105 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31106 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31107 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31108 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31109 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31110 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31111 * m4/readutmp.m4 (gl_READUTMP): Likewise.
31112 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31113 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31114 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31115 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31116 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31117 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31118 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31119 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31120 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31121 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31122 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31123 so that lock.m4 can be used in gettext without extensions module.
31125 2007-09-11 Bruno Haible <bruno@clisp.org>
31127 * m4/isc-posix.m4: Remove file.
31128 Suggested by Eric Blake.
31130 2007-09-11 Eric Blake <ebb9@byu.net>
31132 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31134 2007-09-10 Bruno Haible <bruno@clisp.org>
31136 * posix-modules: Fix typo in error message.
31137 Reported by Matt <mkraai@beckman.com>.
31139 2007-09-09 Bruno Haible <bruno@clisp.org>
31141 * doc/functions/getdelim.texi: Update list of platforms lacking the
31143 * doc/functions/getline.texi: Likewise.
31145 2007-09-09 Jim Meyering <jim@meyering.net>
31147 * lib/hash.c (hash_initialize): Detect calloc failure.
31148 Reported by Bruno Haible.
31150 2007-09-09 Bruno Haible <bruno@clisp.org>
31152 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31153 malloc or realloc fails.
31155 2007-09-09 Bruno Haible <bruno@clisp.org>
31157 * modules/getcwd (Depends-on): Add malloc-posix.
31158 * modules/glob (Depends-on): Likewise.
31159 * modules/putenv (Depends-on): Likewise.
31160 * modules/strdup (Depends-on): Likewise.
31161 * modules/getdelim (Depends-on): Add realloc-posix.
31162 * modules/read-file (Depends-on): Likewise.
31164 2007-09-09 Bruno Haible <bruno@clisp.org>
31166 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31167 (gl_FUNC_MALLOC_POSIX): Require it.
31168 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31169 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31170 * modules/realloc (Files): Add m4/malloc.m4.
31171 * modules/calloc (Files): Likewise.
31173 2007-09-09 Bruno Haible <bruno@clisp.org>
31175 * modules/malloc-posix: New file.
31176 * modules/malloc (Depends-on): Add malloc-posix.
31177 * lib/malloc.c: Include errno.h.
31178 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31179 and a POSIX-compatible malloc into a single function. Set ENOMEM
31180 when returning NULL.
31181 * m4/malloc.m4: New file.
31182 * doc/functions/malloc.texi: Mention the malloc-posix module.
31183 * lib/stdlib_.h (malloc): New declaration.
31184 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31185 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31186 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31187 and HAVE_MALLOC_POSIX.
31189 2007-09-09 Bruno Haible <bruno@clisp.org>
31191 * modules/realloc-posix: New file.
31192 * modules/realloc (Depends-on): Add realloc-posix.
31193 * lib/realloc.c: Include errno.h.
31194 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31195 and a POSIX-compatible realloc into a single function. Set ENOMEM
31196 when returning NULL.
31197 * m4/realloc.m4: New file.
31198 * doc/functions/realloc.texi: Mention the realloc-posix module.
31199 * lib/stdlib_.h (realloc): New declaration.
31200 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31201 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31202 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31203 and HAVE_REALLOC_POSIX.
31205 2007-09-09 Bruno Haible <bruno@clisp.org>
31207 * modules/calloc-posix: New file.
31208 * modules/calloc (Depends-on): Add calloc-posix.
31209 * lib/calloc.c: Include errno.h.
31210 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31211 and a POSIX-compatible calloc into a single function. Set ENOMEM
31212 when returning NULL.
31213 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31214 * doc/functions/calloc.texi: Mention the calloc-posix module.
31215 * lib/stdlib_.h (calloc): New declaration.
31216 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31217 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31218 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31219 and HAVE_CALLOC_POSIX.
31221 2007-09-09 Bruno Haible <bruno@clisp.org>
31223 Allow for modules to show an arbitrary notice.
31224 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31225 * gnulib-tool: New option --extract-notice.
31226 (func_usage): Document it.
31227 (sed_extract_prog): Update.
31228 (func_get_notice): New function.
31229 (func_modules_notice): New function.
31230 (func_import, func_create_testdir): Invoke it.
31231 Suggested by Jim Meyering.
31233 2007-09-09 Bruno Haible <bruno@clisp.org>
31235 * gnulib-tool: New options --verbose, --quiet.
31236 (func_usage): Document them.
31237 (verbose): New variable.
31238 (func_execute_command): New function.
31239 (func_import): Don't show the module list and the file list if
31241 (func_create_testdir): Likewise. Use func_execute_command.
31242 (func_create_megatestdir): Use func_execute_command.
31244 2007-09-08 Bruno Haible <bruno@clisp.org>
31246 * gnulib-tool (func_import): Prefer rsync over wget when available,
31247 for fetching the PO files.
31249 2007-09-08 Bruno Haible <bruno@clisp.org>
31251 * posix-modules: New file. Portions copied from gnulib-tool.
31252 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31254 2007-09-08 Jim Meyering <jim@meyering.net>
31256 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31257 * lib/fpending.h: Rename from __fpending.h.
31258 * lib/fpending.c: Rename from __fpending.c.
31259 Include "fpending.h", not "__fpending.h".
31260 * lib/__fpending.h, lib/__fpending.c: Remove files.
31261 * modules/fpending (Files): Reflect new file names.
31262 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31264 2007-09-08 Bruno Haible <bruno@clisp.org>
31266 * m4/inttypes-h.m4: Remove stub file.
31268 2007-09-07 Simon Josefsson <simon@josefsson.org>
31270 * doc/headers/stdint.texi: Discuss #include_next issue.
31272 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31274 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31276 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31278 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31281 2007-09-03 Jim Meyering <jim@meyering.net>
31283 New module: git-version-gen.
31284 * modules/git-version-gen: New file.
31286 Import changes from coreutils for bootstrap script.
31288 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31290 bootstrap: uses rsync to download the .po files
31291 * build-aux/bootstrap (po_download_command_format): New global.
31292 (download_po_files): Use rsync.
31293 (update_po_files): Don't remove .po files after download,
31294 so future rsync runs can take advantage of the copies.
31296 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31298 Solve the unnecessary-.po-file-regeneration problem once and for all.
31299 * build-aux/bootstrap (download_po_files): New function, renamed from
31300 get_translations. Now, downloads, but doesn't update LINGUAS.
31301 (update_po_files): New function.
31303 bootstrap: Ignore more.
31304 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31305 uniwidth to e.g., lib/.gitignore.
31306 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31308 * build-aux/bootstrap: New setting: vc_ignore.
31309 (insert_sorted_if_absent): Create $file if absent.
31310 Adapt to new, possibly empty, list: $vc_ignore.
31312 bootstrap: generate more ignorable names
31313 * build-aux/bootstrap (slurp): When generating ignorable names,
31314 also map .sin to .sed, .gperf to .c, and .y to .c.
31316 2007-09-03 Jim Meyering <jim@meyering.net>
31318 * build-aux/git-version-gen: New file, from coreutils. For details, see
31319 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31321 2007-09-02 Bruno Haible <bruno@clisp.org>
31323 Fix mis-recognition of 'mcs' on QNX 6.
31324 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31325 output contains the string "Mono".
31326 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31327 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31329 2007-09-01 Bruno Haible <bruno@clisp.org>
31331 Fix collision between uniwidth/* and linebreak modules.
31332 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31333 u32_width): Remove declarations.
31334 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31335 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31336 streq3, streq2, streq1, streq0): Remove functions.
31337 (STREQ): Remove macro.
31338 (is_cjk_encoding): Remove function.
31339 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31340 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31341 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31342 * NEWS: Document the change.
31344 2007-09-01 Bruno Haible <bruno@clisp.org>
31346 * lib/streq.h: Add double-inclusion guard.
31348 2007-09-01 Karl Berry <karl@gnu.org>
31350 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31352 2007-08-28 Jim Meyering <jim@meyering.net>
31354 Rename mreadlink_with_size to areadlink_with_size.
31355 * NEWS: Document the change.
31356 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31357 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31358 * lib/mreadlink.h: Rename this to...
31359 * lib/areadlink.h: ...this.
31360 * modules/mreadlink-with-size: Rename this to...
31361 * modules/areadlink-with-size: ...this.
31362 * lib/canonicalize.c: Reflect the renaming.
31363 * modules/canonicalize: Likewise.
31365 2007-08-26 Bruno Haible <bruno@clisp.org>
31367 * gnulib-tool (func_import): When deciding which files to remove,
31368 consider also dangling symbolic links.
31369 Reported by Eric Blake.
31371 2007-08-26 Bruno Haible <bruno@clisp.org>
31373 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31375 2007-08-23 Simon Josefsson <simon@josefsson.org>
31377 * lib/readline.c: Don't include getline.h, the prototype is now
31380 2007-08-23 Jim Meyering <jim@meyering.net>
31383 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31384 around the funlockfile call, since funlockfile never sets errno.
31385 Don't set errno upon failed realloc.
31387 2007-08-22 Eric Blake <ebb9@byu.net>
31390 * lib/getdelim.c (getdelim): Revert regression that required *n to
31391 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
31392 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31393 getdelim, rather than whether implementation is missing.
31394 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31395 * lib/stdio_.h (getline): Also declare if replacement is
31397 * doc/functions/getdelim.texi: New file.
31398 * doc/functions/getline.texi: Likewise.
31399 * doc/gnulib.texi (Function Substitutes): Add new files.
31400 Reported by Bruno Haible.
31402 2007-08-22 Ludovic Courtès <ludo@gnu.org>
31404 * users.txt: Add Guile.
31406 2007-08-22 Eric Blake <ebb9@byu.net>
31408 * tests/test-getdelim.c (main): Use remove, not unlink.
31409 * tests/test-getline.c (main): Likewise.
31411 Move getline and getdelim into stdio.h, per POSIX 200x.
31412 * modules/getline (Files): Remove getline.h.
31413 (Depends-on): Add stdio.
31414 (configure.ac): Add module indicator.
31415 * modules/getdelim (Files): Remove getdelim.h.
31416 (Depends-on): Add stdio.
31417 (configure.ac): Add module indicator.
31418 * modules/stdio (Makefile.am): Work with new indicators.
31419 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31420 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31421 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31422 * lib/getdelim.h: Delete.
31423 * lib/getline.h: Delete.
31424 * lib/stdio_.h (getdelim, getline): Declare.
31425 * modules/getdelim-tests: New module.
31426 * modules/getline-tests: Likewise.
31427 * tests/test-getdelim.c: New file.
31428 * tests/test-getline.c: Likewise.
31429 * NEWS: Document the change.
31430 * lib/getline.c: Update choice of header.
31431 * lib/csharpcomp.c: Likewise.
31432 * lib/getpass.c: Likewise.
31433 * lib/javacomp.c: Likewise.
31434 * lib/javaversion.c: Likewise.
31435 * lib/yesno.c: Likewise.
31436 * lib/getdelim.c: Likewise.
31437 (getdelim): Set errno on failure, and avoid memory leak.
31439 2007-08-19 Bruno Haible <bruno@clisp.org>
31441 * modules/closein (Depends-on): Add freadahead.
31442 * lib/closein.c: Include freadahead.h.
31443 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31446 2007-08-19 Bruno Haible <bruno@clisp.org>
31448 * modules/freadahead-tests: New file.
31449 * tests/test-freadahead.sh: New file.
31450 * tests/test-freadahead.c: New file.
31452 * modules/freadahead: New file.
31453 * lib/freadahead.h: New file.
31454 * lib/freadahead.c: New file.
31455 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31456 fbufmode, fpurge, freadable, fwritable.
31458 2007-08-19 Eric Blake <ebb9@byu.net>
31460 Test yesno in combination with closein.
31461 * lib/yesno.c (yesno): Document use of stdin.
31462 * modules/yesno-tests (Files): New module.
31463 * tests/test-yesno.c (main): New file.
31464 * tests/test-yesno.sh: Likewise.
31466 2007-08-19 Bruno Haible <bruno@clisp.org>
31468 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31469 * lib/fseeko.c (rpl_fseeko): Likewise.
31470 * lib/fseterr.c (fseterr): Likewise.
31472 2007-08-19 Bruno Haible <bruno@clisp.org>
31474 * tests/test-lseek.c (main): Disable a test for BeOS.
31475 * doc/functions/lseek.texi: Document the BeOS bug.
31477 2007-08-19 Bruno Haible <bruno@clisp.org>
31478 Eric Blake <ebb9@byu.net>
31480 * lib/lseek.c: Include <sys/stat.h>.
31481 (rpl_lseek): Add workaround code also for Unix platforms.
31483 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31484 * doc/functions/lseek.texi: Document BeOS definiency.
31486 2007-08-18 Bruno Haible <bruno@clisp.org>
31488 * modules/fstrcmp-tests: New file.
31489 * tests/test-fstrcmp.c: New file.
31491 2007-08-18 Bruno Haible <bruno@clisp.org>
31493 * modules/fstrcmp: New file, from GNU gettext with modifications.
31494 * lib/fstrcmp.h: New file, from GNU gettext.
31495 * lib/fstrcmp.c: New file, from GNU gettext.
31496 * MODULES.html.sh (String handling): Add fstrcmp.
31498 2007-08-18 Bruno Haible <bruno@clisp.org>
31500 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31502 (diag, compareseq): Remove const from the ctxt argument.
31503 (USE_HEURISTIC): Undefine at the end.
31505 2007-08-18 Jim Meyering <jim@meyering.net>
31507 New file: lib/idcache.h
31508 * NEWS: Mention the addition.
31509 * modules/idcache (Files): Add lib/idcache.h
31510 * lib/idcache.c: Include "idcache.h".
31511 Don't include <sys/types.h>.
31512 Add a FIXME comment.
31513 Move file-scoped "static" declarations to the top.
31514 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
31516 2007-08-17 Bruno Haible <bruno@clisp.org>
31517 and Paul Eggert <eggert@cs.ucla.edu>
31519 * MODULES.html.sh: Add diffseq.
31520 * modules/diffseq: New file.
31521 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31522 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31524 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
31526 Import changes from coreutils for bootstrap script.
31528 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
31530 * build-aux/bootstrap (slurp): Work even in environments where
31531 "ls" defaults to "ls -A". Put in a FIXME, though, since the
31532 current code does not slurp files whose names start with ".", and
31533 this looks like it might be a troublesome area.
31535 2007-07-11 Jim Meyering <jim@meyering.net>
31537 If there's a GPL vN copyright comment, require that N == 3.
31539 2007-07-08 Jim Meyering <jim@meyering.net>
31541 Run the coreutils-specific code only if tests/Makefile.am.in exists.
31542 * build-aux/bootstrap (mam_template): Move definition out of loop.
31544 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31546 * build-aux/bootstrap (symlink_to_dir): Rename function from
31547 symlink_to_gnulib. Add a directory parameter. Update all
31549 (cp_mark_as_generated): Also check for -- and link to -- files in
31552 2007-07-08 Jim Meyering <jim@meyering.net>
31554 Adapt to deeper hierarchy in gnulib.
31555 * build-aux/bootstrap (symlink_to_dir): If the destination
31556 directory doesn't exist, create it. This is required at least for
31557 "lib/uniwidth/cjk.h".
31559 2007-05-15 Jim Meyering <jim@meyering.net>
31561 * build-aux/bootstrap: Now that generated Makefile.am files
31562 are no longer under version control, they must be created at
31565 2007-08-14 Ben Pfaff <blp@gnu.org>
31567 * lib/count-one-bits.h: Add comments. From Bruno Haible.
31569 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
31571 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31572 given the changes below.
31573 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
31574 even on hosts that have padding bits beyond the supported 64.
31576 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
31578 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31579 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31580 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
31582 (xstrtol_error): Remove.
31583 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31584 but with a different signature.
31585 (ATTRIBUTE_NORETURN, __attribute__): New macros.
31586 * lib/xstrtol-error.c: Include exitfail.h.
31587 (xstrtol_fatal): New function, with a different signature from the
31588 old xstrtol_error, so that the caller need not worry about passing
31589 in an exit status, or about storage management of the option argument.
31590 (xstrtol_error): Now a static function. Redo signature to
31591 implement xstrtol_fatal. Output the correct number of hyphens in
31592 front of the option so that the caller need not worry about
31593 storage management.
31595 (_): Remove; not used now.
31596 * modules/xstrtol: Depend on getopt.
31597 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31598 of old STRTOL_FATAL_ERROR macro.
31599 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31601 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31602 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31604 2007-08-08 Eric Blake <ebb9@byu.net>
31606 * lib/xstrtol-error.c: Add missing include.
31608 Move xstrtol messages into gnulib domain, when --pobase is used.
31609 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31610 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31611 * modules/xstrtol (Files): Distribute new file.
31612 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31613 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31614 * tests/test-xstrtol.c: ...into new file.
31615 * tests/test-xstrtoul.c: Also test xstrtoul.
31616 * tests/test-xstrtoimax.c: Also test xstrtoimax.
31617 * tests/test-xstrtoumax.c: Also test xstrtoumax.
31618 * tests/test-xstrtol.sh: Drive the tests.
31619 * tests/test-xstrtoimax.sh: Likewise.
31620 * tests/test-xstrtoumax.sh: Likewise.
31621 * modules/xstrtol-tests: New module.
31622 * modules/xstrtoimax-tests: Likewise.
31623 * modules/xstrtoumax-tests: Likewise.
31625 2007-08-08 Jim Meyering <jim@meyering.net>
31627 New function: mfile_name_concat.
31628 * lib/filenamecat.c (mfile_name_concat): New function, just like
31629 file_name_concat, but return NULL upon failure rather than exiting
31631 * lib/filenamecat.h: Declare it.
31633 2007-08-07 Bruno Haible <bruno@clisp.org>
31635 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31636 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31638 Reported by Eric Blake.
31640 2007-08-07 Simon Josefsson <simon@josefsson.org>
31642 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31643 * modules/crypto/arcfour (License): Likewise.
31644 * modules/crypto/des-tests (License): Likewise.
31645 * modules/crypto/gc-arctwo-tests (License): Likewise.
31646 * modules/crypto/gc-des-tests (License): Likewise.
31647 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31648 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31649 * modules/crypto/gc-md2-tests (License): Likewise.
31650 * modules/crypto/gc-md4-tests (License): Likewise.
31651 * modules/crypto/gc-md5-tests (License): Likewise.
31652 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31653 * modules/crypto/gc-rijndael-tests (License): Likewise.
31654 * modules/crypto/gc-sha1-tests (License): Likewise.
31655 * modules/crypto/gc-tests (License): Likewise.
31656 * modules/crypto/hmac-md5 (License): Likewise.
31657 * modules/crypto/hmac-sha1 (License): Likewise.
31658 * modules/crypto/md2-tests (License): Likewise.
31659 * modules/crypto/md4-tests (License): Likewise.
31660 * modules/crypto/md5 (License): Likewise.
31661 * modules/crypto/rijndael (License): Likewise.
31662 * modules/crypto/sha1 (License): Likewise.
31663 * modules/memxor (License): Likewise.
31665 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
31666 and Bruno Haible <bruno@clisp.org>
31668 * NEWS: Describe interface changes to human, xstrtol.
31669 * lib/human.h: Include <xstrtol.h>.
31670 (human_options): Return enum strtol_error, not int. Remove
31671 bool arg; take int * instead.
31672 * lib/human.c: Don't include "gettext.h".
31673 (_): Remove; no longer used.
31674 Don't include <xstrtol.h>, since human.h does it.
31675 (human_options): Adjust to abovementioned interface changes.
31676 Do not report error to stderr; that's now the caller's
31678 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31680 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31681 Str, Argument_type_string. All uses changed. Put " argument"
31682 in diagnostics to make them clearer. Change wording of suffix
31683 message for clarity.
31684 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31685 Argument_type_string.
31686 (STRTOL_FATAL_WARN): Remove; no longer used.
31687 * modules/human (Depends-on): Remove gettext-h.
31689 2007-08-06 Simon Josefsson <simon@josefsson.org>
31691 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31693 2007-07-31 Bruno Haible <bruno@clisp.org>
31695 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31696 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31697 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31699 2007-07-31 Bruno Haible <bruno@clisp.org>
31701 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31702 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31704 2007-07-30 Bruno Haible <bruno@clisp.org>
31706 * modules/base64 (License): Use the synonymous term "LGPLv2+".
31707 * modules/c-ctype (License): Likewise.
31708 * modules/c-strcase (License): Likewise.
31709 * modules/check-version (License): Likewise.
31710 * modules/iconv (License): Likewise.
31711 * modules/iconv_open (License): Likewise.
31712 * modules/read-file (License): Likewise.
31713 * modules/striconv (License): Likewise.
31714 * modules/strverscmp (License): Likewise.
31715 * modules/vasprintf (License): Likewise.
31716 * modules/crypto/des (License): Likewise.
31717 * modules/crypto/gc (License): Likewise.
31718 * modules/crypto/gc-arcfour (License): Likewise.
31719 * modules/crypto/gc-arctwo (License): Likewise.
31720 * modules/crypto/gc-des (License): Likewise.
31721 * modules/crypto/gc-hmac-md5 (License): Likewise.
31722 * modules/crypto/gc-hmac-sha1 (License): Likewise.
31723 * modules/crypto/gc-md2 (License): Likewise.
31724 * modules/crypto/gc-md4 (License): Likewise.
31725 * modules/crypto/gc-md5 (License): Likewise.
31726 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31727 * modules/crypto/gc-random (License): Likewise.
31728 * modules/crypto/gc-rijndael (License): Likewise.
31729 * modules/crypto/gc-sha1 (License): Likewise.
31730 * modules/crypto/md2 (License): Likewise.
31731 * modules/crypto/md4 (License): Likewise.
31733 2007-07-30 Jim Meyering <jim@meyering.net>
31735 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31736 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31737 it has valid stat data. This bug would cause du not to count the
31738 sizes of inaccessible directories.
31739 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31740 in <http://bugzilla.redhat.com/250077>.
31742 2007-07-25 Peter O'Gorman <peter@pogma.com>
31743 Bruno Haible <bruno@clisp.org>
31745 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31746 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31747 #include_next, gives a diagnostic about it, but reports no error in
31749 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31751 2007-07-24 Ben Pfaff <blp@gnu.org>
31753 Improve name: "count-one-bits" is better than "popcount".
31754 * MODULES.html.sh: Update name.
31755 * lib/popcount.h: Renamed lib/count-one-bits.h.
31756 (popcount): Renamed count_one_bits.
31757 (popcountl): Renamed count_one_bits_l.
31758 (popcountll): Renamed count_one_bits_ll.
31759 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31760 * modules/popcount: Renamed module/count-one-bits.
31761 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31762 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31764 2007-07-23 Ben Pfaff <blp@gnu.org>
31766 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31767 better code generation, and add U to large constants to avoid
31768 warnings, in non-GCC case.
31769 Suggested by Bruno Haible.
31771 2007-07-23 Ben Pfaff <blp@gnu.org>
31773 * lib/popcount.h: Use verify_true instead of if...abort.
31774 * modules/popcount: Depend on verify module.
31775 Suggested by Jim Meyering.
31777 2007-07-23 Bruno Haible <bruno@clisp.org>
31779 * gnulib-tool (func_import): Create a .cvsignore file also when the
31780 directory is not yet in CVS but the toplevel directory is. When
31781 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31782 Reported by Karl Berry.
31784 2007-07-22 Ben Pfaff <blp@gnu.org>
31786 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31788 Suggested by Eric Blake.
31790 2007-07-22 Ben Pfaff <blp@gnu.org>
31792 New module: popcount.
31793 * MODULES.html.sh: Add popcount.
31794 * modules/popcount: New file.
31795 * modules/popcount-tests: New file.
31796 * tests/test-popcount.c: New file.
31797 * lib/popcount.h: New file.
31798 * m4/popcount.m4: New file.
31800 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31802 * build-aux/announce-gen: Update to GPLv3.
31804 * build-aux/config.guess: Update from config.
31806 2007-07-21 Bruno Haible <bruno@clisp.org>
31808 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31809 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31811 2007-07-20 Jim Meyering <jim@meyering.net>
31813 * check-module: Diagnose a self-dependency.
31815 2007-07-19 Bruno Haible <bruno@clisp.org>
31817 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31819 Reported by Eric Blake.
31821 2007-07-18 Bruno Haible <bruno@clisp.org>
31823 * gnulib-tool: New options --po-base, --po-domain.
31824 (func_usage): Document them.
31825 (pobase, po_domain): New variables.
31826 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31827 DEFAULT_TEXT_DOMAIN.
31828 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31829 (func_import): Consider pobase and po_domain. Create a po/ directory.
31830 (func_create_testdir): Set pobase and po_domain to empty.
31831 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31832 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31834 2007-07-18 Bruno Haible <bruno@clisp.org>
31836 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31837 EXTRA_DIST augmentation for files in build-aux/.
31839 2007-07-16 Bruno Haible <bruno@clisp.org>
31841 * modules/lseek (License): Use the synonymous term "LGPLv2+".
31842 * modules/getdelim (License): Likewise.
31844 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31846 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31847 * modules/d-type (License): Likewise.
31848 * modules/extensions (License): Likewise.
31849 * modules/fnmatch (License): Likewise.
31850 * modules/fseeko (License): Likewise.
31851 * modules/getaddrinfo (License): Likewise.
31852 * modules/getline (License): Likewise.
31853 * modules/getlogin_r (License): Likewise.
31854 * modules/getpass (License): Likewise.
31855 * modules/gettimeofday (License): Likewise.
31856 * modules/glob (License): Likewise.
31857 * modules/inet_ntop (License): Likewise.
31858 * modules/malloc (License): Likewise.
31859 * modules/malloca (License): Likewise.
31860 * modules/memmem (License): Likewise.
31861 * modules/mempcpy (License): Likewise.
31862 * modules/memset (License): Likewise.
31863 * modules/minmax (License): Likewise.
31864 * modules/mktime (License): Likewise.
31865 * modules/netinet_in (License): Likewise.
31866 * modules/pathmax (License): Likewise.
31867 * modules/poll (License): Likewise.
31868 * modules/regex (License): Likewise.
31869 * modules/snprintf (License): Likewise.
31870 * modules/stdbool (License): Likewise.
31871 * modules/stdint (License): Likewise.
31872 * modules/stdio (License): Likewise.
31873 * modules/strcase (License): Likewise.
31874 * modules/strcasestr (License): Likewise.
31875 * modules/strdup (License): Likewise.
31876 * modules/string (License): Likewise.
31877 * modules/strndup (License): Likewise.
31878 * modules/strnlen (License): Likewise.
31879 * modules/strpbrk (License): Likewise.
31880 * modules/strptime (License): Likewise.
31881 * modules/strsep (License): Likewise.
31882 * modules/sys_select (License): Likewise.
31883 * modules/sys_socket (License): Likewise.
31884 * modules/sys_stat (License): Likewise.
31885 * modules/sys_time (License): Likewise.
31886 * modules/time (License): Likewise.
31887 * modules/time_r (License): Likewise.
31888 * modules/timegm (License): Likewise.
31889 * modules/unistd (License): Likewise.
31890 * modules/vsnprintf (License): Likewise.
31891 * modules/wctype (License): Likewise.
31893 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31895 * modules/argz (License): LGPLv2+.
31897 2007-07-15 Karl Berry <karl@gnu.org>
31899 * doc/gnulib.texi: revise node structure per new fdl.texi.
31901 2007-07-14 Bruno Haible <bruno@clisp.org>
31903 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31905 * lib/uniname/uninames.h: Regenerated.
31907 2007-07-14 Karl Berry <karl@gnu.org>
31909 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31910 omitting sectioning and index commands.
31912 2007-07-13 Bruno Haible <bruno@clisp.org>
31914 New gnulib-tool option --more-symlinks.
31915 * gnulib-tool (func_usage): Document --more-symlinks.
31916 (do_copyrights): New variable.
31917 Recognize option --more-symlinks.
31918 (func_import): Don't add a copyright notice transform to
31919 sed_transform_lib_file if do_copyrights is empty.
31921 2007-07-13 Bruno Haible <bruno@clisp.org>
31923 * lib/vasnprintf.c (decimal_point_char): Define also if
31924 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31925 && !NEED_PRINTF_DIRECTIVE_A.
31926 Reported by Clemens Koller <clemens.koller@anagramm.de> via
31927 Gary V. Vaughan <gary@gnu.org>.
31929 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
31931 * lib/inttypes_.h: Undo previous change, since it was fixed
31932 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31934 2007-07-13 Bruno Haible <bruno@clisp.org>
31936 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31937 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31939 2007-07-13 Jim Meyering <jim@meyering.net>
31941 df: Don't fail for Tru64's "file-on-file mount".
31942 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31943 so we fall through and use statfs instead. Details here:
31944 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31945 Reported by Albert Chin.
31947 2007-07-13 Bruno Haible <bruno@clisp.org>
31949 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31950 * modules/configmake (License): Likewise.
31951 * modules/gettext (License): Likewise.
31952 * modules/gettext-h (License): Likewise.
31953 * modules/include_next (License): Likewise.
31954 * modules/link-warning (License): Likewise.
31955 * modules/localcharset (License): Likewise.
31956 * modules/localename (License): Likewise.
31957 * modules/lock (License): Likewise.
31958 * modules/relocatable-lib-lgpl (License): Likewise.
31959 * modules/size_max (License): Likewise.
31960 * modules/vasnprintf (License): Likewise.
31961 * modules/wchar (License): Likewise.
31962 * modules/xsize (License): Likewise.
31964 2007-07-13 Bruno Haible <bruno@clisp.org>
31966 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31967 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31969 2007-07-12 Bruno Haible <bruno@clisp.org>
31971 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31972 in the modules files.
31974 2007-07-11 Karl Berry <karl@gnu.org>
31976 * MODULES.html.sh (func_module): use
31977 sed -e '\|^'"${includefile}"'$|d'
31978 instead of /.../d, to avoid errors on $includefile's containing /.
31980 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
31982 * gnulib-tool (func_import): Avoid duplication of --avoid
31984 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31985 names to `_' in variable names.
31987 2007-07-10 Eric Blake <ebb9@byu.net>
31989 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31990 * NEWS: Document this change.
31992 2007-07-08 Bruno Haible <bruno@clisp.org>
31994 Update to Unicode 5.0.
31995 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31996 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31997 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31998 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31999 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32000 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32001 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32002 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32003 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32004 U+10A3F, U+1D242..U+1D244.
32005 (nonspacing_table_ind): Update.
32006 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32007 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32009 2007-07-08 Bruno Haible <bruno@clisp.org>
32011 Update to Unicode 5.0.
32012 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32013 code transform. Extend the name index field of unicode_name_to_code and
32014 unicode_code_to_name from 16 to 24 bits.
32015 * lib/uniname/uniname.c (unicode_character_name,
32016 unicode_name_character): Add the range 0x12xxx to the code transform.
32017 * lib/uniname/uninames.h: Regenerated.
32018 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32020 2007-07-07 Bruno Haible <bruno@clisp.org>
32022 * modules/wcwidth-tests: New file.
32023 * tests/test-wcwidth.c: New file.
32025 Work around MacOS X wcwidth() bug.
32026 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32027 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32028 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32029 original wcwidth in non-UTF-8 locales.
32030 * modules/wcwidth (Depends-on): Add localcharset, streq,
32032 * doc/functions/wcwidth.texi: Update.
32034 2007-07-07 Bruno Haible <bruno@clisp.org>
32036 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32037 (wcwidth): New declaration.
32038 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32040 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32041 here. Prepare for creating <wchar.h> unconditionally.
32042 * modules/wchar (Depends-on): Add link-warning.
32043 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32044 REPLACE_WCWIDTH, and GL_LINK_WARNING.
32045 * lib/wcwidth.h: Remove file.
32046 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32047 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32048 * modules/wcwidth (Files): Remove lib/wcwidth.h.
32049 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32050 (Include): Replace wcwidth.h with <wchar.h>.
32051 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32052 * lib/mbchar.h: Don't include wcwidth.h.
32053 * lib/mbswidth.c: Likewise.
32054 * NEWS: Mention the change.
32056 2007-07-07 Bruno Haible <bruno@clisp.org>
32058 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32059 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32060 definition with an external declaration.
32061 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32062 defined as a function. Remove AC_C_INLINE requirement.
32063 * modules/wcwidth (Files): Add lib/wcwidth.c.
32064 (Makefile.am): Remove redundant statement.
32066 2007-07-07 Bruno Haible <bruno@clisp.org>
32068 * MODULES.html.sh (Unicode string functions): Add the new modules.
32070 * tests/uniwidth/test-u32-strwidth.c: New file.
32071 * modules/uniwidth/u32-strwidth-tests: New file.
32073 * lib/uniwidth/u32-strwidth.c: New file.
32074 * modules/uniwidth/u32-strwidth: New file.
32076 * tests/uniwidth/test-u16-strwidth.c: New file.
32077 * modules/uniwidth/u16-strwidth-tests: New file.
32079 * lib/uniwidth/u16-strwidth.c: New file.
32080 * modules/uniwidth/u16-strwidth: New file.
32082 * tests/uniwidth/test-u8-strwidth.c: New file.
32083 * modules/uniwidth/u8-strwidth-tests: New file.
32085 * lib/uniwidth/u8-strwidth.c: New file.
32086 * modules/uniwidth/u8-strwidth: New file.
32088 * tests/uniwidth/test-u32-width.c: New file.
32089 * modules/uniwidth/u32-width-tests: New file.
32091 * lib/uniwidth/u32-width.c: New file.
32092 * modules/uniwidth/u32-width: New file.
32094 * tests/uniwidth/test-u16-width.c: New file.
32095 * modules/uniwidth/u16-width-tests: New file.
32097 * lib/uniwidth/u16-width.c: New file.
32098 * modules/uniwidth/u16-width: New file.
32100 * tests/uniwidth/test-u8-width.c: New file.
32101 * modules/uniwidth/u8-width-tests: New file.
32103 * lib/uniwidth/u8-width.c: New file.
32104 * modules/uniwidth/u8-width: New file.
32106 * tests/uniwidth/test-uc_width.c: New file.
32107 * modules/uniwidth/width-tests: New file.
32109 * lib/uniwidth/width.c: New file, from GNU libiconv.
32110 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32111 * modules/uniwidth/width: New file.
32113 * lib/uniwidth.h: New file, from GNU libiconv.
32114 * modules/uniwidth/base: New file.
32116 2007-07-07 Bruno Haible <bruno@clisp.org>
32118 * lib/uniname.h: New file, from GNU gettext.
32119 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32120 * lib/uniname/uninames.h: New file, from GNU gettext.
32121 * lib/uniname/uniname.c: New file, from GNU gettext.
32122 * tests/uniname/test-uninames.sh: New file.
32123 * tests/uniname/test-uninames.c: New file, from GNU gettext.
32124 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32125 * modules/uniname/base: New file.
32126 * modules/uniname/uniname: New file.
32127 * modules/uniname/uniname-tests: New file.
32128 * MODULES.html.sh (Unicode string functions): Add the new modules.
32130 2007-07-06 Bruno Haible <bruno@clisp.org>
32132 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32134 2007-07-06 Bruno Haible <bruno@clisp.org>
32136 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32137 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32138 includes <cygwin/sys_time.h> which includes <sys/select.h> which
32139 include <sys/time.h>.
32140 Reported by Eric Blake.
32142 2007-07-06 Eric Blake <ebb9@byu.net>
32144 Fix testing canonicalize on cygwin.
32145 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32146 Revert patch from 2007-06-19.
32147 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32148 canonicalize module is also in use.
32149 * tests/test-canonicalize.c: New file.
32150 * tests/test-canonicalize.sh: Likewise.
32151 * modules/canonicalize-tests: Likewise.
32153 2007-07-06 Jim Meyering <jim@meyering.net>
32155 * lib/getugroups.c (getugroups): Detect getgrent failure.
32156 Adjust comment to reflect reality: this function may return -1.
32158 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
32160 * build-aux/bootstrap (TP_URL,get_translations): Update to use
32161 the new TP address.
32163 (gnulib_mk): New variable.
32165 2007-07-05 Jim Meyering <jim@meyering.net>
32167 Don't let endgrent clobber errno, no matter how improbable.
32168 * lib/getugroups.c (getugroups): Save and restore errno around
32171 Close the group DB even when failing with 2^31 or more members.
32172 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32174 2007-07-04 Jim Meyering <jim@meyering.net>
32176 * lib/getugroups.h: New file.
32177 * lib/getugroups.c: Include "getugroups.h".
32178 Remove uses of "register" keyword.
32179 Move local variable, "cp", down into scope where used.
32180 Give "username" parameter the "const" attribute.
32181 * modules/getugroups (Files): Add lib/getugroups.h
32183 2007-07-04 Karl Berry <karl@gnu.org>
32185 * MODULES.html.sh (func_all_modules): Complete rename of
32186 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32188 2007-07-02 Bruno Haible <bruno@clisp.org>
32190 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32191 mode, when inttypes.h comes from gnulib.
32192 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32194 2007-07-02 Simon Josefsson <simon@josefsson.org>
32196 * NEWS: Mention lgpl module name change.
32198 * modules/lgpl-2.1: Renamed from lgpl.
32200 * NEWS: Mention gpl module name change.
32202 * modules/gpl-3.0: New file, based on gpl-2.0.
32204 * modules/gpl-2.0: Renamed from gpl.
32206 * modules/gpl: Fix filename, doc/gpl.texi is now found at
32209 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
32211 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32212 #define __STDC_LIMIT_MACROS temporarily while including
32213 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32214 Problem reported by Joel E. Denny in
32215 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32217 2007-07-01 Bruno Haible <bruno@clisp.org>
32219 * lib/unistdio.h: New file.
32220 * lib/unistdio/u-asnprintf.h: New file.
32221 * lib/unistdio/u-asprintf.h: New file.
32222 * lib/unistdio/u-printf-args.c: New file.
32223 * lib/unistdio/u-printf-args.h: New file.
32224 * lib/unistdio/u-printf-parse.h: New file.
32225 * lib/unistdio/u-snprintf.h: New file.
32226 * lib/unistdio/u-sprintf.h: New file.
32227 * lib/unistdio/u-vasprintf.h: New file.
32228 * lib/unistdio/u-vsnprintf.h: New file.
32229 * lib/unistdio/u-vsprintf.h: New file.
32230 * lib/unistdio/ulc-asnprintf.c: New file.
32231 * lib/unistdio/ulc-asprintf.c: New file.
32232 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32233 * lib/unistdio/ulc-printf-parse.c: New file.
32234 * lib/unistdio/ulc-snprintf.c: New file.
32235 * lib/unistdio/ulc-sprintf.c: New file.
32236 * lib/unistdio/ulc-vasnprintf.c: New file.
32237 * lib/unistdio/ulc-vasprintf.c: New file.
32238 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32239 * lib/unistdio/ulc-vsnprintf.c: New file.
32240 * lib/unistdio/ulc-vsprintf.c: New file.
32241 * lib/unistdio/u8-asnprintf.c: New file.
32242 * lib/unistdio/u8-asprintf.c: New file.
32243 * lib/unistdio/u8-printf-parse.c: New file.
32244 * lib/unistdio/u8-snprintf.c: New file.
32245 * lib/unistdio/u8-sprintf.c: New file.
32246 * lib/unistdio/u8-vasnprintf.c: New file.
32247 * lib/unistdio/u8-vasprintf.c: New file.
32248 * lib/unistdio/u8-vsnprintf.c: New file.
32249 * lib/unistdio/u8-vsprintf.c: New file.
32250 * lib/unistdio/u8-u8-asnprintf.c: New file.
32251 * lib/unistdio/u8-u8-asprintf.c: New file.
32252 * lib/unistdio/u8-u8-snprintf.c: New file.
32253 * lib/unistdio/u8-u8-sprintf.c: New file.
32254 * lib/unistdio/u8-u8-vasnprintf.c: New file.
32255 * lib/unistdio/u8-u8-vasprintf.c: New file.
32256 * lib/unistdio/u8-u8-vsnprintf.c: New file.
32257 * lib/unistdio/u8-u8-vsprintf.c: New file.
32258 * lib/unistdio/u16-asnprintf.c: New file.
32259 * lib/unistdio/u16-asprintf.c: New file.
32260 * lib/unistdio/u16-printf-parse.c: New file.
32261 * lib/unistdio/u16-snprintf.c: New file.
32262 * lib/unistdio/u16-sprintf.c: New file.
32263 * lib/unistdio/u16-vasnprintf.c: New file.
32264 * lib/unistdio/u16-vasprintf.c: New file.
32265 * lib/unistdio/u16-vsnprintf.c: New file.
32266 * lib/unistdio/u16-vsprintf.c: New file.
32267 * lib/unistdio/u16-u16-asnprintf.c: New file.
32268 * lib/unistdio/u16-u16-asprintf.c: New file.
32269 * lib/unistdio/u16-u16-snprintf.c: New file.
32270 * lib/unistdio/u16-u16-sprintf.c: New file.
32271 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32272 * lib/unistdio/u16-u16-vasprintf.c: New file.
32273 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32274 * lib/unistdio/u16-u16-vsprintf.c: New file.
32275 * lib/unistdio/u32-asnprintf.c: New file.
32276 * lib/unistdio/u32-asprintf.c: New file.
32277 * lib/unistdio/u32-printf-parse.c: New file.
32278 * lib/unistdio/u32-snprintf.c: New file.
32279 * lib/unistdio/u32-sprintf.c: New file.
32280 * lib/unistdio/u32-vasnprintf.c: New file.
32281 * lib/unistdio/u32-vasprintf.c: New file.
32282 * lib/unistdio/u32-vsnprintf.c: New file.
32283 * lib/unistdio/u32-vsprintf.c: New file.
32284 * lib/unistdio/u32-u32-asnprintf.c: New file.
32285 * lib/unistdio/u32-u32-asprintf.c: New file.
32286 * lib/unistdio/u32-u32-snprintf.c: New file.
32287 * lib/unistdio/u32-u32-sprintf.c: New file.
32288 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32289 * lib/unistdio/u32-u32-vasprintf.c: New file.
32290 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32291 * lib/unistdio/u32-u32-vsprintf.c: New file.
32292 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32293 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32294 * tests/unistdio/test-ulc-printf1.h: New file.
32295 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32296 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32297 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32298 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32299 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32300 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32301 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32302 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32303 * tests/unistdio/test-u8-asnprintf1.c: New file.
32304 * tests/unistdio/test-u8-asnprintf1.h: New file.
32305 * tests/unistdio/test-u8-printf1.h: New file.
32306 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32307 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32308 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32309 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32310 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32311 * tests/unistdio/test-u8-vasprintf1.c: New file.
32312 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32313 * tests/unistdio/test-u8-vsprintf1.c: New file.
32314 * tests/unistdio/test-u16-asnprintf1.c: New file.
32315 * tests/unistdio/test-u16-asnprintf1.h: New file.
32316 * tests/unistdio/test-u16-printf1.h: New file.
32317 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32318 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32319 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32320 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32321 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32322 * tests/unistdio/test-u16-vasprintf1.c: New file.
32323 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32324 * tests/unistdio/test-u16-vsprintf1.c: New file.
32325 * tests/unistdio/test-u32-asnprintf1.c: New file.
32326 * tests/unistdio/test-u32-asnprintf1.h: New file.
32327 * tests/unistdio/test-u32-printf1.h: New file.
32328 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32329 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32330 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32331 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32332 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32333 * tests/unistdio/test-u32-vasprintf1.c: New file.
32334 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32335 * tests/unistdio/test-u32-vsprintf1.c: New file.
32336 * modules/unistdio/base: New file.
32337 * modules/unistdio/u-printf-args: New file.
32338 * modules/unistdio/ulc-asnprintf: New file.
32339 * modules/unistdio/ulc-asprintf: New file.
32340 * modules/unistdio/ulc-fprintf: New file.
32341 * modules/unistdio/ulc-printf-parse: New file.
32342 * modules/unistdio/ulc-snprintf: New file.
32343 * modules/unistdio/ulc-sprintf: New file.
32344 * modules/unistdio/ulc-vasnprintf: New file.
32345 * modules/unistdio/ulc-vasprintf: New file.
32346 * modules/unistdio/ulc-vfprintf: New file.
32347 * modules/unistdio/ulc-vsnprintf: New file.
32348 * modules/unistdio/ulc-vsprintf: New file.
32349 * modules/unistdio/u8-asnprintf: New file.
32350 * modules/unistdio/u8-asprintf: New file.
32351 * modules/unistdio/u8-printf-parse: New file.
32352 * modules/unistdio/u8-snprintf: New file.
32353 * modules/unistdio/u8-sprintf: New file.
32354 * modules/unistdio/u8-vasnprintf: New file.
32355 * modules/unistdio/u8-vasprintf: New file.
32356 * modules/unistdio/u8-vsnprintf: New file.
32357 * modules/unistdio/u8-vsprintf: New file.
32358 * modules/unistdio/u8-u8-asnprintf: New file.
32359 * modules/unistdio/u8-u8-asprintf: New file.
32360 * modules/unistdio/u8-u8-snprintf: New file.
32361 * modules/unistdio/u8-u8-sprintf: New file.
32362 * modules/unistdio/u8-u8-vasnprintf: New file.
32363 * modules/unistdio/u8-u8-vasprintf: New file.
32364 * modules/unistdio/u8-u8-vsnprintf: New file.
32365 * modules/unistdio/u8-u8-vsprintf: New file.
32366 * modules/unistdio/u16-asnprintf: New file.
32367 * modules/unistdio/u16-asprintf: New file.
32368 * modules/unistdio/u16-printf-parse: New file.
32369 * modules/unistdio/u16-snprintf: New file.
32370 * modules/unistdio/u16-sprintf: New file.
32371 * modules/unistdio/u16-vasnprintf: New file.
32372 * modules/unistdio/u16-vasprintf: New file.
32373 * modules/unistdio/u16-vsnprintf: New file.
32374 * modules/unistdio/u16-vsprintf: New file.
32375 * modules/unistdio/u16-u16-asnprintf: New file.
32376 * modules/unistdio/u16-u16-asprintf: New file.
32377 * modules/unistdio/u16-u16-snprintf: New file.
32378 * modules/unistdio/u16-u16-sprintf: New file.
32379 * modules/unistdio/u16-u16-vasnprintf: New file.
32380 * modules/unistdio/u16-u16-vasprintf: New file.
32381 * modules/unistdio/u16-u16-vsnprintf: New file.
32382 * modules/unistdio/u16-u16-vsprintf: New file.
32383 * modules/unistdio/u32-asnprintf: New file.
32384 * modules/unistdio/u32-asprintf: New file.
32385 * modules/unistdio/u32-printf-parse: New file.
32386 * modules/unistdio/u32-snprintf: New file.
32387 * modules/unistdio/u32-sprintf: New file.
32388 * modules/unistdio/u32-vasnprintf: New file.
32389 * modules/unistdio/u32-vasprintf: New file.
32390 * modules/unistdio/u32-vsnprintf: New file.
32391 * modules/unistdio/u32-vsprintf: New file.
32392 * modules/unistdio/u32-u32-asnprintf: New file.
32393 * modules/unistdio/u32-u32-asprintf: New file.
32394 * modules/unistdio/u32-u32-snprintf: New file.
32395 * modules/unistdio/u32-u32-sprintf: New file.
32396 * modules/unistdio/u32-u32-vasnprintf: New file.
32397 * modules/unistdio/u32-u32-vasprintf: New file.
32398 * modules/unistdio/u32-u32-vsnprintf: New file.
32399 * modules/unistdio/u32-u32-vsprintf: New file.
32400 * modules/unistdio/ulc-asnprintf-tests: New file.
32401 * modules/unistdio/ulc-vasnprintf-tests: New file.
32402 * modules/unistdio/ulc-vasprintf-tests: New file.
32403 * modules/unistdio/ulc-vsnprintf-tests: New file.
32404 * modules/unistdio/ulc-vsprintf-tests: New file.
32405 * modules/unistdio/u8-asnprintf-tests: New file.
32406 * modules/unistdio/u8-vasnprintf-tests: New file.
32407 * modules/unistdio/u8-vasprintf-tests: New file.
32408 * modules/unistdio/u8-vsnprintf-tests: New file.
32409 * modules/unistdio/u8-vsprintf-tests: New file.
32410 * modules/unistdio/u16-asnprintf-tests: New file.
32411 * modules/unistdio/u16-vasnprintf-tests: New file.
32412 * modules/unistdio/u16-vasprintf-tests: New file.
32413 * modules/unistdio/u16-vsnprintf-tests: New file.
32414 * modules/unistdio/u16-vsprintf-tests: New file.
32415 * modules/unistdio/u32-asnprintf-tests: New file.
32416 * modules/unistdio/u32-vasnprintf-tests: New file.
32417 * modules/unistdio/u32-vasprintf-tests: New file.
32418 * modules/unistdio/u32-vsnprintf-tests: New file.
32419 * modules/unistdio/u32-vsprintf-tests: New file.
32420 * MODULES.html.sh (Unicode string functions): Add the new modules.
32422 2007-07-01 Bruno Haible <bruno@clisp.org>
32424 * lib/sprintf.c (sprintf): Limit the available length estimation,
32425 to avoid address wraparound.
32426 * lib/vsprintf.c (vsprintf): Likewise.
32427 * modules/sprintf-posix (Dependencies): Add stdint.
32428 * modules/vsprintf-posix (Dependencies): Likewise.
32430 2007-07-01 Bruno Haible <bruno@clisp.org>
32432 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32433 Windows PATH as well. Conservative double-quoting. Comments.
32435 2007-07-01 Bruno Haible <bruno@clisp.org>
32436 Eric Blake <ebb9@byu.net>
32437 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32439 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32440 empty components in $PATH, denoting '.'.
32442 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32444 * gnulib-tool: Fix indentation.
32445 (func_create_megatestdir): Likewise.
32446 Report by Bruno Haible.
32448 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32450 Sync from Automake.
32451 * build-aux/gnupload: Fix shell portability issues with for loops.
32452 Report by Karl Berry.
32454 2007-06-29 Simon Josefsson <simon@josefsson.org>
32456 * build-aux/maint.mk (POURL): Use translationproject.org.
32458 2007-06-27 Simon Josefsson <simon@josefsson.org>
32459 Bruno Haible <bruno@clisp.org>
32461 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32462 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32463 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32464 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32465 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32467 2007-06-27 Bruno Haible <bruno@clisp.org>
32469 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32470 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32472 2007-06-26 Karl Berry <karl@gnu.org>
32474 * MODULES.html.sh: remove xreadlink-with-size.
32476 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32478 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32479 method that I hope also handles the double-include problem noted
32481 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32483 2007-06-23 Bruno Haible <bruno@clisp.org>
32485 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32486 Don't let the 'mostlyclean' target fail if the last subdirectory could
32488 Reported by Karl Berry.
32490 2007-06-23 Bruno Haible <bruno@clisp.org>
32492 * gnulib-tool (echo): Add a speedier workaround for ksh.
32493 * tests/test-echo.sh: Likewise.
32495 2007-06-23 Bruno Haible <bruno@clisp.org>
32497 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32498 * tests/test-echo.sh: Likewise.
32500 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32502 * gnulib-tool (IFS): Initialize early, so we don't set it to
32504 (self_abspathname): Rewrite algorithm to set it, reindent.
32505 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32506 (func_create_megatestdir): Merge some sed scripts.
32508 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32510 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32511 exposed by Sun Studio 11 cc on Solaris 8.
32513 2007-06-22 Bruno Haible <bruno@clisp.org>
32515 * gnulib-tool (echo): Ensure the echo primitive does not interpret
32517 * tests/test-echo.sh: New file.
32519 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32521 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32522 simplify `sed_replace_build_aux' scripts, they are portable but
32523 echoing them with `echo' is not.
32524 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32526 2007-06-21 Karl Berry <karl@gnu.org>
32528 * config/srclist.txt: guess we can't handle the licenses via
32529 srclist at the moment.
32531 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
32533 * MODULES.html.sh: Add include_next.
32534 * modules/include_next: New file.
32536 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
32538 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32540 (gl_CHECK_NEXT_HEADERS): New macro.
32541 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32542 the obsolescent gl_ABSOLUTE_HEADER.
32543 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32544 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32545 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32546 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32547 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32548 * m4/math_h.m4 (gl_MATH_H): Likewise.
32549 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32550 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32551 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32552 * m4/stdint.m4 (gl_STDINT_H): Likewise.
32553 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32554 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32555 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32556 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32557 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32558 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32559 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32560 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32561 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32562 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32563 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32564 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32565 * m4/inttypes.m4 (gl_INTTYPES_H): Define
32566 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32567 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32568 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32569 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32570 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32571 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32572 * lib/float_.h: Likewise.
32573 * lib/inttypes_.h: Likewise.
32574 * lib/math_.h: Likewise.
32575 * lib/search_.h: Likewise.
32576 * lib/signal_.h: Likewise.
32577 * lib/stdint_.h: Likewise.
32578 * lib/stdio_.h: Likewise.
32579 * lib/stdlib_.h: Likewise.
32580 * lib/string_.h: Likewise.
32581 * lib/sys_stat_.h: Likewise.
32582 * lib/sys_time_.h: Likewise.
32583 * lib/time_.h: Likewise.
32584 * lib/unistd_.h: Likewise.
32585 * lib/wchar_.h: Likewise.
32586 * lib/wctype_.h: Likewise.
32587 * lib/dirent_.h: Likewise.
32588 * lib/iconv_.h: Likewise.
32589 * lib/locale_.h: Likewise.
32590 * lib/netinet_in_.h: Likewise.
32591 * lib/sys_select_.h: Likewise.
32592 * lib/sys_socket_.h: Likewise.
32593 * lib/sysexits_.h: Likewise.
32594 * modules/fcntl (Depends-on): Depend on include_next, not
32596 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32597 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32598 * modules/fchdir: Likewise.
32599 * modules/float: Likewise.
32600 * modules/iconv_open: Likewise.
32601 * modules/inttypes: Likewise.
32602 * modules/locale: Likewise.
32603 * modules/math: Likewise.
32604 * modules/netinet_in: Likewise.
32605 * modules/search: Likewise.
32606 * modules/signal: Likewise.
32607 * modules/stdint: Likewise.
32608 * modules/stdio: Likewise.
32609 * modules/stdlib: Likewise.
32610 * modules/string: Likewise.
32611 * modules/sys_select: Likewise.
32612 * modules/sys_socket: Likewise.
32613 * modules/sys_stat: Likewise.
32614 * modules/sys_time: Likewise.
32615 * modules/sysexits: Likewise.
32616 * modules/time: Likewise.
32617 * modules/unistd: Likewise.
32618 * modules/wchar: Likewise.
32619 * modules/wctype: Likewise.
32620 * modules/sys_stat: Change maintainer to "all".
32621 * modules/unistd: Likewise.
32623 2007-06-20 Karl Berry <karl@gnu.org>
32625 * config/srclist.txt: track www changes in license files.
32627 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
32629 * build-aux/bootstrap: Remove stray dot.
32630 Make sure build_aux settings are honored when linking
32631 gnulib_extra_files.
32633 2007-06-19 Eric Blake <ebb9@byu.net>
32635 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32636 Allow compilation on cygwin.
32638 2007-06-19 Jim Meyering <jim@meyering.net>
32640 xreadlink-with-size: Remove module. No longer used.
32641 Ex-callers now use xreadlink or mreadlink-with-size.
32642 * modules/xreadlink-with-size: Remove module.
32643 * lib/xreadlink-with-size.c: Remove file.
32644 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32645 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
32646 just before the function definition *is* accurate.
32648 Eliminate one way canonicalize_filename_mode could exit.
32649 * lib/canonicalize.c (canonicalize_filename_mode):
32650 Use mreadlink_with_size, not xreadlink_with_size.
32652 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
32654 Detect porting problems to FreeBSD/arm, which has time_t wider than
32655 long int. Original problem reported for GNU diff by Xin Li in
32656 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32657 * modules/getdate (Depends-on): Add intprops, verify.
32658 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
32659 is an integer type no wider than long int.
32661 2007-06-18 Jim Meyering <jim@meyering.net>
32663 New module: mreadlink-with-size.
32664 * MODULES.html.sh: Add mreadlink-with-size.
32665 * modules/mreadlink-with-size: New module
32666 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32667 not xreadlink-with-size.
32668 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32670 2007-06-16 Bruno Haible <bruno@clisp.org>
32672 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32673 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32674 Reported by Gary V. Vaughan <gary@gnu.org>.
32676 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
32678 Revamp lchown so that it lives in unistd.h where it belongs.
32679 * lib/lchown.h: Remove.
32680 * lib/dirchownmod.c: Don't include lib/lchown.h.
32681 * lib/fchownat.c: Likewise.
32682 * lib/openat.c: Likewise.
32683 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32684 does not follow symlinks.
32685 (EOPNOTSUPP): Define if not defined.
32686 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32688 (lchown): New decl.
32689 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32690 Do not check for lchown decl.
32691 Set REPLACE_LCHOWN.
32692 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32694 * modules/chown: Make it clear it follows symlinks.
32695 * modules/lchown: Make it clear it doesn't follow symlinks.
32696 (Files): Remove lib/lchown.h
32697 (Depends-on): Add unistd.
32698 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32699 (Include): Include <unistd.h>, not "lchown.h".
32700 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32703 2007-06-15 Jim Meyering <jim@meyering.net>
32705 Change license (GPL to LGPL) of fsusage and dependents.
32706 * modules/fsusage (License): Change to LGPL.
32707 * modules/full-read (License): Likewise.
32708 * modules/full-write (License): Likewise.
32709 * modules/safe-read (License): Likewise.
32710 * modules/safe-write (License): Likewise.
32712 2007-06-14 Ben Pfaff <blp@gnu.org>
32714 Missing part of allocsa -> malloca transition.
32715 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32718 2007-06-12 Bruno Haible <bruno@clisp.org>
32720 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32721 to ia64, x86_64, i386.
32722 Reported by Eric Blake.
32724 2007-06-12 Bruno Haible <bruno@clisp.org>
32726 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32727 cross-compiling to x86_64.
32729 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
32731 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32732 glitch reported by Ralf Wildenhues in
32733 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32735 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32738 2007-06-11 Bruno Haible <bruno@clisp.org>
32740 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32741 replacement string.
32742 Reported by Eric Blake.
32744 2007-06-10 Bruno Haible <bruno@clisp.org>
32746 Prepare vasnprintf code for use with Unicode strings.
32747 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32748 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32750 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32751 a_u32_string variants.
32752 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32753 * lib/printf-args.c: Don't include config.h and the specification
32754 header if PRINTF_FETCHARGS is already defined.
32755 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32756 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32757 TYPE_U16_STRING, TYPE_U32_STRING.
32758 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32759 u16_directive, u16_directives, u32_directive, u32_directives): New
32761 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32763 * lib/printf-parse.c: Don't include config.h and the specification
32764 header if PRINTF_PARSE is already defined. Eliminate the set of
32765 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32766 them now. Include c-ctype.h.
32767 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32768 directive and CHAR_T_ONLY_ASCII.
32769 * lib/vasnprintf.c: Don't include config.h and the specification header
32770 if VASNPRINTF is already defined.
32771 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32772 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32773 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32774 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32775 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32776 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32778 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32779 pad_ourselves also in this case, with the 'c' and 's' directives, and
32780 with a different notion of "width".
32781 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32783 2007-06-10 Bruno Haible <bruno@clisp.org>
32785 * modules/unistr/u32-mbsnlen: New file.
32786 * lib/unistr/u32-mbsnlen.c: New file.
32788 * modules/unistr/u16-mbsnlen: New file.
32789 * lib/unistr/u16-mbsnlen.c: New file.
32791 * modules/unistr/u8-mbsnlen: New file.
32792 * lib/unistr/u8-mbsnlen.c: New file.
32794 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32797 2007-06-10 Bruno Haible <bruno@clisp.org>
32799 * lib/string_.h (mbsnlen): New declaration.
32800 * lib/mbsnlen.c: New file.
32801 * m4/mbsnlen.m4: New file.
32802 * modules/mbsnlen: New file.
32803 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32804 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32805 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32807 2007-06-10 Bruno Haible <bruno@clisp.org>
32809 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32811 2007-06-10 Bruno Haible <bruno@clisp.org>
32813 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32814 * lib/mbuiter.h: Likewise.
32816 2007-06-10 Bruno Haible <bruno@clisp.org>
32818 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32821 2007-06-10 Karl Berry <karl@gnu.org>
32823 * config/srclist.txt: remove gettext entries, Bruno prefers
32824 to update individually.
32826 2007-06-10 Bruno Haible <bruno@clisp.org>
32828 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32829 'maxlen'. Ensure only length + width bytes are allocated, not
32830 length + 1 + width.
32832 2007-06-09 Bruno Haible <bruno@clisp.org>
32834 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32835 (CHAR_T): Remove macro.
32836 (VASNPRINTF): Update.
32838 2007-06-09 Bruno Haible <bruno@clisp.org>
32840 * MODULES.html.sh (Unicode string functions): Add the new modules.
32842 * modules/uniconv/u32-conv-to-enc: New file.
32843 * lib/uniconv/u32-conv-to-enc.c: New file.
32844 * modules/uniconv/u32-conv-to-enc-tests: New file.
32845 * tests/uniconv/test-u32-conv-to-enc.c: New file.
32847 * modules/uniconv/u16-conv-to-enc: New file.
32848 * lib/uniconv/u16-conv-to-enc.c: New file.
32849 * lib/uniconv/u-conv-to-enc.h: New file.
32850 * modules/uniconv/u16-conv-to-enc-tests: New file.
32851 * tests/uniconv/test-u16-conv-to-enc.c: New file.
32853 * modules/uniconv/u8-conv-to-enc: New file.
32854 * lib/uniconv/u8-conv-to-enc.c: New file.
32855 * modules/uniconv/u8-conv-to-enc-tests: New file.
32856 * tests/uniconv/test-u8-conv-to-enc.c: New file.
32858 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32859 u32_conv_to_encoding): New declarations.
32861 2007-06-09 Bruno Haible <bruno@clisp.org>
32863 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32865 2007-06-09 Bruno Haible <bruno@clisp.org>
32867 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32868 * modules/malloca: Renamed from modules/allocsa, updated.
32869 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32870 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32871 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32872 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32873 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32874 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32875 * modules/xmalloca: Renamed from modules/xallocsa, updated.
32876 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32877 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32878 * modules/c-strcasestr (Depends-on): Update.
32879 * lib/c-strcasestr.c: Update.
32880 * modules/c-strstr (Depends-on): Update.
32881 * lib/c-strstr.c: Update.
32882 * modules/canonicalize-lgpl (Depends-on): Update.
32883 * lib/canonicalize-lgpl.c: Update.
32884 * modules/clean-temp (Depends-on): Update.
32885 * lib/clean-temp.c: Update.
32886 * modules/csharpcomp (Depends-on): Update.
32887 * lib/csharpcomp.c: Update.
32888 * modules/csharpexec (Depends-on): Update.
32889 * lib/csharpexec.c: Update.
32890 * modules/javacomp (Depends-on): Update.
32891 * lib/javacomp.c: Update.
32892 * modules/javaexec (Depends-on): Update.
32893 * lib/javaexec.c: Update.
32894 * modules/mbscasestr (Depends-on): Update.
32895 * lib/mbscasestr.c: Update.
32896 * modules/mbsstr (Depends-on): Update.
32897 * lib/mbsstr.c: Update.
32898 * modules/setenv (Depends-on): Update.
32899 * lib/setenv.c: Update.
32900 * modules/strcasestr (Depends-on): Update.
32901 * lib/strcasestr.c: Update.
32902 * modules/striconveha (Depends-on): Update.
32903 * lib/striconveha.c: Update.
32904 * modules/relocatable-prog-wrapper (Files): Update.
32905 * lib/relocwrapper.c: Update.
32906 * build-aux/install-reloc: Update.
32907 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32909 2007-06-08 Bruno Haible <bruno@clisp.org>
32912 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32913 * lib/fpurge.c (fpurge): Likewise.
32914 * lib/freading.c (freading): Likewise.
32915 * lib/fseeko.c (rpl_fseeko): Likewise.
32916 * lib/fseterr.c (fseterr): Likewise.
32917 * lib/fwriting.c (fwriting): Likewise.
32918 * tests/test-fflush.c (main): Avoid a failure on uClibc.
32920 2007-06-08 Bruno Haible <bruno@clisp.org>
32922 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32923 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32924 * modules/gettext (Files): Add m4/intlmacosx.m4.
32926 2007-06-07 Bruno Haible <bruno@clisp.org>
32928 * modules/localename-tests: New file.
32929 * tests/test-localename.c: New file.
32931 New module 'localename'.
32932 * lib/localename.h: New file.
32933 * lib/localename.c: New file, from GNU gettext.
32934 * m4/localename.m4: New file.
32935 * modules/localename: New file.
32937 2007-06-07 Bruno Haible <bruno@clisp.org>
32939 Work around the lack of <wchar.h> on some builds of uClibc.
32940 * doc/headers/wchar.texi: Update.
32941 * lib/wchar_.h: Include <wchar.h> only if it exists.
32942 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32943 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32944 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32946 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32947 * modules/mbfile (Depends-on): Add wchar.
32948 * modules/mbiter (Depends-on): Likewise.
32949 * modules/mbuiter (Depends-on): Likewise.
32950 Reported by Simon Josefsson.
32952 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
32954 Work around problem reported by Steven M. Schweda in
32955 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32956 Tru64 5.1B with the Compaq compiler environment installed declares
32957 an 'isblank' function but does not define it in the C library.
32958 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32959 * lib/regex_internal.h (isblank): Likewise.
32960 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32961 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32963 2007-06-05 Bruno Haible <bruno@clisp.org>
32965 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32967 * modules/printf-safe: New file.
32968 * modules/fprintf-posix (Depends-on): Add printf-safe.
32969 * modules/printf-posix (Depends-on): Likewise.
32970 * modules/snprintf-posix (Depends-on): Likewise.
32971 * modules/sprintf-posix (Depends-on): Likewise.
32972 * modules/vasnprintf-posix (Depends-on): Likewise.
32973 * modules/vasprintf-posix (Depends-on): Likewise.
32974 * modules/vfprintf-posix (Depends-on): Likewise.
32975 * modules/vprintf-posix (Depends-on): Likewise.
32976 * modules/vsnprintf-posix (Depends-on): Likewise.
32977 * modules/vsprintf-posix (Depends-on): Likewise.
32978 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32979 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32980 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32981 "no" on i386, x86_64, ia64.
32982 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32983 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32984 on i386, x86_64, ia64.
32985 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32986 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32987 on i386, x86_64, ia64.
32988 * tests/test-vasnprintf-posix.c: Include float.h.
32989 (LDBL80_WORDS): New macro.
32990 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32991 on i386, x86_64, ia64.
32992 * tests/test-vasprintf-posix.c: Include float.h.
32993 (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-snprintf-posix.c: Include float.h.
32997 * tests/test-sprintf-posix.c: Likewise.
32998 * tests/test-vsnprintf-posix.c: Likewise.
32999 * tests/test-vsprintf-posix.c: Likewise.
33001 2007-06-05 Bruno Haible <bruno@clisp.org>
33003 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33004 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33005 non-IEEE numbers on i386, x86_64, ia64.
33006 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33007 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33008 * tests/test-isnanl.h: Include float.h.
33009 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33011 2007-06-05 Bruno Haible <bruno@clisp.org>
33013 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33014 also the %a / %A. Handle the %a / %A code before this extra handling.
33016 2007-06-05 Bruno Haible <bruno@clisp.org>
33018 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33019 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33021 2007-06-05 Bruno Haible <bruno@clisp.org>
33023 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33024 typo in variable name.
33026 2007-06-05 Eric Blake <ebb9@byu.net>
33028 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33029 Reported by Simon Josefsson.
33031 2007-06-04 Bruno Haible <bruno@clisp.org>
33033 Avoid test failures on some PowerPC platforms.
33034 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33035 Define differently for PowerPC.
33036 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33037 Reported by Gary V. Vaughan <gary@gnu.org>.
33039 2007-06-02 Bruno Haible <bruno@clisp.org>
33041 Fix test-stdint failure on FreeBSD/ia64.
33042 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33043 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33044 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33045 * doc/headers/stdint.texi: Update.
33047 2007-06-01 Bruno Haible <bruno@clisp.org>
33049 * tests/test-binary-io.c (main): Pass a third argument to open().
33050 Reported by Gary V. Vaughan <gary@gnu.org>.
33052 2007-06-01 Bruno Haible <bruno@clisp.org>
33054 * doc/functions/frexpl.texi: Update for mingw.
33056 2007-06-01 Bruno Haible <bruno@clisp.org>
33058 * tests/test-lseek.c (main): Disable test of errno for invalid third
33060 * doc/functions/lseek.texi: Update.
33061 Reported by Gary V. Vaughan <gary@gnu.org>.
33063 2007-05-28 Bruno Haible <bruno@clisp.org>
33065 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33067 2007-05-31 Eric Blake <ebb9@byu.net>
33069 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33072 2007-05-30 Eric Blake <ebb9@byu.net>
33073 and Bruno Haible <bruno@clisp.org>
33075 Work around mingw test failures exposed by m4-1.4.9b.
33076 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33077 * tests/test-unistd.c: Disable uid_t and git_t tests for the
33080 2007-05-30 Bruno Haible <bruno@clisp.org>
33082 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33083 assuming that they are closed. Needed on HP-UX 11.
33085 2007-05-29 Bruno Haible <bruno@clisp.org>
33087 Fix a problem with #include_next.
33088 * lib/dirent_.h: Split the double-inclusion guard.
33089 * lib/fcntl_.h: Likewise.
33090 * lib/float_.h: Likewise.
33091 * lib/iconv_.h: Likewise.
33092 * lib/inttypes_.h: Likewise.
33093 * lib/locale_.h: Likewise.
33094 * lib/math_.h: Likewise.
33095 * lib/netinet_in_.h: Likewise.
33096 * lib/search_.h: Likewise.
33097 * lib/signal_.h: Likewise.
33098 * lib/stdint_.h: Likewise.
33099 * lib/stdio_.h: Likewise.
33100 * lib/stdlib_.h: Likewise.
33101 * lib/string_.h: Likewise.
33102 * lib/sys_select_.h: Likewise.
33103 * lib/sys_socket_.h: Likewise.
33104 * lib/sys_stat_.h: Likewise.
33105 * lib/sys_time_.h: Likewise.
33106 * lib/sysexits_.h: Likewise.
33107 * lib/time_.h: Likewise.
33108 * lib/unistd_.h: Likewise.
33109 * lib/wchar_.h: Likewise.
33110 * lib/wctype_.h: Likewise.
33112 2007-05-29 Bruno Haible <bruno@clisp.org>
33114 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33117 2007-05-29 Bruno Haible <bruno@clisp.org>
33119 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33121 Reported by Eric Blake.
33123 2007-05-29 Bruno Haible <bruno@clisp.org>
33125 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33128 2007-05-29 Eric Blake <ebb9@byu.net>
33129 Bruno Haible <bruno@clisp.org>
33131 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33134 2007-05-28 Eric Blake <ebb9@byu.net>
33136 * modules/closein-tests (test_closein_LDADD): Support test on
33137 cygwin with libtool.
33139 2007-05-28 Bruno Haible <bruno@clisp.org>
33141 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33142 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33143 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33144 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33145 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33146 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33147 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33148 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33149 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33151 2007-05-28 Eric Blake <ebb9@byu.net>
33153 Unconditionally include <config.h> in unit tests.
33154 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33155 * tests/test-allocsa.c, tests/test-arcfour.c,
33156 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33157 tests/test-array_list.c, tests/test-array_oset.c,
33158 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33159 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33160 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33161 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33162 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33163 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33164 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33165 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33166 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33167 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33168 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33169 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33170 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33171 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33172 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33173 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33174 test-md5.c, test-memmem.c, test-printf-posix.c,
33175 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33176 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33177 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33178 test-strcasestr.c, test-striconv.c, test-striconveh.c,
33179 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33180 test-vasnprintf-posix2.c, test-vasnprintf.c,
33181 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33182 test-vfprintf-posix.c, test-vprintf-posix.c,
33183 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33184 test-xvasprintf.c: Likewise.
33186 2007-05-28 Bruno Haible <bruno@clisp.org>
33188 * gnulib-tool (func_import): Remember the --with-tests command-line
33189 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33190 Reported by Eric Blake.
33192 2007-05-28 Bruno Haible <bruno@clisp.org>
33194 * modules/ftell-tests: New file.
33195 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33196 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33198 * lib/ftell.c: New file.
33199 * modules/ftell: New file.
33200 * m4/ftell.m4: New file.
33201 * doc/functions/ftell.texi: Update.
33202 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33204 * lib/stdio_.h (rpl_ftell): New declaration.
33205 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33208 2007-05-28 Eric Blake <ebb9@byu.net>
33210 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33212 2007-05-28 Bruno Haible <bruno@clisp.org>
33214 * modules/fseek-tests: New file.
33215 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33216 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33218 * lib/fseek.c: New file.
33219 * modules/fseek: New file.
33220 * m4/fseek.m4: New file.
33221 * doc/functions/fseek.texi: Update.
33222 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33224 * lib/stdio_.h (rpl_fseek): New declaration.
33225 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33228 2007-05-28 Bruno Haible <bruno@clisp.org>
33230 * lib/stdio_.h (fflush): More comments.
33232 2007-05-28 Bruno Haible <bruno@clisp.org>
33234 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33237 2007-05-28 Eric Blake <ebb9@byu.net>
33239 Improve lseek module.
33240 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33241 * lib/unistd_.h (lseek): Scale back link warning message.
33242 * tests/test-lseek.c: Beef up test.
33243 * tests/test-lseek.sh: Exercise more facets of lseek.
33244 Reported by Bruno Haible.
33246 2007-05-28 Bruno Haible <bruno@clisp.org>
33248 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33251 2007-05-27 Bruno Haible <bruno@clisp.org>
33253 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33255 2007-05-27 Bruno Haible <bruno@clisp.org>
33257 * modules/openmp: New file.
33258 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33261 2007-05-26 Bruno Haible <bruno@clisp.org>
33263 * modules/chdir-long (Depends-on): Add fchdir.
33264 * modules/chdir-safer (Depends-on): Likewise.
33265 * modules/fts (Depends-on): Likewise.
33266 * modules/fts-lgpl (Depends-on): Likewise.
33267 * modules/openat (Depends-on): Likewise.
33268 * modules/savewd (Depends-on): Likewise.
33270 2007-05-24 Eric Blake <ebb9@byu.net>
33272 Fix lseek on mingw.
33273 * modules/lseek: New module.
33274 * m4/lseek.m4: New file.
33275 * lib/lseek.c: New file.
33276 * modules/lseek-tests: New file.
33277 * tests/test-lseek.c: New file.
33278 * tests/test-lseek.sh: New file.
33279 * MODULES.html.sh: Document lseek module.
33280 * modules/fflush (Depends-on): Add lseek, fseeko.
33281 * modules/fseeko (Depends-on): Likewise.
33282 * modules/ftello (Depends-on): Likewise.
33283 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33285 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33287 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33288 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33289 * lib/ftello.c (rpl_ftello): Likewise.
33290 * tests/test-fseeko.c (main): Test this.
33291 * tests/test-fseeko.sh: Likewise.
33292 * tests/test-ftello.c (main): Likewise.
33293 * tests/test-ftello.sh: Likewise.
33294 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33295 implies replacing fseek.
33296 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33298 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33299 * modules/unistd (Makefile.am): Likewise.
33300 * lib/unistd_.h (lseek): Declare a replacement.
33301 * doc/functions/lseek.texi (lseek): Document this fix.
33302 * doc/functions/fseek.texi (fseek): Likewise.
33303 * doc/functions/ftell.texi (ftell): Likewise.
33305 2007-05-24 Bruno Haible <bruno@clisp.org>
33307 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33308 in the printed representation of a NaN.
33309 * tests/test-vasprintf-posix.c (test_function): Likewise.
33310 * tests/test-snprintf-posix.h (test_function): Likewise.
33311 * tests/test-sprintf-posix.h (test_function): Likewise.
33312 Reported by Eric Blake.
33314 2007-05-23 Eric Blake <ebb9@byu.net>
33316 Fix fseeko/ftello on cygwin 1.5.24.
33317 * doc/functions/fseeko.texi (fseeko): Document the fix.
33318 * doc/functions/ftello.texi (ftello): Document the fix.
33319 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33320 * doc/functions/stdout.text (stdout): New file.
33321 * doc/functions/stderr.text (stderr): New file.
33322 * doc/gnulib.texi (Function Substitutes): Use new files.
33323 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33325 * tests/test-ftello.c (main): Likewise for ftello.
33326 * tests/test-fseeko.sh: New file.
33327 * tests/test-ftello.sh: New file.
33328 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33329 with seekable stdin.
33330 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33331 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33332 (gl_REPLACE_FSEEKO): New macro.
33333 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33334 * modules/fseeko (Files): Distribute fseeko.c.
33335 * modules/ftello (Files): Distribute ftello.c.
33336 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33338 * lib/ftello.c (rpl_ftello): New file.
33339 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33341 (gl_STDIN_LARGE_OFFSET): New macro.
33342 * modules/stdio (Makefile.am): Perform the replacement.
33343 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33345 2007-05-23 Bruno Haible <bruno@clisp.org>
33347 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33348 GNULIB_POSIXCHECK is defined.
33350 2007-05-21 Bruno Haible <bruno@clisp.org>
33352 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33353 Check also the output for NaN arguments. When cross-compiling, guess
33355 * lib/vasnprintf.c: Update comments.
33356 * tests/test-vasnprintf-posix.c (strisnan): New function.
33357 (test_function): Use it.
33358 * tests/test-vasprintf-posix.c (strisnan): New function.
33359 (test_function): Use it.
33360 * tests/test-snprintf-posix.h (strisnan): New function.
33361 (test_function): Use it.
33362 * tests/test-sprintf-posix.h (strisnan): New function.
33363 (test_function): Use it.
33364 Reported by Eric Blake.
33366 2007-05-20 Bruno Haible <bruno@clisp.org>
33368 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33369 numbers that fails on BeOS.
33370 * doc/functions/frexpl.texi: Update.
33372 2007-05-20 Jim Meyering <jim@meyering.net>
33374 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33375 forced upon us by glibc-2.6.
33377 2007-05-20 Bruno Haible <bruno@clisp.org>
33379 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33380 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33381 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33382 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33383 NEED_PRINTF_INFINITE.
33384 (is_infinitel): New function.
33385 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33386 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33387 gl_PREREQ_VASNPRINTF_INFINITE.
33388 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33389 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33390 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33391 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33392 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33393 gl_PREREQ_VASNPRINTF_INFINITE.
33394 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33395 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33396 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33397 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33398 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33399 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33400 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33401 * doc/functions/fprintf.texi: Update.
33402 * doc/functions/printf.texi: Update.
33403 * doc/functions/snprintf.texi: Update.
33404 * doc/functions/sprintf.texi: Update.
33405 * doc/functions/vfprintf.texi: Update.
33406 * doc/functions/vprintf.texi: Update.
33407 * doc/functions/vsnprintf.texi: Update.
33408 * doc/functions/vsprintf.texi: Update.
33410 2007-05-20 Bruno Haible <bruno@clisp.org>
33412 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33413 was not found in libc.
33414 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33416 2007-05-20 Bruno Haible <bruno@clisp.org>
33418 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33419 printed as "-nan" instead of "nan".
33420 * tests/test-vasprintf-posix.c (test_function): Likewise.
33421 * tests/test-snprintf-posix.h (test_function): Likewise.
33422 * tests/test-sprintf-posix.h (test_function): Likewise.
33423 Needed for HP-UX 11.
33425 2007-05-20 Jim Meyering <jim@meyering.net>
33427 Fix buggy test for the fchownat-deref bug.
33428 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33429 symlink required for the run-test. Without it, this test would
33430 always declare that fchownat doesn't work, and client code would
33431 unnecessarily use the replacement function with fixed libc.
33432 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33433 Reported by Greg Schafer.
33435 2007-05-19 Bruno Haible <bruno@clisp.org>
33437 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33438 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33439 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33440 Needed for IRIX 6.5 and Solaris 2.5.1.
33442 2007-05-19 Bruno Haible <bruno@clisp.org>
33444 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33445 (test_function): Skip tests involving -0.0 on platforms where
33447 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33448 (test_function): Skip tests involving -0.0 on platforms where
33450 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33451 (test_function): Skip tests involving -0.0 on platforms where
33453 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33454 (test_function): Skip tests involving -0.0 on platforms where
33456 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33458 * tests/test-printf-posix.h (test_function): Likewise.
33459 * tests/test-printf-posix.output: Remove all -0.0 related results.
33460 Needed for IRIX 6.5.
33462 2007-05-19 Bruno Haible <bruno@clisp.org>
33464 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33465 printed as "nan0x7fffffff" instead of "nan".
33466 * tests/test-vasprintf-posix.c (test_function): Likewise.
33467 * tests/test-snprintf-posix.h (test_function): Likewise.
33468 * tests/test-sprintf-posix.h (test_function): Likewise.
33469 * tests/test-fprintf-posix.h (NaN): Remove macro.
33470 (test_function): Remove all NaN related tests.
33471 * tests/test-printf-posix.h (NaN): Remove macro.
33472 (test_function): Remove all NaN related tests.
33473 * tests/test-printf-posix.output: Remove all NaN related results.
33474 Needed for IRIX 6.5.
33476 2007-05-19 Bruno Haible <bruno@clisp.org>
33478 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33479 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33481 2007-05-19 Bruno Haible <bruno@clisp.org>
33483 * lib/float_.h: New file.
33484 * m4/float_h.m4: New file.
33485 * modules/float: New file.
33486 * modules/isnanl (Dependencies): Add float.
33487 * modules/isnanl-nolibm (Dependencies): Likewise.
33488 * modules/mathl (Dependencies): Likewise.
33489 * modules/printf-frexpl (Dependencies): Likewise.
33490 * modules/signbit (Dependencies): Likewise.
33491 * modules/vasnprintf (Dependencies): Likewise.
33492 * doc/headers/float.texi: Update.
33494 2007-05-19 Jim Meyering <jim@meyering.net>
33496 * lib/utimens.c (gl_futimens): Rename from futimens,
33497 now that glibc-2.6 declares futimens.
33498 * lib/utimens.h: Likewise.
33500 2007-05-19 Bruno Haible <bruno@clisp.org>
33502 Avoid test failures on mingw.
33503 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33504 * tests/test-printf-posix.sh: Likewise.
33505 * tests/test-vfprintf-posix.sh: Likewise.
33506 * tests/test-vprintf-posix.sh: Likewise.
33508 2007-05-19 Bruno Haible <bruno@clisp.org>
33510 Fix *printf result for NaN, Inf, -0.0 on mingw.
33511 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33512 * lib/vasnprintf.c: Include math.h and isnan.h.
33513 (is_infinite_or_zero): New function.
33514 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33515 values in the %f, %F, %e, %E, %g, %G directives.
33516 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33517 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33518 gl_PRINTF_INFINITE and test its result. Invoke
33519 gl_PREREQ_VASNPRINTF_INFINITE.
33520 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33521 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33522 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33523 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33524 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33525 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33526 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33527 * doc/functions/fprintf.texi: Update.
33528 * doc/functions/printf.texi: Update.
33529 * doc/functions/snprintf.texi: Update.
33530 * doc/functions/sprintf.texi: Update.
33531 * doc/functions/vfprintf.texi: Update.
33532 * doc/functions/vprintf.texi: Update.
33533 * doc/functions/vsnprintf.texi: Update.
33534 * doc/functions/vsprintf.texi: Update.
33536 2007-05-19 Bruno Haible <bruno@clisp.org>
33538 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33539 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33540 Instead of multiplying with 10^k, set extra_zeroes to k.
33541 (scale10_round_long_double): Remove function.
33543 2007-05-18 Bruno Haible <bruno@clisp.org>
33545 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33546 introduced on 2007-05-06.
33548 2007-05-18 Bruno Haible <bruno@clisp.org>
33550 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33552 * tests/test-vasprintf-posix.c (test_function): Likewise.
33553 * tests/test-snprintf-posix.h (test_function): Likewise.
33554 * tests/test-sprintf-posix.h (test_function): Likewise.
33556 2007-05-18 Bruno Haible <bruno@clisp.org>
33558 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33559 (strmatch): New function.
33560 (test_function): Test the %f directive on numbers of various exponents.
33561 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33562 (strmatch): New function.
33563 (test_function): Test the %f directive on numbers of various exponents.
33564 * tests/test-snprintf-posix.h (strmatch): New function.
33565 (test_function): Test the %f directive on numbers of various exponents.
33566 * tests/test-sprintf-posix.h (strmatch): New function.
33567 (test_function): Test the %f directive on numbers of various exponents.
33568 * tests/test-snprintf-posix.c (SIZEOF): New macro.
33569 * tests/test-sprintf-posix.c (SIZEOF): New macro.
33570 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33571 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33573 2007-05-18 Bruno Haible <bruno@clisp.org>
33575 Add support for 'long double' number output.
33576 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33577 * lib/vasnprintf.c: Include math.h and float+.h.
33578 (mp_limb_t): New type.
33579 (GMP_LIMB_BITS): New macro.
33580 (mp_twolimb_t): New type.
33581 (GMP_TWOLIMB_BITS): New macro.
33583 (multiply, divide, convert_to_decimal, decode_long_double,
33584 scale10_round_long_double, scale10_round_decimal_long_double,
33585 floorlog10l): New functions.
33586 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33587 for the %f, %F, %e, %E, %g, %G directives.
33588 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33589 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33590 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33591 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33592 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33593 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33594 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33595 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33596 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33597 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33598 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33599 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33600 * modules/snprintf-posix (Depends-on): Likewise.
33601 * modules/sprintf-posix (Depends-on): Likewise.
33602 * modules/vasnprintf-posix (Depends-on): Likewise.
33603 * modules/vasprintf-posix (Depends-on): Likewise.
33604 * modules/vfprintf-posix (Depends-on): Likewise.
33605 * modules/vsnprintf-posix (Depends-on): Likewise.
33606 * modules/vsprintf-posix (Depends-on): Likewise.
33607 * modules/vasnprintf (Files): Add lib/float+.h.
33608 * doc/functions/fprintf.texi: Update.
33609 * doc/functions/printf.texi: Update.
33610 * doc/functions/snprintf.texi: Update.
33611 * doc/functions/sprintf.texi: Update.
33612 * doc/functions/vfprintf.texi: Update.
33613 * doc/functions/vprintf.texi: Update.
33614 * doc/functions/vsnprintf.texi: Update.
33615 * doc/functions/vsprintf.texi: Update.
33617 2007-05-18 Bruno Haible <bruno@clisp.org>
33619 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33621 2007-05-18 Bruno Haible <bruno@clisp.org>
33623 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33624 for printing 64-bit integers. Needed for mingw.
33626 2007-05-18 Bruno Haible <bruno@clisp.org>
33628 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33629 gl_FUNC_FREXPL_WORKS.
33630 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33632 2007-05-18 Bruno Haible <bruno@clisp.org>
33634 * modules/frexpl-nolibm-tests: New file.
33636 * modules/frexpl-nolibm: New file.
33637 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33639 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
33641 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33642 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33643 GCC 4.2, which otherwise issues a lot of warnings.
33644 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33645 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33647 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33648 * modules/iconv_open (iconv.h): Likewise.
33649 * modules/locale (locale.h): Likewise.
33650 * modules/netinet_in (netinet/in.h): Likewise.
33651 * modules/sys_select (sys_select.h): Likewise.
33652 * modules/sys_socket (sys/socket.h): Likewise.
33653 * modules/sys_stat (sys/stat.h): Likewise.
33654 * modules/sysexits (sysexits.h): Likewise.
33655 * modules/unistd (unistd.h): Likewise.
33657 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33659 * modules/closein-tests (Makefile.am): Distribute
33662 2007-05-17 Bruno Haible <bruno@clisp.org>
33664 * tests/test-printf-posix.output: Renamed from
33665 tests/test-fprintf-posix.out.
33666 * modules/fprintf-posix-tests: Update.
33667 * modules/printf-posix-tests: Update.
33668 * modules/vfprintf-posix-tests: Update.
33669 * modules/vprintf-posix-tests: Update.
33670 * tests/test-fprintf-posix.sh: Update.
33671 * tests/test-printf-posix.sh: Update.
33672 * tests/test-vfprintf-posix.sh: Update.
33673 * tests/test-vprintf-posix.sh: Update.
33674 Reported by Ralf Wildenhues.
33676 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
33678 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33679 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33680 GCC 4.2, which otherwise issues a lot of warnings.
33681 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33682 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33683 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33684 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33685 it should no longer be needed.
33686 * lib/string_.h: Likewise.
33687 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33688 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33689 * modules/inttypes (inttypes.h): Likewise.
33690 * modules/math (math.h): Likewise.
33691 * modules/search (search.h): Likewise.
33692 * modules/signal (signal.h): Likewise.
33693 * modules/stdint (stdint.h): Likewise.
33694 * modules/stdio (stdio.h): Likewise.
33695 * modules/stdlib (stdlib.h): Likewise.
33696 * modules/string (string.h): Likewise.
33697 * modules/sys_time (sys/time.h): Likewise.
33698 * modules/time (time.h): Likewise.
33699 * modules/wchar (wchar.h): Likewise.
33700 * modules/wctype (wtype.h): Likewise.
33702 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
33704 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33706 2007-05-13 Bruno Haible <bruno@clisp.org>
33708 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33709 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33710 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33711 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33712 (gl_PREREQ_STRTOK_R): Don't require it here.
33714 2007-05-13 Bruno Haible <bruno@clisp.org>
33716 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33717 when used in C++ mode.
33719 2007-05-12 Bruno Haible <bruno@clisp.org>
33721 * lib/linebuffer.h: Tweak doc.
33722 * lib/linebuffer.c: Likewise.
33724 2007-05-12 James Youngman <jay@gnu.org>
33726 * lib/linebuffer.c (readlinebuffer_delim): New function,
33727 like readlinebuffer, but use a caller-specified delimiter.
33728 (readlinebuffer): Just call readlinebuffer_delim with '\n'
33730 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33732 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
33734 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33735 * modules/openat (Files): Remove openat-die.c.
33736 (Depends-on): Add openat-die.
33737 * modules/openat-die: New module.
33739 2007-05-06 Bruno Haible <bruno@clisp.org>
33741 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33742 Update with info about Cygwin.
33743 * doc/functions/fprintf.texi: Update.
33744 * doc/functions/printf.texi: Update.
33745 * doc/functions/snprintf.texi: Update.
33746 * doc/functions/sprintf.texi: Update.
33747 * doc/functions/vfprintf.texi: Update.
33748 * doc/functions/vprintf.texi: Update.
33749 * doc/functions/vsnprintf.texi: Update.
33750 * doc/functions/vsprintf.texi: Update.
33751 Reported by Eric Blake.
33753 2007-05-06 Bruno Haible <bruno@clisp.org>
33755 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33756 padding ourselves for the floating-point directives.
33757 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33758 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33759 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33760 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33761 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33762 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33763 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33764 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33765 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33766 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33767 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33768 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33769 * tests/test-snprintf-posix.h (test_function): Also check the width
33770 and some flags in the %f directive.
33771 * tests/test-sprintf-posix.h (test_function): Likewise.
33772 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33773 * tests/test-vasprintf-posix.c (test_function): Likewise.
33774 * doc/functions/fprintf.texi: Update.
33775 * doc/functions/printf.texi: Update.
33776 * doc/functions/snprintf.texi: Update.
33777 * doc/functions/sprintf.texi: Update.
33778 * doc/functions/vfprintf.texi: Update.
33779 * doc/functions/vprintf.texi: Update.
33780 * doc/functions/vsnprintf.texi: Update.
33781 * doc/functions/vsprintf.texi: Update.
33783 2007-05-06 Bruno Haible <bruno@clisp.org>
33785 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33786 pass the ' flag character to sprintf or snprintf.
33787 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33788 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33789 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33790 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33791 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33792 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33793 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33794 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33795 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33796 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33797 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33798 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33799 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33801 * tests/test-sprintf-posix.h (test_function): Likewise.
33802 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33803 * tests/test-vasprintf-posix.c (test_function): Likewise.
33804 * doc/functions/fprintf.texi: Update.
33805 * doc/functions/printf.texi: Update.
33806 * doc/functions/snprintf.texi: Update.
33807 * doc/functions/sprintf.texi: Update.
33808 * doc/functions/vfprintf.texi: Update.
33809 * doc/functions/vprintf.texi: Update.
33810 * doc/functions/vsnprintf.texi: Update.
33811 * doc/functions/vsprintf.texi: Update.
33813 2007-05-01 Bruno Haible <bruno@clisp.org>
33815 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33817 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33819 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33820 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33822 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33824 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33825 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33826 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33828 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33830 * lib/argp-help.c (struct hol_entry): New member `ord'.
33831 (HOL_ENTRY_PTRCMP): Use ord for comparison
33832 (hol_sort): Initialize ord.
33834 2007-05-01 Bruno Haible <bruno@clisp.org>
33836 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33837 Reported by Eric Blake.
33838 * doc/gnulib.texi (Function Substitutes): Update.
33840 2007-05-01 Bruno Haible <bruno@clisp.org>
33842 * doc/functions.texi: Remove file, now redundant through
33843 doc/functions/*.texi.
33845 2007-05-01 Bruno Haible <bruno@clisp.org>
33847 * modules/argp (Depends-on): Add sleep.
33849 2007-05-01 Bruno Haible <bruno@clisp.org>
33851 * modules/sleep-tests: New file.
33852 * tests/test-sleep.c: New file.
33854 * modules/sleep: New file.
33855 * lib/sleep.c: New file.
33856 * m4/sleep.m4: New file.
33857 * lib/unistd_.h (sleep): New declaration.
33858 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33860 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33861 * doc/functions/sleep.texi: Document the sleep module.
33863 2007-05-01 Bruno Haible <bruno@clisp.org>
33865 * lib/sigprocmask.h: Remove file.
33866 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33867 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33868 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33869 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33870 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33871 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33872 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33873 HAVE_SIGSET_T as a shell variable.
33874 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33875 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33876 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33877 (Depends-on): Add signal. Remove verify.
33878 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33879 (Include): Mention <signal.h> instead of sigprocmask.h.
33880 * NEWS: Mention the change.
33881 * lib/fatal-signal.c: Don't include sigprocmask.h.
33883 2007-05-01 Bruno Haible <bruno@clisp.org>
33885 * modules/signal: New file.
33886 * lib/signal_.h: New file.
33887 * m4/signal_h.m4: New file.
33889 2007-05-01 Bruno Haible <bruno@clisp.org>
33891 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33892 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33893 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33894 HAVE_WCTYPE_CTMP_BUG into wctype.h.
33896 2007-05-01 Bruno Haible <bruno@clisp.org>
33898 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33900 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33901 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33902 * modules/sys_stat (Makefile.am): Substitute their values into
33905 2007-05-01 Bruno Haible <bruno@clisp.org>
33907 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33908 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33909 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33911 2007-05-01 Bruno Haible <bruno@clisp.org>
33913 * doc/header/assert.texi: Undo last change: don't mention the gnulib
33914 'assert' module here.
33916 2007-05-01 Bruno Haible <bruno@clisp.org>
33918 * doc/functions/*.texi: New files.
33919 * doc/functions/google-ranking.txt: New file.
33920 * doc/gnulib.texi (Function Substitutes): New chapter.
33921 (ctime, inet_ntoa): Remove sections.
33922 * doc/ctime.texi: Remove file.
33923 * doc/inet_ntoa.texi: Remove file.
33924 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33926 (%.info): New rule, specifying a --reference-limit.
33928 2007-05-01 Bruno Haible <bruno@clisp.org>
33930 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33932 2007-05-01 Bruno Haible <bruno@clisp.org>
33934 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33935 the portability of 'mkdir' to mingw systems.
33937 2007-05-01 Bruno Haible <bruno@clisp.org>
33939 * doc/headers/google-ranking.txt: New file.
33941 2007-04-30 Eric Blake <ebb9@byu.net>
33943 Prefer fseeko to fseek.
33944 * modules/getpass (Depends-on): Add fseeko.
33945 * lib/getpass.c (getpass): Use fseeko, not fseek.
33947 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
33949 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33950 assumes the sorting is stable, while most qsort implementations
33951 are not. Use argument addresses to ensure they never compare as
33954 * tests/test-argp-2.sh (usage-indent test): Fix output
33955 (func_compare): Restore diff options
33956 * tests/test-argp.c: Restore #include "progname.h"
33958 2007-04-29 Bruno Haible <bruno@clisp.org>
33960 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33961 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33962 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33963 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33964 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33965 (configure.ac): Define CHECK_SNPRINTF_POSIX.
33966 (TESTS, check_PROGRAMS): Add test-snprintf.
33967 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33968 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33969 (TESTS, check_PROGRAMS): Add test-vsnprintf.
33970 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33971 assertions that fail on HP-UX, OSF/1, or IRIX.
33972 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33974 2007-04-29 Bruno Haible <bruno@clisp.org>
33976 * MODULES.html.sh (posix_functions): Remove 'contents'.
33978 2007-04-29 Karl Berry <karl@gnu.org>
33980 * config/srclist.txt (gendocs_template_min): new entry.
33982 2007-04-29 Bruno Haible <bruno@clisp.org>
33984 Work around fpurge bug on BSD systems.
33985 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33986 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33987 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33988 fpurge to rpl_fpurge if the system already has this function.
33989 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33990 the case where the system already has this function. Correct invariants
33992 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33995 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
33997 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
33998 proposed by Sven Verdoolaege.
34000 * tests/test-argp.c: Fix option ordering. Test deeply clustered
34002 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34003 (usage and help tests): Update
34005 2007-04-29 Bruno Haible <bruno@clisp.org>
34007 * tests/test-fflush.c (main): Use a file of size 17, not 10.
34008 Print more information in case of failure. Disable a test on BeOS.
34010 2007-04-29 Bruno Haible <bruno@clisp.org>
34012 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34013 This helps debugging on systems on which no gdb is available.
34015 2007-04-29 Bruno Haible <bruno@clisp.org>
34017 * lib/freading.h: Improve comments.
34018 * lib/fwriting.h: Likewise.
34019 * tests/test-freading.c (main): Don't check freading immediately after
34020 repositioning. Needed for glibc.
34022 2007-04-29 Bruno Haible <bruno@clisp.org>
34024 * lib/freading.c (freading): Trivial simplification.
34026 2007-04-28 Bruno Haible <bruno@clisp.org>
34028 * tests/test-fwriting.c (main): Also test the interaction between
34029 fflush and fwriting.
34030 * modules/fwriting-tests (Depends-on): Add fflush.
34032 * tests/test-freading.c (main): Also test the interaction between
34033 fflush and freading.
34034 * modules/freading-tests (Depends-on): Add fflush.
34036 2007-04-28 Bruno Haible <bruno@clisp.org>
34038 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34040 Suggested by Eric Blake.
34042 2007-04-28 Jim Meyering <jim@meyering.net>
34044 Avoid false-negative in gl_STDINT_H's C99 conformance test.
34045 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34046 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34048 2007-04-27 Eric Blake <ebb9@byu.net>
34050 * doc/headers/assert.texi (assert.h): Document assert module use.
34052 2007-04-27 Bruno Haible <bruno@clisp.org>
34054 * doc/headers/*.texi: New files.
34055 * doc/gnulib.texi (Header File Substitutes): New chapter.
34056 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34058 (standards.info ,standards.html, standards.dvi): Update dependencies.
34059 (mostlyclean, clean): New targets.
34061 2007-04-27 Bruno Haible <bruno@clisp.org>
34063 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34064 * modules/sysexits (Files, Makefile.am): Update.
34066 * lib/sys_socket_.h: Renamed from lib/socket_.h.
34067 * modules/sys_socket (Files, Makefile.am): Update.
34069 * lib/sys_stat_.h: Renamed from lib/stat_.h.
34070 * modules/sys_stat (Files, Makefile.am): Update.
34072 2007-04-27 Eric Blake <ebb9@byu.net>
34074 * lib/freading.h: Improve comments.
34075 * lib/fwriting.h: Likewise.
34076 * lib/fflush.c: Likewise.
34078 Fix closein for mingw.
34079 * modules/closein-tests: Add tests for closein.
34080 * tests/test-closein.c: New file.
34081 * tests/test-closein.sh: Likewise.
34082 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34083 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34085 2007-04-27 Bruno Haible <bruno@clisp.org>
34087 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34089 * lib/math_.h [__DECC]: Likewise.
34090 * lib/stdio_.h [__DECC]: Likewise.
34091 * lib/stdlib_.h [__DECC]: Likewise.
34092 * lib/string_.h [__DECC]: Likewise.
34093 * lib/time_.h [__DECC]: Likewise.
34094 * lib/wchar_.h [__DECC]: Likewise.
34095 * lib/wctype_.h [__DECC]: Likewise.
34097 2007-04-27 Bruno Haible <bruno@clisp.org>
34099 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34101 2007-04-27 Bruno Haible <bruno@clisp.org>
34103 * lib/fflush.c: Add comments.
34104 * modules/fpurge-tests (Depends-on): Add fflush.
34105 * modules/freadable-tests (Depends-on): Likewise.
34106 * modules/fwritable-tests (Depends-on): Likewise.
34108 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
34110 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34111 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
34112 Report by Bruno Haible <bruno@clisp.org>.
34114 2007-04-26 Eric Blake <ebb9@byu.net>
34116 Fix fflush on mingw.
34117 * modules/fflush (Depends-on): Add freading.
34118 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34121 2007-04-26 Eric Blake <ebb9@byu.net>
34122 and Bruno Haible <bruno@clisp.org>
34124 Implement freading and fwriting.
34125 * lib/freading.c: New file.
34126 * lib/freading.h: Likewise.
34127 * m4/freading.m4: Likewise.
34128 * modules/freading: Likewise.
34129 * modules/freading-tests: Likewise.
34130 * tests/test-freading.c: Likewise.
34131 * lib/fwriting.c: New file.
34132 * lib/fwriting.h: Likewise.
34133 * m4/fwriting.m4: Likewise.
34134 * modules/fwriting: Likewise.
34135 * modules/fwriting-tests: Likewise.
34136 * tests/test-fwriting.c: Likewise.
34137 * MODULES.html.sh (File stream based Input/Output): Mention them.
34139 2007-04-26 Bruno Haible <bruno@clisp.org>
34141 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34142 'long' when we assume it.
34143 Suggested by Eric Blake.
34145 2007-04-26 Bruno Haible <bruno@clisp.org>
34147 Ensure fseeko, ftello are declared on glibc systems.
34148 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34149 * modules/fseeko (configure.ac-early): Likewise.
34150 * modules/ftello (configure.ac-early): Likewise.
34151 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34152 AC_FUNC_FSEEKO for this.
34153 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34154 (gl_CHECK_FSEEKO): Remove macro.
34156 2007-04-26 Bruno Haible <bruno@clisp.org>
34158 * tests/test-fflush.c (main): Also check the ftell result after
34159 fflush and fseek/fseeko.
34160 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34161 file descriptor position cache in the stream.
34162 * lib/fseeko.c (rpl_fseeko): Likewise.
34164 2007-04-26 Bruno Haible <bruno@clisp.org>
34166 * modules/fflush-tests (Depends-on): Add fseeko.
34168 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
34169 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34171 * lib/argz_.h: ensure error_t definition is obtained in same
34172 mechanism system argz.h would have.
34173 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34174 argz facilities are known bad. Err on the side of caution if
34177 2007-04-25 Eric Blake <ebb9@byu.net>
34179 * lib/fpurge.c (includes): Use stdlib.h for free.
34180 * tests/test-fflush.c (main): Also test fflush-fseeko.
34182 2007-04-25 Bruno Haible <bruno@clisp.org>
34184 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34185 * lib/fseeko.c: New file.
34186 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34187 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34188 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34190 (gl_FUNC_FSEEKO): Invoke it.
34191 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34192 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34193 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34195 2007-04-25 Bruno Haible <bruno@clisp.org>
34197 * modules/fflush (Depends-on): Add ftello.
34199 2007-04-25 Bruno Haible <bruno@clisp.org>
34201 * modules/ftello-tests: New file.
34202 * tests/test-ftello.c: New file.
34204 * modules/ftello: New file.
34205 * m4/ftello.m4: New file.
34206 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34208 * lib/stdio_.h (ftello): New declaration.
34209 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34212 2007-04-25 Bruno Haible <bruno@clisp.org>
34214 * modules/fseeko-tests: New file.
34215 * tests/test-fseeko.c: New file.
34217 * modules/fseeko: New file.
34218 * m4/fseeko.m4: New file.
34219 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34221 * lib/stdio_.h (fseeko): New declaration.
34222 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34225 2007-04-25 Bruno Haible <bruno@clisp.org>
34227 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34229 2007-04-25 Bruno Haible <bruno@clisp.org>
34231 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34232 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34233 * tests/test-unistd.c: Likewise.
34234 * tests/test-fcntl.c: Likewise.
34236 2007-04-23 Eric Blake <ebb9@byu.net>
34238 * lib/fflush.c: Fix missing include.
34239 Reported by Bruno Haible.
34241 2007-04-23 Bruno Haible <bruno@clisp.org>
34243 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34244 Reported by Eric Blake.
34246 2007-04-23 Bruno Haible <bruno@clisp.org>
34248 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34250 2007-04-23 Bruno Haible <bruno@clisp.org>
34252 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34254 2007-04-23 Bruno Haible <bruno@clisp.org>
34256 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34257 Needed on HP-UX 11.
34259 2007-04-16 Eric Blake <ebb9@byu.net>
34261 Make fflush rely on fpurge.
34262 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34263 open coding all variants.
34264 * modules/fflush (Depends-on): Add fpurge and unistd.
34265 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34266 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34268 Fix --with-tests compilation on cygwin.
34269 * modules/argmatch-tests (Makefile.am): List gnulib library first
34271 * modules/argp-tests (Makefile.am): Likewise.
34272 * modules/array-list-tests (Makefile.am): Likewise.
34273 * modules/array-oset-tests (Makefile.am): Likewise.
34274 * modules/avltree-list-tests (Makefile.am): Likewise.
34275 * modules/avltree-oset-tests (Makefile.am): Likewise.
34276 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34277 * modules/carray-list-tests (Makefile.am): Likewise.
34278 * modules/dirname-tests (Makefile.am): Likewise.
34279 * modules/frexp-tests (Makefile.am): Likewise.
34280 * modules/isnanl-tests (Makefile.am): Likewise.
34281 * modules/linked-list-tests (Makefile.am): Likewise.
34282 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34283 * modules/lock-tests (Makefile.am): Likewise.
34284 * modules/rbtree-list-tests (Makefile.am): Likewise.
34285 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34286 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34287 * modules/tls-tests (Makefile.am): Likewise.
34288 * modules/tsearch-tests (Makefile.am): Likewise.
34289 * modules/xvasprintf-tests (Makefile.am): Likewise.
34291 Fix fpurge for cygwin.
34292 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34294 * modules/fpurge-tests (Depends-on): Clean up trash.
34296 2007-04-16 Simon Josefsson <simon@josefsson.org>
34298 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34300 * m4/autobuild.m4: Re-indent.
34302 2007-04-13 Bruno Haible <bruno@clisp.org>
34304 * modules/fpurge-tests: New file.
34305 * tests/test-fpurge.c: New file.
34307 * modules/fpurge: New file.
34308 * lib/fpurge.h: New file.
34309 * lib/fpurge.c: New file.
34310 * m4/fpurge.m4: New file.
34312 2007-04-13 Bruno Haible <bruno@clisp.org>
34314 * modules/fbufmode-tests: New file.
34315 * tests/test-fbufmode.c: New file.
34317 * modules/fbufmode: New file.
34318 * lib/fbufmode.h: New file.
34319 * lib/fbufmode.c: New file.
34320 * m4/fbufmode.m4: New file.
34322 2007-04-13 Bruno Haible <bruno@clisp.org>
34324 * modules/fwritable-tests: New file.
34325 * tests/test-fwritable.c: New file.
34327 * modules/fwritable: New file.
34328 * lib/fwritable.h: New file.
34329 * lib/fwritable.c: New file.
34330 * m4/fwritable.m4: New file.
34332 2007-04-13 Bruno Haible <bruno@clisp.org>
34334 * modules/freadable-tests: New file.
34335 * tests/test-freadable.c: New file.
34337 * modules/freadable: New file.
34338 * lib/freadable.h: New file.
34339 * lib/freadable.c: New file.
34340 * m4/freadable.m4: New file.
34342 2007-04-13 Bruno Haible <bruno@clisp.org>
34344 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34347 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34349 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34350 gzip bootstrap.conf to avoid dragging in i18n machinery.
34351 (gnulib_tool_option): Use it.
34353 2007-04-13 Bruno Haible <bruno@clisp.org>
34355 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34357 * tests/test-vasprintf-posix.c (test_function): Likewise.
34358 * tests/test-snprintf-posix.h (test_function): Likewise.
34359 * tests/test-sprintf-posix.h (test_function): Likewise.
34360 * tests/test-fprintf-posix.h (test_function): Likewise.
34361 * tests/test-printf-posix.h (test_function): Likewise.
34362 * tests/test-fprintf-posix.out: Likewise.
34364 2007-04-13 Bruno Haible <bruno@clisp.org>
34366 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34367 * modules/tls-tests (configure.ac): Likewise.
34368 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34370 2007-04-13 Bruno Haible <bruno@clisp.org>
34372 * lib/tls.c (glthread_tls_get): Fix return type.
34373 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34375 2007-04-12 Eric Blake <ebb9@byu.net>
34377 * modules/gettime (Depends-on): Remove gettime.
34378 Reported by Dmitry V. Levin.
34380 2007-04-12 Bruno Haible <bruno@clisp.org>
34382 * modules/fflush (Include): Mention <stdio.h>.
34383 * modules/strtoimax (Include): Mention <inttypes.h>.
34384 * modules/strtoumax (Include): Likewise.
34386 2007-04-12 Eric Blake <ebb9@byu.net>
34388 * .cvsignore: New file.
34389 * .gitignore: Likewise.
34391 2007-04-12 Bruno Haible <bruno@clisp.org>
34393 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34394 not before, since $(LDADD) often contains libgnu.a.
34395 * modules/striconv-tests (test_striconv_LDADD): Likewise.
34396 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34397 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34400 2007-04-12 Eric Blake <ebb9@byu.net>
34402 Work around glibc's failure to flush stdin on fclose.
34403 * lib/closein.c (close_stdin): Flush stdin before closing.
34405 Work around glibc's failure to reset seekable stdin on exit.
34406 * modules/closein: New module.
34407 * lib/closein.c: New file.
34408 * lib/closein.h: Likewise.
34409 * m4/closein.m4: Likewise.
34410 * MODULES.html.sh (File stream based Input/Output): Document it.
34412 2007-04-12 Simon Josefsson <simon@josefsson.org>
34414 * gnulib-tool: Rename generated 'autobuild' script to
34415 'do-autobuild' in --create-megatestdir output.
34417 * doc/gnulib.texi (Build robot for gnulib): Fix.
34419 2007-04-12 Simon Josefsson <simon@josefsson.org>
34421 * modules/sysexits (Depends-on): Add absolute-header.
34423 2007-04-12 Eric Blake <ebb9@byu.net>
34425 No need to preserve errno on success.
34426 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34427 Reported by Bruno Haible.
34429 2007-04-12 Simon Josefsson <simon@josefsson.org>
34431 * MODULES.html.sh (Support for maintaining and releasing
34432 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34434 2007-04-12 Simon Josefsson <simon@josefsson.org>
34436 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34438 2007-04-12 Simon Josefsson <simon@josefsson.org>
34440 * modules/autobuild: New module.
34442 * m4/autobuild.m4: New file.
34444 2007-04-11 Bruno Haible <bruno@clisp.org>
34446 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34447 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34448 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34449 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34450 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34451 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34452 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34453 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34454 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34455 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34456 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34457 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34458 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34459 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34460 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34461 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34462 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34463 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34464 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34465 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34466 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34467 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34468 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34469 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34470 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34471 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34472 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34473 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34474 Reported by Eric Blake.
34476 2007-04-11 Bruno Haible <bruno@clisp.org>
34478 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34480 2007-04-10 Bruno Haible <bruno@clisp.org>
34482 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34483 for NaN and Infinity. Needed on FreeBSD 6.1.
34484 * tests/test-vasnprintf-posix.c (test_function): Undo last change
34485 regarding results for "%010a" of Infinity and NaN.
34486 * tests/test-vasprintf-posix.c (test_function): Likewise.
34487 * tests/test-snprintf-posix.h (test_function): Likewise.
34488 * tests/test-sprintf-posix.h (test_function): Likewise.
34489 * tests/test-fprintf-posix.h (test_function): Likewise.
34490 * tests/test-printf-posix.h (test_function): Likewise.
34491 * tests/test-fprintf-posix.out: Likewise.
34493 2007-04-10 Bruno Haible <bruno@clisp.org>
34495 * modules/locale-tests: New file.
34496 * tests/test-locale.c: New file.
34498 * modules/locale: New file.
34499 * lib/locale_.h: New file.
34500 * m4/locale_h.m4: New file.
34502 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
34503 Bruno Haible <bruno@clisp.org>
34505 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34506 be determined, test for availability of the copysignf, copysign,
34507 copysignl functions.
34508 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34509 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34510 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34512 2007-04-09 Eric Blake <ebb9@byu.net>
34514 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34515 * modules/stdio (Makefile.am): Support fflush.
34516 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34517 * modules/fflush: New file.
34518 * lib/fflush.c: Likewise.
34519 * m4/fflush.m4: Likewise.
34520 * modules/fflush-tests: New test.
34521 * tests/test-fflush.c: Likewise.
34522 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34524 2007-04-06 Bruno Haible <bruno@clisp.org>
34526 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34527 (VASNPRINTF): Use signbit for faster determination whether to print a
34529 * modules/vasnprintf (Files): Remove lib/float+.h.
34530 * modules/fprintf-posix (Depends-on): Add signbit.
34531 * modules/snprintf-posix (Depends-on): Likewise.
34532 * modules/sprintf-posix (Depends-on): Likewise.
34533 * modules/vasnprintf-posix (Depends-on): Likewise.
34534 * modules/vasprintf-posix (Depends-on): Likewise.
34535 * modules/vfprintf-posix (Depends-on): Likewise.
34536 * modules/vsnprintf-posix (Depends-on): Likewise.
34537 * modules/vsprintf-posix (Depends-on): Likewise.
34539 2007-04-06 Bruno Haible <bruno@clisp.org>
34541 * tests/test-frexp.c (main): Test also the sign bit of zero results.
34542 * tests/test-frexpl.c (main): Likewise.
34543 * tests/test-ldexpl.c (main): Likewise.
34544 * modules/frexp-tests (Depends-on): Add signbit.
34545 * modules/frexpl-tests (Depdends-on): Likewise.
34546 * modules/ldexpl-tests (Depdends-on): Likewise.
34548 2007-04-06 Bruno Haible <bruno@clisp.org>
34550 * modules/signbit-tests: New file.
34551 * tests/test-signbit.c: New file.
34553 * modules/signbit: New file.
34554 * lib/signbitf.c: New file.
34555 * lib/signbitd.c: New file.
34556 * lib/signbitl.c: New file.
34557 * m4/signbit.m4: New file.
34558 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34559 (signbit): New macro.
34560 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34562 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34563 REPLACE_FREXPL into math.h.
34565 2007-04-06 Bruno Haible <bruno@clisp.org>
34567 * modules/isnanf-nolibm-tests: New file.
34568 * tests/test-isnanf.c: New file.
34570 * modules/isnanf-nolibm: New file.
34571 * lib/isnanf.h: New file.
34572 * lib/isnanf.c: New file.
34573 * lib/isnan.c: Consider the USE_FLOAT macro.
34574 * m4/isnanf.m4: New file.
34576 2007-04-06 Bruno Haible <bruno@clisp.org>
34578 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34579 (Link): New section.
34581 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34583 2007-04-06 Bruno Haible <bruno@clisp.org>
34585 Assume the 'long double' type.
34586 * m4/longdouble.m4: Remove file.
34587 * config/srclist.txt: Don't mention longdouble.m4.
34588 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34589 * lib/float+.h: Likewise.
34590 * lib/frexp.c: Likewise.
34591 * lib/printf-args.h: Likewise.
34592 * lib/printf-args.c: Likewise.
34593 * lib/printf-frexp.c: Likewise.
34594 * lib/printf-parse.c: Likewise.
34595 * lib/vasnprintf.c: Likewise.
34596 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34597 * m4/intl.m4: Likewise.
34598 * m4/isnanl.m4: Likewise.
34599 * m4/printf.m4: Likewise.
34600 * m4/printf-frexpl.m4: Likewise.
34601 * m4/vasnprintf.m4: Likewise.
34602 * modules/allocsa (Files): Remove m4/longdouble.m4.
34603 * modules/gettext (Files): Likewise.
34604 * modules/relocatable-prog-wrapper (Files): Likewise.
34605 * modules/vasnprintf (Files): Likewise.
34606 * modules/isnanl (Files): Likewise.
34607 (Include): Simplify.
34608 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34609 (Include): Simplify.
34610 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34611 (Include): Simplify.
34612 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34613 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34614 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34615 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34616 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34617 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34618 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34619 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34620 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34621 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34622 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34623 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34624 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34625 * tests/test-isnanl.c: Likewise.
34626 * tests/test-snprintf-posix.h: Likewise.
34627 * tests/test-sprintf-posix.h: Likewise.
34628 * tests/test-vasnprintf-posix.c: Likewise.
34629 * tests/test-vasnprintf-posix2.c: Likewise.
34630 * tests/test-vasprintf-posix.c: Likewise.
34632 2007-04-06 Bruno Haible <bruno@clisp.org>
34634 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34635 * lib/math_.h [__DECC]: Include the overridden include file through
34636 #include_next, outside the double-inclusion guard.
34637 * lib/stdio_.h [__DECC]: Likewise.
34638 * lib/stdlib_.h [__DECC]: Likewise.
34639 * lib/string_.h [__DECC]: Likewise.
34640 * lib/time_.h [__DECC]: Likewise.
34641 * lib/wchar_.h [__DECC]: Likewise.
34642 * lib/wctype_.h [__DECC]: Likewise.
34643 * lib/inttypes_.h [__DECC]: Likewise.
34644 Reported by Albert Chin <china@thewrittenword.com> in
34645 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34647 2007-04-04 Eric Blake <ebb9@byu.net>
34649 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34652 2007-04-04 Bruno Haible <bruno@clisp.org>
34654 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34655 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34657 2007-04-04 Bruno Haible <bruno@clisp.org>
34659 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34660 results for "%010a" of Infinity and NaN.
34661 * tests/test-vasprintf-posix.c (test_function): Likewise.
34662 * tests/test-snprintf-posix.h (test_function): Likewise.
34663 * tests/test-sprintf-posix.h (test_function): Likewise.
34664 * tests/test-fprintf-posix.h (test_function): Remove these tests.
34665 * tests/test-printf-posix.h (test_function): Likewise.
34666 * tests/test-fprintf-posix.out: Update.
34667 Needed for FreeBSD 6.1.
34669 2007-04-04 Bruno Haible <bruno@clisp.org>
34671 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34672 directly used by the gnulib modules nor by gnulib-tool.
34674 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
34676 * DEPENDENCIES: Give overall description of version dependency
34677 desirability. Use more-typical names for apps.
34678 Add shell, coreutils, diffutils, grep, tar, gzip.
34680 2007-04-04 Simon Josefsson <simon@josefsson.org>
34682 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
34684 2007-04-04 Karl Berry <karl@gnu.org>
34686 * MODULES.html.sh (func_module): missing '.
34688 2007-04-03 Bruno Haible <bruno@clisp.org>
34690 * modules/argmatch-tests (Makefile.am): New variable
34691 test_argmatch_LDADD.
34692 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34693 * modules/array-list-tests (Makefile.am): New variable
34694 test_array_list_LDADD.
34695 * modules/array-oset-tests (Makefile.am): New variable
34696 test_array_oset_LDADD.
34697 * modules/avltree-list-tests (Makefile.am): New variable
34698 test_avltree_list_LDADD.
34699 * modules/avltree-oset-tests (Makefile.am): New variable
34700 test_avltree_oset_LDADD.
34701 * modules/avltreehash-list-tests (Makefile.am): New variable
34702 test_avltreehash_list_LDADD.
34703 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34704 test_canonicalize_lgpl_LDADD.
34705 * modules/carray-list-tests (Makefile.am): New variable
34706 test_carray_list_LDADD.
34707 * modules/dirname-tests (Makefile.am): New variable
34708 test_dirname_LDADD.
34709 * modules/linked-list-tests (Makefile.am): New variable
34710 test_linked_list_LDADD.
34711 * modules/linkedhash-list-tests (Makefile.am): New variable
34712 test_linkedhash_list_LDADD.
34713 * modules/rbtree-list-tests (Makefile.am): New variable
34714 test_rbtree_list_LDADD.
34715 * modules/rbtree-oset-tests (Makefile.am): New variable
34716 test_rbtree_oset_LDADD.
34717 * modules/rbtreehash-list-tests (Makefile.am): New variable
34718 test_rbtreehash_list_LDADD.
34719 * modules/xvasprintf-tests (Makefile.am): New variable
34720 test_xvasprintf_LDADD.
34721 Reported by Eric Blake.
34723 2007-04-03 Eric Blake <ebb9@byu.net>
34725 * DEPENDENCIES: Weaken m4 requirements.
34727 2007-04-03 Bruno Haible <bruno@clisp.org>
34729 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34730 * modules/isnanl-tests (configure.ac): Likewise.
34732 2007-04-03 Ben Pfaff <blp@gnu.org>
34734 * modules/iconv_open: Add $(srcdir)/ to source directory
34735 references in Makefile fragments that call gperf, to fix VPATH
34738 2007-04-03 Bruno Haible <bruno@clisp.org>
34740 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34741 * lib/ldexpl.c: Undo last change.
34743 2007-04-03 Bruno Haible <bruno@clisp.org>
34745 * modules/printf-frexpl (Depends-on): Undo last change.
34746 (Files): Add m4/ldexpl.m4.
34748 2007-04-03 Bruno Haible <bruno@clisp.org>
34750 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34751 * modules/isnanl (Link): New section.
34753 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34754 * modules/frexp (Link): New section.
34756 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34757 * modules/frexpl (Link): New section.
34759 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34760 * modules/ldexpl (Link): New section.
34762 2007-04-03 Bruno Haible <bruno@clisp.org>
34764 * modules/TEMPLATE-EXTENDED: New file.
34765 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34767 2007-04-03 Bruno Haible <bruno@clisp.org>
34769 * DEPENDENCIES: New file.
34770 Suggested by Simon Josefsson.
34772 2007-04-03 Bruno Haible <bruno@clisp.org>
34774 * doc/gnulib.texi: Escape @.
34776 2007-04-03 James Youngman <jay@gnu.org>
34777 and Paul Eggert <eggert@cs.ucla.edu>
34779 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34780 birthtime on all systems that have birthtime, not just those which
34781 use st_birthtimensec rather than st_birthtim. Putting zero in
34782 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34783 that the birth time is not available for files on an NFS mount.
34785 2007-04-03 Simon Josefsson <simon@josefsson.org>
34787 * modules/memxor: Move back from crypto/, suggested by Bruno.
34788 * modules/crypto/hmac-sha1: Fix memxor dependency.
34790 * modules/crypto/gc: Moved from ../.
34792 2007-04-02 Eric Blake <ebb9@byu.net>
34794 * lib/ldexpl.c (includes): Avoid libm.
34796 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34798 2007-04-02 Bruno Haible <bruno@clisp.org>
34800 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34803 2007-04-02 Bruno Haible <bruno@clisp.org>
34805 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34806 x86 or x86_64 platforms running MacOS X.
34807 Reported by Ryan Schmidt <@ryandesign.com>.
34809 2007-04-02 Bruno Haible <bruno@clisp.org>
34811 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34814 2007-04-01 Simon Josefsson <simon@josefsson.org>
34816 * modules/crypto/arcfour: Moved from ../.
34817 * modules/crypto/arcfour-tests: Moved from ../.
34818 * modules/crypto/arctwo: Moved from ../.
34819 * modules/crypto/arctwo-tests: Moved from ../.
34820 * modules/crypto/des: Moved from ../.
34821 * modules/crypto/des-tests: Moved from ../.
34822 * modules/crypto/gc-arcfour: Moved from ../.
34823 * modules/crypto/gc-arcfour-tests: Moved from ../.
34824 * modules/crypto/gc-arctwo: Moved from ../.
34825 * modules/crypto/gc-arctwo-tests: Moved from ../.
34826 * modules/crypto/gc-des: Moved from ../.
34827 * modules/crypto/gc-des-tests: Moved from ../.
34828 * modules/crypto/gc-hmac-md5: Moved from ../.
34829 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34830 * modules/crypto/gc-hmac-sha1: Moved from ../.
34831 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34832 * modules/crypto/gc-md2: Moved from ../.
34833 * modules/crypto/gc-md2-tests: Moved from ../.
34834 * modules/crypto/gc-md4: Moved from ../.
34835 * modules/crypto/gc-md4-tests: Moved from ../.
34836 * modules/crypto/gc-md5: Moved from ../.
34837 * modules/crypto/gc-md5-tests: Moved from ../.
34838 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34839 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34840 * modules/crypto/gc-random: Moved from ../.
34841 * modules/crypto/gc-rijndael: Moved from ../.
34842 * modules/crypto/gc-rijndael-tests: Moved from ../.
34843 * modules/crypto/gc-sha1: Moved from ../.
34844 * modules/crypto/gc-sha1-tests: Moved from ../.
34845 * modules/crypto/gc-tests: Moved from ../.
34846 * modules/crypto/hmac-md5: Moved from ../.
34847 * modules/crypto/hmac-md5-tests: Moved from ../.
34848 * modules/crypto/hmac-sha1: Moved from ../.
34849 * modules/crypto/hmac-sha1-tests: Moved from ../.
34850 * modules/crypto/md2: Moved from ../.
34851 * modules/crypto/md2-tests: Moved from ../.
34852 * modules/crypto/md4: Moved from ../.
34853 * modules/crypto/md4-tests: Moved from ../.
34854 * modules/crypto/md5: Moved from ../.
34855 * modules/crypto/md5-tests: Moved from ../.
34856 * modules/crypto/memxor: Moved from ../.
34857 * modules/crypto/rijndael: Moved from ../.
34858 * modules/crypto/rijndael-tests: Moved from ../.
34859 * modules/crypto/sha1: Moved from ../.
34861 2007-03-30 James Youngman <jay@gnu.org>
34863 * tests/test-stat-time.c (prepare_test): use chmod() rather than
34864 rename() to change the ctime of a file (because ctime is unaffected
34865 by rename on jfs2 on AIX 5.1).
34866 (main): Start by doing cleanup, in case a previous run failed leaving
34869 2007-03-31 Bruno Haible <bruno@clisp.org>
34871 Support old proprietary implementations of iconv.
34872 * modules/iconv_open: New file.
34873 * lib/iconv_.h: New file.
34874 * m4/iconv_h.m4: New file.
34875 * lib/iconv_open.c: New file.
34876 * lib/iconv_open-aix.gperf: New file.
34877 * lib/iconv_open-hpux.gperf: New file.
34878 * lib/iconv_open-irix.gperf: New file.
34879 * lib/iconv_open-osf.gperf: New file.
34880 * m4/iconv_open.m4: New file.
34881 * modules/linebreak (Depends-on): Add iconv_open.
34882 * modules/striconv (Depends-on): Likewise.
34883 * modules/striconveh (Depends-on): Likewise.
34884 * modules/unicodeio (Depends-on): Likewise.
34885 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34887 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34888 conversion if cd is (iconv_t)(-1).
34889 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34892 2007-03-31 Bruno Haible <bruno@clisp.org>
34894 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34895 work on Solaris either. Protect also second use of "autodetect_jp".
34897 2007-03-31 Bruno Haible <bruno@clisp.org>
34899 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34900 the function is not present.
34902 2007-03-31 Bruno Haible <bruno@clisp.org>
34904 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34905 the function is not present.
34907 2007-03-31 Bruno Haible <bruno@clisp.org>
34909 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34910 a bug in HP-UX iconv_open().
34912 2007-03-31 Bruno Haible <bruno@clisp.org>
34914 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34915 (Mathematics <math.h>): New section, add fpieee.
34916 (Input/output <stdio.h>): Add fseterr.
34917 (Mathematics <math.h>): New section, add printf-frexp.
34918 (Container data structures): Add sublist.
34919 (Core language properties): Add fpucw, inline.
34920 (Functions for greatest-width integer types <inttypes.h>): Add
34921 imaxabs, imaxdiv, inttypes.
34922 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34923 isnanl-nolibm, ldexp.
34924 (Mathematics <math.h>): New section, add printf-frexpl.
34925 (Support for systems lacking POSIX:2001): Add fprintf-posix,
34926 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34927 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34928 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34929 (Unicode string functions): Add unistr/u*-mbtoucr.
34930 (Java): Add javacomp-script, javaexec-script.
34931 (C#): Add csharpcomp-script, csharpexec-script.
34932 (Support for building libraries and executables): Add havelib,
34934 (Support for maintaining and releasing projects): Renamed from
34935 'Support for maintaining and release projects'. Add announce-gen.
34937 2007-03-31 Bruno Haible <bruno@clisp.org>
34939 * README: Talk primarily about git.
34940 (git and CVS): Renamed from CVS.
34941 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34942 gnulib is available through git.
34943 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34945 2007-03-30 Bruno Haible <bruno@clisp.org>
34947 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34948 * lib/poll_.h: Likewise.
34949 * lib/stat_.h: Likewise.
34950 * lib/sys_time_.h: Likewise.
34951 * lib/sysexit_.h: Likewise.
34952 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34953 * lib/stdbool_.h: Likewise.
34954 * lib/byteswap_.h: Add double-inclusion guard.
34956 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
34958 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34960 2007-03-30 Karl Berry <karl@gnu.org>
34962 * config/srclist-update: double space after USA in the license
34963 substitution, since that's how it's usually (?) written.
34965 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
34967 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34968 reported by Bruno Haible.
34970 2007-03-29 Bruno Haible <bruno@clisp.org>
34972 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34973 a bug in AIX iconv().
34975 2007-03-29 Bruno Haible <bruno@clisp.org>
34977 * modules/ldexpl-tests: New file.
34978 * tests/test-ldexpl.c: New file.
34980 2007-03-29 Bruno Haible <bruno@clisp.org>
34982 * lib/ldexpl.c: Include fpucw.h.
34983 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34985 * modules/ldexpl (Depends-on): Add fpucw.
34987 2007-03-29 Bruno Haible <bruno@clisp.org>
34989 * modules/ldexpl: New file.
34990 * m4/ldexpl.m4: New file.
34991 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34993 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34995 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34997 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34998 gl_FUNC_LDEXPL_WORKS.
34999 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35000 * modules/mathl (Files): Remove lib/ldexpl.c.
35001 (Depends-on): Add ldexpl.
35003 2007-03-29 Bruno Haible <bruno@clisp.org>
35005 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35007 2007-03-29 Bruno Haible <bruno@clisp.org>
35009 * tests/test-striconveh.c (main): Don't assume that a direct conversion
35010 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35011 and possibly also HP-UX.
35012 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35013 work on AIX, IRIX, HP-UX, OSF/1.
35014 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35015 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35016 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35017 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35018 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35019 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35021 2007-03-29 Bruno Haible <bruno@clisp.org>
35023 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35025 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35027 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35028 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35030 2007-03-29 Eric Blake <ebb9@byu.net>
35032 * lib/acl-internal.h: Remove redundant include.
35033 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35034 Cygwin when a file is locked.
35036 2007-03-29 Bruno Haible <bruno@clisp.org>
35038 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35040 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35042 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35044 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35045 try to remove a parent directory if the child couldn't be removed
35046 (except for the first rmdir, which could fail because the child
35047 doesn't exist). Problem reported by Jeff Blaine in
35048 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35050 2007-03-28 Bruno Haible <bruno@clisp.org>
35052 * lib/striconveh.c (utf8conv_carefully): New function.
35053 (mem_cd_iconveh_internal): Invoke it.
35055 2007-03-28 Bruno Haible <bruno@clisp.org>
35057 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35058 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35060 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35061 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35064 2007-03-28 Bruno Haible <bruno@clisp.org>
35066 * modules/unistr/u8-mbtoucr: New file.
35067 * lib/unistr/u8-mbtoucr.c: New file.
35068 * modules/unistr/u16-mbtoucr: New file.
35069 * lib/unistr/u16-mbtoucr.c: New file.
35070 * modules/unistr/u16-mbtoucr: New file.
35071 * lib/unistr/u16-mbtoucr.c: New file.
35072 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35074 2007-03-27 Simon Josefsson <simon@josefsson.org>
35075 Bruno Haible <bruno@clisp.org>
35077 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35078 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
35079 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35081 * m4/stdio_h.m4: Add stubs for vasprintf too.
35083 * modules/stdio: Support vasprintf in sed command.
35085 * modules/vasprintf: Depend on stdio for prototypes. Remove
35086 vasprintf.h. Add stdio module indicator.
35088 * lib/stdio_.h: Declare asprintf and vasprintf, based on
35091 * lib/vasprintf.h: File removed.
35093 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35094 * lib/vasprintf.c: Ditto.
35095 * lib/xvasprintf.c: Ditto.
35096 * tests/test-vasprintf-posix.c: Ditto.
35097 * tests/test-vasprintf.c: Ditto.
35099 2007-03-27 Bruno Haible <bruno@clisp.org>
35101 Make vasnprintf multithread-safe.
35102 * lib/vasnprintf.c (decimal_point_char): New function.
35103 (VASNPRINTF): Use it.
35104 Suggested by Simon Josefsson.
35106 2007-03-27 Eric Blake <ebb9@byu.net>
35108 Support sub-second birthtime on cygwin.
35109 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35110 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35111 (get_stat_birthtime): Also work with st_birthtim.
35113 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
35115 * lib/stat-time.h (USE_BIRTHTIME): Remove.
35116 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35117 (get_stat_birthtime_ns): Do not try to use "spare" fields.
35118 (get_stat_birthtime_ns): Simplify compile-time tests.
35119 (get_stat_birthtime): Change the API to look like
35120 get_stat_mtime etc., except return a negative tv_nsec on error.
35121 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35122 Don't check for "spare" fields.
35123 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35124 or for struct stat.st_birthtime, as these tests aren't used.
35125 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35127 2007-03-27 Bruno Haible <bruno@clisp.org>
35129 * lib/stat-time.h: Include <sys/stat.h>.
35131 2007-03-27 James Youngman <jay@gnu.org>
35133 * lib/stat-time.h (get_stat_birthtime): New function for
35134 retrieving st_birthtime as provided by UFS2 (hence *BSD).
35135 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35137 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35138 * modules/stat-time-test: New file.
35139 * tests/test-stat-time.c: New test, devised by Bruno Haible.
35141 2007-03-26 Bruno Haible <bruno@clisp.org>
35143 Better support of signalling NaNs.
35144 * lib/atanl.c: Include isnanl.h.
35145 (atanl): Perform test for NaN at the beginning of the function and
35146 through a call to isnanl.
35147 * lib/cosl.c: Include isnanl.h.
35148 (cosl): Perform test for NaN at the beginning of the function and
35149 through a call to isnanl.
35150 * lib/ldexpl.c: Include isnanl.h.
35151 (ldexpl): Perform test for NaN through a call to isnanl.
35152 * lib/logl.c: Include isnanl.h.
35153 (logl): Perform test for NaN at the beginning of the function and
35154 through a call to isnanl.
35155 * lib/sinl.c: Include isnanl.h.
35156 (sinl): Perform test for NaN at the beginning of the function and
35157 through a call to isnanl.
35158 * lib/sqrtl.c: Include isnanl.h.
35159 (sqrtl): Perform test for NaN at the beginning of the function and
35160 through a call to isnanl.
35161 * lib/tanl.c: Include isnanl.h.
35162 (tanl): Perform test for NaN at the beginning of the function and
35163 through a call to isnanl.
35164 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35165 * modules/mathl (Depends-on): Add isnanl.
35167 2007-03-26 Eric Blake <ebb9@byu.net>
35169 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35170 regression in logic sense of previous patch.
35172 2007-03-26 Bruno Haible <bruno@clisp.org>
35174 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35175 unportable shell command "if ! ...".
35176 Reported by Ralf Wildenhues.
35178 2007-03-25 Bruno Haible <bruno@clisp.org>
35180 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35181 <sysexits.h> file, and only add EX_CONFIG.
35182 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35183 absolute file name and whether it is sufficient. Substitute also
35184 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35185 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35186 ABSOLUTE_SYSEXITS_H into sysexits.h.
35188 2007-03-25 Bruno Haible <bruno@clisp.org>
35190 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35193 2007-03-25 Bruno Haible <bruno@clisp.org>
35195 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35196 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35198 2007-03-25 Bruno Haible <bruno@clisp.org>
35200 * lib/vasnprintf.c: Include langinfo.h.
35201 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35203 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35204 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35205 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35206 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35207 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35208 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35209 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35210 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35211 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35212 Reported by Simon Josefsson.
35214 2007-03-25 Bruno Haible <bruno@clisp.org>
35216 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35217 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35218 * modules/vasnprintf (Depends-on): Add stdint.
35220 2007-03-25 Bruno Haible <bruno@clisp.org>
35222 * modules/fpieee: New file.
35223 * m4/fpieee.m4: New file.
35224 * modules/isnan-nolibm (Depends-on): Add fpieee.
35225 * modules/isnanl-nolibm (Depends-on): Add fpieee.
35226 * modules/isnanl (Depends-on): Add fpieee.
35228 2007-03-25 Bruno Haible <bruno@clisp.org>
35230 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35232 2007-03-25 Bruno Haible <bruno@clisp.org>
35234 Avoid test failures on IRIX 6.5.
35235 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35237 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35241 2007-03-25 Bruno Haible <bruno@clisp.org>
35243 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35244 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35245 exists but doesn't work.
35246 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35247 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35248 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35249 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35251 2007-03-25 Bruno Haible <bruno@clisp.org>
35253 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35254 returns inf. Needed on IRIX 6.5.
35256 2007-03-25 Bruno Haible <bruno@clisp.org>
35258 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35259 (main): Use isnanl instead of x != x idiom.
35260 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35262 * tests/test-frexp.c: Include isnan.h.
35263 (main): Use isnan instead of x != x idiom.
35264 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35266 2007-03-25 Bruno Haible <bruno@clisp.org>
35268 * tests/test-frexp.c (NaN): New function/macro.
35269 (main): Use it instead of 0.0 / 0.0.
35270 * tests/test-isnan.c (NaN): New function/macro.
35271 (main): Use it instead of 0.0 / 0.0.
35272 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35273 (test_function): Use it instead of 0.0 / 0.0.
35274 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35275 (test_function): Use it instead of 0.0 / 0.0.
35276 * tests/test-snprintf-posix.h (NaN): New function/macro.
35277 (test_function): Use it instead of 0.0 / 0.0.
35278 * tests/test-sprintf-posix.h (NaN): New function/macro.
35279 (test_function): Use it instead of 0.0 / 0.0.
35280 * tests/test-fprintf-posix.h (NaN): New function/macro.
35281 (test_function): Use it instead of 0.0 / 0.0.
35282 * tests/test-printf-posix.h (NaN): New function/macro.
35283 (test_function): Use it instead of 0.0 / 0.0.
35285 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35287 2007-03-25 Bruno Haible <bruno@clisp.org>
35289 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35291 2007-03-25 Bruno Haible <bruno@clisp.org>
35293 * lib/regexec.c (merge_state_with_log): Make static.
35295 2007-03-25 Bruno Haible <bruno@clisp.org>
35297 * lib/trigl.c (kernel_rem_pio2): Make static.
35299 2007-03-25 Bruno Haible <bruno@clisp.org>
35301 * lib/sincosl.c (sincosl_table): Make static.
35303 2007-03-25 Bruno Haible <bruno@clisp.org>
35305 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35306 if the compiler does not support C99.
35308 2007-03-25 Bruno Haible <bruno@clisp.org>
35310 * modules/time (Makefile.am): Ensure all rule action lines start with a
35313 2007-03-24 Bruno Haible <bruno@clisp.org>
35315 * modules/tsearch-tests: New file.
35316 * tests/test-tsearch.sh: New file.
35317 * tests/test-tsearch.c: New file, mostly copied from glibc.
35319 * modules/search-tests: New file.
35320 * tests/test-search.c: New file.
35322 * modules/search: New file.
35323 * lib/search_.h: New file, incorporating lib/tsearch.h.
35324 * m4/search_h.m4: New file.
35325 * lib/tsearch.h: Remove file.
35326 * lib/tsearch.c: Include search.h instead of tsearch.h.
35327 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35329 * modules/tsearch (Files): Remove lib/tsearch.h.
35330 (Depends-on): Add search.
35331 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35332 (Include): Change tsearch.h into search.h.
35334 2007-03-24 Bruno Haible <bruno@clisp.org>
35336 * modules/fpucw: New file.
35337 * lib/fpucw.h: New file.
35338 * lib/frexp.c: Include fpucw.h.
35339 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35341 * lib/printf-frexp.c: Include fpucw.h.
35342 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35344 * lib/vasnprintf.c: Include fpucw.h.
35345 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35346 'long double' calculations.
35347 * tests/test-frexpl.c: Include fpucw.h.
35348 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35349 * tests/test-printf-frexpl.c: Include fpucw.h.
35350 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35351 * modules/frexpl (Depends-on): Add fpucw.
35352 * modules/printf-frexpl (Depends-on): Likewise.
35353 * modules/fprintf-posix (Depends-on): Likewise.
35354 * modules/snprintf-posix (Depends-on): Likewise.
35355 * modules/sprintf-posix (Depends-on): Likewise.
35356 * modules/vasnprintf-posix (Depends-on): Likewise.
35357 * modules/vasprintf-posix (Depends-on): Likewise.
35358 * modules/vfprintf-posix (Depends-on): Likewise.
35359 * modules/vsnprintf-posix (Depends-on): Likewise.
35360 * modules/vsprintf-posix (Depends-on): Likewise.
35361 * modules/frexpl-tests (Depends-on): Likewise.
35362 * modules/printf-frexpl-tests (Depends-on): Likewise.
35364 2007-03-24 Bruno Haible <bruno@clisp.org>
35366 * lib/float+.h: New file.
35367 * lib/isnan.c: Include float+.h.
35369 (FUNC): Compare only SIZE bytes of the value.
35370 * lib/vasnprintf.c: Include float+.h.
35371 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35372 SIZEOF_LDBL or SIZEOF_DBL bytes.
35373 * modules/isnan-nolibm (Files): Add lib/float+.h.
35374 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35375 * modules/isnanl (Files): Add lib/float+.h.
35376 * modules/vasnprintf (Files): Add lib/float+.h.
35378 2007-03-24 Bruno Haible <bruno@clisp.org>
35380 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35381 include isnanl-nolibm.h.
35383 2007-03-24 Bruno Haible <bruno@clisp.org>
35385 * tests/test-read-file.c (main): Don't produce spurious output for
35386 expected situations. Make the test fail if it encountered unexpected
35389 2007-03-24 Bruno Haible <bruno@clisp.org>
35391 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35392 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35394 2007-03-24 Bruno Haible <bruno@clisp.org>
35396 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35398 2007-03-24 Bruno Haible <bruno@clisp.org>
35400 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35401 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35403 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35404 * modules/utf8-ucs4: Turn into a symbolic link to module
35407 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35409 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35410 unistr/u8-mbtouc-unsafe.
35412 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35413 * modules/utf16-ucs4: Turn into a symbolic link to module
35416 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35418 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35419 unistr/u16-mbtouc-unsafe.
35421 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35422 * modules/ucs4-utf8: Turn into a symbolic link to module
35425 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35426 * modules/ucs4-utf16: Turn into a symbolic link to module
35429 2007-03-24 Bruno Haible <bruno@clisp.org>
35431 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35432 Enable the function only if HAVE_INLINE.
35433 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35434 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35435 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35436 Enable the function only if HAVE_INLINE.
35437 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35438 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35439 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35440 Enable the function only if HAVE_INLINE.
35441 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35442 Enable the function only if HAVE_INLINE.
35443 * modules/utf8-ucs4: Update.
35444 * modules/utf8-ucs4-unsafe: Update.
35445 * modules/utf16-ucs4: Update.
35446 * modules/utf16-ucs4-unsafe: Update.
35447 * modules/ucs4-utf8: Update.
35448 * modules/ucs4-utf16: Update.
35450 2007-03-24 Bruno Haible <bruno@clisp.org>
35452 * lib/utf8-ucs4.h: Remove file.
35453 * lib/utf8-ucs4-unsafe.h: Remove file.
35454 * lib/utf16-ucs4.h: Remove file.
35455 * lib/utf16-ucs4-unsafe.h: Remove file.
35456 * lib/ucs4-utf8.h: Remove file.
35457 * lib/ucs4-utf16.h: Remove file.
35458 * lib/unistr.h: Include their previous contents.
35459 * m4/utf-ucs4.m4: Remove file.
35460 * m4/ucs4-utf.m4: Remove file.
35461 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35462 (Depends-on): Add unistr/base.
35463 (configure.ac): Remove gl_UTF_UCS4.
35464 (Makefile.am): Update.
35465 (Include): Change to unistr.h.
35466 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35467 (Depends-on): Add unistr/base.
35468 (configure.ac): Remove gl_UTF_UCS4.
35469 (Makefile.am): Update.
35470 (Include): Change to unistr.h.
35471 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35472 (Depends-on): Add unistr/base.
35473 (configure.ac): Remove gl_UTF_UCS4.
35474 (Makefile.am): Update.
35475 (Include): Change to unistr.h.
35476 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35477 (Depends-on): Add unistr/base.
35478 (configure.ac): Remove gl_UTF_UCS4.
35479 (Makefile.am): Update.
35480 (Include): Change to unistr.h.
35481 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35482 (Depends-on): Add unistr/base.
35483 (configure.ac): Remove gl_UCS4_UTF.
35484 (Makefile.am): Update.
35485 (Include): Change to unistr.h.
35486 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35487 (Depends-on): Add unistr/base.
35488 (configure.ac): Remove gl_UCS4_UTF.
35489 (Makefile.am): Update.
35490 (Include): Change to unistr.h.
35491 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35492 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35493 utf8-ucs4-unsafe.h.
35494 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35495 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35496 utf16-ucs4-unsafe.h.
35497 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35498 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35499 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35500 * lib/unistr/u8-strchr.c: Likewise.
35501 * lib/unistr/u8-strrchr.c: Likewise.
35502 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35503 * lib/unistr/u16-strchr.c: Likewise.
35504 * lib/unistr/u16-strrchr.c: Likewise.
35505 * lib/striconveh.c: Update.
35506 * lib/linebreak.c: Update.
35508 2007-03-24 Bruno Haible <bruno@clisp.org>
35510 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35511 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35513 2007-03-22 Bruno Haible <bruno@clisp.org>
35515 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35517 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
35519 * MODULES.html.sh (File system functions): New module write-any-file.
35520 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35521 * m4/write-any-file.m4: New files.
35523 2007-03-23 Eric Blake <ebb9@byu.net>
35525 * gnulib-tool: Rearrange space-tab sequences, since some editors
35528 2007-03-23 Eric Blake <ebb9@byu.net>
35530 * lib/version-etc.c (version_etc_va): Update license wording to
35531 be more concise. Recommended by Richard Stallman.
35533 2007-03-22 Bruno Haible <bruno@clisp.org>
35535 * lib/poll.c (MSG_PEEK): New fallback definition.
35537 2007-03-22 Bruno Haible <bruno@clisp.org>
35539 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35540 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35542 Fixes a compilation error on BeOS.
35544 2007-03-22 Bruno Haible <bruno@clisp.org>
35546 * modules/frexpl-tests: New file.
35547 * tests/test-frexpl.c: New file.
35549 * modules/frexpl: New file.
35550 * m4/frexpl.m4: New file.
35551 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35552 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35553 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35554 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35555 (Depends-on): Add frexpl. Remove isnanl-nolibm.
35556 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35558 2007-03-22 Bruno Haible <bruno@clisp.org>
35560 * lib/frexpl.c: Share code with lib/frexp.c.
35561 * modules/mathl (Files): Add lib/frexp.c.
35562 (Depends-on): Add isnanl-nolibm.
35564 2007-03-22 Bruno Haible <bruno@clisp.org>
35566 * modules/printf-frexp (Files): Add m4/frexp.m4.
35567 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35568 only if the found frexp function actually works.
35570 2007-03-22 Bruno Haible <bruno@clisp.org>
35572 * lib/frexp.c: Remove older implementation that uses divisions.
35574 2007-03-21 Bruno Haible <bruno@clisp.org>
35576 * modules/frexp-tests: New file.
35577 * tests/test-frexp.c: New file.
35579 * modules/frexp: New file.
35580 * lib/frexp.c: New file.
35581 * m4/frexp.m4: New file.
35582 * lib/math_.h (frexp): New declaration.
35583 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35585 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35587 2007-03-21 Bruno Haible <bruno@clisp.org>
35589 * modules/isnanl-tests: New file.
35590 * tests/test-isnanl.c: New file.
35592 * modules/isnanl: New file.
35593 * lib/isnanl.h: New file.
35594 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35595 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35596 gl_FUNC_ISNANL_WORKS.
35597 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35600 2007-03-21 Bruno Haible <bruno@clisp.org>
35602 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35605 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35606 * lib/vasnprintf.c: Update.
35607 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35608 tests/test-isnanl.h, remove tests/test-isnanl.c.
35609 (Makefile.am): Update.
35610 * tests/test-isnanl-nolibm.c: New file.
35611 * tests/test-isnanl.h: New file.
35612 * tests/test-isnanl.c: Remove file.
35614 2007-03-21 Jim Meyering <jim@meyering.net>
35616 When trying to open ".", treat ESTALE like EACCES.
35617 * lib/savewd.c (savewd_save): Resort to forking not just upon
35618 failure with EACCES, but also when errno is ESTALE.
35620 2007-03-20 Bruno Haible <bruno@clisp.org>
35622 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35623 Needed on AIX 5.1. Reported by Matthew Woehlke.
35625 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35627 Suggestions by Bruno Haible:
35628 * lib/acl-internal.h: Include "gettext.h" rather than rolling
35630 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35631 * modules/acl (Depends-on): Add gettext.
35633 2007-03-19 Bruno Haible <bruno@clisp.org>
35635 * modules/iconvme: Remove file.
35636 * lib/iconvme.h: Remove file.
35637 * lib/iconvme.c: Remove file.
35638 * m4/iconvme.m4: Remove file.
35640 2007-03-19 Bruno Haible <bruno@clisp.org>
35642 * doc/relocatable-maint.texi: Break long shell script line.
35643 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35645 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35647 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35648 handle file_has_acl.
35649 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35650 * lib/acl.c: Move header inclusions and related macro defns into
35651 lib/acl-internal.h.
35652 (S_ISLNK): Remove defn, since that's now done for us.
35653 (file_has_acl): Move to lib/file-has-acl.c.
35654 Call acl_trivial if available. This is the crucial part of the fix.
35655 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
35656 shared within the library. Rewrite a bit, partly to make it compatible
35657 with the GNU coding style.
35658 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35659 Remove unnecessary double-quotes.
35660 Don't test for acl_to_text; the build will catch that.
35661 Replace acl_entries if it doesn't exist and it is needed.
35662 Check for -lsec and acl_trivial (as used on Solaris 10).
35663 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35664 lib/file-has-acl.c.
35665 (Depends-on): Add sys_stat, for S_ISLNK.
35667 2007-03-19 Ben Pfaff <blp@gnu.org>
35669 * doc/gnulib.texi: Fix typos.
35670 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35672 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35674 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35675 If size is zero here, buf must be zero.
35677 2007-03-19 Simon Josefsson <simon@josefsson.org>
35679 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
35682 2007-03-18 Bruno Haible <bruno@clisp.org>
35684 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35685 Suggested by Eric Blake.
35687 2007-03-18 Ben Pfaff <blp@gnu.org>
35689 * doc/relocatable.texi: Recommend using as prefix a directory
35690 that does not exist and will never be created. Based on
35691 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35694 2007-03-17 Bruno Haible <bruno@clisp.org>
35696 * lib/fchownat.c: Include lchown.h.
35698 2007-03-17 Bruno Haible <bruno@clisp.org>
35700 Fix endless loop when the given allocated size was > INT_MAX.
35701 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35702 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35703 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35704 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35705 * lib/sprintf.c (sprintf): Likewise.
35707 2007-03-17 Bruno Haible <bruno@clisp.org>
35709 * tests/test-argp-2.sh (func_compare): Output a context diff.
35711 2007-03-17 Bruno Haible <bruno@clisp.org>
35713 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35714 locale's decimal-point character.
35716 2007-03-17 Bruno Haible <bruno@clisp.org>
35718 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35719 before comparing it. Needed because on some platforms (e.g. x86) a
35720 'long double' occupies less bytes than sizeof (long double).
35722 2007-03-17 Bruno Haible <bruno@clisp.org>
35724 * tests/test-crc.c (main): Make printf statements 64-bit clean.
35725 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35726 * tests/test-getaddrinfo.c (simple): Likewise.
35727 * tests/test-read-file.c (main): Likewise.
35729 2007-03-17 Bruno Haible <bruno@clisp.org>
35731 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35733 2007-03-17 Bruno Haible <bruno@clisp.org>
35735 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35738 2007-03-17 Bruno Haible <bruno@clisp.org>
35740 * tests/test-c-strcasecmp.c: Include c-strcase.h.
35741 * tests/test-c-strncasecmp.c: Likewise.
35743 2007-03-17 Bruno Haible <bruno@clisp.org>
35745 * modules/stdlib (Depends-on): Add unistd.
35746 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35747 Needed for MacOS X 10.3.
35749 2007-03-17 Bruno Haible <bruno@clisp.org>
35751 * lib/unistr/u-strdup.h: Include <stdlib.h>.
35753 2007-03-17 Bruno Haible <bruno@clisp.org>
35755 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35757 2007-03-17 Bruno Haible <bruno@clisp.org>
35759 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35760 to reflect files copied from gnulib (with or without modifications).
35761 Suggested by Jim Meyering.
35763 2007-03-17 Eric Blake <ebb9@byu.net>
35765 * NEWS: Document stdlib change from 2007-02-18.
35767 2007-03-17 Jim Meyering <jim@meyering.net>
35769 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35770 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35771 someone uses a name containing shell meta-characters.
35772 Reported by Alfred M. Szmidt.
35774 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35776 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35778 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35779 and copy gettext configuration files only if configure.ac contains
35780 a use of AM_GNU_GETTEXT_VERSION.
35782 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35784 * build-aux/bootstrap (gnulib_name): New variable.
35785 (gnulib_tool_options): Use it.
35787 2007-03-13 Simon Josefsson <simon@josefsson.org>
35789 * tests/test-des.c: Use new namespace.
35791 2007-03-15 Bruno Haible <bruno@clisp.org>
35793 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35794 Reported by James Youngman <jay@gnu.org>.
35796 2007-03-15 Bruno Haible <bruno@clisp.org>
35798 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35799 declared prototype. Needed with cc on OSF/1 5.1.
35801 2007-03-15 Bruno Haible <bruno@clisp.org>
35803 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35804 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35805 (struct gl_list_implementation): Add dispose_fn argument to the
35806 'create_empty', 'create' methods.
35807 (struct gl_list_impl_base): Add field 'dispose_fn'.
35808 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35810 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35811 dispose_fn argument.
35812 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35813 dispose_fn on the dropped values.
35814 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35815 dispose_fn argument.
35816 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35818 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35819 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35820 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35821 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35822 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35824 (gl_tree_list_free): Call dispose_fn on the dropped values.
35825 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35826 the dropped values.
35827 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35828 Add dispose_fn argument.
35829 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35830 Call dispose_fn on the dropped values.
35831 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35832 Add dispose_fn argument.
35833 (gl_sublist_create): Initialize the 'dispose_fn' field.
35834 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35835 * tests/test-array_list.c (main): Update.
35836 * tests/test-carray_list.c (main): Update.
35837 * tests/test-avltree_list.c (main): Update.
35838 * tests/test-rbtree_list.c (main): Update.
35839 * tests/test-avltreehash_list.c (main): Update.
35840 * tests/test-rbtreehash_list.c (main): Update.
35841 * tests/test-linked_list.c (main): Update.
35842 * tests/test-linkedhash_list.c (main): Update.
35843 * tests/test-array_oset.c (main): Update.
35845 2007-03-15 Bruno Haible <bruno@clisp.org>
35847 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35848 (gl_oset_create_empty): Add dispose_fn argument.
35849 (struct gl_oset_implementation): Add dispose_fn argument to
35850 'create_empty' method.
35851 (struct gl_oset_impl_base): Add dispose_fn field.
35852 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35853 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35854 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35856 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35857 (gl_tree_oset_free): Call dispose_fn on the dropped values.
35858 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35860 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35862 * tests/test-array_oset.c (main): Update.
35863 * tests/test-avltree_oset.c (main): Update.
35864 * tests/test-rbtree_oset.c (main): Update.
35865 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35867 2007-03-13 Bruno Haible <bruno@clisp.org>
35869 * tests/test-stdbool.c (i): Update after last patch.
35871 2007-03-12 Bruno Haible <bruno@clisp.org>
35873 * lib/quotearg.c: Include <wctype.h> early, before the definition of
35874 the iswprint macro. Needed on Solaris 2.5.1.
35876 2007-03-12 Bruno Haible <bruno@clisp.org>
35878 * tests/test-printf-frexp.c (main): Declare x as volatile.
35880 2007-03-12 Simon Josefsson <simon@josefsson.org>
35882 * doc/gnulib.texi (Build robot for gnulib): New section.
35884 2007-03-12 Jim Meyering <jim@meyering.net>
35886 * build-aux/bootstrap: New file.
35887 * build-aux/bootstrap.conf: New file, from coreutils.
35889 2007-03-11 Bruno Haible <bruno@clisp.org>
35891 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35893 2007-03-12 Simon Josefsson <simon@josefsson.org>
35895 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35896 avoid collisions with 'des_setkey'. Reported by Bruno Haible
35897 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
35899 2007-03-11 Bruno Haible <bruno@clisp.org>
35901 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35902 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35904 2007-03-11 Bruno Haible <bruno@clisp.org>
35906 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35907 formula. Needed for SunPRO C 5.0.
35909 2007-03-11 Bruno Haible <bruno@clisp.org>
35911 * modules/long-options (Depends-on): Add getopt.
35913 2007-03-11 Bruno Haible <bruno@clisp.org>
35915 * modules/modechange (Depends-on): Add stdbool.
35917 2007-03-11 Bruno Haible <bruno@clisp.org>
35919 * modules/i-ring (Depends-on): Add stdbool.
35921 2007-03-11 Bruno Haible <bruno@clisp.org>
35923 * modules/gc-des (Depends-on): Add stdbool.
35925 2007-03-11 Bruno Haible <bruno@clisp.org>
35927 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35929 2007-03-11 Bruno Haible <bruno@clisp.org>
35931 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35933 2007-03-11 Bruno Haible <bruno@clisp.org>
35935 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35937 2007-03-11 Bruno Haible <bruno@clisp.org>
35939 * lib/vasnprintf.c (sprintf): Undefine.
35941 2007-03-11 Bruno Haible <bruno@clisp.org>
35943 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35944 initializers in SunPRO C and Compaq C compilers.
35946 2007-03-11 Bruno Haible <bruno@clisp.org>
35948 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35949 decrementing code ANSI C compliant.
35951 2007-03-11 Bruno Haible <bruno@clisp.org>
35953 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35954 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35956 2007-03-11 Bruno Haible <bruno@clisp.org>
35958 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35959 <stdbool.h> substitute doesn't pass.
35961 2007-03-11 Bruno Haible <bruno@clisp.org>
35963 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35965 2007-03-11 Bruno Haible <bruno@clisp.org>
35967 * gnulib-tool (func_create_megatestdir): Create also an autobuild
35968 script, for submission to autobuild.josefsson.org.
35970 2007-03-10 Bruno Haible <bruno@clisp.org>
35972 * modules/canonicalize-lgpl-tests: New file.
35973 * tests/test-canonicalize-lgpl.sh: New file.
35974 * tests/test-canonicalize-lgpl.c: New file.
35976 * modules/c-strcase-tests: New file.
35977 * tests/test-c-strcase.sh: New file.
35978 * tests/test-c-strcasecmp.c: New file.
35979 * tests/test-c-strncasecmp.c: New file.
35981 * modules/atexit-tests: New file.
35982 * tests/test-atexit.sh: New file.
35983 * tests/test-atexit.c: New file.
35985 2007-03-10 Bruno Haible <bruno@clisp.org>
35987 * tests/test-binary-io.sh: Use temporary filenames that are not so
35988 likely to clash with those of other tests (in a parallel make).
35989 * tests/test-binary-io.c: Likewise.
35991 2007-03-10 Bruno Haible <bruno@clisp.org>
35993 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35994 fallback; use #error instead.
35995 Suggested by Simon Josefsson.
35997 2007-03-10 Bruno Haible <bruno@clisp.org>
35999 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36000 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36001 first and the last.
36003 2007-03-10 Bruno Haible <bruno@clisp.org>
36005 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36007 2007-03-10 Bruno Haible <bruno@clisp.org>
36009 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36011 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36012 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36013 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36015 2007-03-10 Bruno Haible <bruno@clisp.org>
36017 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36019 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36022 2007-03-09 Eric Blake <ebb9@byu.net>
36023 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
36025 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36026 types are not being provided by gnulib.
36027 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36028 types are supported.
36030 2007-03-10 Bruno Haible <bruno@clisp.org>
36032 * lib/stdio_.h (__attribute__): New macro.
36033 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36034 vsprintf): Specify __attribute__ __format__ for GCC.
36035 Suggested by Eric Blake.
36037 2007-03-09 Bruno Haible <bruno@clisp.org>
36039 * modules/printf-posix-tests: New file.
36040 * tests/test-printf-posix.sh: New file.
36041 * tests/test-printf-posix.c: New file.
36043 * modules/printf-posix: New file.
36044 * lib/printf.c: New file.
36045 * m4/printf-posix-rpl.m4: New file.
36046 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36048 * lib/stdio_.h (printf): New declaration.
36049 (format, __format__, ____printf____, ____scanf____, ____strftime____,
36050 ____strfmon____): New macros.
36051 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36054 2007-03-09 Bruno Haible <bruno@clisp.org>
36056 * tests/test-vasnprintf-posix2.sh: New file.
36057 * tests/test-vasnprintf-posix2.c: New file.
36058 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36059 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36060 (Makefile.am): Activate test-vasnprintf-posix2.sh.
36062 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36063 a locale dependent decimal point, rather than always '.'.
36065 2007-03-09 Eric Blake <ebb9@byu.net>
36067 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36068 spite of platforms like Tandem/NSK that define it to -1.
36070 2007-03-08 Bruno Haible <bruno@clisp.org>
36072 * modules/vprintf-posix-tests: New file.
36073 * tests/test-vprintf-posix.sh: New file.
36074 * tests/test-vprintf-posix.c: New file.
36075 * tests/test-printf-posix.h: New file.
36077 * modules/vprintf-posix: New file.
36078 * lib/vprintf.c: New file.
36079 * m4/vprintf-posix.m4: New file.
36080 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36082 * lib/stdio_.h (vprintf): New declaration.
36083 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36086 2007-03-08 Bruno Haible <bruno@clisp.org>
36088 * modules/fprintf-posix-tests: New file.
36089 * tests/test-fprintf-posix.sh: New file.
36090 * tests/test-fprintf-posix.c: New file.
36092 * modules/fprintf-posix: New file.
36093 * lib/fprintf.c: New file.
36094 * m4/fprintf-posix.m4: New file.
36095 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36097 * lib/stdio_.h (fprintf): New declaration.
36098 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36101 2007-03-08 Bruno Haible <bruno@clisp.org>
36103 * modules/vfprintf-posix-tests: New file.
36104 * tests/test-vfprintf-posix.sh: New file.
36105 * tests/test-vfprintf-posix.c: New file.
36106 * tests/test-fprintf-posix.h: New file.
36107 * tests/test-fprintf-posix.out: New file.
36109 * modules/vfprintf-posix: New file.
36110 * lib/vfprintf.c: New file.
36111 * m4/vfprintf-posix.m4: New file.
36112 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36114 * lib/stdio_.h (vfprintf): New declaration.
36115 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36118 2007-03-08 Bruno Haible <bruno@clisp.org>
36120 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36122 2007-03-08 Bruno Haible <bruno@clisp.org>
36124 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36125 instead of 'expr' invocations.
36126 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36127 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36128 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36129 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36130 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36131 Suggested by Paul Eggert.
36133 2007-03-08 Bruno Haible <bruno@clisp.org>
36135 * modules/fseterr-tests: New file.
36136 * tests/test-fseterr.c: New file.
36138 * modules/fseterr: New file.
36139 * lib/fseterr.h: New file.
36140 * lib/fseterr.c: New file.
36142 2007-03-08 Bruno Haible <bruno@clisp.org>
36144 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36145 * lib/getopt_.h: Likewise.
36146 * lib/mbswidth.h: Likewise.
36147 * lib/setenv.h: Likewise.
36148 * lib/vasnprintf.h: Likewise.
36149 * lib/vasprintf.h: Likewise.
36150 * lib/verror.h: Likewise.
36151 * lib/xsetenv.h: Likewise.
36152 * lib/xvasprintf.h: Likewise.
36154 2007-03-08 Jim Meyering <jim@meyering.net>
36156 * users.txt: Add parted.
36158 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36160 2007-03-07 Bruno Haible <bruno@clisp.org>
36162 * m4/printf.m4: Make the shell script snippets copy&pastable.
36164 2007-03-02 Bruno Haible <bruno@clisp.org>
36166 * lib/netinet_in_.h: New file.
36167 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36168 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36169 * modules/netinet_in (Files): Add lib/netinet_in_.h.
36170 (Depends-on): Add absolute-header.
36171 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36174 2007-03-03 Bruno Haible <bruno@clisp.org>
36176 * lib/sys_select_.h: New file.
36177 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36178 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36179 * modules/sys_select (Files): Add lib/sys_select_.h.
36180 (Depends-on): Add absolute-header.
36181 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36184 2007-03-02 Bruno Haible <bruno@clisp.org>
36186 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36187 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36189 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36190 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36191 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36192 * modules/sys_socket (Depends-on): Add absolute-header.
36193 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36194 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36195 (Include): Remove requirement of inclusion of <sys/types.h>.
36197 2007-03-02 Bruno Haible <bruno@clisp.org>
36199 * lib/byteswap_.h (bswap_32): Fix formula.
36201 2007-03-06 Bruno Haible <bruno@clisp.org>
36203 * modules/sprintf-posix-tests: New file.
36204 * tests/test-sprintf-posix.c: New file.
36206 * modules/sprintf-posix: New file.
36207 * lib/sprintf.c: New file.
36208 * m4/sprintf-posix.m4: New file.
36209 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36211 * lib/stdio_.h (sprintf): New declaration.
36212 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36215 2007-03-06 Bruno Haible <bruno@clisp.org>
36217 * modules/vsprintf-posix-tests: New file.
36218 * tests/test-vsprintf-posix.c: New file.
36219 * tests/test-sprintf-posix.h: New file.
36221 * modules/vsprintf-posix: New file.
36222 * lib/vsprintf.c: New file.
36223 * m4/vsprintf-posix.m4: New file.
36224 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36226 * lib/stdio_.h (vsprintf): New declaration.
36227 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36230 2007-03-06 Bruno Haible <bruno@clisp.org>
36232 * modules/vsnprintf (Depend-on): Remove minmax.
36234 2007-03-06 Bruno Haible <bruno@clisp.org>
36236 * modules/snprintf-posix-tests: New file.
36237 * tests/test-snprintf-posix.c: New file.
36239 * modules/snprintf-posix: New file.
36240 * m4/snprintf-posix.m4: New file.
36241 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36243 (gl_FUNC_SNPRINTF): Invoke it.
36244 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36245 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36247 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36249 2007-03-06 Bruno Haible <bruno@clisp.org>
36251 * modules/vsnprintf-posix-tests: New file.
36252 * tests/test-vsnprintf-posix.c: New file.
36253 * tests/test-snprintf-posix.h: New file.
36255 * modules/vsnprintf-posix: New file.
36256 * m4/vsnprintf-posix.m4: New file.
36257 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36259 (gl_FUNC_VSNPRINTF): Invoke it.
36260 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36261 * lib/stdio_.h (vsnprintf): Define as a replacement if
36262 REPLACE_VSNPRINTF is set.
36263 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36265 2007-03-06 Bruno Haible <bruno@clisp.org>
36267 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36268 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36270 2007-03-06 Bruno Haible <bruno@clisp.org>
36272 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36273 (asinl): Declare also if HAVE_DECL_ASINL is set.
36274 (atanl): Declare also if HAVE_DECL_ATANL is set.
36275 (ceill): Declare also if HAVE_DECL_CEILL is set.
36276 (cosl): Declare also if HAVE_DECL_COSL is set.
36277 (expl): Declare also if HAVE_DECL_EXPL is set.
36278 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36279 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36280 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36281 (logl): Declare also if HAVE_DECL_LOGL is set.
36282 (sinl): Declare also if HAVE_DECL_SINL is set.
36283 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36284 (tanl): Declare also if HAVE_DECL_TANL is set.
36285 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36286 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36287 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36288 declaration of frexpl, ldexpl.
36289 * modules/printf-frexpl (Depends-on): Add math.
36290 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36292 2007-03-05 Bruno Haible <bruno@clisp.org>
36294 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36295 frexpl and ldexpl are declared.
36296 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36298 2007-03-05 Bruno Haible <bruno@clisp.org>
36300 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36301 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36303 2007-03-05 Bruno Haible <bruno@clisp.org>
36305 * lib/stdio_.h: Include <stddef.h>.
36307 2007-03-05 Bruno Haible <bruno@clisp.org>
36309 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36311 2007-03-05 Bruno Haible <bruno@clisp.org>
36313 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36314 NetBSD 4, from Ralf Wildenhues.
36316 2007-03-04 Bruno Haible <bruno@clisp.org>
36318 * lib/vasprintf.h: Update #if logic for the case when the functions
36319 exist but are overridden.
36321 2007-03-04 Bruno Haible <bruno@clisp.org>
36323 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36324 implementations: glibc-2.4 and MacOS X 10.3.
36325 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36326 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36327 * tests/test-vasprintf-posix.c (test_function): Likewise.
36329 2007-03-04 Bruno Haible <bruno@clisp.org>
36331 * modules/vasprintf-posix-tests: New file.
36332 * tests/test-vasprintf-posix.c: New file.
36334 * modules/vasprintf-posix: New file.
36335 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36337 * m4/vasprintf-posix.m4: New file.
36338 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36340 (gl_FUNC_VASPRINTF): Invoke it.
36341 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36343 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36345 2007-03-04 Bruno Haible <bruno@clisp.org>
36347 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36348 REPLACE_GETTIMEOFDAY.
36349 * modules/sys_time (Makefile.am): Likewise.
36350 * m4/sys_time_h.m4: Likewise.
36351 * m4/gettimeofday.m4: Likewise.
36353 2007-03-04 Bruno Haible <bruno@clisp.org>
36355 * modules/vasnprintf-posix-tests: New file.
36356 * tests/test-vasnprintf-posix.c: New file.
36358 * modules/vasnprintf-posix: New file.
36359 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36361 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36362 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36363 REPLACE_VASNPRINTF is defined.
36364 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36365 gl_FUNC_VASNPRINTF.
36366 (gl_FUNC_VASNPRINTF): Invoke it.
36367 * m4/vasnprintf-posix.m4: New file.
36368 * m4/printf.m4: New file.
36370 2007-03-04 Bruno Haible <bruno@clisp.org>
36372 Compile progreloc.c only if --enable-relocatable is specified.
36373 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36374 if --enable-relocatable was specified.
36375 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36378 2007-03-04 Jim Meyering <jim@meyering.net>
36380 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36381 Use it consistently, rather than enumerating errno constants.
36383 2007-03-04 Bruno Haible <bruno@clisp.org>
36385 * modules/xvasprintf-tests: New file.
36386 * tests/test-xvasprintf.c: New file.
36388 * modules/vasprintf-tests: New file.
36389 * tests/test-vasprintf.c: New file.
36391 * modules/vasnprintf-tests: New file.
36392 * tests/test-vasnprintf.c: New file.
36394 * modules/vsnprintf-tests: New file.
36395 * tests/test-vsnprintf.c: New file.
36397 * modules/snprintf-tests: New file.
36398 * tests/test-snprintf.c: New file.
36400 2007-03-04 Bruno Haible <bruno@clisp.org>
36402 Compile relocatable.c only if --enable-relocatable is specified.
36403 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36404 gl_RELOCATABLE_LIBRARY.
36405 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36406 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36407 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36408 gl_RELOCATABLE_LIBRARY.
36409 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36410 (Makefile.am): Remove lib_SOURCES.
36411 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36412 gl_RELOCATABLE_LIBRARY.
36413 (Makefile.am): Remove lib_SOURCES.
36414 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36416 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36417 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36419 2007-03-04 Bruno Haible <bruno@clisp.org>
36421 * modules/argmatch-tests: New file.
36422 * tests/test-argmatch.c: New file.
36424 * tests/test-allocsa.c (main): Halve the number of loop runs.
36426 * modules/alloca-opt-tests: New file.
36427 * tests/test-alloca-opt.c: New file.
36429 2007-03-04 Jim Meyering <jim@meyering.net>
36431 Work around difference between Linux ACLs and Solaris 10 ZFS.
36432 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36435 2007-03-03 Bruno Haible <bruno@clisp.org>
36437 * modules/relocatable-prog (Depends-on): Add back progreloc's
36438 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36440 2007-03-03 Bruno Haible <bruno@clisp.org>
36442 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36443 * modules/relocatable-lib: New file.
36445 2007-03-03 Bruno Haible <bruno@clisp.org>
36447 * modules/relocatable-prog: Renamed from modules/relocatable.
36448 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36450 2007-03-03 Bruno Haible <bruno@clisp.org>
36452 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36453 m4/relocatable-lib.m4.
36454 (Depends-on): Remove 'relocatable'.
36455 (configure.ac): Add gl_RELOCATABLE_NOP.
36457 2007-03-03 Bruno Haible <bruno@clisp.org>
36459 * modules/relocatable-prog-wrapper: New file.
36460 * modules/relocatable (Depends-on): Add it. Remove all other
36461 dependencies except progname.
36462 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36464 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36465 (gl_FUNC_STRERROR): Nop.
36466 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36468 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36469 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36471 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36472 (gl_FUNC_READLINK): Update.
36474 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36476 2007-03-03 Bruno Haible <bruno@clisp.org>
36478 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36479 * modules/xreadlink (Depends-on): Add unistd.
36480 * modules/xreadlink-with-size (Depends-on): Likewise.
36482 2007-03-03 Bruno Haible <bruno@clisp.org>
36484 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36485 extracted from gt_FUNC_SETENV.
36486 (gt_FUNC_SETENV): Remove macro.
36487 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36488 remove gt_FUNC_SETENV.
36490 2007-03-03 Bruno Haible <bruno@clisp.org>
36492 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36493 ENABLE_RELOCATABLE here.
36494 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36496 2007-03-03 Bruno Haible <bruno@clisp.org>
36498 * modules/rbtreehash-list-tests (Depends-on): Add progname.
36499 * tests/test-rbtreehash_list.c: Include progname.h.
36500 (main): Call set_program_name.
36502 * modules/rbtree-oset-tests (Depends-on): Add progname.
36503 * tests/test-rbtree_oset.c: Include progname.h.
36504 (main): Call set_program_name.
36506 * modules/rbtree-list-tests (Depends-on): Add progname.
36507 * tests/test-rbtree_list.c: Include progname.h.
36508 (main): Call set_program_name.
36510 * modules/linked-list-tests (Depends-on): Add progname.
36511 * tests/test-linked_list.c: Include progname.h.
36512 (main): Call set_program_name.
36514 2007-03-03 Bruno Haible <bruno@clisp.org>
36516 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36517 All uses of __restrict changed to _Restrict_.
36518 * lib/glob_.h (__restrict): Remove macro.
36520 2007-03-02 Bruno Haible <bruno@clisp.org>
36522 * modules/gettext (configure.ac): Require gettext infrastructure
36523 from version 0.16.1.
36525 2007-03-02 Bruno Haible <bruno@clisp.org>
36527 * modules/linkedhash-list-tests (Depends-on): Add progname.
36528 * tests/test-linkedhash_list.c: Include progname.h.
36529 (main): Call set_program_name.
36531 * modules/carray-list-tests (Depends-on): Add progname.
36532 * tests/test-carray_list.c: Include progname.h.
36533 (main): Call set_program_name.
36535 * modules/avltreehash-list-tests (Depends-on): Add progname.
36536 * tests/test-avltreehash_list.c: Include progname.h.
36537 (main): Call set_program_name.
36539 * modules/avltree-oset-tests (Depends-on): Add progname.
36540 * tests/test-avltree_oset.c: Include progname.h.
36541 (main): Call set_program_name.
36543 * modules/avltree-list-tests (Depends-on): Add progname.
36544 * tests/test-avltree_list.c: Include progname.h.
36545 (main): Call set_program_name.
36547 * modules/array-oset-tests (Depends-on): Add progname.
36548 * tests/test-array_oset.c: Include progname.h.
36549 (main): Call set_program_name.
36551 * modules/array-list-tests (Depends-on): Add progname.
36552 * tests/test-array_list.c: Include progname.h.
36553 (main): Call set_program_name.
36555 * modules/argp-tests (Depends-on): Add progname.
36556 * tests/test-argp.c: Include argp.h first. Include progname.h.
36557 (main): Call set_program_name.
36559 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
36561 * doc/gnulib-tool.texi (Initial import): Reword description of
36562 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36563 limited effect even if defined after the first system include.
36565 2007-03-01 Bruno Haible <bruno@clisp.org>
36567 * build-aux/config.libpath: Update to libtool-1.5.22.
36568 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36570 2007-03-01 Bruno Haible <bruno@clisp.org>
36572 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36574 Reported by Ralf Wildenhues.
36576 2007-03-01 Bruno Haible <bruno@clisp.org>
36578 * build-aux/install-reloc: Remove object files left over by some
36580 Reported by Ralf Wildenhues.
36582 2007-03-01 Bruno Haible <bruno@clisp.org>
36584 * build-aux/install-reloc: Break long lines.
36586 2007-03-01 Bruno Haible <bruno@clisp.org>
36588 * doc/relocatable.texi: Document that it may not work on OpenBSD.
36589 Reported by Ralf Wildenhues.
36591 2007-03-01 Bruno Haible <bruno@clisp.org>
36593 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36594 include ordering constraints.
36596 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
36598 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36599 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36600 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36601 as another example.
36602 * lib/time_.h: Fix misspelling.
36603 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36604 Require gl_HEADER_TIME_H_DEFAULTS.
36605 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36606 * m4/time_r.m4 (gl_TIME_R): Likewise.
36607 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36609 2007-03-01 Bruno Haible <bruno@clisp.org>
36611 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36612 * m4/utimens.m4 (gl_UTIMENS): Likewise.
36614 2007-03-01 Jim Meyering <jim@meyering.net>
36616 * modules/xreadlink (Maintainer): Add my name.
36617 * modules/xreadlink-with-size (Depends-on): Alphabetize.
36619 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
36620 Bruno Haible <bruno@clisp.org>
36622 * build-aux/install-reloc: Compile also c-ctype.c.
36623 * build-aux/relocatable.sh.in: New file.
36624 * doc/relocatable.texi: New file.
36625 * doc/relocatable-maint.texi: New file.
36626 * doc/gnulib.texi: Include relocatable-maint.texi.
36627 * lib/progreloc.c: Include unistd.h unconditionally.
36628 * lib/relocwrapper.c: Include unistd.h unconditionally.
36630 (add_dotbin): Use c_tolower.
36631 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36632 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36633 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36634 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36635 to m4/relocatable-lib.m4.
36636 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36637 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36638 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36639 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36640 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36641 * modules/relocatable: New file.
36642 * modules/relocatable-lib: New file.
36643 * modules/relocatable-script: New file.
36645 2007-02-28 Bruno Haible <bruno@clisp.org>
36647 Import --enable-relocatable infrastructure.
36648 * build-aux/config.libpath: New file, from GNU gettext.
36649 * build-aux/install-reloc: New file, from GNU gettext.
36650 * build-aux/reloc-ldflags: New file, from GNU gettext.
36651 * lib/relocatable.h: New file, from GNU gettext.
36652 * lib/relocatable.c: New file, from GNU gettext.
36653 * lib/relocwrapper.c: New file, from GNU gettext.
36654 * m4/relocatable.m4: New file, from GNU gettext.
36656 2007-02-28 Bruno Haible <bruno@clisp.org>
36658 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36660 * modules/xreadlink: New file, from GNU gettext with modifications.
36661 * lib/xreadlink.c: New file, from GNU gettext.
36662 * lib/xreadlink.h: Add comments.
36663 (xreadlink): New declaration.
36665 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36666 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36667 lib/xreadlink-with-size.c.
36668 (configure.ac): Remove gl_XREADLINK invocation.
36669 (Makefile.am): Augment lib_SOURCES.
36670 * m4/xreadlink.m4: Remove file.
36671 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36672 (xreadlink_with_size): Renamed from xreadink.
36673 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36674 * modules/canonicalize (Depends-on): Replace xreadlink with
36675 xreadlink-with-size.
36676 * lib/canonicalize.c (canonicalize_filename_mode): Update.
36678 2007-02-25 Jim Meyering <jim@meyering.net>
36680 * build-aux/announce-gen: When complaining about excess arguments,
36683 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
36685 * README: Document signed integer overflow situation more
36688 2007-02-25 Bruno Haible <bruno@clisp.org>
36690 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36691 'a' or 'A' conversion.
36693 2007-02-25 Bruno Haible <bruno@clisp.org>
36695 * modules/filename: Renamed from modules/pathname.
36696 (Files): Replace lib/pathname.h with lib/filename.h. Replace
36697 lib/concatpath.c with lib/concat-filename.c.
36698 (Makefile.am): Update.
36699 (Include): Replace pathname.h with filename.h.
36700 * lib/filename.h: Renamed from lib/pathname.h.
36701 (concatenated_filename): Renamed from concatenated_pathname.
36702 * lib/concat-filename.c: Renamed from lib/concatpath.c.
36703 (concatenated_filename): Renamed from concatenated_pathname.
36704 * lib/findprog.c: Include filename.h instead of pathname.h.
36705 (find_in_path): Update.
36706 * lib/javacomp.c: Include filename.h instead of pathname.h.
36707 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36708 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36709 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36710 is_oldgcj_14_13_usable, is_javac_usable): Update.
36711 * lib/javaexec.c: Include filename.h instead of pathname.h.
36712 (execute_java_class): Update.
36713 * modules/findprog: Update.
36714 * modules/javacomp: Update.
36715 * modules/javaexec: Update.
36716 * MODULES.html.sh (File system functions): Add 'filename', remove
36719 2007-02-25 Bruno Haible <bruno@clisp.org>
36721 * modules/printf-frexpl-tests: New file.
36722 * tests/test-printf-frexpl.c: New file.
36724 * modules/printf-frexpl: New file.
36725 * lib/printf-frexpl.h: New file.
36726 * lib/printf-frexpl.c: New file.
36727 * m4/printf-frexpl.m4: New file.
36729 2007-02-25 Bruno Haible <bruno@clisp.org>
36731 * modules/printf-frexp-tests: New file.
36732 * tests/test-printf-frexp.c: New file.
36734 * modules/printf-frexp: New file.
36735 * lib/printf-frexp.h: New file.
36736 * lib/printf-frexp.c: New file.
36737 * m4/printf-frexp.m4: New file.
36739 2007-02-25 Bruno Haible <bruno@clisp.org>
36741 Assume automake >= 1.10 for the tests.
36742 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36743 * modules/arctwo-tests: Likewise.
36744 * modules/argp-tests: Likewise.
36745 * modules/avltree-list-tests: Likewise.
36746 * modules/avltree-oset-tests: Likewise.
36747 * modules/avltreehash-list-tests: Likewise.
36748 * modules/carray-list-tests: Likewise.
36749 * modules/crc-tests: Likewise.
36750 * modules/des-tests: Likewise.
36751 * modules/gc-arcfour-tests: Likewise.
36752 * modules/gc-arctwo-tests: Likewise.
36753 * modules/gc-des-tests: Likewise.
36754 * modules/gc-hmac-md5-tests: Likewise.
36755 * modules/gc-hmac-sha1-tests: Likewise.
36756 * modules/gc-md2-tests: Likewise.
36757 * modules/gc-md4-tests: Likewise.
36758 * modules/gc-md5-tests: Likewise.
36759 * modules/gc-pbkdf2-sha1-tests: Likewise.
36760 * modules/gc-rijndael-tests: Likewise.
36761 * modules/gc-sha1-tests: Likewise.
36762 * modules/gc-tests: Likewise.
36763 * modules/getaddrinfo-tests: Likewise.
36764 * modules/hmac-md5-tests: Likewise.
36765 * modules/hmac-sha1-tests: Likewise.
36766 * modules/linked-list-tests: Likewise.
36767 * modules/linkedhash-list-tests: Likewise.
36768 * modules/lock-tests: Likewise.
36769 * modules/md2-tests: Likewise.
36770 * modules/md4-tests: Likewise.
36771 * modules/md5-tests: Likewise.
36772 * modules/rbtree-list-tests: Likewise.
36773 * modules/rbtree-oset-tests: Likewise.
36774 * modules/rbtreehash-list-tests: Likewise.
36775 * modules/read-file-tests: Likewise.
36776 * modules/rijndael-tests: Likewise.
36777 * modules/stdint-tests: Likewise.
36778 * modules/tls-tests: Likewise.
36780 2007-02-24 Bruno Haible <bruno@clisp.org>
36782 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36783 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36784 function; instead check whether isnan with a double argument links.
36785 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36786 function; instead check whether isnan with a 'long double' argument
36788 Reported by Eric Blake <ebb9@byu.net>.
36790 2007-02-24 Bruno Haible <bruno@clisp.org>
36792 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36794 * lib/isnanl.c: Remove all code. Just include isnan.c.
36795 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36797 2007-02-25 Jim Meyering <jim@meyering.net>
36799 Avoid conflicting types for 'unsetenv' on FreeBSD.
36800 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36801 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36804 2007-02-24 Bruno Haible <bruno@clisp.org>
36806 * modules/isnanl-nolibm-tests: New file.
36807 * tests/test-isnanl.c: New file.
36809 * modules/isnanl-nolibm: New file.
36810 * lib/isnanl.h: New file.
36811 * lib/isnanl.c: New file.
36812 * m4/isnanl.m4: New file.
36814 2007-02-24 Bruno Haible <bruno@clisp.org>
36816 * modules/isnan-nolibm-tests: New file.
36817 * tests/test-isnan.c: New file.
36819 * modules/isnan-nolibm: New file.
36820 * lib/isnan.h: New file.
36821 * lib/isnan.c: New file.
36822 * m4/isnan.m4: New file.
36824 2007-02-24 Bruno Haible <bruno@clisp.org>
36826 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36827 assume that an exponent fits in 20 bits.
36829 2007-02-24 Jim Meyering <jim@meyering.net>
36831 * m4/regex.m4: Update the description of the configure-time option,
36832 --without-included-regex, to state accurately what the defaults are,
36833 and perhaps to give people an idea why using this option is risky.
36835 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
36837 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36838 loops on small arguments. This attempts to avoid the problem
36839 Bruno Haible reported for AIX 4.3.2 in
36840 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36842 2007-02-23 Bruno Haible <bruno@clisp.org>
36844 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36845 Needed for help2man.
36847 2007-02-23 Karl Berry <karl@gnu.org>
36849 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36850 exists, foo.h should be cvs-ignored, not committed.
36852 2007-02-23 Eric Blake <ebb9@byu.net>
36854 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
36855 * lib/stat-time.h (includes): Likewise.
36856 * lib/utimecmp.c (includes): Likewise.
36857 * lib/utimens.h (includes): Likewise.
36858 * lib/getdate.y (includes): Also include "timespec.h" for use
36859 internal to the module.
36860 * modules/utimens (Depends-on): Revert yesterday's patch.
36861 * modules/nanosleep (Depends-on): Add missing dependency.
36863 2007-02-22 Bruno Haible <bruno@clisp.org>
36865 * lib/glob.c: Don't include getlogin_r.h.
36867 2007-02-22 Jim Meyering <jim@meyering.net>
36869 * modules/utimens (Depends-on): Add timespec, required for
36870 utimens.h's inclusion of timespec.h.
36872 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
36874 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36875 long unreadable paths in GNU/Linux. Problem reported by Andreas
36877 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36878 I'll try to think of a better way to fix the Solaris problem.
36880 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36881 like glibc; on Solaris 10, it fails with errno == EINVAL.
36882 POSIX says the behavior is unspecified if the first argument is NULL,
36883 so play it safe and never pass NULL to the system getcwd.
36885 2007-02-21 Jim Meyering <jim@meyering.net>
36887 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36888 of gettimeofday. It would conflict with the one now always
36889 provided via sys_time_.h. Reported by Matthew Woehlke, as
36890 an IRIX 6.5 build failure.
36892 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
36894 Minor fixups to port to Solaris 10 with Sun C 5.8.
36895 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36896 * modules/getcwd (Depends-on): Add dirfd.
36897 * lib/putenv.c (putenv): #undef it.
36898 (rpl_putenv): New decl.
36899 (malloc, free): Include <stdlib.h> rather than prototyping separately.
36901 2007-02-20 Bruno Haible <bruno@clisp.org>
36903 * modules/stdio-tests: New file.
36904 * tests/test-stdio.c: New file.
36906 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36907 (Depends-on): Add stdio.
36908 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36909 (Include): Use <stdio.h> instead of vsnprintf.h.
36910 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36911 HAVE_DECL_VSNPRINTF.
36912 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36914 * modules/snprintf (Files): Remove lib/snprintf.h.
36915 (Depends-on): Add stdio.
36916 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36917 (Include): Use <stdio.h> instead of snprintf.h.
36918 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36919 HAVE_DECL_SNPRINTF.
36920 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36921 * lib/getaddrinfo.c: Likewise.
36923 * modules/stdio: New file.
36924 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36925 * lib/snprintf.h: Remove file.
36926 * lib/vsnprintf.h: Remove file.
36927 * lib/.cppi-disable: Remove snprintf.h.
36928 * m4/stdio_h.m4: New file.
36929 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36931 2007-02-20 Jim Meyering <jim@meyering.net>
36933 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36934 used by e.g., mingw. From Bruno Haible.
36936 2007-02-19 Bruno Haible <bruno@clisp.org>
36938 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36940 Reported by Ben Pfaff <blp@cs.stanford.edu>.
36942 2007-02-19 Bruno Haible <bruno@clisp.org>
36944 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36947 2007-02-19 Bruno Haible <bruno@clisp.org>
36949 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36951 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36953 2007-02-19 Jim Meyering <jim@meyering.net>
36955 Don't use FD after a successful "fdopendir (fd)".
36956 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36957 Reset it by calling dirfd on the just-obtained DIR*.
36959 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36960 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36962 2007-02-18 Bruno Haible <bruno@clisp.org>
36964 * lib/readlink.c: Include <unistd.h>.
36965 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36967 * modules/readlink (Depends-on): Add unistd.
36968 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36969 (Include): Add <unistd.h>.
36971 * lib/getlogin_r.h: Remove file.
36972 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36973 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36974 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36975 HAVE_DECL_GETLOGIN_R.
36976 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36977 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36978 (Include): Use <unistd.h> instead of getlogin_r.h.
36980 * lib/getcwd.h: Remove file.
36981 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36982 * lib/xgetcwd.c: Likewise.
36983 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36984 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36985 * modules/getcwd (Files): Remove lib/getcwd.h.
36986 (Depends-on): Add unistd.
36987 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36988 (Include): Use <unistd.h> instad of getcwd.h.
36990 * lib/ftruncate.c: Include <unistd.h> first.
36991 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36992 Set HAVE_FTRUNCATE.
36993 * modules/ftruncate (Depends-on): Add unistd.
36994 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36996 * lib/fchdir.c: Include <unistd.h> first.
36997 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36998 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36999 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37000 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37001 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37003 * lib/dup2.c: Include <unistd.h> first.
37004 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37006 * modules/dup2 (Depends-on): Add unistd.
37007 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37009 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37010 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37011 REPLACE_CHOWN. Don't define chown as a macro here.
37012 * modules/chown (Depends-on): Add unistd.
37013 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37015 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37016 Add definition for GL_LINK_WARNING.
37017 (chown, dup2): New declarations.
37018 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37020 (ftruncate): New declaration.
37021 (getcwd): New declaration, taken from old getcwd.h.
37022 (getlogin_r): New declaration, taken from old getlogin_r.h.
37023 (readlink): New declaration.
37024 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37025 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37026 (gl_PREREQ_UNISTD): Remove macro.
37027 (gl_UNISTD_MODULE_INDICATOR): New macro.
37028 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37029 many new variables. Don't set UNISTD_H.
37030 * modules/unistd (Description): Change.
37031 (Depends-on): Add link-warning.
37032 (configure.ac): Update.
37033 (Makefile.am): Create unistd.h always. Substitute many new variables
37036 2007-02-18 Bruno Haible <bruno@clisp.org>
37038 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37039 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37041 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37042 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37043 * lib/getsubopt.h: Remove file.
37044 * modules/getsubopt (Files): Remove lib/getsubopt.h.
37045 (Depends-on): Add stdlib.
37046 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37047 (Includes): Use <stdlib.h> instead of getsubopt.h.
37048 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37049 Set HAVE_GETSUBOPT.
37050 * lib/getsubopt.c: Don't include getsubopt.h.
37052 2007-02-18 Bruno Haible <bruno@clisp.org>
37054 * modules/fchdir (Depends-on): Add dup2.
37056 2007-02-18 Bruno Haible <bruno@clisp.org>
37058 * lib/stdlib_.h: Handle glibc's special invocation convention
37061 2007-02-18 Bruno Haible <bruno@clisp.org>
37063 * modules/stdlib-tests: New file.
37064 * tests/test-stdlib.c: New file.
37066 * modules/mkstemp (Files): Remove lib/mkstemp.h.
37067 (Depends-on): Add stdlib.
37068 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37069 (Includes): Use <stdlib.h> instead of mkstemp.h.
37070 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37071 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37072 * lib/mkstemp.c: Don't include mkstemp.h.
37073 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37074 * lib/stdlib--.h: Don't include mkstemp.h.
37076 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37077 (Depends-on): Add stdlib.
37078 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37079 (Includes): Use <stdlib.h> instead of mkdtemp.h.
37080 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37082 * lib/mkdtemp.c: Don't include mkdtemp.h.
37083 * lib/clean-temp.c: Don't include mkdtemp.h.
37085 * modules/exit (Files): Remove lib/exit.h.
37086 (Depends-on): Add stdlib.
37087 (Makefile.am): Remove lib_SOURCES.
37088 (Include): Use <stdlib.h> instead of exit.h.
37089 * lib/argmatch.c: Don't include exit.h.
37090 * lib/execute.c: Likewise.
37091 * lib/pagealign_alloc.c: Likewise.
37092 * lib/pipe.c: Likewise.
37093 * lib/wait-process.c: Likewise.
37094 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37095 * lib/exitfail.c: Likewise.
37096 * lib/savewd.c: Likewise.
37097 * lib/xsetenv.c: Likewise.
37099 * modules/stdlib: New file.
37100 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37101 and extra comments about mkstemp().
37102 * lib/exit.h: Remove file.
37103 * lib/mkdtemp.h: Remove file.
37104 * lib/mkstemp.h: Remove file.
37105 * m4/stdlib_h.m4: New file.
37106 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37108 2007-02-18 Bruno Haible <bruno@clisp.org>
37110 * modules/math-tests: New file.
37111 * tests/test-math.c: New file.
37113 * modules/math: New file.
37114 * modules/mathl (Files): Remove lib/mathl.h.
37115 (Depends-on): Add math.
37116 (Makefile.am): Don't mention mathl.h.
37117 (Include): Use <math.h> instead of mathl.h.
37118 * lib/math_.h: New file.
37119 * lib/mathl.h: Remove file.
37120 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37122 * lib/asinl.c: Likewise.
37123 * lib/atanl.c: Likewise.
37124 * lib/ceill.c: Likewise.
37125 * lib/cosl.c: Likewise.
37126 * lib/expl.c: Likewise.
37127 * lib/floorl.c: Likewise.
37128 * lib/frexpl.c: Likewise.
37129 * lib/ldexpl.c: Likewise.
37130 * lib/logl.c: Likewise.
37131 * lib/sincosl.c: Likewise.
37132 * lib/sinl.c: Likewise.
37133 * lib/sqrtl.c: Likewise.
37134 * lib/tanl.c: Likewise.
37135 * lib/trigl.c: Likewise.
37136 * m4/math_h.m4: New file.
37137 * MODULES.html.sh (Mathematics): Add math.
37139 2007-02-17 Bruno Haible <bruno@clisp.org>
37141 * modules/wctype-tests: New file.
37142 * tests/test-wctype.c: New file.
37144 * modules/wchar-tests: New file.
37145 * tests/test-wchar.c: New file.
37147 * modules/unistd-tests: New file.
37148 * tests/test-unistd.c: New file.
37150 * modules/time-tests: New file.
37151 * tests/test-time.c: New file.
37153 * modules/sysexits-tests: New file.
37154 * tests/test-sysexits.c: New file.
37156 * modules/sys_time-tests: New file.
37157 * tests/test-sys_time.c: New file.
37159 * modules/sys_stat-tests: New file.
37160 * tests/test-sys_stat.c: New file.
37162 * modules/sys_socket-tests: New file.
37163 * tests/test-sys_socket.c: New file.
37165 * modules/sys_select-tests: New file.
37166 * tests/test-sys_select.c: New file.
37168 * modules/string-tests: New file.
37169 * tests/test-string.c: New file.
37171 * modules/stdbool-tests: New file.
37172 * tests/test-stdbool.c: New file.
37174 * modules/netinet_in-tests: New file.
37175 * tests/test-netinet_in.c: New file.
37177 * modules/inttypes-tests: New file.
37178 * tests/test-inttypes.c: New file.
37180 * modules/fcntl-tests: New file.
37181 * tests/test-fcntl.c: New file.
37183 * modules/byteswap-tests: New file.
37184 * tests/test-byteswap.c: New file.
37186 * modules/arpa_inet-tests: New file.
37187 * tests/test-arpa_inet.c: New file.
37189 2007-02-17 Bruno Haible <bruno@clisp.org>
37191 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37192 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37193 if the corresponding module is not enabled. Emit link warnings if
37194 the function is used nevertheless.
37195 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37196 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37197 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37198 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37199 * modules/inttypes (Depends-on): Add link-warning.
37200 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37201 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37202 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37203 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37204 * modules/imaxdiv (configure.ac): Likewise.
37205 * modules/strtoimax (configure.ac): Likewise.
37206 * modules/strtoumax (configure.ac): Likewise.
37208 2007-02-17 Bruno Haible <bruno@clisp.org>
37210 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37211 gl_STRING_MODULE_INDICATOR_DEFAULTS.
37212 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37213 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37215 2007-02-17 Bruno Haible <bruno@clisp.org>
37217 * modules/link-warning: New file.
37218 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37219 * lib/string_.h (GL_LINK_WARNING): Remove definition.
37220 * modules/string (Depends-on): Add link-warning.
37221 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37223 * MODULES.html.sh (Support for building libraries and executables): Add
37226 2007-02-17 Bruno Haible <bruno@clisp.org>
37228 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37229 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37230 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37233 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
37234 Bruno Haible <bruno@clisp.org>
37236 * modules/tmpfile: New file.
37237 * lib/tmpfile.c: New file.
37238 * m4/tmpfile.m4: New file.
37239 * MODULES.html.sh (func_all_modules): New section "Input/output".
37241 2007-02-15 Bruno Haible <bruno@clisp.org>
37243 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37244 (supports_delete_on_close): New function.
37245 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37247 2007-02-14 Bruno Haible <bruno@clisp.org>
37249 * modules/mbspcasecmp-tests: New file.
37250 * tests/test-mbspcasecmp.sh: New file.
37251 * tests/test-mbspcasecmp.c: New file.
37253 New module mbspcasecmp.
37254 * modules/mbspcasecmp: New file.
37255 * lib/mbspcasecmp.c: New file.
37256 * lib/string_.h (strncasecmp): Change warning message.
37257 (mbspcasecmp): New declaration.
37258 * m4/mbspcasecmp.m4: New file.
37259 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37260 GNULIB_MBSPCASECMP.
37261 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37262 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37264 2007-02-14 Bruno Haible <bruno@clisp.org>
37266 * modules/mbsncasecmp-tests: New file.
37267 * tests/test-mbsncasecmp.sh: New file.
37268 * tests/test-mbsncasecmp.c: New file.
37270 New module mbsncasecmp.
37271 * modules/mbsncasecmp: New file.
37272 * lib/mbsncasecmp.c: New file.
37273 * lib/string_.h (mbsncasecmp): New declaration.
37274 * m4/mbsncasecmp.m4: New file.
37275 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37276 GNULIB_MBSNCASECMP.
37277 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37278 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37280 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37282 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37283 Verify that it doesn't overlap with our flags.
37284 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37285 do not have the desired effect in multibyte locales; instead, use
37287 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37288 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37289 we don't require GNU fnmatch ourselves (if our users require it, they
37290 should do so explicitly).
37292 Fix regex code so it doesn't rely on strcasecmp.
37293 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37294 Otherwise, include gnulib's langinfo.h.
37295 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37296 undesirable behavior in non-C locales. Instead, rely on localecharset.
37297 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37298 * modules/regex (FILES): Remove m4/codeset.m4.
37299 (Depends-on): Add localcharset. Remove strcase.
37301 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37303 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37304 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37306 2007-02-13 Bruno Haible <bruno@clisp.org>
37308 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37309 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37311 2007-02-12 Bruno Haible <bruno@clisp.org>
37313 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37314 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37315 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37316 time warning rather than a link error.
37318 2007-02-12 Bruno Haible <bruno@clisp.org>
37320 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37321 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37322 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37324 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37326 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37329 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37331 New module 'time', so that apps can include <time.h> as per
37332 POSIX and GNU instead of separate include files like time_r.h
37333 and timegm.h. This implementation tries out a simpler approach
37334 for replacing decls in standard include files (as compared to
37335 the string module), somewhat as an experiment.
37337 * config/srclist.txt: Comment out mktime.c for now.
37338 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37339 since it doesn't apply any more. Use generic wording instead.
37340 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37342 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37343 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37344 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37345 Don't include <sys/types.h>; no longer needed since we assume C89.
37346 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37347 * lib/strftime.c: Likewise.
37348 * lib/time_r.c: Likewise.
37349 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37350 * lib/nanosleep.c: Include <time.h> first, to check interface.
37351 * lib/strptime.c: Likewise.
37352 * lib/time_r.c: Likewise.
37353 * lib/timegm.c: Likewise.
37354 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37356 * lib/timegm.c: Don't include timegm.h; no longer needed.
37357 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37358 time.h now handles any problems in that area.
37359 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37360 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37361 that time.h defines struct timespec.
37362 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37363 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37365 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37366 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37367 needed. Set REPLACE_LOCALTIME.
37368 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37369 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37370 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37371 nanosleep; time_h.m4 now does that. Don't require
37372 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37373 module handles this now.
37374 * modules/getdate (Depends-on): Remove timespec. Add time.
37375 * modules/nanosleep (Depends-on): Likewise.
37376 * modules/stat-time (Depends-on): Likewise.
37377 * modules/nanosleep (Include): Include time.h, not timespec.h.
37378 * modules/strptime (Files): Remove lib/strptime.h.
37379 (Depends-on): Add extensions, time.
37380 (Include): Include time.h, not strptime.h.
37381 * modules/time_r (Files): Remove lib/time_r.h.
37382 (Depends-on): Add time.
37383 (Include): Include time.h, not time_r.h.
37384 * modules/timegm: Likewise.
37385 * modules/timespec (Description): Now does timespec-related decls
37386 of our own, instead of struct timespec itself.
37387 (Depends-on): Add time; remove extensions.
37388 (Maintainer): Add self.
37389 * modules/utimecmp (Depends-on): Add time; remove timespec.
37390 * modules/utimens (Depends-on): Likewise.
37391 * modules/xnanosleep (Depends-on): Likewise.
37393 2007-02-11 Bruno Haible <bruno@clisp.org>
37395 * lib/c-strstr.c: Include allocsa.h.
37396 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37397 * lib/c-strcasestr.c: Include allocsa.h.
37398 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37399 * lib/strcasestr.c: Include allocsa.h.
37400 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37401 * lib/mbsstr.c: Include allocsa.h.
37402 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37403 allocsa/freesa instead of malloc/free.
37404 * lib/mbscasestr.c: Include allocsa.h.
37405 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37406 allocsa/freesa instead of malloc/free.
37407 * modules/c-strstr (Depends-on): Add allocsa.
37408 * modules/c-strcasestr (Depends-on): Likewise.
37409 * modules/strcasestr (Depends-on): Likewise.
37410 * modules/mbsstr (Depends-on): Likewise.
37411 * modules/mbscasestr (Depends-on): Likewise.
37413 2007-02-11 Bruno Haible <bruno@clisp.org>
37415 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37417 * modules/mbsspn-tests: New file.
37418 * tests/test-mbsspn.sh: New file.
37419 * tests/test-mbsspn.c: New file.
37421 2007-02-11 Bruno Haible <bruno@clisp.org>
37423 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37425 * modules/mbspbrk-tests: New file.
37426 * tests/test-mbspbrk.sh: New file.
37427 * tests/test-mbspbrk.c: New file.
37429 2007-02-11 Bruno Haible <bruno@clisp.org>
37431 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37434 * modules/mbscspn-tests: New file.
37435 * tests/test-mbscspn.sh: New file.
37436 * tests/test-mbscspn.c: New file.
37438 2007-02-11 Bruno Haible <bruno@clisp.org>
37440 * modules/mbscasecmp-tests: New file.
37441 * tests/test-mbscasecmp.sh: New file.
37442 * tests/test-mbscasecmp.c: New file.
37444 2007-02-11 Bruno Haible <bruno@clisp.org>
37446 Ensure O(n) worst-case complexity of mbscasestr.
37447 * lib/mbscasestr.c: Include stdbool.h.
37448 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37450 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37451 the bookkeeping indicates that it's worth it.
37452 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37454 * modules/mbscasestr-tests: New file.
37455 * tests/test-mbscasestr1.c: New file.
37456 * tests/test-mbscasestr2.sh: New file.
37457 * tests/test-mbscasestr2.c: New file.
37458 * tests/test-mbscasestr3.sh: New file.
37459 * tests/test-mbscasestr3.c: New file.
37460 * tests/test-mbscasestr4.sh: New file.
37461 * tests/test-mbscasestr4.c: New file.
37462 * m4/locale-tr.m4: New file.
37464 2007-02-11 Bruno Haible <bruno@clisp.org>
37466 Ensure O(n) worst-case complexity of mbsstr.
37467 * lib/mbsstr.c: Include stdbool.h.
37468 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37470 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37471 bookkeeping indicates that it's worth it.
37472 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37474 * modules/mbsstr-tests: New file.
37475 * tests/test-mbsstr1.c: New file.
37476 * tests/test-mbsstr2.sh: New file.
37477 * tests/test-mbsstr2.c: New file.
37478 * tests/test-mbsstr3.sh: New file.
37479 * tests/test-mbsstr3.c: New file.
37480 * m4/locale-fr.m4: New file.
37482 2007-02-11 Bruno Haible <bruno@clisp.org>
37484 * lib/mbsrchr.c (mbsrchr): Fix bug.
37486 * modules/mbsrchr-tests: New file.
37487 * tests/test-mbsrchr.sh: New file.
37488 * tests/test-mbsrchr.c: New file.
37490 2007-02-11 Bruno Haible <bruno@clisp.org>
37492 * lib/mbschr.c (mbschr): Fix bug.
37494 * modules/mbschr-tests: New file.
37495 * tests/test-mbschr.sh: New file.
37496 * tests/test-mbschr.c: New file.
37497 * m4/locale-zh.m4: New file.
37499 2007-02-11 Bruno Haible <bruno@clisp.org>
37501 Support for copying multibyte string iterators.
37502 * lib/mbiter.h: Include <string.h>.
37503 (mbiter_multi_copy): New function.
37504 (mbi_copy): New macro.
37505 * lib/mbuiter.h: Include <string.h>.
37506 (mbuiter_multi_copy): New function.
37507 (mbui_copy): New macro.
37509 2007-02-11 Bruno Haible <bruno@clisp.org>
37512 * modules/mbslen: New file.
37513 * lib/mbslen.c: New file.
37514 * lib/string_.h (mbslen): New declaration.
37515 * m4/mbslen.m4: New file.
37516 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37518 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37519 * MODULES.html.sh (Internationalization functions): Add mbslen.
37521 2007-02-11 Bruno Haible <bruno@clisp.org>
37523 Ensure O(n) worst-case complexity of strcasestr substitute.
37524 * lib/strcasestr.c: Include stdbool.h.
37525 (knuth_morris_pratt): New function.
37526 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37527 bookkeeping indicates that it's worth it.
37528 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37530 * modules/strcasestr-tests: New file.
37531 * tests/test-strcasestr.c: New file.
37533 2007-02-11 Bruno Haible <bruno@clisp.org>
37535 Ensure O(n) worst-case complexity of c_strcasestr.
37536 * lib/c-strcasestr.c: Include stdbool.h, string.h.
37537 (knuth_morris_pratt): New function.
37538 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37539 the bookkeeping indicates that it's worth it.
37540 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37542 * modules/c-strcasestr-tests: New file.
37543 * tests/test-c-strcasestr.c: New file.
37545 2007-02-11 Bruno Haible <bruno@clisp.org>
37547 Ensure O(n) worst-case complexity of c_strstr.
37548 * lib/c-strstr.c: Include stdbool.h, string.h.
37549 (knuth_morris_pratt): New function.
37550 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37551 bookkeeping indicates that it's worth it.
37552 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37554 * lib/c-strstr.c: Complete rewrite for maintainability.
37556 * modules/c-strstr-tests: New file.
37557 * tests/test-c-strstr.c: New file.
37559 2007-02-11 Bruno Haible <bruno@clisp.org>
37561 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37562 5.2.1 and earlier, whereby \055 was treated just like the range
37564 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37566 2007-02-08 Bruno Haible <bruno@clisp.org>
37568 * modules/regex (Depends-on): Add stdbool.
37569 Reported by Dalibor Topic <robilad@kaffe.org>.
37571 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
37573 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37574 Prefer returning from main to exiting from it.
37575 Remove unnecessary parens after sizeof.
37577 2007-02-05 Bruno Haible <bruno@clisp.org>
37580 * modules/mbssep: New file.
37581 * lib/mbssep.c: New file.
37582 * lib/string_.h (strsep): Add a conditional link warning.
37583 (mbssep): New declaration.
37584 * m4/mbssep.m4: New file.
37585 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37587 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37588 * MODULES.html.sh (Internationalization functions): Add mbssep.
37590 2007-02-05 Bruno Haible <bruno@clisp.org>
37592 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37593 Optimize search in case of 1 delimiter.
37595 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37597 * lib/acl.h: Include sys/types.h before sys/acl.h.
37599 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37601 Merge upstream fix for glibc bugzilla #3957:
37603 2007-02-05 Jakub Jelinek <jakub@redhat.com>
37605 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37606 bit for RE_HAT_LISTS_NOT_NEWLINE.
37607 (build_charclass_op): Remove bogus comment.
37609 2007-02-05 Simon Josefsson <simon@josefsson.org>
37611 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37613 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37615 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37616 * lib/memmem.c [!defined _LIBC]: Include config.h.
37618 2007-02-04 Bruno Haible <bruno@clisp.org>
37620 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37623 2007-02-04 Bruno Haible <bruno@clisp.org>
37625 New module mbstok_r.
37626 * modules/mbstok_r: New file.
37627 * lib/mbstok_r.c: New file.
37628 * lib/string_.h (strtok_r): Change argument names to match the
37629 comments. Add a conditional link warning.
37630 (mbstok_r): New declaration.
37631 * m4/mbstok_r.m4: New file.
37632 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37634 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37635 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37637 2007-02-04 Bruno Haible <bruno@clisp.org>
37640 * modules/mbsspn: New file.
37641 * lib/mbsspn.c: New file.
37642 * lib/string_.h (strspn): Add a conditional link warning.
37643 (mbsspn): New declaration.
37644 * m4/mbsspn.m4: New file.
37645 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37647 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37648 * MODULES.html.sh (Internationalization functions): Add mbsspn.
37650 2007-02-04 Bruno Haible <bruno@clisp.org>
37652 New module mbspbrk.
37653 * modules/mbspbrk: New file.
37654 * lib/mbspbrk.c: New file.
37655 * lib/string_.h (strpbrk): Add a conditional link warning.
37656 (mbspbrk): New declaration.
37657 * m4/mbspbrk.m4: New file.
37658 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37660 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37661 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37663 2007-02-04 Bruno Haible <bruno@clisp.org>
37665 New module mbscspn.
37666 * modules/mbscspn: New file.
37667 * lib/mbscspn.c: New file.
37668 * lib/string_.h (strcspn): Add a conditional link warning.
37669 (mbscspn): New declaration.
37670 * m4/mbscspn.m4: New file.
37671 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37673 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37674 * MODULES.html.sh (Internationalization functions): Add mbscspn.
37676 2007-02-04 Bruno Haible <bruno@clisp.org>
37678 New module mbscasestr, reduced goal of strcasestr.
37679 * modules/mbscasestr: New file.
37680 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37681 (mbscasestr): Renamed from strcasestr.
37682 * lib/strcasestr.c: Don't include mbuiter.h.
37683 (strcasestr): Remove support for multibyte locales.
37684 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37685 Change the conditional link warning.
37686 (mbscasestr): New declaration.
37687 * m4/mbscasestr.m4: New file.
37688 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37689 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37690 REPLACE_STRCASESTR.
37691 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37692 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37693 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37694 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37695 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37696 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37697 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37698 (Depends-on): Remove mbuiter.
37699 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37701 2007-02-04 Bruno Haible <bruno@clisp.org>
37703 Simplify handling of strncasecmp.
37704 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37705 the conditional link warning.
37706 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37707 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37708 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37709 * modules/strcase (configure.ac): Don't invoke
37710 gl_STRING_MODULE_INDICATOR.
37711 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37713 2007-02-04 Bruno Haible <bruno@clisp.org>
37715 New module mbscasecmp, reduced goal of strcasecmp.
37716 * modules/mbscasecmp: New file.
37717 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37718 (mbscasecmp): Renamed from strcasecmp.
37719 * lib/strcasecmp.c: Don't include mbuiter.h.
37720 (strcasecmp): Remove support for multibyte locales.
37721 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37722 Change the conditional link warning.
37723 (mbscasecmp): New declaration.
37724 * m4/mbscasecmp.m4: New file.
37725 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37726 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37727 REPLACE_STRCASECMP.
37728 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37729 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37731 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37732 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37733 * modules/strcase (Files): Remove m4/mbrtowc.m4.
37734 (Depends-on): Remove mbuiter.
37735 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37737 2007-02-04 Bruno Haible <bruno@clisp.org>
37739 New module mbsstr. Remove module strstr.
37740 * modules/mbsstr: New file.
37741 * modules/strstr: Remove file.
37742 * lib/mbsstr.c: Renamed from lib/strstr.c.
37743 (mbsstr): Renamed from strstr.
37744 * lib/string_.h (strstr): Remove declaration. Change the conditional
37746 (mbsstr): New declaration.
37747 * m4/mbsstr.m4: New file.
37748 * m4/strstr.m4: Remove file.
37749 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37751 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37752 Don't initialize GNULIB_STRSTR.
37753 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37754 substitute GNULIB_STRSTR and REPLACE_STRSTR.
37755 * MODULES.html.sh (Internationalization functions): Add mbsstr.
37756 (Support for systems lacking ANSI C 89): Remove strstr.
37758 2007-02-04 Bruno Haible <bruno@clisp.org>
37760 New module mbsrchr.
37761 * modules/mbsrchr: New file.
37762 * lib/mbsrchr.c: New file.
37763 * lib/string_.h (strrchr): Add a conditional link warning.
37764 (mbsrchr): New declaration.
37765 * m4/mbsrchr.m4: New file.
37766 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37768 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37769 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37771 2007-02-04 Bruno Haible <bruno@clisp.org>
37774 * modules/mbschr: New file.
37775 * lib/mbschr.c: New file.
37776 * lib/string_.h (strchr): Add a conditional link warning.
37777 (mbschr): New declaration.
37778 * m4/mbschr.m4: New file.
37779 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37781 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37782 * MODULES.html.sh (Internationalization functions): Add mbschr.
37784 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37786 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37788 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37790 2007-02-04 Bruno Haible <bruno@clisp.org>
37792 New module description section 'configure.ac-early'.
37793 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37794 (func_get_autoconf_early_snippet): New function.
37795 (func_import, func_create_testdir): Use it. Remove special cases for
37796 modules 'extensions' and 'lock'.
37797 * modules/extensions (configure.ac-early): Require
37798 gl_USE_SYSTEM_EXTENSIONS.
37799 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37801 2007-02-04 Bruno Haible <bruno@clisp.org>
37803 Make use of gcj-4.3's -fsource and -ftarget option.
37804 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37805 and if so try the options -fsource and -ftarget.
37806 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37807 source_version, ftarget_option, target_version arguments.
37808 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37809 (is_envjavac_oldgcj_14_14_usable): Renamed from
37810 is_envjavac_gcj_14_14_usable.
37811 (is_envjavac_oldgcj_14_13_usable): Renamed from
37812 is_envjavac_gcj_14_13_usable.
37813 (is_gcj_present): Update.
37814 (is_gcj_43, is_gcj43_usable): New functions.
37815 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37816 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37817 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37818 try the options -fsource and -ftarget.
37820 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37822 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37823 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37826 2007-02-03 Jim Meyering <jim@meyering.net>
37828 Give tools a better chance to allocate space for very large buffers.
37829 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37831 Make pwd and readlink work also when run with an unreadable parent dir
37832 on systems with openat support.
37833 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37834 provided getcwd function, even when we have openat support.
37835 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37837 2007-02-02 Bruno Haible <bruno@clisp.org>
37839 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37840 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37841 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37842 portability problems if one of these functions is only used on specific
37844 Reported by Paul Eggert.
37846 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
37848 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37849 is causing more trouble than it's curing.
37850 * lib/regex_internal.h (__mempcpy): Remove.
37851 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37852 (and make the code a tad smaller to boot).
37853 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37855 2007-02-02 Jim Meyering <jim@meyering.net>
37857 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37858 section, not in the Makefile.am: one.
37860 2007-02-02 Eric Blake <ebb9@byu.net>
37862 * lib/strchrnul.c: Always include config.h first.
37864 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37865 gnulib strstr is not necessary here.
37867 2007-02-02 Simon Josefsson <simon@josefsson.org>
37869 * m4/socklen.m4: Fix typo.
37871 2007-02-02 Eric Blake <ebb9@byu.net>
37873 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37874 * modules/netinet_in (Makefile.am): Likewise.
37876 2007-02-01 Bruno Haible <bruno@clisp.org>
37878 * lib/string_.h (GL_LINK_WARNING): New macro.
37879 (strcasecmp, strstr, strcasestr): If provided by the system,
37880 conditionally define as a macro that leads to a warning instead of to
37882 (strncasecmp): Conditionally define as a macro that leads to a warning.
37884 2007-02-01 Karl Berry <karl@gnu.org>
37886 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37888 2007-02-01 Bruno Haible <bruno@clisp.org>
37890 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37893 2007-02-01 Eric Blake <ebb9@byu.net>
37895 * modules/regex (Depends-on): Revert dependence on mempcpy.
37896 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37897 module's definition of mempcpy.
37898 Reported by Paul Eggert.
37900 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
37902 * lib/string_.h: If the gnulib module XYZ is not present, undefine
37903 the symbol XYZ before redefining it. This fixes a problem with
37904 programs that don't use XYZ, when compiled on systems that define
37905 XYZ to something else.
37907 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
37909 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37910 occurs when "mkdir -m foo" creates a setgid directory that is (1)
37911 writeable to group or other and (2) is intended to have a special
37912 mode bit that is set or cleared. In such a case, the directory
37913 should be neither group- nor other-writeable until the special
37914 mode bits are right.
37916 2007-01-31 Eric Blake <ebb9@byu.net>
37918 * modules/mountlist (Depends-on): Add strstr.
37920 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37922 * modules/string (Makefile.am): Remove redundant replacement.
37923 * modules/regex (Depends-on): Add mempcpy.
37925 2007-01-31 Bruno Haible <bruno@clisp.org>
37927 New module description field 'Link'.
37928 * gnulib-tool (func_usage): Document --extract-link-directive.
37929 (sed_extract_prog): Recognize 'Link' directive.
37930 (func_get_link_directive): New function.
37931 (func_import): Show summary of link directives.
37932 Handle --extract-link-directive option.
37933 * modules/acl (Link): New section.
37934 * modules/clock-time (Link): New section.
37935 * modules/euidaccess (Link): New section.
37936 * modules/gettext (Link): New section.
37937 * modules/iconv (Link): New section.
37938 * modules/lock (Link): New section.
37939 * modules/nanosleep (Link): New section.
37940 * modules/readline (Link): New section.
37942 2007-01-27 Bruno Haible <bruno@clisp.org>
37944 Enforce the use of gnulib modules for unportable <string.h> functions.
37945 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37946 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37947 (gl_HEADER_STRING_H_BODY): Require it.
37948 * lib/string_.h: If the gnulib module XYZ is not present, redefine
37949 the symbol XYZ to one that gives a link error.
37950 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37951 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37952 * modules/mempcpy (configure.ac): Likewise.
37953 * modules/memrchr (configure.ac): Likewise.
37954 * modules/stpcpy (configure.ac): Likewise.
37955 * modules/stpncpy (configure.ac): Likewise.
37956 * modules/strcase (configure.ac): Likewise.
37957 * modules/strcasestr (configure.ac): Likewise.
37958 * modules/strchrnul (configure.ac): Likewise.
37959 * modules/strdup (configure.ac): Likewise.
37960 * modules/strndup (configure.ac): Likewise.
37961 * modules/strnlen (configure.ac): Likewise.
37962 * modules/strpbrk (configure.ac): Likewise.
37963 * modules/strsep (configure.ac): Likewise.
37964 * modules/strstr (configure.ac): Likewise.
37965 * modules/strtok_r (configure.ac): Likewise.
37967 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
37969 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37971 2007-01-30 Jim Meyering <jim@meyering.net>
37973 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37975 2007-01-29 Bruno Haible <bruno@clisp.org>
37977 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37978 * lib/execute.c: Likewise.
37979 * lib/pipe.c: Likewise.
37980 * lib/printf-args.h: Likewise.
37981 * lib/printf-args.c: Likewise.
37982 * lib/printf-parse.c: Likewise.
37983 * lib/vasnprintf.c: Likewise.
37985 2007-01-29 Eric Blake <ebb9@byu.net>
37987 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37990 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
37992 * lib/strptime.h (strptime): Use 'restrict' for args where
37993 POSIX requires this.
37994 * lib/strptime.c (strptime): Likewise.
37995 Change license notice from LGPL to GPL, since gnulib-tool will
37996 change this as needed.
37997 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37999 Include "strptime.h" first, to check interface.
38000 Do not #undef _LIBC and _NL_CURRENT.
38001 Do not include <stdlib.h>; no longer needed.
38002 Include "time_r.h" and declare ptime_locale_status
38003 only if _LIBC is not defined.
38004 (__P): Remove unused macro.
38005 (match_string): Bring back glibc version, but use it only if _LIBC
38007 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38008 Remove unnecessary assertion and abort() call.
38009 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38010 * m4/strptime.m4: Fix serial number comment.
38011 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38012 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38013 (Depends-on): Add time_r.
38015 2007-01-29 Bruno Haible <bruno@clisp.org>
38017 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38019 * modules/strptime (Depends-on): Add stdbool.
38020 * lib/strptime.h: Include <time.h> always. Add comments.
38022 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
38024 * modules/strptime: New file.
38025 * lib/strptime.h: New file.
38026 * lib/strptime.c: New file.
38027 * m4/strptime.m4: New file.
38029 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
38031 * MODULES.html.sh: New module mpsort.
38032 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38034 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38035 a circularity problem with HP-UX ia64 reported by Bob Proulx in
38036 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38038 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38040 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38042 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38043 the parameter matches the prototype.
38045 2007-01-28 Jim Meyering <jim@meyering.net>
38047 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38048 sys/time.h here, reverting that part of the previous patch:
38049 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38051 2007-01-28 Bruno Haible <bruno@clisp.org>
38053 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38054 value of $(SYS_TIME_H).
38055 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38056 remove it conditionally, too. [added by Jim Meyering]
38057 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38058 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38059 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38060 GETTIMEOFDAY_REPLACEMENT to 1.
38062 2007-01-28 Bruno Haible <bruno@clisp.org>
38064 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38065 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38066 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38067 Set UNISTD_H instead of UNISTD_H2.
38068 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38070 2007-01-28 Bruno Haible <bruno@clisp.org>
38072 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38073 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38075 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38077 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38078 (func_create_testdir): Ensure C locale for `grep' and `tr'
38080 (func_create_megatestdir): Avoid one `grep'. Fix bug in
38081 ACLOCAL_AMFLAGS parsing state machine.
38083 2007-01-27 Bruno Haible <bruno@clisp.org>
38085 * modules/unistr/base: Update.
38087 2007-01-27 Bruno Haible <bruno@clisp.org>
38089 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38090 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38091 * modules/unistr/u32-mbtouc-unsafe: Renamed from
38092 modules/unistr/u32-mbtouc.
38093 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38094 * lib/unistr.h: Update.
38095 * lib/linebreak.c: Update.
38096 * modules/unistr/u32-mbtouc: Renamed from
38097 modules/unistr/u32-mbtouc-safe.
38098 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38099 * lib/unistr.h: Update.
38100 * lib/unistr/u32-to-u8.c: Update.
38101 * lib/unistr/u32-to-u16.c: Update.
38103 2007-01-27 Bruno Haible <bruno@clisp.org>
38105 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38106 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38107 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38108 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38109 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38110 * modules/unistr/u16-mbtouc-unsafe: Renamed from
38111 modules/unistr/u16-mbtouc.
38112 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38113 * lib/unistr.h: Update.
38114 * lib/linebreak.c: Update.
38115 * modules/linebreak: Update.
38116 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38117 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38118 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38119 * modules/unistr/u16-mbtouc: Renamed from
38120 modules/unistr/u16-mbtouc-safe.
38121 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38122 * lib/unistr.h: Update.
38123 * lib/unistr/u16-to-u8.c: Update.
38124 * modules/unistr/u16-to-u8: Update.
38125 * lib/unistr/u16-to-u32.c: Update.
38126 * modules/unistr/u16-to-u32: Update.
38128 2007-01-27 Bruno Haible <bruno@clisp.org>
38130 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38131 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38132 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38133 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38134 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38135 * modules/unistr/u8-mbtouc-unsafe: Renamed from
38136 modules/unistr/u8-mbtouc.
38137 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38138 * lib/unistr.h: Update.
38139 * lib/striconveh.c: Update.
38140 * modules/striconveh: Update.
38141 * lib/linebreak.c: Update.
38142 * modules/linebreak: Update.
38143 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38144 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38145 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38146 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38147 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38148 * lib/unistr.h: Update.
38149 * lib/striconveh.c: Update.
38150 * modules/striconveh: Update.
38151 * lib/unistr/u8-to-u16.c: Update.
38152 * modules/unistr/u8-to-u16: Update.
38153 * lib/unistr/u8-to-u32.c: Update.
38154 * modules/unistr/u8-to-u32: Update.
38156 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38159 * lib/argz.c: Do not include strings.h nor memory.h, include
38160 string.h unconditionally. Patch by Simon Josefsson.
38162 2007-01-27 Bruno Haible <bruno@clisp.org>
38164 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38165 from gl_HEADER_STRING_H_BODY.
38166 (gl_HEADER_STRING_H_BODY): Require it.
38167 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38168 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38169 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38170 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38171 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38172 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38173 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38174 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38175 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38176 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38177 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38178 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38179 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38180 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38181 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38183 2007-01-27 Bruno Haible <bruno@clisp.org>
38185 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38186 check_PROGRAMS into noinst_PROGRAMS.
38187 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38188 check_PROGRAMS in this case.
38189 (func_import): Set for_test to false.
38190 (func_create_testdir): Set for_test to true.
38192 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38193 Bruno Haible <bruno@clisp.org>
38195 * modules/strcasestr (Files): Remove lib/strcasestr.h.
38196 (Depends-on): Add string.
38197 (Includes): Use <string.h> instead of strcasestr.h.
38198 * modules/string (Makefile.am): Also substitute the value of
38199 REPLACE_STRCASESTR.
38200 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38201 assume strcasestr is declared in <string.h> not <strings.h>. Also
38202 set REPLACE_STRCASESTR.
38203 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38204 REPLACE_STRCASESTR.
38205 * lib/strcasestr.h: Remove file.
38206 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38207 * lib/string_.h (strcasestr): New declaration.
38209 2007-01-27 Bruno Haible <bruno@clisp.org>
38211 * lib/string_.h: Use 'extern'.
38213 2007-01-27 Jim Meyering <jim@meyering.net>
38215 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38216 of set-but-not-used local, "q".
38218 * lib/mempcpy.c: Include <config.h> before <string.h>.
38219 This fixes a compilation error on HP-UX, due to the system's
38220 "restrict"-using mempcpy prototype.
38222 2007-01-26 Bruno Haible <bruno@clisp.org>
38224 Small optimization.
38225 * lib/javacomp.c: Include c-strstr.h.
38226 (is_envjavac_gcj): Use c_strstr instead of strstr.
38227 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38229 2007-01-26 Bruno Haible <bruno@clisp.org>
38231 * MODULES.html.sh (Unicode string functions): Add the new modules.
38233 * modules/uniconv/u32-strconv-to-locale: New file.
38234 * lib/uniconv/u32-strconv-to-locale.c: New file.
38236 * modules/uniconv/u16-strconv-to-locale: New file.
38237 * lib/uniconv/u16-strconv-to-locale.c: New file.
38239 * modules/uniconv/u8-strconv-to-locale: New file.
38240 * lib/uniconv/u8-strconv-to-locale.c: New file.
38242 * modules/uniconv/u32-strconv-from-locale: New file.
38243 * lib/uniconv/u32-strconv-from-locale.c: New file.
38245 * modules/uniconv/u16-strconv-from-locale: New file.
38246 * lib/uniconv/u16-strconv-from-locale.c: New file.
38248 * modules/uniconv/u8-strconv-from-locale: New file.
38249 * lib/uniconv/u8-strconv-from-locale.c: New file.
38251 * modules/uniconv/u32-strconv-to-enc: New file.
38252 * lib/uniconv/u32-strconv-to-enc.c: New file.
38253 * modules/uniconv/u32-strconv-to-enc-tests: New file.
38254 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38256 * modules/uniconv/u16-strconv-to-enc: New file.
38257 * lib/uniconv/u16-strconv-to-enc.c: New file.
38258 * lib/uniconv/u-strconv-to-enc.h: New file.
38259 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38260 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38262 * modules/uniconv/u8-strconv-to-enc: New file.
38263 * lib/uniconv/u8-strconv-to-enc.c: New file.
38264 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38265 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38267 * modules/uniconv/u32-strconv-from-enc: New file.
38268 * lib/uniconv/u32-strconv-from-enc.c: New file.
38269 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38270 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38272 * modules/uniconv/u16-strconv-from-enc: New file.
38273 * lib/uniconv/u16-strconv-from-enc.c: New file.
38274 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38275 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38277 * modules/uniconv/u8-strconv-from-enc: New file.
38278 * lib/uniconv/u8-strconv-from-enc.c: New file.
38279 * lib/uniconv/u-strconv-from-enc.h: New file.
38280 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38281 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38283 * modules/uniconv/u32-conv-from-enc: New file.
38284 * lib/uniconv/u32-conv-from-enc.c: New file.
38285 * modules/uniconv/u32-conv-from-enc-tests: New file.
38286 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38288 * modules/uniconv/u16-conv-from-enc: New file.
38289 * lib/uniconv/u16-conv-from-enc.c: New file.
38290 * lib/uniconv/u-conv-from-enc.h: New file.
38291 * modules/uniconv/u16-conv-from-enc-tests: New file.
38292 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38294 * modules/uniconv/u8-conv-from-enc: New file.
38295 * lib/uniconv/u8-conv-from-enc.c: New file.
38296 * modules/uniconv/u8-conv-from-enc-tests: New file.
38297 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38299 * modules/uniconv/base: New file.
38300 * lib/uniconv.h: New file.
38302 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38304 * doc/gnulib-tool.texi (Initial import): Update to match current
38305 behavior with strdup module.
38306 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38307 * lib/memmem.h: Remove; all uses removed. This is now done
38309 * lib/mempcpy.h: Likewise.
38310 * lib/memrchr.h: Likewise.
38311 * lib/stpcpy.h: Likewise.
38312 * lib/stpncpy.h: Likewise.
38313 * lib/strcase.h: Likewise.
38314 * lib/strchrnul.h: Likewise.
38315 * lib/strdup.h: Likewise.
38316 * lib/strndup.h: Likewise.
38317 * lib/strnlen.h: Likewise.
38318 * lib/strpbrk.h: Likewise.
38319 * lib/strsep.h: Likewise.
38320 * lib/strstr.h: Likewise.
38321 * lib/strtok_r.h: Likewise.
38322 * lib/string_.h: New file.
38323 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38324 Rely on <string.h> instead.
38325 * lib/canon-host.c: Likewise.
38326 * lib/chdir-long.c: Likewise.
38327 * lib/concatpath.c: Likewise.
38328 * lib/exclude.c: Likewise.
38329 * lib/fchdir.c: Likewise.
38330 * lib/getaddrinfo.c: Likewise.
38331 * lib/getcwd.c: Likewise.
38332 * lib/getsubopt.c: Likewise.
38333 * lib/glob.c: Likewise.
38334 * lib/hard-locale.c: Likewise.
38335 * lib/iconvme.c: Likewise.
38336 * lib/javacomp.c: Likewise.
38337 * lib/mempcpy.c: Likewise.
38338 * lib/memrchr.c: Likewise.
38339 * lib/regex_internal.h: Likewise.
38340 * lib/stpncpy.c: Likewise.
38341 * lib/strcasecmp.c: Likewise.
38342 * lib/strchrnul.c: Likewise.
38343 * lib/strdup.c: Likewise.
38344 * lib/striconv.c: Likewise.
38345 * lib/striconveh.c: Likewise.
38346 * lib/striconveha.c: Likewise.
38347 * lib/strncasecmp.c: Likewise.
38348 * lib/strndup.c: Likewise.
38349 * lib/strnlen.c: Likewise.
38350 * lib/strsep.c: Likewise.
38351 * lib/strstr.c: Likewise.
38352 * lib/strtok_r.c: Likewise.
38353 * lib/userspec.c: Likewise.
38354 * lib/w32spawn.h: Likewise.
38355 * lib/xstrndup.c: Likewise.
38356 * lib/mountlist.c (strstr): Remove decl.
38357 * m4/string_h.m4: New file.
38358 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38359 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38360 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38361 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38362 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38363 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38364 Set REPLACE_STRCASECMP if necessary.
38365 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38366 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38367 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38368 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38369 HAVE_DECL_STRDUP if necessary.
38370 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38371 since gl_FUNC_STRNDUP does that now.
38372 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38373 Check for decl here...
38374 (gl_PREREQ_STRNLEN): ... not here.
38375 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38376 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38377 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38378 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38380 * modules/string: New file.
38381 * modules/memmem (Files): Remove special-purpose include file.
38382 (Depends-on): Add string.
38383 (Include): Include <string.h>, not the removed file.
38384 * modules/mempcpy: Likewise.
38385 * modules/memrchr: Likewise.
38386 * modules/stpcpy: Likewise.
38387 * modules/stpncpy: Likewise.
38388 * modules/strcase: Likewise.
38389 * modules/strchrnul: Likewise.
38390 * modules/strdup: Likewise.
38391 * modules/strndup: Likewise.
38392 * modules/strnlen: Likewise.
38393 * modules/strpbrk: Likewise.
38394 * modules/strsep: Likewise.
38395 * modules/strstr: Likewise.
38396 * modules/strtok_r: Likewise.
38397 * tests/test-dirname.c: Don't include "strdup.h", since
38398 <string.h> now suffices.
38399 * tests/test-memmem.c: Don't include "memmem.h", since
38400 <string.h> now suffices.
38402 2007-01-25 Bruno Haible <bruno@clisp.org>
38404 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38407 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38408 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38409 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38410 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38412 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38413 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38414 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38415 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38416 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38417 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38419 2007-01-24 Bruno Haible <bruno@clisp.org>
38421 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38422 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38423 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38424 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38426 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38427 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38428 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38429 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38430 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38431 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38433 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38435 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38436 Reported by Ralf Wildenhues.
38438 2007-01-24 Bruno Haible <bruno@clisp.org>
38440 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38441 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38443 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38444 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38445 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38447 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38449 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38450 Don't use 'exit'; just return from 'main'.
38451 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38453 * lib/fnmatch_.h: Readjust white space and comments to match
38454 glibc, to avoid spurious diffs.
38456 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38458 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38459 2004-12-01 change by Jakub Jelinek, since this code won't compile
38460 if !LIBC. Problem reported by Bob Proulx.
38462 2007-01-23 Bruno Haible <bruno@clisp.org>
38464 * lib/striconveh.c: Include c-strcaseeq.h.
38465 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38466 * modules/striconveh (Depends-on): Add c-strcaseeq.
38468 2007-01-23 Bruno Haible <bruno@clisp.org>
38470 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38472 * modules/c-strcaseeq: New file.
38473 * lib/c-strcaseeq.h: New file.
38475 * modules/streq: New file.
38476 * lib/streq.h: New file.
38478 2007-01-23 Bruno Haible <bruno@clisp.org>
38480 * modules/striconveha-tests: New file.
38481 * tests/test-striconveha.c: New file.
38483 * lib/striconveha.h: Include <stdbool.h>.
38484 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38485 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38486 (mem_iconveha_notranslit): Renamed from mem_iconveha.
38487 (mem_iconveha): New function.
38488 (str_iconveha_notranslit): Renamed from str_iconveha.
38489 (str_iconveha): New function.
38490 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38493 2007-01-23 Bruno Haible <bruno@clisp.org>
38495 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38496 encodings without forgiving before trying any encoding with handler.
38497 (str_iconveha): Try all encodings without forgiving before trying any
38498 encoding with handler.
38500 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38502 Import the following changes from libc.
38504 2005-10-14 Ulrich Drepper <drepper@redhat.com>
38506 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38508 2004-12-01 Jakub Jelinek <jakub@redhat.com>
38510 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38511 normal_bracket label.
38513 2004-09-01 Jakub Jelinek <jakub@redhat.com>
38516 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38517 to normal_bracket after fetching the next character.
38519 2007-01-22 Bruno Haible <bruno@clisp.org>
38521 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38523 * lib/striconveh.c (iconv_carefully_1): New function.
38524 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38526 (str_cd_iconveh): Update.
38527 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38528 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38529 * tests/test-striconveh.c (MAGIC): New macro.
38530 (new_offsets): New function.
38531 (main): Test call with and without offsets.
38533 2007-01-22 Bruno Haible <bruno@clisp.org>
38535 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38536 * modules/sys_select (Makefile.am): Likewise.
38537 * modules/sys_socket (Makefile.am): Likewise.
38538 * modules/sys_time (Makefile.am): Likewise.
38540 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
38542 * modules/gettimeofday (License): Change from GPL to LGPL, since
38543 gettimeofday is a library function.
38545 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38547 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38549 2007-01-21 Bruno Haible <bruno@clisp.org>
38551 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38553 2007-01-21 Bruno Haible <bruno@clisp.org>
38555 * modules/striconveha: New file.
38556 * lib/striconveha.h: New file.
38557 * lib/striconveha.c: New file.
38558 * MODULES.html.sh (Internationalization functions): Add striconveha.
38559 * lib/striconv.c (str_iconv): Optimize the case of an empty input
38561 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38563 2007-01-21 Bruno Haible <bruno@clisp.org>
38565 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38566 * lib/striconveh.c (str_iconveh): Likewise.
38568 2007-01-21 Bruno Haible <bruno@clisp.org>
38570 * lib/striconveh.h (mem_iconveh): New declaration.
38571 * lib/striconveh.c (mem_iconveh): New function.
38572 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38574 2007-01-21 Bruno Haible <bruno@clisp.org>
38576 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38578 * lib/striconveh.h (mem_cd_iconveh): Change specification.
38579 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38580 original result buffer.
38581 (str_cd_iconveh): Update.
38582 * tests/test-striconveh.c (main): Update.
38584 * lib/striconv.h (mem_cd_iconv): Change specification.
38585 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38587 (str_cd_iconv): Update.
38588 * tests/test-striconv.c (main): Update.
38590 2007-01-21 Bruno Haible <bruno@clisp.org>
38592 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38594 2007-01-20 Jim Meyering <jim@meyering.net>
38596 * lib/userspec.c (parse_with_separator): If a user or group string
38597 starts with "+", skip the corresponding name-to-ID look-up, since
38598 such a look-up must fail: user and group names may not include "+".
38600 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
38602 * lib/poll.c: Include sys/time.h and time.h unconditionally,
38603 since we now assume the sys_time module.
38604 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38605 check for sys/time.h; no longer needed.
38606 * modules/poll (Depends-on): Depend on sys_time.
38608 2007-01-18 Bruno Haible <bruno@clisp.org>
38610 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38611 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38613 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38616 * tests/test-gettimeofday.c: Include <time.h>.
38617 (dummy): Remove variable.
38619 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38620 gl_HEADER_SYS_TIME_H.
38621 (gl_HEADER_SYS_TIME_H): New macro.
38623 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38624 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38625 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38626 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38627 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38628 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38629 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38630 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38631 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38632 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38633 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38635 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38636 last change; it caused a compilation error when cross-compiling to
38639 2007-01-18 Jim Meyering <jim@meyering.net>
38641 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38642 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38643 than the race-prone "test -d sys || mkdir sys".
38644 (configure.ac): Use AC_PROG_MKDIR_P.
38645 * modules/sys_select: Likewise.
38646 * modules/sys_socket: Likewise.
38647 * modules/sys_time: Likewise.
38649 2007-01-18 Eric Blake <ebb9@byu.net>
38651 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38652 replace gettimeofday.
38653 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38654 name, to avoid infinite recursion.
38656 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
38658 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38660 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38661 assume timespec.h defines struct timeval.
38662 * lib/settime.c: Likewise.
38663 * lib/utimens.c: Likewise.
38664 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38665 since we now assume the gettimeofday module.
38666 * lib/tempname.c (__gen_tempname): Likewise.
38667 * lib/gettimeofday.h: Remove.
38668 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38669 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38670 Include <time.h>, for 'time()'.
38671 (localtime_buffer_addr): Also use this workaround if
38672 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
38673 to simplify the uses. All uses changed.
38674 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38675 that #undef is inside {}, and 'const' follows type name consistently.
38676 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38677 (gettimeofday): Do not use the maximum possible value for
38678 tv->tv_usec, since that might break usages other than ls.c.
38679 Instead, we'll leave ls.c alone. This undoes today's patch
38680 by Bruno. Add a compile-time warning for 1s-clock resolution;
38681 we've never observed the problem but might as well keep the
38683 * lib/nanosleep.c: Include timespec.h first, for interface check.
38684 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38685 now assume the sys_time module.
38686 * lib/tempname.c: Likewise.
38687 * lib/timespec.h: Likewise.
38688 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38690 * lib/strftime.c: Likewise.
38691 * lib/timespec.h: Likewise.
38692 * lib/posixtm.c: Include posixtm.h first, for interface check.
38693 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38694 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38695 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38696 * lib/sys_time_.h: New file.
38697 * lib/timespec.h (struct timespec): Use long int, not long.
38698 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38699 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38700 Remove obsolescent call to AC_HEADER_TIME.
38701 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38702 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38703 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38704 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38706 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38707 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38708 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38709 into the sys_time module. Check for gettimeofday just once.
38710 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
38711 for gettimeofday signature to just check the signature. Merely
38712 compile it, since linking doesn't test signature. Improve test for
38713 whether gettimeofday.o is actually needed.
38714 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38715 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
38716 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
38717 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38718 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38719 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38720 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38721 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38722 than worrying about sys/time.h.
38723 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38724 Don't bother worrying about TIME_WITH_SYS_TIME.
38725 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38726 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38727 * m4/sys_time_h.m4: New file.
38728 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38729 Don't include sys/time.h. Return from main rather than exiting.
38730 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38732 * modules/gethrxtime (Depends-on): Add sys_time.
38733 * modules/gettime (Depends-on): Likewise.
38734 * modules/gettimeofday (Depends-on): Likewise.
38735 * modules/nanosleep (Depends-on): Likewise.
38736 * modules/settime (Depends-on): Likewise.
38737 * modules/tempname (Depends-on): Likewise.
38738 * modules/utimens (Depends-on): Likewise.
38739 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38740 (Include:) Change back to <sys/time.h>.
38741 (Maintainer:) Add self.
38742 * modules/sys_time: New file.
38743 * modules/tempname (Depends-on): Add gettimeofday.
38744 * tests/test-gettimeofday.c: Include <sys/time.h>
38745 rather than gettimeofday.h.
38747 2007-01-17 Bruno Haible <bruno@clisp.org>
38749 * gnulib-tool (func_get_license): Revert last patch. Instead, let
38750 the license default to GPL.
38751 (func_create_testdir): Don't complain if a module is LGPL and its
38752 tests module depends on GPLed modules.
38754 2007-01-17 Bruno Haible <bruno@clisp.org>
38756 * lib/gettimeofday.c (gettimeofday): Add code for the case
38757 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38758 maximum possible value for tv->tv_usec, rather than the minimum one.
38760 2005-10-08 Martin Lambers <marlam@marlam.de>
38761 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38762 2007-01-16 Bruno Haible <bruno@clisp.org>
38764 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38765 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38766 gl_FUNC_GETTIMEOFDAY.
38767 (Include): Add gettimeofday.h.
38768 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38769 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38770 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38771 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38772 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38773 * lib/gettimeofday.h: New file.
38774 * lib/gettimeofday.c: Include <sys/timeb.h>.
38775 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38776 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38777 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38778 fall back on time().
38780 * tests/test-gettimeofday.c: New file.
38781 * modules/gettimeofday-tests: New file.
38783 2007-01-16 Eric Blake <ebb9@byu.net>
38785 * modules/fnmatch (Depends-on): Depend on wchar.
38786 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38787 * m4/fnmatch.m4: Likewise.
38788 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38789 * m4/mbchar.m4: Likewise.
38790 * modules/mbswidth (Depends-on): Depend on wchar.
38791 * lib/mbswidth.c: Assume <wchar.h>.
38792 * m4/mbswidth.m4: Likewise.
38793 * modules/quotearg (Depends-on): Depend on wchar.
38794 * lib/quotearg.c: Assume <wchar.h>.
38795 * m4/quotearg.m4: Likewise.
38796 * modules/regex (Depends-on): Depend on wchar.
38797 * lib/regex_internal.h: Assume <wchar.h>.
38798 * m4/regex.m4: Likewise.
38799 * modules/stdint (Depends-on): Depend on wchar.
38800 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38801 * m4/stdint.m4: Likewise.
38802 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38803 * modules/strftime (Depends-on): Depend on wchar.
38804 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38805 * modules/strtol (Depends-on): Depend on wchar.
38806 * lib/strtol.c: Assume <wchar.h>.
38807 * modules/wcwidth (Depends-on): Depend on wchar.
38808 * lib/wcwidth.h: Assume <wchar.h>.
38809 * m4/wcwidth.m4: Likewise.
38811 2007-01-16 Bruno Haible <bruno@clisp.org>
38813 * modules/csharpexec-script: New, created from...
38814 * modules/csharpexec: ... this.
38816 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38818 * modules/javaexec-script: New, created from...
38819 * modules/javaexec: ... this.
38821 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38823 * modules/poll (Dependencies): Add sys_select.
38825 2007-01-15 Jim Meyering <jim@meyering.net>
38827 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38828 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38829 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38830 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38832 2007-01-15 Bruno Haible <bruno@clisp.org>
38834 * modules/striconveh: New file.
38835 * lib/striconveh.h: New file.
38836 * lib/striconveh.c: New file.
38837 * MODULES.html.sh (Internationalization functions): Add striconveh.
38839 * modules/striconveh-tests: New file.
38840 * tests/test-striconveh.c: New file.
38842 2007-01-15 Bruno Haible <bruno@clisp.org>
38844 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38845 not from GNU libiconv or GNU libc.
38847 2007-01-15 Bruno Haible <bruno@clisp.org>
38849 * doc/gnulib-intro.texi (Copyright): Explain the different license
38850 terms for module descriptions, autoconf macros, tests, documentation.
38852 2007-01-14 Bruno Haible <bruno@clisp.org>
38854 * modules/striconv-tests: New file.
38855 * tests/test-striconv.c: New file.
38857 2007-01-14 Bruno Haible <bruno@clisp.org>
38859 * modules/iconv-tests: New file.
38860 * tests/test-iconv.c: New file.
38862 2007-01-14 Bruno Haible <bruno@clisp.org>
38864 * gnulib-tool (func_get_license): For test modules, use the license of
38867 2007-01-14 Bruno Haible <bruno@clisp.org>
38869 * modules/iconv (Include): Clarify that <iconv.h> can only be included
38870 if iconv is found to exist.
38872 2007-01-14 Bruno Haible <bruno@clisp.org>
38874 * modules/c-ctype-tests: New file.
38875 * tests/test-c-ctype.c: New file.
38877 2007-01-14 Bruno Haible <bruno@clisp.org>
38879 * modules/binary-io-tests: New file.
38880 * tests/test-binary-io.sh: New file.
38881 * tests/test-binary-io.c: New file.
38883 2007-01-14 Bruno Haible <bruno@clisp.org>
38885 * modules/array-oset-tests: New file.
38886 * tests/test-array_oset.c: New file.
38888 2007-01-14 Bruno Haible <bruno@clisp.org>
38890 * modules/array-list-tests: New file.
38891 * tests/test-array_list.c: New file.
38893 2007-01-14 Bruno Haible <bruno@clisp.org>
38895 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38897 Reported by Simon Josefsson in
38898 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38900 2007-01-14 Bruno Haible <bruno@clisp.org>
38902 * modules/allocsa-tests: New file.
38903 * tests/test-allocsa.c: New file.
38905 2007-01-14 Bruno Haible <bruno@clisp.org>
38907 * modules/fchdir (Depends-on): Add absolute-header.
38908 * modules/unistd (Depends-on): Likewise.
38910 2006-12-30 Bruno Haible <bruno@clisp.org>
38912 * modules/fchdir: New file.
38913 * modules/unistd (Files): Add lib/unistd_.h.
38914 (Makefile.am): Generate unistd.h from unistd_.h.
38915 * lib/fchdir.c: New file.
38916 * lib/dirent_.h: New file.
38917 * lib/unistd_.h: New file.
38918 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38919 * m4/fchdir.m4: New file.
38920 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38921 (gl_HEADER_UNISTD): Invoke it.
38922 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38924 * lib/backupfile.c (opendir, closedir): Undefine.
38925 * lib/chown.c (open, close): Undefine.
38926 * lib/clean-temp.c (open, close): Undefine.
38927 * lib/copy-file.c (open, close): Undefine.
38928 * lib/execute.c (open, close): Undefine.
38929 * lib/fsusage.c (open, close): Undefine.
38930 * lib/gc-gnulib.c (open, close): Undefine.
38931 * lib/getcwd.c (opendir, closedir): Undefine.
38932 * lib/glob.c (opendir, closedir): Undefine.
38933 * lib/javacomp.c (open, close): Undefine.
38934 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38935 * lib/openat-proc.c (open, close): Undefine.
38936 * lib/pagealign_alloc.c (open, close): Undefine.
38937 * lib/pipe.c (open, close): Undefine.
38938 * lib/progreloc.c (open, close): Undefine.
38939 * lib/savedir.c (opendir, closedir): Undefine.
38940 * lib/utime.c (open, close): Undefine.
38941 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38943 2007-01-10 Bruno Haible <bruno@clisp.org>
38945 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38947 2007-01-12 Eric Blake <ebb9@byu.net>
38949 Provide a robust <wchar.h>. Further simplifications are now
38950 possible in other modules, but not included here.
38951 * modules/wchar: New module.
38952 * m4/wchar.m4: New file.
38953 * lib/wchar_.h: Likewise.
38954 * modules/mbchar (Depends-on): Depend on wchar, as the first use
38956 * MODULES.html.sh (Extended multibyte and wide character utilities):
38959 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
38961 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38962 to a reasonable default for memory allocation.
38963 (xreadlink): Don't allocate a huge buffer, to work around a buggy
38964 file system that reports garbage st_size values for symlinks.
38965 Problem reported by Liyang Hu.
38967 2007-01-11 Simon Josefsson <simon@josefsson.org>
38969 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38970 Emacs .#* auto-save files).
38972 2007-01-11 Bruno Haible <bruno@clisp.org>
38974 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38977 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
38979 Use @...@ consistently in lib/wctype_.h.
38980 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38981 on it being set to 1 or 0.
38982 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38983 go back to AC_SUBSTing it.
38984 * modules/wctype (Makefile.am): Undo previous change.
38986 2007-01-10 Eric Blake <ebb9@byu.net>
38988 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38989 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38990 * modules/wctype (Makefile.am): Likewise.
38991 Reported by Chris McGuire.
38993 2007-01-10 Jim Meyering <jim@meyering.net>
38995 fts.c: a small readability/maintainability improvement
38996 * lib/fts.c (fts_read): Make this code slightly more readable and
38997 maintainable by hoisting the "sp->fts_cur = p" assignments to
38998 immediately follow the statements that set P. Derived from
38999 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39001 2007-01-10 Eric Blake <ebb9@byu.net>
39003 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39004 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39005 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39006 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39007 Reported by Chris McGuire.
39009 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39011 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39014 2007-01-09 Bruno Haible <bruno@clisp.org>
39016 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39017 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39019 (func_module): Use them.
39021 2007-01-09 Bruno Haible <bruno@clisp.org>
39023 * modules/unistr/base: New file.
39024 * lib/unistr.h: New file.
39026 * modules/unistr/u8-to-u16: New file.
39027 * lib/unistr/u8-to-u16.c: New file.
39029 * modules/unistr/u8-to-u32: New file.
39030 * lib/unistr/u8-to-u32.c: New file.
39032 * modules/unistr/u16-to-u8: New file.
39033 * lib/unistr/u16-to-u8.c: New file.
39035 * modules/unistr/u16-to-u32: New file.
39036 * lib/unistr/u16-to-u32.c: New file.
39038 * modules/unistr/u32-to-u8: New file.
39039 * lib/unistr/u32-to-u8.c: New file.
39041 * modules/unistr/u32-to-u16: New file.
39042 * lib/unistr/u32-to-u16.c: New file.
39044 * modules/unistr/u8-check: New file.
39045 * modules/unistr/u16-check: New file.
39046 * modules/unistr/u32-check: New file.
39047 * lib/unistr/u8-check.c: New file.
39048 * lib/unistr/u16-check.c: New file.
39049 * lib/unistr/u32-check.c: New file.
39051 * modules/unistr/u8-chr: New file.
39052 * modules/unistr/u16-chr: New file.
39053 * modules/unistr/u32-chr: New file.
39054 * lib/unistr/u8-chr.c: New file.
39055 * lib/unistr/u16-chr.c: New file.
39056 * lib/unistr/u32-chr.c: New file.
39058 * modules/unistr/u8-cmp: New file.
39059 * modules/unistr/u16-cmp: New file.
39060 * modules/unistr/u32-cmp: New file.
39061 * lib/unistr/u8-cmp.c: New file.
39062 * lib/unistr/u16-cmp.c: New file.
39063 * lib/unistr/u32-cmp.c: New file.
39065 * modules/unistr/u8-cpy: New file.
39066 * modules/unistr/u16-cpy: New file.
39067 * modules/unistr/u32-cpy: New file.
39068 * lib/unistr/u8-cpy.c: New file.
39069 * lib/unistr/u16-cpy.c: New file.
39070 * lib/unistr/u32-cpy.c: New file.
39071 * lib/unistr/u-cpy.h: New file.
39073 * modules/unistr/u8-cpy-alloc: New file.
39074 * modules/unistr/u16-cpy-alloc: New file.
39075 * modules/unistr/u32-cpy-alloc: New file.
39076 * lib/unistr/u8-cpy-alloc.c: New file.
39077 * lib/unistr/u16-cpy-alloc.c: New file.
39078 * lib/unistr/u32-cpy-alloc.c: New file.
39079 * lib/unistr/u-cpy-alloc.h: New file.
39081 * modules/unistr/u8-endswith: New file.
39082 * modules/unistr/u16-endswith: New file.
39083 * modules/unistr/u32-endswith: New file.
39084 * lib/unistr/u8-endswith.c: New file.
39085 * lib/unistr/u16-endswith.c: New file.
39086 * lib/unistr/u32-endswith.c: New file.
39087 * lib/unistr/u-endswith.h: New file.
39089 * modules/unistr/u8-mblen: New file.
39090 * modules/unistr/u16-mblen: New file.
39091 * modules/unistr/u32-mblen: New file.
39092 * lib/unistr/u8-mblen.c: New file.
39093 * lib/unistr/u16-mblen.c: New file.
39094 * lib/unistr/u32-mblen.c: New file.
39096 * modules/unistr/u8-mbtouc: New file.
39097 * modules/unistr/u16-mbtouc: New file.
39098 * modules/unistr/u32-mbtouc: New file.
39099 * lib/unistr/u8-mbtouc.c: New file.
39100 * lib/unistr/u16-mbtouc.c: New file.
39101 * lib/unistr/u32-mbtouc.c: New file.
39103 * modules/unistr/u8-mbtouc-safe: New file.
39104 * modules/unistr/u16-mbtouc-safe: New file.
39105 * modules/unistr/u32-mbtouc-safe: New file.
39106 * lib/unistr/u8-mbtouc-safe.c: New file.
39107 * lib/unistr/u16-mbtouc-safe.c: New file.
39108 * lib/unistr/u32-mbtouc-safe.c: New file.
39110 * modules/unistr/u8-move: New file.
39111 * modules/unistr/u16-move: New file.
39112 * modules/unistr/u32-move: New file.
39113 * lib/unistr/u8-move.c: New file.
39114 * lib/unistr/u16-move.c: New file.
39115 * lib/unistr/u32-move.c: New file.
39116 * lib/unistr/u-move.h: New file.
39118 * modules/unistr/u8-next: New file.
39119 * modules/unistr/u16-next: New file.
39120 * modules/unistr/u32-next: New file.
39121 * lib/unistr/u8-next.c: New file.
39122 * lib/unistr/u16-next.c: New file.
39123 * lib/unistr/u32-next.c: New file.
39125 * modules/unistr/u8-prev: New file.
39126 * modules/unistr/u16-prev: New file.
39127 * modules/unistr/u32-prev: New file.
39128 * lib/unistr/u8-prev.c: New file.
39129 * lib/unistr/u16-prev.c: New file.
39130 * lib/unistr/u32-prev.c: New file.
39132 * modules/unistr/u8-set: New file.
39133 * modules/unistr/u16-set: New file.
39134 * modules/unistr/u32-set: New file.
39135 * lib/unistr/u8-set.c: New file.
39136 * lib/unistr/u16-set.c: New file.
39137 * lib/unistr/u32-set.c: New file.
39138 * lib/unistr/u-set.h: New file.
39140 * modules/unistr/u8-startswith: New file.
39141 * modules/unistr/u16-startswith: New file.
39142 * modules/unistr/u32-startswith: New file.
39143 * lib/unistr/u8-startswith.c: New file.
39144 * lib/unistr/u16-startswith.c: New file.
39145 * lib/unistr/u32-startswith.c: New file.
39146 * lib/unistr/u-startswith.h: New file.
39148 * modules/unistr/u8-stpcpy: New file.
39149 * modules/unistr/u16-stpcpy: New file.
39150 * modules/unistr/u32-stpcpy: New file.
39151 * lib/unistr/u8-stpcpy.c: New file.
39152 * lib/unistr/u16-stpcpy.c: New file.
39153 * lib/unistr/u32-stpcpy.c: New file.
39154 * lib/unistr/u-stpcpy.h: New file.
39156 * modules/unistr/u8-stpncpy: New file.
39157 * modules/unistr/u16-stpncpy: New file.
39158 * modules/unistr/u32-stpncpy: New file.
39159 * lib/unistr/u8-stpncpy.c: New file.
39160 * lib/unistr/u16-stpncpy.c: New file.
39161 * lib/unistr/u32-stpncpy.c: New file.
39162 * lib/unistr/u-stpncpy.h: New file.
39164 * modules/unistr/u8-strcat: New file.
39165 * modules/unistr/u16-strcat: New file.
39166 * modules/unistr/u32-strcat: New file.
39167 * lib/unistr/u8-strcat.c: New file.
39168 * lib/unistr/u16-strcat.c: New file.
39169 * lib/unistr/u32-strcat.c: New file.
39170 * lib/unistr/u-strcat.h: New file.
39172 * modules/unistr/u8-strchr: New file.
39173 * modules/unistr/u16-strchr: New file.
39174 * modules/unistr/u32-strchr: New file.
39175 * lib/unistr/u8-strchr.c: New file.
39176 * lib/unistr/u16-strchr.c: New file.
39177 * lib/unistr/u32-strchr.c: New file.
39179 * modules/unistr/u8-strcmp: New file.
39180 * modules/unistr/u16-strcmp: New file.
39181 * modules/unistr/u32-strcmp: New file.
39182 * lib/unistr/u8-strcmp.c: New file.
39183 * lib/unistr/u16-strcmp.c: New file.
39184 * lib/unistr/u32-strcmp.c: New file.
39186 * modules/unistr/u8-strcpy: New file.
39187 * modules/unistr/u16-strcpy: New file.
39188 * modules/unistr/u32-strcpy: New file.
39189 * lib/unistr/u8-strcpy.c: New file.
39190 * lib/unistr/u16-strcpy.c: New file.
39191 * lib/unistr/u32-strcpy.c: New file.
39192 * lib/unistr/u-strcpy.h: New file.
39194 * modules/unistr/u8-strcspn: New file.
39195 * modules/unistr/u16-strcspn: New file.
39196 * modules/unistr/u32-strcspn: New file.
39197 * lib/unistr/u8-strcspn.c: New file.
39198 * lib/unistr/u16-strcspn.c: New file.
39199 * lib/unistr/u32-strcspn.c: New file.
39200 * lib/unistr/u-strcspn.h: New file.
39202 * modules/unistr/u8-strdup: New file.
39203 * modules/unistr/u16-strdup: New file.
39204 * modules/unistr/u32-strdup: New file.
39205 * lib/unistr/u8-strdup.c: New file.
39206 * lib/unistr/u16-strdup.c: New file.
39207 * lib/unistr/u32-strdup.c: New file.
39208 * lib/unistr/u-strdup.h: New file.
39210 * modules/unistr/u8-strlen: New file.
39211 * modules/unistr/u16-strlen: New file.
39212 * modules/unistr/u32-strlen: New file.
39213 * lib/unistr/u8-strlen.c: New file.
39214 * lib/unistr/u16-strlen.c: New file.
39215 * lib/unistr/u32-strlen.c: New file.
39216 * lib/unistr/u-strlen.h: New file.
39218 * modules/unistr/u8-strmblen: New file.
39219 * modules/unistr/u16-strmblen: New file.
39220 * modules/unistr/u32-strmblen: New file.
39221 * lib/unistr/u8-strmblen.c: New file.
39222 * lib/unistr/u16-strmblen.c: New file.
39223 * lib/unistr/u32-strmblen.c: New file.
39225 * modules/unistr/u8-strmbtouc: New file.
39226 * modules/unistr/u16-strmbtouc: New file.
39227 * modules/unistr/u32-strmbtouc: New file.
39228 * lib/unistr/u8-strmbtouc.c: New file.
39229 * lib/unistr/u16-strmbtouc.c: New file.
39230 * lib/unistr/u32-strmbtouc.c: New file.
39232 * modules/unistr/u8-strncat: New file.
39233 * modules/unistr/u16-strncat: New file.
39234 * modules/unistr/u32-strncat: New file.
39235 * lib/unistr/u8-strncat.c: New file.
39236 * lib/unistr/u16-strncat.c: New file.
39237 * lib/unistr/u32-strncat.c: New file.
39238 * lib/unistr/u-strncat.h: New file.
39240 * modules/unistr/u8-strncmp: New file.
39241 * modules/unistr/u16-strncmp: New file.
39242 * modules/unistr/u32-strncmp: New file.
39243 * lib/unistr/u8-strncmp.c: New file.
39244 * lib/unistr/u16-strncmp.c: New file.
39245 * lib/unistr/u32-strncmp.c: New file.
39247 * modules/unistr/u8-strncpy: New file.
39248 * modules/unistr/u16-strncpy: New file.
39249 * modules/unistr/u32-strncpy: New file.
39250 * lib/unistr/u8-strncpy.c: New file.
39251 * lib/unistr/u16-strncpy.c: New file.
39252 * lib/unistr/u32-strncpy.c: New file.
39253 * lib/unistr/u-strncpy.h: New file.
39255 * modules/unistr/u8-strnlen: New file.
39256 * modules/unistr/u16-strnlen: New file.
39257 * modules/unistr/u32-strnlen: New file.
39258 * lib/unistr/u8-strnlen.c: New file.
39259 * lib/unistr/u16-strnlen.c: New file.
39260 * lib/unistr/u32-strnlen.c: New file.
39261 * lib/unistr/u-strnlen.h: New file.
39263 * modules/unistr/u8-strpbrk: New file.
39264 * modules/unistr/u16-strpbrk: New file.
39265 * modules/unistr/u32-strpbrk: New file.
39266 * lib/unistr/u8-strpbrk.c: New file.
39267 * lib/unistr/u16-strpbrk.c: New file.
39268 * lib/unistr/u32-strpbrk.c: New file.
39269 * lib/unistr/u-strpbrk.h: New file.
39271 * modules/unistr/u8-strrchr: New file.
39272 * modules/unistr/u16-strrchr: New file.
39273 * modules/unistr/u32-strrchr: New file.
39274 * lib/unistr/u8-strrchr.c: New file.
39275 * lib/unistr/u16-strrchr.c: New file.
39276 * lib/unistr/u32-strrchr.c: New file.
39278 * modules/unistr/u8-strspn: New file.
39279 * modules/unistr/u16-strspn: New file.
39280 * modules/unistr/u32-strspn: New file.
39281 * lib/unistr/u8-strspn.c: New file.
39282 * lib/unistr/u16-strspn.c: New file.
39283 * lib/unistr/u32-strspn.c: New file.
39284 * lib/unistr/u-strspn.h: New file.
39286 * modules/unistr/u8-strstr: New file.
39287 * modules/unistr/u16-strstr: New file.
39288 * modules/unistr/u32-strstr: New file.
39289 * lib/unistr/u8-strstr.c: New file.
39290 * lib/unistr/u16-strstr.c: New file.
39291 * lib/unistr/u32-strstr.c: New file.
39292 * lib/unistr/u-strstr.h: New file.
39294 * modules/unistr/u8-strtok: New file.
39295 * modules/unistr/u16-strtok: New file.
39296 * modules/unistr/u32-strtok: New file.
39297 * lib/unistr/u8-strtok.c: New file.
39298 * lib/unistr/u16-strtok.c: New file.
39299 * lib/unistr/u32-strtok.c: New file.
39300 * lib/unistr/u-strtok.h: New file.
39302 * modules/unistr/u8-uctomb: New file.
39303 * modules/unistr/u16-uctomb: New file.
39304 * modules/unistr/u32-uctomb: New file.
39305 * lib/unistr/u8-uctomb.c: New file.
39306 * lib/unistr/u16-uctomb.c: New file.
39307 * lib/unistr/u32-uctomb.c: New file.
39309 * MODULES.html.sh (Unicode string functions): Add the new modules.
39311 2007-01-08 Bruno Haible <bruno@clisp.org>
39313 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39314 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39317 2007-01-08 Karl Berry <karl@gnu.org>
39319 * doc/error.texi: mention that main() fns must set program_name
39320 when progname is used.
39322 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39324 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39325 WCTYPE_H is empty, for the benefit of builds from non-distclean
39326 directories. Problem reported by Eric Blake in
39327 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39329 2007-01-08 Bruno Haible <bruno@clisp.org>
39331 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39332 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39333 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39334 PROVIDE_CANONICALIZE_FILENAME_MODE.
39335 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39337 2007-01-08 Bruno Haible <bruno@clisp.org>
39339 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39340 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39341 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39342 * lib/fts.c: Likewise.
39343 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39345 2006-12-25 Bruno Haible <bruno@clisp.org>
39347 * modules/utf8-ucs4-safe: New file.
39348 * lib/utf8-ucs4-safe.h: New file.
39349 * lib/unistr/utf8-ucs4-safe.c: New file.
39351 * modules/utf16-ucs4-safe: New file.
39352 * lib/utf16-ucs4-safe.h: New file.
39353 * lib/unistr/utf16-ucs4-safe.c: New file.
39355 * MODULES.html.sh (Unicode string functions): Add the new modules.
39357 2007-01-08 Bruno Haible <bruno@clisp.org>
39359 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39360 (Depends-on): Add unitypes.
39361 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39362 (u8_mbtouc_aux): Move out to separate file.
39363 (u8_mbtouc): Use ucs4_t, uint8_t types.
39364 * lib/unistr/utf8-ucs4.c: New file.
39366 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39367 (Depends-on): Add unitypes.
39368 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39369 (u16_mbtouc_aux): Move out to separate file.
39370 (u16_mbtouc): Use ucs4_t, uint16_t types.
39371 * lib/unistr/utf16-ucs4.c: New file.
39373 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39374 (Depends-on): Add unitypes.
39375 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39376 (u8_uctomb_aux): Move out to separate file.
39377 (u8_uctomb): Use ucs4_t, uint8_t types.
39378 * lib/unistr/ucs4-utf8.c: New file.
39380 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39381 (Depends-on): Add unitypes.
39382 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39383 (u16_uctomb_aux): Move out to separate file.
39384 (u16_uctomb): Use ucs4_t, uint16_t types.
39385 * lib/unistr/ucs4-utf16.c: New file.
39387 2006-12-25 Bruno Haible <bruno@clisp.org>
39389 * modules/unitypes: New file.
39390 * lib/unitypes.h: New file.
39391 * MODULES.html.sh (func_all_modules): New section "Unicode string
39392 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39393 this section. Add unitypes.
39395 2007-01-08 Bruno Haible <bruno@clisp.org>
39397 Avoid variable names that conflict with those from libtool.
39398 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39399 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39400 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39401 library_names_spec to acl_library_names_spec, hardcode_* to
39403 Reported by Ralf Wildenhues.
39405 2007-01-08 Bruno Haible <bruno@clisp.org>
39407 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39409 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39411 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39412 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39414 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39416 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39417 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39418 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39419 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39421 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39423 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39424 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39425 GC_USE_<algorithm>.
39426 * lib/gc-libgcrypt.c: Likewise.
39427 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39428 * modules/gc-arctwo (configure.ac): Likewise.
39429 * modules/gc-des (configure.ac): Likewise.
39430 * modules/gc-hmac-md5 (configure.ac): Likewise.
39431 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39432 * modules/gc-md2 (configure.ac): Likewise.
39433 * modules/gc-md4 (configure.ac): Likewise.
39434 * modules/gc-md5 (configure.ac): Likewise.
39435 * modules/gc-random (configure.ac): Likewise.
39436 * modules/gc-rijndael (configure.ac): Likewise.
39437 * modules/gc-sha1 (configure.ac): Likewise.
39439 2007-01-08 Bruno Haible <bruno@clisp.org>
39441 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39443 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39445 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39447 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39448 * modules/fcntl-safer (configure.ac): Likewise.
39449 * modules/fopen-safer (configure.ac): Likewise.
39450 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39451 GNULIB_FWRITEERROR macro definition.
39453 2007-01-08 Bruno Haible <bruno@clisp.org>
39455 * m4/gnulib-common.m4: New file.
39456 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39457 (func_get_filelist): Add m4/gnulib-common.m4.
39459 2007-01-08 Bruno Haible <bruno@clisp.org>
39461 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39464 2007-01-08 Jim Meyering <jim@meyering.net>
39466 Use a more robust test for a "can't happen" condition.
39467 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39468 narrowed the st_size value. Presuming the "can't happen" condition
39469 is true, that narrowing could conceivably convert an invalid st_size
39470 value into a valid one. Instead, use a change based on Matthew
39471 Woehlke's original patch.
39473 Slight readability improvement: use an assert-like macro
39474 in place of literal "abort ()" uses.
39475 * lib/fts.c (fts_assert): Define.
39476 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39477 Use this macro instead of a bare 'abort'.
39479 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
39481 Don't worry about using IRIX 5.3's wctype.h broken definitions;
39482 simply work around them.
39483 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39484 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39485 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39487 Don't bother to define as macros, since the standard doesn't require it.
39488 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39489 longer worry about IRIX 5.3.
39490 (HAVE_WCTYPE_CTMP_BUG): Remove.
39492 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
39494 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39495 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
39496 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39497 Problems reported by Georg Schwarz for IRIX 5.3.
39499 * gnulib-tool (autoconf_minversion): Take the maximum version number
39500 found, not the minimum. Problem reported by James Youngman.
39502 2007-01-03 Karl Berry <karl@gnu.org>
39504 * doc/error.texi: new file, explaining interaction with progname.
39505 * doc/gnulib.texi: include it. Update copyright.
39507 2007-01-03 Simon Josefsson <simon@josefsson.org>
39509 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39510 AC_CANONICAL_HOST, to improve autobuild outputs.
39512 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
39513 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39515 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39516 sockets, server sockets, and other file descriptors. Count errors
39517 to compute the return value. Reorder the code a bit to be easier
39518 to follow. Don't set event bits that were not requested (except
39519 POLLERR and POLLHUP).
39521 2007-01-01 Bruno Haible <bruno@clisp.org>
39523 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39525 2007-01-03 Jim Meyering <jim@meyering.net>
39527 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
39529 2007-01-02 Bruno Haible <bruno@clisp.org>
39531 * modules/settime (Include): Require timespec.h.
39532 * modules/nanosleep (Include): Likewise.
39534 2007-01-01 Bruno Haible <bruno@clisp.org>
39536 * gnulib-tool (func_emit_copyright_notice): Bump year.
39537 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39539 2007-01-01 Bruno Haible <bruno@clisp.org>
39541 Improve support for OpenBSD.
39542 * build-aux/config.rpath (libname_spec): Export.
39543 (library_names_spec): New variable. Export.
39544 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39545 library_names_spec from the config.rpath output. Locate shared library
39546 through the name pattern in library_names_spec.
39548 2007-01-01 Eric Blake <ebb9@byu.net>
39550 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39552 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
39554 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39555 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
39556 assume the C locale, and avoid an "eval" that could cause trouble.
39557 Problem with SORT reported by Bob Proulx.
39559 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39560 Define. Trivial patch from Henning Nielsen Lund, originally
39561 sent to bug-grep@gnu.org today.
39563 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
39565 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39566 struct stat. Problem reported by Henning Nielsen Lund.
39567 * lib/acl.c: Include acl.h first, to check interface. Don't
39568 bother to include sys/types.h and sys/stat.h again.
39570 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
39572 Import the following change from libc; problem reported by
39575 2005-10-13 Ulrich Drepper <drepper@redhat.com>
39578 * lib/argp.h: Remove __NTH for __argp_usage inline function.
39580 2006-12-28 Jim Meyering <jim@meyering.net>
39582 * build-aux/announce-gen: Do not assume that the package
39583 builds any of tar.gz, tar.bz2, and .xdelta files.
39584 Suggestion from Simon Josefsson.
39586 2006-12-28 Simon Josefsson <simon@josefsson.org>
39588 * modules/announce-gen: New file.
39590 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
39592 * lib/mbchar.h: Just include <wctype.h>; the wctype module
39593 handles its gotchas now.
39594 * lib/mbswidth.c: Likewise.
39595 * lib/wcwidth.h: Likewise.
39596 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39597 and iswcntrl; the wctype module does this stuff now.
39598 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39599 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39600 * modules/mbchar (Depends-on): Add wctype.
39601 * modules/mbswidth (Depends-on): Likewise.
39602 * modules/wcwidth (Depends-on): Likewise.
39604 2006-12-27 Eric Blake <ebb9@byu.net>
39606 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39607 module uses more than what <wctype.h> is required to provide.
39609 2006-12-26 Eric Blake <ebb9@byu.net>
39611 * gnulib-tool (sed_extract_prog): Avoid space-tab.
39613 2006-12-26 Eric Blake <ebb9@byu.net>
39615 * modules/absolute-header: New module.
39616 * modules/fcntl (Depends-on): Depend on it.
39617 * modules/inttypes (Depends-on): Likewise.
39618 * modules/stdint (Depends-on): Likewise.
39619 * modules/sys_stat (Depends-on): Likewise.
39620 * modules/wctype (Depends-on): Likewise.
39621 * MODULES.html.sh (Support for building libraries and
39622 executables): Document it.
39624 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
39626 * gnulib-tool (SED): Remove, undoing previous change.
39627 The problem was that it broke coreutils on Solaris, because
39628 "sed --posix" leaked into a makefile.
39629 (sed): New alias, if 'alias' and GNU sed.
39631 2006-12-24 Jim Meyering <jim@meyering.net>
39633 Work around an fchownat bug in glibc-2.4:
39634 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39635 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39636 in spite of the -P option.
39637 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39639 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39640 * modules/openat (Files): Add lib/fchownat.c.
39641 * lib/openat.c (fchownat): Don't define here. Move to...
39642 * lib/fchownat.c: ...this new file.
39644 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
39646 Fix bug reported by Bruno Haible in
39647 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39648 where quotearg.c didn't compile on Mac OS X 10.2 because it
39649 lacks <wchar.h> and wint_t.
39650 * lib/wctype_.h (__wctype_wint_t): New type.
39651 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39652 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39653 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39654 Arg is now of type __wctype_wint_t, not wint_t.
39655 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39656 substitute HAVE_WINT_T.
39657 * modules/wctype (Files): Add m4/wint_t.m4.
39658 (wctype.h): Substitute HAVE_WINT_T.
39660 2006-12-23 Bruno Haible <bruno@clisp.org>
39662 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39664 2006-12-23 Bruno Haible <bruno@clisp.org>
39666 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39668 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39671 2006-12-22 Bruno Haible <bruno@clisp.org>
39673 * lib/copy-file.c: Include acl.h.
39674 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39675 Close the file descriptors only after being done with copy_acl.
39676 * modules/copy-file (Depends-on): Add acl.
39678 2006-12-22 Bruno Haible <bruno@clisp.org>
39680 * gnulib-tool (SED): New variable.
39681 Use $SED instead of sed everywhere.
39683 2006-12-22 Bruno Haible <bruno@clisp.org>
39685 * modules/no-c++: New file.
39686 * m4/no-c++.m4: New file.
39687 * MODULES.html.sh (Support for building libraries and executables):
39690 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
39692 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39693 Include <limits.h>, and use its INT_MAX to rewrite the
39694 j loop so that it does not overflow 'int'. Problem reported by
39696 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39697 Play it safe by shifting left by 1 rather than multiplying by 2,
39698 as GCC is less likely to optimize this away when the value
39699 is signed (when it assumes overflow leads to undefined behavior).
39700 Also, don't assume time_t uses two's complement.
39702 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
39704 * MODULES.html.sh: New module wctype.
39705 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39706 * lib/fnmatch.c: Don't bother to include <wchar.h> before
39707 <wctype.h>, since the new wctype module should fix this.
39708 * lib/quotearg.c: Include <wctype.h> unconditionally, since
39709 the wctype module should arrange for it.
39710 * lib/regex_internal.h: Likewise.
39711 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39712 since the wctype module should handle this now.
39713 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39714 * modules/fnmatch (Depends-on): Add wctype.
39715 * modules/quotearg (Depends-on): Likewise.
39716 * modules/regex (Depends-on): Likewise.
39718 2006-12-19 Bruno Haible <bruno@clisp.org>
39720 * lib/strdup.h [C++]: Wrap definitions in extern "C".
39721 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39723 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39725 * modules/savewd (Depends-on): Fix dependency on fcntl.
39727 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39729 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39730 conforms to C99, rather than relying on the user's environment
39731 setting of STDINT_H.
39733 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39734 and Eric Blake <ebb9@byu.net>
39736 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39737 This is more consistent with the other defines here.
39738 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39739 Port to z/OS. Problem reported by Paul Gilmartin.
39740 Change local vars to use gl_ prefix rather than ac_.
39741 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39742 with other defines.
39743 * modules/double-slash-root: New module.
39744 * modules/dirname (Files): Remove m4/double-slash-root.m4.
39745 (Depends-on): Add double-slash-root.
39746 * MODULES.html.sh (File system functions): Mention new module.
39748 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
39750 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39751 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39752 This is for the benefit of gzip, which doesn't do i18n.
39754 2006-12-12 Jim Meyering <jim@meyering.net>
39756 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39757 Reported by Andreas Schwab <schwab@suse.de>.
39759 2006-12-12 Bruno Haible <bruno@clisp.org>
39761 Merge these changes.
39762 2006-09-05 Bruno Haible <bruno@clisp.org>
39763 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39764 iconv_alloc succeeded.
39765 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39766 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39767 test for " && dest " at the end - dest is always != NULL there. Call
39768 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39769 with 2xNULL arguments, also to flush the state storage. Handle the
39770 IRIX iconv behaviour. Realloc the final result, to throw away unused
39773 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39775 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39776 and fchmodat unconditionally, since glibc 2.4 has them.
39777 Problem reported by Arkadiusz Miskiewicz.
39779 2006-12-10 Bruno Haible <bruno@clisp.org>
39781 * gnulib-tool (func_import): Show the include files only for those
39782 modules that are copied and specified.
39783 Reported by Karl Berry.
39785 2006-12-08 Jim Meyering <jim@meyering.net>
39787 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39788 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39790 * build-aux/announce-gen: Add two new options, both optional:
39791 --bootstrap-tools=TOOL_LIST
39792 a comma-separated list of tools, e.g.,
39793 autoconf,automake,bison,gnulib
39794 --gnulib-snapshot-date=DATE
39795 if gnulib is in the bootstrap tool list,
39796 then report this as the snapshot date.
39797 If not specified, use the current date/time.
39798 If you specify a date here, be sure it's UTC.
39800 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39802 * tests/test-argp-2.sh: Fix test to match actual output.
39803 (func_compare): Fix sed script to be portable.
39805 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39807 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39808 workaround for this case. It is not autoconfigured now; offhand
39809 it's hard to see how to autoconfigure it.
39811 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39813 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39814 a directory that is about to be chowned. Such a directory's
39815 initial file permissions should permit the owner only and this
39816 should not be changed until after the chown, since the group and
39817 other bits would be incorrect if they granted permission before
39820 Fix porting problem for iswctype reported by Georg Schwarz in:
39821 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39822 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39823 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39824 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39825 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39827 2006-12-03 Jim Meyering <jim@meyering.net>
39829 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39830 p->fts_statp may not yet be defined.
39831 (fts_read): Instead, set it in the caller, once p->fts_statp is
39832 sure to be defined, and corresponds to a top-level directory.
39833 This bug made du -x fail. Here's the coreutils test case:
39834 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39835 Reported by Mike Frysinger.
39837 2006-12-01 Jim Meyering <jim@meyering.net>
39839 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39840 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39841 Reported by Simon Josefsson.
39843 2006-11-30 Jim Meyering <jim@meyering.net>
39845 * m4/warning.m4: Use the all-permissive copyright notice
39846 recommended by RMS (rather than LGPL).
39847 * m4/vararrays.m4: Likewise.
39848 * m4/flexmember.m4: Likewise.
39850 2006-11-29 Bruno Haible <bruno@clisp.org>
39852 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39853 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39855 Reported by Simon Josefsson <simon@josefsson.org>.
39857 2006-11-28 James Youngman <jay@gnu.org>
39859 * README: Advise users that they might find the bug-gnulib@gnu.org
39860 and autotools-announce@gnu.org mailing lists useful.
39862 2006-11-28 Bruno Haible <bruno@clisp.org>
39864 * m4/ptrdiff_max.m4: Remove file.
39866 2006-11-21 Bruno Haible <bruno@clisp.org>
39868 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39870 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39871 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39873 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39874 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39876 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39878 2006-11-28 Jim Meyering <jim@meyering.net>
39880 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39881 warning from "gcc -Wshadow" about shadowing the builtin.
39883 2006-11-27 Bruno Haible <bruno@clisp.org>
39885 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39887 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39889 2006-11-27 Bruno Haible <bruno@clisp.org>
39890 Paul Eggert <eggert@cs.ucla.edu>
39892 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39894 2006-11-26 Bruno Haible <bruno@clisp.org>
39896 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39897 noinst_LTLIBRARIES.
39899 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
39900 Bruno Haible <bruno@clisp.org>
39902 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39903 if compiling with "gcc -ansi".
39905 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
39907 Fix some incompatibilities with gcc -ansi -pedantic.
39908 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39909 if compiling pedantically with GCC, unless it's C99 or later.
39910 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39911 it mishandles gcc -ansi -pedantic as well.
39912 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39914 * lib/regexec.c (check_node_accept_bytes): Don't use auto
39915 initializers for struct if -pedantic, unless it's C99 or later.
39917 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
39919 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39920 Don't close an fd more than once. Identical atimes indicate
39921 success, not failure.
39923 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
39925 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39927 2006-11-23 Jim Meyering <jim@meyering.net>
39929 * build-aux/announce-gen: New file. From coreutils.
39931 2006-11-22 Jim Meyering <jim@meyering.net>
39933 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39934 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39935 (fts_read): Use a temporary to narrow the overused st_size member
39936 before using it in a switch statement. Reported by Matthew Woehlke.
39938 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39939 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39941 2006-11-20 Bruno Haible <bruno@clisp.org>
39943 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39944 changequote instead of pairs of brackets.
39945 Reported by Andreas Schwab <schwab@suse.de>.
39947 2006-11-21 Jim Meyering <jim@meyering.net>
39949 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39950 so as to remain compatible with older compilers.
39951 Patch from Michael Deutschmann.
39953 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39955 * MODULES.html.sh (File system functions): Add openat.
39957 * lib/openat.h (rpl_fstatat): New macro, if
39958 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39959 (fstatat): Define to rpl_fstatat under the same conditions,
39960 unless COMPILING_FSTATAT.
39961 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39962 seems to have the bug.
39963 * lib/fstatat.c: New file.
39964 * modules/openat (Files): Add it.
39966 2006-11-20 Bruno Haible <bruno@clisp.org>
39968 * Makefile: New file.
39970 2006-11-20 Jim Meyering <jim@meyering.net>
39972 The beginnings of syntax-related checks for gnulib.
39973 * lib/Makefile: New file.
39974 * lib/t-idcache: New script. Ensure that the two halves of
39975 idcache.c stay in sync.
39977 * lib/idcache.c: Adjust comments in user- and group- portions to
39978 be more accurate, and to be consistent with one another.
39980 2006-11-20 Jim Meyering <jim@meyering.net>
39982 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39983 continue using the flexible array member (thus, this module performs
39984 half as many malloc calls), with the addition that...
39985 (getgroup, getuser): Consistently record a non-match via an empty
39986 "name" string, and map an empty string match to a NULL return value.
39987 * modules/idcache (Depends-on): Re-add flexmember.
39989 * lib/idcache.c (getuser): Remove all uses of the register keyword.
39990 (getuidbyname, getgroup, getgidbyname): Likewise.
39992 Use cleaner syntax: NULL rather than 0.
39993 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39995 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39997 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39998 It mishandled the case where the group was missing.
39999 Problem reported by Greg Schafer.
40000 * modules/idcache: Likewise.
40002 2006-11-18 Jim Meyering <jim@meyering.net>
40004 * check-module (%exempt_header): Add exception for some
40005 conditionally-included headers.
40007 * modules/i-ring (Depends-on): Add verify.
40008 (License): Change to LGPL.
40010 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
40012 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40013 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40014 and inttostr.h. Use snprintf rather than uinttostr, so that
40015 LGPLed code doesn't depend on GPLed.
40017 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
40019 * modules/inline (License): Change from GPL to LGPL.
40021 2006-11-17 Jim Meyering <jim@meyering.net>
40023 * modules/d-type (License): Switch to LGPL.
40025 2006-11-15 Bruno Haible <bruno@clisp.org>
40027 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40029 2006-11-15 Eric Blake <ebb9@byu.net>
40031 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40032 the module dependency.
40034 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40035 Bruno Haible <bruno@clisp.org>
40037 * gnulib-tool (func_create_testdir): Add license consistency check.
40039 2006-11-15 Eric Blake <ebb9@byu.net>
40041 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40042 random "(cached)" in configure output.
40044 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40046 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40047 test for conforming inttypes.h is both announced and cached.
40049 * MODULES.html.sh (seen_modules, seen_files): New variables.
40050 (func_module): Rewrite to use a few less gnulib-tool and sed
40051 invocations. Avoid a couple of quadratic algorithms for ...
40052 (missed_modules, missed_files): ... these, with ...
40053 (func_append, func_tmpdir): ... these new functions, from
40054 gnulib-tool. Analogously, install traps for cleanup.
40056 * tests/test-gc.c (main): Remove unused variables.
40057 * tests/test-read-file.c: Include stdlib.h, for 'free'.
40059 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
40061 * modules/inttostr (License): Change to LGPL.
40063 2006-11-14 Eric Blake <ebb9@byu.net>
40065 * modules/tempname (License): Change to LGPL.
40067 2006-11-14 Eric Blake <ebb9@byu.net>
40069 * doc/functions.texi (Function Portability): *printf functions on
40070 Cygwin now understand all POSIX size specifiers.
40072 2006-11-14 Bruno Haible <bruno@clisp.org>
40074 * modules/c-ctype (License): Change to LGPL.
40076 2006-11-12 Bruno Haible <bruno@clisp.org>
40078 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40079 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40080 for GNOME libraries, for which the include files are installed in
40081 subdirectories of $prefix/include.
40083 2006-11-12 Bruno Haible <bruno@clisp.org>
40085 * m4/lib-link.m4: Require at least autoconf-2.54.
40086 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40087 name to underscores for the --with option.
40089 2006-11-13 Bruno Haible <bruno@clisp.org>
40091 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40092 the tests directory.
40093 Reported by Ralf Wildenhues.
40095 2006-11-13 Bruno Haible <bruno@clisp.org>
40097 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40098 (func_emit_initmacro_end): Undo the override here.
40099 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40100 Works around the famous automake error in coreutils.
40102 2006-11-13 Eric Blake <ebb9@byu.net>
40104 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40105 element, not its node.
40107 2006-11-12 Bruno Haible <bruno@clisp.org>
40109 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40110 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40112 2006-11-12 Bruno Haible <bruno@clisp.org>
40114 * gnulib-tool: New option --local-symlink.
40115 (func_usage): Document it.
40116 (lsymbolic): New variable.
40117 (func_import, func_create_testdir): If --symlink was not specified,
40118 test whether --local-symlink was specified and the file comes from
40119 the local_gnulib_dir.
40121 2006-11-12 Bruno Haible <bruno@clisp.org>
40123 * gnulib-tool (func_ln): New function.
40124 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40126 2006-11-12 Bruno Haible <bruno@clisp.org>
40128 Finish support for source files in subdirectories.
40129 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40130 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40132 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40134 2006-11-12 Bruno Haible <bruno@clisp.org>
40136 * gnulib-tool (func_get_automake_snippet): Synthesize also an
40137 EXTRA_lib_SOURCES augmentation.
40138 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40140 2006-11-12 Jim Meyering <jim@meyering.net>
40142 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40143 file descriptors. This also averts a failure on systems with
40144 native openat support when a traversed directory lacks "x" access.
40145 * lib/fts_.h: Include "i-ring.h"
40146 (struct FTS) [fts_fd_ring]: New member.
40147 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40148 (FCHDIR): Add parentheses.
40149 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40150 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
40151 When descending, rather than simply closing the previous
40152 fts_cwd_fd value, push that file descriptor onto the ring.
40153 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40154 (fts_open): Initialize the new fd_ring member.
40155 (fts_close): Clear the ring.
40156 (fts_safe_changedir): When possible, use our new fd_ring to skip
40157 the diropen and fstat and dev/ino comparison that would normally
40158 accompany a virtual `chdir ("..")'.
40160 * modules/fts (Depends-on): Add i-ring.
40161 * modules/i-ring: New module.
40162 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40163 * m4/i-ring.m4: New file.
40165 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40167 * gnulib-tool (func_create_testdir): Fix replacement of
40168 `build-aux' in configure.ac. Run autotools in gltests
40170 (func_create_testdir, func_create_megatestdir, test): There is
40171 no need for '--force' in most autotool invocations in a new
40172 tree. Actually fail the whole test if any of the tools, or the
40173 configure or make stages fail.
40175 Sync from Automake.
40176 * build-aux/gnupload: Revert last change. Add pointer to upload
40177 instructions of the GNU Maintenance Instructions.
40178 Suggestion by Karl Berry.
40180 2006-11-10 Jim Meyering <jim@meyering.net>
40182 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40184 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40186 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40187 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40188 (bind_textdomain_codeset) [! ENABLE_NLS]:
40189 Evaluate all the arguments. That way, callers get compatible behavior
40190 if the arguments have side effects. Also, it avoids some GCC
40191 diagnostics in some cases; Joel E. Denny reported problems when Bison
40192 was configured with --enable-gcc-warnigs.
40194 2006-11-10 Jim Meyering <jim@meyering.net>
40196 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40197 relevant options in CFLAGS (like -O, -fno-inline) are taken into
40200 2006-11-10 Jim Meyering <jim@meyering.net>
40202 * modules/inline: New file/module.
40203 * modules/xalloc (Files): Remove m4/inline.m4.
40204 (Depends-on): Add inline, instead.
40205 * modules/oset: Likewise.
40206 * modules/list: Likewise.
40208 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40210 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40211 Problem reported by Matthew Woehlke.
40213 2006-11-09 Bruno Haible <bruno@clisp.org>
40215 * lib/tempname.c (gen_tempname): Remove variant that invokes
40217 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40220 2006-11-08 Bruno Haible <bruno@clisp.org>
40222 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40223 to 'yes' instead of 'cross-compiling'.
40225 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
40227 * lib/quotearg.h (quotearg_free): New decl.
40228 * lib/quotearg.c (quotearg_free): New function.
40229 (slot0, nslots, slotvec0, slotvec):
40230 Now file-scope so that quotearg_free can get at them.
40232 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40234 Sync from Automake.
40235 * build-aux/gnupload: Add missing 'gnu' to example URL.
40236 Report by Karl Berry.
40238 2006-11-08 Bruno Haible <bruno@clisp.org>
40240 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40241 Suggested by Paul Eggert.
40243 2006-11-08 Jim Meyering <jim@meyering.net>
40245 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40246 It's already included if !_LIBC.
40247 (fts_safe_changedir): Add a comment.
40249 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40251 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40252 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40255 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40256 definitions up, to avoid colliding with change below.
40257 (static_inline) [HAVE_INLINE]: New macro.
40258 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40259 Provide extern decls when !HAVE_INLINE. Do not define unless
40260 static_inline is defined, either by us or by xmalloc.c. Use
40261 static_inline rather than static inline.
40262 (XCALLOC): Optimize sizeof(T) = 1 case.
40263 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40265 2006-11-07 Bruno Haible <bruno@clisp.org>
40267 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40268 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40270 * modules/xalloc (Files): Add m4/inline.m4.
40272 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40274 * README: Fix typo.
40275 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40276 (Miscellanous Notes): ...from this.
40278 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40280 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40281 Mention that offsetof should be used instead of sizeof.
40284 2006-11-07 Bruno Haible <bruno@clisp.org>
40286 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40288 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40290 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40291 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40292 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40293 (gl_tree_add_before, gl_tree_add_after):
40294 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40295 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40296 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40297 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40298 (gl_linked_add_after, gl_linked_add_at): Likewise.
40299 * lib/gl_anyrbtree_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): Likewise.
40302 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40303 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40304 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40306 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40308 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40310 2006-11-06 Bruno Haible <bruno@clisp.org>
40312 * m4/inline.m4: New file.
40313 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40314 * modules/list (Files): Add m4/inline.m4.
40315 * modules/oset (Files): Likewise.
40317 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40319 * lib/idcache.c: Include <stddef.h>, for offsetof.
40320 (struct userid.name): Change from char * to a flexible array member.
40322 * modules/idcache (Depends-on): Add flexmember.
40324 * MODULES.html.sh (Core language properties): New module flexmember.
40325 * modules/flexmember, m4/flexmember.m4: New files.
40327 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40328 inline functions that are identical with the old xnmalloc_inline,
40329 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40330 that we can avoid some unnecessary integer multiplications and
40331 divisions in the common case where the element size is known at
40333 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40335 (xnboundedmalloc): Remove.
40336 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40337 arguments, for consistency with rest of this header.
40338 (xcharalloc): Rewrite using XNMALLOC.
40339 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40340 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40341 versions have been moved to lib/xalloc.h and renamed to be the
40342 non-*_inline versions.
40343 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40344 and xnrealloc functions, since those functions are now inline and
40346 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40347 renaming described above.
40348 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40349 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40350 captures the dependency in AC_C_INLINE.
40352 New module canonicalize-lgpl, proposed by Charles Wilson in
40353 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40354 with a few small changes afterwards.
40355 * MODULES.html.sh (File system functions): New module
40357 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40358 and canonicalize_file_name.
40359 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40360 * modules/canonicalize-lgpl: New files.
40362 2006-11-05 Bruno Haible <bruno@clisp.org>
40364 * gnulib-tool (func_import, func_create_testdir): Create directories
40365 also for files in subdirectories of lib/.
40367 2006-11-05 Bruno Haible <bruno@clisp.org>
40369 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40372 2006-11-03 Bruno Haible <bruno@clisp.org>
40374 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40375 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40376 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40377 (xnboundedmalloc): New inline function.
40378 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40379 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40381 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40383 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40384 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40385 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40387 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40388 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40390 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40391 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40392 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40394 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40395 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40396 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40397 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40398 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40399 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40400 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40402 2006-11-03 Bruno Haible <bruno@clisp.org>
40404 * lib/c-ctype.h [C++]: Define functions without name mangling.
40405 * lib/fwriteerror.h [C++]: Likewise.
40406 * lib/gcd.h [C++]: Likewise.
40407 * lib/linebreak.h [C++]: Likewise.
40409 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40411 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40412 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40413 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40414 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40415 Check for functions and headers just once.
40416 Check for declaration of canonicalize_file_name.
40417 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40419 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40421 * gnulib-tool (func_import): Fix typo in actioncmd.
40423 2006-11-02 Bruno Haible <bruno@clisp.org>
40425 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40426 newline sequence in the Makefile.am snippet as a space, like "make"
40428 Reported by Roger Persson <perrog@gmail.com>.
40430 2006-11-01 Bruno Haible <bruno@clisp.org>
40432 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40433 already declared in <string.h>.
40434 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40436 2006-11-01 Bruno Haible <bruno@clisp.org>
40438 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40439 * lib/strcase.h: Include <string.h>.
40440 (strcasecmp): Define to rpl_strcasecmp here.
40442 2006-11-01 Bruno Haible <bruno@clisp.org>
40444 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40446 2006-11-01 Eric Blake <ebb9@byu.net>
40448 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40450 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40452 2006-10-29 Bruno Haible <bruno@clisp.org>
40454 Make it compile in C++ mode.
40455 * lib/full-write.c (full_rw): Add a cast.
40457 2006-11-01 Bruno Haible <bruno@clisp.org>
40459 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40460 be POSIX compliant.
40461 Reported by Roger Persson <perrog@gmail.com>.
40463 2006-11-01 Eric Blake <ebb9@byu.net>
40465 * lib/getopt_.h: Fix comments.
40467 2006-10-31 Eric Blake <ebb9@byu.net>
40469 * modules/tmpdir (Depends-on): Add sys_stat.
40470 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40471 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40472 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40473 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40476 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40478 Avoid some C++ diagnostics reported by Bruno Haible.
40479 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40481 (quotearg_alloc): Use xcharalloc rather than xmalloc.
40482 (struct slotvec): Move to top level.
40483 (quotearg_n_options): Rewrite to avoid xmalloc.
40484 * lib/xalloc.h (xcharalloc): New function.
40485 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40486 [defined __cplusplus]: Add function template that provides result
40487 type propagation. This part of the change is from Bruno Haible.
40489 2006-10-29 Bruno Haible <bruno@clisp.org>
40491 Make it compile in C++ mode.
40492 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40493 * lib/strnlen1.c (strnlen1): Cast memchr result.
40494 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40495 * lib/clean-temp.c (string_equals, string_hash): Add casts.
40496 (create_temp_dir): Rename local variable 'template'.
40497 (compile_csharp_using_sscli): Add cast.
40498 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40499 * lib/findprog.c (find_in_path): Likewise.
40500 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40501 * lib/wait-process.c (register_slave_subprocess): Likewise.
40503 2006-10-22 Bruno Haible <bruno@clisp.org>
40505 * modules/tsearch: New file.
40506 * lib/tsearch.h: New file.
40507 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40508 * m4/tsearch.m4: New file.
40509 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40511 2006-10-29 Eric Blake <ebb9@byu.net>
40513 * lib/arcfour.c: Assume config.h.
40514 * lib/arctwo.c: Likewise.
40515 * lib/base64.c: Likewise.
40516 * lib/check-version.c: Likewise.
40517 * lib/crc.c: Likewise.
40518 * lib/des.c: Likewise.
40519 * lib/gc-gnulib.c: Likewise.
40520 * lib/gc-libgcrypt.c: Likewise.
40521 * lib/gc-pbkdf2-sha1.c: Likewise.
40522 * lib/getaddrinfo.c: Likewise.
40523 * lib/getdelim.c: Likewise.
40524 * lib/getline.c: Likewise.
40525 * lib/hmac-md5.c: Likewise.
40526 * lib/hmac-sha1.c: Likewise.
40527 * lib/iconvme.c: Likewise.
40528 * lib/md2.c: Likewise.
40529 * lib/md4.c: Likewise.
40530 * lib/memxor.c: Likewise.
40531 * lib/read-file.c: Likewise.
40532 * lib/readline.c: Likewise.
40533 * lib/rijndael-alg-fst.c: Likewise.
40534 * lib/rijndael-api-fst.c: Likewise.
40535 * lib/xgetdomainname.c: Likewise.
40537 2006-10-28 Eric Blake <ebb9@byu.net>
40539 * lib/xstrndup.c: Assume config.h.
40541 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
40543 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40544 stat-macros.h is now for our own macros, whereas stat_h is for
40545 macros in the <sys/stat.h> name space.
40546 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40547 (STAT_MACROS_H): Remove.
40548 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40549 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40550 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40551 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40552 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40553 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40554 Move these macros to ...
40555 * lib/stat_.h: here. Don't include stat-macros.h.
40556 * lib/canonicalize.c: Don't include stat-macros.h.
40557 * lib/chown.c: Likewise.
40558 * lib/euidaccess.c: Likewise.
40559 * lib/file-type.c: Likewise.
40560 * lib/filemode.c: Likewise.
40561 * lib/glob.c: Likewise.
40562 * lib/isapipe.c: Likewise.
40563 * lib/lchown.c: Likewise.
40564 * lib/lstat.c: Likewise.
40565 * lib/mkdir-p.c: Likewise.
40566 * lib/rmdir.c: Likewise.
40567 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40568 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40569 unless mkdir isn't declared, to speed up 'configure'.
40570 Always create sys/stat.h, since it's unlikely any real sys/stat.h
40571 would define all the S_* symbols.
40572 * modules/canonicalize (Depends-on):
40573 Depend on sys_stat, not stat-macros.
40574 * modules/chown: Likewise.
40575 * modules/euidaccess: Likewise.
40576 * modules/filemode: Likewise.
40577 * modules/file-type: Likewise.
40578 * modules/glob: Likewise.
40579 * modules/isapipe: Likewise.
40580 * modules/lchown: Likewise.
40581 * modules/lstat: Likewise.
40582 * modules/mkancesdirs: Likewise.
40583 * modules/rmdir: Likewise.
40584 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40585 * modules/modechange: Likewise.
40586 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40587 (configure.ac): Remove gl_STAT_MACROS.
40588 * modules/sys_stat (Depends-on): Remove stat-macros.
40590 2006-10-27 Bruno Haible <bruno@clisp.org>
40592 * m4/signed.m4: Remove file.
40593 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40595 * modules/vasnprintf (Files): Remove m4/signed.m4.
40597 2006-10-27 Bruno Haible <bruno@clisp.org>
40599 Update to GNU gettext 0.16.
40600 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40601 m4/inttypes-h.m4, m4/signed.m4.
40602 * m4/gettext.m4: Update to GNU gettext 0.16.
40603 * m4/intl.m4: New file, from GNU gettext.
40604 * m4/intldir.m4: New file, from GNU gettext.
40605 * config/srclist.txt: Update
40607 2006-10-27 Eric Blake <ebb9@byu.net>
40609 * MODULES.html.sh: Document tempname.
40610 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40612 (Files): Move lib/tempname.c...
40613 * modules/tempname: ...to this new module.
40614 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40615 (gl_PREREQ_TEMPNAME): Move...
40616 * m4/tempname.m4: ...to this new file.
40617 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40618 * modules/sys_stat (Depends-on): Add stat-macros.
40619 * lib/stat_.h (includes): Pick up stat macros.
40620 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40621 if stat macros are broken.
40622 * lib/tempname.c (includes): No need to include "stat-macros.h".
40623 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40624 (direxists, __path_search) [!_LIBC]: Don't compile these in
40625 gnulib; the tmpdir module covers that.
40626 * lib/tempname.h: New file.
40628 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
40630 * COPYING: Explain how gnulib-tool converts licence headers.
40631 Almost all wording by Eric Blake.
40633 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
40635 * lib/mbchar.h (is_basic_table): Make read-only.
40636 * lib/mbchar.c (is_basic_table): Likewise.
40637 Reported by John Darrington.
40639 2006-10-25 Bruno Haible <bruno@clisp.org>
40641 * lib/progname.h (set_program_name): Undefine before defining.
40643 2006-10-25 Bruno Haible <bruno@clisp.org>
40645 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40646 false for non-gcc C++ compilers.
40647 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40649 2006-10-24 Bruno Haible <bruno@clisp.org>
40651 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40652 iconv implementations like Irix iconv.
40654 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40656 * modules/vararrays: New file.
40657 * m4/vararrays.m4: New file, taken from diffutils.
40658 * MODULES.html.sh: New module vararrays.
40660 2006-10-24 Karl Berry <karl@gnu.org>
40662 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40663 Don't call GNU Unix.
40665 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40667 * users.txt: Add Libtool.
40671 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40673 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40674 to gnulib's policy of including config.h unconditionally.
40676 2006-10-24 Bruno Haible <bruno@clisp.org>
40678 * modules/wcwidth (Files): Add m4/wint_t.m4.
40679 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40680 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40682 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40684 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40685 to pacify GCC with some -W flags enabled. Problem reported by
40688 2006-10-24 Jim Meyering <jim@meyering.net>
40690 * MODULES.html.sh: Remove uinttostr. It's not a module.
40691 Reported by Karl Berry.
40693 2006-10-23 Bruno Haible <bruno@clisp.org>
40695 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40697 2006-10-24 Bruno Haible <bruno@clisp.org>
40699 * lib/gl_list.h: Use C comment style, not C++ comment style.
40701 2006-10-23 Eric Blake <ebb9@byu.net>
40703 * lib/getaddrinfo.c (includes): Add missing include.
40705 2006-10-23 Bruno Haible <bruno@clisp.org>
40706 Paul Eggert <eggert@cs.ucla.edu>
40708 Ability to rename obstack_free.
40709 * lib/obstack.h (__obstack_free): New macro. Declare instead of
40711 (obstack_free): Invoke the __obstack_free macro.
40712 * lib/obstack.c (obstack_free): Use __obstack_free macro.
40714 2006-10-23 Bruno Haible <bruno@clisp.org>
40715 Paul Eggert <eggert@cs.ucla.edu>
40717 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40718 __argc, __argv from the declaration. (They are defined as macros on
40721 2006-10-22 Bruno Haible <bruno@clisp.org>
40723 * doc/gnulib-intro.texi: New file.
40724 * doc/gnulib.texi: Include it.
40726 2006-10-21 Bruno Haible <bruno@clisp.org>
40728 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40729 "Introduction", "Miscellanous Notes", "Particular Modules".
40731 2006-10-21 Bruno Haible <bruno@clisp.org>
40733 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40734 Change mostlyclean-local rule to avoid sh syntax error from bash
40735 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40737 2006-10-23 Jim Meyering <jim@meyering.net>
40739 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40740 in place of snprintf.
40742 * modules/inttostr (Files): Add lib/uinttostr.c.
40743 * lib/uinttostr.c (inttostr): New file/function.
40744 * lib/inttostr.h (uinttostr): Declare.
40745 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40746 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40748 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
40750 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40752 * lib/canonicalize.c (ELOOP): Define if not already defined.
40753 Problem reported by Bruno Haible in
40754 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40756 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40758 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40759 Problem reported by Perry Smith and Ville Laurikari.
40761 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40764 2006-10-19 Bruno Haible <bruno@clisp.org>
40766 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40769 2006-10-19 Bruno Haible <bruno@clisp.org>
40771 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40774 2006-10-19 Bruno Haible <bruno@clisp.org>
40776 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40778 2006-10-19 Bruno Haible <bruno@clisp.org>
40780 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40783 2006-10-19 Bruno Haible <bruno@clisp.org>
40785 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40788 2006-10-19 Bruno Haible <bruno@clisp.org>
40790 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40791 mountlist by default.
40793 2006-10-16 Bruno Haible <bruno@clisp.org>
40795 * lib/c-strstr.c: Include c-strstr.h.
40797 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40799 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40802 2006-10-18 Bruno Haible <bruno@clisp.org>
40804 * lib/lock.h [C++]: Wrap definitions in extern "C".
40806 2006-10-18 Bruno Haible <bruno@clisp.org>
40808 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40811 2006-10-18 Bruno Haible <bruno@clisp.org>
40813 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40815 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40817 * lib/xstrtol.h: Include gettext.h.
40818 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40819 Problem reported by Eric Blake.
40820 * modules/xstrtol (Depends-on): Add gettext-h.
40822 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40824 * lib/strftime.c (advance): New macro.
40825 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40826 incomplete type, so you can't add 0 to it. Problem and patch
40827 reported by Eelco Dolstra for dietlibc.
40829 2006-10-18 Jim Meyering <jim@meyering.net>
40831 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40832 type for a local, and rename it: s/up/user_proc/.
40834 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40836 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40837 READ_UTMP_USER_PROCESS.
40838 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40840 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
40842 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40843 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40845 2006-10-17 Eric Blake <ebb9@byu.net>
40847 * lib/sigprocmask.c (sigprocmask): Fix typo.
40849 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40851 * modules/clean-temp (Makefile.am): Don't add to make output...
40852 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40855 2006-10-17 Bruno Haible <bruno@clisp.org>
40857 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40858 differently if DEFAULT_TEXT_DOMAIN is set.
40860 2006-10-16 Bruno Haible <bruno@clisp.org>
40862 * lib/clean-temp.c: Include fwriteerror.h.
40864 2006-10-16 Bruno Haible <bruno@clisp.org>
40866 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40868 2006-10-16 Bruno Haible <bruno@clisp.org>
40870 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40871 * lib/sigprocmask.h: Include <sys/types.h>.
40872 (sigset_t): Use the system's definition if present.
40874 2006-10-17 Eric Blake <ebb9@byu.net>
40876 * lib/xvasprintf.c (includes): Assume config.h.
40877 * lib/xasprintf.c (includes): Likewise.
40879 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
40881 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40882 at least as wide as intmax_t.
40884 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
40886 (Imported from Automake.)
40887 * build-aux/gnupload: Update to version 1.1 of directive file.
40889 2006-10-16 Eric Blake <ebb9@byu.net>
40891 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40892 match Automake 1.10a.
40894 2006-10-14 Bruno Haible <bruno@clisp.org>
40896 * modules/sigprocmask: New file.
40897 * lib/sigprocmask.h: New file.
40898 * lib/sigprocmask.c: New file.
40899 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40900 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40901 request sigprocmask.o.
40902 (gl_PREREQ_SIGPROCMASK): New macro.
40903 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40904 (Depends-on): Add sigprocmask.
40905 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40906 gt_SIGNALBLOCKING. Test for 'raise' only once.
40907 * lib/fatal-signal.c: Include sigprocmask.h.
40908 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40909 unblock_fatal_signals): Define always.
40910 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40913 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
40915 Sync from Automake.
40916 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40917 which incorrectly sets the mode of an existing destination
40918 directory. In some cases the unpatched install-sh could do the
40919 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40920 system. We hope this is rare in practice, but it's clearly worth
40921 fixing. Problem reported by Alex Unleashed in
40922 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40923 Also, don't bother to check for -m bugs unless we're using -m;
40924 suggested by Stepan Kasal.
40926 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40928 Sync from Automake.
40929 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40930 `-c' flag, so they appear at the same position as in %FASTDEP%
40931 mode in depend2.am. Fixes build failure for FreeBSD's c89,
40932 which ignores unknown options only after the first non-option.
40933 Bug report against M4 by Nelson H. F. Beebe.
40935 2006-10-13 Jim Meyering <jim@meyering.net>
40937 Fix a bug in yesterday's change.
40938 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40939 p->fts_statp->st_dev would be used uninitialized.
40940 Ensures that we always call fts_stat on the very first entry.
40941 Miklos Szeredi reported that find -xdev stopped working.
40943 2006-10-12 Bruno Haible <bruno@clisp.org>
40945 * gnulib-tool (func_get_automake_snippet): Append an automatically
40946 computed EXTRA_DIST augmentation.
40947 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40948 * modules/alloca-opt (Makefile.am): Likewise.
40949 * modules/allocsa (Makefile.am): Likewise.
40950 * modules/arcfour (Makefile.am): Likewise.
40951 * modules/arctwo (Makefile.am): Likewise.
40952 * modules/argmatch (Makefile.am): Likewise.
40953 * modules/argz (Makefile.am): Likewise.
40954 * modules/atexit (Makefile.am): Likewise.
40955 * modules/backupfile (Makefile.am): Likewise.
40956 * modules/byteswap (Makefile.am): Likewise.
40957 * modules/c-strtod (Makefile.am): Likewise.
40958 * modules/c-strtold (Makefile.am): Likewise.
40959 * modules/calloc (Makefile.am): Likewise.
40960 * modules/canon-host (Makefile.am): Likewise.
40961 * modules/canonicalize (Makefile.am): Likewise.
40962 * modules/chdir-long (Makefile.am): Likewise.
40963 * modules/chdir-safer (Makefile.am): Likewise.
40964 * modules/check-version (Makefile.am): Likewise.
40965 * modules/chown (Makefile.am): Likewise.
40966 * modules/cloexec (Makefile.am): Likewise.
40967 * modules/close-stream (Makefile.am): Likewise.
40968 * modules/closeout (Makefile.am): Likewise.
40969 * modules/crc (Makefile.am): Likewise.
40970 * modules/csharpexec (Makefile.am): Likewise.
40971 * modules/cycle-check (Makefile.am): Likewise.
40972 * modules/des (Makefile.am): Likewise.
40973 * modules/dev-ino (Makefile.am): Likewise.
40974 * modules/dirfd (Makefile.am): Likewise.
40975 * modules/dirname (Makefile.am): Likewise.
40976 * modules/dup2 (Makefile.am): Likewise.
40977 * modules/eealloc (Makefile.am): Likewise.
40978 * modules/error (Makefile.am): Likewise.
40979 * modules/euidaccess (Makefile.am): Likewise.
40980 * modules/exclude (Makefile.am): Likewise.
40981 * modules/exitfail (Makefile.am): Likewise.
40982 * modules/fcntl-safer (Makefile.am): Likewise.
40983 * modules/fcntl (Makefile.am): Likewise.
40984 * modules/file-type (Makefile.am): Likewise.
40985 * modules/fileblocks (Makefile.am): Likewise.
40986 * modules/filemode (Makefile.am): Likewise.
40987 * modules/filenamecat (Makefile.am): Likewise.
40988 * modules/fnmatch (Makefile.am): Likewise.
40989 * modules/fopen-safer (Makefile.am): Likewise.
40990 * modules/fpending (Makefile.am): Likewise.
40991 * modules/fprintftime (Makefile.am): Likewise.
40992 * modules/free (Makefile.am): Likewise.
40993 * modules/fsusage (Makefile.am): Likewise.
40994 * modules/ftruncate (Makefile.am): Likewise.
40995 * modules/fts (Makefile.am): Likewise.
40996 * modules/gc-arcfour (Makefile.am): Likewise.
40997 * modules/gc-des (Makefile.am): Likewise.
40998 * modules/gc-hmac-md5 (Makefile.am): Likewise.
40999 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41000 * modules/gc-md4 (Makefile.am): Likewise.
41001 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41002 * modules/gc-sha1 (Makefile.am): Likewise.
41003 * modules/gc (Makefile.am): Likewise.
41004 * modules/getaddrinfo (Makefile.am): Likewise.
41005 * modules/getcwd (Makefile.am): Likewise.
41006 * modules/getdelim (Makefile.am): Likewise.
41007 * modules/getdomainname (Makefile.am): Likewise.
41008 * modules/getgroups (Makefile.am): Likewise.
41009 * modules/gethostname (Makefile.am): Likewise.
41010 * modules/gethrxtime (Makefile.am): Likewise.
41011 * modules/getline (Makefile.am): Likewise.
41012 * modules/getloadavg (Makefile.am): Likewise.
41013 * modules/getlogin_r (Makefile.am): Likewise.
41014 * modules/getndelim2 (Makefile.am): Likewise.
41015 * modules/getopt (Makefile.am): Likewise.
41016 * modules/getpagesize (Makefile.am): Likewise.
41017 * modules/getpass-gnu (Makefile.am): Likewise.
41018 * modules/getpass (Makefile.am): Likewise.
41019 * modules/getsubopt (Makefile.am): Likewise.
41020 * modules/gettime (Makefile.am): Likewise.
41021 * modules/gettimeofday (Makefile.am): Likewise.
41022 * modules/getugroups (Makefile.am): Likewise.
41023 * modules/getusershell (Makefile.am): Likewise.
41024 * modules/glob (Makefile.am): Likewise.
41025 * modules/group-member (Makefile.am): Likewise.
41026 * modules/hard-locale (Makefile.am): Likewise.
41027 * modules/hash (Makefile.am): Likewise.
41028 * modules/hmac-md5 (Makefile.am): Likewise.
41029 * modules/hmac-sha1 (Makefile.am): Likewise.
41030 * modules/human (Makefile.am): Likewise.
41031 * modules/idcache (Makefile.am): Likewise.
41032 * modules/imaxabs (Makefile.am): Likewise.
41033 * modules/imaxdiv (Makefile.am): Likewise.
41034 * modules/inet_ntop (Makefile.am): Likewise.
41035 * modules/inet_pton (Makefile.am): Likewise.
41036 * modules/intprops (Makefile.am): Likewise.
41037 * modules/inttostr (Makefile.am): Likewise.
41038 * modules/inttypes (Makefile.am): Likewise.
41039 * modules/isapipe (Makefile.am): Likewise.
41040 * modules/javaversion (Makefile.am): Likewise.
41041 * modules/lchmod (Makefile.am): Likewise.
41042 * modules/lchown (Makefile.am): Likewise.
41043 * modules/localcharset (Makefile.am): Likewise.
41044 * modules/long-options (Makefile.am): Likewise.
41045 * modules/lstat (Makefile.am): Likewise.
41046 * modules/malloc (Makefile.am): Likewise.
41047 * modules/mathl (Makefile.am): Likewise.
41048 * modules/mbchar (Makefile.am): Likewise.
41049 * modules/md2 (Makefile.am): Likewise.
41050 * modules/md4 (Makefile.am): Likewise.
41051 * modules/md5 (Makefile.am): Likewise.
41052 * modules/memcasecmp (Makefile.am): Likewise.
41053 * modules/memchr (Makefile.am): Likewise.
41054 * modules/memcmp (Makefile.am): Likewise.
41055 * modules/memcoll (Makefile.am): Likewise.
41056 * modules/memcpy (Makefile.am): Likewise.
41057 * modules/memmem (Makefile.am): Likewise.
41058 * modules/memmove (Makefile.am): Likewise.
41059 * modules/mempcpy (Makefile.am): Likewise.
41060 * modules/memrchr (Makefile.am): Likewise.
41061 * modules/memset (Makefile.am): Likewise.
41062 * modules/memxor (Makefile.am): Likewise.
41063 * modules/mkancesdirs (Makefile.am): Likewise.
41064 * modules/mkdir-p (Makefile.am): Likewise.
41065 * modules/mkdir (Makefile.am): Likewise.
41066 * modules/mkdtemp (Makefile.am): Likewise.
41067 * modules/mkstemp (Makefile.am): Likewise.
41068 * modules/mktime (Makefile.am): Likewise.
41069 * modules/modechange (Makefile.am): Likewise.
41070 * modules/mountlist (Makefile.am): Likewise.
41071 * modules/nanosleep (Makefile.am): Likewise.
41072 * modules/obstack (Makefile.am): Likewise.
41073 * modules/openat (Makefile.am): Likewise.
41074 * modules/pagealign_alloc (Makefile.am): Likewise.
41075 * modules/pathmax (Makefile.am): Likewise.
41076 * modules/physmem (Makefile.am): Likewise.
41077 * modules/poll (Makefile.am): Likewise.
41078 * modules/posixtm (Makefile.am): Likewise.
41079 * modules/posixver (Makefile.am): Likewise.
41080 * modules/putenv (Makefile.am): Likewise.
41081 * modules/quote (Makefile.am): Likewise.
41082 * modules/quotearg (Makefile.am): Likewise.
41083 * modules/raise (Makefile.am): Likewise.
41084 * modules/read-file (Makefile.am): Likewise.
41085 * modules/readline (Makefile.am): Likewise.
41086 * modules/readlink (Makefile.am): Likewise.
41087 * modules/readtokens (Makefile.am): Likewise.
41088 * modules/readutmp (Makefile.am): Likewise.
41089 * modules/realloc (Makefile.am): Likewise.
41090 * modules/regex (Makefile.am): Likewise.
41091 * modules/rename-dest-slash (Makefile.am): Likewise.
41092 * modules/rename (Makefile.am): Likewise.
41093 * modules/rijndael (Makefile.am): Likewise.
41094 * modules/rmdir (Makefile.am): Likewise.
41095 * modules/rpmatch (Makefile.am): Likewise.
41096 * modules/safe-read (Makefile.am): Likewise.
41097 * modules/safe-write (Makefile.am): Likewise.
41098 * modules/same-inode (Makefile.am): Likewise.
41099 * modules/same (Makefile.am): Likewise.
41100 * modules/save-cwd (Makefile.am): Likewise.
41101 * modules/savedir (Makefile.am): Likewise.
41102 * modules/setenv (Makefile.am): Likewise.
41103 * modules/settime (Makefile.am): Likewise.
41104 * modules/sha1 (Makefile.am): Likewise.
41105 * modules/sig2str (Makefile.am): Likewise.
41106 * modules/snprintf (Makefile.am): Likewise.
41107 * modules/stat-macros (Makefile.am): Likewise.
41108 * modules/stat-time (Makefile.am): Likewise.
41109 * modules/stdbool (Makefile.am): Likewise.
41110 * modules/stdint (Makefile.am): Likewise.
41111 * modules/stdlib-safer (Makefile.am): Likewise.
41112 * modules/stpcpy (Makefile.am): Likewise.
41113 * modules/stpncpy (Makefile.am): Likewise.
41114 * modules/strcase (Makefile.am): Likewise.
41115 * modules/strcasestr (Makefile.am): Likewise.
41116 * modules/strchrnul (Makefile.am): Likewise.
41117 * modules/strcspn (Makefile.am): Likewise.
41118 * modules/strdup (Makefile.am): Likewise.
41119 * modules/strerror (Makefile.am): Likewise.
41120 * modules/strftime (Makefile.am): Likewise.
41121 * modules/strndup (Makefile.am): Likewise.
41122 * modules/strnlen (Makefile.am): Likewise.
41123 * modules/strpbrk (Makefile.am): Likewise.
41124 * modules/strsep (Makefile.am): Likewise.
41125 * modules/strstr (Makefile.am): Likewise.
41126 * modules/strtod (Makefile.am): Likewise.
41127 * modules/strtoimax (Makefile.am): Likewise.
41128 * modules/strtok_r (Makefile.am): Likewise.
41129 * modules/strtol (Makefile.am): Likewise.
41130 * modules/strtoll (Makefile.am): Likewise.
41131 * modules/strtoul (Makefile.am): Likewise.
41132 * modules/strtoull (Makefile.am): Likewise.
41133 * modules/strtoumax (Makefile.am): Likewise.
41134 * modules/strverscmp (Makefile.am): Likewise.
41135 * modules/sys_socket (Makefile.am): Likewise.
41136 * modules/sys_stat (Makefile.am): Likewise.
41137 * modules/sysexits (Makefile.am): Likewise.
41138 * modules/time_r (Makefile.am): Likewise.
41139 * modules/timegm (Makefile.am): Likewise.
41140 * modules/timespec (Makefile.am): Likewise.
41141 * modules/tmpfile-safer (Makefile.am): Likewise.
41142 * modules/trim (Makefile.am): Likewise.
41143 * modules/unistd-safer (Makefile.am): Likewise.
41144 * modules/unlinkdir (Makefile.am): Likewise.
41145 * modules/unlocked-io (Makefile.am): Likewise.
41146 * modules/userspec (Makefile.am): Likewise.
41147 * modules/utime (Makefile.am): Likewise.
41148 * modules/utimecmp (Makefile.am): Likewise.
41149 * modules/utimens (Makefile.am): Likewise.
41150 * modules/vasnprintf (Makefile.am): Likewise.
41151 * modules/vasprintf (Makefile.am): Likewise.
41152 * modules/vsnprintf (Makefile.am): Likewise.
41153 * modules/xalloc (Makefile.am): Likewise.
41154 * modules/xgetcwd (Makefile.am): Likewise.
41155 * modules/xnanosleep (Makefile.am): Likewise.
41156 * modules/xreadlink (Makefile.am): Likewise.
41157 * modules/xstrtod (Makefile.am): Likewise.
41158 * modules/xstrtol (Makefile.am): Likewise.
41159 * modules/xstrtold (Makefile.am): Likewise.
41160 * modules/yesno (Makefile.am): Likewise.
41161 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41163 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41165 * modules/error (Makefile.am): Distribute files through
41166 EXTRA_DIST, not lib_SOURCES.
41168 2006-10-12 Eric Blake <ebb9@byu.net>
41170 * modules/error (Makefile.am): Distribute files in /lib.
41171 * modules/obstack (Makefile.am): Likewise.
41173 2006-10-12 Bruno Haible <bruno@clisp.org>
41175 * modules/acl (Makefile.am): Distribute all files in lib/ through
41177 * modules/arcfour (Makefile.am): Likewise.
41178 * modules/arctwo (Makefile.am): Likewise.
41179 * modules/argmatch (Makefile.am): Likewise.
41180 * modules/argz (Makefile.am): Likewise.
41181 * modules/atexit (Makefile.am): Likewise.
41182 * modules/backupfile (Makefile.am): Likewise.
41183 * modules/c-strtod (Makefile.am): Likewise.
41184 * modules/c-strtold (Makefile.am): Likewise.
41185 * modules/calloc (Makefile.am): Likewise.
41186 * modules/canon-host (Makefile.am): Likewise.
41187 * modules/canonicalize (Makefile.am): Likewise.
41188 * modules/chdir-long (Makefile.am): Likewise.
41189 * modules/chdir-safer (Makefile.am): Likewise.
41190 * modules/check-version (Makefile.am): Likewise.
41191 * modules/chown (Makefile.am): Likewise.
41192 * modules/cloexec (Makefile.am): Likewise.
41193 * modules/close-stream (Makefile.am): Likewise.
41194 * modules/closeout (Makefile.am): Likewise.
41195 * modules/crc (Makefile.am): Likewise.
41196 * modules/cycle-check (Makefile.am): Likewise.
41197 * modules/des (Makefile.am): Likewise.
41198 * modules/dirfd (Makefile.am): Likewise.
41199 * modules/dirname (Makefile.am): Likewise.
41200 * modules/dup2 (Makefile.am): Likewise.
41201 * modules/euidaccess (Makefile.am): Likewise.
41202 * modules/exclude (Makefile.am): Likewise.
41203 * modules/exitfail (Makefile.am): Likewise.
41204 * modules/fcntl-safer (Makefile.am): Likewise.
41205 * modules/file-type (Makefile.am): Likewise.
41206 * modules/fileblocks (Makefile.am): Likewise.
41207 * modules/filemode (Makefile.am): Likewise.
41208 * modules/filenamecat (Makefile.am): Likewise.
41209 * modules/fnmatch (Makefile.am): Likewise.
41210 * modules/fopen-safer (Makefile.am): Likewise.
41211 * modules/fpending (Makefile.am): Likewise.
41212 * modules/fprintftime (Makefile.am): Likewise.
41213 * modules/free (Makefile.am): Likewise.
41214 * modules/fsusage (Makefile.am): Likewise.
41215 * modules/ftruncate (Makefile.am): Likewise.
41216 * modules/fts (Makefile.am): Likewise.
41217 * modules/gc (Makefile.am): Likewise.
41218 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41219 * modules/getaddrinfo (Makefile.am): Likewise.
41220 * modules/getcwd (Makefile.am): Likewise.
41221 * modules/getdelim (Makefile.am): Likewise.
41222 * modules/getdomainname (Makefile.am): Likewise.
41223 * modules/getgroups (Makefile.am): Likewise.
41224 * modules/gethostname (Makefile.am): Likewise.
41225 * modules/gethrxtime (Makefile.am): Likewise.
41226 * modules/getline (Makefile.am): Likewise.
41227 * modules/getloadavg (Makefile.am): Likewise.
41228 * modules/getlogin_r (Makefile.am): Likewise.
41229 * modules/getopt (Makefile.am): Likewise.
41230 * modules/getpass (Makefile.am): Likewise.
41231 * modules/getpass-gnu (Makefile.am): Likewise.
41232 * modules/getsubopt (Makefile.am): Likewise.
41233 * modules/gettime (Makefile.am): Likewise.
41234 * modules/gettimeofday (Makefile.am): Likewise.
41235 * modules/getugroups (Makefile.am): Likewise.
41236 * modules/getusershell (Makefile.am): Likewise.
41237 * modules/glob (Makefile.am): Likewise.
41238 * modules/group-member (Makefile.am): Likewise.
41239 * modules/hard-locale (Makefile.am): Likewise.
41240 * modules/hash (Makefile.am): Likewise.
41241 * modules/hmac-md5 (Makefile.am): Likewise.
41242 * modules/hmac-sha1 (Makefile.am): Likewise.
41243 * modules/human (Makefile.am): Likewise.
41244 * modules/idcache (Makefile.am): Likewise.
41245 * modules/imaxabs (Makefile.am): Likewise.
41246 * modules/imaxdiv (Makefile.am): Likewise.
41247 * modules/inet_ntop (Makefile.am): Likewise.
41248 * modules/inet_pton (Makefile.am): Likewise.
41249 * modules/inttostr (Makefile.am): Likewise.
41250 * modules/isapipe (Makefile.am): Likewise.
41251 * modules/lchown (Makefile.am): Likewise.
41252 * modules/long-options (Makefile.am): Likewise.
41253 * modules/lstat (Makefile.am): Likewise.
41254 * modules/malloc (Makefile.am): Likewise.
41255 * modules/mathl (Makefile.am): Likewise.
41256 * modules/mbchar (Makefile.am): Likewise.
41257 * modules/md2 (Makefile.am): Likewise.
41258 * modules/md4 (Makefile.am): Likewise.
41259 * modules/md5 (Makefile.am): Likewise.
41260 * modules/memcasecmp (Makefile.am): Likewise.
41261 * modules/memchr (Makefile.am): Likewise.
41262 * modules/memcmp (Makefile.am): Likewise.
41263 * modules/memcoll (Makefile.am): Likewise.
41264 * modules/memcpy (Makefile.am): Likewise.
41265 * modules/memmem (Makefile.am): Likewise.
41266 * modules/memmove (Makefile.am): Likewise.
41267 * modules/mempcpy (Makefile.am): Likewise.
41268 * modules/memrchr (Makefile.am): Likewise.
41269 * modules/memset (Makefile.am): Likewise.
41270 * modules/memxor (Makefile.am): Likewise.
41271 * modules/mkancesdirs (Makefile.am): Likewise.
41272 * modules/mkdir (Makefile.am): Likewise.
41273 * modules/mkdir-p (Makefile.am): Likewise.
41274 * modules/mkdtemp (Makefile.am): Likewise.
41275 * modules/mkstemp (Makefile.am): Likewise.
41276 * modules/mktime (Makefile.am): Likewise.
41277 * modules/modechange (Makefile.am): Likewise.
41278 * modules/mountlist (Makefile.am): Likewise.
41279 * modules/nanosleep (Makefile.am): Likewise.
41280 * modules/openat (Makefile.am): Likewise.
41281 * modules/pagealign_alloc (Makefile.am): Likewise.
41282 * modules/physmem (Makefile.am): Likewise.
41283 * modules/poll (Makefile.am): Likewise.
41284 * modules/posixtm (Makefile.am): Likewise.
41285 * modules/posixver (Makefile.am): Likewise.
41286 * modules/putenv (Makefile.am): Likewise.
41287 * modules/quote (Makefile.am): Likewise.
41288 * modules/quotearg (Makefile.am): Likewise.
41289 * modules/raise (Makefile.am): Likewise.
41290 * modules/read-file (Makefile.am): Likewise.
41291 * modules/readline (Makefile.am): Likewise.
41292 * modules/readlink (Makefile.am): Likewise.
41293 * modules/readtokens (Makefile.am): Likewise.
41294 * modules/readutmp (Makefile.am): Likewise.
41295 * modules/realloc (Makefile.am): Likewise.
41296 * modules/regex (Makefile.am): Likewise.
41297 * modules/rename (Makefile.am): Likewise.
41298 * modules/rename-dest-slash (Makefile.am): Likewise.
41299 * modules/rijndael (Makefile.am): Likewise.
41300 * modules/rmdir (Makefile.am): Likewise.
41301 * modules/rpmatch (Makefile.am): Likewise.
41302 * modules/safe-read (Makefile.am): Likewise.
41303 * modules/safe-write (Makefile.am): Likewise.
41304 * modules/same (Makefile.am): Likewise.
41305 * modules/save-cwd (Makefile.am): Likewise.
41306 * modules/savedir (Makefile.am): Likewise.
41307 * modules/setenv (Makefile.am): Likewise.
41308 * modules/settime (Makefile.am): Likewise.
41309 * modules/sha1 (Makefile.am): Likewise.
41310 * modules/sig2str (Makefile.am): Likewise.
41311 * modules/snprintf (Makefile.am): Likewise.
41312 * modules/stdlib-safer (Makefile.am): Likewise.
41313 * modules/stpcpy (Makefile.am): Likewise.
41314 * modules/stpncpy (Makefile.am): Likewise.
41315 * modules/strcase (Makefile.am): Likewise.
41316 * modules/strcasestr (Makefile.am): Likewise.
41317 * modules/strchrnul (Makefile.am): Likewise.
41318 * modules/strcspn (Makefile.am): Likewise.
41319 * modules/strdup (Makefile.am): Likewise.
41320 * modules/strerror (Makefile.am): Likewise.
41321 * modules/strftime (Makefile.am): Likewise.
41322 * modules/strndup (Makefile.am): Likewise.
41323 * modules/strnlen (Makefile.am): Likewise.
41324 * modules/strpbrk (Makefile.am): Likewise.
41325 * modules/strsep (Makefile.am): Likewise.
41326 * modules/strstr (Makefile.am): Likewise.
41327 * modules/strtod (Makefile.am): Likewise.
41328 * modules/strtoimax (Makefile.am): Likewise.
41329 * modules/strtok_r (Makefile.am): Likewise.
41330 * modules/strtol (Makefile.am): Likewise.
41331 * modules/strtoll (Makefile.am): Likewise.
41332 * modules/strtoul (Makefile.am): Likewise.
41333 * modules/strtoull (Makefile.am): Likewise.
41334 * modules/strtoumax (Makefile.am): Likewise.
41335 * modules/strverscmp (Makefile.am): Likewise.
41336 * modules/time_r (Makefile.am): Likewise.
41337 * modules/timegm (Makefile.am): Likewise.
41338 * modules/tmpfile-safer (Makefile.am): Likewise.
41339 * modules/unistd-safer (Makefile.am): Likewise.
41340 * modules/unlinkdir (Makefile.am): Likewise.
41341 * modules/userspec (Makefile.am): Likewise.
41342 * modules/utime (Makefile.am): Likewise.
41343 * modules/utimecmp (Makefile.am): Likewise.
41344 * modules/utimens (Makefile.am): Likewise.
41345 * modules/vasnprintf (Makefile.am): Likewise.
41346 * modules/vasprintf (Makefile.am): Likewise.
41347 * modules/vsnprintf (Makefile.am): Likewise.
41348 * modules/xalloc (Makefile.am): Likewise.
41349 * modules/xgetcwd (Makefile.am): Likewise.
41350 * modules/xnanosleep (Makefile.am): Likewise.
41351 * modules/xreadlink (Makefile.am): Likewise.
41352 * modules/xstrtod (Makefile.am): Likewise.
41353 * modules/xstrtol (Makefile.am): Likewise.
41354 * modules/xstrtold (Makefile.am): Likewise.
41355 * modules/yesno (Makefile.am): Likewise.
41357 2006-10-12 Jim Meyering <jim@meyering.net>
41359 * m4/getloadavg.m4: Revert the change below.
41361 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41362 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41363 fail with a symlink, which is what coreutils' ./bootstrap now
41364 creates by default.
41366 2006-10-12 Bruno Haible <bruno@clisp.org>
41368 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41370 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41371 MSVC and mingw explicitly.
41373 2006-10-11 Simon Josefsson <jas@extundo.com>
41374 Bruno Haible <bruno@clisp.org>
41376 Add support for multiple gnulib-tool invocations in the scope of a
41377 single configure.ac file.
41378 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41379 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41380 with the same contents as the _LIBADD variable.
41381 (func_emit_initmacro_start, func_emit_initmacro_end,
41382 func_emit_initmacro_done): New functions.
41383 (func_import, func_create_testdir): Invoke them. Allow the identifiers
41384 gl_LIBOBJS and gl_LTLIBOBJS.
41386 2006-10-11 Bruno Haible <bruno@clisp.org>
41388 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41389 (func_create_testdir): Don't create po/Makefile.am, don't invoke
41390 autoreconf. Instead, invoke autopoint explicitly but move back the
41391 *.m4 files from gnulib.
41393 2006-10-11 Bruno Haible <bruno@clisp.org>
41395 * gnulib-tool (func_usage): Make module names after --create-testdir
41397 (func_create_testdir): If no module was specified, use nearly all
41400 2006-10-12 Jim Meyering <jim@meyering.net>
41402 Big performance improvement for fts-based tools that use FTS_NOSTAT.
41403 Avoid spurious inode-mismatch problems on non-POSIX file systems.
41404 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41405 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41406 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41407 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41408 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41409 (fts_set_stat_required): New function.
41410 (fts_open): Defer the calls to fts_stat, if possible or requested.
41411 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41412 into fts_stat itself.
41413 (fts_read): Perform any required (deferred) fts_stat call.
41414 (fts_build): Likewise, for the directory we're about to open and read.
41415 In the readdir loop, carefully decide whether each entry will require
41416 an eventual call to fts_stat, using dirent.d_type info if available.
41417 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41418 a command line argument into this function. Update all callers.
41419 Map a return value of FTS_DOT to FTS_D for a command line argument.
41420 * modules/fts (Depends-on): Add d-type. Alphabetize.
41421 Thanks to Miklos Szeredi for his tenacity and for the initial
41422 bug report about "find" failing on a FUSE-based file system.
41424 * lib/fts.c (fts_open): Use consistent indentation.
41426 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41428 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41429 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41430 reported by Jim Meyering. All uses of cache variables renamed
41431 to match Autoconf's.
41432 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41435 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41436 Fix misspelling in diagnostic.
41438 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41440 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41441 defined. Problem reported by Matthew Woehlke.
41443 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41444 Add support for Tandem NonStop R series.
41445 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41448 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41449 (has_trailing_slash): Omit size arg; all callers changed.
41450 Omit 'inline', since it doesn't help performance and we'd
41451 need to configure it.
41452 Don't count //, ///, etc. as having a trailing slash.
41453 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41454 (rpl_rename_dest_slash): On failure, use rename's errno rather
41455 than (in some cases) an incorrect or junk errno.
41456 Simplify code by removing need to compute length; this does
41457 cause it to make two passes instead of one over the file name,
41460 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41461 change, since Autoconf's version may no longer be appropriate now
41462 that we are using CVS Autoconf's version. Add support for Tandem.
41464 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41465 Bruno Haible <bruno@clisp.org>
41467 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41468 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41469 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41470 gl_AC_TYPE_LONG_LONG.
41472 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41473 instead of HAVE_LONG_LONG.
41474 * lib/printf-args.c (printf_fetchargs): Likewise.
41475 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41476 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41477 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41478 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41479 gl_AC_TYPE_LONG_LONG.
41481 2006-10-11 Bruno Haible <bruno@clisp.org>
41483 * m4/longlong.m4: Add comments.
41484 * m4/ulonglong.m4: Likewise.
41486 2006-10-10 Bruno Haible <bruno@clisp.org>
41488 Make it possible to #define stpcpy, strdup to aliases.
41489 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41490 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41492 2006-10-10 Bruno Haible <bruno@clisp.org>
41494 Make it possible to #define gcd to an alias.
41495 * lib/gcd.c: Include config.h.
41497 2006-10-10 Bruno Haible <bruno@clisp.org>
41499 Make it possible to #define c_isascii to an alias.
41500 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41501 defined. Undefine the macros before defining them, to avoid gcc
41503 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41504 define NO_C_CTYPE_MACROS early.
41506 2006-10-10 Bruno Haible <bruno@clisp.org>
41508 Make it possible to #define set_program_name to an alias.
41509 * lib/progname.c: Don't undefine set_program_name; instead, undefine
41510 ENABLE_RELOCATABLE early.
41512 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
41514 Port to Tandem NSK OSS, which has 64-bit signed int but at most
41515 32-bit unsigned int. Problem reported by Matthew Woehlke in:
41516 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41517 More generally, don't assume that 64-bit signed int is available
41518 if unsigned int is, and vice versa.
41519 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41520 unsigned symbols, not on their signed counterparts.
41521 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41522 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41523 (UINT64_C, UINTMAX_C):
41525 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41526 unsigned counterparts.
41527 (Have_long_long, Unsigned): New macros.
41528 (Int): Renamed from INT.
41529 (strtoimax): Use the new macros.
41530 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41531 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41532 * modules/inttypes (inttypes.h): Substitute
41533 HAVE_UNSIGNED_LONG_LONG_INT.
41534 * modules/stdint (stdint.h): Likewise.
41535 (Files): Add m4/ulonglong.m4.
41537 2006-10-10 Bruno Haible <bruno@clisp.org>
41539 Fix a gcc -Wshadow warning.
41540 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41542 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41543 gl_linked_indexof_from_to): Likewise.
41544 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41546 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41548 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41549 Reported by Eric Blake.
41551 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
41553 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41554 for NetBSD. Problem reported by Bruno Haible.
41556 2006-10-09 Jim Meyering <jim@meyering.net>
41558 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41559 Patch from Bruno Haible.
41561 2006-10-09 Jim Meyering <jim@meyering.net>
41563 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41564 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41565 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41567 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
41569 Don't include <config.h> twice; this doesn't work in some cases,
41570 e.g., when config.h has "#define intmax_t long long int" and
41571 we include <config.h>, <inttypes.h>, <config.h> in that order.
41572 Problem reported by Matthew Woehlke in:
41573 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41574 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41575 * lib/fts-cycle.c: Don't include config.h.
41576 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41577 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41578 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
41579 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41581 * lib/xstrtoumax.c: Likewise.
41582 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41583 __strtol and the like, so that this module is more like its siblings.
41584 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41585 Remove; no longer needed now that we assume gnulib inttypes.h.
41587 2006-10-08 Bruno Haible <bruno@clisp.org>
41589 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41592 2006-10-07 Jim Meyering <jim@meyering.net>
41594 * modules/inttypes (inttypes.h): Revert what seems to have been
41595 an inadvertent part of today's change: use "|", not "/" in the
41596 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41598 2006-10-07 Bruno Haible <bruno@clisp.org>
41600 * modules/sublist: New file.
41602 2006-10-07 Bruno Haible <bruno@clisp.org>
41604 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41605 * modules/argz (argz.h): Likewise.
41606 * modules/arpa_inet (arpa/inet.h): Likewise.
41607 * modules/byteswap (byteswap.h): Likewise.
41608 * modules/configmake (configmake.h): Likewise.
41609 * modules/fcntl (fcntl.h): Likewise.
41610 * modules/fnmatch (fnmatch.h): Likewise.
41611 * modules/getopt (getopt.h): Likewise.
41612 * modules/glob (glob.h): Likewise.
41613 * modules/inttypes (inttypes.h): Likewise.
41614 * modules/netinet_in (netinet/in.h): Likewise.
41615 * modules/poll (poll.h): Likewise.
41616 * modules/stdbool (stdbool.h): Likewise.
41617 * modules/stdint (stdint.h): Likewise.
41618 * modules/sys_select (sys/select.h): Likewise.
41619 * modules/sys_socket (sys/socket.h): Likewise.
41620 * modules/sys_stat (sys/stat.h): Likewise.
41621 * modules/sysexits (sysexits.h): Likewise.
41622 * modules/unistd (unistd.h): Likewise.
41623 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41624 Add a "DO NOT EDIT" comment to the generated file.
41625 (func_import): Likewise for gnulib-comp.m4.
41627 2006-10-07 Bruno Haible <bruno@clisp.org>
41629 * lib/gl_sublist.h: New file.
41630 * lib/gl_sublist.c: New file.
41632 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
41634 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41635 name (relative to the original working directory) and the file
41636 name component (relative to the temporary working directory). All
41638 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41639 * lib/mkdir-p.c (make_dir_parents): Likewise.
41640 * lib/mkdir-p.h (make_dir_parents): Likewise.
41642 2006-10-06 Eric Blake <ebb9@byu.net>
41644 Define several macros for use by the clean-temp module.
41645 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41646 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41647 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41649 * lib/clean-temp.h (close_stream_temp): New declaration.
41650 * lib/clean-temp.c (includes): Pull in headers according to what
41651 other modules are in use.
41652 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41654 2006-10-06 Bruno Haible <bruno@clisp.org>
41656 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41657 instead of fopen, fwriteerror.
41659 2006-10-06 Bruno Haible <bruno@clisp.org>
41661 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41662 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41664 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41665 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41666 Return an error indicator.
41667 Suggested by Eric Blake.
41669 2006-10-06 Bruno Haible <bruno@clisp.org>
41671 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41672 Reported by Eric Blake.
41674 2006-10-06 Bruno Haible <bruno@clisp.org>
41676 * modules/closeout (Description): Mention stderr too.
41678 2006-10-06 Bruno Haible <bruno@clisp.org>
41679 and Paul Eggert <eggert@cs.ucla.edu>
41681 * lib/closeout.c (close_stdout): Also close stderr.
41682 * lib/closeout.h: Update comment.
41684 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
41686 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41687 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41688 * lib/dirchownmod.c: Include lchown.h.
41689 * lib/lchown.c: Don't include files that lchown.h now includes.
41690 Don't declare chown, since lchown.h now does that.
41691 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41692 (lchown): Define to rpl_chown if lchown is declared but
41693 does not exist. Declare using a prototype if lchown is not
41694 declared. Add a copyright notice.
41695 * lib/mkstemp.h: Include <unistd.h>.
41696 * lib/openat.c: Include lchown.h.
41698 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41699 we now test for that separately.
41700 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41701 rather than O_NOFOLLOW, when testing whether it's possible to
41702 avoid a race condition reliably.
41703 * lib/savewd.c (savewd_chdir): Likewise.
41705 Remove macros that are no longer needed now that stdint.h is
41707 * lib/fsusage.c (UINTMAX_MAX): Remove.
41708 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41709 * lib/utimecmp.c (SIZE_MAX): Remove.
41711 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41713 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41714 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
41717 2006-10-05 Bruno Haible <bruno@clisp.org>
41719 * lib/gl_list.h (gl_sortedlist_search_from_to,
41720 gl_sortedlist_indexof_from_to): New declarations.
41721 (gl_list_implementation): New fields sortedlist_search_from_to,
41722 sortedlist_indexof_from_to.
41723 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41725 * lib/gl_list.c (gl_sortedlist_search_from_to,
41726 gl_sortedlist_indexof_from_to): New functions.
41727 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41729 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41730 (gl_array_sortedlist_search_from_to): New function.
41731 (gl_array_list_implementation): Update.
41732 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41734 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41735 (gl_carray_sortedlist_search_from_to): New function.
41736 (gl_carray_list_implementation): Update.
41737 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41738 gl_linked_sortedlist_indexof_from_to): New functions.
41739 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41740 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41741 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41742 gl_tree_sortedlist_indexof_from_to): New functions.
41743 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41744 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41746 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41747 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41750 2006-10-05 Bruno Haible <bruno@clisp.org>
41752 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41753 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41754 (struct gl_list_implementation): Add fields search_from_to,
41755 indexof_from_to. Remove fields search, indexof.
41756 (gl_list_search): Use the search_from_to method.
41757 (gl_list_search_from, gl_list_search_from_to): New functions.
41758 (gl_list_indexof): Use the indexof_from_to method.
41759 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41760 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41761 (gl_list_search_from, gl_list_search_from_to): New functions.
41762 (gl_list_indexof): Use the indexof_from_to method.
41763 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41764 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41765 gl_array_indexof. Add start_index, end_index arguments.
41766 (gl_array_search_from_to): Renamed from gl_array_search. Add
41767 start_index, end_index arguments.
41768 (gl_array_remove, gl_array_list_implementation): Update.
41769 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41770 gl_carray_indexof. Add start_index, end_index arguments.
41771 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41772 start_index, end_index arguments.
41773 (gl_carray_remove, gl_carray_list_implementation): Update.
41774 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41775 gl_linked_search. Add start_index, end_index arguments.
41776 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41777 start_index, end_index arguments.
41778 (gl_linked_remove): Update.
41779 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41780 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41781 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41783 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41784 gl_tree_search. Add start_index, end_index arguments.
41785 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41786 start_index, end_index arguments.
41787 (gl_tree_remove): Update.
41788 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41789 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41790 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41792 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41793 gl_tree_search. Add start_index, end_index arguments.
41794 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41795 start_index, end_index arguments.
41796 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41798 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41800 2006-10-05 Bruno Haible <bruno@clisp.org>
41802 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41804 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41805 fwriteerror_temp): New declarations.
41806 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41807 (descriptors): New variable.
41808 (cleanup): First, close the descriptors.
41809 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41810 fclose_temp, fwriteerror_temp): New functions.
41812 2006-10-04 Jim Meyering <jim@meyering.net>
41814 * lib/fts.c (fts_open): Tiny comment change.
41816 2006-10-04 Bruno Haible <bruno@clisp.org>
41818 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41819 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41821 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41822 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41823 gl_LOCK_EARLY_BODY.
41824 (gl_LOCK): Require gl_LOCK_BODY.
41826 2006-10-04 Bruno Haible <bruno@clisp.org>
41828 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41829 (gl_oset_search_atleast): New declaration.
41830 (struct gl_oset_implementation): Add field 'search_atleast'.
41831 (gl_oset_search_atleast): New inline function.
41832 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41833 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41834 (gl_array_oset_implementation): Update.
41835 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41836 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41837 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41839 2006-10-04 Bruno Haible <bruno@clisp.org>
41841 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41843 2006-10-03 Bruno Haible <bruno@clisp.org>
41845 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41846 from gl_avltreehash_list_implementation.
41848 2006-10-03 Bruno Haible <bruno@clisp.org>
41850 * lib/gl_oset.c (gl_oset_add): Fix return type.
41852 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
41854 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41856 2006-10-02 Eric Blake <ebb9@byu.net>
41858 * modules/strnlen (Depends-on): Add extensions.
41860 2006-10-02 Eric Blake <ebb9@byu.net>
41862 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41863 definition in 2.60+.
41865 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
41867 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41870 2006-10-02 Bruno Haible <bruno@clisp.org>
41872 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41873 to the AUTOMAKE_OPTIONS.
41874 Reported by Jim Meyering.
41876 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
41878 Work around bug in Solaris 10 /proc file system:
41879 /proc/self/fd/NNN/.. isn't the parent directory of
41880 the directory whose file descriptor is NNN. This needs to
41881 be worked around at run time, not compile time, since a
41882 program might be built on Solaris 8, where things work, and
41884 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
41885 to use the following interface instead:
41886 (OPENAT_BUFFER_SIZE): New macro.
41887 (openat_proc_name): New function.
41888 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41889 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41891 * lib/openat-proc.c: New file.
41892 * modules/openat (Files): Add lib/openat-proc.c.
41893 (Depends-on): Add same-inode, stdbool.
41894 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41896 2006-09-29 Bruno Haible <bruno@clisp.org>
41898 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41899 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41900 argument. Set stdout_closed before testing for ferror, not after.
41901 (fwriteerror, fwriteerror_no_ebadf): New functions.
41903 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41905 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41907 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
41909 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41910 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41912 2006-09-28 Jim Meyering <jim@meyering.net>
41914 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41915 Include <unistd.h>.
41917 2006-09-28 Bruno Haible <bruno@clisp.org>
41919 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41920 * modules/linkedhash-list (Depends-on): Likewise.
41921 * modules/rbtreehash-list (Depends-on): Likewise.
41923 2006-09-28 Bruno Haible <bruno@clisp.org>
41925 * lib/strndup.h: Simplify the redefinition of strndup.
41926 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41927 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41929 2006-09-28 Bruno Haible <bruno@clisp.org>
41931 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41932 * lib/gl_linkedhash_list.c: Likewise.
41933 * lib/gl_rbtreehash_list.c: Likewise.
41935 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
41937 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41940 * lib/__fpending.h: Don't include <stdio_ext.h> unless
41941 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
41942 it causes <stdio_ext.h> to cause a compile-time error.
41943 Problem reported by Nelson H. F. Beebe.
41944 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41945 of HAVE_DECL___PENDING.
41947 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41948 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41951 2006-09-27 Jim Meyering <jim@meyering.net>
41953 This file could end up with a definition for a function
41954 named __strndup, rather than rpl_strndup on a system with
41955 incomplete weak_alias support.
41956 * lib/strndup.c (strndup): Rename from __strndup.
41957 Remove #defines that used to map __strndup to strndup.
41958 Don't use K&R prototypes.
41959 Remove LIBC-related code, since this file is not sync'd with glibc.
41960 * lib/strndup.h: Revamp, accordingly.
41961 * m4/strndup.m4: Modernize.
41963 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
41965 * modules/savewd (Depends-on): Add 'raise'.
41966 * lib/savewd.c: Include <signal.h>, for 'raise'.
41968 2006-09-26 Jim Meyering <jim@meyering.net>
41970 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41971 when we detect Darwin 8.7.0's acl_get_file bug.
41972 Rearrange to perform the new (below) run-test while $LIBS
41973 contains any acl-related library. Set USE_ACL at the end.
41974 (gl_ACL_GET_FILE): New function.
41976 2006-09-26 Eric Blake <ebb9@byu.net>
41978 * lib/verror.c: Include <config.h> unconditionally.
41980 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
41982 * modules/clock-time (Maintainer): Add self.
41983 * modules/getlogin_r (Depends-on): Add extensions.
41985 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41987 * modules/clock-time: New module.
41988 * modules/nanosleep (Depends-on): Add clock-time.
41989 * modules/gethrxtime (Depends-on): Likewise.
41990 * modules/gettime (Depends-on): Likewise.
41991 * modules/settime (Depends-on): Likewise.
41993 * modules/fts-lgpl: Depend on openat.
41994 * modules/mkancesdirs: Depend on savewd.
41995 * modules/mkdir-p: Likewise.
41997 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41999 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42001 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42002 `gl_have_arbitrary_file_name_length_limit' to
42003 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42004 actually works between configure runs.
42006 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42007 Bruno Haible <bruno@clisp.org>
42009 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42011 2006-09-25 Jim Meyering <jim@meyering.net>
42013 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42014 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42016 2006-09-25 Eric Blake <ebb9@byu.net>
42018 * gnulib-tool (func_import, func_create_testdir): Fix typos in
42019 exec's in 2006-09-18 patch when shuffling fds.
42021 2006-09-25 Bruno Haible <bruno@clisp.org>
42023 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42024 Reported by Jim Meyering.
42026 2006-09-24 Jim Meyering <jim@meyering.net>
42028 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42029 compare a pointer against a literal "0". That caused failures with
42030 at least HP-UX's hpcc.
42032 2006-09-22 Simon Josefsson <jas@extundo.com>
42036 * modules/gc-hmac-sha1:
42037 * modules/gc-hmac-md5:
42039 * modules/gc-arcfour: Distribute more files.
42041 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42043 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42044 (gl_linked_iterator_from_to): Initialize struct completely.
42045 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42046 (gl_tree_iterator_from_to): Likewise
42047 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42048 * lib/gl_array_list.c [lint] (gl_array_iterator)
42049 (gl_array_iterator_from_to): Likewise.
42050 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42051 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42052 (gl_carray_iterator_from_to): Likewise.
42054 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42055 * lib/md4.c (md4_process_block): Remove unused variable.
42056 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42057 parentheses for clarity.
42059 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42061 * modules/bison-i18n (Depends-on): Add gettext.
42063 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42065 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42066 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42067 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42068 also add missing comma that caused broken test.
42069 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42070 stdlib.h, for `abort'.
42071 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42073 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42074 include unistd.h if present, for `rmdir'.
42075 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42077 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42078 in the process include standard headers for prototypes.
42079 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42080 gets declared on GNU/Linux.
42081 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42082 unistd.h, for `rmdir'.
42083 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42085 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42087 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42089 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42091 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42093 * gnulib-tool (func_version): Create output all at once. This
42094 may help avoid triggering unnecessary SIGPIPEs, and at any
42095 rate it doesn't hurt.
42097 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42098 Bruno Haible <bruno@clisp.org>
42100 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42101 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42102 * m4/signed.m4 (bh_C_SIGNED): Likewise.
42104 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42105 (gl_FUNC_VASPRINTF): Invoke it.
42107 2006-09-22 Bruno Haible <bruno@clisp.org>
42109 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42110 getloadavg.c as first argument.
42112 2006-09-22 Bruno Haible <bruno@clisp.org>
42114 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42115 at the beginning of the gl_INIT macro.
42116 * modules/getloadavg (configure.ac): Pass $gl_source_base to
42119 2006-09-22 Bruno Haible <bruno@clisp.org>
42121 * gnulib-tool (func_create_megatestdir): Don't include the config-h
42123 Suggested by Ralf Wildenhues.
42125 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
42127 Import this patch from libc:
42129 2006-09-06 Jakub Jelinek <jakub@redhat.com>
42131 * lib/regex_internal.c (re_string_reconstruct): Handle
42132 offset < pstr->valid_raw_len && pstr->offsets_needed case.
42133 Ensure no bytes read before raw_mbs array. Pass a saved copy of
42134 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42135 re_string_context_at.
42137 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42139 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42140 gl_REGEX now does it for us.
42141 (gl_REGEX): Add test taken from
42142 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42144 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42145 Check that large offsets work. Modernize Autoconf usages.
42146 Prefer "yes" to mean a good thing rather than a bad.
42147 Don't put "#define mkstemp" in config.h, as this might interfere
42148 with standard system headers that "#define mkstemp mkstemp64".
42150 * modules/mkstemp (Depends-on): Add extensions, so that
42151 mkstemp is visible on some platforms.
42152 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42153 (Include): Change to "mkstemp.h" from <stdlib.h>.
42154 (Files): Add mkstemp.h.
42156 * lib/mkstemp.h: New file, since some standard headers
42158 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42159 Include "mkstemp.h".
42160 Make the _LIBC code resemble glibc original more,
42161 e.g., use K&R style.
42162 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42163 (mkstemp): Remove, since mkstemp.h does this for us.
42164 * lib/stdlib--.h: Include mkstemp.h.
42166 Import this patch from libc:
42168 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42170 * lib/tempname.c (__gen_tempname): Change attempts_min
42171 into a macro. Use preprocessor to decide how to initialize
42172 attempts [Coverity CID 67].
42174 2006-09-20 Bruno Haible <bruno@clisp.org>
42176 * lib/mkdtemp.c: Import from libc.
42177 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42178 * sysdeps/posix/tempname.c (__gen_tempname): Change
42179 attempts_min into a macro. Use preprocessor to decide how to
42180 initialize attempts [Coverity CID 67].
42181 2001-11-27 Paul Eggert <eggert@twinsun.com>
42182 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42183 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42185 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42187 * gnulib-tool (func_exit): New function, to allow to pass the
42188 exit status portably through the trap. Use everywhere.
42189 (--help, --version): Signal a write error.
42190 (trap): catch SIGPIPE, for write errors.
42191 Exit at the end of the trap, with the correct exit status.
42193 2006-09-19 Karl Berry <karl@gnu.org>
42195 * doc/gnulib.texi: note about the license texinfo files.
42197 2006-09-19 Eric Blake <ebb9@byu.net>
42199 * gnulib-tool: Avoid space-tab.
42201 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42203 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42204 that prevented coreutils 6.1 from building. Problem reported
42205 by Petter Reinholdtsen.
42207 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42209 * gnulib-tool (avoidlist): Fix typo that broke options like
42210 --avoid=lock that are used by coreutils bootstrap.
42212 2006-09-18 Mark D. Baushke <mdb@gnu.org>
42214 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42215 more systematically.
42217 2006-09-18 Jim Meyering <jim@meyering.net>
42219 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42221 2006-09-18 Bruno Haible <bruno@clisp.org>
42223 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42225 2006-09-18 Bruno Haible <bruno@clisp.org>
42227 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42228 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42229 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42230 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42231 * m4/gettext.m4: Require autoconf >= 2.52.
42232 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42233 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42234 of gl_cv_header_inttypes_h.
42236 2006-09-18 Bruno Haible <bruno@clisp.org>
42238 * lib/javaversion.c: Include configmake.h.
42240 2006-09-18 Bruno Haible <bruno@clisp.org>
42242 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42243 avoid that the while loops be executed in a subshell.
42245 2006-09-18 Bruno Haible <bruno@clisp.org>
42247 * MODULES.html.sh (func_module): Break long lines.
42248 Suggested by Bruce Korb <bkorb@gnu.org>.
42250 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42252 Speed up by a factor of 1.12.
42253 * gnulib-tool (nl): New variable.
42254 (func_import): Rewrite include directive extraction to only read each
42257 2006-09-17 Bruno Haible <bruno@clisp.org>
42259 * modules/javaversion (Makefile.am): Remove DEFS setting.
42260 (Depends-on): Add configmake, for PKGDATADIR definition.
42262 2006-09-17 Bruno Haible <bruno@clisp.org>
42264 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42266 2006-09-17 Bruno Haible <bruno@clisp.org>
42268 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42269 (func_modules_transitive_closure, func_modules_add_dummy,
42270 func_modules_to_filelist, func_import, func_create_testdir,
42271 func_create_megatestdir, ...): Use it wherever possible.
42272 Suggested by Ralf Wildenhues.
42274 2006-09-16 Karl Berry <karl@gnu.org>
42276 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42277 to avoid sectioning errors.
42278 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42279 [ifinfo]: blank line after @center-ed titles.
42280 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42281 Spell FSF address consistently with others.
42282 (These changes approved by rms.)
42284 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42286 Speed up by a factor of 1.61.
42287 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42288 already checked module names again.
42290 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42292 Speed up by a factor of 1.13.
42293 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42294 for new_files, and the input to func_add_or_update.
42296 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42298 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42299 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42301 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42303 * modules/mkancesdirs (Depends-on): Add fcntl.
42304 * modules/savewd: New file.
42305 * MODULES.html.sh (File system functions): Add savewd.
42307 * modules/configmake (Makefile.am): Add support for the
42308 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42310 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42312 * m4/savewd.m4: New file.
42314 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42316 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42317 (dirchownmod): New arg FD. All callers changed.
42318 Use FD rather than opening the directory ourself, as opening is
42319 now the caller's responsibility.
42320 * lib/dirchownmod.h: Likewise.
42321 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42322 hosts that require <sys/types.h> before <sys/stat.h>. Include
42323 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42324 (test_dir): Remove.
42325 (mkancesdirs): Return length of prefix of FILE that has already
42326 been made, or -2 if there is a child doing the work. Redo
42327 algorithm so that it is O(N) rather than O(N**2). Optimize away
42328 ".", and treat ".." specially since it might stray back into
42329 already-created areas. Use a subprocess if necessary. New arg
42330 WD; all users changed. MAKE_DIR function should now return 1
42331 if it creates a directory that is not readable. Return -2 if
42332 a child process is spun off.
42333 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42334 Adjust signature to match code.
42335 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42336 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42338 * lib/savewd.c, lib/savewd.h: New files.
42340 2006-09-15 Jim Meyering <jim@meyering.net>
42342 * modules/rename-dest-slash: New module.
42343 * MODULES.html.sh (posix_compat): Add it here.
42345 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42347 2006-09-15 Jim Meyering <jim@meyering.net>
42349 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42352 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42354 2006-09-15 Jim Meyering <jim@meyering.net>
42356 * lib/rename-dest-slash.c (has_trailing_slash): Use
42357 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42358 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42359 test before testing whether SRC is a directory.
42360 Suggestions from Bruno Haible.
42362 Avoid a warning about an unused variable.
42363 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42364 into the #ifdef block where it's used.
42366 * lib/rename-dest-slash.c: New file.
42368 2006-09-14 Bruno Haible <bruno@clisp.org>
42370 * lib/allocsa.c: Include <config.h> unconditionally.
42371 * lib/asnprintf.c: Likewise.
42372 * lib/asprintf.c: Likewise.
42373 * lib/c-strcasecmp.c: Likewise.
42374 * lib/c-strcasestr.c: Likewise.
42375 * lib/c-strncasecmp.c: Likewise.
42376 * lib/c-strstr.c: Likewise.
42377 * lib/classpath.c: Likewise.
42378 * lib/clean-temp.c: Likewise.
42379 * lib/concatpath.c: Likewise.
42380 * lib/copy-file.c: Likewise.
42381 * lib/csharpcomp.c: Likewise.
42382 * lib/csharpexec.c: Likewise.
42383 * lib/execute.c: Likewise.
42384 * lib/fatal-signal.c: Likewise.
42385 * lib/findprog.c: Likewise.
42386 * lib/fwriteerror.c: Likewise.
42387 * lib/gl_array_list.c: Likewise.
42388 * lib/gl_array_oset.c: Likewise.
42389 * lib/gl_avltree_list.c: Likewise.
42390 * lib/gl_avltree_oset.c: Likewise.
42391 * lib/gl_avltreehash_list.c: Likewise.
42392 * lib/gl_carray_list.c: Likewise.
42393 * lib/gl_linked_list.c: Likewise.
42394 * lib/gl_linkedhash_list.c: Likewise.
42395 * lib/gl_list.c: Likewise.
42396 * lib/gl_oset.c: Likewise.
42397 * lib/gl_rbtree_list.c: Likewise.
42398 * lib/gl_rbtree_oset.c: Likewise.
42399 * lib/gl_rbtreehash_list.c: Likewise.
42400 * lib/imaxabs.c: Likewise.
42401 * lib/imaxdiv.c: Likewise.
42402 * lib/javacomp.c: Likewise.
42403 * lib/javaexec.c: Likewise.
42404 * lib/javaversion.c: Likewise.
42405 * lib/linebreak.c: Likewise.
42406 * lib/localcharset.c: Likewise.
42407 * lib/lock.c: Likewise.
42408 * lib/mbchar.c: Likewise.
42409 * lib/mbswidth.c: Likewise.
42410 * lib/mkdtemp.c: Likewise.
42411 * lib/pipe.c: Likewise.
42412 * lib/printf-args.c: Likewise.
42413 * lib/printf-parse.c: Likewise.
42414 * lib/progname.c: Likewise.
42415 * lib/progreloc.c: Likewise.
42416 * lib/readlink.c: Likewise.
42417 * lib/sh-quote.c: Likewise.
42418 * lib/stpcpy.c: Likewise.
42419 * lib/stpncpy.c: Likewise.
42420 * lib/strcasecmp.c: Likewise.
42421 * lib/strcasestr.c: Likewise.
42422 * lib/strcspn.c: Likewise.
42423 * lib/striconv.c: Likewise.
42424 * lib/strncasecmp.c: Likewise.
42425 * lib/strnlen1.c: Likewise.
42426 * lib/strstr.c: Likewise.
42427 * lib/strtok_r.c: Likewise.
42428 * lib/tls.c: Likewise.
42429 * lib/tmpdir.c: Likewise.
42430 * lib/unicodeio.c: Likewise.
42431 * lib/unsetenv.c: Likewise.
42432 * lib/vasnprintf.c: Likewise.
42433 * lib/vasprintf.c: Likewise.
42434 * lib/wait-process.c: Likewise.
42435 * lib/xallocsa.c: Likewise.
42436 * lib/xsetenv.c: Likewise.
42437 * lib/xstriconv.c: Likewise.
42439 2006-09-13 Simon Josefsson <jas@extundo.com>
42441 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42442 that internally, suggested by Ralf Wildenhues
42443 <Ralf.Wildenhues@gmx.de>.
42445 2006-09-13 Simon Josefsson <jas@extundo.com>
42447 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42449 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42451 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42453 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42454 longer worry about uses that don't define HAVE_CONFIG_H.
42455 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42456 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42457 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42458 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42459 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42460 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42461 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42462 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42463 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42464 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42465 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42466 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42467 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42468 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42469 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42470 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42471 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42472 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42473 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42474 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42475 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42476 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42477 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42478 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42479 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42480 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42481 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42482 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42483 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42484 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42485 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42486 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42487 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42488 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42489 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42490 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42491 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42492 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42493 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42494 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42495 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42498 2006-09-13 Eric Blake <ebb9@byu.net>
42500 * lib/getopt.c: Fix typo in last commit.
42502 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
42504 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42507 2006-09-12 Jim Meyering <jim@meyering.net>
42509 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42510 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42511 Reported by Nelson H. F. Beebe.
42513 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
42515 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42516 program_invocation_name and program_invocation_short_name are
42518 * lib/argp-namefrob.h: Move declarations of program_invocation_name
42519 and program_invocation_short_name to argp.h, so they are visible
42521 * lib/argp.h: Likewise
42523 2006-09-10 Bruno Haible <bruno@clisp.org>
42525 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42526 m4/inttypes_h.m4, m4/uintmax_t.m4.
42528 2006-09-10 Bruno Haible <bruno@clisp.org>
42530 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42531 gl_AC_TYPE_UINTMAX_T.
42533 2006-09-10 Bruno Haible <bruno@clisp.org>
42535 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42537 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
42539 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42540 convention. Text proposed by Bruno Haible.
42541 (struct argp_option): Document the use of N_() wrappers.
42543 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42544 '\v', and translate the two parts separately, instead of feeding
42545 the whole string to gettext. This allows to exclude
42546 '\v' from the strings visible to the translator by writing doc
42547 strings as N_("..") "\v" N_("..").
42549 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
42551 * config/srclist.txt: Undo latest change; the bug was fixed.
42553 2006-09-09 Bruno Haible <bruno@clisp.org>
42555 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42556 assignments if building a library without libtool.
42557 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42558 in func_emit_lib_Makefile_am.
42559 (func_import): When building a static library libfoo.a, arrange to
42560 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42561 (func_create_testdir): Likewise.
42562 * modules/gc (configure.ac, Makefile.am): If building statically,
42563 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42564 * modules/iconvme (configure.ac, Makefile.am): Likewise.
42565 * modules/striconv (configure.ac, Makefile.am): Likewise.
42566 Based on a suggestion by Ralf Wildenhues.
42568 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42570 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42571 Check for unistd.h too, since Autoconf doesn't assume POSIX.
42574 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42575 Add year_2050_test to catch glibc bug 2821
42576 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42578 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42579 Prefer #ifdef to #if.
42581 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
42582 Return from 'main' instead of calling 'exit'.
42584 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42586 * lib/mktime.c (guess_time_tm): Fix bug where mktime
42587 returned the maximum time_t value rather than (time_t) -1.
42588 Problem originally reported by William Bardwell
42589 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42591 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42593 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42596 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42598 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42601 2006-09-08 Jim Meyering <jim@meyering.net>
42603 Don't make generated files read-only. That would bother too many
42604 people. However, do retain the ability to work when targets are
42605 read-only: remove the destination and temporary files before writing
42606 them (when generated via sed or echo), or by using the -f option for
42607 both cp and mv commands. Suggestion to use -f from Paul Eggert.
42608 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42609 * modules/byteswap, modules/configmake, modules/fcntl:
42610 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42611 * modules/localcharset, modules/netinet_in, modules/poll:
42612 * modules/stdbool, modules/stdint, modules/sys_select:
42613 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42615 2006-09-08 Jim Meyering <jim@meyering.net>
42617 Avoid new build failure on FreeBSD 6.0.
42618 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42619 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
42620 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42622 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42624 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42626 2006-09-07 Jim Meyering <jim@meyering.net>
42628 Fix global typo in last change: use chmod u-w, not chmod u-x.
42629 Spotted by Paul Eggert and Bruce Korb.
42630 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42631 * modules/byteswap, modules/configmake, modules/fcntl:
42632 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42633 * modules/localcharset, modules/netinet_in, modules/poll:
42634 * modules/stdbool, modules/stdint, modules/sys_select:
42635 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42637 2006-09-06 Jim Meyering <jim@meyering.net>
42639 Make generated files be read-only.
42640 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42641 Ensure that each generated file is now read-only.
42642 * modules/argz: Likewise.
42643 * modules/arpa_inet: Likewise.
42644 * modules/byteswap: Likewise.
42645 * modules/configmake: Likewise.
42646 * modules/fcntl: Likewise.
42647 * modules/fnmatch: Likewise.
42648 * modules/getopt: Likewise.
42649 * modules/glob: Likewise.
42650 * modules/inttypes: Likewise.
42651 * modules/netinet_in: Likewise.
42652 * modules/poll: Likewise.
42653 * modules/stdbool: Likewise.
42654 * modules/stdint: Likewise.
42655 * modules/sys_select: Likewise.
42656 * modules/sys_socket: Likewise.
42657 * modules/sys_stat: Likewise.
42658 * modules/sysexits: Likewise.
42659 * modules/localcharset: Same as above, but continue using temporary
42660 file named "t-$@" (why different?) rather than the "$@-t" used
42663 * modules/sysexits (Makefile.am): Replace literal occurrences
42664 of "sysexit.h" more readable, and more consistent, "$@".
42666 2006-09-06 Bruno Haible <bruno@clisp.org>
42668 * modules/striconv: New file.
42669 * modules/xstriconv: New file.
42670 * MODULES.html.sh (Internationalization functions): Add striconv,
42673 2006-09-06 Bruno Haible <bruno@clisp.org>
42675 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42676 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42677 not using libtool correctly.
42679 2006-09-06 Bruno Haible <bruno@clisp.org>
42681 * lib/striconv.h: New file.
42682 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42684 * lib/xstriconv.h: New file.
42685 * lib/xstriconv.c: New file.
42687 2006-09-06 Bruno Haible <bruno@clisp.org>
42689 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42692 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42694 * lib/argz_.h: Sync from Libtool.
42696 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
42697 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42699 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42701 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42703 * modules/trim: New file.
42705 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42707 * lib/trim.h: New file.
42708 * lib/trim.c: New file.
42710 2006-09-05 Bruno Haible <bruno@clisp.org>
42712 * MODULES.html.sh (String handling): Add trim.
42714 2006-09-04 Karl Berry <karl@gnu.org>
42716 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42717 until next release.
42719 2006-09-03 Bruno Haible <bruno@clisp.org>
42721 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42724 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42726 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42727 not gl_GETLOADAVG. Omit unneeded semicolons.
42728 Problems reported by Ralf Wildenhues in
42729 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42730 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
42731 at the end, which is the usual gnulib style.
42733 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42734 of doing all the work ourselves.
42735 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42736 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42738 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42740 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42741 Problem reported by Ralf Wildenhues in
42742 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42744 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42745 HAVE_STRUCT_STATFS_F_FSTYPENAME.
42747 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42749 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42750 yesterday's patch by changing test -n to test -z.
42752 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42754 * modules/getloadavg (Files): Add m4/getloadavg.m4.
42755 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42756 the former is now obsolescent.
42758 * modules/chdir-long (Depends-on): Add fcntl.
42760 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42762 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42763 obsolescent, and programs should use gnulib instead.
42764 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42765 but with prefixes changed.
42767 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42769 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42770 or stdbool.h, because they might not exist while configuring.
42772 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42773 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42775 (O_DIRECTORY): Remove.
42777 2006-08-31 Eric Blake <ebb9@byu.net>
42779 * gnulib-tool: Don't let emacs change spaces to TAB.
42781 2006-08-31 Bruno Haible <bruno@clisp.org>
42783 * gnulib-tool: When calling func_import more than once, do it in a
42785 Reported by Eric Blake <ebb9@byu.net>.
42787 2006-08-31 Bruno Haible <bruno@clisp.org>
42789 * gnulib-tool (nl): Remove variable.
42790 (sed_transform_lib_file): Use more robust test for config-h module.
42791 (func_import): Fix typo in 2006-08-25 patch.
42793 2006-08-31 Bruno Haible <bruno@clisp.org>
42795 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42796 specified, augment Makefile.am variables instead of assigning them.
42798 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42800 Work around a bug in both the Linux and SunOS 64-bit kernels:
42801 nanosleep mishandles sleeps for longer than 2**31 seconds.
42802 Problem reported by Frank v Waveren in
42803 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42804 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42805 Check for nanosleep bug.
42806 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42808 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42810 Work around a bug in both the Linux and SunOS 64-bit kernels:
42811 nanosleep mishandles sleeps for longer than 2**31 seconds.
42812 Problem reported by Frank v Waveren in
42813 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42814 * lib/nanosleep.c (BILLION): New constant.
42815 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42816 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42819 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42821 * modules/nanosleep (Depends-on): Add gettime.
42823 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42824 and Simon Josefsson <jas@extundo.com>
42825 and Oskar Liljeblad <oskar@osk.mine.nu>
42827 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42828 * gnulib-tool (func_import): New license type 'unmodifiable license
42830 * modules/fdl: Use it. Longer description.
42831 * module/gpl, module/lgpl: New files.
42833 2006-08-30 Jim Meyering <jim@meyering.net>
42835 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42836 shadowing the parameter.
42838 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42842 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42844 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42845 sharing with gnulib. Report by Eric Blake.
42847 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42849 * modules/isapipe: New file.
42850 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42852 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42854 * modules/configmake (Makefile.am): Add a comment, and omit
42855 the CONFIGMAKE_ prefix from generated macro names. Suggested
42858 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42860 * m4/isapipe.m4: New file.
42862 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42864 * lib/isapipe.c, lib/isapipe.h: New files.
42866 2006-08-29 Jim Meyering <jim@meyering.net>
42868 * modules/configmake (Makefile.am): Make configmake.h depend on
42869 Makefile. Otherwise, a stale configmake.h could hang around.
42871 2006-08-29 Eric Blake <ebb9@byu.net>
42873 * lib/error.c (error_at_line, print_errno_message): Match libc, after
42874 resolution of upstream bug 3044.
42876 2006-08-29 Bruno Haible <bruno@clisp.org>
42878 * modules/localcharset (Depends-on): Add configmake.
42879 (Makefile.am): Remove setting of LIBDIR through DEFS.
42881 2006-08-29 Bruno Haible <bruno@clisp.org>
42883 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42886 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42888 * modules/fcntl: New file.
42889 * modules/chdir-safer (Depends-on): Add fcntl.
42890 * modules/fts: Likewise.
42891 * modules/mkdir-p: Likewise.
42893 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42894 This undoes the most recent change, since we're now addressing the
42895 problem in a different way.
42897 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42898 into output, since the output might be called Makefile.am even
42899 if $makefile_name is something different.
42900 (func_import): Use $makefile_am rather than
42901 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42904 * modules/inttypes (Files): Add m4/inttypes-h.m4.
42906 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42908 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42909 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
42910 recent change to stdint.m4, since we're now addressing the problem in a
42913 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42915 * m4/fcntl_h.m4: New file.
42917 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42919 * lib/fcntl_.h: New file.
42920 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42922 * lib/dirchownmod.c: Likewise.
42923 * lib/fts.c: Likewise.
42925 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42926 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42927 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42928 just before including <inttypes.h>, to avoid circular inclusion.
42930 2006-08-28 Jim Meyering <jim@meyering.net>
42932 * doc/visibility.texi: Actually read and correct the grammar of the
42933 sentence affected by yesterday's change.
42935 2006-08-28 Eric Blake <ebb9@byu.net>
42937 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42940 2006-08-28 Eric Blake <ebb9@byu.net>
42942 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42944 2006-08-28 Eric Blake <ebb9@byu.net>
42946 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42948 2006-08-28 Bruno Haible <bruno@clisp.org>
42950 * modules/c-strstr: New file, from GNU gettext.
42951 * MODULES.html.sh (String handling): Add c-strstr.
42953 2006-08-28 Bruno Haible <bruno@clisp.org>
42955 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42957 Reported by Eric Blake.
42959 2006-08-28 Bruno Haible <bruno@clisp.org>
42961 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42962 (VASNPRINTF): Return a string of length > INT_MAX without failing.
42963 * lib/vasprintf.c: Include errno.h, limits.h.
42964 (EOVERFLOW): New fallback definition.
42965 (vasprintf): Test here whether the string length is > INT_MAX.
42966 * lib/vsnprintf.c: Include errno.h, limits.h.
42967 (EOVERFLOW): New fallback definition.
42968 (vsnprintf): Fix bug when generated string was too long for the buffer.
42969 Test here whether the string length is > INT_MAX.
42971 2006-08-28 Bruno Haible <bruno@clisp.org>
42973 * lib/inttypes_.h (SCNX*): Remove definitions.
42974 Reported by Eric Blake.
42976 2006-08-28 Bruno Haible <bruno@clisp.org>
42978 * lib/c-strstr.h: New file, from GNU gettext.
42979 * lib/c-strstr.c: New file, from GNU gettext.
42981 2006-08-28 Bruno Haible <bruno@clisp.org>
42983 * gnulib-tool: Reorder some statements.
42985 2006-08-28 Bruno Haible <bruno@clisp.org>
42987 * gnulib-tool: New option --makefile-name.
42988 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42990 (func_import): Write $makefile_name to the cache file, and read it from
42991 there unless explicitly specified. Use $makefile_name as file name
42992 instead of Makefile.am. Adjust the recommendations accordingly.
42994 2006-08-28 Bruno Haible <bruno@clisp.org>
42996 * gnulib-tool (func_verify_module): Check against misapplying patch.
42998 2006-08-28 Bruno Haible <bruno@clisp.org>
43000 * gnulib-tool (func_relativize, func_relconcat): New functions.
43001 Give an error if --local-dir is given with --update.
43002 Remove trailing slashes from $local_gnulib_dir.
43003 (func_import): Store the relativized $local_gnulib_dir in
43004 gnulib-cache.m4, and read it from there if not specified explicitly.
43006 2006-08-28 Bruno Haible <bruno@clisp.org>
43008 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43009 is the current directory. Respect also $local_gnulib_dir.
43011 2006-08-28 Bruno Haible <bruno@clisp.org>
43012 Simon Josefsson <jas@extundo.com>
43015 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43017 2006-08-27 Jim Meyering <jim@meyering.net>
43019 * doc/visibility.texi: Remove duplicate word: "pointer".
43021 2006-08-26 Bruno Haible <bruno@clisp.org>
43023 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43024 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43025 (Makefile.am): Create inttypes.h from inttypes_.h.
43026 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43028 * modules/imaxabs: New file.
43030 * modules/imaxdiv: New file.
43032 2006-08-26 Bruno Haible <bruno@clisp.org>
43034 * m4/inttypes.m4: New file.
43035 * m4/_inttypes_h.m4: Remove file.
43036 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43038 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43040 * m4/imaxabs.m4: New file.
43042 * m4/imaxdiv.m4: New file.
43044 2006-08-26 Bruno Haible <bruno@clisp.org>
43046 * lib/inttypes_.h: New file.
43047 * lib/inttypes.h: Remove file.
43048 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43050 * lib/imaxabs.c: New file.
43052 * lib/imaxdiv.c: New file.
43054 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43056 New config-h module, so that "make" output needn't be cluttered
43057 by -DHAVE_CONFIG_H.
43058 * MODULES.html.sh (Support for building libraries and executables):
43060 * modules/config-h: New file.
43061 * gnulib-tool (nl, sed_transform_lib_file): New vars.
43062 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43063 the config-h module is used.
43065 New configmake module, so that "make" output needn't be cluttered
43066 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43067 * MODULES.html.sh (Support for building libraries and executables):
43069 * modules/configmake: New file.
43071 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43073 * m4/config-h.m4: New file.
43075 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43077 * config/srclist.txt: Add elisp-comp.
43079 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43081 * MODULES.html.sh (Support for building libraries and executables):
43083 * build-aux/elisp-comp: New file.
43084 * modules/elisp-comp: New file.
43086 2006-08-24 Bruno Haible <bruno@clisp.org>
43088 * gnulib-tool (func_create_testdir): Use non-default values of
43089 sourcebase and m4base.
43091 2006-08-24 Bruno Haible <bruno@clisp.org>
43093 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43096 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
43098 * modules/openat (Depends-on): Add lchown.
43100 2006-08-23 Bruno Haible <bruno@clisp.org>
43102 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43103 of gl_LOCK_EARLY instead of gl_LOCK.
43105 2006-08-23 Bruno Haible <bruno@clisp.org>
43107 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43109 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43111 2006-08-23 Bruno Haible <bruno@clisp.org>
43113 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43116 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43117 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43118 (gl_LOCK): New macro.
43120 2006-08-22 Simon Josefsson <jas@extundo.com>
43122 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43125 2006-08-22 Simon Josefsson <jas@extundo.com>
43127 * MODULES.html.sh: Add "Support for maintaining and release
43130 * build-aux/gnupload: New file, from coreutils.
43132 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43134 Avoid the need for AC_LIBSOURCES in m4 macros.
43135 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43136 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43137 * modules/check-version (EXTRA_DIST): Add check-version.h.
43138 * modules/crc (EXTRA_DIST): Add crc.h.
43139 * modules/des (EXTRA_DIST): Add des.h.
43140 * modules/gc (EXTRA_DIST): Add gc.h.
43141 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43142 * modules/getline (EXTRA_DIST): Add getline.h.
43143 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43144 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43145 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43146 * modules/md2 (EXTRA_DIST): Add md2.h.
43147 * modules/md4 (EXTRA_DIST): Add md4.h.
43148 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43149 * modules/read-file (EXTRA_DIST): Add read-file.h.
43150 * modules/readline (EXTRA_DIST): Add readline.h.
43151 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43152 rijndael-api-fst.h.
43154 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43156 * m4/rijndael.m4 (gl_ARCFOUR):
43157 * m4/arctwo.m4 (gl_ARCTWO):
43158 * m4/check-version.m4 (gl_CHECK_VERSION):
43159 * m4/crc.m4 (gl_CRC):
43160 * m4/des.m4 (gl_DES):
43161 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43162 * m4/gc.m4 (gl_GC):
43163 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43164 * m4/getline.m4 (gl_FUNC_GETLINE):
43165 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43166 * m4/hmac-md5.m4 (gl_HMAC_MD5):
43167 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43168 * m4/md2.m4 (gl_MD2):
43169 * m4/md4.m4 (gl_MD4):
43170 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43171 * m4/read-file.m4 (gl_FUNC_READ_FILE):
43172 * m4/readline.m4 (gl_FUNC_READLINE):
43173 * m4/rijndael.m4 (gl_RIJNDAEL):
43174 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43175 to get the necessary .h files and whatnot.
43177 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43179 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43180 gnulib rather than the other way around.
43181 * config/srclistvars.sh (COREUTILS): Remove.
43183 2006-08-22 Jim Meyering <jim@meyering.net>
43185 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43187 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43189 2006-08-22 Eric Blake <ebb9@byu.net>
43191 * modules/regexprops-generic: New file.
43192 * MODULES.html.sh (Support for building documentation): List it.
43194 2006-08-22 Eric Blake <ebb9@byu.net>
43196 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43197 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43198 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43199 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43201 2006-08-22 Bruno Haible <bruno@clisp.org>
43203 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43204 and lib_LTLIBRARIES like the other lib_* variables.
43206 2006-08-22 Bruno Haible <bruno@clisp.org>
43208 * build-aux/x-to-1.in: New file, from GNU gettext.
43210 2006-08-22 Bruno Haible <bruno@clisp.org>
43212 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43215 2006-08-22 Bruno Haible <bruno@clisp.org>
43217 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43220 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43223 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43225 Problem reported by Bruno Haible.
43227 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43229 Avoid the need for AC_LIBSOURCES in m4 macros.
43230 * modules/acl (EXTRA_DIST): Add acl.h.
43231 * modules/argmatch (Files): Add m4/argmatch.m4.
43232 (configure.ac): Add gl_ARGMATCH.
43233 (EXTRA_DIST): Renamed from lib_SOURCES, for
43234 consistency with the other modules. Remove argmatch.c.
43235 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43236 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43237 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43238 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43239 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43240 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43241 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43242 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43243 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43244 * modules/closeout (EXTRA_DIST): Add closeout.h.
43245 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43246 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43247 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43248 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
43249 dirname.h; remove basename.c and stripslash.c.
43250 * modules/exclude (EXTRA_DIST): Add exclude.h.
43251 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43252 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43253 * modules/file-type (EXTRA_DIST): Add file-type.h.
43254 * modules/filemode (EXTRA_DIST): Add filemode.h.
43255 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43256 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43257 * modules/fpending (EXTRA_DIST): Add __fpending.h.
43258 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43259 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43260 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43261 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43262 * modules/getdate (EXTRA_DIST): Add getdate.c.
43263 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43264 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43265 * modules/getpass (EXTRA_DIST): Add getpass.h.
43266 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43267 * modules/group-member (EXTRA_DIST): Add group-member.h.
43268 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43269 * modules/hash (EXTRA_DIST): Add hash.h.
43270 * modules/human (EXTRA_DIST): Add human.h.
43271 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43272 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43273 * modules/lchown (EXTRA_DIST): Add lchown.h.
43274 * modules/long-options (EXTRA_DIST): Add long-options.h.
43275 * modules/lstat (EXTRA_DIST): Add lstat.h.
43276 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43277 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43278 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43279 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43280 * modules/memxor (EXTRA_DIST): Add memxor.h.
43281 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43282 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43283 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43284 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43285 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43286 * modules/physmem (EXTRA_DIST): Add physmem.h.
43287 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43288 * modules/posixver (EXTRA_DIST): Add posixver.h.
43289 * modules/quote (EXTRA_DIST): Add quote.h.
43290 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43291 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43292 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43293 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43294 regex_internal.h regexec.c.
43295 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43296 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43297 * modules/same (EXTRA_DIST): Add same.h.
43298 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43299 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43300 * modules/savedir (EXTRA_DIST): Add savedir.h.
43301 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43302 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43303 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43304 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43305 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43306 * modules/strdup (EXTRA_DIST): Add strdup.h.
43307 * modules/strftime (EXTRA_DIST): Add strftime.h.
43308 * modules/strndup (EXTRA_DIST): Add strndup.h.
43309 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43310 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43311 * modules/time_r (EXTRA_DIST): Add time_r.h.
43312 * modules/timespec (EXTRA_DIST): Add timespec.h.
43313 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43314 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43315 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43316 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43317 * modules/userspec (EXTRA_DIST): Add userspec.h.
43318 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43319 * modules/utimens (EXTRA_DIST): Add utimens.h.
43320 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43321 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43322 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43323 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43324 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43325 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43326 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43327 * modules/yesno (EXTRA_DIST): Add yesno.h.
43329 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43331 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43333 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43334 * m4/dev-ino.m4, same-inode.m4: Remove.
43336 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43337 * m4/acl.m4 (AC_FUNC_ACL):
43338 * m4/backupfile.m4 (gl_BACKUPFILE):
43339 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43340 * m4/canon-host.m4 (gl_CANON_HOST):
43341 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43342 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43343 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43344 * m4/cloexec.m4 (gl_CLOEXEC):
43345 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43346 * m4/closeout.m4 (gl_CLOSEOUT):
43347 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43348 * m4/dirname.m4 (gl_DIRNAME):
43349 * m4/exclude.m4 (gl_EXCLUDE):
43350 * m4/exitfail.m4 (gl_EXITFAIL):
43351 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43352 * m4/file-type.m4 (gl_FILE_TYPE):
43353 * m4/filemode.m4 (gl_FILEMODE):
43354 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43355 * m4/fpending.m4 (gl_FUNC_FPENDING):
43356 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43357 * m4/fts.m4 (gl_FUNC_FTS):
43358 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43359 * m4/getdate.m4 (gl_GETDATE):
43360 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43361 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43362 * m4/getpass.m4 (gl_FUNC_GETPASS):
43363 * m4/gettime.m4 (gl_GETTIME):
43364 * m4/getugroups.m4 (gl_GETUGROUPS):
43365 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43366 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43367 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43368 * m4/hash.m4 (gl_HASH):
43369 * m4/idcache.m4 (gl_IDCACHE):
43370 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43371 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43372 * m4/long-options.m4 (gl_LONG_OPTIONS):
43373 * m4/lstat.m4 (gl_FUNC_LSTAT):
43374 * m4/md5.m4 (gl_MD5):
43375 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43376 * m4/memcoll.m4 (gl_MEMCOLL):
43377 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43378 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43379 * m4/memxor.m4 (gl_MEMXOR):
43380 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43381 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43382 * m4/modechange.m4 (gl_MODECHANGE):
43383 * m4/mountlist.m4 (gl_MOUNTLIST):
43384 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43385 * m4/openat.m4 (gl_FUNC_OPENAT):
43386 * m4/pathmax.m4 (gl_PATHMAX):
43387 * m4/physmem.m4 (gl_PHYSMEM):
43388 * m4/posixtm.m4 (gl_POSIXTM):
43389 * m4/posixver.m4 (gl_POSIXVER):
43390 * m4/quote.m4 (gl_QUOTE):
43391 * m4/quotearg.m4 (gl_QUOTEARG):
43392 * m4/readtokens.m4 (gl_READTOKENS):
43393 * m4/readutmp.m4 (gl_READUTMP):
43394 * m4/regex.m4 (gl_REGEX):
43395 * m4/safe-read.m4 (gl_SAFE_READ):
43396 * m4/safe-write.m4 (gl_SAFE_WRITE):
43397 * m4/same.m4 (gl_SAME):
43398 * m4/save-cwd.m4 (gl_SAVE_CWD):
43399 * m4/savedir.m4 (gl_SAVEDIR):
43400 * m4/settime.m4 (gl_SETTIME):
43401 * m4/sha1.m4 (gl_SHA1):
43402 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43403 * m4/stat-macros.m4 (gl_STAT_MACROS):
43404 * m4/stat-time.m4 (gl_STAT_TIME):
43405 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43406 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43407 * m4/strdup.m4 (gl_FUNC_STRDUP):
43408 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43409 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43410 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43411 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43412 * m4/time_r.m4 (gl_TIME_R):
43413 * m4/timespec.m4 (gl_TIMESPEC):
43414 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43415 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43416 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43417 * m4/userspec.m4 (gl_USERSPEC):
43418 * m4/utimecmp.m4 (gl_UTIMECMP):
43419 * m4/utimens.m4 (gl_UTIMENS):
43420 * m4/xalloc.m4 (gl_XALLOC):
43421 * m4/xgetcwd.m4 (gl_XGETCWD):
43422 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43423 * m4/xreadlink.m4 (gl_XREADLINK):
43424 * m4/xstrtod.m4 (gl_XSTRTOD):
43425 * m4/yesno.m4 (gl_YESNO):
43426 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43427 to get the necessary .h files and whatnot.
43429 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43430 Bruno Haible <bruno@clisp.org>
43432 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43433 /bin/sh understanding of '!' conditional negation.
43435 2006-08-21 Jim Meyering <jim@meyering.net>
43437 * modules/openat (Depends-on): Really alphabetize.
43439 * modules/acl (Depends-on): Add error and quote.
43441 * check-module (find_included_lib_files): Add at-func.c to the
43442 ok-to-include-more-than-once white list.
43444 * modules/openat (Depends-on): Add lstat. Alphabetize.
43446 2006-08-21 Bruno Haible <bruno@clisp.org>
43448 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43449 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43450 Reported by Martin Lambers <marlam@marlam.de>.
43452 2006-08-21 Bruno Haible <bruno@clisp.org>
43454 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43455 specify an installation location, don't emit a noinst_LIBRARIES or
43456 noinst_LTLIBRARIES assignment.
43458 2006-08-21 Bruno Haible <bruno@clisp.org>
43461 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43462 BeOS has mbrtowc() but no <wctype.h>.
43464 2006-08-21 Bruno Haible <bruno@clisp.org>
43467 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43470 2006-08-21 Bruno Haible <bruno@clisp.org>
43473 * lib/mbchar.h: Include <wctype.h> only if it exists.
43475 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43477 Remove files that are no longer needed by their respective modules.
43478 * m4/obstack.m4: Remove.
43479 * m4/strerror_r.m4: Remove.
43480 * m4/uint32_t.m4: Remove.
43481 * m4/uintptr_t.m4: Remove.
43482 * m4/ullong_max.m4: Remove.
43483 * m4/xstrtoimax.m4: Remove.
43484 * m4/xstrtoumax.m4: Remove.
43486 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43487 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43488 dependencies now capture this.
43490 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43491 Do not use AC_LIBSOURCES, since gnulib modules now do this.
43492 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43493 * m4/human.m4 (gl_HUMAN): Likewise.
43494 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43495 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43497 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43499 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43500 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43502 * m4/human.m4 (gl_HUMAN): Likewise.
43503 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43504 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43505 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43506 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43507 * m4/xstrtol (gl_XSTRTOL): Likewise.
43509 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43510 AC_TYPE_LONG_LONG_INT.
43511 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43512 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43513 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43514 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43516 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43519 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43520 (gl_PREREQ_XSTRTOUL): Remove.
43522 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43524 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43527 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43529 Add and change modules to make it easier for coreutils to use
43531 * modules/backupfile (Files): Remove m4/d-ino.m4.
43532 (Depends-on): Add d-ino.
43533 * modules/cycle-check (Depends-on): Add stdint.
43534 (lib_SOURCES): Add cycle-check.h.
43535 * modules/d-ino: New module.
43536 * modules/d-type: New module.
43537 * modules/error (Files): Remove m4/strerror_r.m4.
43538 * modules/filemode (Files): Add m4/st_dm_mode.m4.
43539 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43540 m4/inttypes_h.m4, m4/uintmax_t.m4.
43541 (Depends-on): Add stdint.
43542 (lib_SOURCES): Add fsusage.h.
43543 * modules/getcwd (Files): Remove d-ino.m4.
43544 (Depends-on): Add d-ino.
43545 * modules/getndelim2 (Depends-on): Add stdint.
43546 * modules/glob (Files): Remove m4/d-type.m4.
43547 (Depends-on): Add d-type.
43548 * modules/host-os: New module.
43549 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43550 m4/inttypes_h.m4, m4/uintmax_t.m4.
43551 * Depends-on: Add stdint.
43552 (lib_SOURCES): Add human.h.
43553 * modules/inttostr (Files): Remove m4/intmax_t.m4,
43554 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43555 m4/uintmax_t.m4, m4/ulonglong.m4.
43556 (Depends-on): Add stdint.
43557 (EXTRA_DIST): Add inttostr.h.
43558 * modules/lchmod: New module.
43559 * modules/link-follow: New module.
43560 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43561 (Depends-on): Add lchmod.
43562 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43563 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43564 (Depends-on): Add stdint.
43565 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43566 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43567 (Depends-on): Add stdint.
43568 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43569 * modules/perl: New module.
43570 * modules/regex (Depends-on): Add stdint.
43571 * modules/rmdir-errno: New module.
43572 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43574 (Depends-on): Add stdint.
43575 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43577 (Depends-on): Add stdint.
43578 * modules/unlink-busy: New module.
43579 * modules/utimecmp (Depends-on): Add stdint.
43580 * modules/uptime: New module.
43581 * modules/winsz-ioctl: New module.
43582 * modules/winsz-termios: New module.
43583 * modules/xnanosleep (Depends-on): Add nanosleep.
43584 * modules/ullong_max: Remove.
43585 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43586 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43587 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43588 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43589 (Depends-on): Add inttypes.
43590 (lib_SOURCES): Add xstrtol.h.
43591 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43592 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43593 * MODULES.html.sh: Move 'assert' into the assert section.
43594 Move 'dummy' into the linking section.
43596 Add section for compatibility checks for POSIX:2001 functions,
43597 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43598 winsz-ioctl, and winsz-termios into it.
43600 Add top-level Misc section and put host-os, perl, and uptime
43603 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43605 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43606 now assume the stdint module. Do not include inttypes.h.
43607 * lib/fsusage.h: Likewise.
43608 * lib/getndelim2.c: Likewise.
43609 * lib/human.h: Likewise.
43610 * lib/inttostr.h: Likewise.
43611 * lib/obstack.c: Likewise.
43612 * lib/regex_internal.h: Likewise.
43613 * lib/tempname.c: Likewise.
43614 * lib/utimecmp.c: Likewise.
43615 * lib/xstrtol.h: Likewise.
43617 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43619 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43620 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43621 * lib/xtime.h: Likewise.
43623 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43625 * modules/openat (Files): Add lib/fchmodat.c.
43626 Fixes problem reported by Jay Youngman.
43628 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43630 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
43631 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
43633 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
43634 Bruno Haible <bruno@clisp.org>
43636 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43637 and is a script that invokes bison. Tighten the code. Add comments.
43639 2006-08-18 Jim Meyering <jim@meyering.net>
43641 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43642 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43643 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
43644 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43646 2006-08-18 Bruno Haible <bruno@clisp.org>
43648 * modules/bison-i18n: New file.
43649 * MODULES.html.sh (Internationalization functions): Add it.
43651 2006-08-18 Bruno Haible <bruno@clisp.org>
43653 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43654 sys/statvfs.h. When getmntinfo was found, check its declaration and
43655 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43657 2006-08-18 Bruno Haible <bruno@clisp.org>
43659 * m4/bison-i18n.m4: New file, from bison.
43661 2006-08-18 Bruno Haible <bruno@clisp.org>
43663 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43664 (ME_DUMMY): Treat "kernfs" as a dummy.
43665 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43667 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43669 Update from coreutils.
43671 2006-08-15 Jim Meyering <jim@meyering.net>
43673 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43675 2006-01-17 Jim Meyering <jim@meyering.net>
43677 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43679 2006-01-11 Jim Meyering <jim@meyering.net>
43681 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43682 Check for the lchmod function.
43684 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43686 Update from coreutils.
43688 * lib/__fpending.h: Add copyright notice.
43689 * lib/fprintftime.h: Likewise.
43690 * lib/savedir.c: Use (C) in copyright notice.
43691 * lib/savedir.h: Likewise.
43693 2006-08-15 Jim Meyering <jim@meyering.net>
43695 * lib/at-func.c: New file, with the logic of all emulated at-functions.
43696 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43697 in support of the EXPECTED_ERRNO macro.
43698 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43699 definitions. Instead, define the appropriate symbols and include
43701 * lib/mkdirat.c (mkdirat): Likewise.
43702 * lib/fchmodat.c (fchmodat): Likewise.
43703 (ENOSYS): Remove definition.
43704 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43705 it. Don't include "unistd--.h" -- it wasn't ever used.
43707 2006-01-17 Jim Meyering <jim@meyering.net>
43709 Rewrite fts.c not to change the current working directory,
43710 by using openat, fstatat, fdopendir, etc..
43712 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43713 (HAVE_OPENAT_SUPPORT): Define.
43714 [_LIBC] (fchdir): Don't undef or define; no longer used.
43715 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43716 Now, this `function' always succeeds, and consumes its file descriptor
43717 parameter -- so callers must not close such FDs. Update callers.
43718 (diropen_fd, opendirat, cwd_advance_fd): New functions.
43719 (diropen): Add parameter, SP. Adjust all callers.
43720 Implement using diropen_fd, rather than open.
43721 (fts_open): Initialize new member, fts_cwd_fd.
43722 Remove fts_rft-setting code.
43723 (fts_close): Close fts_cwd_fd, if necessary.
43724 (__opendir2): Define in terms of opendir or opendirat,
43725 depending on whether the FST_NOCHDIR flag is set.
43726 (fts_build): Since fts_safe_changedir consumes its FD, and since
43727 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43728 and close the dup'd file descriptor upon failure.
43729 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43730 (fts_safe_changedir): Tweak semantics to reflect that this function
43731 now calls cwd_advance_fd and hence consumes its FD argument.
43732 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43733 [struct FTS] (fts_rft): Remove now-unused member.
43734 [struct FTS] (fts_cycle.state): Improve comment.
43736 * lib/openat.c (openat_needs_fchdir): New function.
43737 * lib/openat.h (openat_needs_fchdir): Declare it.
43739 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
43741 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43742 Problem and fix reported by Pádraig Brady in
43743 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43745 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43747 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43749 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43751 * lib/memcoll.c (memcoll): Optimize for the common case where the
43752 arguments are bytewise equal.
43754 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43756 * doc/regexprops-generic.texi: Add a copyright notice.
43758 2006-08-15 Bruno Haible <bruno@clisp.org>
43760 * modules/tmpdir (License): Change to LGPL.
43762 2006-08-15 Bruno Haible <bruno@clisp.org>
43764 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43767 2006-08-14 Simon Josefsson <jas@extundo.com>
43769 * config/srclist.txt: Add gnupload.
43771 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43773 Change copyright notice from LGPL 2 to GPL 2, since that's the
43774 standard form used in the gnulib repository.
43775 * tests/test-lock.c: Likewise.
43776 * tests/test-stdint.c: Likewise.
43777 * tests/test-tls.c: Likewise.
43779 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43780 prelude-manager. User shorter URLs for GNU projects, without '?'.
43781 Add copyright notice.
43783 * check-module: Add copyright notice. Output a copyright
43784 notice if "--version" is specified.
43785 * modules/COPYING: New file.
43786 * tests/test-getaddrinfo.c: Add copyright notice.
43787 * tests/test-verify.c: Likewise.
43789 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43791 Change copyright notice from LGPL 2 to GPL 2, since that's the
43792 standard form used in the gnulib repository.
43793 * lib/lock.c: LGPL -> GPL.
43794 * lib/lock.h: Likewise.
43795 * lib/strnlen1.c: Likewise.
43796 * lib/strnlen1.h: Likewise.
43797 * lib/tls.c: Likewise.
43798 * lib/tls.h: Likewise.
43799 * lib/tmpdir.c: Likewise.
43801 * lib/TODO: Remove; this belongs only in coreutils.
43803 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43805 Add copyright notices to long-enough files that lack them, since
43806 otherwise the files aren't clearly free. Use the same notice that
43807 getdate.texi already uses.
43808 * doc/alloca-opt.texi: Add copyright notice.
43809 * doc/alloca.texi: Likewise.
43810 * doc/ctime.texi: Likewise.
43811 * doc/functions.texi: Likewise.
43812 * doc/gcd.texi: Likewise.
43813 * doc/gnulib-tool.texi: Likewise.
43814 * doc/inet_ntoa.texi: Likewise.
43815 * doc/visibility.texi: Likewise.
43817 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43818 * doc/quote.texi: Add copyright notice.
43820 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43821 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43822 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43823 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43824 is now obsolete, and give a pointer to the Sun list.
43825 Add copyright notice.
43827 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43829 * config/srclistvars.sh: Add copyright notice.
43831 2006-08-14 Eric Blake <ebb9@byu.net>
43833 Import the following change from libc:
43835 2006-08-12 Ulrich Drepper <drepper@redhat.com>
43838 * lib/misc/error.c: Add space between program name and message if file
43841 2006-08-12 Karl Berry <karl@gnu.org>
43843 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43844 remove, these originate in gnulib now.
43846 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43848 * doc/Makefile (standards.info standards.html standards.dvi):
43849 Also depend on make-stds.texi.
43851 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
43853 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43854 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
43856 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43857 in wchar_t. Problem reported by Eric Blake.
43859 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43860 LEN is smaller than SIZE. Suggested by Bruno Haible.
43861 Also, help the compiler to keep LEN in a register.
43863 2006-08-11 Eric Blake <ebb9@byu.net>
43865 * users.txt: Sort. Add tar.
43867 2006-08-11 Bruno Haible <bruno@clisp.org>
43869 * users.txt: New file.
43871 2006-08-11 Bruno Haible <bruno@clisp.org>
43873 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43874 before <wchar.h>. Needed for OSF/1 and BSD/OS.
43876 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43878 * modules/snprintf (Depends-on): Remove minmax.
43879 (Maintainer): Add self and Bruno.
43881 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43883 * lib/.cppi-disable: Add snprintf.h, socket_.h.
43884 * lib/snprintf.c: Include <errno.h> and <limits.h>.
43885 (EOVERFLOW): Define if the system does not.
43886 Do not include "minmax.h"; it wasn't used.
43887 (snprintf): Don't assume size_t promotes to an unsigned type.
43888 Fix bug when generated string was too long for the buffer: the
43889 buffer's contents are supposed to be the initial prefix of the
43890 output. Don't assume vasnprintf returns EOVERFLOW if the size
43891 exceeds INT_MAX; do the check ourselves.
43893 Import the following changes from libc:
43895 2006-06-02 Jakub Jelinek <jakub@redhat.com>
43897 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43898 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
43899 set wc to the byte which couldn't be converted.
43900 (re_string_reconstruct): Don't clear valid_raw_len before calling
43901 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
43902 tip_context using re_string_context_at.
43904 2006-05-02 Ulrich Drepper <drepper@redhat.com>
43906 * lib/posix/regex.h: g++ still cannot handled [restrict].
43908 2006-04-21 Ulrich Drepper <drepper@redhat.com>
43910 * lib/posix/regex.h: Remove special handling for VMS.
43912 2006-08-10 Jim Meyering <jim@meyering.net>
43914 * modules/same-inode: New module.
43915 * modules/dev-ino: New module.
43916 * modules/cycle-check: Depend on these modules, rather than simply
43917 including their .h files.
43918 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43919 required via m4/cycle-check.m4.
43920 * modules/same: Depend on new same-inode module, rather than
43921 including same-inode.h.
43922 * modules/chdir-safer: New file.
43924 * modules/chown (Depends-on): Add stat-macros.
43926 2006-08-10 Jim Meyering <jim@meyering.net>
43928 * m4/cycle-check.m4: New file.
43929 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43930 * m4/dev-ino.m4, m4/same-inode.m4: New files.
43932 2006-08-10 Eric Blake <ebb9@byu.net>
43934 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43935 in from original proposal.
43937 2006-08-10 Eric Blake <ebb9@byu.net>
43938 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43940 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43943 2006-08-10 Bruno Haible <bruno@clisp.org>
43945 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43948 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43950 Sync from coreutils.
43952 2006-07-19 Mike Frysinger <vapier@gentoo.org>
43954 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43955 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43957 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43959 * modules/restrict: Remove; no longer needed now that we assume
43960 Autoconf 2.59 or later.
43961 * MODULES.html.sh: Remove 'restrict'.
43962 * modules/argp (Depends-on): Remove 'restrict'.
43963 * modules/base64 (Depends-on): Likewise.
43964 * modules/gc (Depends-on): Likewise.
43965 * modules/getaddrinfo (Depends-on): Likewise.
43966 * modules/glob (Depends-on): Likewise.
43967 * modules/inet_ntop (Depends-on): Likewise.
43968 * modules/inet_pton (Depends-on): Likewise.
43969 * modules/memxor (Depends-on): Likewise.
43970 * modules/regex (Depends-on): Likewise.
43971 * modules/strtok_r (Depends-on): Likewise.
43972 * modules/time_r (Depends-on): Likewise.
43974 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43976 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43977 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43978 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43979 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43980 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43981 * m4/memxor.m4 (gl_MEMXOR): Likewise.
43982 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
43983 gl_C_RESTRICT replaced by AC_C_RESTRICT.
43985 Merge from coreutils.
43986 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43987 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43988 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43989 * m4/time_r.m4 (gl_TIME_R): Likewise.
43991 2006-08-09 Karl Berry <karl@gnu.org>
43993 * config/srclist.txt: no more gettext-tools, per Bruno.
43995 2006-08-08 Eric Blake <ebb9@byu.net>
43997 * modules/verror: New module.
43998 * MODULES.html.sh: Document it.
44000 2006-08-08 Eric Blake <ebb9@byu.net>
44002 * lib/verror.h, lib/verror.c: New files.
44004 2006-08-08 Eric Blake <ebb9@byu.net>
44006 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44007 verror_at_line output complies with GNU Coding Standards even when
44010 2006-08-07 Bruno Haible <bruno@clisp.org>
44012 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44014 Reported by Ralf Wildenhues.
44016 2006-08-07 Bruno Haible <bruno@clisp.org>
44018 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44019 in an AC_DEFUN. Needed so that the autoconf snippets can use
44022 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44024 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44025 Initialize pkgdata_DATA.
44026 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44029 2006-08-06 Eric Blake <ebb9@byu.net>
44031 * lib/error.h: Fold in some upstream changes from glibc.
44032 * lib/error.c: Likewise.
44034 2006-08-04 Bruno Haible <bruno@clisp.org>
44036 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44037 Make the mostlyclean-local rule depend on mostlyclean-generic.
44038 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44040 2006-07-31 Bruno Haible <bruno@clisp.org>
44042 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44043 <stdlib.h>, <string.h>.
44045 2006-07-30 Bruno Haible <bruno@clisp.org>
44047 * modules/readlink (License): Change to LGPL.
44049 2006-07-30 Bruno Haible <bruno@clisp.org>
44051 * modules/javaversion (Makefile.am): Distribute javaversion.java and
44052 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44053 set PKGDATADIR to point to it.
44055 2006-07-30 Bruno Haible <bruno@clisp.org>
44057 * modules/csharpexec (configure.ac): Comment out macro invocation.
44058 * modules/javaexec (configure.ac): Likewise.
44059 * modules/javacomp-script (configure.ac): Likewise.
44061 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44063 2006-07-30 Bruno Haible <bruno@clisp.org>
44065 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44068 2006-07-30 Bruno Haible <bruno@clisp.org>
44070 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44072 2006-07-30 Bruno Haible <bruno@clisp.org>
44074 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44075 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44078 2006-07-29 Bruno Haible <bruno@clisp.org>
44080 Make it possible for gnulib-tool to work with locally modified or
44081 augmented gnulib repositories.
44082 * gnulib-tool (func_usage): Document --local-dir option.
44083 (local_gnulib_dir): New variable.
44084 Handle --local-dir option.
44085 (func_lookup_file): New function.
44086 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44087 (func_get_description, func_get_filelist, func_get_description,
44088 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44089 func_get_automake_snippet, func_get_include_directive,
44090 func_get_license, func_get_maintainer): Use func_lookup_file.
44091 (func_import, func_create_testdir): Use func_lookup_file.
44093 2006-07-29 Bruno Haible <bruno@clisp.org>
44095 * modules/setenv (Depends-on): Add unistd.
44097 2006-07-29 Bruno Haible <bruno@clisp.org>
44099 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44101 2006-07-29 Bruno Haible <bruno@clisp.org>
44103 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44105 2006-07-29 Bruno Haible <bruno@clisp.org>
44107 * gnulib-tool (import, update): If there is no Makefile.am, look at
44108 aclocal.m4, instead of bailing out.
44110 2006-07-29 Bruno Haible <bruno@clisp.org>
44112 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44113 Categorize the options by when they are useful.
44115 2006-07-29 Bruno Haible <bruno@clisp.org>
44117 * gnulib-tool (func_usage): Document option --no-libtool.
44118 Handle option --no-libtool.
44119 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44120 for changed semantics of $libtool variable.
44121 (func_import): Likewise. If libtool is not used, show this through
44122 an option --no-libtool.
44123 (func_create_testdir): Update.
44125 2006-07-29 Bruno Haible <bruno@clisp.org>
44127 * gnulib-tool (func_import): Extend error message about missing
44130 2006-07-29 Bruno Haible <bruno@clisp.org>
44132 * gnulib-tool (func_import): Don't create the $docbase directory if
44133 there is no file to store there.
44135 2006-07-29 Bruno Haible <bruno@clisp.org>
44137 * gnulib-tool (autoconf_minversion): If a --dir option is given and
44138 relevant, look for configure.ac there, not in the current directory.
44139 Also use a simple search for AC_PREREQ, not "autoconf --trace".
44141 2006-07-29 Bruno Haible <bruno@clisp.org>
44143 * gnulib-tool (SORT): New variable.
44144 (func_usage): Undocument --assume-autoconf option.
44145 Remove --assume-autoconf option handling.
44146 (autoconf_minversion): Determine from the contents of configure.ac.
44147 (func_import): Remove autoconf_minversion handling.
44148 Suggested by Eric Blake.
44150 2006-07-29 Bruno Haible <bruno@clisp.org>
44152 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44154 2006-07-29 Bruno Haible <bruno@clisp.org>
44156 * config/srclist.txt (*setenv.[ch]): Remove rules.
44158 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44160 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44162 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44164 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44167 2006-07-28 Simon Josefsson <jas@extundo.com>
44169 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44170 * modules/inet_pton (Depends-on): Likewise.
44172 2006-07-28 Simon Josefsson <jas@extundo.com>
44174 * m4/netinet_in_h.m4: New file.
44176 2006-07-28 Simon Josefsson <jas@extundo.com>
44178 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44181 2006-07-28 Simon Josefsson <jas@extundo.com>
44183 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44186 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
44188 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44189 setgid on directories only if they set these bits.
44190 * lib/modechange.h: Remove obsolete comment about masks.
44192 2006-07-28 Eric Blake <ebb9@byu.net>
44194 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44197 2006-07-28 Bruno Haible <bruno@clisp.org>
44199 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44201 2006-07-28 Bruno Haible <bruno@clisp.org>
44203 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44205 2006-07-28 Bruno Haible <bruno@clisp.org>
44207 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44208 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44210 Avoids link error on FreeBSD 4.x.
44211 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44213 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44215 * lib/mbswidth.c (iswcntrl): Likewise.
44217 2006-07-27 Bruno Haible <bruno@clisp.org>
44219 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44222 2006-07-27 Bruno Haible <bruno@clisp.org>
44224 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44225 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44228 2006-07-26 Eric Blake <ebb9@byu.net>
44230 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44232 2006-07-26 Eric Blake <ebb9@byu.net>
44234 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44235 like mingw that lack mkstemp.
44236 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44237 avoid compilation warning on mingw.
44239 2006-07-26 Bruno Haible <bruno@clisp.org>
44241 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44242 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44243 INT_FAST*_MIN, INTPTR_MIN.
44245 2006-07-25 Bruno Haible <bruno@clisp.org>
44247 * modules/version-etc (Depends-on): Add stdarg.
44249 2006-07-25 Bruno Haible <bruno@clisp.org>
44251 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44254 2006-07-25 Bruno Haible <bruno@clisp.org>
44256 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44257 defined in <stdarg.h> or config.h.
44259 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44261 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44262 (gl_STDIO_SAFER): Remove.
44264 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44266 * MODULES.html.sh (File stream based Input/Output):
44267 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44268 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44269 * modules/fopen-safer, modules/tmpfile-safer: New files.
44270 * modules/stdio-safer: Remove.
44272 2006-07-24 Bruno Haible <bruno@clisp.org>
44274 * modules/tmpdir: New file.
44275 * MODULES.html.sh (File system functions): Add it.
44277 2006-07-24 Bruno Haible <bruno@clisp.org>
44279 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44280 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44282 2006-07-24 Bruno Haible <bruno@clisp.org>
44284 * modules/clean-temp: New file.
44286 2006-07-24 Bruno Haible <bruno@clisp.org>
44288 * m4/tmpdir.m4: New file, from GNU gettext.
44290 2006-07-24 Bruno Haible <bruno@clisp.org>
44292 * lib/tmpdir.h: New file, from GNU gettext.
44293 * lib/tmpdir.c: New file, from GNU gettext.
44295 2006-07-24 Bruno Haible <bruno@clisp.org>
44297 * lib/clean-temp.h: New file, from GNU gettext.
44298 * lib/clean-temp.c: New file, from GNU gettext.
44300 2006-07-23 Eric Blake <ebb9@byu.net>
44302 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44303 (Depends-on): Add binary-io.
44305 2006-07-23 Eric Blake <ebb9@byu.net>
44307 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44309 2006-07-23 Eric Blake <ebb9@byu.net>
44311 * lib/tmpfile-safer.c: New file.
44312 * lib/stdio-safer.h (fopen_safer): Add prototype.
44313 * lib/stdio--.h (tmpfile): Make safer.
44315 2006-07-23 Bruno Haible <bruno@clisp.org>
44317 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44318 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44319 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44320 gl_linked_remove_at): Use it.
44322 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44323 and Simon Josefsson <jas@extundo.com>
44325 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44327 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44329 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44331 * modules/close-stream: New file.
44332 * modules/closeout (Description): Make it clear that it exits
44333 with a diagnostic on error.
44334 (Depends-on): Add close-stream. Remove fpending, stdbool.
44335 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44337 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44339 * m4/close-stream.m4: New file.
44341 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44343 * lib/close-stream.c, lib/close-stream.h: New files.
44345 2006-07-22 Bruno Haible <bruno@clisp.org>
44347 Merge from GNU gettext 0.15.
44349 2006-05-01 Bruno Haible <bruno@clisp.org>
44351 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44353 2006-07-22 Bruno Haible <bruno@clisp.org>
44355 * modules/javaversion: New file.
44356 * MODULES.html.sh (Java): Add javaversion.
44358 2006-03-12 Bruno Haible <bruno@clisp.org>
44360 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44362 2005-12-04 Bruno Haible <bruno@clisp.org>
44364 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44367 2006-06-21 Bruno Haible <bruno@clisp.org>
44369 Avoid warnings from recent versions of mcs.
44370 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44371 -o, -L, -r any more. Use options documented since mcs-1.0
44372 instead. Similarly for -g.
44374 2005-12-04 Bruno Haible <bruno@clisp.org>
44376 * build-aux/csharpcomp.sh.in: Suffix for resources is
44377 .resources, not .resource.
44379 2005-07-09 Bruno Haible <bruno@clisp.org>
44381 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44383 Reported by Mark Junker <mjscod@gmx.de>.
44385 2006-07-22 Bruno Haible <bruno@clisp.org>
44387 * modules/gettext: Upgrade to gettext-0.15.
44388 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44390 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44392 2006-07-22 Bruno Haible <bruno@clisp.org>
44394 Merge from GNU gettext 0.15.
44396 2006-03-25 Bruno Haible <bruno@clisp.org>
44398 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44400 2006-07-21 Bruno Haible <bruno@clisp.org>
44402 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44405 2006-05-09 Bruno Haible <bruno@clisp.org>
44407 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44408 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44409 for the conftestver execution.
44411 2006-05-01 Bruno Haible <bruno@clisp.org>
44413 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44414 optional target-version argument. Verify that the compiler
44415 groks source of the specified source-version, or add -source
44416 option as necessary. Verify that the compiler produces
44417 bytecode in the specified target-version, or add -target and
44418 -source options as necessary. Make the result of the test
44419 available as variable CONF_JAVAC. Also log error output in
44422 2006-03-11 Bruno Haible <bruno@clisp.org>
44424 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44426 2006-05-09 Bruno Haible <bruno@clisp.org>
44428 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44429 CLASSPATH_SEPARATOR to a semicolon.
44431 2006-03-12 Bruno Haible <bruno@clisp.org>
44433 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44434 available as variable CONF_JAVA, for subsequent autoconf
44435 tests. Also log error output in config.log.
44437 2006-07-19 Bruno Haible <bruno@clisp.org>
44439 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44440 that getline works on glibc2 systems. Needed to avoid trouble
44442 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44444 2005-12-04 Bruno Haible <bruno@clisp.org>
44446 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44447 launcher (untested).
44449 2005-12-04 Bruno Haible <bruno@clisp.org>
44451 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44453 2006-07-22 Bruno Haible <bruno@clisp.org>
44455 * gettext.m4: Update from GNU gettext-0.15.
44456 * nls.m4: Likewise.
44458 * inttypes-pri.m4: Likewise.
44459 * inttypes-h.m4: Renamed from inttypes.m4.
44460 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44462 2006-07-22 Bruno Haible <bruno@clisp.org>
44464 Merge from GNU gettext 0.15.
44466 2005-07-05 Bruno Haible <bruno@clisp.org>
44468 * printf-args.c (printf_fetchargs): Work around broken
44469 definition of wint_t on mingw.
44471 2005-02-12 Bruno Haible <bruno@clisp.org>
44473 * xallocsa.h: Add extern "C" for C++.
44475 2006-05-17 Bruno Haible <bruno@clisp.org>
44477 Cygwin portability.
44478 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44480 2006-04-30 Bruno Haible <bruno@clisp.org>
44482 * progreloc.c: Include <mach-o/dyld.h> if available.
44483 (find_executable): Use _NSGetExecutablePath when possible.
44485 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
44487 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44490 2005-12-29 Bruno Haible <bruno@clisp.org>
44492 * progreloc.c (set_program_name_and_installdir): Fix
44495 2005-12-04 Bruno Haible <bruno@clisp.org>
44497 Cygwin portability.
44498 * progreloc.c: Include <windows.h> also on Cygwin.
44499 (find_executable): Add support for Cygwin.
44500 (set_program_name_and_installdir): Handle also platforms with
44503 2006-07-11 Bruno Haible <bruno@clisp.org>
44505 * javacomp.c: Fix a comment.
44506 Reported by Jim Meyering.
44508 2006-04-30 Bruno Haible <bruno@clisp.org>
44510 * javacomp.h (compile_java_class): Add source_version,
44511 target_version arguments.
44512 * javacomp.c: Rewritten to choose only a compiler that
44513 respects the specified source_version and target_version.
44515 2006-06-27 Bruno Haible <bruno@clisp.org>
44517 Assume correct S_ISDIR macro.
44518 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44520 2006-07-22 Bruno Haible <bruno@clisp.org>
44522 * javaversion.h: New file, from GNU gettext.
44523 * javaversion.c: New file, from GNU gettext.
44524 * javaversion.java: New file, from GNU gettext.
44525 * javaversion.class: New file, from GNU gettext.
44527 2006-05-17 Bruno Haible <bruno@clisp.org>
44529 Cygwin portability.
44530 * javaexec.c (execute_java_class): Test for jview program
44533 2006-04-09 Bruno Haible <bruno@clisp.org>
44535 * fatal-signal.c: Don't include string.h.
44536 (at_fatal_signal): Use a copying loop instead of memcpy.
44538 2005-12-04 Bruno Haible <bruno@clisp.org>
44540 * csharpexec.c: Add support for 'clix' launcher (untested).
44541 (execute_csharp_using_sscli): New function.
44542 (execute_csharp_program): Call it.
44544 2006-06-21 Bruno Haible <bruno@clisp.org>
44546 Avoid warnings from recent versions of mcs.
44547 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44548 -o, -L, -r any more. Use options documented since mcs-1.0
44549 instead. Similarly for -g.
44551 2005-07-09 Bruno Haible <bruno@clisp.org>
44553 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44555 Reported by Mark Junker <mjscod@gmx.de>.
44557 2006-06-17 Bruno Haible <bruno@clisp.org>
44559 * config.charset: Update for NetBSD 3.0.
44561 2006-05-17 Bruno Haible <bruno@clisp.org>
44563 Cygwin portability.
44564 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44566 2006-05-16 Bruno Haible <bruno@clisp.org>
44568 * localcharset.c [CYGWIN]: Include <windows.h>.
44569 (get_charset_aliases): For Cygwin, return the same CPxxx
44570 aliases list as under WIN32.
44571 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44572 the environment variables. Fall back to GetACP().
44574 2006-04-05 Bruno Haible <bruno@clisp.org>
44576 * config.charset: Update Juan Manuel Guerrero's address.
44578 2005-02-12 Bruno Haible <bruno@clisp.org>
44580 * allocsa.h: Add extern "C" for C++.
44582 2005-02-10 Bruno Haible <bruno@clisp.org>
44584 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44585 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44587 2006-07-22 Bruno Haible <bruno@clisp.org>
44589 * gettext.h: Update to GNU gettext-0.15.
44591 2006-07-22 Bruno Haible <bruno@clisp.org>
44593 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44594 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44595 lib-prefix.m4, longdouble.m4, ssize_t.m4.
44597 2006-07-21 Eric Blake <ebb9@byu.net>
44599 * modules/stdlib-safer: New file.
44600 * MODULES.html.sh (File stream based Input/Output): Add
44603 2006-07-21 Eric Blake <ebb9@byu.net>
44605 * lib/stdlib-safer.h: New file from coreutils, required by
44608 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
44610 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44612 2006-07-20 Bruno Haible <bruno@clisp.org>
44614 * gnulib-tool: Recognize new option --assume-autoconf.
44615 (autoconf_minversion): New variable.
44616 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44618 2006-07-20 Bruno Haible <bruno@clisp.org>
44620 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44622 2006-07-19 Derek R. Price <derek@ximbiot.com>
44624 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44625 Reindent and repaginate.
44627 2006-07-19 Derek Price <derek@ximbiot.com>
44629 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
44632 2006-07-17 Bruno Haible <bruno@clisp.org>
44634 * modules/list: New file.
44635 * modules/array-list: New file.
44636 * modules/carray-list, modules/carray-list-tests: New files.
44637 * modules/linked-list, modules/linked-list-tests: New files.
44638 * modules/avltree-list, modules/avltree-list-tests: New files.
44639 * modules/rbtree-list, modules/rbtree-list-tests: New files.
44640 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44641 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44642 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44643 * modules/oset: New file.
44644 * modules/array-oset: New file.
44645 * modules/avltree-oset, modules/avltree-oset-tests: New files.
44646 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44647 * tests/test-carray_list.c: New file.
44648 * tests/test-linked_list.c: New file.
44649 * tests/test-avltree_list.c: New file.
44650 * tests/test-rbtree_list.c: New file.
44651 * tests/test-linkedhash_list.c: New file.
44652 * tests/test-avltreehash_list.c: New file.
44653 * tests/test-rbtreehash_list.c: New file.
44654 * tests/test-avltree_oset.c: New file.
44655 * tests/test-rbtree_oset.c: New file.
44656 * MODULES.html.sh (Container data structures): New section.
44658 2006-07-17 Bruno Haible <bruno@clisp.org>
44660 * m4/gl_list.m4: New file.
44662 2006-07-17 Bruno Haible <bruno@clisp.org>
44664 * lib/gl_list.h: New file.
44665 * lib/gl_list.c: New file.
44666 * lib/gl_array_list.h: New file.
44667 * lib/gl_array_list.c: New file.
44668 * lib/gl_carray_list.h: New file.
44669 * lib/gl_carray_list.c: New file.
44670 * lib/gl_linked_list.h: New file.
44671 * lib/gl_linked_list.c: New file.
44672 * lib/gl_anylinked_list1.h: New file.
44673 * lib/gl_anylinked_list2.h: New file.
44674 * lib/gl_avltree_list.h: New file.
44675 * lib/gl_avltree_list.c: New file.
44676 * lib/gl_anyavltree_list1.h: New file.
44677 * lib/gl_anyavltree_list2.h: New file.
44678 * lib/gl_rbtree_list.h: New file.
44679 * lib/gl_rbtree_list.c: New file.
44680 * lib/gl_anyrbtree_list1.h: New file.
44681 * lib/gl_anyrbtree_list2.h: New file.
44682 * lib/gl_anytree_list1.h: New file.
44683 * lib/gl_anytree_list2.h: New file.
44684 * lib/gl_linkedhash_list.h: New file.
44685 * lib/gl_linkedhash_list.c: New file.
44686 * lib/gl_anyhash_list1.h: New file.
44687 * lib/gl_anyhash_list2.h: New file.
44688 * lib/gl_avltreehash_list.h: New file.
44689 * lib/gl_avltreehash_list.c: New file.
44690 * lib/gl_rbtreehash_list.h: New file.
44691 * lib/gl_rbtreehash_list.c: New file.
44692 * lib/gl_anytreehash_list1.h: New file.
44693 * lib/gl_anytreehash_list2.h: New file.
44695 * lib/gl_oset.h: New file.
44696 * lib/gl_oset.c: New file.
44697 * lib/gl_array_oset.h: New file.
44698 * lib/gl_array_oset.c: New file.
44699 * lib/gl_avltree_oset.h: New file.
44700 * lib/gl_avltree_oset.c: New file.
44701 * lib/gl_rbtree_oset.h: New file.
44702 * lib/gl_rbtree_oset.c: New file.
44703 * lib/gl_anytree_oset.h: New file.
44705 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44707 * m4/mkancesdirs.m4: New file.
44708 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44709 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44710 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44713 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44715 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44716 * lib/mkancesdirs.h: New files.
44717 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44718 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44719 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
44720 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44721 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
44722 callers changed. Revamp internals significantly, by not
44723 attempting to create directories that are temporarily more
44724 permissive than the final results. Do not attempt to use
44725 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44726 This removes some race conditions, fixes some bugs, and simplifies
44727 things. Use new dirchownmod function to do owner and mode changes.
44728 * lib/mkdir-p.h: Likewise.
44729 * lib/modechange.c (octal_to_mode): New function.
44730 (struct mode_change): New member mentioned.
44731 (make_node_op_equals): New arg mentioned. All callers changed.
44732 (mode_compile): Keep track of which mode bits the user has explicitly
44734 (mode_adjust): New arg DIR, so that we implement the X op correctly.
44735 New arg PMODE_BITS, to keep track of which mode bits the user
44736 mentioned; it treats S_ISUID and S_ISGID speciall.
44737 All callers changed.
44738 * lib/modechange.h: Likewise.
44740 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44742 * MODULES.html.sh: Add mkancestors.
44743 * modules/mkancesdirs: New module.
44744 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44745 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44746 The chdir-safer and afs files are now orphans; I'll remove them
44747 unless someone speaks up.
44748 Add lib/dirchownmod.c, lib/dirchownmod.h.
44749 (Depends-on): Remove alloca, chown, save-cwd, dirname.
44750 Add lchown, mkancesdirs.
44751 (Maintainer): Add self.
44753 2006-07-15 Karl Berry <karl@gnu.org>
44755 * gnulib-tool: help message wording/arrangement.
44757 2006-07-14 Simon Josefsson <jas@extundo.com>
44759 * doc/gnulib.texi (Libtool and Windows): New section.
44761 2006-07-12 Simon Josefsson <jas@extundo.com>
44763 * modules/gendocs (License): Fix license, approved by Karl.
44765 2006-07-12 Eric Blake <ebb9@byu.net>
44767 * MODULES.html.sh: Add gendocs.
44769 2006-07-11 Eric Blake <ebb9@byu.net>
44771 * modules/fdl: New module, to install doc/fdl.texi.
44772 * MODULES.html.sh: Add new section for documentation modules.
44773 * gnulib-tool: Avoid space-tab.
44774 (--doc-base): New option, to manage files from doc.
44776 2006-07-11 Eric Blake <ebb9@byu.net>
44778 * m4/absolute-header.m4: Fix comments to match recent change.
44780 2006-07-11 Eric Blake <ebb9@byu.net>
44782 * gnulib-tool: List --doc-base before --tests-base.
44784 2006-07-11 Derek R. Price <derek@ximbiot.com>
44786 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44788 2006-07-11 Bruno Haible <bruno@clisp.org>
44790 * README: Mention where to put documentation.
44792 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44794 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44796 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44798 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44801 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44803 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44804 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44805 "no/such/file/stdint.h" when there is no such file, so that
44806 the resulting C code can be parsed by dodgy compilers.
44807 Problems reported by Bob Proulx.
44809 2006-07-10 Derek R. Price <derek@ximbiot.com>
44811 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44812 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44813 macros into the GNU _D_EXACT_NAMLEN.
44814 * lib/savedir.c: Likewise.
44815 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44817 2006-07-10 Derek R. Price <derek@ximbiot.com>
44818 and Paul Eggert <eggert@cs.ucla.edu>
44820 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44822 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44823 macros into the GNU _D_EXACT_NAMLEN.
44825 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44827 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44828 around the absolute name, to work around a problem with the HP-UX
44829 11.23 native C compiler, reported by Bob Proulx.
44831 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44833 * doc/maintain.texi, make-stds.texi: Sync from
44834 <http://savannah.gnu.org/projects/gnustandards>.
44836 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44838 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44840 2006-07-09 Jim Meyering <jim@meyering.net>
44842 * m4/glob.m4: Remove a doubled word in a comment.
44844 2006-07-09 Jim Meyering <jim@meyering.net>
44846 * lib/argp-pv.c: Remove a doubled word in a comment.
44847 * lib/check-version.c (check_version): Likewise.
44848 * lib/javacomp.c (compile_java_class): Likewise.
44850 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
44852 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44853 for the benefit of people using Autoconf 2.60. If you want to
44854 support older Autoconf versions you can copy m4/onceonly_2_57.m4
44855 (or m4/onceonly.m4, if pre-2.57) manually.
44857 2006-07-08 Jim Meyering <jim@meyering.net>
44859 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44861 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44862 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44865 2006-07-08 Jim Meyering <jim@meyering.net>
44867 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44869 2006-07-07 Simon Josefsson <jas@extundo.com>
44871 * tests/test-crc.c: Change expected crc value, the test vector
44872 were probably computed using the old broken crc.c?
44874 2006-07-06 Simon Josefsson <jas@extundo.com>
44876 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44877 now the canonical place for the M4 file).
44879 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44880 from the sys_socket dependency now.
44882 * modules/inet_pton (Files): Ditto.
44884 * modules/inet_ntop (Files): Ditto.
44886 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44888 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44889 not gl_PREREQ_GETUSERSHELL.
44891 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44893 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44894 with only one argument, for Autoconf 2.60.
44895 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44896 expand to nothing, so add a shell command to avoid syntax error.
44897 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44899 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44901 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44903 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44905 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44906 no longer needed. Check for isblank decl.
44907 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44908 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44911 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44913 * lib/getloadavg.c: Use __VMS, not VMS.
44914 * lib/getopt.c: Likewise.
44915 * lib/getpagesize.h: Likewise.
44916 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44917 and probably does not work.
44919 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44921 * lib/.cppi-disable: Add wcwidth.
44922 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
44923 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44924 (ISGRAPH): Remove. All uses changed to isgraph.
44925 (FOLD) [!defined _LIBC]: Remove special case.
44926 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44927 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44929 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44932 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44934 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44935 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44936 brackets. Other minor changes to suppress some compiler
44939 2006-07-06 Derek R. Price <derek@ximbiot.com>
44940 and Paul Eggert <eggert@cs.ucla.edu>
44942 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44943 of invoking obsolescent AC_HEADER_DIRENT macro.
44944 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44945 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44946 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44947 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44948 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44949 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44950 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44951 * m4/readdir.m4: Remove; no longer needed.
44953 2006-07-06 Derek R. Price <derek@ximbiot.com>
44954 and Paul Eggert <eggert@cs.ucla.edu>
44956 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44957 Don't worry about this obsolete case any more.
44958 (HAVE_DIR): Remove. All uses removed; we now assume you can read
44960 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44961 worry about this obsolete case any more.
44962 * lib/fts.c: Likewise.
44963 * lib/getcwd.c: Likewise.
44964 * lib/glob.h: Likewise.
44965 * lib/savedir.c: Likewise.
44967 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44969 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44970 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44971 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44974 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44975 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44976 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44978 * m4/getdate.m4 (gl_GETDATE): Likewise.
44979 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44980 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44981 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44982 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44983 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44984 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44985 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44988 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44990 * lib/memcasecmp.c: Include <limits.h>.
44991 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44992 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44993 Don't assume isdigit succeeds only on '0' through '9'.
44995 2006-07-05 Eric Blake <ebb9@byu.net>
44997 * modules/getaddrinfo (Depends-on): Add snprintf.
44999 2006-07-05 Eric Blake <ebb9@byu.net>
45001 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45002 to avoid 'header present but could not be compiled' on cygwin.
45004 2006-07-05 Eric Blake <ebb9@byu.net>
45006 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45007 missing from netdb.h.
45008 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45010 2006-07-05 Derek R. Price <derek@ximbiot.com>
45012 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45014 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45015 * m4/getdate.m4 (gl_GETDATE): Likewise.
45016 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45017 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45018 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45019 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45020 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45022 2006-07-05 Derek R. Price <derek@ximbiot.com>
45024 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45025 All uses of is_space replaced by isspace.
45026 * lib/exit.h: Don't talk about STDC_HEADERS.
45027 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
45028 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45029 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
45030 replaced by isprint etc.
45031 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45032 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45033 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45034 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45035 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45036 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45038 2006-07-05 Bruno Haible <bruno@clisp.org>
45040 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45041 the function exists, before testing against AIX.
45042 Reported by Martin Lambers <marlam@marlam.de>.
45044 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45046 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45047 From Mark D. Baushke.
45049 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45051 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45052 to the absolute name, not just one, to bypass Sun C 5.8's
45053 "warning: #include of /usr/include/... may be non-portable".
45055 2006-07-04 Eric Blake <ebb9@byu.net>
45057 * modules/dirname-tests: New test module.
45058 * tests/test-dirname.c: New file, replacing dirname.c
45059 TEST_DIRNAME section that was recently deleted.
45061 2006-07-04 Bruno Haible <bruno@clisp.org>
45063 Assume ANSI C header files and <ctype.h> functions.
45064 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45065 (mbsnwidth): Use isprint, iscntrl instead.
45067 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45069 Merge from coreutils.
45070 * MODULES.html.sh: Add xstrtold.
45071 * modules/xstrtold: New file.
45072 * modules/cycle-check (Files): Add lib/same-inode.h.
45073 * modules/dirname (Files): Add m4/double-slash-root.m4.
45074 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45075 * modules/mkdir-p (Files): Add lib/same-inode.h.
45076 * modules/same (Files): Add lib/same-inode.h.
45078 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45080 * m4/absolute-header.m4: Renamed from full-header-path.m4.
45081 This is to keep the terminology clean; POSIX talks about
45082 "absolute pathnames", not "full pathnames", but the GNU
45083 Coding Standards say to use "path" for something else;
45084 so use "absolute" to keep both sides happy.
45085 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45086 Set gl_absolute_header, not gl_full_header_path.
45087 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45088 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45091 Merge from coreutils.
45093 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45095 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45096 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45097 want to require the building of c-strtod.o.
45098 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45099 needs -lm directly.
45100 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45102 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45104 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45105 --as-needed option if available. Problem reported by Albert Chin in
45106 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45107 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45108 cc merely issues a bunch of annoying warnings for --as-needed
45109 (this problem was reported by Bob Proulx). Also, try linking with
45110 -lm to detect a bug in binutils 2.16 (this problem was reported
45111 by Ralf Wildenhues).
45113 2006-06-18 Jim Meyering <jim@meyering.net>
45115 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45116 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45118 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45119 also check for glibc-2.4's abort-inducing bug.
45121 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45122 Low-probability clean-up should be to use rmdir to get rid of
45123 the just-created directory, not unlink.
45125 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45126 configure fail, and request a bug report to inform us about it.
45127 Add a comment that, barring reports to the contrary, in 2007 we'll
45128 assume ftruncate is universally available.
45130 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45132 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45134 2006-03-12 Jim Meyering <jim@meyering.net>
45136 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45137 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45138 * m4/same.m4 (gl_SAME): Likewise.
45139 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45141 2006-03-11 Eric Blake <ebb9@byu.net>
45143 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45144 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45145 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45146 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45148 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45150 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45151 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
45152 reported by Mark D. Baushke, one in
45153 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45155 Merge from coreutils.
45157 * lib/.cppi-disable: Add stdint_.h.
45158 * lib/.cvsignore: Add stdint.h.
45160 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45162 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45163 both double and long double versions.
45164 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
45165 * lib/xstrtold.c: New file.
45166 * lib/xstrtod.h (xstrtold): New decl.
45168 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
45170 * lib/filemode.c (setst): Remove.
45171 (strmode): Rewrite to avoid setst. This makes the code shorter,
45172 (arguably) clearer, and the generated code is a bit smaller on my
45173 Debian GNU/Linux stable x86 host.
45175 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45177 * lib/filemode.c: Include "filemode.h" first, to test the interface.
45178 Assume that filemode.h includes sys/types.h and sys/stat.h.
45179 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45180 (ftypelet): Reorder to put common cases first, for efficiency.
45181 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
45183 (strmode): Renamed from mode_string, and now stores 12 bytes instead
45184 of 10, for compatibility with FreeBSD. All callers changed.
45185 (filemodestring): Now stores 12 bytes instead of 10, and sets file
45186 types that can't be deduced solely from st_mode. First arg is now a
45188 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45189 (strmode): Renamed from mode_string.
45190 (filemodestring): New decl.
45191 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45192 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45194 (S_ISPORT, S_ISWHT): New macros, if not already defined.
45196 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
45198 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45199 fsusage.h now does that. Include fsusage.h first, to test interface.
45200 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
45201 at most one method (the old code could have generated decls that
45202 didn't conform to C89, not that this was ever exercised).
45203 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45205 2006-03-19 Jim Meyering <jim@meyering.net>
45207 Work even in a chroot where d_ino values for entries in "/"
45208 don't match the stat.st_ino values for the same names.
45209 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45210 number, iterate through all entries again, using lstat instead.
45211 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45212 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45214 * lib/getcwd.c (__getcwd): Clarify a comment.
45215 Use memcpy in place of a call to strcpy.
45217 2006-03-12 Jim Meyering <jim@meyering.net>
45219 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45220 matches that of the current directory (which we're about to chdir ".."
45221 out of), then save the dev-ino of the parent, instead.
45223 * lib/same-inode.h (SAME_INODE): New file/macro.
45224 * lib/chdir-safer.c (SAME_INODE): Remove definition.
45225 Include "same-inode.h", instead.
45226 * lib/same.c: Likewise.
45227 * lib/cycle-check.h: Include "same-inode.h".
45228 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45229 * lib/cycle-check.c (SAME_INODE): Remove definition.
45230 * lib/root-dev-ino.h: Include "same-inode.h".
45232 2006-03-11 Eric Blake <ebb9@byu.net>
45234 * lib/same.c (same_name): s/base_name/last_component/
45235 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45236 * lib/filenamecat.c (file_name_concat): Likewise.
45238 2006-03-11 Eric Blake <ebb9@byu.net>,
45239 Paul Eggert <eggert@cs.ucla.edu>
45241 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45242 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45244 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45245 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45246 (last_component): New method.
45247 * lib/dirname.c (dir_len): Determine when drive letters need a
45248 subsequent slash. Preserve // when it is special.
45249 (dir_name): Don't append dot when drive letter is absolute.
45250 [TEST_DIRNAME]: Move into a full-blown gnulib test.
45251 * lib/basename.c (base_name): New semantics - malloc the result.
45252 Preserve // when it is special. Preserve relative files that look
45253 like drive letters.
45254 (base_len): Preserve // when it is special.
45255 (last_component): New method, similar to old base_name semantics.
45256 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45257 base_name. Strip redundant slashes from ///.
45259 2006-07-03 Jim Meyering <jim@meyering.net>
45261 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45262 macro is used before the first cycle_check call.
45264 2006-07-03 Eric Blake <ebb9@byu.net>
45266 * modules/dirname (Depends-on): Add xstrndup.
45268 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45270 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45271 test cases, so that config.log is a bit easier to follow.
45273 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45275 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45276 both are 64 bits, since this seems to be the tradition, and this
45277 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45278 we ever run into a host that prefers long long to long in this
45279 case, we'll need another configure-time test. Problem reported by
45282 2006-07-02 Eric Blake <ebb9@byu.net>
45284 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45286 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45288 * modules/inttypes (Depends-on): No longer depends on stdint.
45289 * modules/stdint (Description): Say more about assumptions.
45290 Say that the fast types might differ. Say macros are used.
45291 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45292 (Makefile.am): Revise list of substituted symbols to match
45294 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45295 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45296 * tests/test-stdint.c (verify_same_types)
45297 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45298 the code conforms to C99/C89.
45299 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45300 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45302 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45304 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45305 but fix a bug, by requiring at least 64 bits.
45306 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45307 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45308 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45309 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45311 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45312 changes. Make 2.59 a prerequisite. Check and substitute for
45313 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45314 inttypes.h. Do not use special include files; just use the
45315 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45316 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45317 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45318 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45319 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45320 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45321 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45322 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45323 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45324 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45325 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45326 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45327 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45328 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45329 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45330 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45331 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45332 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45333 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45334 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45335 WINT_MAX. Check for C99 conformance more strictly, by detecting
45336 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45337 not check for things that C99 does not require, e.g., int8_t. If
45338 a test isn't needed unless <stdint.h> isn't working, and is
45339 unlikely to be needed for any other reason, then don't do it
45340 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45341 size_t, since we assume C89 freestanding at least. Do not check
45342 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45343 the right thing even if the types are not defined. Instead use:
45344 (gl_STDINT_TYPE_PROPERTIES): New macro.
45345 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45346 testing whether <sys/types.h> clashes, as Autoconf does this for
45347 us now. All uses removed.
45348 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45349 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45350 (gl_CHECK_TYPE_SAME):
45351 Remove; no longer needed.
45352 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45353 exists, since we'll return 0 anyway in that case.
45354 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45356 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45358 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45359 possible collision with system files.
45360 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45361 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45362 WCHAR_MIN and WCHAR_MAX in this case.
45363 (<stddef.h>): Do not include; no longer needed.
45364 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45365 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45366 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45367 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45368 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45369 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45370 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45371 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45372 !defined(__c99))]: Include in this case too, since it's harmless
45374 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45375 dangerous to do so.
45376 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45377 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45378 (_STDINT_MIN, _STDINT_MAX): New macros.
45379 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45380 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45381 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45382 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45383 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45384 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45385 macros, not typedefs; this simplifies things quite a bit.
45386 Use long int for all types narrower than int64_t.
45387 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45388 Define in terms of long long int or int64_t or long int,
45389 not int64_t or int32_t. This saves some compile-time testing.
45390 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45391 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45392 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45393 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45394 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45395 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45396 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45397 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45398 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45399 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45400 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45401 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45402 undef any previous version and define our own version, for
45403 simplicity and consistency with the new macros for types.
45404 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45405 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45406 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45407 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45408 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45409 @WINT_T_SUFFIX@ to keep things simple here.
45410 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45411 Simplify by assuming typical 8/16/32/64 host, since we're
45412 already doing that elsewhere anyway.
45413 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45414 and assume long long int is 64 bits if available. This
45415 speeds up 'configure'.
45417 2006-07-01 Eric Blake <ebb9@byu.net>
45419 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45420 Reported by Andreas Buening.
45422 2006-07-01 Eric Blake <ebb9@byu.net>
45424 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45426 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45428 * lib/getaddrinfo.c: fixed typo
45430 2006-06-29 Jim Meyering <jim@meyering.net>
45432 * modules/strftime (Maintainer): Add my name, since with the
45433 FPRINTFTIME changes strftime.c has forked from glibc.
45435 2006-06-29 Eric Blake <ebb9@byu.net>
45437 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45439 2006-06-29 Eric Blake <ebb9@byu.net>
45441 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45443 2006-06-29 Eric Blake <ebb9@byu.net>
45445 * lib/stat_.h: New file.
45447 2006-06-29 Eric Blake <ebb9@byu.net>
45449 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45450 unused static function.
45452 2006-06-29 Eric Blake <ebb9@byu.net>
45454 * doc/functions.texi (Function Portability): Document missing lstat
45457 2006-06-29 Eric Blake <ebb9@byu.net>
45459 * MODULES.html.sh: Add sys_stat.
45460 * modules/sys_stat: New module.
45461 * modules/mkstemp (Depends-on): Add sys_stat.
45463 2006-06-29 Derek R. Price <derek@ximbiot.com>
45465 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45467 2006-06-29 Derek R. Price <derek@ximbiot.com>
45469 * m4/c-bs-a.m4: Removed.
45471 2006-06-29 Derek R. Price <derek@ximbiot.com>
45473 * lib/strftime.c: Assume strftime() exists.
45475 2006-06-29 Derek Price <derek@ximbiot.com>
45477 * modules/c-bs-a: Removed - \a is C89.
45478 * MODULES.html.sh: Remove c-bs-a.
45480 2006-06-29 Bruno Haible <bruno@clisp.org>
45482 * modules/wcwidth (License): Change to LGPL.
45484 2006-06-28 Simon Josefsson <jas@extundo.com>
45486 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
45489 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45492 2006-06-28 Simon Josefsson <jas@extundo.com>
45494 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45496 2006-06-28 Simon Josefsson <jas@extundo.com>
45498 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45499 functions there. It will succeed on Windows XP, but on Windows
45500 2000 and (presumably) earlier, it will fail, and use the internal
45502 (use_win32_p): New function.
45503 (getaddrinfo): Use strtoul on servname, to support numeric ports.
45504 Support AI_NUMERICSERV to disable getservbyname.
45505 (getnameinfo): New function, only supports
45506 NI_NUMERICHOST|NI_NUMERICSERV for now.
45508 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45509 only have some of them. Add AI_NUMERICSERV. Add prototype for
45512 2006-06-28 Eric Blake <ebb9@byu.net>
45514 * modules/wcwidth: New file.
45515 * modules/mbchar (Depends-on): Add wcwidth.
45516 * modules/mbswidth (Depends-on): Add wcwidth.
45517 * MODULES.html.sh: Add wcwidth.
45519 2006-06-28 Eric Blake <ebb9@byu.net>
45521 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45522 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45524 2006-06-28 Eric Blake <ebb9@byu.net>
45526 * lib/xvasprintf.h: Fix comments.
45528 2006-06-28 Eric Blake <ebb9@byu.net>
45530 * lib/mbchar.h (wcwidth): Include wcwidth.h.
45531 * lib/mbswidth.c (wcwidth): Move from here...
45532 * lib/wcwidth.h: ...to this new file.
45534 2006-06-28 Derek R. Price <derek@ximbiot.com>
45536 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45538 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45540 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45542 2006-06-28 Derek R. Price <derek@ximbiot.com>
45544 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
45545 Autoconf 2.60 says this stuff was obsolete.
45547 2006-06-28 Bruno Haible <bruno@clisp.org>
45549 * modules/wcwidth (Files): Add m4/wchar_t.m4.
45551 2006-06-28 Bruno Haible <bruno@clisp.org>
45553 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45556 2006-06-28 Bruno Haible <bruno@clisp.org>
45558 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45559 declaration for wcwidth.
45560 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45562 2006-06-28 Bruno Haible <bruno@clisp.org>
45564 * lib/mkdtemp.c [MINGW]: Include <io.h>.
45565 (mkdir): Define using _mkdir.
45567 2006-06-28 Bruno Haible <bruno@clisp.org>
45569 * lib/getaddrinfo.h: Fix POSIX URL.
45570 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45572 (use_win32_p): Make static.
45573 (getaddrinfo): Reject service name if it is empty or does not consist
45574 solely of decimal digits, or if its value is > 65535.
45575 (getnameinfo): Remove useless casts.
45577 2006-06-27 Simon Josefsson <jas@extundo.com>
45579 * modules/sys_select: New file, suggested by Bruno Haible, Paul
45580 Eggert and Martin Lambers.
45582 2006-06-27 Simon Josefsson <jas@extundo.com>
45584 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45585 Eggert and Martin Lambers.
45587 2006-06-27 Bruno Haible <bruno@clisp.org>
45589 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45590 result to 0, not to empty.
45591 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45593 2006-06-27 Bruno Haible <bruno@clisp.org>
45595 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45597 2006-06-26 Simon Josefsson <jas@extundo.com>
45599 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45602 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
45604 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45605 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
45606 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45608 2006-06-26 Mark D. Baushke <mdb@gnu.org>
45610 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45612 2006-06-26 Bruno Haible <bruno@clisp.org>
45614 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45616 2006-06-26 Bruno Haible <bruno@clisp.org>
45618 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45620 2006-06-26 Bruno Haible <bruno@clisp.org>
45622 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45623 SGI C compiler in pre-C99 mode.
45624 Suggested by Mark D. Baushke and Larry Jones.
45626 2006-06-26 Bruno Haible <bruno@clisp.org>
45628 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45630 Reported by Mark D. Baushke and Larry Jones.
45632 2006-06-26 Bruno Haible <bruno@clisp.org>
45634 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45636 Suggested by Mark D. Baushke and Larry Jones.
45638 2006-06-23 Simon Josefsson <jas@extundo.com>
45639 Bruno Haible <bruno@clisp.org>
45641 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45642 Emit mostlyclean-local rule.
45643 (func_emit_tests_Makefile_am): Likewise.
45644 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45646 2006-06-23 Mark D. Baushke <mdb@gnu.org>
45648 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45650 2006-06-23 Bruno Haible <bruno@clisp.org>
45652 * tests/test-stdint.c: Update to match ISO C 99 Technical
45655 2006-06-23 Bruno Haible <bruno@clisp.org>
45657 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45659 2006-06-23 Bruno Haible <bruno@clisp.org>
45661 * lib/stdint_.h: Treat IRIX like OpenBSD.
45663 2006-06-23 Bruno Haible <bruno@clisp.org>
45665 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45666 ISO C 99 Technical Corrigendum 1.
45668 2006-06-22 Simon Josefsson <jas@extundo.com>
45670 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45673 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
45675 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45676 needed. Some compiler complained about some of them. Problem reported
45678 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45680 2006-06-21 Simon Josefsson <jas@extundo.com>
45682 * tests/test-getaddrinfo.c: New file.
45684 * modules/getaddrinfo-tests: New file.
45686 * MODULES.html.sh: Add inet_pton.
45688 * modules/inet_pton: New file.
45690 2006-06-21 Simon Josefsson <jas@extundo.com>
45692 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
45693 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
45694 of using the (limited) gnulib implementation on Windows XP.
45696 * m4/inet_pton.m4: New file.
45698 2006-06-21 Simon Josefsson <jas@extundo.com>
45700 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45703 * lib/socket_.h: Don't define WINVER.
45705 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45706 slightly modified to work in gnulib.
45708 2006-06-21 Simon Josefsson <jas@extundo.com>
45710 * doc/gnulib.texi (Windows sockets): Add.
45712 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
45714 * lib/read-file.c (fread_file): Start with buffer allocation of
45715 0 bytes rather than 1 byte; this simplifies the code.
45716 Don't invoke feof; it's not needed. Refactor to avoid duplicate
45717 code to free buffer and save/restore errno.
45718 (internal_read_file): Remove unused local.
45720 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
45722 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45723 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45724 Problem reported by Denis Excoffier in
45725 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45727 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45729 * modules/sys_socket, modules/socklen: Include sys/types since
45730 FreeBSD 4.x's sys/socket.h needs it.
45732 2006-06-19 Simon Josefsson <jas@extundo.com>
45734 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45736 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45738 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45740 2006-06-19 Bruno Haible <bruno@clisp.org>
45742 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45743 and FULL_PATH_INTTYPES_H in angle brackets.
45744 Reported by Mark D. Baushke <mdb@gnu.org>.
45746 2006-06-17 Eric Blake <ebb9@byu.net>
45748 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45751 2006-06-17 Bruno Haible <bruno@clisp.org>
45753 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45756 2006-06-17 Bruno Haible <bruno@clisp.org>
45758 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45759 whether errno is declared. Assume <errno.h> declares errno.
45761 2006-06-17 Bruno Haible <bruno@clisp.org>
45763 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45765 2006-06-17 Bruno Haible <bruno@clisp.org>
45767 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45768 problem on Solaris 2.5.1.
45770 2006-06-16 Eric Blake <ebb9@byu.net>
45772 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45773 * lib/unicodeio.c [!defined errno]: Likewise.
45774 * lib/strtol.c [!defined errno]: Likewise.
45775 * lib/strtod.c [!defined errno]: Likewise.
45777 2006-06-15 Eric Blake <ebb9@byu.net>
45779 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45781 2006-06-15 Eric Blake <ebb9@byu.net>
45783 * config/srclist.txt (ssize_t.m4): Lose sync.
45785 2006-06-15 Bruno Haible <bruno@clisp.org>
45787 * modules/stdint (Files): Include m4/full-header-path.m4,
45788 m4/size_max.m4, m4/wchar_t.m4.
45789 (Makefile.am): Many more substitutions.
45790 * modules/stdint-tests: New file.
45791 * tests/test-stdint.c: New file.
45793 2006-06-15 Bruno Haible <bruno@clisp.org>
45795 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45796 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45797 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45798 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45799 gl_CHECK_TYPE_SAME): New macros.
45801 2006-06-15 Bruno Haible <bruno@clisp.org>
45803 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45805 2006-06-15 Bruno Haible <bruno@clisp.org>
45807 * lib/stdint_.h: Rewritten to be fully auto-configured.
45808 Fixes bug on HP-UX/IA64.
45810 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45812 * lib/getdate.y (__attribute__): Don't define if already defined.
45813 Problem reported by Larry Jones.
45814 * lib/utimens.c (__attribute__): Likewise.
45816 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45818 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45819 reported by Andreas Schwab.
45821 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45822 Bruno Haible <bruno@clisp.org>
45824 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45825 check for the declaration of strnlen and a run test that exposes the
45826 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45829 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45830 Bruno Haible <bruno@clisp.org>
45832 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45834 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45836 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45837 compile test, for Tru64 4.0D.
45839 2006-05-28 Karl Berry <karl@gnu.org>
45841 * config/srclist.txt (printf-args.c): lose sync.
45843 2006-05-26 Martin Lambers <marlam@marlam.de>
45845 * lib/getpass.c: Updates the test for the native W32 API, and adds
45846 missing includes, thus fixing compilation warnings.
45848 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
45850 * lib/exclude.c (exclude_fnmatch): New function.
45851 (excluded_file_name): Call exclude_fnmatch.
45852 * lib/exclude.h (excluded_file_name): New prototype
45854 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
45856 * lib/tempname.c (small_open, large_open): New macros.
45857 (__open, __open64) [!_LIBC]: Remove.
45858 (__gen_tempname): Use small_open and large_open instead of __open
45859 and __open64. This fixes a portability bug on HP-UX 11.11i
45860 reported by Simon Wing-Tang in
45861 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45863 2006-05-24 Bruno Haible <bruno@clisp.org>
45865 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45866 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45867 Reported by Thorsten Maerz <torte@netztorte.de> via
45868 Aaron Stone <aaron@serendipity.cx>.
45870 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45872 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45873 gl_ rather than jm_. Link, don't run, so that cross-compiles are
45874 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
45875 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45876 not really conditional on the cache.
45877 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45879 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45881 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45882 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45883 (my_usleep): Don't mishandle maximum value.
45885 2006-05-19 Jim Meyering <jim@meyering.net>
45887 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
45889 2006-05-17 Bruno Haible <bruno@clisp.org>
45891 Cygwin portability.
45892 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45894 2006-05-17 Bruno Haible <bruno@clisp.org>
45896 * lib/stdint_.h: Fix recognition of Cygwin.
45898 2006-05-15 Bruno Haible <bruno@clisp.org>
45900 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45901 on libtool patch by Ralf Wildenhues.
45903 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
45905 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45906 test for C99 conformance; (bool) 0.5 is an integer constant
45907 expression, but (bool) -0.5 is not. Problem reported by Fedor
45908 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45910 2006-05-11 Simon Josefsson <jas@extundo.com>
45912 * m4/xvasprintf.m4: Fix obvious typo.
45914 2006-05-11 Jim Meyering <jim@meyering.net>
45916 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
45919 2006-05-10 Simon Josefsson <jas@extundo.com>
45921 * lib/md4.c: Typo fix, update copyright years.
45922 (K1, K2): Don't use L because it turn computations into 64-bit on
45925 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
45927 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45928 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45929 unwanted sign propagation, e.g., on hosts with 64-bit int.
45930 There still are some problems with reeelly weird theoretical hosts
45931 (e.g., 33-bit int) but it's not worth worrying about now.
45932 * lib/sha1.c (rol): Likewise.
45933 (K1, K2, K3, K4): Remove unnecessary L suffix.
45935 2006-05-10 Bruno Haible <bruno@clisp.org>
45937 * lib/des.c: Cast to avoid warnings.
45939 2006-05-09 Bruno Haible <bruno@clisp.org>
45941 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45942 (Depends-on): Depend also on xsize, stdarg.
45943 (configure.ac): Add gl_XVASPRINTF.
45945 2006-05-09 Bruno Haible <bruno@clisp.org>
45947 * m4/xvasprintf.m4: New file.
45949 2006-05-09 Bruno Haible <bruno@clisp.org>
45951 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45952 (EOVERFLOW): Define fallback value.
45953 (xstrcat): New function.
45954 (xvasprintf): Recognize the special case of a string concatenation.
45956 2006-05-08 Eric Blake <ebb9@byu.net>
45958 * gnulib-tool (func_version): Base copyright year on CVS date.
45959 (func_emit_copyright_notice): New function.
45960 (func_emit_lib_Makefile_am): Use it.
45961 (func_emit_tests_Makefile_am): Likewise.
45962 (func_import): Likewise.
45964 2006-05-08 Bruno Haible <bruno@clisp.org>
45966 * modules/stdarg: New file.
45967 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45969 2006-05-08 Bruno Haible <bruno@clisp.org>
45971 * m4/stdarg.m4: New file, from GNU gettext.
45973 2006-05-08 Bruno Haible <bruno@clisp.org>
45975 * config/srclist.txt (build-aux/config.rpath): different from latest
45978 2006-05-08 Bruno Haible <bruno@clisp.org>
45980 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45982 2006-05-05 Jim Meyering <jim@meyering.net>
45984 * m4/warning.m4: New file, derived from bison's file by the same name.
45986 2006-05-03 Bruno Haible <bruno@clisp.org>
45988 * lib/stdint_.h: Shorter URL.
45989 * lib/inttypes.h: Likewise.
45991 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45993 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45995 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45997 * lib/verify.h: Document the internals better. Most of this change
45998 was written by Bruno Haible.
46000 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46002 * doc/verify.texi: New file, partly based on a proposal by
46005 2006-05-02 Bruno Haible <bruno@clisp.org>
46007 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46009 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46011 2006-04-29 Bruno Haible <bruno@clisp.org>
46013 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46014 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46016 2006-04-29 Bruno Haible <bruno@clisp.org>
46018 * gnulib-tool: Make --update option actually work.
46020 2006-04-29 Bruno Haible <bruno@clisp.org>
46022 * doc/gcd.texi: New file.
46023 * doc/gnulib.texi: Include it.
46025 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
46027 * lib/getdate.y (get_date): When adding relative date, start with the
46028 initial time, not with the result of the first mktime call.
46030 2006-04-25 Bruno Haible <bruno@clisp.org>
46032 * gnulib-tool (func_import): Output the include directives in three
46033 blocks, sorted separately.
46034 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46036 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46038 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46039 to define main with arguments, for C++. Reported by Eric Blake.
46040 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46041 Prefer 'int main ()' to 'int main (void)', for C++.
46042 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46043 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46044 for 'main', for C99 and C++.
46046 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46048 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46049 Don't assume that exit status -1 is valid.
46050 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46051 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46052 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46053 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46054 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46055 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46056 not AC_TRY_RUN. Use return, not exit. Don't assume that
46057 functions can be used without declaring them, or that you can
46058 exit with status -1.
46059 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46061 2006-04-24 Karl Berry <karl@gnu.org>
46063 * config/srclist.txt (longdouble.m4): sync lost.
46065 2006-04-24 Eric Blake <ebb9@byu.net>
46067 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46069 2006-04-24 Bruno Haible <bruno@clisp.org>
46071 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46072 poll() implementation in AIX.
46073 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46075 2006-04-24 Bruno Haible <bruno@clisp.org>
46077 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46078 assigned exactly once.
46080 2006-04-23 Claudio Fontana <claudio@gnu.org>
46081 Bruno Haible <bruno@clisp.org>
46083 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46084 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46087 2006-04-23 Bruno Haible <bruno@clisp.org>
46089 * modules/copy-file: Depend on unistd.
46090 * modules/execute: Likewise.
46091 * modules/fatal-signal: Likewise.
46092 * modules/findprog: Likewise.
46093 * modules/mkdtemp : Likewise.
46094 * modules/pipe: Likewise.
46095 * modules/wait-process: Likewise.
46097 2006-04-23 Bruno Haible <bruno@clisp.org>
46099 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46100 condition was already detected.
46101 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46103 2006-04-23 Bruno Haible <bruno@clisp.org>
46105 * lib/copy-file.c: Include <unistd.h> unconditionally.
46106 * lib/execute.c: Likewise.
46107 * lib/fatal-signal.c: Likewise.
46108 * lib/findprog.c: Likewise.
46109 * lib/mkdtemp.c: Likewise.
46110 * lib/pipe.h: Likewise.
46111 * lib/pipe.c: Likewise.
46112 * lib/wait-process.h: Likewise.
46114 2006-04-23 Bruno Haible <bruno@clisp.org>
46116 * gnulib-tool (func_usage): Fix --import description. Document
46118 (func_import): Create temporary file in a temporary directory, if
46119 --dry-run is specified. Silence errors from 'grep' when there are no
46120 m4 files in $m4dir.
46121 (func_create_testdir): Silence errors from 'grep' when there are no
46122 m4 files in $m4dir.
46123 Reported by Karl Berry <karl@freefriends.org>.
46125 2006-04-20 Bruno Haible <bruno@clisp.org>
46127 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46128 one argument, so that the code will be portable to Autoconf 2.60.
46129 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46130 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46131 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46133 2006-04-19 Derek Price <derek@ximbiot.com>
46134 Eric Blake <ebb9@byu.net>
46136 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46137 rather than "/full/path.h". Update comment to match. Shorten &
46138 generalize m4_translit call via AS_TR_CPP.
46140 2006-04-19 Derek Price <derek@ximbiot.com>
46141 Eric Blake <ebb9@byu.net>
46143 * lib/inttypes.h: Correct grammar in comment.
46145 2006-04-18 Derek Price <derek@ximbiot.com>
46146 Paul Eggert <eggert@cs.ucla.edu>
46148 * modules/inttypes: New file.
46149 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46151 2006-04-18 Derek Price <derek@ximbiot.com>
46152 Paul Eggert <eggert@cs.ucla.edu>
46154 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46157 2006-04-18 Derek Price <derek@ximbiot.com>
46158 Paul Eggert <eggert@cs.ucla.edu>
46160 * lib/inttypes.h: New file.
46161 * lib/strtoimax.c: Assume <inttypes.h>.
46163 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
46165 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46166 isn't mounted. Problem reported by Kir Kolyshkin.
46168 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
46170 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46171 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
46173 * lib/regex.h (RE_DUP_MAX): Update comment to match current
46176 2006-04-12 Eric Blake <ebb9@byu.net>
46178 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46179 is now done automatically by the corresponding Autoconf macro.
46181 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
46183 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46186 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46188 Merge regex changes from libc, removing some of our
46189 POSIX-conformance changes that were rejected and redoing them in a
46190 less-intrusive way.
46192 * lib/regcomp.c (re_compile_internal, init_dfa):
46193 Length arg is now size_t, not Idx. All uses changed.
46194 (peek_token): Forward decl now says internal_function.
46195 (__re_error_msgid, __re_error_msgid_idx):
46196 Now static rather than extern with attribute_hidden.
46197 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46198 For some reason libc prefers K&R style defns for external functions.
46199 (regerror) [!defined _LIBC]: Likewise.
46200 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46201 (seek_collating_symbol_entry, lookup_collation_sequence_value):
46202 (build_range_exp, build_collating_symbol):
46203 Use K&R-style defn.
46204 (re_compile_fastmap): Use '\0' to memset, not 0.
46205 (utf8_sb_map): Make the calculations more obvious.
46206 (init_dfa, parse_bracket_exp, build_charclass_op):
46207 Call calloc and cast result, as glibc does.
46208 (init_word_char, fetch_token, peek_token, peek_token_bracket):
46209 (build_range_exp, build_collating_symbol):
46210 Now internal functions.
46212 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46214 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
46215 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46216 Don't depend on VMS; depend on __VMS instead, for POSIX
46217 namespace cleanness.
46218 (regoff_t): Define to ssize_t, not long int.
46220 Remove the REG_ macros named below. Instead, make the old names
46221 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46223 (REG_BACKSLASH_ESCAPE_IN_LISTS):
46224 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46225 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46226 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46227 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46228 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46229 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46230 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46231 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46232 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46233 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46234 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46235 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46236 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46237 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46238 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46239 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46241 Remove. All uses replaced by the old RE_* names.
46242 (RE_BACKSLASH_ESCAPE_IN_LISTS):
46243 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46244 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46245 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46246 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46247 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46248 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46249 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46250 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46251 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46252 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46253 Don't bother having these macros be independent of each others'
46254 values, since they no longer exist in the POSIX name space.
46256 Rename the following member names back to their old names,
46257 unless !__USE_GNU_REGEX. All uses changed back.
46258 (buffer): Renamed from re_buffer.
46259 (allocated): Renamed from re_allocated.
46260 (used): Renamed from re_used.
46261 (syntax): Renamed from re_syntax.
46262 (fastmap): Renamed from re_fastmap.
46263 (translate): Renamed from re_translate.
46264 (can_be_null): Renamed from re_can_be_null.
46265 (regs_allocated): Renamed from re_regs_allocated.
46266 (fastmap_accurate): Renamed from re_fastmap_accurate.
46267 (no_sub): Renamed from re_no_sub.
46268 (not_bol): Renamed from re_not_bol.
46269 (not_eol): Renamed from re_not_eol.
46270 (newline_anchor): Renamed from re_newline_anchor.
46271 (num_regs): Renamed from rm_num_regs.
46272 (start): Renamed from rm_start.
46273 (end): Renamed from rm_end.
46275 (free_state): Move up a bit.
46277 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46278 #define to be empty.
46279 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46280 when that is what is intended.
46281 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46282 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46284 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46285 All uses changed back to re_malloc, etc. It's now the caller's
46286 responsibility to check for overflow; all callers changed.
46287 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46288 (re_x2nrealloc): Remove.
46289 (free_state): Remove decl.
46291 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46292 (re_set_registers, re_exec):
46293 Use K&R-style defn.
46295 2006-01-31 Roland McGrath <roland@redhat.com>
46297 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46298 Reported by Mike Frysinger <vapier@gentoo.org>.
46300 2006-01-15 Andreas Jaeger <aj@suse.de>
46303 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46304 build_wcs_upper_buffer change.
46305 (build_wcs_upper_buffer): Change return type.
46307 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46309 * lib/regex_internal.h: Include <stdint.h> if available.
46311 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46313 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46315 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46317 * lib/regcomp.c: Adjust for changed secondary hash function.
46319 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46321 * lib/regex.h: Pretty printing.
46322 Clean up namespace a bit.
46324 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46326 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46327 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46329 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46330 Ulrich Drepper <drepper@redhat.com>
46333 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46335 (bitset_word_t): Renamed from bitset_word. All uses changed.
46337 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46340 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46341 * lib/regcomp.c: Remove unnecessary uses of
46342 unsigned RE_TRANSLATE_TYPE.
46343 * lib/regex_internal.h: Likewise.
46344 * lib/regex_internal.c: Likewise.
46345 * lib/regexec.c: Likewise.
46346 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46348 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46350 * lib/regexec.c (find_recover_state): Remove unnecessary
46352 (transit_state_bkref): Make DFA a const pointer.
46353 (get_subexp): Likewise.
46354 (check_arrival): Likewise.
46355 (update_cur_sifted_state): Likewise.
46356 (re_search_internal): Likewise.
46357 (prune_impossible_nodes): Likewise.
46358 (acquire_init_state_context): Likewise.
46359 (proceed_next_node): Likewise.
46360 (set_regs): Likewise.
46361 (free_fail_stack_return): Likewise.
46362 (check_arrival_expand_ecl): Mark DFA parameter as const.
46363 (check_arrival_expand_ecl_sub): Likewise.
46364 (check_subexp_limits): Likewise.
46365 (sub_epsilon_src_nodes): Likewise.
46366 (add_epsilon_src_nodes): Likewise.
46367 (merge_state_array): Likewise.
46368 (update_regs): Likewise.
46369 (build_trtable): Likewise.
46370 (sift_states_backward): Mark MCTX parameter as const.
46371 (build_sifted_states): Likewise.
46372 (update_cur_sifted_state): Likewise.
46373 (sift_states_mkref): Likewise.
46374 (check_arrival_expand_ecl): Mark eclosure as const.
46375 (check_dst_limits_calc_pos_1): Likewise.
46376 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46379 2005-09-06 Ulrich Drepper <drepper@redhat.com>
46381 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46382 (transit_state_sb): Likewise.
46383 (transit_state_mb): Likewise.
46384 (sift_states_iter_mb): Likewise.
46385 (check_arrival_add_next_nodes): Likewise.
46386 (check_node_accept_bytes): Change first parameter to pointer-to-const.
46387 [_LIBC] (re_search_2_stub): Use mempcpy.
46389 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46390 mbrtowc for very simple UTF-8 case.
46392 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46393 a pointer-to-const.
46394 (re_acquire_state_context): Likewise.
46395 * lib/regex_internal.h: Adjust prototypes.
46397 * lib/regex.c: Prevent using C++ compilers.
46399 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46400 (re_acquire_state_context): Likewise.
46402 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46404 * modules/regex (Depends-on): Add ssize_t.
46406 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46408 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46411 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46413 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46415 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46416 Bruno Haible <bruno@clisp.org>
46418 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46419 <sys/types.h> and <inttypes.h>.
46421 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46423 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46424 `__error_t_defined', so argp.h will not typedef the former.
46426 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46428 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46429 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46430 glibc names. Even if glibc is changed to conform to POSIX, the
46431 traditional names will be available anyway, since regex depends on
46432 the extensions module. Also, fix a longstanding typo in the
46433 implementation of Spencer ERE test #75 from grep 2.3. Problems
46434 reported by Emanuele Giaquinta. Also, change sense of cached
46435 variable, so that the message makes sense.
46437 2006-03-24 Simon Josefsson <jas@extundo.com>
46439 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46440 including some doc fixes.
46441 (base64_encode_alloc): Fix +1 bug on allocation failures.
46443 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46445 * lib/base64.c (base64_encode): Do not read past end of array with
46446 unsanitized input on systems with CHAR_BIT > 8.
46448 2006-03-24 Eric Blake <ebb9@byu.net>
46450 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46452 2006-03-22 Karl Berry <karl@gnu.org>
46454 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46455 * config/srclistvars.sh (COREUTILS): new var.
46457 2006-03-17 Jim Meyering <jim@meyering.net>
46459 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46460 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46462 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46464 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46465 no longer needs it. Instead, check that regoff_t is as least
46466 as wide as ptrdiff_t.
46468 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46469 so that our regex.h stays compatible with the installed regex.
46470 This is helpful for installers who configure --without-included-regex.
46471 Problem reported by Emanuele Giaquinta.
46473 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46475 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46476 Typedef to long int, not to off_, as POSIX will likely change
46479 2006-03-15 Eric Blake <ebb9@byu.net>
46481 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46483 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
46485 * lib/argp-help.c (validate_uparams): Fix typo
46486 * lib/argp-parse.c (argp_default_options): Consistently begin help
46487 messages with a lowercase letter.
46489 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
46491 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
46492 overrun buffers and shouldn't be used (much as gets shouldn't be
46494 * lib/time_r.c (asctime_r, ctime_r): Likewise.
46496 2006-03-08 Simon Josefsson <jas@extundo.com>
46498 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46499 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46501 2006-03-08 Simon Josefsson <jas@extundo.com>
46503 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46504 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46506 2006-03-08 Simon Josefsson <jas@extundo.com>
46508 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46509 signal that configure disabled the device.
46511 2006-03-08 Simon Josefsson <jas@extundo.com>
46513 * build-aux/maint.mk: Fix refresh-po, to handle no translated
46516 2006-03-07 Simon Josefsson <jas@extundo.com>
46518 * modules/getopt (Depends-on): Add unistd.
46520 * modules/unistd: New file.
46522 2006-03-07 Simon Josefsson <jas@extundo.com>
46524 * modules/gc-random: New file.
46526 2006-03-07 Simon Josefsson <jas@extundo.com>
46528 * m4/unistd_h.m4: New file.
46530 2006-03-07 Simon Josefsson <jas@extundo.com>
46532 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46533 test to be side-effect free by storing the result in the cache
46534 variable gl_cv_lib_readline, and moving the assignment of
46535 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46536 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46538 2006-03-07 Simon Josefsson <jas@extundo.com>
46540 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
46541 error on missing devices (the functions will return an error).
46543 * m4/gc.m4: Move random stuff to gc-random.m4
46545 2006-03-07 Simon Josefsson <jas@extundo.com>
46547 * lib/unistd_.h: New file.
46549 2006-03-07 Simon Josefsson <jas@extundo.com>
46551 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46553 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46555 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46556 Problem reported by Juan Manuel Guerrero.
46558 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46560 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46562 * lib/getlogin_r.c: Likewise.
46563 * lib/getlogin_r.h: Likewise.
46564 * lib/glob.c: Likewise.
46565 * lib/pagealign_alloc.c: Likewise.
46566 * lib/unistd_.h: Remove; no longer needed.
46568 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46570 * MODULES.html.sh (Support for systems lacking POSIX:2001):
46572 * modules/c-stack (Depends-on): Add unistd.
46573 * modules/getlogin_r: Likewise.
46574 * modules/glob: Likewise.
46575 * modules/pagealign_alloc: Likewise.
46576 * modules/unistd (Files): Remove lib/unistd_.h.
46577 (EXTRA_DIST): Remove.
46578 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46580 (MOSTLYCLEANFILES): Remove unistd.h-t.
46582 2006-03-03 Simon Josefsson <jas@extundo.com>
46584 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46586 2006-03-03 Simon Josefsson <jas@extundo.com>
46588 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46591 2006-03-03 Simon Josefsson <jas@extundo.com>
46593 * build-aux/maint.mk: Add indent target.
46595 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46597 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46598 our replacement poll.h in any case, to avoid a differing
46599 declaration from a system header. Seen on AIX.
46601 2006-03-01 Simon Josefsson <jas@extundo.com>
46603 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46606 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46608 * modules/gettime (Depends-on): Add extensions module.
46609 * modules/nanosleep (Depends-on): Likewise.
46610 * modules/settime (Depends-on): Likewise.
46612 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46614 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46615 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46617 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46618 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46620 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46621 not "==". Reported by Ralf Wildenhues.
46623 2006-03-01 Karl Berry <karl@gnu.org>
46625 * doc/Copyright/request-*: new files, synced from gnuorg.
46627 2006-03-01 Karl Berry <karl@gnu.org>
46629 * config/srclist.txt (Copyright/*): new entries.
46631 2006-02-28 Simon Josefsson <jas@extundo.com>
46633 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46635 2006-02-27 Simon Josefsson <jas@extundo.com>
46637 * lib/base64.h: Indent #define's. From Jim Meyering
46638 <jim@meyering.net>.
46640 2006-02-27 Jim Meyering <jim@meyering.net>
46642 Revert the change of 2006-02-24, so these files can continue
46643 to be sync'd from gettext.
46644 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46647 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
46649 * modules/intprops: New file.
46650 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46652 * modules/getloadavg (Files): Remove lib/intprops.h.
46653 (Depends-on): Add intprops.
46654 * modules/human: Likewise.
46655 * modules/inttostr: Likewise.
46656 * modules/openat: Likewise.
46657 * modules/sig2str: Likewise.
46658 * modules/userspec: Likewise.
46659 * modules/utimecmp: Likewise.
46660 * modules/xnanosleep: Likewise.
46661 * modules/xstrtol: Likewise.
46663 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
46665 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46666 * modules/lock-tests (TESTS): Use $(EXEEXT).
46667 * modules/tls-tests: Likewise.
46668 * modules/argp-tests: Likewise.
46669 (check_PROGRAMS): New var, replacing...
46670 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46672 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46674 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46677 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
46679 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46681 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46683 Sync from coreutils.
46684 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46687 2006-02-22 Jim Meyering <jim@meyering.net>
46689 Sync from coreutils.
46690 * m4/chdir-safer.m4: New file.
46692 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
46694 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46695 AT_FDCWD exceeds INT_MAX.
46696 * lib/openat.h (AT_FDCWD): Likewise.
46698 2006-02-17 Eric Blake <address@hidden>
46700 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46702 2006-02-16 Simon Josefsson <jas@extundo.com>
46704 * modules/getaddrinfo (Depends-on): Add sys_socket.
46706 2006-02-15 Simon Josefsson <jas@extundo.com>
46708 * build-aux/maint.mk: Add dsyntax-check rule.
46710 2006-02-15 Eric Blake <ebb9@byu.net>
46712 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46713 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46714 'present but cannot compile' warnings on cygwin.
46715 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
46716 use ws2tcpip.h if sys/socket.h works.
46717 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46718 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46720 2006-02-14 Simon Josefsson <jas@extundo.com>
46722 * modules/maintainer-makefile (Files): Rename.
46724 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46725 and (the local) Makefile.cfg to maint-cfg.mk.
46727 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46730 * modules/maintainer-makefile: New module.
46732 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46733 severaly stripped to make it possible to build it up from scratch
46734 with reliable tests.
46736 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46737 fixes to permit overriding the default actions when configure and
46738 makefile are not available.
46740 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
46742 Sync from coreutils.
46743 * modules/lstat (Depends-on): Don't depend on xalloc.
46744 (License): Change from GPL to LGPL, since this is now simply a
46745 replacement for a libc function.
46747 2006-02-14 Jim Meyering <jim@meyering.net>
46749 Sync from coreutils.
46751 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46752 failure on deficient systems, and simplify gnulib lgpl dependencies.
46753 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46754 xmalloc/lstat combination. Based on a patch from Bruno Haible.
46756 * lib/xalloc-die.c: Remove unused definition of N_.
46758 2006-02-14 Jim Meyering <jim@meyering.net>
46760 Sync from coreutils.
46761 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46762 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46763 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46764 double-quote uses of that variable, to accommodate the rare case in
46765 which getmntent is available in none of the libraries checked. This
46766 happens at least on FreeBSD 5.0.
46768 2006-02-13 Simon Josefsson <jas@extundo.com>
46770 * gnulib-tool (Usage): Fix --import, from
46771 karl@freefriends.org (Karl Berry).
46773 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46775 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46777 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46779 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46780 "autoupdate" on 2005-12-12.
46782 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46784 * modules/closeout (Depends-on): Remove atexit.
46786 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46788 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46789 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46791 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46793 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46794 __EXTENSIONS__ if this causes compilation to fail. Problem
46795 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46796 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46798 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46800 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46801 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46802 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46805 2006-01-26 Simon Josefsson <jas@extundo.com>
46807 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46808 prototype is visible on mingw32.
46810 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46813 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46816 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46818 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46819 attempt to open for write; this always fails, at least on POSIX
46820 hosts. This reinstates the 2006-01-09 change, which was
46821 inadvertently removed.
46823 2006-01-26 Bruno Haible <bruno@clisp.org>
46825 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46826 Reported by Paul Eggert.
46828 2006-01-26 Bruno Haible <bruno@clisp.org>
46829 Paul Eggert <eggert@cs.ucla.edu>
46831 * lib/stdbool_.h (_Bool)
46832 [(! (defined __cplusplus || defined __BEOS__)
46833 && !defined __GNUC__
46834 && !(defined __HP_cc || defined __xlc__
46835 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46836 || defined __sgi))]:
46837 #define to signed char in these cases too; this simplifies
46838 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46839 etc., separately) and makes it more conservative.
46841 2006-01-25 Simon Josefsson <jas@extundo.com>
46843 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46844 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
46845 ws2tcpip.h with WINVER=0x0501. All for mingw32.
46847 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
46849 * lib/argp-namefrob.h: Bugfix. Remove stray #
46851 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
46853 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46854 so that we test the test.
46855 Check for yet another HP-UX cc bug involving *bool |= bool.
46857 2006-01-25 Karl Berry <karl@gnu.org>
46859 * config/srclist.txt (vasnprintf.c): sync lost.
46861 2006-01-25 Jim Meyering <jim@meyering.net>
46863 Sync from the stable (b5) branch of coreutils:
46865 * lib/fts.c (fts_children): Don't let close() clobber errno from
46868 * lib/fts.c (fts_stat): When following a symlink-to-directory,
46869 don't necessarily interpret stat-fails+lstat-succeeds as indicating
46870 a dangling symlink. That can also happen at least for ELOOP.
46871 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46872 FYI, this bug predates the inclusion of fts.c in coreutils.
46874 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46875 in their own block, so pre-c99 compilers don't object.
46877 Avoid the double-free (first in fts_read, second in fts_close) that
46878 would occur when an `active' directory is made inaccessible (e.g.,
46879 via chmod a-x) during a traversal.
46880 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46881 before returning. Reproduce this failure by
46882 mkdir -p a/b; cd a; chmod a-x . b
46883 Reported by Stavros Passas.
46885 2006-01-25 Jim Meyering <jim@meyering.net>
46887 * lib/fileblocks.c: Remove more useless parentheses.
46888 * lib/readutmp.h: Likewise.
46890 2006-01-25 Bruno Haible <bruno@clisp.org>
46892 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46894 Reported by Paul Eggert.
46896 2006-01-25 Bruno Haible <bruno@clisp.org>
46898 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46899 rid of a trap command. For Solaris sh.
46900 Reported by Mark D. Baushke <mdb@gnu.org>.
46902 2006-01-24 Simon Josefsson <jas@extundo.com>
46904 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46907 2006-01-24 Karl Berry <karl@gnu.org>
46909 * config/srclist.txt (argp-namefrob.h): sync lost.
46911 2006-01-24 Jim Meyering <jim@meyering.net>
46913 * modules/openat (Files): Add lib/intprops.h.
46914 From Mark D. Baushke.
46916 2006-01-24 Jim Meyering <jim@meyering.net>
46918 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46919 Reported by Mark D. Baushke.
46921 2006-01-24 Jim Meyering <jim@meyering.net>
46923 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46925 2006-01-24 Bruno Haible <bruno@clisp.org>
46927 * modules/strnlen (Maintainer): Change from glibc to all.
46929 2006-01-24 Bruno Haible <bruno@clisp.org>
46931 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46932 Patch by Paul Eggert.
46934 2006-01-24 Bruno Haible <bruno@clisp.org>
46936 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46938 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
46941 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46942 'signed char' to avoid problems with the built-in _Bool type.
46943 Reported by Paul Eggert on 2005-11-26.
46945 2006-01-24 Bruno Haible <bruno@clisp.org>
46947 * gnulib-tool (func_import): Avoid constructing complicated sed
46948 expressions inside backquote.
46949 Report and solution by Mark D. Baushke <mdb@gnu.org>.
46951 2006-01-23 Ulrich Drepper <drepper@redhat.com>
46953 These changes imported from libc.
46954 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46955 test and two separate function calls.
46956 * lib/strndup.c (__strndup): Add libc_hidden_def.
46958 2006-01-23 Simon Josefsson <jas@extundo.com>
46960 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46961 Remove the test_*_SOURCES variable: automake infers it by default.
46962 * modules/tls-tests: Likewise.
46964 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46966 Work around porting bugs reported by Dieter in
46967 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46968 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46969 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46970 Include "getopt.h" first, to check interface.
46971 (getenv): Declare only if defined HAVE_DECL_GETENV &&
46973 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46974 (__strndup): Revert to K&R-style function dfns, the glibc style.
46975 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46976 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46977 Include strnlen.h first, to get prototype properly.
46978 (strnlen): Renamed from __strnlen.
46981 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46983 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46985 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46987 * config/srclist.txt: Adjust to reflect glibc reorganization.
46988 This affects only comments.
46990 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46992 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46993 Reported by Bruce Korb <bkorb@gnu.org>.
46995 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
46997 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46998 to pacify gcc -Wswitch-default.
47000 2006-01-22 Bruno Haible <bruno@clisp.org>
47002 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47003 temporary buffer for sprintf, take into account the precision also
47004 for 'd', 'i', 'u', 'o', 'x', 'X'.
47006 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47008 * modules/argp-tests: New module
47009 * tests/test-argp.c: New file
47010 * tests/test-argp-2.sh: New file
47012 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47014 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47015 (__argp_base_name): Removed
47016 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47018 (__argp_base_name): Provide macro definition or extern declaration
47019 depending on the configuration
47021 2006-01-20 Simon Josefsson <jas@extundo.com>
47023 * modules/inet_ntop (Depends-on): Depend on sys_socket.
47025 2006-01-20 Simon Josefsson <jas@extundo.com>
47027 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47029 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
47031 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47032 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47033 Suggested by Bruno Haible.
47035 2006-01-20 Karl Berry <karl@gnu.org>
47037 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47038 until changes propagate, I guess.
47040 2006-01-19 Simon Josefsson <jas@extundo.com>
47042 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47044 2006-01-19 Simon Josefsson <jas@extundo.com>
47046 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47048 2006-01-19 Simon Josefsson <jas@extundo.com>
47050 * gnulib-tool: Set check_PROGRAMS.
47052 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47053 modules/des-tests, modules/gc-arcfour-tests,
47054 modules/gc-arctwo-tests, modules/gc-des-tests,
47055 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47056 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47057 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47058 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47059 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47060 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47061 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47064 2006-01-18 Simon Josefsson <jas@extundo.com>
47066 * modules/socklen (Depends-on): Depend on sys_socket.
47068 2006-01-18 Simon Josefsson <jas@extundo.com>
47070 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47071 modules/des-tests, modules/gc-arcfour-tests,
47072 modules/gc-arctwo-tests, modules/gc-des-tests,
47073 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47074 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47075 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47076 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47077 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47078 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47079 $(EXEEXT) to automake TESTS variable, for mingw32.
47081 2006-01-17 Simon Josefsson <jas@extundo.com>
47083 * modules/socklen (Include): Need sys/socket.h.
47085 2006-01-17 Bruno Haible <bruno@clisp.org>
47087 * modules/ssize_t (Include): Add <sys/types.h>.
47089 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
47091 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47092 it's not portable and it doesn't work with cross-compiles.
47093 Problem reported by Bruno Haible. Fix missing-$ typo in
47094 'test "gl_cv_ignore_unused_libraries" ...' that prevented
47095 -zignore from being used with Sun's C compiler.
47097 2006-01-12 Simon Josefsson <jas@extundo.com>
47099 * lib/base64.c: Fix warning, reported by Bruno Haible
47100 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47102 2006-01-12 Bruno Haible <bruno@clisp.org>
47104 * modules/ldd: New file.
47105 * build-aux/ldd.sh.in: New file.
47106 * MODULES.html.sh (Support for building libraries and executables): Add
47109 2006-01-12 Bruno Haible <bruno@clisp.org>
47111 * m4/ldd.m4: New file.
47113 2006-01-12 Bruno Haible <bruno@clisp.org>
47115 * gnulib-tool (func_import, func_create_testdir): Don't go into an
47116 endless loop while replacing $auxdir with build-aux.
47118 2006-01-11 Simon Josefsson <jas@extundo.com>
47120 * lib/stdint_.h (SIZE_MAX): Add missing (.
47122 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
47124 Sync from coreutils.
47125 * lib/md5.c: Fix commentary typos.
47126 (alignof, UNALIGNED_P): No need for a GCC-specific version.
47127 * lib/md5.h (__attribute__): Remove; unused.
47128 * lib/sha1.c: Fix commentary to match md5 better.
47129 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47130 so that we don't need to worry about alignment. All uses changed.
47131 This merges the 2005-10-28 md5 change into sha1.
47133 2006-01-11 Jim Meyering <jim@meyering.net>
47135 Sync from coreutils.
47136 * lib/md5.c (OP): Fix spacing.
47138 2006-01-11 Bruno Haible <bruno@clisp.org>
47140 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47141 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47142 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47144 2006-01-11 Bruno Haible <bruno@clisp.org>
47146 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47147 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47148 the "early" section as well.
47150 2006-01-11 Bruno Haible <bruno@clisp.org>
47152 Avoid "ar: no archive members specified" error on MacOS X.
47153 * gnulib-tool (func_modules_add_dummy): New function.
47154 (func_import, func_create_testdir): Invoke it.
47156 2006-01-11 Bruno Haible <bruno@clisp.org>
47158 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47159 with $auxdir in AC_CONFIG_FILES statements.
47161 2006-01-11 Bruno Haible <bruno@clisp.org>
47163 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47164 Initialize also noinst_HEADERS to empty.
47166 2006-01-11 Bruno Haible <bruno@clisp.org>
47168 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47170 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47173 2006-01-11 Bruno Haible <bruno@clisp.org>
47175 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47176 overridable by the user.
47177 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47179 2006-01-10 Simon Josefsson <jas@extundo.com>
47181 * modules/sys_socket: New file.
47183 2006-01-10 Simon Josefsson <jas@extundo.com>
47185 * m4/sys_socket_h.m4: New file.
47187 2006-01-10 Simon Josefsson <jas@extundo.com>
47189 * lib/socket_.h: New file.
47191 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47193 * modules/readutmp (Maintainer): Add myself.
47195 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47197 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47198 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
47199 People who are still concerned with buggy memcmp implementations
47200 can invoke gl_FUNC_MEMCMP themselves.
47202 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47204 * lib/regex_internal.h (BITSET_WORD_BITS):
47205 Work around a bug in 64-bit PGC (before version 6.1-2), where the
47206 preprocessor mishandles large unsigned values as if they were signed.
47207 Problem reported by Claudio Fontana in
47208 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47210 2006-01-10 Jim Meyering <jim@meyering.net>
47212 Avoid the double-free (first in fts_read, second in fts_close) that
47213 would occur when an `active' directory is made inaccessible (e.g.,
47214 via chmod a-x) during a traversal.
47215 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47216 before returning. Reproduce this failure by
47217 mkdir -p a/b; cd a; chmod a-x . b
47218 Reported by Stavros Passas.
47220 Sync from coreutils.
47221 * lib/sha1.c: Tweak grammar in a comment.
47223 2006-01-10 Jim Meyering <jim@meyering.net>
47225 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47226 Patch by Joerg Sonnenberger.
47228 2006-01-10 Bruno Haible <bruno@clisp.org>
47230 * modules/readutmp: Depend on module free.
47231 * modules/strtok_r: Depend on module restrict.
47233 2006-01-10 Bruno Haible <bruno@clisp.org>
47235 * modules/gettext (configure.ac): Add an invocation of
47236 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47238 2006-01-10 Bruno Haible <bruno@clisp.org>
47240 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47241 Reported by Werner Lemberg <wl@gnu.org>.
47243 2006-01-10 Bruno Haible <bruno@clisp.org>
47245 * lib/localcharset.c: Update from GNU gettext.
47247 2006-01-10 Bruno Haible <bruno@clisp.org>
47249 * lib/argp.h (__const): Remove macro. Use const instead.
47250 * lib/argp-fmtstream.h (__const): Likewise.
47251 * lib/glob_.h (__const): Remove macro.
47252 * lib/glob-libc.h: Use const instead of __const.
47254 2006-01-10 Bruno Haible <bruno@clisp.org>
47256 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47258 Needed to avoid an automake error regarding the 'gettext' module.
47260 2006-01-09 Simon Josefsson <jas@extundo.com>
47262 * modules/inet_ntop (Depends-on): Add restrict.
47264 2006-01-09 Simon Josefsson <jas@extundo.com>
47266 * modules/gc-rijndael-tests (License): Put under LGPL.
47268 * modules/gc-des-tests (License): Likewise.
47270 * modules/gc-arcfour-tests (License): Likewise.
47272 * modules/gc-arctwo-tests (License): Likewise.
47274 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47276 * modules/gc-hmac-sha1-tests (Files): Likewise.
47278 * modules/gc-hmac-md5-tests (License): Likewise.
47280 * modules/gc-sha1-tests (License): Likewise.
47282 * modules/gc-md5-tests (License): Likewise.
47284 * modules/gc-md4-tests (License): Likewise.
47286 * modules/gc-md2-tests (License): Likewise.
47288 * modules/gc-tests (License): Likewise.
47290 * modules/des-tests (License): Likewise.
47292 * modules/md4-tests (License): Likewise.
47294 * modules/md2-tests (License): Likewise.
47296 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47298 Sync from coreutils:
47300 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47301 * modules/lib-ignore: New file.
47302 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47303 chdir-safer.m4, lchmod.m4.
47304 * modules/openat: Add mkdirat.c, openat-priv.h.
47306 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47308 Sync from coreutils.
47309 * m4/lib-ignore.m4: New file.
47310 * m4/lchmod.m4: New file.
47312 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47314 Sync from coreutils.
47315 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47316 for write access: POSIX says that must fail.
47317 * lib/fts.c (diropen): Likewise.
47318 * lib/save-cwd.c (save_cwd): Likewise.
47319 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47320 well, for minor improvements on hosts that lack O_DIRECTORY.
47321 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47322 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47323 Fall back on chown if open failed with EACCES.
47325 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47326 Report an error at compile-time if only a 1-second nominal clock
47327 resolution is found.
47329 * lib/lchmod.h: New file.
47330 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47331 (make_dir_parents): Use lchown rather than chown, and
47332 lchmod rather than chmod.
47334 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47335 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47336 "proc" reported by n0dalus.
47338 * lib/mountlist.c: Include <limits.h>.
47339 (dev_from_mount_options)
47340 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47341 New function. It no longer assumes "dev=" has the System V meaning
47342 on Linux (since it doesn't). It also parses "dev=" more carefully.
47343 (read_file_system_list)
47344 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47345 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47348 * lib/posixtm.h (PDS_PRE_2000): New macro.
47349 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47350 allow_century. All usages changed. Reject dates outside the range
47351 1969-1999 if PDS_PRE_2000 is used.
47353 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47355 Sync from coreutils.
47356 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47357 (Time of day items): Mention the possibility of leap seconds.
47358 Problem reported by Dr. David Alan Gilbert.
47360 2006-01-09 Jim Meyering <jim@meyering.net>
47362 Sync from coreutils.
47364 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47366 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47368 * lib/modechange.c (mode_compile): Reject an invalid mode string
47369 that starts with an octal digit. From Andreas Gruenbacher.
47371 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47372 and dup to open_safer and dup_safer, respectively.
47373 (openat_permissive): Fix typo in comment.
47375 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47376 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47377 (_): Remove; no longer needed.
47378 (openat): Renamed from rpl_openat; no need for rpl_openat
47379 since openat.h renames openat for us.
47380 Replace most of the body with a call to openat_permissive,
47381 to avoid duplicate code.
47382 Port to (probably hypothetical) environments were mode_t is
47384 (openat_permissive): Require mode arg, so that we can check
47385 types better. Put it just after flags. Change cwd failure
47386 indicator from pointer-to-bool to pointer-to-errno-value.
47387 All callers changed.
47388 Invoke openat_save_fail and/or openat_restore_fail if
47389 cwd_errno is null, so that openat can call us.
47390 (openat_permissive, fdopendir, fstatat, unlinkat):
47391 Simplify errno handling to avoid some duplicate code,
47392 as it's OK to set errno on success.
47393 * lib/openat.h: Revamp code so that function macros depend on
47394 __OPENAT_PREFIX only, not also on AT_FDCWD.
47395 (openat_ro): Remove. Caller changed to use openat_permissive.
47396 (openat_permissive): Now a macro, if not a function.
47397 (openat_restore_fail, openat_save_fail): Now always functions,
47398 since mkdirat needs them even if __OPENAT_PREFIX is defined.
47400 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47402 * lib/mkdirat.c: Include openat-priv.h.
47403 Remove definitions of macros defined therein.
47404 * lib/openat.c: Likewise.
47406 * lib/mkdirat.c (mkdirat): New file and function.
47407 * lib/openat.h (mkdirat): Declare.
47409 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47411 * lib/openat.h (openat_permissive): Declare.
47412 (openat_ro): Define.
47414 * lib/openat.c (EXPECTED_ERRNO): New macro.
47415 (openat_permissive): New function -- used in remove.c rewrite.
47416 (all functions): Set errno just before returning, only if there
47417 was an actual failure.
47418 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47420 Emulate openat-family functions using Linux's procfs, if possible.
47421 Idea and some code based on Ulrich Drepper's glibc changes.
47423 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47424 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47425 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47426 before falling back on save_cwd and restore_cwd.
47427 (fdopendir, fstatat, unlinkat): Likewise.
47429 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47430 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47432 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47433 as second argument to va_arg. Otherwise, some versions of gcc
47434 warn that `if this code is reached, the program will abort'.
47436 2006-01-09 Jim Meyering <jim@meyering.net>
47438 Sync from coreutils.
47439 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47440 Require openat-priv.h.
47442 2006-01-09 Bruno Haible <bruno@clisp.org>
47444 * modules/strnlen (Include): Use strnlen.h.
47446 2006-01-09 Bruno Haible <bruno@clisp.org>
47448 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47450 2006-01-09 Bruno Haible <bruno@clisp.org>
47452 * lib/sysexit_.h (EX_OK): New macro.
47453 Suggested by Martin Lambers <marlam@marlam.de>.
47455 2006-01-09 Bruno Haible <bruno@clisp.org>
47457 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47458 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47460 2006-01-09 Bruno Haible <bruno@clisp.org>
47462 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47465 2006-01-09 Bruno Haible <bruno@clisp.org>
47467 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47468 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47469 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47470 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47472 2006-01-09 Bruno Haible <bruno@clisp.org>
47474 * build-aux/javacomp.sh.in: New file, moved from lib/.
47475 * modules/javacomp-script (Files): Update.
47476 (configure.ac): Add AC_CONFIG_FILES invocation.
47477 (EXTRA_DIST): Remove variable.
47479 * build-aux/javaexec.sh.in: New file, moved from lib/.
47480 * modules/javaexec (Files): Update.
47481 (configure.ac): Add AC_CONFIG_FILES invocation.
47482 (EXTRA_DIST): Remove javaexec.sh.in.
47484 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47485 * modules/csharpcomp-script (Files): Update.
47486 (configure.ac): Add AC_CONFIG_FILES invocation.
47487 (EXTRA_DIST): Remove variable.
47489 * build-aux/csharpexec.sh.in: New file, moved from lib/.
47490 * modules/csharpexec (Files): Update.
47491 (configure.ac): Add AC_CONFIG_FILES invocation.
47492 (EXTRA_DIST): Remove csharpexec.sh.in.
47494 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47496 Sync from coreutils.
47498 Add POSIX ACL support
47499 * lib/acl.h (copy_acl, set_acl): Add declarations.
47500 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47501 systems other than Linux.
47502 (chmod_or_fchmod): New function: use fchmod when possible,
47503 and chmod otherwise.
47504 (file_has_acl): Add a POSIX ACL implementation, with a
47505 Linux-specific subcase.
47506 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47507 S_ISVTX from one file to another. Fall back to fchmod/chmod when
47508 acls are unsupported.
47509 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47510 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
47513 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47515 Sync from coreutils.
47516 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47518 2006-01-07 Bruno Haible <bruno@clisp.org>
47520 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47523 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47525 * lib/strftime.c (tzname): Don't declare if it is already #defined.
47526 Problem reported for Mingw by Mark Junker.
47528 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47530 * README: Gnulib normally doesn't generate a tarball.
47532 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
47534 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47535 long int, not int, for nanosecond counts, so that people who are
47536 used to POSIX struct timespec won't be surprised. Reported by Jim
47539 2005-12-28 Bruno Haible <bruno@clisp.org>
47541 * build-aux/config.rpath: Update from GNU gettext.
47543 2005-12-16 Jim Meyering <jim@meyering.net>
47545 * modules/fprintftime: New module.
47546 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47548 2005-12-16 Jim Meyering <jim@meyering.net>
47550 * m4/fprintftime.m4: New file.
47552 2005-12-16 Jim Meyering <jim@meyering.net>
47554 * lib/fprintftime.c, lib/fprintftime.h: New files.
47556 2005-12-15 Simon Josefsson <jas@extundo.com>
47558 * modules/socklen (configure.ac): Fix M4 macro name, to align with
47561 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47563 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47564 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47566 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47568 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47569 * lib/argp-help.c (fill_in_uparams): Check if the constructed
47570 struct uparams is valid. Fall back to the default values if it is
47573 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47575 * modules/argp (Files): Add argp-pin.c
47576 (Depends-on): dirname
47577 (lib_SOURCES): Add argp-pin.c
47579 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47581 * m4/argp.m4: Check if program_invocation_name and
47582 program_invocation_short_name are declared and define appropriate
47583 macros if they are not.
47585 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47587 * lib/argp-help.c (__argp_base_name): New function
47588 (__argp_short_program_name): Rewrite using __argp_base_name
47589 * lib/argp-namefrob.h: Define program_invocation_name and
47590 program_invocation_short_name if requested
47591 (__argp_base_name): Add prototype
47592 * lib/argp-parse.c (argp_def): Use gettext wrappers
47593 (argp_default_parser): Use __argp_base_name
47594 * lib/argp-pin.c: New file. Defines program_invocation_name and
47595 program_invocation_short_name on systems that lack them.
47597 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47599 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47600 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47601 porting problem reported by Georg Schwarz in
47602 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47604 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47606 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47607 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47608 porting problem reported by Georg Schwarz in
47609 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47611 2005-12-05 Bruno Haible <bruno@clisp.org>
47613 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47614 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47615 Reported by Mark Junker <mjscod@gmx.de>.
47617 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
47619 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47620 Use implementation from Albert Chin, with some
47621 comments/corrections by Stepan Kasal and myself.
47623 2005-12-02 Bruno Haible <bruno@clisp.org>
47625 * gnulib-tool (func_import): Accept GPLed build tool modules when
47627 * modules/csharpcomp-script: New file.
47628 * modules/csharpcomp: Depend on it.
47629 * modules/javacomp-script: New file.
47630 * modules/javacomp: Depend on it.
47631 Suggested by Simon Josefsson.
47633 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
47635 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47636 statement, to work around an HP-UX 10.20 compiler bug reported by
47639 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47641 * modules/savedir (Depends-on): Add openat.
47643 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47645 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47646 (uintmax_t) [defined uintmax_t]: Do not declare.
47647 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47648 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47649 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
47650 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47651 sake of portability to weird hosts that C allows (though we don't
47652 know of any practical examples).
47654 * lib/savedir.h (fdsavedir): New decl.
47655 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47656 contains most of the former guts of savedir.
47657 (savedir): Use savedirstream.
47658 Include "openat.h".
47660 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
47662 * modules/obstack (Files): Add m4/ulonglong.m4.
47663 Problem reported by Davide Angelocola.
47665 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
47667 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47668 coreutils no longer futzes with rounding modes.
47670 2005-11-14 Jim Meyering <jim@meyering.net>
47672 * lib/mkstemp-safer.c: Include <config.h>, required for possible
47673 replacement of mkstemp.
47675 2005-11-10 Simon Josefsson <jas@extundo.com>
47677 * lib/readline.c: Remove EOL.
47679 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47681 * modules/gethrxtime (Depends-on): Add gettime.
47683 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47685 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47686 or gettimeofday; no longer needed.
47688 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47690 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47692 (gethrxtime) [! (HAVE_NANOUPTIME
47693 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47694 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47695 our own approximation.
47697 2005-11-08 Eric Blake <ebb9@byu.net>
47699 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47701 2005-11-08 Eric Blake <ebb9@byu.net>
47703 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47705 2005-11-04 Bruno Haible <bruno@clisp.org>
47707 * gnulib-tool: Implement --update mode.
47709 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47711 Fix porting problem reported by Theodoros V. Kalamatianos.
47712 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47713 Don't assume that futimes failing means we must fail.
47715 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47717 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47718 variables to suggest the intended function of the PATH_MAX check.
47720 2005-10-30 Kean Johnston <jkj@sco.com>
47722 Trivial changes to support SCO systems.
47723 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47725 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47726 where __ptr is null when no I/O is pending.
47728 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
47730 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47731 leave errno alone. Problem reported by Dmitry V. Levin.
47733 2005-10-28 Simon Josefsson <jas@extundo.com>
47735 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47738 * tests/test-gc-md2.c, tests/test-md2.c: New files.
47740 * modules/md2, modules/md2-tests: New files.
47742 2005-10-28 Simon Josefsson <jas@extundo.com>
47744 * m4/inet_ntop.m4: More tests.
47746 * m4/gc-md2.m4, md2.m4: New file.
47748 2005-10-28 Simon Josefsson <jas@extundo.com>
47750 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47751 "restrict" keywords, as per POSIX. Protect the function
47752 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47753 Don't use K&R prototypes. Check the sprintf return values.
47754 Re-define EAFNOSUPPORT if not present. Indent.
47756 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47757 suggested by Bruno Haible <bruno@clisp.org>.
47759 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47761 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47763 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47766 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47768 * lib/md2.h, lib/md2.c: New files.
47770 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47772 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47773 errno alone. Problem reported by Frederic Jolliton.
47775 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47777 * modules/verify (License): Change from GPL to LGPL. This is a
47778 tiny module and there are apparently near-equivalents that are
47779 under the BSD license.
47781 2005-10-24 Simon Josefsson <jas@extundo.com>
47783 * modules/sha1: Relicense to LGPL.
47785 2005-10-24 Simon Josefsson <jas@extundo.com>
47787 * lib/md4.h: Shrink buffer size, now that we changed the type.
47789 2005-10-23 Simon Josefsson <jas@extundo.com>
47791 * gnulib-tool (func_import): Fix --tests-base.
47793 2005-10-22 Simon Josefsson <jas@extundo.com>
47795 * modules/arcfour (Depends-on): Need stdint.
47797 2005-10-22 Simon Josefsson <jas@extundo.com>
47799 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47800 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47802 2005-10-22 Simon Josefsson <jas@extundo.com>
47804 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47805 suggested by Bruno Haible <bruno@clisp.org>.
47807 2005-10-22 Simon Josefsson <jas@extundo.com>
47809 * lib/crc.h: Include stddef.h, for size_t.
47811 2005-10-22 Simon Josefsson <jas@extundo.com>
47813 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47814 arcfour_context struct (simplify test vector testing in GNU
47817 2005-10-21 Simon Josefsson <jas@extundo.com>
47819 * modules/des, modules/des-tests: New files.
47821 * modules/gc-des, modules/gc-des-tests: New files.
47823 * tests/test-des.c, tests/test-gc-des.c: New file.
47825 2005-10-21 Simon Josefsson <jas@extundo.com>
47827 * modules/arctwo, modules/arctwo-tests: New files.
47829 * tests/test-arctwo.c: New file.
47831 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47833 * tests/test-gc-arctwo.c: New file.
47835 2005-10-21 Simon Josefsson <jas@extundo.com>
47837 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47838 Bruno Haible <bruno@clisp.org>.
47840 * m4/gc-des.m4: New file.
47842 2005-10-21 Simon Josefsson <jas@extundo.com>
47844 * m4/arctwo.m4: New file.
47846 * m4/gc-arctwo.m4: New file.
47848 2005-10-21 Simon Josefsson <jas@extundo.com>
47850 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47853 2005-10-21 Simon Josefsson <jas@extundo.com>
47855 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47858 * lib/hmac-sha1.c (hmac_sha1): Likewise.
47860 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47861 Bruno Haible <bruno@clisp.org>.
47863 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47866 2005-10-21 Simon Josefsson <jas@extundo.com>
47868 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47870 2005-10-21 Simon Josefsson <jas@extundo.com>
47872 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47874 2005-10-21 Simon Josefsson <jas@extundo.com>
47876 * lib/des.h, lib/des.c: New files.
47878 * lib/gc-gnulib.c: Support DES.c
47880 2005-10-21 Simon Josefsson <jas@extundo.com>
47882 * lib/arctwo.h, lib/arctwo.c: New files.
47884 * lib/gc-gnulib.c: Support ARCTWO.
47886 2005-10-21 Simon Josefsson <jas@extundo.com>
47888 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47889 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47891 2005-10-21 Simon Josefsson <jas@extundo.com>
47893 * gnulib-tool (func_import, func_create_testdir): Define automake
47894 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47895 Makefile.am snippet),
47896 suggested by Bruno Haible <bruno@clisp.org>.
47898 * modules/gc (Makefile.am): Use it.
47900 2005-10-21 Bruno Haible <bruno@clisp.org>
47902 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47905 2005-10-19 Simon Josefsson <jas@extundo.com>
47907 * tests/test-gc-rijndael.c: New file.
47909 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47911 2005-10-19 Simon Josefsson <jas@extundo.com>
47913 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47916 2005-10-19 Simon Josefsson <jas@extundo.com>
47918 * tests/test-gc-arcfour.c: New file.
47920 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47922 2005-10-19 Simon Josefsson <jas@extundo.com>
47924 * modules/gc-md4, modules/gc-md4-tests: New file.
47926 * tests/test-gc-md4.c: New file.
47928 2005-10-19 Simon Josefsson <jas@extundo.com>
47930 * m4/gc-md4.m4: New file.
47932 2005-10-19 Simon Josefsson <jas@extundo.com>
47934 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47935 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47938 2005-10-19 Simon Josefsson <jas@extundo.com>
47940 * m4/gc-arcfour.m4: New file.
47942 * m4/gc-rijndael.m4: New file.
47944 2005-10-19 Simon Josefsson <jas@extundo.com>
47946 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47948 2005-10-19 Simon Josefsson <jas@extundo.com>
47950 * lib/gc-gnulib.c: Support ARCFOUR.
47952 2005-10-19 Simon Josefsson <jas@extundo.com>
47954 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47957 * lib/gc.h: Add ECB enum type.
47959 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47961 2005-10-18 Simon Josefsson <jas@extundo.com>
47963 * tests/test-md5.c: New file.
47965 * modules/md5-tests: New file.
47967 2005-10-18 Simon Josefsson <jas@extundo.com>
47969 * tests/test-md4.c: New file.
47971 * modules/md4, modules/md4-tests: New files.
47973 2005-10-18 Simon Josefsson <jas@extundo.com>
47975 * m4/md4.m4: New file.
47977 2005-10-18 Simon Josefsson <jas@extundo.com>
47979 * lib/md4.h, lib/md4.c: New files, based on md5.?.
47981 2005-10-17 Stepan Kasal <kasal@ucw.cz>
47983 * gnulib-tool (func_create_testdir): Omit the second check whether
47984 BUILT_SOURCES in nonempty.
47986 2005-10-17 Simon Josefsson <jas@extundo.com>
47988 * tests/test-rijndael.c: New file.
47990 2005-10-17 Simon Josefsson <jas@extundo.com>
47992 * modules/sha1: Depend on stdint instead of md5.
47994 * modules/md5: Depend on stdint, remove uint32_t.
47996 2005-10-17 Simon Josefsson <jas@extundo.com>
47998 * modules/gc-sha1-tests: New file.
48000 * tests/test-gc-sha1.c: New file.
48002 2005-10-17 Simon Josefsson <jas@extundo.com>
48004 * m4/md5.m4: Remove call to uint32_t.m4.
48006 2005-10-17 Simon Josefsson <jas@extundo.com>
48008 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48010 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48013 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
48015 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
48017 2005-10-17 Simon Josefsson <jas@extundo.com>
48019 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48021 2005-10-17 Simon Josefsson <jas@extundo.com>
48023 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48025 2005-10-17 Simon Josefsson <jas@extundo.com>
48027 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48029 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48031 2005-10-17 Bruno Haible <bruno@clisp.org>
48033 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48034 that it can also be used in a test.
48036 2005-10-16 Bruno Haible <bruno@clisp.org>
48038 * gnulib-tool (func_emit_tests_Makefile_am): Also define
48039 TESTS_ENVIRONMENT, so that individual tests can augment it.
48041 * gnulib-tool (func_create_testdir): Use an intermediate target for
48042 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48043 macros, like $(ALLOCA_H), which cannot be passed through the command
48046 2005-10-15 Simon Josefsson <jas@extundo.com>
48048 * modules/rijndael-tests: New file.
48050 * modules/rijndael: New file.
48052 2005-10-15 Simon Josefsson <jas@extundo.com>
48054 * m4/rijndael.m4: New file.
48056 2005-10-15 Simon Josefsson <jas@extundo.com>
48058 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48060 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48062 2005-10-14 Simon Josefsson <jas@extundo.com>
48064 * tests/test-arcfour.c: New file.
48066 * modules/arcfour, modules/arcfour-tests: New files.
48068 2005-10-14 Simon Josefsson <jas@extundo.com>
48070 * m4/arcfour.m4: New file.
48072 2005-10-14 Simon Josefsson <jas@extundo.com>
48074 * lib/arcfour.h, lib/arcfour.c: New files.
48076 2005-10-14 Roland McGrath <roland@redhat.com>
48078 Import from libc. [BZ #1331]
48079 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48081 Reported by Matej Vela <vela@debian.org>.
48083 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48085 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48086 include <wchar.h>; no longer needed.
48088 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48090 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48092 2005-10-14 Jakub Jelinek <jakub@redhat.com>
48093 and Ulrich Drepper <drepper@redhat.com>
48096 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48097 instead of inline stream orientation test and two separate
48098 function calls. Pay no attention to USE_IN_LIBIO.
48100 2005-10-13 Simon Josefsson <jas@extundo.com>
48102 * modules/gc-hmac-md5-tests: New file.
48104 * tests/test-gc-hmac-sha1.c: New file.
48106 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48108 * modules/gc-hmac-md5-tests: New file.
48110 * tests/test-gc-md5.c: New file.
48112 * modules/gc-md5-tests: New file.
48114 2005-10-13 Simon Josefsson <jas@extundo.com>
48116 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48117 Move memory allocation outside of loop.
48119 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
48121 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48122 intermediate directory is in a read-only file system. Problem
48123 reported by Eric Blake.
48125 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
48127 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48129 2005-10-12 Simon Josefsson <jas@extundo.com>
48131 * tests/test-hmac-sha1.c: New file.
48133 * modules/hmac-sha1-tests: New file.
48135 * modules/hmac-sha1: New file.
48137 2005-10-12 Simon Josefsson <jas@extundo.com>
48139 * modules/gc-sha1: New file.
48141 2005-10-12 Simon Josefsson <jas@extundo.com>
48143 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48145 * tests/test-gc-pbkdf2-sha1.c: New file.
48147 2005-10-12 Simon Josefsson <jas@extundo.com>
48149 * modules/gc-md5, modules/gc-hmac-md5: New files.
48151 * modules/gc (Files): Remove md5, memxor and hmac files.
48153 2005-10-12 Simon Josefsson <jas@extundo.com>
48155 * m4/gc-pbkdf2-sha1.m4: New file.
48157 * m4/gc-hmac-sha1.m4: New file.
48159 * m4/gc-sha1: New file.
48161 * m4/hmac-sha1.m4: New file.
48163 2005-10-12 Simon Josefsson <jas@extundo.com>
48165 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48167 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48169 2005-10-12 Simon Josefsson <jas@extundo.com>
48171 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48172 suggested by Bruno Haible <bruno@clisp.org>.
48174 2005-10-12 Simon Josefsson <jas@extundo.com>
48176 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48178 2005-10-12 Simon Josefsson <jas@extundo.com>
48180 * lib/gc-pbkdf2-sha1.c: New file.
48182 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48184 2005-10-12 Simon Josefsson <jas@extundo.com>
48186 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48188 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48190 2005-10-12 Simon Josefsson <jas@extundo.com>
48192 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48193 GC_USE_HMAC_MD5, respectively.
48195 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48196 (gc_md5): Fix typo.
48198 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48200 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48202 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48204 2005-10-12 Bruno Haible <bruno@clisp.org>
48206 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48207 Reported by Stepan Kasal <kasal@ucw.cz>.
48209 2005-10-11 Simon Josefsson <jas@extundo.com>
48211 * tests/test-crc.c: New file.
48213 * modules/crc, modules/crc-tests: New files.
48215 2005-10-11 Simon Josefsson <jas@extundo.com>
48217 * m4/crc.m4: New file.
48219 2005-10-11 Simon Josefsson <jas@extundo.com>
48221 * lib/gc.h: Add gc_hash and gc_hash_buffer.
48223 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
48225 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48227 2005-10-11 Simon Josefsson <jas@extundo.com>
48229 * lib/crc.h, lib/crc.c: New files.
48231 * lib/gc.h (gc_hash_buffer): Add doc.
48233 2005-10-11 Bruno Haible <bruno@clisp.org>
48235 * modules/c-strcasestr: New file.
48236 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48238 2005-10-11 Bruno Haible <bruno@clisp.org>
48240 * modules/c-strcase: New file.
48241 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48243 2005-10-11 Bruno Haible <bruno@clisp.org>
48245 * lib/strcasecmp.c: Include limits.h.
48246 (strcasecmp): Avoid integer overflow on exotic platforms.
48247 * lib/strncasecmp.c: Include limits.h.
48248 (strncasecmp): Avoid integer overflow on exotic platforms.
48249 Reported by Paul Eggert.
48251 2005-10-11 Bruno Haible <bruno@clisp.org>
48253 * lib/c-strcasestr.h: New file, from GNU gettext.
48254 * lib/c-strcasestr.c: New file, from GNU gettext.
48256 2005-10-11 Bruno Haible <bruno@clisp.org>
48258 * lib/c-strcase.h: New file, from GNU gettext.
48259 * lib/c-strcasecmp.c: New file, from GNU gettext.
48260 * lib/c-strncasecmp.c: New file, from GNU gettext.
48262 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48264 * modules/mempcpy (License): GPL -> LGPL.
48265 * modules/strchrnul (License): Likewise.
48266 * modules/sysexits (License): Likewise.
48268 2005-10-08 Simon Josefsson <jas@extundo.com>
48270 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48272 2005-10-07 Simon Josefsson <jas@extundo.com>
48274 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48276 2005-10-06 Simon Josefsson <jas@extundo.com>
48278 * tests/test-hmac-md5.c: New file.
48280 * modules/hmac-md5-tests: New file.
48282 * modules/hmac-md5: New file.
48284 2005-10-06 Simon Josefsson <jas@extundo.com>
48286 * m4/hmac-md5.m4: New file.
48288 * m4/memxor.m4: Require gl_C_RESTRICT.
48290 2005-10-06 Simon Josefsson <jas@extundo.com>
48292 * lib/memxor.c (memxor): Avoid casts and warnings.
48294 2005-10-06 Simon Josefsson <jas@extundo.com>
48296 * lib/hmac-md5.c: New file.
48298 * lib/hmac.h: New file.
48300 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48302 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48303 promotes to int, not unsigned int, to catch the AIX 5.3
48306 2005-10-05 Simon Josefsson <jas@extundo.com>
48308 * modules/memxor: New file.
48310 * modules/iconv (Files): Move config.rpath to havelib, it is used
48313 * modules/havelib (Files): Add config.rpath.
48315 2005-10-05 Simon Josefsson <jas@extundo.com>
48317 * m4/memxor.m4: New file.
48319 2005-10-05 Simon Josefsson <jas@extundo.com>
48321 * lib/memxor.c (memxor): Fix compiler error.
48323 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48324 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48326 * lib/memxor.h, lib/memxor.c: New files.
48328 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48329 we assume all systems have it, suggested by Jim Meyering
48330 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48331 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48332 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48335 2005-10-05 Simon Josefsson <jas@extundo.com>
48337 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48339 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48341 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48342 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48343 needed, since the source code now assumes these .h files.
48345 2005-10-05 Derek Price <derek@ximbiot.com>
48347 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48349 2005-10-05 Bruno Haible <bruno@clisp.org>
48351 * modules/stdint (License): Change to LGPL.
48353 2005-10-04 Simon Josefsson <jas@extundo.com>
48355 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48356 D. Baushke" <mdb@gnu.org>.
48358 2005-10-04 Bruno Haible <bruno@clisp.org>
48360 * lib/verify.h (verify_true): Provide alternative definition for C++.
48362 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48364 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48365 (SSIZE_MAX): New macro, if not already defined.
48366 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48369 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48371 Sync from coreutils.
48372 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48373 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48374 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48375 ULLONG_MAX doesn't work with 2.7.2.1.
48377 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48379 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48382 * modules/exclude (Depends-on): Depend on verify.
48383 * modules/strtoimax (Depends-on): Likewise.
48384 * modules/utimecmp (Depends-on): Likewise.
48386 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48388 * lib/exclude.c: Include verify.h.
48389 (verify): Remove. All callers changed to use verify.h's version.
48390 * lib/strtoimax.c: Likewise.
48391 * lib/utimecmp.c: Likewis.e
48393 Sync from coreutils.
48394 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48395 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48396 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48397 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
48398 bother returning ENOSYS if settimeofday or stime fails; just let
48399 them return whatever errno they want to return.
48400 * lib/utimens.c: Include unistd.h, for dup2.
48401 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48402 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48404 2005-10-02 Jim Meyering <jim@meyering.net>
48406 Sync from coreutils.
48407 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48408 from glibc-2.2.5 that fails for read-only files.
48410 2005-10-02 Jim Meyering <jim@meyering.net>
48412 Sync from coreutils.
48413 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48414 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48415 `#if HAVE_CONFIG_H'.
48416 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48417 Remove AT_FDCWD test.
48418 Do not consume the fd unless successful.
48419 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48420 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48421 block, so that we don't even try to compile it if settimeofday is
48422 available. This works around a compilation failure on OSF1 V5.1,
48423 due to stime requiring a `long int*' while tv_sec is `int'.
48425 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48427 Sync from coreutils.
48428 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48429 against `yes', rather than just testing for nonempty.
48431 2005-10-01 Simon Josefsson <jas@extundo.com>
48433 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48436 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48437 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48438 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48439 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48440 Check if struct addrinfo is declared.
48442 2005-10-01 Simon Josefsson <jas@extundo.com>
48444 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48445 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48446 AI_* and EAI_* definitions. Protect function declarations.
48448 2005-10-01 Jim Meyering <jim@meyering.net>
48450 Sync from coreutils.
48452 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48453 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48454 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48455 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48456 in the inet and nsl libraries. Required on Solaris 5.7.
48458 2005-10-01 Jim Meyering <jim@meyering.net>
48460 Sync from coreutils.
48461 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48462 in the inet and nsl libraries. Required on Solaris 5.7.
48464 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
48466 * lib/getdelim.c (getdelim): Remove unused variables.
48468 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48470 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48471 so that the code works even with ancient cpp. Portability problem
48472 with GCC 2.7.2.1 reported by Thomas M.Ott.
48474 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48476 * modules/regex (Depends-on): Add strcase.
48478 * modules/gethostname (Licence): Change from GPL to LGPL, since
48479 gethostname.c is a trivial implementation of a standard library
48481 * modules/poll (License): Change from GPL to LGPL, since it's
48482 derived from LGPL code.
48484 2005-09-27 Jim Meyering <jim@meyering.net>
48486 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48489 * lib/intprops.h (signed_type_or_expr__): Define.
48490 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48491 for unsigned types.
48493 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
48495 * lib/verify.h (verify_expr): Remove, replacing with:
48496 (verify_true): New macro that returns true instead of void.
48497 (verify_type__): Remove.
48498 (verify): Use verify_true rather than verify_type__.
48500 2005-09-26 Bruno Haible <bruno@clisp.org>
48502 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48504 (lib_SOURCES): Remove mbchar.c.
48505 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48506 (Files): Add m4/mbrtowc.m4.
48507 * modules/mbiter: Likewise.
48508 * modules/mbuiter: Likewise.
48510 2005-09-26 Bruno Haible <bruno@clisp.org>
48512 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48513 compile mbchar.c if they are not both present.
48514 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48515 * m4/mbiter.m4 (gl_MBITER): Likewise.
48516 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48517 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48518 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48520 2005-09-25 Jim Meyering <jim@meyering.net>
48522 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48523 also uses socklen_t.
48525 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
48527 * lib/utimens.c (ENOSYS): Define if not already defined.
48528 (futimens): Support having a null PATH if the file descriptor
48531 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48533 (__attribute): Define to empty unless GCC 3.1 or later.
48534 This works around a core dump on OpenBSD 3.4, which has GCC
48535 2.95.3, which dumps core when given __attribute__(()). It also
48536 simplifies other tests, since we really don't want to bother with
48537 worrying about which ancient version of GCC supported what.
48538 Original problem reported by Yoann Vandoorselaere, with part of
48539 the fix suggested by Derek Price.
48541 2005-09-24 Jim Meyering <jim@meyering.net>
48543 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48544 so we can once again use a positive bitfield width of 1 -- now we
48545 don't have to explain why we were using a bitfield width of 2.
48547 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48549 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48550 and similarly for the other external symbols. Problem reported
48553 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48554 bug reported by Jim Meyering.
48556 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48557 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48558 not needed, since socklen is a prerequisite module.
48560 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48562 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48563 Problem reported by Eric Blake.
48564 (getaddrinfo): Initialize se so that it's not garbage.
48565 Redo internal storage allocation so that it doesn't make unportable
48566 assumptions about alignment.
48569 * lib/utimens.c (futimens): Use futimesat if available.
48570 Prefer it to futimes since it doesn't have the futimes bug.
48572 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48573 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48574 Instead, declare a function that returns a pointer to an array,
48575 and use verify_type__ to declare the size of the array.
48576 Problem and germ of a solution reported by Bruno Haible.
48577 (verify_type__): Use 2, not 1, for bitfield size, to avoid
48578 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
48580 2005-09-23 Jim Meyering <jim@meyering.net>
48582 Sync from coreutils.
48583 Correct build failure (socklen_t not defined) on at least
48584 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48585 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48587 2005-09-23 Jim Meyering <jim@meyering.net>
48589 * modules/getaddrinfo (Depends-on): Add socklen.
48591 2005-09-23 Bruno Haible <bruno@clisp.org>
48593 * tests/test-verify.c: New file.
48595 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48597 Sync from coreutils.
48599 * modules/argmatch (Depends-on): Add verify.
48600 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48602 * modules/save-cwd (Depends-on): Likewise.
48604 * modules/openat (Files): Add lib/openat-die.c.
48605 (Depends-on): Remove error, exitfail.
48608 * modules/verify: New file.
48609 * MODULES.html.sh (Diagnostics <assert.h>): New section,
48610 with "verify" module.
48612 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48614 Sync from coreutils.
48616 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48617 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48618 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48619 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48620 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48621 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48622 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48623 Don't bother checking for string.h, stdlib.h, unistd.h.
48624 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48625 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48627 * m4/jm-macros.m4 (gl_MACROS): Likewise.
48628 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48630 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48631 (gl_GETDATE): Use it.
48633 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48635 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48637 Sync from coreutils.
48639 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48641 * lib/argmatch.h: Include verify.h
48642 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48643 (ARGMATCH_ASSERT): Remove; unused.
48644 * lib/canonicalize.c: Assume STDC_HEADERS.
48645 * lib/exclude.c: Include "strcase.h".
48646 * lib/regex_internal.h [!defined _LIBC]: Likewise.
48647 * lib/getusershell.c: Include stdio--.h rather than stdio.h
48649 (getusershell): Call fopen, not fopen_safer.
48650 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48651 Do not include unistd-safer.h.
48652 (save_cwd): Don't call fd_safer; no longer needed
48653 now that we include fcntl--.h.
48655 * lib/getdate.y (relative_time): New type.
48656 (RELATIVE_TIME_0): New constant.
48657 (parser_control): Use relative_time instead of doing it ourselves.
48658 (%union): Add new relative_time rel member.
48659 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48661 (relunit, relunit_snumber): Now of type rel.
48662 (zone, rel, relunit, get_date): Adjust to above changes.
48664 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48665 Do not include unistd-safer.h.
48666 (getloadavg): Don't call fd_safer; no longer needed
48667 now that we include fcntl--.h.
48669 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48670 (make_dir_parents): Treat ENOSYS like EEXIST.
48672 Improve quality of diagnostics on restore_cwd failure.
48673 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
48674 (make_dir_parents): Last arg is now int * (for errno), not bool *.
48675 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48676 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48677 each time through the loop. Do not diagnose restore_cwd failure;
48678 that is the caller's job (and perhaps the caller does not care).
48680 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48681 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48682 If the file already exists but is not a directory, don't bother
48683 to try to make its parents.
48684 Close potential file descriptor leak if we can't chdir("/") (!).
48685 Don't always return true if chdir($PWD) fails; return true only
48686 if the requested action was done successfully (except for the
48688 Don't log final directory unless we actually made it.
48689 Refactor to avoid duplicate code to fix up permissions.
48690 Don't attempt to fix up parent permissions if chdir($PWD) fails.
48692 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48693 to make it a bit faster and (I hope) clearer.
48694 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48695 Fix bug in formats like %2N.
48697 * lib/verify.h: New file.
48699 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48701 Sync from coreutils.
48702 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48704 2005-09-22 Jim Meyering <jim@meyering.net>
48706 Sync from coreutils.
48708 * m4/lstat.m4 (gl_FUNC_LSTAT):
48709 Use AC_LIBSOURCES to require lstat.c and lstat.h.
48710 Remove obsolete comment.
48711 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48712 * m4/xstrtod.m4: Likewise.
48714 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48716 2005-09-22 Jim Meyering <jim@meyering.net>
48718 Sync from coreutils.
48720 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48722 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48723 the .tm_year member, since otherwise gcc-4.0 would now warn about
48724 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48726 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48727 order to avoid an unsuppressible warning from gcc on 64-bit systems.
48729 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48730 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48731 when run in a time zone for which daylight savings time is in effect
48732 for the starting date.
48734 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48735 stop us from restricting permissions of just-created absolute-named
48737 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48738 to restore initial working directory.
48739 * lib/mkdir-p.c (make_dir_parents): New parameter:
48740 different_working_dir, to tell caller if/when we change the working
48741 directory and are unable to return to the initial one.
48742 * lib/mkdir-p.h (make_dir_parents): Update prototype.
48743 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48744 `return false'. This fixes a bug introduced on 2004-07-30.
48746 * lib/openat.c (fdopendir): Be sure to close the supplied
48747 file descriptor before returning. This makes our replacement
48748 implementation a little closer to Solaris's, where fdopendir
48749 ties the file descriptor to the returned DIR* pointer.
48750 * lib/openat.c (unlinkat): New function.
48751 * lib/openat.h (unlinkat): Add prototype.
48752 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48753 (openat_restore_fail): Rename from openat_restore_die.
48754 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48756 Provide an alternative to exiting immediately upon save_cwd or
48757 restore_cwd failure. Now, an application can arrange e.g.,
48758 to perform a longjump in that case.
48759 * lib/openat.c: Include dirname.h.
48760 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48761 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48762 and openat_restore_die rather than calling error directly.
48763 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48765 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48766 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48769 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48770 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48771 int utc, int nanoseconds);
48773 date should not have to allocate a megabyte of virtual memory to
48774 handle a format argument like +%1048575T. When implemented with
48775 strftime, it must allocate such a buffer, use strftime to fill it
48776 in, print it, then free it.
48777 With fprintftime, it simply prints everything and exits.
48778 With no need for memory allocation, that's one fewer way to fail.
48779 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48780 optional field width, not before, so we accept %9:z, not %:9z.
48781 (my_strftime): Be sure to use L_('x') for literals.
48783 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48784 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48785 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48786 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48787 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48788 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48789 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48790 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48791 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48792 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48793 * lib/xgethostname.c, lib/xreadlink.c:
48794 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48796 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48797 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48798 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48799 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48800 and don't include <sys/file.h>).
48802 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48804 Sync from coreutils.
48806 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48807 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48808 [!LDAV_DONE]: Avoid unused variable warning.
48810 2005-09-21 Bruno Haible <bruno@clisp.org>
48812 * lib/unicodeio.h (unicode_to_mb): New declaration.
48814 2005-09-20 Derek Price <derek@ximbiot.com>
48816 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48819 2005-09-20 Bruno Haible <bruno@clisp.org>
48821 * gnulib-tool: Remove trailing slashes from the values specified for
48822 --source-base, --m4-base, --tests-base, --aux-dir.
48823 Suggested by Simon Josefsson <jas@extundo.com>.
48825 2005-09-20 Bruno Haible <bruno@clisp.org>
48827 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48828 func_modules_to_filelist, func_import, func_create_testdir): Make all
48829 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48830 change when gnulib-tool is invoked in a different locale.
48832 2005-09-19 Simon Josefsson <jas@extundo.com>
48834 * m4/socklen.m4: Fix typo.
48836 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48838 Use a consistent style for including <config.h>.
48839 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48840 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48841 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48842 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48843 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48844 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48845 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48846 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48847 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48848 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48849 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48850 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48851 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48852 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48853 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48854 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48855 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48856 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48857 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48858 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48859 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48860 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48861 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48862 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48863 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48864 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48865 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48866 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48867 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48868 lib/xstrtoumax.c, lib/yesno.c:
48869 Standardize inclusion of config.h.
48870 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48871 lib/inttostr.h: Removed inclusion of config.h from header files.
48872 * lib/inttostr.c: Adjusted in-tree users.
48873 * lib/timespec.h: Remove superfluous warning to include config.h.
48874 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48875 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48876 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48877 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48878 config.h with HAVE_CONFIG_H.
48880 2005-09-19 Jim Meyering <jim@meyering.net>
48882 * modules/pathmax (License): Change to LGPL.
48884 2005-09-19 Derek Price <derek@ximbiot.com>
48886 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48888 2005-09-19 Bruno Haible <bruno@clisp.org>
48890 * gnulib-tool (import): Provide default for --tests-base.
48892 2005-09-19 Bruno Haible <bruno@clisp.org>
48894 * doc/quote.texi: New file, extracted from gnulib.texi.
48895 * doc/ctime.texi: New file, extracted from gnulib.texi.
48896 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48897 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48898 * doc/gnulib.texi: Include them.
48900 2005-09-18 Bruno Haible <bruno@clisp.org>
48903 * gnulib-tool (func_readlink): New function.
48904 (func_ln_if_changed): Use it.
48906 2005-09-18 Bruno Haible <bruno@clisp.org>
48908 * gnulib-tool: Support --with-tests also with --import.
48909 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48910 (func_import): Use variables $testsbase and $inctests. Emit a
48911 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48912 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48913 SUBDIRS += $testsdir.
48914 (func_create_testdir): Update.
48916 2005-09-18 Bruno Haible <bruno@clisp.org>
48918 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48919 instead of $dry_run.
48920 (func_cp_if_changed, func_mv_if_changed): Remove functions.
48921 (func_ln_if_changed): Don't handle dry-run here.
48922 (func_import): In dry-run mode, detect more precisely which actions
48923 would be performed, and don't use "...ing" verbs.
48925 2005-09-18 Bruno Haible <bruno@clisp.org>
48927 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48928 (func_import): Use join on two temporary files instead of three nested
48929 loops, in order to determine which files are new or old.
48931 2005-09-18 Bruno Haible <bruno@clisp.org>
48933 * gnulib-tool (func_import): Comment out code that spits out the
48934 new files with --dry-run.
48936 2005-09-18 Bruno Haible <bruno@clisp.org>
48938 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48940 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48942 * lib/stat-time.h: New file.
48943 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48944 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
48945 in a different way.
48946 (timespec_cmp): New function.
48947 * lib/utimecmp.c: Include stat-time.h.
48948 (SYSCALL_RESOLUTION): Depend on whether various struct stat
48949 members exist, not on the obsolescent ST_MTIM_NSEC.
48950 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48952 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48954 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48956 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48958 * MODULES.html.sh (File system functions): Add stat-time.
48959 * modules/stat-time: New file.
48960 * modules/timespec (Files): Remove m4/st_mtim.m4; this
48961 is now done in a different way, by the stat-time module.
48962 * modules/utimecmp (Depends-on): Add stat-time.
48964 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
48966 * m4/st_mtim.m4: Remove. Superseded by...
48967 * m4/stat-time.m4: New file.
48968 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48969 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48971 2005-09-15 Derek Price <derek@ximbiot.com>
48973 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48975 2005-09-15 Derek Price <derek@ximbiot.com>
48977 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48978 * lib/regex_internal.c: Ditto, using this...
48979 (__GNUC_PREREQ): ...new macro.
48980 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48982 (__GNUC_PREREQ): ...this new macro.
48984 * lib/strstr.h: Include string.h. Define strstr as a macro here.
48986 2005-09-15 Derek Price <derek@ximbiot.com>
48987 Paul Eggert <eggert@cs.ucla.edu>
48989 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48990 changes, consolidating in...
48991 * lib/regex_internal.h: ...this file.
48993 2005-09-13 Jim Meyering <jim@meyering.net>
48995 * lib/canon-host.c: Filter through gnu indent and reword comments
48997 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48999 2005-09-13 Derek Price <derek@ximbiot.com>
49001 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49003 Reported by Jim Meyering <jim@meyering.net>.
49005 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49007 * lib/base64.c: Typo.
49008 (base64_encode): Put b64str in initialized data section.
49010 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
49012 Merge glibc and coreutils changes into gnulib, plus a few
49014 * lib/md5.c: Use #error rather than a string.
49015 (CYCLIC): New macro, from glibc source. Use it instead of rol.
49016 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49017 (__attribute__): Define to empty for non recent-GCC.
49018 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49019 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49020 Renamed from their non-__ counterparts, with new macros replacing
49021 them if not _LIBC. Add __THROW attribute.
49023 (struct md5_ctx): Align buffer if using GCC.
49024 * lib/sha1.h (struct sha1_ctx): Likewise.
49025 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
49026 The old name was backwards.
49027 (NOTSWAP): Remove; not used.
49028 (rol): New macro, moved here from md5.h.
49029 (sha1_process_block): Remove a FIXME that doesn't make sense.
49031 2005-09-12 Derek Price <derek@ximbiot.com>
49033 Return usable errors from canon-host.
49034 * lib/canon-host.h: New file.
49035 * lib/canon-host.c (canon_host): Wrap...
49036 (canon_host_r): ...this new function, which now relies exclusively on
49038 (ch_strerror): New function.
49039 (last_cherror): New global.
49040 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49042 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
49044 (freeaddrinfo): Free ai->ai_canonname when set.
49046 2005-09-12 Derek Price <derek@ximbiot.com>
49048 Make canon-host require getaddrinfo.
49049 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49050 AC_LIBSOURCE canon-host.h. Call...
49051 (gl_PREREQ_CANON_HOST): ...this new function, which requires
49053 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49055 2005-09-12 Derek Price <derek@ximbiot.com>
49057 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
49059 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
49061 2005-09-12 Derek Price <derek@ximbiot.com>
49063 * lib/gai_strerror.c: Include config.h when available. Include
49064 getaddrinfo.h before other headers to test interface.
49065 Reported by Larry Jones <lawrence.jones@ugs.com>.
49067 2005-09-12 Derek Price <derek@ximbiot.com>
49068 Paul Eggert <eggert@cs.ucla.edu>
49070 * modules/glob (Files): Add glob-libc.h.
49072 2005-09-12 Derek Price <derek@ximbiot.com>
49073 Paul Eggert <eggert@cs.ucla.edu>
49075 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49076 glob_.h, glob-libc.h.
49077 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49079 2005-09-12 Derek Price <derek@ximbiot.com>
49080 Paul Eggert <eggert@cs.ucla.edu>
49082 * lib/glob-libc.h: Renamed from glob_.h. The new version is
49083 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49084 protecting things that should be done only in gnulib contexts.
49085 * lib/glob_.h: New file, containing only the glob things needed for
49087 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
49088 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49089 (glob, globfree, glob_pattern_p): Now defined simply in terms of
49090 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49091 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49092 and to respect the namespace rules better.
49094 2005-09-08 Simon Josefsson <jas@extundo.com>
49096 * modules/socklen: New file.
49098 2005-09-08 Simon Josefsson <jas@extundo.com>
49100 * m4/socklen.m4: New file.
49102 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49104 * modules/utimens (Files): Add m4/utimbuf.m4, since
49105 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49106 Reported by Sergey Poznyakoff.
49108 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49110 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49111 definitions, since that's the preferred style in glibc.
49112 Fix a minor spacing issue, and update copyright notice to match
49115 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49117 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49119 2005-09-06 Simon Josefsson <jas@extundo.com>
49121 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49122 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
49124 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49126 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49129 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49131 * config/srclist.txt: Add glibc bug 1302.
49133 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
49135 Change bitset word type from unsigned int to unsigned long int,
49136 as this has better performance on typical 64-bit hosts.
49137 Port bitset code to hosts with unusual word sizes.
49138 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49139 (build_collating_symbol):
49140 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49141 argument is a bitset. This is merely a style issue, but it makes
49142 it clearer that an entire array is expected.
49143 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49144 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49145 Port to the case where bitset_word is not the same as unsigned int.
49146 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49147 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49149 * lib/regexec.c (check_dst_limits_calc_pos_1,
49150 check_subexp_matching_top):
49151 (build_trtable, group_nodes_into_DFAstates):
49153 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49154 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49155 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49156 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49157 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49158 * lib/regcomp.c (optimize_subexps, lower_subexp):
49159 Work even if bitset_word has holes in its bitwise representation.
49160 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49161 * lib/regexec.c (check_dst_limits_calc_pos_1,
49162 check_subexp_matching_top):
49164 * lib/regex_internal.c (re_string_reconstruct):
49165 Don't assume UCHAR_MAX == 255.
49166 * lib/regex_internal.h (bitset_set_all): Likewise.
49167 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49169 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
49170 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49172 (BITSET_WORD_MAX): New macro.
49173 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49174 (bitset_set_all, bitset_copy): Now inline functions, not macros.
49175 (bitset_empty, bitset_copy):
49176 Prefer sizeof (bitset) to multiplying it out ourselves.
49177 (bitset_not_merge): Remove; unused.
49178 (bitset_contain): Return bool, not unsigned int with one bit on.
49179 All callers changed.
49180 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49181 alignment than re_node_set; do this by defining a new internal
49182 type struct dests_alloc and using it to allocate memory.
49184 2005-09-05 Bruno Haible <bruno@clisp.org>
49186 * gnulib-tool (func_import): Fix comparison in handling of symbolic
49189 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
49191 * modules/size_max (Makefile.am): Add size_max.h
49193 2005-09-04 Derek Price <derek@ximbiot.com>
49195 * gnulib-tool (func_import): Fix reversed $symbolic logic.
49197 2005-09-03 Simon Josefsson <jas@extundo.com>
49199 * gnulib-tool: Fix typo.
49201 2005-09-03 Simon Josefsson <jas@extundo.com>
49203 * config/srclist.txt: Add glibc bug 1293.
49205 2005-09-03 Derek Price <derek@ximbiot.com>
49207 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49208 From Larry Jones <lawrence.jones@ugs.com>.
49210 2005-09-02 Simon Josefsson <jas@extundo.com>
49212 * modules/socklen: New file.
49214 2005-09-02 Simon Josefsson <jas@extundo.com>
49216 * modules/havelib: New module.
49218 * modules/gettext, modules/iconv, modules/lock, modules/readline:
49221 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49223 Check for arithmetic overflow when calculating sizes, to prevent
49224 some buffer-overflow issues. These patches are conservative, in the
49225 sense that when I couldn't determine whether an overflow was possible,
49226 I inserted a run-time check.
49227 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49229 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49230 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49231 (re_xnrealloc, re_x2nrealloc): New inline functions.
49232 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49233 parse_bracket_exp):
49234 (build_equiv_class, build_charclass): Check for arithmetic overflow
49235 in size expression calculations.
49236 * lib/regex_internal.c (re_string_realloc_buffers):
49237 (build_wcs_upper_buffer, re_node_set_add_intersect):
49238 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49239 (re_dfa_add_node, register_state): Likewise.
49240 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49241 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49242 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49243 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49245 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49247 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49248 m4/ulonglong.m4. Problem reported by Martin Lambers.
49250 2005-09-02 Bruno Haible <bruno@clisp.org>
49252 Support for lib vs. lib64 distinction on biarch platforms.
49253 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49254 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49255 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49257 2005-09-02 Bruno Haible <bruno@clisp.org>
49259 * gnulib-tool (import): In the other first-use case, provide defaults
49262 2005-09-02 Bruno Haible <bruno@clisp.org>
49264 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49265 patches not yet found in the latest gettext release.
49267 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49269 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49270 to avoid a collision with bits/local_lim.h in glibc.
49271 All uses changed. Problem reported by Dmitry V. Levin in
49272 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49274 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49275 bugs in int versus size_t comparisons.
49276 (re_string_context_at): Fix bug where the code assumed that
49279 Use bool where appropriate.
49280 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49281 All callers changed.
49282 (calc_eclosure_iter): Likewise, for ROOT arg.
49283 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49284 (build_charclass_op): Likewise, for NON_MATCH arg.
49285 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49286 (re_string_construct_common): Likewise, for ICASE arg.
49287 * lib/regexec.c (re_search_2_stub, re_search_stub):
49288 Likewise, for RET_LEN arg.
49289 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49290 (set_regs): Likewise, for FL_BACKTRACK arg.
49291 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49292 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49293 (calc_eclosure_iter, parse_bracket_exp):
49294 Use bool for internal variables that are booleans.
49295 * lib/regexec.c (re_search_internal, check_matching,
49296 proceed_next_node):
49297 (set_regs, build_sifted_states, sift_states_bkref):
49298 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49299 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49300 (find_collation_sequence_value):
49302 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49303 (re_node_set_compare):
49304 Return bool, not int. All callers changed.
49305 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49306 (build_trtable, check_node_accept): Likewise.
49307 * lib/regex_internal.h: Include stdbool.h.
49309 Fix bugs uncovered when converting to bool.
49310 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49311 failure instead of charging ahead blindly.
49312 * lib/regex_internal.c (register_state): Likewise.
49313 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49314 for freeing internal storage.
49315 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49316 bitset pieces used as boolean, to avoid undefined behavior
49317 on hosts that do int overflow checking.
49319 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49321 * config/srclist.txt: Add glibc bugs 1285-1287.
49323 2005-09-01 Jim Meyering <jim@meyering.net>
49325 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49326 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49327 Require gl_STAT_MACROS, too.
49329 2005-09-01 Bruno Haible <bruno@clisp.org>
49331 * gnulib-tool (import): In the first-use case, provide defaults.
49333 2005-09-01 Bruno Haible <bruno@clisp.org>
49335 * gnulib-tool (func_import): Remove the .tmp files.
49337 2005-09-01 Bruno Haible <bruno@clisp.org>
49339 * gnulib-tool (func_import): Fix handling of symbolic links.
49341 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49343 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49344 old glibc regex code mishandles strings longer than 2**31 bytes.
49345 This patch fixes this when the regex code is used in gnulib
49346 (i.e., outside glibc).
49348 This patch should not affect the use of the regex code inside
49349 glibc. No doubt this problem also needs to be handled for glibc
49350 as well, but the result will be an incompatible change to the
49351 glibc ABI, and the old ABI will have to be supported too. That
49352 can be the the subject for another patch.
49354 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49355 governing whether the rest of this patch is active. By default,
49356 the macro is disabled and the patch has no effect.
49357 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49358 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49359 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49360 (re_match_2, re_set_registers): Use the new types.
49361 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49362 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49364 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49365 (re_string_context_at, bin_tree_t, re_dfastate_t):
49366 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49367 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49368 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49369 (re_string_char_size_at, re_string_wchar_at):
49370 (re_string_elem_size_at):
49371 Use the new types and macros to port to 64-bit hosts.
49372 Use unsigned types for internal values, so that the code
49373 mostly works even for arrays larger than SSIZE_MAX.
49374 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49375 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49376 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49377 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49378 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49379 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49380 (calc_inveclosure, parse_dup_op, build_range_exp):
49381 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49382 (fetch_number, create_token_tree, mark_opt_subexp):
49384 * lib/regex_internal.c (re_string_construct_common,
49385 create_ci_newstate):
49386 (create_cd_newstate, re_string_allocate, re_string_construct):
49387 (re_string_realloc_buffers, build_wcs_upper_buffer):
49388 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49389 (re_string_reconstruct, re_string_peek_byte_case):
49390 (re_string_fetch_byte_case, re_string_context_at):
49391 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49392 (re_node_set_init_copy, re_node_set_add_intersect):
49393 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49394 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49395 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49396 (re_acquire_state, re_acquire_state_context, register_state):
49398 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49399 search_cur_bkref_entry):
49400 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49401 (re_search_internal, re_search_2_stub, re_search_stub)
49402 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49403 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49404 (update_cur_sifted_state, check_dst_limits):
49405 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49406 (check_subexp_limits, sift_states_bkref, merge_state_array):
49407 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49408 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49409 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49410 (expand_bkref_cache, check_node_accept_bytes):
49411 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49412 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49413 (acquire_init_state_context, check_halt_node_context):
49414 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49415 (sift_states_backward, clean_state_log_if_needed):
49416 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49417 (find_recover_state, transit_state_sb, transit_state_mb):
49418 (transit_state_bkref, build_trtable, match_ctx_clean):
49420 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49421 to work around an assumption that REG_MISSING is negative.
49423 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49424 (seek_collating_symbol_entry) [defined _LIBC]:
49425 (lookup_collation_sequence_value) [defined _LIBC]:
49426 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49427 Use prototypes rather than old-style function definitions.
49428 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49429 (transit_state_sb) [0]:
49430 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49432 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49435 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49436 (optimize_subexps, lower_subexp):
49437 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49438 since the signed shift might overflow. Use 1u<<31 instead.
49439 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49441 * lib/regexec.c (check_dst_limits_calc_pos_1,
49442 check_subexp_matching_top): Likewise.
49444 * lib/regcomp.c (optimize_subexps, lower_subexp):
49445 Use CHAR_BIT rather than 8, for clarity.
49446 * lib/regexec.c (check_dst_limits_calc_pos_1):
49447 (check_subexp_matching_top): Likewise.
49448 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49449 have to worry about portability issues when shifting it left.
49450 Remove no-longer-needed test for table_size > 0.
49451 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49452 in a word, as the resulting behavior is undefined.
49453 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49454 in one case, a <= should have been an <, and in another case the
49455 whole test was missing.
49456 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49457 the standard name CHAR_BIT.
49458 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49459 this is not true on one's complement and signed-magnitude hosts.
49461 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49463 (struct re_dfa_t): Remove unused member states_alloc.
49464 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49466 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49468 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49469 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49470 and large-file glibc and in 32-bit large-file Solaris.
49472 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49474 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49475 lengths fit in regoff_t; this isn't true if regoff_t is the same
49477 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49478 (= START + RANGE) instead of RANGE. This avoids overflow
49479 problems when regoff_t is the same width as size_t.
49480 All callers changed.
49481 (re_search_2_stub): Check for overflow when adding the
49482 sizes of the two strings.
49483 (re_search_stub): Check for overflow when adding START
49484 to RANGE; if it occurs, substitute the extreme value.
49486 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49488 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49490 2005-08-31 Jim Meyering <jim@meyering.net>
49492 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49493 a pointer-to-const.
49494 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49495 (register_state): Likewise.
49496 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49497 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49498 (group_nodes_into_DFAstates): Likewise.
49500 2005-08-31 Jim Meyering <jim@meyering.net>
49502 * check-module: Add a FIXME comment.
49504 2005-08-31 Eric Blake <ebb9@byu.net>
49506 * modules/unistd-safer (Files): Add unistd--.h.
49507 * modules/stdio-safer (Files): Add stdio--.h.
49509 2005-08-31 Derek Price <derek@ximbiot.com>
49511 * lib/getdelim.c (getdelim): Return EOF on EOF.
49512 Reported by Larry Jones <lawrence.jones@ugs.com>.
49514 2005-08-31 Bruno Haible <bruno@clisp.org>
49516 Avoid unnecessary diffs in the generated lib/Makefile.am.
49517 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49518 the generated files.
49519 (func_import): Don't set cmd.
49521 2005-08-31 Bruno Haible <bruno@clisp.org>
49523 * lib/strstr.c: Include <stddef.h>, for NULL.
49524 * lib/strcasestr.c: Likewise.
49525 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49527 2005-08-31 Bruno Haible <bruno@clisp.org>
49529 * gnulib-tool: New option --macro-prefix.
49530 (func_import): Use macro_prefix.
49531 (import): Handle option --macro-prefix.
49533 2005-08-31 Bruno Haible <bruno@clisp.org>
49535 * gnulib-tool (import): Rename most ac_* variables to cached_*.
49536 Also use new variables cached_lgpl, cached_libtool.
49538 2005-08-31 Bruno Haible <bruno@clisp.org>
49540 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49541 always instantiating them.
49543 2005-08-31 Bruno Haible <bruno@clisp.org>
49545 * gnulib-tool (func_import): Read the previous cached settings
49546 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49547 earlier added by gnulib but are now dropped. Warn when a gnulib file
49548 overwrites a non-gnulib file.
49550 2005-08-31 Bruno Haible <bruno@clisp.org>
49552 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49553 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49554 projects that don't keep autogenerated files in CVS. Put into
49555 actioncmd only the specified modules, not the transitive closure.
49557 2005-08-31 Bruno Haible <bruno@clisp.org>
49559 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49560 Create directories that shall be filled.
49561 (import): Don't look for gl_* macros in configure.ac. Recurse across
49562 all directories containing a gnulib-cache.m4 files, if meaningful.
49564 2005-08-31 Bruno Haible <bruno@clisp.org>
49566 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49567 (import): Set seen_libtool when we see gl_LIBTOOL.
49569 2005-08-31 Bruno Haible <bruno@clisp.org>
49571 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49572 declaration macro definitions from generated gnulib.m4.
49574 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
49576 * lib/iconvme.h: Add prototype for iconv_alloc.
49578 2005-08-29 Simon Josefsson <jas@extundo.com>
49580 * lib/iconvme.c: Fix errno.
49582 2005-08-29 Bruno Haible <bruno@clisp.org>
49584 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49585 that it works when the directory contains spaces.
49587 2005-08-29 Bruno Haible <bruno@clisp.org>
49589 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49591 2005-08-29 Bruno Haible <bruno@clisp.org>
49593 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49596 2005-08-29 Bruno Haible <bruno@clisp.org>
49597 and Stepan Kasal <kasal@ucw.cz>
49599 * check-module: If more parameters are given, check each of them
49600 separately; add more exceptions, as noted by Jim Meyering.
49601 (check_module): New procedure.
49602 (%exempt_header): Now contains all exceptions.
49604 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
49606 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49608 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
49610 * lib/iconvme.c: Split iconv_string into iconv_alloc.
49612 2005-08-28 Bruno Haible <bruno@clisp.org>
49614 * m4/gnulib-tool.m4: New file.
49616 2005-08-27 Jim Meyering <jim@meyering.net>
49618 * modules/unistd-safer (Files): Add pipe-safer.c.
49619 * modules/fcntl-safer (Files): Add creat-safer.c.
49621 2005-08-27 Jim Meyering <jim@meyering.net>
49623 * m4/stdlib-safer.m4: New file. From coreutils.
49624 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49625 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49626 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49627 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49628 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49630 2005-08-27 Jim Meyering <jim@meyering.net>
49632 * lib/fopen-safer.c: Merge minor changes from coreutils.
49633 * lib/dup-safer.c: Likewise.
49634 * lib/fd-safer.c: Likewise.
49636 Merge from coreutils.
49637 * lib/stdio--.h: New file.
49638 * lib/stdlib--.h: New file.
49639 * lib/mkstemp-safer.c: New file.
49641 GNU tar needs these.
49642 * lib/pipe-safer.c: New file.
49643 * lib/creat-safer.c: New file.
49644 * lib/fcntl--.h (creat): Define to creat_safer.
49645 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49646 * lib/unistd--.h (pipe): Define to pipe_safer.
49647 * lib/unistd-safer.h: Declare pipe_safer.
49649 2005-08-26 Simon Josefsson <jas@extundo.com>
49651 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49652 Haible <bruno@clisp.org>.
49654 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
49656 * lib/regex_internal.h: Remove all references to
49657 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49659 (bitset_not, bitset_merge, bitset_not_merge):
49660 (bitset_mask, re_string_allocate, re_string_construct):
49661 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49662 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49663 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49664 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49665 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49666 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49667 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49668 (re_acquire_state_context):
49669 Remove unnecessary forward decls.
49670 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49671 Put __attribute at function definition,
49672 now that the function decl has been removed.
49673 * lib/regex_internal.c (re_string_peek_byte_case):
49674 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49677 2005-08-25 Stepan Kasal <kasal@ucw.cz>
49679 * m4/regex.m4: Add AC_PREREQ(2.50).
49680 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49682 2005-08-25 Simon Josefsson <jas@extundo.com>
49684 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49687 2005-08-25 Simon Josefsson <jas@extundo.com>
49689 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
49690 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
49691 GLIBC specific code.
49693 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49695 Make regex safe for g++. This fixes one real bug (an "err"
49696 that should have been "*err"). g++ problem reported by
49698 * lib/regex_internal.h (re_calloc): New macro, consistent with
49699 re_malloc etc. All callers of calloc changed to use re_calloc.
49700 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49701 not int. All callers changed.
49702 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49703 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49704 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49705 (find_recover_state): Change "err" to "*err"; this fixes what
49706 appears to be a real bug.
49707 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49710 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49712 * modules/regex (Depends-on): Add malloc, since the code
49713 assumes that !malloc(0) means failure.
49715 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49717 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49719 alloca modernization/simplification for regex.
49720 * lib/regex.c: Remove portability cruft for alloca. This no longer
49721 needs to be at the start of the file, and can be moved into
49722 regex_internal.h and simplified.
49723 * lib/regex_internal.h: Include <alloca.h>.
49724 (__libc_use_alloca) [!defined _LIBC]: New macro.
49725 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49726 now works outside glibc.
49728 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49730 * config/srclist.txt: Add glibc bugs 1241, 1245.
49732 2005-08-25 Jim Meyering <jim@meyering.net>
49734 * lib/open-safer.c: Include <config.h>.
49735 Otherwise, we'd lose LARGEFILE support in any file using
49738 2005-08-25 Bruno Haible <bruno@clisp.org>
49740 * m4/minmax.m4: Require autoconf 2.52.
49741 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49742 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49743 alternatives of translit over the alphabet.
49744 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49746 2005-08-24 Simon Josefsson <jas@extundo.com>
49748 * tests/test-getpass.c: New file.
49750 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49752 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49753 for GNU regex features.
49755 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49757 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49758 * lib/regex.h (regerror): Likewise.
49760 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49761 requires this. (The code never needed it.)
49763 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49764 All uses of recently-renamed identifiers changed to use the new,
49765 POSIX-compliant names. The code will build and run just fine
49766 without these changes, but it's better to eat our own dog food
49767 and use the standard-conforming names.
49769 * lib/regex.h: Fix a multitude of POSIX name space violations.
49770 These changes have an effect only for programs that define
49771 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49772 do not change anything for programs compiled in the normal way.
49773 Also, there is no effect on the ABI.
49775 (_REGEX_SOURCE): New macro.
49776 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49777 defined and _GNU_SOURCE is not; this fixes a name space violation.
49779 Rename the following macros to obey POSIX requirements.
49780 The old names are still visible as macros if _REGEX_SOURCE is defined.
49781 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49782 RE_BACKSLASH_ESCAPE_IN_LISTS.
49783 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49784 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49785 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49786 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49787 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49788 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49789 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49790 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49791 (REG_INTERVALS): renamed from RE_INTERVALS.
49792 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49793 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49794 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49795 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49796 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49797 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49798 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49799 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49800 RE_UNMATCHED_RIGHT_PAREN_ORD.
49801 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49802 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49803 (REG_DEBUG): renamed from RE_DEBUG.
49804 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49805 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49806 unusual, since we can't clash with the POSIX REG_ICASE.
49807 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49808 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49809 (REG_NO_SUB): renamed from RE_NO_SUB.
49810 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49811 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49812 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49813 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49814 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49815 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49816 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49817 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49818 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49819 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49820 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49821 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49822 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49823 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49824 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49825 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49826 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49827 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49828 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49829 (REG_FIXED): Renamed from REGS_FIXED.
49830 (REG_NREGS): Renamed from RE_NREGS.
49832 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49833 of other REG_* macros, since POSIX says the user is allowed to
49834 #undef these macros selectively.
49836 (reg_errcode_t): Update comment stating what other tables need
49839 Rename the following enum values to obey POSIX requirements.
49840 The old names are still visible as macros.
49841 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
49842 is not defined, since GNU is supposed to be a superset of POSIX as
49843 much as possible, and since we want reg_errcode_t to be a signed
49844 type for implementation consistency.
49845 (_REG_NOERROR): Renamed from REG_NOERROR.
49846 (_REG_NOMATCH): Renamed from REG_NOMATCH.
49847 (_REG_BADPAT): Renamed from REG_BADPAT.
49848 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49849 (_REG_ECTYPE): Renamed from REG_ECTYPE.
49850 (_REG_EESCAPE): Renamed from REG_EESCAPE.
49851 (_REG_ESUBREG): Renamed from REG_ESUBREG.
49852 (_REG_EBRACK): Renamed from REG_EBRACK.
49853 (_REG_EPAREN): Renamed from REG_EPAREN.
49854 (_REG_EBRACE): Renamed from REG_EBRACE.
49855 (_REG_BADBR): Renamed from REG_BADBR.
49856 (_REG_ERANGE): Renamed from REG_ERANGE.
49857 (_REG_ESPACE): Renamed from REG_ESPACE.
49858 (_REG_BADRPT): Renamed from REG_BADRPT.
49859 (_REG_EEND): Renamed from REG_EEND.
49860 (_REG_ESIZE): Renamed from REG_ESIZE.
49861 (_REG_ERPAREN): Renamed from REG_ERPAREN.
49862 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49863 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49864 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49865 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49867 (_REG_RE_NAME, _REG_RM_NAME): New macros.
49868 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
49869 changed. But support the old name if the new one is not defined
49870 and if _REGEX_SOURCE.
49872 Change the following member names in struct re_pattern_buffer.
49873 The old names are still supported if !_REGEX_SOURCE.
49874 The new names are always supported, regardless of _REGEX_SOURCE.
49875 (re_buffer): Renamed from buffer.
49876 (re_allocated): Renamed from allocated.
49877 (re_used): Renamed from used.
49878 (re_syntax): Renamed from syntax.
49879 (re_fastmap): Renamed from fastmap.
49880 (re_translate): Renamed from translate.
49881 (re_can_be_null): Renamed from can_be_null.
49882 (re_regs_allocated): Renamed from regs_allocated.
49883 (re_fastmap_accurate): Renamed from fastmap_accurate.
49884 (re_no_sub): Renamed from no_sub.
49885 (re_not_bol): Renamed from not_bol.
49886 (re_not_eol): Renamed from not_eol.
49887 (re_newline_anchor): Renamed from newline_anchor.
49889 Change the following member names in struct re_registers.
49890 The old names are still supported if !_REGEX_SOURCE.
49891 The new names are always supported, regardless of _REGEX_SOURCE.
49892 (rm_num_regs): Renamed from num_regs.
49893 (rm_start): Renamed from start.
49894 (rm_end): Renamed from end.
49896 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49897 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49898 Prepend __ to parameter names.
49900 Undo yesterday's changes.
49902 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49904 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49905 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
49908 2005-08-24 Jim Meyering <jim@meyering.net>
49910 Sync from coreutils.
49911 * m4/fcntl-safer.m4: New file.
49913 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49914 and object files for this module.
49916 2005-08-24 Jim Meyering <jim@meyering.net>
49918 Sync from coreutils.
49919 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49921 2005-08-24 Jim Meyering <jim@meyering.net>
49923 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49924 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49926 2005-08-24 Jim Meyering <jim@meyering.net>
49928 * modules/fcntl-safer: New module.
49929 * modules/fts (Depends-on): Add fcntl-safer.
49930 * MODULES.html.sh (File descriptor based Input/Output):
49933 2005-08-24 Bruno Haible <bruno@clisp.org>
49935 Support for unit test modules.
49936 * modules/README: Mention tests modules.
49937 * modules/TEMPLATE-TESTS: New file.
49938 * gnulib-tool: New options --extract-tests-module, --with-tests and
49939 --tests-base (unused for the moment).
49940 (testsbase, inctests): New variables.
49941 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49942 (func_verify_module): Exclude TEMPLATE-TESTS.
49943 (func_verify_nontests_module, func_verify_tests_module): New functions.
49944 (func_get_dependencies): Add implicit dependency for tests modules.
49945 (func_get_tests_module): New function.
49946 (func_modules_transitive_closure): When --with-tests was specified,
49947 include the unit tests as well, unless explicitly avoided.
49948 (func_emit_lib_Makefile_am): Ignore the tests modules here.
49949 (func_emit_tests_Makefile_am): New function.
49950 (func_create_testdir): When --with-tests was specified, emit a
49952 * MODULES.html.sh (Future developments): Update.
49954 2005-08-24 Bruno Haible <bruno@clisp.org>
49956 * modules/tls-tests: New file.
49957 * tests/test-tls.c: New file, from GNU gettext.
49959 2005-08-24 Bruno Haible <bruno@clisp.org>
49961 * modules/lock-tests: New file.
49962 * tests/test-lock.c: New file, from GNU gettext.
49964 2005-08-24 Bruno Haible <bruno@clisp.org>
49966 * lib/lock.h: Add multiple inclusion guard.
49967 * lib/tls.h: Add multiple inclusion guard.
49969 2005-08-24 Bruno Haible <bruno@clisp.org>
49971 * gnulib-tool: Add support for the --aux-dir option to
49972 --create-testdir, --create-megatestdir, --test, --megatest.
49973 (func_create_testdir, func_create_megatestdir): Optionally emit a
49974 AC_CONFIG_AUX_DIR directive.
49975 (create-testdir, create-megatestdir, test, megatest): Provide a
49976 default value for $auxdir.
49978 2005-08-24 Bruno Haible <bruno@clisp.org>
49980 * gnulib-tool (import): Use compound statement instead of subshell
49983 2005-08-24 Bruno Haible <bruno@clisp.org>
49985 * gnulib-tool (import): Change --aux-dir default to "build-aux".
49987 2005-08-24 Bruno Haible <bruno@clisp.org>
49989 * gnulib-tool (func_version): Update.
49991 2005-08-24 Bruno Haible <bruno@clisp.org>
49993 * gnulib-tool (func_import, func_create_testdir,
49994 func_create_megatestdir): Quote all autoconf macro arguments.
49996 2005-08-24 Bruno Haible <bruno@clisp.org>
49998 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49999 option --force, because --force causes the aclocal.m4 of each
50000 subdirectory to be newer than the corresponding config.h.in.
50002 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50004 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50005 All contents moved to gl_REGEX.
50006 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50007 assume that it does.
50009 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50011 * lib/regex.h (REG_NOSYS)
50012 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50013 Define, since POSIX requires it as of 2001.
50015 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50016 New private symbol, used to keep the enum signed in all cases.
50017 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50019 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50021 * lib/regex_internal.c (re_string_skip_chars, register_state):
50023 Remove forward decls; no longer needed now that we use prototypes.
50024 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50025 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50026 (clean_state_log_if_needed): Likewise.
50028 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50030 * config/srclist.txt: Add glibc bugs 1231-1233.
50032 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50034 Fix problems reported by Sam Steingold in
50035 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50036 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50037 assumed that reg_errcode_t is a signed type, which is not
50038 necessarily true if _XOPEN_SOURCE is not defined.
50039 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50040 since some compilers warn about it otherwise.
50042 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50044 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50045 (init_word_char, create_initial_state, duplicate_node_closure):
50046 (fetch_token, peek_token_bracket, build_range_exp):
50047 (build_collating_symbol): Remove forward decls; no longer needed
50048 now that we use prototypes.
50051 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50052 (re_compile_fastmap_iter, regcomp, regerror, regfree):
50053 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50054 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50055 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50056 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50057 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50058 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50059 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50060 (build_range_exp, build_collating_symbol, parse_bracket_exp):
50061 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50062 (build_charclass, build_charclass_op, fetch_number, create_tree):
50063 (create_token_tree, mark_opt_subexp, duplicate_tree):
50064 Use prototypes rather than old-style definitions.
50066 * lib/regex_internal.c:
50067 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50068 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50069 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50070 (re_string_reconstruct, re_string_peek_byte_case):
50071 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50072 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50073 (re_node_set_init_copy, re_node_set_add_intersect):
50074 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50075 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50076 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50077 (re_acquire_state, re_acquire_state_context, register_state):
50078 (create_ci_newstate, create_cd_newstate, free_state):
50080 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50082 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50083 (re_search_internal, prune_impossible_nodes):
50084 (acquire_init_state_context, check_matching, static):
50085 (check_halt_node_context, check_halt_state_context, proceed_next_node):
50086 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50087 (update_regs, sift_states_backward, build_sifted_states):
50088 (clean_state_log_if_needed, merge_state_array):
50089 (update_cur_sifted_state, add_epsilon_src_nodes):
50090 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50091 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50092 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50093 (find_recover_state, check_subexp_matching_top, transit_state_mb):
50094 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50095 (check_arrival, check_arrival_add_next_nodes):
50096 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50097 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50098 (check_node_accept_bytes, check_node_accept, extend_buffers):
50099 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50100 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50104 * lib/regex_internal.h:
50105 (re_string_allocate, re_string_construct, re_string_reconstruct):
50106 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50107 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50108 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50109 (re_string_context_at, re_string_peek_byte_case):
50110 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50111 is defined, since we now use prototypes always.
50113 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
50114 C89 or better. All uses removed.
50116 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50118 * config/srclist.txt: Add glibc bugs 1220-1227.
50120 2005-08-20 Jim Meyering <jim@meyering.net>
50122 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50123 of unused local, dfa.
50125 2005-08-20 Bruno Haible <bruno@clisp.org>
50127 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50129 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50131 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50132 (re_node_set_insert_last, re_dfa_add_node):
50133 Rename local variables to avoid GCC shadowing warnings.
50135 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50137 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50138 [defined lint]: Suppress bogus uninitialized-variable warnings.
50140 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50141 and let the caller return REG_ESPACE if out of space. This
50142 removes an uninitialied-variable warning with GCC 4.0.1, and also
50143 avoids taking the address of a local variable. All callers
50146 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50148 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50149 $LIBCSRC/posix/regexec.c.
50150 Add glibc bug 1217 for regcomp.c.
50152 2005-08-19 Jim Meyering <jim@meyering.net>
50154 * lib/regexec.c (proceed_next_node): Redo local variables to
50155 avoid GCC shadowing warnings.
50157 2005-08-18 Bruno Haible <bruno@clisp.org>
50159 * lib/strstr.c (strstr): Fix return value in multibyte case.
50160 * lib/strcasestr.c (strcasestr): Likewise.
50162 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
50164 * lib/regex.h: Remove useless space-before-tab. From coreutils.
50166 2005-08-17 Jim Meyering <jim@meyering.net>
50168 Make the %s format (seconds since the epoch) work for a negative
50169 number and when used with a zero-padded field width, e.g. %015s.
50171 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50172 label so that it precedes the code to set `digits'. Otherwise,
50173 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
50174 print `00-22'. Now, it prints `-0022', as it should.
50176 2005-08-17 Bruno Haible <bruno@clisp.org>
50178 * modules/strstr (Files): Add m4/mbrtowc.m4.
50179 (Depends-on): Add mbuiter.
50181 2005-08-17 Bruno Haible <bruno@clisp.org>
50183 * modules/strcasestr: New file.
50184 * MODULES.html.sh (String handling, based on ANSI C 89): Add
50187 2005-08-17 Bruno Haible <bruno@clisp.org>
50189 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50191 2005-08-17 Bruno Haible <bruno@clisp.org>
50193 * modules/mbuiter: New file.
50194 * MODULES.html.sh (Extended multibyte and wide character utilities):
50197 2005-08-17 Bruno Haible <bruno@clisp.org>
50199 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50200 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50202 2005-08-17 Bruno Haible <bruno@clisp.org>
50204 * m4/strcasestr.m4: New file.
50206 2005-08-17 Bruno Haible <bruno@clisp.org>
50208 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50209 * lib/strstr.c: Completely rewritten, with multibyte locale support.
50211 2005-08-17 Bruno Haible <bruno@clisp.org>
50213 * lib/strcasestr.h: New file.
50214 * lib/strcasestr.c: New file.
50216 2005-08-17 Bruno Haible <bruno@clisp.org>
50218 * lib/strcasecmp.c: Use mbuiter.h.
50220 2005-08-17 Bruno Haible <bruno@clisp.org>
50222 * lib/mbuiter.h: New file.
50224 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
50226 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50227 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
50228 and gl_GETOPT are both invoked via different paths (as happens
50229 with GNU tar CVS because it uses both argp and getopt), the former
50232 2005-08-16 Bruno Haible <bruno@clisp.org>
50234 * modules/tls: New file.
50235 * MODULES.html.sh (Multithreading): Add tls.
50237 2005-08-16 Bruno Haible <bruno@clisp.org>
50239 * modules/strnlen1: New file.
50240 * MODULES.html.sh (String handling): Add strnlen1.
50242 2005-08-16 Bruno Haible <bruno@clisp.org>
50244 * modules/strcase (Files): Add m4/mbrtowc.m4.
50245 (Depends-on): Add strnlen1, mbchar.
50247 2005-08-16 Bruno Haible <bruno@clisp.org>
50249 * modules/mbiter: New file.
50250 * MODULES.html.sh (Extended multibyte and wide character utilities):
50253 2005-08-16 Bruno Haible <bruno@clisp.org>
50255 * modules/mbfile: New file.
50256 * MODULES.html.sh (Extended multibyte and wide character utilities):
50259 2005-08-16 Bruno Haible <bruno@clisp.org>
50261 * modules/mbchar: New file.
50262 * MODULES.html.sh (Extended multibyte and wide character utilities):
50265 2005-08-16 Bruno Haible <bruno@clisp.org>
50267 * m4/tls.m4: New file, from GNU gettext.
50269 2005-08-16 Bruno Haible <bruno@clisp.org>
50271 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50273 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50275 2005-08-16 Bruno Haible <bruno@clisp.org>
50277 * m4/mbiter.m4: New file.
50279 2005-08-16 Bruno Haible <bruno@clisp.org>
50281 * m4/mbfile.m4: New file.
50283 2005-08-16 Bruno Haible <bruno@clisp.org>
50285 * m4/mbchar.m4: New file.
50287 2005-08-16 Bruno Haible <bruno@clisp.org>
50289 * lib/tls.h: New file, from GNU gettext.
50290 * lib/tls.c: New file, from GNU gettext.
50292 2005-08-16 Bruno Haible <bruno@clisp.org>
50294 * lib/strnlen1.h: New file.
50295 * lib/strnlen1.c: New file.
50297 2005-08-16 Bruno Haible <bruno@clisp.org>
50299 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50300 (mbi_init): Update.
50301 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50302 NUL byte, not after it.
50304 2005-08-16 Bruno Haible <bruno@clisp.org>
50306 * lib/strcase.h (strcasecmp): Add note in comments.
50307 * lib/strncasecmp.c: Use code from strcasecmp.c.
50308 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50309 (strcasecmp): Work correctly in multibyte locales.
50311 2005-08-16 Bruno Haible <bruno@clisp.org>
50313 * lib/mbiter.h: New file.
50315 2005-08-16 Bruno Haible <bruno@clisp.org>
50317 * lib/mbfile.h: New file.
50319 2005-08-16 Bruno Haible <bruno@clisp.org>
50321 * lib/mbchar.h: New file.
50322 * lib/mbchar.c: New file.
50324 2005-08-16 Bruno Haible <bruno@clisp.org>
50326 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50327 the valid ones. Makes the comparison operations transitive:
50328 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50329 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50331 2005-08-15 Simon Josefsson <jas@extundo.com>
50333 * modules/ssize_t (License): Change to 'unlimited'.
50335 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50337 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50339 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50340 Add comments for each pending glibc patch.
50342 2005-08-15 Bruno Haible <bruno@clisp.org>
50344 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50345 __cplusplus is defined.
50347 2005-08-14 Jim Meyering <jim@meyering.net>
50349 Sync from coreutils.
50351 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50352 Use the hash-table-based cycle-detection code not just when
50353 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50354 Reported by James Youngman in
50355 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50356 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50357 FTS_TIGHT_CYCLE_CHECK.
50358 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50359 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50361 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50362 * lib/fts.c (fd_safer): Remove decl.
50363 Include fcntl--.h rather than unistd-safer.h
50364 (fts_safe_changedir): Don't call fd_safer; no longer needed
50365 now that we include fcntl--.h.
50367 2005-08-12 Simon Josefsson <jas@extundo.com>
50369 * modules/getndelim2: Use ssize_t module.
50370 * modules/getnline: Likewise.
50371 * modules/safe-read: Likewise.
50372 * modules/xreadlink: Likewise.
50374 * modules/ssize_t: New file.
50376 2005-08-12 Simon Josefsson <jas@extundo.com>
50378 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50380 2005-08-12 Simon Josefsson <jas@extundo.com>
50382 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50385 2005-08-12 Simon Josefsson <jas@extundo.com>
50387 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50388 readline, getdelim and check_version.
50389 (Support for systems lacking ISO C 99: Sizes of integer types):
50392 2005-08-12 Bruno Haible <bruno@clisp.org>
50394 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50396 2005-08-11 Simon Josefsson <jas@extundo.com>
50398 * modules/readline: New file.
50400 * modules/strnlen (Files): Add strnlen.h.
50402 2005-08-11 Simon Josefsson <jas@extundo.com>
50404 * m4/readline.m4: New file.
50406 2005-08-11 Simon Josefsson <jas@extundo.com>
50408 * lib/readline.h, readline.c: New file.
50410 2005-08-11 Simon Josefsson <jas@extundo.com>
50412 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50415 2005-08-11 Bruno Haible <bruno@clisp.org>
50417 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50419 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50421 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50423 2005-08-10 Simon Josefsson <jas@extundo.com>
50425 * tests/test-iconvme.c: New file.
50427 2005-08-10 Simon Josefsson <jas@extundo.com>
50429 * m4/strnlen.m4: New file.
50431 * m4/strndup.m4: Don't check for strnlen declaration, done in
50434 2005-08-10 Simon Josefsson <jas@extundo.com>
50436 * lib/strndup.c: Use strnlen.h.
50438 * lib/strnlen.h: New file.
50440 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50444 2005-08-02 Simon Josefsson <jas@extundo.com>
50446 * modules/readline: New file.
50448 2005-08-02 Simon Josefsson <jas@extundo.com>
50450 * modules/getdelim: New file.
50452 * modules/getline: Rewrite, don't use getndelim2.
50454 2005-08-02 Simon Josefsson <jas@extundo.com>
50456 * m4/getline.m4: Separate out getdelim stuff into separate module.
50458 * m4/getdelim.m4: New file.
50460 2005-08-02 Simon Josefsson <jas@extundo.com>
50462 * lib/getline.h, getline.c: Rewrite.
50464 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50466 2005-07-31 Bruno Haible <bruno@clisp.org>
50468 * lib/lock.h (gl_lock_initializer): New macro.
50469 (gl_lock_define_initialized): Use it.
50470 (gl_rwlock_initializer): New macro.
50471 (gl_rwlock_define_initialized): Use it.
50472 (gl_recursive_lock_initializer): New macro.
50473 (gl_recursive_lock_define_initialized): Use it.
50475 2005-07-30 Karl Berry <karl@gnu.org>
50477 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50478 Report from Ben Pfaff, regarding getopt.
50480 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
50482 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50484 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50485 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
50486 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50487 (gl_GETOPT): Use the new macros. Most of the implementation
50488 is moved to the new macros. This is for programs like Emacs
50489 that don't want all the functionality of gl_GETOPT.
50491 2005-07-26 Bruno Haible <bruno@clisp.org>
50493 * m4/lock.m4: Update from GNU gettext.
50495 2005-07-26 Bruno Haible <bruno@clisp.org>
50497 * lib/lock.h: Update from GNU gettext.
50498 * lib/lock.c: Update from GNU gettext.
50500 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
50502 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50503 obsolescent AC_TRY_RUN. Include the default includes files, for
50506 2005-07-24 Bruno Haible <bruno@clisp.org>
50508 * modules/visibility: New file.
50509 * MODULES.html.sh (Misc): Add visibility.
50511 2005-07-24 Bruno Haible <bruno@clisp.org>
50513 * m4/visibility.m4: New file.
50515 2005-07-24 Bruno Haible <bruno@clisp.org>
50517 * doc/visibility.texi: New file.
50519 2005-07-22 Bruno Haible <bruno@clisp.org>
50521 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50522 $(ALLOCA_H), redundant through BUILT_SOURCES.
50523 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50524 redundant through BUILT_SOURCES.
50525 * modules/byteswap (Makefile.am): Remove explicit dependency on
50526 $(BYTESWAP_H), redundant through BUILT_SOURCES.
50527 * modules/fnmatch (Makefile.am): Remove explicit dependency on
50528 $(FNMATCH_H), redundant through BUILT_SOURCES.
50529 * modules/getopt (Makefile.am): Remove explicit dependency on
50530 $(GETOPT_H), redundant through BUILT_SOURCES.
50531 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50532 redundant through BUILT_SOURCES.
50533 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50534 redundant through BUILT_SOURCES.
50535 * modules/stdbool (Makefile.am): Remove explicit dependency on
50536 $(STDBOOL_H), redundant through BUILT_SOURCES.
50537 * modules/stdint (Makefile.am): Remove explicit dependency on
50538 $(STDINT_H), redundant through BUILT_SOURCES.
50539 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50540 Remove explicit dependency on $(SYSEXITS_H).
50541 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50543 2005-07-18 Simon Josefsson <jas@extundo.com>
50545 * lib/check-version.c (check_version): Accept identical versions too.
50547 2005-07-18 Bruno Haible <bruno@clisp.org>
50549 * modules/lock: New file.
50550 * MODULES.html.sh (Multithreading): New section.
50552 2005-07-18 Bruno Haible <bruno@clisp.org>
50554 * m4/lock.m4: New file, from GNU gettext.
50556 2005-07-18 Bruno Haible <bruno@clisp.org>
50558 * lib/lock.h: New file, from GNU gettext.
50559 * lib/lock.c: New file, from GNU gettext.
50561 2005-07-18 Bruno Haible <bruno@clisp.org>
50563 * lib/lock.h (gl_once_t): New type.
50564 (gl_once_define, gl_once): New macros.
50565 * lib/lock.c (fresh_once): New variable.
50566 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50569 2005-07-16 Simon Josefsson <jas@extundo.com>
50571 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50572 workaround, suggested by Bruno.
50574 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50576 * modules/xalloc (Depends-on): Add xalloc-die.
50577 * modules/xvasprintf (Depends-on): Add xalloc-die.
50579 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50581 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50582 with a minor change.
50584 2005-07-15 Bruno Haible <bruno@clisp.org>
50586 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50587 When using lib/poll.c, define poll as rpl_poll.
50589 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
50591 * modules/argp (Depends-on): Remove unlocked-io.
50593 2005-07-14 Derek Price <derek@ximbiot.com>
50595 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
50596 for glob symlink bug.
50598 2005-07-14 Bruno Haible <bruno@clisp.org>
50600 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50601 Instead, test for *_unlocked function declarations directly.
50603 2005-07-11 Simon Josefsson <jas@extundo.com>
50605 * modules/size_max: New file.
50607 * modules/xsize: Depend on size_max module for size_max.m4.
50609 2005-07-11 Simon Josefsson <jas@extundo.com>
50611 * lib/size_max.h: New file.
50613 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
50615 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50616 copyright symbol and the year.
50617 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50618 (version_etc_va): Use parameterized copyright notice.
50619 Reword to conform to the current GNU coding standards.
50621 2005-07-11 Karl Berry <karl@gnu.org>
50623 * doc/gnulib.texi (Quoting): new node.
50624 (Initial import): more info, from Patrice.
50626 2005-07-11 Bruno Haible <bruno@clisp.org>
50628 * gnulib-tool (func_usage): Document option --avoid.
50629 (Command line options): Handle --avoid.
50630 (func_acceptable): New function.
50631 (func_modules_transitive_closure): Use it.
50633 2005-07-11 Bruno Haible <bruno@clisp.org>
50635 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50636 Reported by Jim Meyering.
50638 2005-07-10 Bruno Haible <bruno@clisp.org>
50640 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50641 Needed when size_t is smaller than 'unsigned int'.
50642 Reported by Paul Eggert.
50644 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50646 * modules/argp (Depends-on): Add unlocked-io
50648 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50650 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50653 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
50655 * config/srclist.txt: Comment out regcomp.c, since we have a porting
50658 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
50659 and Paul Eggert <eggert@cs.ucla.edu>
50661 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50662 in wint_t, not wchar_t. Remove now-unnecessary cast.
50664 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50666 * modules/regex (Files): Add lib/regex_internal.c,
50667 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50668 (Depends-on): Add extensions.
50669 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50671 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50673 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50675 * m4/same.m4 (gl_SAME): Likewise.
50676 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50678 * m4/regex.m4: Adjust to new libc regex implementation.
50679 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50680 all the .c and .h parts of (the new) regex.
50681 Quote the m4 stuff better.
50682 Check for RE_ICASE bug of old gnulib.
50683 Check for REG_STARTEND of recent libc.
50684 Rename local variables from jm_* to gl_*.
50685 Quote operand of "test -f".
50686 Say "recent enough" version of libc, not "version 2".
50687 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50688 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
50689 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50690 Remove check for btowc, isascii.
50691 Require AM_LANGINFO_CODESET.
50693 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50695 * lib/regex.c, regex.h: Sync from libc.
50696 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50698 New files, synced from libc, except that regex_internal.h
50699 currently has a small porting fix.
50701 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50703 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50704 regex_internal.c, regexec.c.
50705 Add regex_internal.h too, but as a comment, since the libc version
50706 is currently broken in gnulib mode.
50708 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
50710 Support programs like Emacs that use gnulib but not gettext.
50711 * MODULES.html.sh (Internationalization functions): Add gettext-h.
50712 * modules/gettext-h: New file.
50713 * modules/gettext (Files): Remove lib/gettext.h.
50714 (Depends-on): Add gettext-h.
50715 (Makefile.am): Remove lib_SOURCES.
50716 * modules/argmatch, modules/c-stack, modules/closeout:
50717 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50718 * modules/execute, modules/file-type, modules/getaddrinfo:
50719 * modules/getopt, modules/human, modules/javacomp:
50720 * modules/javaexec, modules/mkdir-p, modules/obstack:
50721 * modules/openat, modules/pagealign_alloc, modules/pipe:
50722 * modules/quotearg, modules/regex, modules/rpmatch:
50723 * modules/unicodeio, modules/userspec, modules/version-etc:
50724 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50726 Depend on gettext-h, not gettext.
50728 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
50730 * gnulib-tool (func_import): Add support for 'public domain' license.
50731 * modules/alloca, modules/atexit, modules/memmove:
50732 Now public domain, not GPL.
50733 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50734 * modules/realloc, modules/strerror, modules/strtod:
50737 2005-07-05 Bruno Haible <bruno@clisp.org>
50739 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50740 autoconf CVS. Needed for mingw.
50742 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50744 Remove the dependency of the strftime module on the tzset module.
50745 * modules/strftime (Depends-on): Remove dependency on tzset.
50747 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50749 Remove the dependency of the strftime module on the tzset module.
50750 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50751 gl_FUNC_TZSET_CLOBBER.
50753 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50755 Remove the dependency of the strftime module on the tzset module.
50756 * lib/strftime.c (my_strftime)
50757 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50758 Copy the input structure, to work around some of the bug with
50759 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
50760 Solaris releases, you should also use the tzset module, but we won't
50761 require it as a dependency any more since we don't want LGPLed code
50762 to depend on GPLed code.
50764 2005-07-02 Jim Meyering <jim@meyering.net>
50766 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50767 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50768 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50769 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50771 2005-07-02 Jim Meyering <jim@meyering.net>
50773 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50775 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50777 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50778 declares only 'struct timespec;' (!).
50780 2005-07-01 Jim Meyering <jim@meyering.net>
50782 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50783 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50784 * lib/save-cwd.c, tempname.c:
50785 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50786 and don't include <sys/file.h>).
50788 2005-06-29 Jim Meyering <jim@meyering.net>
50790 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50791 type name. Use the variable name instead.
50792 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50795 2005-06-28 Simon Josefsson <jas@extundo.com>
50797 * modules/check-version (Files): Add check-version.m4.
50799 2005-06-28 Simon Josefsson <jas@extundo.com>
50801 * m4/check-version.m4: New file, suggested by Jim Meyering
50802 <jim@meyering.net>.
50804 2005-06-28 Simon Josefsson <jas@extundo.com>
50806 * lib/check-version.h, lib/check-version.c: New files.
50808 2005-06-28 Simon Josefsson <jas@extundo.com>
50810 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50811 collision with global variable. Better indentation. Don't
50812 increment buffer pointer beyond buffer end. Based on comments
50813 from Paul Eggert <eggert@cs.ucla.edu>.
50815 * lib/base64.h: Indent.
50817 2005-06-28 Simon Josefsson <jas@extundo.com>
50819 * doc/gnulib.texi (Library version handling): New section.
50821 2005-06-28 Jim Meyering <jim@meyering.net>
50823 * check-module (find_included_lib_files): Hard-code another
50824 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50825 but modules/fts-lgpl (correctly) does not list those files.
50827 * modules/canonicalize (Files): Add lib/pathmax.h.
50829 2005-06-25 Simon Josefsson <jas@extundo.com>
50831 * modules/check-version: New file.
50833 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50835 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50836 initializer of struct addrinfo, as an indication that we don't
50837 care how many members the structure has.
50839 2005-06-24 Derek Price <derek@ximbiot.com>
50840 and Bruno Haible <bruno@clisp.org>
50842 Remove stat module & update lstat.
50843 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50844 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50845 * m4/stat.m4: Remove this file.
50847 2005-06-24 Derek Price <derek@ximbiot.com>
50848 and Bruno Haible <bruno@clisp.org>
50850 Remove stat module & update lstat.
50851 * lib/stat.c: Remove this file...
50852 (slash_aware_lstat): ...moving this content and its support...
50853 * lib/lstat.c (rpl_lstat): ...into here.
50854 * lib/lstat.h: New file.
50856 2005-06-24 Derek Price <derek@ximbiot.com>
50857 and Bruno Haible <bruno@clisp.org>
50859 Remove stat module & update lstat.
50860 * config/srclist.txt (libc sources): Remove stat.
50862 2005-06-24 Derek Price <derek@ximbiot.com>
50863 and Bruno Haible <bruno@clisp.org>
50865 Remove stat module & update lstat.
50866 * MODULES.html.sh (stat): Remove.
50867 * MODULES.html: Regenerated.
50868 * modules/lstat (Description): Correct function name.
50869 (Files): Add "lstat.h".
50870 (Depends-on): Remove stat, add xalloc, stat-macros.
50871 * modules/stat: Remove this file.
50872 (Include): Add "lstat.h", remove <sys/stat.h>.
50874 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
50876 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
50877 (ranged_convert): Don't save conversion in a temporary struct.
50878 This causes a warning with GCC 4.0.0, and anyway in the typical
50879 case it's not worth the extra 100 bytes or so of code.
50880 (ranged_convert, __mktime_internal): When calling a function via a
50881 pointer P, use P () rather than (*P) (), as we now assume C89 or
50884 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
50886 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50887 "who -r" failed to give output. Problem reported by Tim Waugh.
50889 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50890 (xcalloc): Use it to avoid needless tests.
50891 Problem reported by Jim Meyering.
50893 2005-06-20 Derek Price <derek@ximbiot.com>
50895 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50896 unnecessary for Autoconfs > 2.59c.
50898 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50900 * lib/argp.h (__option_is_short): Check upper limit of
50901 __key. Isprint() requires its argument to have the value
50902 of an unsigned char or EOF.
50904 2005-06-16 Jim Meyering <jim@meyering.net>
50906 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50907 when either N or S is zero.
50909 2005-06-16 Derek Price <derek@ximbiot.com>
50911 * m4/bison.m4: Declare YACC & YFLAGS precious.
50913 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
50915 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50916 multibyte string or pattern, fall back on unibyte matching.
50917 Problem reported by James Youngman.
50919 2005-06-08 Bruno Haible <bruno@clisp.org>
50921 * modules/csharpcomp: New file.
50922 * MODULES.html.sh (C#): Add csharpcomp.
50924 2005-06-08 Bruno Haible <bruno@clisp.org>
50926 * m4/csharpcomp.m4: New file, from GNU gettext.
50928 2005-06-08 Bruno Haible <bruno@clisp.org>
50930 * lib/csharpcomp.h: New file, from GNU gettext.
50931 * lib/csharpcomp.c: New file, from GNU gettext.
50932 * lib/csharpcomp.sh.in: New file, from GNU gettext.
50934 2005-06-08 Bruno Haible <bruno@clisp.org>
50936 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50939 2005-06-07 Derek Price <derek@ximbiot.com>
50942 * lib/glob_.h: Indent nested #ifdef.
50944 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50946 Sync from coreutils.
50947 Use "file name" when talking about file names, instead of "filename"
50948 or "path", as per the GNU coding standards.
50949 * lib/mkdir-p.c: Renamed from makepath.c.
50950 (make_dir_parents): Renamed from make_path. All callers changed.
50951 * lib/mkdir-p.h: Likewise. All includers changed.
50952 * lib/filenamecat.c: Renamed from path-concat.c.
50953 (file_name_concat): Renamed from path_concat. All callers changed.
50954 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50955 * lib/filenamecat.h: Likewise. All includers changed.
50956 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50957 in comments or local variable names.
50958 * lib/basename.c: Likewise.
50959 * lib/canonicalize.c, canonicalize.h: Likewise.
50960 * lib/dirname.c, dirname.h: Likewise.
50961 * lib/euidaccess.c: Likewise.
50962 * lib/exclude.c: Likewise
50963 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50964 * lib/fsusage.c, fsuage.h: Likewise.
50965 * lib/fts.c, fts_.h: Likewise.
50966 * lib/getcwd.c: Likewise.
50967 * lib/getloadavg.c: Likewise.
50968 * lib/mkstemp.c: Likewise.
50969 * lib/mountlist.c, mountlist.h: Likewise.
50970 * lib/openat.c, openat.h: Likewise.
50971 * lib/readlink-stub.c: Likewise.
50972 * lib/readutmp.c, readutmp.h: Likewise.
50973 * lib/rename.c: Likewise.
50974 * lib/rmdir.c: Likewise.
50975 * lib/same.c: Likewise.
50976 * lib/savedir.c: Likewise.
50977 * lib/stripslash.c: Likewise.
50978 * lib/tempname.c: Likewise.
50979 * lib/xreadlink.c: Likewise.
50980 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50982 * lib/exclude.h: Likewise.
50984 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50985 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50986 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50987 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50988 * lib/pathmax.h: Include <limits.h> unconditionally, since other
50989 files have been getting away with it for years (MORE/BSD 4.3
50991 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50992 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50994 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50995 Define to 256, not 255, as per modern POSIX.
50997 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50999 Sync from coreutils.
51000 Use "file name" when talking about file names, instead of "filename"
51001 or "path", as per the GNU coding standards.
51002 * MODULES.html.sh: mkdir-p renamed from makepath.
51003 filenamecat renamed from path-concat.
51004 * modules/filenamecat: Renamed from modules/path-concat.
51005 (Files): filenamecat.h and filenamecat.c renamed from
51006 path-concat.h and path-concat.c.
51007 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51008 (Include): filenamecat.h, not path-concat.h.
51009 * modules/mkdir-p: Renamed from modules/makepath.
51010 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51012 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51013 (Include): mkdir-p.h, not makepath.h.
51015 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51017 Sync from coreutils.
51018 * m4/mkdir-p.m4: Renamed from makepath.m4.
51019 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
51020 Rename files from makepath.c to mkdir-p.c, and from
51021 makepath.h to mkdir-p.h.
51022 * m4/filenamecat.m4: Renamed from path-concat.m4.
51023 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
51024 Rename files from path-concat.c to filenamecat.c,
51025 and from path-concat.h to filenamecat.h.
51026 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51027 "file name" in local variables or comments.
51028 * m4/rename.m4: Likewise.
51030 2005-06-01 Bruno Haible <bruno@clisp.org>
51032 * modules/csharpexec: New file.
51033 * MODULES.html.sh (C#): New section.
51035 2005-06-01 Bruno Haible <bruno@clisp.org>
51037 * m4/csharp.m4: New file, from GNU gettext.
51038 * m4/csharpexec.m4: New file, from GNU gettext.
51040 2005-06-01 Bruno Haible <bruno@clisp.org>
51042 * lib/csharpexec.h: New file, from GNU gettext.
51043 * lib/csharpexec.c: New file, from GNU gettext.
51044 * lib/csharpexec.sh.in: New file, from GNU gettext.
51046 2005-05-31 Derek Price <derek@ximbiot.com>
51047 Paul Eggert <eggert@cs.ucla.edu>
51050 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51052 2005-05-31 Derek Price <derek@ximbiot.com>
51053 Paul Eggert <eggert@cs.ucla.edu>
51056 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51058 2005-05-29 Derek Price <derek@ximbiot.com>
51060 * config/srclist.txt (glob_.h, glob.c): Add these files.
51062 2005-05-29 Derek Price <derek@ximbiot.com>
51064 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51065 * modules/glob: New file.
51066 * modules/getlogin_r: Add link to POSIX spec in description.
51068 2005-05-29 Derek Price <derek@ximbiot.com>
51069 Paul Eggert <eggert@cs.ucla.edu>
51071 * m4/glob.m4: New file.
51073 2005-05-29 Derek Price <derek@ximbiot.com>
51074 Paul Eggert <eggert@cs.ucla.edu>
51076 * lib/glob_.h, lib/glob.c: New files.
51078 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51080 * modules/fts (Files): Remove m4/inttypes-pri.m4.
51081 * modules/fts-lgpl (Depends-on): Remove gettext.
51083 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51085 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51086 and don't require gt_INTTYPES_PRI.
51088 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51090 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51092 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51093 the configuration hassle isn't worth it.
51094 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51095 (LONGEST_MODIFIER, PRIuMAX): Remove.
51097 2005-05-27 Bruno Haible <bruno@clisp.org>
51099 * lib/getlogin_r.h: Remove second include of <stddef.h>.
51101 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
51103 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51104 _POSIX_PTHREAD_SEMANTICS for Solaris.
51106 2005-05-25 Derek Price <derek@ximbiot.com>
51108 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51110 2005-05-25 Derek Price <derek@ximbiot.com>
51111 Paul Eggert <eggert@cs.ucla.edu>
51113 * modules/getlogin_r, m4/getlogin_r.m4: New files.
51114 * lib/getlogin_r.c, getlogin_r.h: New files.
51116 2005-05-25 Bruno Haible <bruno@clisp.org>
51117 Derek Price <derek@ximbiot.com>
51119 * lib/getlogin_r.h: Simplify API documentation.
51121 2005-05-23 Derek Price <derek@ximbiot.com>
51123 * modules/minmax (Files): Add m4/minmax.m4.
51124 (configure.ac): Add gl_MINMAX.
51126 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
51128 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51129 so that unistd-safer.h (GPL'ed code) need not be included.
51131 2005-05-22 Bruno Haible <bruno@clisp.org>
51133 * m4/minmax.m4: New file.
51134 Based on a patch by Derek Price <derek@ximbiot.com>.
51136 2005-05-22 Bruno Haible <bruno@clisp.org>
51138 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51139 (INT64_MIN): Fix definition.
51140 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51142 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51143 NEED_SIGNED_INT_TYPES.
51145 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51146 HAVE_SYSTEM_INTTYPES.
51148 2005-05-22 Bruno Haible <bruno@clisp.org>
51150 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51151 Also include <sys/param.h> if it defines MIN, MAX.
51152 Based on a patch by Derek Price <derek@ximbiot.com>.
51154 2005-05-21 Jim Meyering <jim@meyering.net>
51156 * modules/fts (Files): Add m4/inttypes-pri.m4.
51157 (Depends-on): Add lstat and remove gettext. Alphabetize.
51159 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51162 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51163 (setup_dir, free_dir): New functions.
51164 (enter_dir, leave_dir): Define trivial
51165 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
51166 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
51167 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51168 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51169 Move to fts-cycle.c.
51170 (fts_open): Use setup_dir.
51171 (fts_close): Use free_dir.
51172 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51173 This adds a label and some gotos, but the alternatives were messier.
51174 Check for memory allocation failure when entering a dir.
51175 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51176 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51177 (FTS): New member fts_cycle, that is a union that contains the
51178 old active_dir_ht and cycle_state. All uses changed to mention
51179 fts_cycle.ht and fts_cycle.state.
51180 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51181 fts.c, with the following changes:
51182 (setup_dir, free_dir): New functions.
51183 (enter_dir): Now returns bool. Return true if successful, false
51184 if memory exhausted. All callers changed.
51185 Do not bother partly cleaning up on
51186 memory allocation failure; that is free_dir's job.
51187 However, free ad if hash_insert fails, to avoid memory leak.
51188 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51189 fts->fts_options to see which union member to use.
51191 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51193 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51194 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51196 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51198 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51200 2005-05-20 Jim Meyering <jim@meyering.net>
51202 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51203 Now a macro, to pacify GCC.
51205 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51207 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51210 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51212 * lib/chown.c (rpl_chown): Return -1 on failure.
51214 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51216 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51217 Don't check for stddef.h.
51218 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51219 don't use its results.
51220 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51221 since we include them unconditionally. Don't require
51222 AM_STDBOOL_H, since stdbool is a prerequisite.
51223 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51224 since we assume C89 or better.
51225 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51226 as we don't use their results.
51227 Don't check for fchdir, memmove, memset, strrchr, as we use
51228 them unconditionally.
51229 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51230 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51232 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51234 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51235 Include <stddef.h> unconditionally, since we assume C89 now.
51236 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51237 * lib/fts.c: Include fts_.h first, to check interface.
51238 Do not include intprops.h; no longer needed.
51239 Include cycle-check.h and hash.h, since fts_.h no longer does.
51240 Remove unnecessary casts of closedir to void.
51241 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51242 decide whether to decrement nlinks.
51243 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51244 (FTS): Use struct hash_table * instead of Hash_table, so that
51245 we no longer need to include hash.h here.
51247 2005-05-18 Jim Meyering <jim@meyering.net>
51249 * modules/dirfd (License): Change to LGPL. Most of the code
51250 is already in the public domain.
51252 2005-05-18 Jim Meyering <jim@meyering.net>
51254 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51255 Reported by Yoann Vandoorselaere.
51257 2005-05-17 Jim Meyering <jim@meyering.net>
51259 * m4/fts.m4: New file, from coreutils.
51261 2005-05-17 Jim Meyering <jim@meyering.net>
51263 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51265 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51267 Sync from coreutils.
51268 * m4/unlinkdir.m4: New file.
51270 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51272 Sync from coreutils.
51273 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51274 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51275 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51276 White space changes only.
51277 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51279 * lib/yesno.c: Include getline.h, not ctype.h.
51280 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51281 Use getline to remove arbitrary restriction on response length.
51283 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51285 * config/srclist-update: Spell out "Street" in FSF postal
51286 mail address; this is the style the FSF seems to prefer.
51288 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51289 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51290 this updates FSF postal mail address.
51292 Sync from coreutils.
51293 * modules/unlinkdir: New file.
51294 * modules/yesno (Depends-on): Add getline.
51295 * MODULES.html.sh (File system functions): Add unlinkdir.
51297 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51299 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51301 Change the initial comment to refer to GPL, not LGPL.
51302 gnulib-tool will change it to LGPL as needed.
51304 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51305 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51306 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51307 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51308 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51309 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51310 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51311 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51312 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51313 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51314 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51315 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51316 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51317 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51318 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51319 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51320 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51321 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51322 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51323 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51324 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51325 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51326 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51327 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51328 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51329 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51330 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51331 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51332 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51333 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51334 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51335 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51336 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51337 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51338 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51339 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51340 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51341 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51342 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51343 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51344 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51345 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51346 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51347 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51348 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51349 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51350 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51351 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51352 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51353 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51354 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51355 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51356 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51357 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51358 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51359 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51360 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51361 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51362 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51363 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51364 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51365 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51366 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51367 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51368 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51369 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51370 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51371 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51372 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51373 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51374 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51375 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51376 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51377 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51378 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51379 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51380 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51381 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51382 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51383 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51384 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51385 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51386 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51387 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51388 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51389 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51390 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51391 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51392 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51393 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51394 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51395 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51396 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51397 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51398 lib/yesno.c, lib/yesno.h:
51399 Update FSF postal mail address.
51401 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51403 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51404 tests/test-memmem.c, tests/test-stpncpy.c:
51405 Update FSF postal mail address.
51407 2005-05-13 Bruno Haible <bruno@clisp.org>
51409 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51410 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51411 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51412 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51413 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51414 Add support for 64-bit integers in the MSVC compiler.
51416 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51418 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51420 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51422 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51424 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51426 * doc/getdate.texi (General date syntax): Don't say that date
51427 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51428 Problem reported by Nic Ferrier.
51430 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51432 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51433 specified in ai_socktype. Fix invalid ai_protocol
51434 check. ai_protocol is usually set to 0 or depending on
51435 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51436 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51437 ai_socktype / ai_protocol in the returned addrinfo structure.
51439 2005-05-10 Simon Josefsson <jas@extundo.com>
51441 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51442 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51444 2005-05-10 Karl Berry <karl@gnu.org>
51446 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51447 (from http://www.gnu.org/licenses).
51448 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51449 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51452 2005-05-10 Karl Berry <karl@gnu.org>
51454 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51455 (COPYING.DOC): remove.
51457 * config/srclist-update: new FSF address.
51459 2005-05-10 Derek Price <derek@ximbiot.com>
51461 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51464 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51465 Bruno Haible <bruno@clisp.org>
51467 * modules/inet_ntop: New file.
51468 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51471 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51472 Bruno Haible <bruno@clisp.org>
51474 * m4/inet_ntop.m4: New file.
51476 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51477 Bruno Haible <bruno@clisp.org>
51479 * lib/inet_ntop.h: New file.
51480 * lib/inet_ntop.c: New file, from glibc with modifications.
51482 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
51484 * modules/time_r (License): Change to LGPL.
51485 * modules/extensions (License): Change to LGPL. Actually,
51486 the license is more permissive than that, but currently gnulib-tool
51487 doesn't know how to handle more-permissive licenses.
51489 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51490 Problem reported by Dave Love.
51492 2005-05-08 Jim Meyering <jim@meyering.net>
51494 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51497 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
51499 * modules/argmatch (Depends-on): Add stdbool.
51500 * modules/backupfile (Depends-on): Likewise.
51501 * modules/chdir-long (Depends-on): Likewise.
51502 * modules/closeout (Depends-on): Likewise.
51503 * modules/cycle-check (Depends-on): Likewise.
51504 * modules/dirname (Depends-on): Likewise.
51505 * modules/fnmatch (Depends-on): Likewise.
51506 * modules/fsusage (Depends-on): Likewise.
51507 * modules/fwriteerror (Depends-on): Likewise.
51508 * modules/getcwd (Depends-on): Likewise.
51509 * modules/getloadavg (Depends-on): Likewise.
51510 * modules/hard-locale (Depends-on): Likewise.
51511 * modules/makepath (Depends-on): Likewise.
51512 * modules/mountlist (Depends-on): Likewise.
51513 * modules/nanosleep (Depends-on): Likewise.
51514 * modules/posixtm (Depends-on): Likewise.
51515 * modules/quotearg (Depends-on): Likewise.
51516 * modules/readtokens (Depends-on): Likewise.
51517 * modules/readtokens0 (Depends-on): Likewise.
51518 * modules/readutmp (Depends-on): Likewise.
51519 * modules/save-cwd (Depends-on): Likewise.
51520 * modules/strftime (Depends-on): Likewise.
51521 * modules/userspec (Depends-on): Likewise.
51522 * modules/utimecmp (Depends-on): Likewise.
51523 * modules/xgetcwd (Depends-on): Likewise.
51524 * modules/xnanosleep (Depends-on): Likewise.
51525 * modules/xstrtod (Depends-on): Likewise.
51526 * modules/yesno (Depends-on): Likewise.
51528 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
51530 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51533 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51535 Merge from coreutils. Among other things,
51536 add bulletproofing for cases where stdin, stdout, or stderr are closed.
51537 * lib/fd-safer.c: New file.
51538 * lib/fcntl-safer.h, open-safer.c: Remove.
51539 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51540 * lib/dup-safer.c: Include unistd-safer.h first.
51541 Don't include errno.h.
51542 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51543 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51544 * lib/file-type.c: Rely on file-type.h change.
51545 * lib/getloadavg.c: Include unistd-safer.h.
51546 (getloadavg): Use safer open.
51547 * lib/getusershell.c: Include "stdio-safer.h".
51548 (getusershell): Use safer fopen.
51549 * lib/long-options.c (long_options): Use NULL rather than 0.
51550 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51552 * lib/modechange.c: Likewise.
51553 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51554 (MODE_DONE): New constant.
51555 (struct mode_change): Remove 'next' member.
51556 (make_node_op_equals): New function; like the old one of the
51557 same name, except it allocates an array.
51558 (mode_compile, mode_create_from_ref): Use it.
51559 (mode_compile): Allocate result as an array, not a linked list.
51560 Parse octal string ourself, so that we catch mistakes like "+0".
51561 (mode_adjust): Arg is an array, not a linked list.
51562 * lib/modechange.c: Include stat-macros.h, xalloc.h.
51563 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51564 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51565 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51566 Remove. This is now stat-macros.h's job.
51567 (talloc): Remove. All callers replaced by xalloc, so that
51568 our invokers don't have to worry about reporting memory failures.
51569 (make_node_op_equals): Remove.
51570 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51572 (struct mode_change): Moved here from modechange.h.
51573 (mode_append_entry): Remove.
51574 (mode_compile): Remove MASKED_OPS arg, since it encouraged
51575 apps to have incorrect behavior. Use simpler algorithm for head
51576 and tail. Don't futz with umask; that's now the job of mode_adjust.
51577 Detect more invalid usages rather than having somewhat-random behavior.
51578 Don't insert an "a=" action, as that leads to incorrect behavior.
51579 (mode_compile, mode_create_from_ref): Return NULL on error instead
51580 of an enum, since now there's only one way to have an error. All
51582 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51583 at the correct time. Simplify calculation of "+u" and its ilk.
51584 Don't mishandle "+X".
51585 (mode_free): Remove "register" and localize decls.
51586 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51587 (struct mode_change): Move to modechange.c; callers don't
51588 need to see this stuff.
51589 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51590 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51591 (mode_change, mode_adjust): Reflect the new signatures noted above.
51592 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51593 that might redefine system include files.
51594 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51595 (my_usleep): Use NULL rather than (void *) 0.
51596 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51597 Use siginterrupt to specify that system calls should be interrupted.
51598 (rpl_nanosleep): Move initialization of suspended closer to call of
51600 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
51601 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
51602 (desirable_utmp_entry): New function.
51603 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51604 using x2nrealloc, to simplify logic.
51605 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51606 size calculation. Do not assume utmp file is a regular file.
51607 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51608 (READ_UTMP_CHECK_PIDS): New constant.
51609 * lib/save-cwd.c: Include unistd-safer.h.
51610 (save_cwd): Use fd_safer.
51611 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51612 [!_LIBC] Include "stat-macros.h" instead.
51613 * lib/unistd-safer.h (fd_safer): New decl.
51615 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51617 * modules/getloadavg (Depends-on): Add unistd-safer.
51618 * modules/getusershell (Depends-on): Add stdio-safer.
51619 * modules/lstat (Depends-on): Remove xalloc.
51620 * modules/mkstemp (Depends-on): Add stat-macros.
51621 * modules/modechange (Depends-on): Remove xstrtol.
51622 Add stat-macros, xalloc.
51623 * modules/save-cwd (Depends-on): Add unistd-safer.
51624 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51625 * modules/unistd-safer (Files): Add lib/fd-safer.c
51626 (Makefile.am): Remove lib_SOURCES.
51628 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51629 Remove fcntl-safer; unistd-safer supersedes it.
51631 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51633 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51635 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51636 (gl_PREREQ_CHOWN): Remove.
51637 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51638 it. Don't require AC_HEADER_STAT.
51639 (gl_PREREQ_LSTAT): Remove.
51640 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51641 Don't require AC_HEADER_STAT.
51642 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51643 (gl_PREREQ_RMDIR): Remove.
51644 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51645 mention stat-macros.h or AC_HEADER_STAT, since we'll make
51646 the stat-macros module a prerequisite.
51647 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51648 * m4/filemode.m4 (gl_FILEMODE): Likewise.
51649 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51650 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51651 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51653 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51654 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
51656 * m4/fcntl-safer.m4: Remove.
51657 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51658 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51659 Invoke gl_PREREQ_FD_SAFER.
51660 (gl_PREREQ_FD_SAFER): New macro.
51661 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51662 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51663 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51664 Remove duplicate call to AC_LIBOBJ(readutmp).
51665 (gl_PREREQ_READUTMP): Remove. All uses inlined.
51667 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51668 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
51670 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51672 * MODULES.html.sh (Misc): Add byteswap.
51674 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51676 * modules/getcwd (Depends-on): Add extensions.
51677 * modules/openat (Depends-on): Likewise.
51679 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51681 * modules/byteswap: New file.
51683 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51685 * m4/byteswap.m4: New file.
51687 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51689 * lib/byteswap_.h: New file.
51691 2005-04-25 Karl Berry <karl@gnu.org>
51693 * m4/gettext.m4: Update from GNU gettext 0.14.4.
51695 2005-04-25 Albert Chin <china@thewrittenword.com>
51697 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51700 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
51702 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51703 (func_ln_if_changed) Remove forcibly for no error message
51704 in case file does not exist.
51706 2005-04-19 Simon Josefsson <jas@extundo.com>
51708 * gnulib-tool (Options): Make --symlink mean --symbolic.
51710 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
51712 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
51714 2005-04-16 Simon Josefsson <jas@extundo.com>
51716 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51718 2005-04-15 Simon Josefsson <jas@extundo.com>
51720 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51722 2005-04-15 Simon Josefsson <jas@extundo.com>
51724 * gnulib-tool: Rename --symlink to --symbolic.
51726 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
51728 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51729 symbolic links to files instead of copying/moving. Add --aux-dir,
51730 specifying directory relative --dir where auxiliary build tools
51733 2005-04-14 Bruno Haible <bruno@clisp.org>
51735 * modules/allocsa (License): Change to LGPL.
51736 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51738 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
51740 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51741 that "UTC +1 second" continues to work. Problem reported
51742 by Dmitry V. Levin.
51743 (relunit_snumber): New rule.
51746 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
51748 * lib/getdate.y (universal_time_zone_table): New constant.
51749 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51750 universal_time_zone_table.
51751 (lookup_zone): Prefer universal_time_zone_table to
51752 local_time_zone_table, so that "GMT" time stamps are allowed in
51753 London during the summer. Problem reported by Ian Abbott.
51755 2005-04-12 Jim Meyering <jim@meyering.net>
51757 * lib/human.c (humblock): Set *options even when returning due to
51758 xstrtoumax conversion failure. Thanks to a used-uninitialized
51759 warning from gcc-4.
51761 2005-04-09 Jim Meyering <jim@meyering.net>
51763 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51764 -Wuninitialized: initialize tm0.tm_year.
51766 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51768 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51769 count, since there's no maximum. All uses changed.
51770 Add member dsts_seen.
51771 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51773 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51774 Use pc_rels_seen to decide whther a date is absolute.
51776 * lib/getdate.y (number): Don't overwrite year.
51777 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51780 2005-04-02 Simon Josefsson <jas@extundo.com>
51782 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51783 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51785 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51787 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51788 where no absolute path name can be longer than PATH_MAX.
51790 2005-03-27 Jim Meyering <jim@meyering.net>
51792 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51794 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51796 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51797 "one's complement" -> "ones' complement" in comment, as per Knuth.
51798 "value of type" -> "type or expression" in comment.
51799 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51801 2005-03-26 Jim Meyering <jim@meyering.net>
51804 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51805 Correct typos: s/or/of/.
51807 2005-03-26 Jim Meyering <jim@meyering.net>
51809 * modules/check-include-files: Move to ../ and rename to...
51810 * check-module: ...this.
51812 2005-03-25 Jim Meyering <jim@meyering.net>
51814 * modules/xvasprintf (Files): Add xalloc.h.
51816 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51818 * modules/gettext (Files): config/config.rpath ->
51819 build-aux/config.rpath
51820 * modules/iconv (Files): Likewise.
51821 Problem reported by Oskar Liljeblad.
51823 2005-03-23 Jim Meyering <jim@meyering.net>
51825 * modules/check-include-files: New script to check for
51826 missing dependencies, multiple includes, etc.
51828 * modules/c-strtold (Depends-on): Add xalloc.
51829 * modules/c-strtod (Depends-on): Add xalloc.
51830 * modules/hash (Depends-on): Add xalloc.
51831 (Files): Remove lib/xalloc.h.
51833 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51834 * modules/userspec (Files): Add lib/inttostr.h.
51836 2005-03-23 Jim Meyering <jim@meyering.net>
51838 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51840 2005-03-22 Jim Meyering <jim@meyering.net>
51842 * modules/stat-macros: New module.
51843 * modules/canonicalize, modules/euidaccess, modules/file-type,
51844 * modules/filemode, modules/lchown, modules/makepath,
51845 * modules/rmdir, modules/stat: Depend on new stat-macros module
51846 rather than listing lib/stat-macros.h manually.
51847 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51849 2005-03-22 Jim Meyering <jim@meyering.net>
51851 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51853 2005-03-22 Bruno Haible <bruno@clisp.org>
51855 * config/srclist.txt: Replace target directory 'config' with
51857 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51858 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51861 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
51863 * modules/chdir-long (Depends-on): Add mempcpy.
51865 * modules/acl, modules/backupfile, modules/c-strtod,
51866 modules/c-strtold, modules/canon-host, modules/canonicalize,
51867 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51868 modules/exclude, modules/exitfail, modules/file-type,
51869 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51870 modules/getdate, modules/getline, modules/getpagesize,
51871 modules/getpass, modules/getugroups, modules/group-member,
51872 modules/hard-locale, modules/hash, modules/human, modules/idcache,
51873 modules/inttostr, modules/long-options, modules/makepath,
51874 modules/md5, modules/memcasecmp, modules/memcoll,
51875 modules/modechange, modules/mountlist, modules/path-concat,
51876 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51877 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51878 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51879 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51880 modules/strftime, modules/strndup, modules/strverscmp,
51881 modules/timespec, modules/unlocked-io, modules/userspec,
51882 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51884 Remove lib_SOURCES line from Makefile.am section, as this is now
51885 done automatically by the corresponding Autoconf macro.
51887 2005-03-21 Jim Meyering <jim@meyering.net>
51889 Changes imported from coreutils.
51891 * lib/cycle-check.c: Don't include xalloc.h.
51893 * lib/path-concat.c: Don't include assert.h.
51894 (path_concat): Remove assertion that would have triggered
51895 for ABASE starting with more than one slash.
51896 Reported by Andreas Schwab.
51898 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51899 properly when ABASE is an absolute file name.
51900 Correct the description of this function.
51901 Include <assert.h>.
51902 Add an assertion and a test driver.
51903 This fixes a bug introduced on 2004-07-02.
51904 Andreas Schwab reported the resulting failure of cp --parents:
51905 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51907 2005-03-21 Jim Meyering <jim@meyering.net>
51909 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51910 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51912 2005-03-21 Jim Meyering <jim@meyering.net>
51913 and Paul Eggert <eggert@cs.ucla.edu>
51915 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51916 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51917 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51918 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51919 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51920 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51921 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51922 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51923 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51924 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51925 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51926 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51927 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51928 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51929 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51930 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51931 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51934 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
51936 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51937 (which shouldn't happen), generate nothing instead of returning 0
51938 immediately, so that nstrftime (NULL, ...) doesn't return 0.
51940 2005-03-16 Bruno Haible <bruno@clisp.org>
51942 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51943 HAVE_LONGLONG_64BIT.
51945 2005-03-16 Bruno Haible <bruno@clisp.org>
51947 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51948 HAVE_LONGLONG_64BIT.
51950 2005-03-16 Bruno Haible <bruno@clisp.org>
51952 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51953 HAVE_LONGLONG_64BIT.
51955 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51957 * lib/strftime.c (my_strftime): Prepend space to format so that we can
51958 reliably distinguish strftime failure from empty output on POSIX
51961 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51963 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51964 (iconv_string): Don't guess a size-zero buffer, as that might cause
51965 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
51966 result would be 'too large', where 'too large' is (heuristically)
51967 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51968 overflow concerns. This will prevent some unwanted malloc failures
51969 when the inputs are very large.
51971 2005-03-15 Karl Berry <karl@gnu.org>
51973 * config/srclist.txt (config.rpath): from gettext.
51974 * config/config.rpath: update.
51976 2005-03-15 Bruno Haible <bruno@clisp.org>
51978 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51981 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51984 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51987 2005-03-14 Simon Josefsson <jas@extundo.com>
51989 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51992 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
51994 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51995 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51997 * lib/strtol.c: Likewise.
51999 2005-03-14 Jim Meyering <jim@meyering.net>
52001 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52002 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52003 to be nonzero so that we (and caller) can detect the difference
52004 between a valid zero-length expansion and an error return, even
52005 when the underlying strftime fails before writing anything into
52008 2005-03-14 Bruno Haible <bruno@clisp.org>
52010 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52011 Update from GNU gettext 0.14.3.
52013 2005-03-10 Jim Meyering <jim@meyering.net>
52015 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52017 2005-03-10 Jim Meyering <jim@meyering.net>
52019 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52020 so that this module works on systems without fchdir.
52022 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
52024 Factor int-properties macros into a single file, except for
52025 glibc-related files.
52026 * lib/intprops.h: New file.
52027 * lib/getloadavg.c: Include it instead of limits.h.
52028 (INT_STRLEN_BOUND): Remove.
52029 * lib/human.c: Include intprops.h.
52030 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52031 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52033 * lib/inttostr.h: Include intprops.h instead of limits.h.
52034 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52035 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52036 for consistency with intprops.h.
52037 (time_t_is_integer, twos_complement_arithmetic): Use them.
52038 * lib/sig2str.h: Include <signal.h>, intprops.h.
52039 (INT_STRLEN_BOUND): Remove.
52040 * lib/strftime.c (TYPE_SIGNED): Remove.
52041 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52042 * lib/strtol.c: Adjust comments to match intprops.h.
52043 * lib/userspec.c: Include intprops.h.
52044 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52045 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52046 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52047 instead of rolling our own expressions.
52048 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52050 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
52052 (my_strftime): Do not mishandle years close to INT_MAX, by doing
52053 the right thing even if adding 1900 would overflow. Similarly
52054 for tm_mon + 1 and tm_yday + 1.
52055 Make %Y always equivalent to %C%y, and similarly for %G and %g.
52056 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52057 (DO_SIGNED_NUMBER): New macro.
52058 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52060 2005-03-07 Bruno Haible <bruno@clisp.org>
52062 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52064 2005-03-07 Bruno Haible <bruno@clisp.org>
52066 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52068 2005-03-04 Derek R. Price <derek@ximbiot.com>
52070 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52071 (func_import): Only replace files via --import when they have actually
52074 2005-03-03 Derek R. Price <derek@ximbiot.com>
52076 * m4/mmap-anon.m4: New file.
52077 * m4/pagealign_alloc.m4: New file.
52079 2005-03-03 Derek R. Price <derek@ximbiot.com>
52080 Bruno Haible <bruno@clisp.org>
52082 * modules/pagealign_alloc: New file.
52083 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52085 2005-03-03 Derek R. Price <derek@ximbiot.com>
52086 Bruno Haible <bruno@clisp.org>
52088 * lib/pagealign_alloc.h: New file.
52089 * lib/pagealign_alloc.c: New file.
52091 2005-03-03 Bruno Haible <bruno@clisp.org>
52093 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52094 Use an all-permissive copyright notice, recommended by RMS.
52096 2005-03-02 Bruno Haible <bruno@clisp.org>
52098 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52099 of AIX, the replacement has to be done only after <string.h> is
52100 included, therefore not in config.h. stpncpy.h does the replacement,
52101 and stpncpy.c uses it.
52103 2005-03-02 Bruno Haible <bruno@clisp.org>
52105 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52108 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52110 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52111 The workaround isn't strictly needed for POSIX conformance, and
52112 it's too much of a pain to configure and maintain. We'll ask
52113 people to fix their kernels instead.
52114 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52115 (NANOSLEEP_BUG_WORKAROUND): Remove.
52116 (xnanosleep): Remove the workaround.
52118 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52120 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52121 Reported by Derek Price.
52122 (Include): Add "timespec.h".
52124 * modules/xnanosleep (Depends-on): Remove gethrxtime.
52126 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52128 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52129 to detect nanosleep bug.
52131 2005-03-01 Bruno Haible <bruno@clisp.org>
52133 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52135 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
52137 * modules/gethrxtime: New file.
52138 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52139 (Depends-on): Add gethrxtime.
52140 (configure.ac): Add gl_XNANOSLEEP.
52141 (Makefile.am): Remove lib_SOURCES line.
52143 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52145 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52146 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52148 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52150 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52151 * lib/timespec.h (gettime): Return void, since it always
52152 succeeds now. All uses changed.
52153 * lib/gettime.c (gettime) Likewise.
52154 [HAVE_NANOTIME]: Prefer nanotime.
52155 Assume gettimeofday succeeds, as POSIX requires.
52156 Assime time () succeeds, since other code already does.
52157 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52158 (timespec_subtract): Remove.
52159 (NANOSLEEP_BUG_WORKAROUND): New constant.
52160 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52161 things considerably. Use it only on GNU/Linux hosts, since the
52162 workaround shouldn't be needed elsewhere.
52164 2005-02-24 Bruno Haible <bruno@clisp.org>
52166 * modules/gettext (Files): Add m4/glibc2.m4.
52168 2005-02-24 Bruno Haible <bruno@clisp.org>
52170 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52171 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52173 Update from GNU gettext 0.14.2.
52174 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52176 2005-02-24 Bruno Haible <bruno@clisp.org>
52178 * lib/localcharset.c: Update from GNU gettext 0.14.2.
52179 * lib/config.charset: Update from GNU gettext 0.14.2.
52181 2005-02-24 Bruno Haible <bruno@clisp.org>
52183 * lib/gettext.h: Update from GNU gettext 0.14.2.
52185 2005-02-23 Simon Josefsson <jas@extundo.com>
52187 * m4/iconvme.m4: New file.
52189 2005-02-23 Jim Meyering <jim@meyering.net>
52191 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52193 Thanks to Bruno Haible for catching it.
52195 2005-02-22 Simon Josefsson <jas@extundo.com>
52197 * modules/iconvme: New file.
52199 * MODULES.html.sh: Add iconvme.
52201 2005-02-22 Simon Josefsson <jas@extundo.com>
52203 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52205 2005-02-22 Simon Josefsson <jas@extundo.com>
52207 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52209 2005-02-22 Jim Meyering <jim@meyering.net>
52211 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52214 2005-02-20 Neil Conway <neilc@samurai.com>
52216 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52217 returned by OSX/Darwin if the specified buffer is not large
52218 enough for the hostname.
52220 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52222 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52223 pass it to _help, otherwise the latter coredumps trying to
52224 dereference state.root_argp.
52226 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52228 * modules/chdir-long (Depends-on): Add memrchr.
52229 * modules/memrchr (Files): Add lib/memrchr.h.
52230 (Include): "memrchr.h".
52232 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52234 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52236 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52238 * lib/memrchr.h: New file.
52239 * lib/chdir-long.c: Include it.
52240 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52241 Don't bother including stddef.h.
52243 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
52245 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52247 Include <sys/types.h>, for dev_t.
52248 (ME_DUMMY, ME_REMOTE): Move from here....
52249 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52250 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
52252 Include mountlist.h first, to test the interface.
52254 2005-01-29 Bruno Haible <bruno@clisp.org>
52256 * lib/progname.c (program_name): Initialize.
52257 Needed when linking statically on MacOS X.
52259 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52261 Sync from coreutils.
52262 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52263 (Depends-on): Add c-strtod.
52264 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52266 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52268 Sync from coreutils.
52269 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52271 Remove files that are specific to coreutils.
52272 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52274 2005-01-28 Bruno Haible <bruno@clisp.org>
52276 * modules/javacomp: New file.
52277 * MODULES.html.sh (Java): Add javacomp.
52279 2005-01-28 Bruno Haible <bruno@clisp.org>
52281 * m4/javacomp.m4: New file, from GNU gettext.
52283 2005-01-28 Bruno Haible <bruno@clisp.org>
52285 * lib/javacomp.sh.in: New file, from GNU gettext.
52286 * lib/javacomp.h: New file, from GNU gettext.
52287 * lib/javacomp.c: New file, from GNU gettext.
52289 2005-01-26 Simon Josefsson <jas@extundo.com>
52291 * lib/gai_strerror.c: Use GPL in header.
52293 2005-01-26 Bruno Haible <bruno@clisp.org>
52295 * modules/javaexec: New file.
52296 * MODULES.html.sh (Java): Add javaexec.
52298 2005-01-26 Bruno Haible <bruno@clisp.org>
52300 * m4/javaexec.m4: New file, from GNU gettext.
52302 2005-01-26 Bruno Haible <bruno@clisp.org>
52304 * lib/javaexec.sh.in: New file, from GNU gettext.
52305 * lib/javaexec.h: New file, from GNU gettext.
52306 * lib/javaexec.c: New file, from GNU gettext.
52308 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52310 * modules/lchown (Depends-on): Remove lchown.h
52312 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52314 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52315 must be defined if the header file was not found, in order
52316 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52318 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52320 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52321 initializers for struct pentry_state.
52322 (__argp_error): Check return value of __asprintf
52323 (__argp_failure): Translate error message
52325 * lib/argp-parse.c: Removed braces around the expansion of N_()
52327 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52329 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52330 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52331 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52332 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52333 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52334 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52335 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52336 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52337 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52338 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52339 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52340 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52341 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52342 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52343 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52344 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52345 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52346 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52347 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52348 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52349 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52350 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52351 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52352 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52353 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52354 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52355 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52356 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52357 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52358 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52359 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52360 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52361 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52362 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52363 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52364 Use an all-permissive copyright notice, recommended by RMS.
52366 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52368 * modules/chdir-long (Depends-on): Remove mempcpy.
52370 2005-01-21 Jim Meyering <jim@meyering.net>
52372 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52373 same value as for Solaris 9.
52375 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52376 component length. This included changing the parameter to be
52377 of type `char *' rather than `char const *'.
52378 * lib/chdir-long.h (chdir_long): Update prototype.
52380 * lib/openat.c (fdopendir, fstatat): New functions.
52381 * lib/openat.h: Include headers required for use of DIR and struct
52383 [AT_SYMLINK_NOFOLLOW]: Define.
52384 (fdopendir, fstatat): Add prototypes.
52386 2005-01-21 Bruno Haible <bruno@clisp.org>
52388 * modules/classpath: New file.
52389 * MODULES.html.sh (Java): Add classpath.
52391 2005-01-21 Bruno Haible <bruno@clisp.org>
52393 * lib/classpath.h: New file, from GNU gettext.
52394 * lib/classpath.c: New file, from GNU gettext.
52396 2005-01-20 Simon Josefsson <jas@extundo.com>
52398 * modules/version-etc-fsf: New file.
52400 2005-01-20 Simon Josefsson <jas@extundo.com>
52402 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52403 * lib/version-etc.c: Remove version_etc_copyright.
52404 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52405 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52407 2005-01-20 Simon Josefsson <jas@extundo.com>
52409 * lib/base64.h (isbase64): Add.
52411 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52412 using a unsigned prototype, don't inline.
52413 (base64_decode): Use it.
52415 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52417 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52420 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52422 * lib/save-cwd.c (save_cwd): Remove code to support the case
52423 where fchdir is missing or flaky.
52425 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52427 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52429 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52431 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52432 AC_LIBSOURCES now does this.
52433 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52434 with new ullong_max module.
52436 2005-01-19 Bruno Haible <bruno@clisp.org>
52438 * modules/sh-quote: New file.
52439 * MODULES.html.sh (Executing programs): Add sh-quote.
52441 2005-01-19 Bruno Haible <bruno@clisp.org>
52443 * lib/sh-quote.h: New file, from GNU gettext.
52444 * lib/sh-quote.c: New file, from GNU gettext.
52446 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52448 Merge from coreutils.
52449 * m4/ullong_max.m4: New file.
52450 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52451 (gl_MACROS): Assume localeconv exists.
52453 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52455 Merge changes from coreutils, as described below in several
52456 changelogs dated today.
52458 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52459 (O_DIRECTORY): Remove; not needed here, since "." must be
52460 a directory. All uses removed.
52461 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52462 universal on Suns, and we also need to test for IRIX.
52463 Revamp code to use 'if' rather than '#if'.
52464 Avoid unnecessary comparison of cwd->desc to 0.
52466 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52467 for known valid error numbers rather than observed invalid ones.
52469 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52471 * modules/ullong_max: New file.
52473 * modules/chdir-long, modules/openat: New files.
52474 * modules/save-cwd (Depends-on): Depend on chdir-long.
52475 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52477 2005-01-18 Jim Meyering <jim@meyering.net>
52479 Merge from coreutils.
52480 * m4/chdir-long.m4, m4/openat.m4: New files.
52481 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52482 save-cwd.h. Add AC_LIBOBJ for save-cwd.
52483 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52484 is sane and DOES follow symlinks. Besides, testing 20 different
52485 systems found no broken chown implementations.
52486 Prompted by a change in rsync's copy of this macro.
52487 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52489 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52491 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52492 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52493 NULL-means-set-to-current-time semantics.
52494 Remove temporary file immediately, rather than waiting
52495 for configure's at-exit trap code to do it.
52497 2005-01-18 Jim Meyering <jim@meyering.net>
52499 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52501 * lib/utimens.c (futimens): Account for the fact that futimes
52502 can also fail with errno == ENOSYS or errno == ENOENT.
52503 Patch from Dmitry V. Levin.
52505 Change the name of the robust chdir function from chdir to chdir_long.
52506 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52507 (restore_cwd): Use chdir_long, not chdir.
52508 * lib/chdir-long.c: Renamed from chdir.c.
52509 * lib/chdir-long.h: Renamed from chdir.h.
52510 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52513 2005-01-18 Bruno Haible <bruno@clisp.org>
52515 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52516 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52517 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52518 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52519 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52520 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52521 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52522 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52523 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52524 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52525 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52526 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52527 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52528 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52529 Use an all-permissive copyright notice, recommended by RMS.
52531 2005-01-18 Bob Proulx <bob@proulx.com>
52533 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52534 simplify offsetof() macro construct to avoid compile failure with
52535 native HP-UX 11.0 ANSI C compiler.
52537 2005-01-17 Bruno Haible <bruno@clisp.org>
52539 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52540 redundant because stpncpy.m4 takes care of it.
52542 2005-01-17 Bruno Haible <bruno@clisp.org>
52544 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52546 2005-01-17 Bruno Haible <bruno@clisp.org>
52548 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52551 2005-01-17 Bruno Haible <bruno@clisp.org>
52553 * lib/fwriteerror.h (fwriteerror): Change specification to include
52555 * lib/fwriteerror.c: Include <stdbool.h>.
52556 (fwriteerror): At the end, close the file stream. Record whether
52557 stdout was already closed.
52559 2005-01-17 Bruno Haible <bruno@clisp.org>
52561 * lib/execute.c (environ): Declare if needed.
52562 * lib/pipe.c (environ): Likewise.
52563 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52565 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52567 * modules/argp: Depend on vsnprintf
52569 2005-01-10 Jim Meyering <jim@meyering.net>
52571 * modules/closeout (Depends-on): Add atexit.
52573 2005-01-06 Bruno Haible <bruno@clisp.org>
52575 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52577 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
52579 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52580 definitions to be after all include files, to avoid collisions.
52581 Problem reported by Bob Proulx.
52583 2005-01-04 Jim Meyering <jim@meyering.net>
52585 Changes imported from coreutils.
52586 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52587 as the mkstemp template, use a temporary directory and an
52588 8.3-friendly template to avoid trouble on systems like DJGPP.
52589 Reported by Juan M. Guerrero via Stepan Kasal.
52590 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52591 close. Remove the temporary directory right away, rather than waiting
52592 for configure's at-exit trap code to do it.
52593 Suggestion from Stepan Kasal.
52595 2005-01-01 Simon Josefsson <jas@extundo.com>
52597 * gnulib-tool: Print #include directives when --import'ing.
52599 2004-12-28 Simon Josefsson <jas@extundo.com>
52601 * tests/test-base64.c: Include required header files. Remove
52604 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52606 * modules/error (Depends-on): Remove gettext.
52608 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52610 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52611 not needed. This removes a dependency on the gettext module.
52612 [defined _LIBC]: Do not include <libintl.h>; not needed.
52614 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52616 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52617 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52619 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52621 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52624 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52626 * modules/getdate (Depends-on): Remove alloca-opt.
52628 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52630 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52632 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52634 * lib/argp-parse.c: Include <stddef.h>.
52635 (alignof, alignto): New macros.
52636 (parser_init): Don't assume that void * is aligned sufficiently
52639 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52640 need to extend the stack.
52641 (YYINITDEPTH): New macro, so that the initial stack isn't overly
52644 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52646 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52648 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52650 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52651 (2004-10-24) change. Apparently this was a false alarm.
52653 * modules/getdate: Depend on alloca-opt, not alloca.
52655 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52657 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52658 Remove now-obsolete comment about AIX.
52659 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52660 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52661 (YYMAXDEPTH): New macro.
52663 2004-12-18 Simon Josefsson <jas@extundo.com>
52665 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52667 2004-12-18 Bruno Haible <bruno@clisp.org>
52669 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52671 2004-12-18 Bruno Haible <bruno@clisp.org>
52673 * lib/fatal-signal.c (fatal_signals): Make non-const.
52674 (init_fatal_signals): New function.
52675 (uninstall_handlers, install_handlers): Ignore signals that were set to
52677 (at_fatal_signal): Call init_fatal_signals.
52678 (init_fatal_signal_set): Likewise. Ignore signals that were set to
52680 Reported by Paul Eggert.
52682 2004-12-18 Bruno Haible <bruno@clisp.org>
52684 * doc/alloca.texi: New file.
52685 * doc/alloca-opt.texi: New file.
52687 2004-12-17 Jim Meyering <jim@meyering.net>
52689 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52690 Otherwise, install-sh could exit with improper exit status when
52691 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
52693 2004-12-16 Simon Josefsson <jas@extundo.com>
52695 * tests/test-base64.c: Add license.
52697 2004-12-15 Stepan Kasal <address@hidden>
52699 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52701 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
52703 * modules/getcwd (Files): Add m4/d-ino.m4.
52704 Suggested by Mark D. Baushke.
52706 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52708 * lib/getdate.y (textint): New member "negative".
52709 (time_zone_hhmm): New function.
52710 Expect 14 shift-reduce conflicts, not 13.
52711 (o_colon_minutes): New rule.
52712 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52713 (yylex): Set the "negative" member of signed numbers.
52715 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52717 * doc/getdate.texi (Time of day items, Time zone items):
52718 Describe new formats +00:00, UTC+00:00.
52720 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
52722 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52723 spurious "-l"s. Problem reported by Stepan Kasal.
52725 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
52727 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52728 in Autoconf 2.59. Problem reported by Mark D. Baushke.
52730 2004-12-04 Simon Josefsson <jas@extundo.com>
52732 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52733 Vandoorselaere <yoann@prelude-ids.org>.
52735 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52737 Changes imported from coreutils.
52738 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52740 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52742 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52744 Changes imported from coreutils.
52745 * lib/hard-locale.c: Assume <locale.h> exists.
52746 Include "strdup.h".
52747 (GLIBC_VERSION): New macro.
52748 (hard_locale): Assume setlocale exists.
52749 Rewrite to avoid #ifdef.
52750 Use strdup rather than malloc + strcpy.
52751 * lib/human.c: Assume <locale.h> exists.
52752 (human_readable): Assume localeconv exists.
52754 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52756 * modules/hard-locale (Depends-on): Add strdup.
52758 2004-12-01 Jakub Jelinek <jakub@redhat.com>
52760 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52761 convert T2, not T. (Imported from libc.)
52763 2004-11-30 Simon Josefsson <jas@extundo.com>
52765 * modules/restrict (License): Change to LGPL.
52767 2004-11-30 Simon Josefsson <jas@extundo.com>
52769 * m4/restrict.m4: Add copyright and copying conditions.
52771 2004-11-30 Simon Josefsson <jas@extundo.com>
52773 * m4/base64.m4: New file.
52775 2004-11-30 Simon Josefsson <jas@extundo.com>
52777 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52780 * tests/test-base64.c: New file.
52782 * modules/base64: New file.
52784 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52786 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52787 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52789 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52791 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52793 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52794 (__getcwd.c): Don't restore errno; glibc doesn't.
52795 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52796 first, falling back to our code only if its results look suspicious.
52797 Ensure that the resulting buffer is only as large as necessary.
52799 * lib/readutmp.c: Include readutmp.h first.
52800 Include <errno.h>, since readutmp.h no longer does that.
52801 * lib/readutmp.h: Don't include <errno.h>,
52802 <sys/param.h>, <time.h>; not needed to establish interface.
52803 (errno): Remove decl.
52804 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52805 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52806 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52808 2004-11-28 Simon Josefsson <jas@extundo.com>
52810 * lib/base64.h, base64.c: New file.
52812 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52814 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52816 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52818 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52819 (Depends-on): Remove pathmax, same. Add mempcpy.
52820 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52821 (Makefile.am): Append getcwd.h to lib_SOURCES.
52822 (Include): Add getcwd.h.
52823 (Maintainer): Change from Jim Meyering to "all, glibc",
52824 since getdate now uses intended-for-glibc code.
52825 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52826 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52828 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52830 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52831 HP's ANSI C compiler.
52832 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52833 Declaring int functions causes warnings on some modern systems and
52834 shouldn't be needed to compile on ancient ones.
52835 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52838 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52839 with the following changes.
52840 (__set_errno): Parenthesize properly.
52841 Include <stdbool.h>.
52842 (MIN, MAX, MATCHING_INO): New macros.
52843 (__getcwd): Define with prototype, not K&R form.
52844 Use heuristics to allocate default buffer on stack if possible.
52845 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52846 behavior, and to avoid the PATH_MAX limit when computing
52848 Use MATCHING_INO to compare inode number to file.
52849 Check for arithmetic overflow in size calculations.
52850 Fix bug in reallocation of dot array that caused getcwd to fail
52851 on directories nested deeper than 75.
52852 Be more careful about saving errno on error.
52853 Do not use realloc; use only free+malloc, as this is a bit
52854 more flexible and avoids a needless copy operation.
52855 Do not inspect st_dev and st_ino for symbolic links; POSIX
52856 doesn't specify the latter.
52857 Check for closedir errors.
52858 Avoid needless casts.
52859 Use "#ifdef weak_alias" around weak_alias, to be like other
52861 The following changes to getcwd.c have effect only when used in
52862 gnulib; they have no effect inside glibc proper.
52863 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52864 as alloca isn't used.
52865 (alloca, __alloca): Likewise.
52866 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52867 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52868 unconditionally, as gnulib assumes C89 or better.
52869 Do not include <sys/param.h>.
52870 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52871 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52873 (NULL) [!defined NULL]: Remove; we assume C89 or better.
52874 Include <dirent.h> in a way that is compatible with modern Autoconf.
52875 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52876 New macros, if not already defined.
52877 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52878 Use "_LIBC", not "defined _LIBC", for consistency.
52879 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52881 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52882 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
52883 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52884 credit only to Jim Meyering and adjust the copyright dates.
52885 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52886 <stdlib.h>, <unistd.h>, "pathmax.h".
52887 Instead, include "xgetcwd.h" (first) and "getcwd.h".
52888 (INITIAL_BUFFER_SIZE): Remove.
52889 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52891 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52893 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52894 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
52895 Use the _ONCE methods, for efficiency.
52896 Check for fcntl.h. In test program, include <errno.h>
52897 and <fcntl.h> if available. Remove old K&R cruft from
52898 test program. Check for common errors in GNU/Linux,
52899 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
52900 don't do AC_LIBOBJ, as that's getcwd.m4's job.
52901 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52902 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
52904 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
52905 accommodate new getcwd.c.
52906 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52907 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52908 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52909 that's all we need now.
52911 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52913 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52914 argp-parse.c depends on getopt internals, that means we should
52915 always use our getopt, to be on the safe side.
52916 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52917 order not to spoil the result of an eventual previous invocation
52918 of gl_GETOPT_SUBSTITUTE.
52920 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52922 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52923 redefinition warnings. To avoid them, include the defines
52924 in `#if !defined __need_getopt ... #endif'. The only place
52925 where __getopt_argv_const is used is in definitions
52926 of getopt_long and getopt_long_only below, which are as well
52927 protected by `#ifndef __need_getopt'.
52928 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52929 __need_getopt after including <stdio.h> and <unistd.h> These
52930 headers might have defined it.
52932 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52934 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52936 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52938 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52939 (futimens): New function, which uses futimes if available.
52940 (futimens, utimens): Support timespec==NULL, with same semantics
52941 as utime and utimens.
52942 * lib/utimens.h (futimens): New decl.
52944 2004-11-23 Jim Meyering <jim@meyering.net>
52946 * lib/getopt_.h: Remove trailing blanks.
52948 2004-11-23 Jim Meyering <jim@meyering.net>
52950 * lib/__fpending.c: Add comment.
52952 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
52954 * modules/canonicalize (Depends-on): Add xreadlink.
52955 Problem reported by James Youngman.
52957 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
52959 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52961 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52962 optopt): Use them instead of invoking ## directly; otherwise, the
52963 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52965 2004-11-19 Bruno Haible <bruno@clisp.org>
52967 * lib/strtok_r.c: Move comments from here...
52968 * lib/strtok_r.h: ... to here.
52970 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52972 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52973 implementations that mishandle size_t overflow.
52975 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52977 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52978 might fail. Problem reported by Yoann Vandoorselaere.
52979 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52980 implementations that mishandle size_t overflow.
52982 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52984 * modules/canon-host (Depends-on): Add strdup.
52986 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52988 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52990 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52992 * lib/canon-host.c: Include "strdup.h".
52993 (canon_host): Use getaddrinfo if available, so that IPv6 works.
52994 Use strdup instead of malloc/strcpy to duplicate strings.
52996 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52997 (human_space_before_unit): New constant.
52998 * lib/human.c (human_readable): Support it.
53000 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53001 (xgetcwd): Set errno correctly when failing.
53002 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53003 the failure is actually due to a PATH_MAX problem.
53005 Further getopt changes to make it more likely that glibc will
53006 buy the changes back.
53007 * lib/getopt.c (POSIXLY_CORRECT): New constant.
53008 (getopt): Use it, so to preserve glibc semantic
53009 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53010 when compiling for libc.
53011 * lib/getopt_.h (__getopt_argv_const): Bring it back.
53012 (getopt_long, getopt_long_only): Use it.
53014 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53015 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
53016 (getopt): Argv is now char * const *, as per standard.
53017 (_getopt_internal_r, _getopt_internal): Argv is now char **,
53018 not char *__getopt_argv_const *.
53019 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53020 _getopt_long_only_r): Likewise.
53021 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53022 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53023 _getopt_long_r, _getopt_long_only_r): Likewise.
53024 * lib/getopt_.h (__getopt_argv_const): Remove.
53025 (getopt): Argv is now char * const *, as per standard.
53027 * lib/getdate.y (tORDINAL): New token.
53028 (day, relunit): Allow it for relative times.
53029 (relative_time_table): Use tORDINAL for ordinals.
53031 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53033 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53034 Document that "second" isn't allowed as an ordinal number.
53036 2004-11-16 Jim Meyering <jim@meyering.net>
53038 * modules/closeout (Depends-on): Add fpending.
53040 2004-11-15 Jim Meyering <jim@meyering.net>
53042 * lib/closeout.c: Include "__fpending.h" once again.
53043 Include <stdbool.h>.
53044 (close_stdout): Don't fail just because stdout was closed initially,
53045 since some programs don't write to stdout in the normal course of
53046 operation (other than --version and --help), and we don't want this
53047 function to make e.g. `touch file >&-' fail.
53048 But do fail if it was closed and someone has tried to write to it.
53049 E.g., `printf foo >&-' must fail.
53051 2004-11-13 Jim Meyering <jim@meyering.net>
53053 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53055 2004-11-12 Simon Josefsson <jas@extundo.com>
53057 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53058 small doc fix is still pending.
53060 2004-11-11 Simon Josefsson <jas@extundo.com>
53062 * modules/strtok_r: New file.
53064 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53067 2004-11-11 Simon Josefsson <jas@extundo.com>
53069 * m4/strtok_r.m4: New file.
53071 * m4/getopt.m4: Replace opterr.
53073 2004-11-11 Simon Josefsson <jas@extundo.com>
53075 * lib/strtok_r.h, strtok_r.c: New file.
53077 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53079 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53080 of replacing opterr, getopt, etc. This should handle the
53081 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53083 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53085 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53086 we can stop lying to compilers about the constness of argv when we
53087 are compiled outside glibc.
53088 (getopt, getopt_long, getopt_long_only): Use it.
53089 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53090 _getopt_internal, getopt): Likewise.
53091 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53092 _getopt_long_only_r): Likewise.
53093 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53094 _getopt_long_r, _getopt_long_only_r): Likewise.
53096 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53097 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53098 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53099 the other external symbols.
53100 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53101 declaration, since the above renaming now works around collisions.
53103 2004-11-11 Jim Meyering <jim@meyering.net>
53105 * lib/linebreak.c: Remove trailing blanks.
53106 * lib/alloca_.h: Likewise.
53107 * lib/acosl.c: Likewise.
53108 * lib/euidaccess.c: Likewise.
53109 * lib/allocsa.h: Likewise.
53111 2004-11-10 Simon Josefsson <jas@extundo.com>
53113 * m4/getaddrinfo.m4: New file.
53115 2004-11-10 Simon Josefsson <jas@extundo.com>
53117 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53119 2004-11-10 Simon Josefsson <jas@extundo.com>
53121 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53124 * modules/getaddrinfo: New file.
53126 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53128 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53130 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53132 * lib/mktime.c (SHR): New macro, which is a portable
53133 substitute for >> that should work even on Crays.
53134 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53135 Problem reported by Mark D. Baushke in
53136 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53137 * lib/getdate.y (SHR): Likewise.
53139 * lib/strftime.c (SHR): Likewise.
53141 * lib/quotearg.c (struct quoting_options): Use unsigned int for
53142 quote_these_too, so that right shifts are well defined. All uses
53145 2004-11-10 Jim Meyering <jim@meyering.net>
53147 Ensure that no close failure goes unreported.
53148 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
53149 return early when it seems there's nothing to flush.
53150 Don't include __fpending.h.
53152 2004-11-10 Jim Meyering <jim@meyering.net>
53154 * modules/closeout (Depends-on): Remove fpending.
53156 2004-11-10 Jim Meyering <jim@meyering.net>
53158 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53160 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53162 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
53164 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53165 and AC_REQUIRE when possible, to avoid duplicate checks.
53166 Check for <wchar.h>.
53168 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53170 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53172 2004-11-09 Bruno Haible <bruno@clisp.org>
53174 * m4/sockpfaf.m4: New file.
53176 2004-11-05 Bruno Haible <bruno@clisp.org>
53178 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53179 Reported by Mark D. Baushke <mdb@cvshome.org>.
53181 2004-11-04 Bruno Haible <bruno@clisp.org>
53183 2004-09-11 Bruno Haible <bruno@clisp.org>
53184 * allocsa.valgrind: New file.
53185 2004-02-06 Bruno Haible <bruno@clisp.org>
53186 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53187 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53188 Reported by Christopher Seip <chris.seip@hp.com>.
53190 2004-11-04 Bruno Haible <bruno@clisp.org>
53192 * modules/allocsa (Files): Add lib/allocsa.valgrind.
53193 (Makefile.am): Distribute it.
53195 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
53197 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53198 with errno == ERANGE if the buffer is too small.
53199 Problem reported by Mark D. Baushke.
53201 2004-11-03 Albert Chin <china@thewrittenword.com>
53202 Paul Eggert <eggert@cs.ucla.edu>
53204 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53205 equivalent, substitute $ac_type for equivalent type rather than
53206 blindly using uint32_t *always* which won't work if uint32_t is not
53207 available. Define _UINT32_T to work around typedef of uint32_t if
53208 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53211 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53213 * m4/jm-macros.m4: Sync from coreutils.
53214 (gl_MACROS): Check for mbrlen, for pathchk.
53215 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53217 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53219 * lib/xreadlink.c (MAXSIZE): New macro.
53220 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
53221 size does not exceed MAXSIZE. Avoid cast.
53222 As suggested by Mark D. Baushke in
53223 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53224 if readlink fails with buffer size just under MAXSIZE, try again
53227 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53229 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53231 2004-11-02 Derek R. Price <derek@ximbiot.com>
53232 and Paul Eggert <eggert@cs.ucla.edu>
53234 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53235 (get_date): Overparenthesize to avoid GCC warning.
53237 2004-11-02 Bruno Haible <bruno@clisp.org>
53239 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53242 2004-11-02 Bruno Haible <bruno@clisp.org>
53244 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53245 function returns void.
53247 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53249 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53250 fflush_unlocked, flockfile, funlockfile, funlockfile,
53251 fputs_unlocked, putc_unlocked.
53253 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53255 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53256 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53259 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53261 * modules/getdate (Files): Add doc/getdate.texi.
53262 (Depends-on): Add setenv, xalloc.
53264 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53266 * lib/getdate.y: Add support for TZ="foo" within a date string.
53267 Fix some bugs near time_t boundaries. Reject dates with
53268 out-of-range components, e.g., "Sept 31".
53269 Include <stdlib.h>, "setenv.h", "xalloc.h".
53270 (ISDIGIT_LOCALE): Remove; unused.
53271 Note that the TZ and time functions used here are not reentrant.
53272 (mktime_ok, get_tz): New functions.
53273 (TZBUFSIZE): New constant.
53274 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53275 This requires that we sometimes generate our own TZ="XXX..." setting.
53277 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53279 * doc/getdate.texi: New file, from coreutils with modifications for
53280 the new TZ parsing.
53282 2004-10-27 Derek R. Price <derek@ximbiot.com>
53284 * lib/mktime.c (not_equal_tm): Remove redundant check.
53286 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53288 * modules/regex (lib_SOURCES): Add regex.c.
53289 Reported by James Youngman in
53290 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53292 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53294 * lib/getdate.y: Use Bison 1.875 features, and some minor
53295 code cleanups. This change does not affect semantics.
53296 Don't include <stdlib.h>; no longer needed.
53297 Don't include unlocked-io.h; only the "#if TEST" code uses
53298 stdio, and performance isn't crucial there.
53299 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53300 Bison 1.875 features as described below.
53301 All uses of "PC." replaced by "pc->".
53302 (YYSTYPE): Add a forward declaration.
53303 (yylex, yyerror): Use full prototypes in forward decls.
53304 Use "%pure-parser" rather than obsolescent "%pure_parser".
53305 Use %parse-param and %lex-param instead of obsolescent
53306 YYPARSE_PARAM and YYLEX_PARAM.
53307 (meridian_table, month_and_day_table, time_units_table,
53308 relative_time_table, time_zone_table, military_table,
53309 lookup_zone, lookup_word, get_date):
53310 Use NULL instead of 0 where appropriate.
53311 (to_hour): Avoid abort (), to avoid a dependency on
53313 (yyerror, yylex): Now accepts parser_control * arg.
53314 (main) [TEST]: Use '\0' rather than 0 for char.
53316 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53318 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53320 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53322 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53323 It's now the caller's responsibility to handle the case where
53324 !HAVE_GETPAGESIZE && !defined getpagesize.
53326 * lib/mktime.c (leapyear): Arg is long int, not int.
53328 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53330 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53332 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53334 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53335 missing. Problem reported by James Youngman.
53337 2004-10-16 Simon Josefsson <jas@extundo.com>
53339 * gnulib-tool: Fix comments. Fix parse problem.
53340 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53342 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53344 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53345 implementation of getopt_long. Problem reported by Alexander Taler in:
53346 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53348 2004-10-15 Bruno Haible <bruno@clisp.org>
53350 * gnulib-tool: Untabify. Initialize supplied_libname.
53351 (func_usage): More homogenous output.
53352 (func_modules_transitive_closure, func_modules_to_filelist,
53353 func_emit_lib_Makefile_am): New functions.
53354 (func_import): New function, extracted from big case statement. Use
53355 func_get_license, func_modules_transitive_closure,
53356 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53357 opt_lgpl. Don't use test -a, as it's not portable.
53358 (func_create_testdir): Use func_modules_transitive_closure,
53359 func_modules_to_filelist, func_emit_lib_Makefile_am.
53361 2004-10-15 Bruno Haible <bruno@clisp.org>
53363 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53365 2004-10-15 Bruno Haible <bruno@clisp.org>
53367 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53368 the portions belonging to each module.
53369 Suggested by Derek Robert Price <derek@ximbiot.com>.
53371 2004-10-12 Simon Josefsson <jas@extundo.com>
53373 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53374 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53377 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53379 * modules/vsnprintf: New file.
53381 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53383 * m4/vsnprintf.m4: New file.
53385 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53387 * lib/vsnprintf.h: New file.
53388 * lib/vsnprintf.c: New file.
53390 2004-10-11 Bruno Haible <bruno@clisp.org>
53392 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53395 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
53397 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53399 2004-10-07 Bruno Haible <bruno@clisp.org>
53401 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53402 fits into the provided buffer.
53404 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
53406 * lib/diacrit.c, diacrit.h: Add GPL notice.
53408 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53410 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53411 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53412 This avoids a potential constant-folding bug.
53414 2004-10-05 Bruno Haible <bruno@clisp.org>
53416 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53417 for the declaration of strsep.
53419 2004-10-05 Bruno Haible <bruno@clisp.org>
53421 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53423 2004-10-04 Simon Josefsson <jas@extundo.com>
53425 * modules/memmem: New file.
53426 * tests/test-memmem.c: New file.
53427 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53429 2004-10-04 Simon Josefsson <jas@extundo.com>
53431 * m4/memmem.m4: New file.
53433 2004-10-04 Simon Josefsson <jas@extundo.com>
53435 * lib/memmem.h: New file.
53436 * lib/memmem.c: New file, taken from glibc.
53438 2004-10-04 Simon Josefsson <jas@extundo.com>
53440 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53441 '#ifdef USE_UNLOCKED_IO'.
53443 2004-10-04 Simon Josefsson <jas@extundo.com>
53445 * config/srclist.txt: Add memmem from glibc.
53447 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53449 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53451 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53452 modules/exclude, modules/getdate, modules/getline,
53453 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53454 modules/getusershell, modules/linebuffer, modules/md5,
53455 modules/mountlist, modules/posixtm, modules/readtokens,
53456 modules/readutmp, modules/regex, modules/sha1,
53457 modules/version-etc, modules/yesno:
53458 Remove dependency on unlocked-io.
53460 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53462 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53464 * m4/unlocked-io.m4: Add copyright notice.
53465 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53467 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53469 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53470 * lib/xmalloc.c (xmemdup): Likewise.
53471 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53472 XFREE): Remove these long-obsolescent macros.
53473 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53474 * lib/xstrdup.c: Remove.
53476 * lib/regex.c (re_comp): Cast gettext return value to char *,
53477 Problem reported by Martin Neitzel via Mark D. Baushke.
53479 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53481 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53482 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53483 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53484 regex.c, sha1.c, version-etc.c, yesno.c:
53485 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53486 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53487 the includer's responsibility.
53489 Sync from coreutils.
53491 * lib/modechange.c (mode_compile): Don't decrement a pointer that
53492 points to the start of a string, as the C Standard says the
53493 resulting behavior is undefined.
53495 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53496 simple -> simple_backups, numbered_existing ->
53497 numbered_existing_backups, numbered -> numbered_backups
53498 to avoid shadowing problems. All uses changed.
53499 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53500 * lib/backupfile.c (check_extension, numbered_backup):
53501 Rename locals to avoid shadowing 'basename'.
53502 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53505 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53506 * lib/.cvsignore: Add getopt.h.
53508 2004-10-04 Bruno Haible <bruno@clisp.org>
53510 * modules/README: New file.
53511 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53514 2004-10-02 Jim Meyering <jim@meyering.net>
53516 * lib/dirfd.h, getpagesize.h: Add copyright notice.
53518 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53520 * modules/strsep: New file.
53522 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53524 * m4/strsep.m4: New file.
53526 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53528 * lib/strsep.h: New file.
53529 * lib/strsep.c: New file.
53531 2004-10-01 Simon Josefsson <jas@extundo.com>
53533 * lib/snprintf.c (snprintf): Handle size==0.
53535 2004-10-01 Simon Josefsson <jas@extundo.com>
53536 Bruno Haible <bruno@clisp.org>
53538 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53539 (snprintf): Declare 'args'.
53541 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
53543 * lib/snprintf.c: Remove comments as to why each header is needed.
53545 2004-10-01 Bruno Haible <bruno@clisp.org>
53547 * MODULES.html.sh: Add strsep.
53549 2004-09-30 Simon Josefsson <jas@extundo.com>
53551 * modules/snprintf: New file.
53553 2004-09-30 Simon Josefsson <jas@extundo.com>
53555 * m4/snprintf.m4: New file.
53557 2004-09-30 Simon Josefsson <jas@extundo.com>
53559 * lib/snprintf.h, lib/snprintf.c: New files.
53561 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53563 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53564 (hol_entry_help): Never translate an empty string.
53565 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53566 * lib/argp.h (OPTION_NO_TRANS): New option.
53568 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53570 * modules/argp (Maintainer): Replace Simon Josefsson
53571 by Sergey Poznyakoff.
53573 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53575 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53576 changes merged back into glibc.
53578 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53580 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53582 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
53584 * lib/xvasprintf.c: Include xalloc.h.
53585 (xvasprintf): Use xalloc_die, not xmalloc_die.
53587 2004-09-29 Bruno Haible <bruno@clisp.org>
53589 * modules/alloca-opt: New file, derived from modules/alloca.
53590 * modules/allocsa: Depend on alloca-opt instead of alloca.
53591 * modules/setenv: Likewise.
53592 * modules/vasnprintf: Likewise.
53593 * MODULES.html.sh: Add alloca-opt.
53595 2004-09-28 Simon Josefsson <jas@extundo.com>
53597 * gnulib-tool: New parameter --lgpl, to asseert that modules are
53598 LGPL, and to replace license template from GPL to LGPL.
53600 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53602 * modules/dummy: Change license to LGPL.
53604 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53606 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53608 2004-09-24 Simon Josefsson <jas@extundo.com>
53610 * modules/minmax (License): Change from GPL to LGPL.
53612 2004-09-23 Simon Josefsson <jas@extundo.com>
53614 * gnulib-tool (--import): Typo.
53616 2004-09-23 Simon Josefsson <jas@extundo.com>
53618 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53620 2004-09-22 Bruno Haible <bruno@clisp.org>
53622 * modules/*: Add 'License' field.
53623 * gnulib-tool: Accept --extract-license option.
53624 (func_get_license): New function.
53626 2004-09-21 Bruno Haible <bruno@clisp.org>
53628 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53629 Reported by Simon Josefsson.
53631 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53633 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53634 gl_AC_TYPE_LONG_LONG.
53636 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53638 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53640 2004-09-18 Simon Josefsson <jas@extundo.com>
53641 and Paul Eggert <eggert@cs.ucla.edu>
53643 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53644 calls with autoreconf. Define GL_LIB.
53646 2004-09-14 Karl Berry <karl@gnu.org>
53648 * config/srclist.txt: unsync setenv.c, sigh.
53650 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53652 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53653 Problem reported by Bruno Haible in:
53654 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53656 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53658 * config/srclist.txt: Comment out argp-pvh.c.
53660 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
53662 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53663 in case some system header has #define'd it. Problem reported by
53664 Soeren D. Schulze in
53665 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53667 2004-09-09 Karl Berry <karl@gnu.org>
53669 * regex.[ch]: delete from the root. These were supposed to be
53670 synced with emacs cvs, but this has not happened for about
53671 a year, and anyway nothing else uses emacs regex.[ch].
53672 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53673 lib/regex[.ch] is untouched.
53675 2004-09-09 Bruno Haible <bruno@clisp.org>
53677 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53679 2004-09-09 Bruno Haible <bruno@clisp.org>
53681 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53683 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53685 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53687 * modules/xvasprintf: New file.
53688 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53690 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53692 * lib/xvasprintf.h: New file.
53693 * lib/xvasprintf.c: New file.
53694 * lib/xasprintf.c: New file.
53696 2004-09-08 Bruno Haible <bruno@clisp.org>
53698 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53700 2004-09-08 Bruno Haible <bruno@clisp.org>
53702 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53703 length is > INT_MAX.
53704 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53707 2004-09-08 Bruno Haible <bruno@clisp.org>
53709 * lib/stdint_.h: New file, taken from GNU clisp.
53711 2004-09-08 Bruno Haible <bruno@clisp.org>
53712 Oskar Liljeblad <oskar@osk.mine.nu>
53714 * modules/stdint: New file.
53715 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53717 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53719 Import from coreutils.
53720 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53721 strings on unbounded length. alloca's performance benefits aren't
53722 that important here.
53723 (V_STRDUP): Remove.
53724 (parse_with_separator): New function, with most of the internals
53725 of the old parse_user_spec. Allow user to omit both user and group,
53726 for compatibility with FreeBSD.
53727 Clone only the user name, not the entire spec.
53728 Do not set *uid, *gid unless entirely successful.
53729 Avoid memory leak in some failing cases.
53730 Fix regression for USER.GROUP reported by Dmitry V. Levin in
53731 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53732 (parse_user_spec): Rewrite to use parse_with_separator.
53734 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53736 * modules/userspec: Don't depend on alloca.
53738 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53740 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53742 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
53744 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53745 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53746 utimecmp, utimens, xnanosleep. Rename sha to sha1.
53748 2004-08-16 Simon Josefsson <jas@extundo.com>
53750 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53751 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53752 Add --dry-run for --import.
53753 Let user provided command line parameters override configure.ac
53756 2004-08-12 Simon Josefsson <jas@extundo.com>
53758 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53759 as discussed with Paul Eggert in threads rooted at
53760 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53762 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53763 Before, the test was empty, and relied on ELIDE_CODE in source
53765 (gl_PREREQ_GETOPT): New macro.
53766 (gl_GETOPT): Use them.
53768 2004-08-12 Simon Josefsson <jas@extundo.com>
53770 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53771 * lib/getopt_.h: Renamed from getopt.h.
53773 2004-08-12 Simon Josefsson <jas@extundo.com>
53775 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53776 Change default library name from libfoo to libgnu.
53777 Now, if you have a configure.ac that says:
53780 gl_MODULES(error getopt etcetera)
53782 you can import all you need by running:
53783 ../gnulib/gnulib-tool --import
53785 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53786 (Makefile.am): Rewrite, use logic from argz.
53787 (Include): Use <getopt.h> instead of "getopt.h".
53789 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53791 * modules/argp (Files): Add m4/unlocked-io.m4.
53792 (Depends-on): Add extensions.
53794 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53796 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53797 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53798 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53799 Check for program_invocation_name, program_invocation_short_name,
53800 flockfile, funlockfile, features.h, _getopt_long_only_r.
53802 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53804 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53805 its complicated substitute.
53806 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53807 and program_invocation_name.
53808 (__argp_basename) [!_LIBC]: Remove; the only use was
53809 replaced by its body.
53810 (__argp_short_program_name): Change condition from
53811 !defined __argp_short_program_name to
53812 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53813 to match argp-namefrob.h.
53814 (__argp_failure): Don't assume strerror_r returns char *.
53815 * lib/argp-parse.c (N_): Define unconditionally.
53816 (argp_default_options): Fill out initializers with 0 to avoid
53819 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53821 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53824 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53826 Merge from coreutils.
53828 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53830 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53831 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53833 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53835 Merge from coreutils.
53837 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53838 wmemchr or wmemcpy. Problem reported by Robert Dahlem
53839 for Reliant Unix 5.43.
53841 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53842 (union fooround): Use uintmax_t, not long int.
53843 The rest is a merge from libc:
53844 [defined _LIBC]: Include <shlib-compat.h>.
53845 (_obstack) [defined _LIBC]: Remove after 2.3.4.
53847 * lib/settime.c (settime): Recode to avoid warning with
53850 * lib/strverscmp.c: Convert to UTF-8.
53852 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53854 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53857 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53859 * modules/xalloc-die: New file.
53860 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53862 * modules/md5 (Files): Add m4/uint32_t.m4.
53863 * modules/sha1: Renamed from modules/sha.
53865 Rename lib/sha.h to lib/sha1.h.
53866 Rename lib/sha.c to lib/sha1.c.
53867 Rename m4/sha.m4 to m4/sha1.m4.
53868 (lib_SOURCES): Likewise.
53869 (configure.ac): Rename gl_SHA to gl_SHA1.
53870 (Include): sha.h -> sha1.h.
53872 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53874 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53875 * m4/sha1.m4: Renamed from sha.m4.
53876 (gl_SHA1): Renamed from gl_SHA. All uses changed.
53878 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53880 * lib/obstack.h (obstack_empty_p):
53881 Don't assume that chunk->contents is suitably aligned.
53882 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53883 Likewise. Problem reported by Benno in
53884 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53886 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53887 readable. This could be improved further but it'd take some work.
53889 2004-08-08 Simon Josefsson <jas@extundo.com>
53891 * modules/xgethostname (Depends-on): Remove exit and error (not
53894 * modules/getpass-gnu: Add getpass.h.
53895 (Depends-on): Add stdbool.
53896 * modules/getpass: Add getpass.h.
53898 2004-08-08 Simon Josefsson <jas@extundo.com>
53900 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53901 Check getpass declaration.
53903 2004-08-08 Simon Josefsson <jas@extundo.com>
53905 * lib/xgethostname.c: Don't include error.h (not used).
53907 * lib/getpass.h: Add.
53908 * lib/getpass.c: Include getpass.h first.
53910 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
53912 * lib/xalloc-die.c: New file.
53913 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53915 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53916 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53918 (_, N_, xalloc_die): Move to xalloc-die.c.
53919 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53920 so that we needn't mess with xalloc_msg_memory_exhausted.
53922 * lib/sha1.h: Renamed from sha.h.
53923 (SHA1_H): Renamed from _SHA_H.
53924 (sha1_ctx): Renamed from sha_ctx.
53925 (sha1_init_ctx): Renamed from sha_init_ctx.
53926 (sha1_process_block): Renamed from sha_process_block.
53927 (sha1_process_bytes): Renamed from sha_process_bytes.
53928 (sha1_finish_ctx): Renamed from sha_finish_ctx.
53929 (sha1_read_ctx): Renamed from sha_read_ctx.
53930 (sha1_stream): Renamed from sha_stream.
53931 (sha1_buffer): Renamed from sha_buffer.
53932 * lib/sha1.c: Likewise; renamed from sha.c.
53933 Do not include <sys/types.h>.
53934 Include <stddef.h> rather than <stdlib.h>.
53936 2004-08-08 Bruno Haible <bruno@clisp.org>
53938 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53939 FILESYSTEM_PREFIX_LEN.
53940 * lib/progreloc.c: Likewise.
53941 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53943 2004-08-06 Simon Josefsson <jas@extundo.com>
53945 * modules/progname (Depends-on): Don't depend on stdbool.
53947 2004-08-06 Simon Josefsson <jas@extundo.com>
53949 * modules/getsubopt: New file.
53950 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53953 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53955 More merge from coreutils.
53957 * m4/utimens.m4, m4/utimecmp.m4: New files.
53958 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53959 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53960 prereq.m4, sha.m4: Import changes from coreutils.
53962 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53964 More merge from coreutils.
53965 * modules/raise, modules/readtokens0, modules/utimens:
53966 * modules/utimecmp, module/xnanosleep: New files.
53967 * modules/strftime: Add lib/strftime.h.
53968 Change include from <time.h> to "strftime.h".
53969 * modules/yesno: Add lib/yesno.h.
53970 * modules/backupfile: Remove lib/addext.c.
53971 * modules/euidaccess: Add stat-macros.h.
53972 * modules/canonicalize, modules/euidaccess,
53973 modules/filemode, modules/lchown, modules/makepath,
53974 modules/rmdir, modules/stat: Likewise.
53976 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53979 * lib/argp-help.c (make_hol, hol_append): Don't assume that
53980 SIZE_MAX is a valid preprocessor constant.
53981 (__argp_basename): Change from "#ifndef _LIBC"
53982 to "#ifndef __argp_short_program_name", so that
53983 we don't compile these functions for tar.
53985 More merges from coreutils.
53986 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53987 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53988 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53989 * lib/addext.c: Remove; no longer needed.
53990 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53991 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53992 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53993 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53994 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53995 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53996 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53997 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53998 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53999 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54000 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54001 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54002 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54003 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54004 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54005 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54006 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54007 Import changes from coreutils.
54009 2004-08-05 Simon Josefsson <jas@extundo.com>
54011 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54013 2004-08-05 Simon Josefsson <jas@extundo.com>
54015 * m4/getsubopt.m4: New file.
54017 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54019 Merge from coreutils.
54021 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54022 * m4/getcwd-path-max.m4: New files.
54024 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54025 FILESYSTEM_PREFIX_LEN ->
54026 FILE_SYSTEM_PREFIX_LEN.
54027 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54028 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54029 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54030 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54032 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54033 prerequisite modules now handle the DOS stuff.
54034 Don't check for unistd.h.
54036 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54038 Merge from coreutils.
54040 * lib/.gdb-history: Remove; this doesn't belong here.
54042 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54043 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54044 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54045 * lib/getcwd.c: New files.
54047 * lib/dirname.h: Include <stdbool.h>.
54048 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54049 for consistency with POSIX terminology. All uses changed.
54050 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54051 (strip_trailing_slashes): Use bool for booleans.
54052 * lib/stripslash.c (strip_trailing_slashes): Likewise.
54054 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54055 sometimes returns a positive errno value even when it succeeds.
54056 (print_errno_message) [!LIBC]: Fall back on strerror if
54057 __strerror_r fails.
54059 * lib/path-concat.c (mempcpy): Don't define if a system header defines
54060 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54061 (longest_relative_suffix): New function.
54062 (path_concat): Use it. Assume first argument is not NULL.
54063 Port to DOS. Omit redundant separators.
54064 Report an error instead of returning NULL.
54065 Use mempcpy instead of memcpy.
54066 (xpath_concat): Remove: not declared or used.
54068 * lib/same.h: Include <stdbool.h>
54069 (same_name): Return bool, not int.
54070 * lib/same.c (same_name): Likewise.
54071 (errno): Don't declare; we assume C89 or better now.
54073 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54074 if not already defined.
54076 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54077 * lib/dup-safer.c (errno): Likewise.
54079 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54081 Merge from coreutils.
54082 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54083 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54084 * modules/path-concat: Don't depend on strdup.
54086 2004-08-03 Simon Josefsson <jas@extundo.com>
54088 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54089 * lib/progname.h: Don't include stdbool.h.
54091 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54093 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54094 * MODULES.html.sh (func_all_modules): Remove fatal.
54096 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54098 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54100 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54102 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54105 2004-08-02 Simon Josefsson <jas@extundo.com>
54107 * lib/getsubopt.h: New file, with comments from Bruno Haible.
54108 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54109 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54111 2004-08-01 Simon Josefsson <jas@extundo.com>
54113 * lib/xgetdomainname.c: Include stdlib.h, for free().
54115 2004-07-19 Bruno Haible <bruno@clisp.org>
54117 * MODULES.html.sh (func_all_modules): Add dummy.
54119 2004-07-16 Simon Josefsson <jas@extundo.com>
54121 * modules/dummy: New file.
54123 2004-07-16 Simon Josefsson <jas@extundo.com>
54125 * lib/dummy.c: New file.
54127 2004-07-16 Bruno Haible <bruno@clisp.org>
54129 * lib/backupfile.h: Add extern "C" for C++.
54130 * lib/closeout.h: Likewise.
54131 * lib/copy-file.h: Likewise.
54132 * lib/findprog.h: Likewise.
54133 * lib/full-write.h: Likewise.
54134 * lib/pathname.h: Likewise.
54135 * lib/progname.h: Likewise.
54136 * lib/stpcpy.h: Likewise.
54137 * lib/stpncpy.h: Likewise.
54138 * lib/strcase.h: Likewise.
54139 * lib/strstr.h: Likewise.
54140 * lib/xalloc.h: Likewise.
54142 * lib/mbswidth.h: Add extern "C" for C++.
54143 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54145 2004-07-13 Robert Millan <robertmh@gnu.org>
54147 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54149 2004-07-09 Simon Josefsson <jas@extundo.com>
54151 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
54152 failed without this.)
54154 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54156 * modules/chown (Files): Add lib/fchown-stub.c, since
54157 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54159 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54161 * lib/fchown-stub.c: New file.
54163 2004-06-24 Jim Meyering <jim@meyering.net>
54165 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54167 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54169 * modules/argz: Omit "#include".
54171 * MODULES.html.sh (func_all_modules): Add calloc, to match
54172 2004-06-01 addition of calloc module.
54174 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54176 * m4/argz.m4: New file, which is autoupdated from libtool.
54178 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54180 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54183 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54185 * config/srclist-update: Don't insist on "USA." before the
54186 close-comment, as libtool omits the period and puts the */ on a
54188 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54189 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54191 2004-06-22 Gary V. Vaughan <gary@gnu.org>
54193 * modules/argz: New file.
54194 * MODULES.html.sh (func_all_modules): Add argz.
54196 2004-06-12 Jim Meyering <jim@meyering.net>
54197 and Paul Eggert <eggert@cs.ucla.edu>
54199 * modules/hash (Files): Add lib/xalloc.h.
54200 * modules/pipe (Depends-on): Add wait-process.
54201 * modules/stat (Depends-on): Add xalloc.
54202 * modules/userspec (Files): Add lib/userspec.h.
54205 Upgrade from gettext-0.13.
54206 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54207 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54208 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54210 2004-06-10 Jim Meyering <jim@meyering.net>
54212 * lib/calloc.c: New file.
54214 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
54216 * lib/getdate.y (yylex): Allow space between sign and number.
54217 Problem reported by Dan Jacobson.
54219 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54221 Merge from coreutils CVS.
54223 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54224 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54225 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54226 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54227 xstrtol.m4: Fix copyright date and/or serial number.
54229 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54230 See if we need an fchown replacement.
54231 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54232 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54233 and use the replacement function if we detect either defect.
54235 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54238 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54239 and Jim Meyering <jim@meyering.net>
54241 Merge from coreutils CVS.
54243 * lib/stat-macros.h: New file, with contents from file-type.h
54244 and coreutils' system.h.
54245 * lib/file-type.c: Include "stat-macros.h".
54246 * lib/file-type.h (file_type): Move all macro definitions to new file,
54249 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54250 Wrap old code with this conditional.
54251 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54252 function that does not dereference symlinks.
54253 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54255 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54256 dependency problems.
54257 (xreadlink): Accept new arg SIZE, for efficiency.
54258 All decls and uses changed.
54259 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54261 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54262 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54264 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54267 2004-06-01 Jim Meyering <jim@meyering.net>
54269 * m4/calloc.m4: New file.
54271 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54273 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54274 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54275 Also, fix a typo in a diagnostic.
54277 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54279 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54280 or AC_FUNC_REALLOC.
54282 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54284 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54285 macros to be defined.
54286 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54287 the allocator returns NULL because the requested size is zero.
54289 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54291 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54292 var. Add comment explaining why libc still defines it. This
54293 merges the following patch from glibc:
54294 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54296 2004-05-20 Andreas Schwab <schwab@suse.de>
54298 * m4/free.m4: Replace free if it not known to work, not the other
54301 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54303 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54304 present in glibc since revision 1.1 of this file.
54305 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54306 obstack_alignment_mask, obstack_alloc, obstack_base,
54307 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54308 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54309 obstack_grow0, obstack_init, obstack_int_grow,
54310 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54311 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54312 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54313 nonexistent functions.
54315 2004-05-18 Karl Berry <karl@gnu.org>
54317 * config/srclist.txt: break link for vasnprintf.c.
54319 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54321 Port obstack to the AS/400, where pointers are 16 bytes wide and
54322 you cannot cast an integer to a valid pointer. This patch is
54323 currently waiting to be integrated into glibc; see
54324 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54326 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54327 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54328 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54329 (struct obstack): temp member is now a union of a pointer and
54330 an integer, instead of an integer. All integer uses changed.
54331 This does not affect the physical layout of struct obstack,
54332 except on hosts (like the AS/400) where the size or alignment of
54333 void * is greater than that of ptrdiff_t.
54334 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54335 __STDC__)]: Store temporary in pointer member of union, not
54337 * lib/obstack.c: Include <stddef.h>, for offsetof.
54338 (struct fooalign): Remove; it doesn't need a name.
54339 (union fooround): Change double to long double, and add void *.
54340 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54341 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54342 not a macro. Hence the values are always int; so remove all
54343 casts-to-int in uses.
54345 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54347 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54348 we can get this patch merged into glibc.
54350 2004-05-17 Derek R. Price <derek@ximbiot.com>
54351 Paul Eggert <eggert@cs.ucla.edu>
54353 * m4/argp: Depend on alloca.
54355 2004-05-17 Derek R. Price <derek@ximbiot.com>
54356 Paul Eggert <eggert@cs.ucla.edu>
54358 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54361 2004-05-17 Bruno Haible <bruno@clisp.org>
54363 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54364 precision that consists of a '.' followed by an empty digit string.
54365 Patch by Tor Lillqvist <tml@iki.fi>.
54367 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54369 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54370 for backward compatibility with older code. We need our own
54371 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54372 it under some other name, and our alloca.h will define it.
54374 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54375 Derek Price <derek@ximbiot.com>
54377 * lib/alloca.c: Include <alloca.h>, to get our interface.
54378 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54379 include <alloca.h> first. Use C89 prototype for alloca; this
54380 requires including <stddef.h> for size_t. Use extern "C" if C++.
54381 Use #elif for simplicity, since we can assume C89 now.
54382 Don't try to source the system alloca.h since it will not be found
54383 and to prevent recursively including its replacement.
54384 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54385 * lib/regex.c: Likewise.
54387 2004-05-16 Derek Price <derek@ximbiot.com>
54388 Paul Eggert <eggert@cs.ucla.edu>
54390 getline cleanup. This changes the getndelim2 API: both order of
54391 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54394 * lib/getline.c: Don't include stddef.h or stdio.h, since our
54395 interface does that.
54396 (getline): Always use getdelim, so that we don't have two
54397 copies of this code.
54398 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54400 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54401 (GETNDELIM2_MAXIMUM): New macro.
54402 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
54403 instead of the old practice of delim2==0. All callers changed.
54404 Return -1 on overflow, instead of returning junk.
54405 Do not set *linesize unless allocation succeeds.
54406 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54407 that we include sys/types.h.
54408 * lib/getnline.h: Likewise.
54409 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54410 (getndelim2): Reorder arguments.
54411 * lib/getnline.c (getnline, getndelim):
54412 Don't discard the NMAX argument.
54413 (getnline): Invoke getndelim, to avoid code duplication.
54414 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54415 of (size_t) -1 by callers of the getnline family.
54417 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54419 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54420 Check for gettimeofday.
54421 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54422 Check for settimeofday, stime.
54424 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54426 * lib/nanosleep.c (suspended): Change its type from int to
54427 sig_atomic_t volatile.
54428 (first_call): Make it private to rpl_nanosleep, and have it
54429 be zero initially as that's a bit faster.
54430 (my_usleep): Round up fractional times instead of truncating them,
54431 as this is the usual meaning for 'sleep'.
54433 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54435 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54436 (ENOSYS): Define if not defined.
54437 (settime): Fall back on stime if it exists and settimeofday fails.
54438 But don't bother with fallbacks if a method fails with errno == EPERM.
54440 2004-05-11 Jim Meyering <jim@meyering.net>
54442 Prior to this change, the save_cwd caller required read access to the
54443 current directory on most systems (ones with the fchdir function).
54445 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54446 fails, try write-only, and finally, resort to using xgetcwd.
54448 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54450 * lib/obstack.c, obstack.h: Import changes from libc.
54452 2004-04-28 Bruno Haible <bruno@clisp.org>
54454 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54455 also implicitly appends .exe to executables.
54456 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54457 accepts Windows pathnames.
54458 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54459 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54460 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54461 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54462 Reported by Derek Robert Price <derek@ximbiot.com>.
54464 2004-04-21 Karl Berry <karl@gnu.org>
54466 * config/srclist.txt (localcharset.c): break sync.
54468 2004-04-20 Paul Eggert <eggert@twinsun.com>
54470 * m4/host-os.m4: Add a copyright notice.
54472 2004-04-20 Jim Meyering <jim@meyering.net>
54474 Change UTILS_ to gl_ in AC_DEFINE'd names.
54475 Change utils_- and jm_-prefixed variables, too.
54476 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54477 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54478 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54480 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54481 Don't emit trailing blanks.
54482 Also rename jm_-prefixed variables to have gl_ prefix.
54484 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54485 Also rename jm_-prefixed variables to have gl_ prefix.
54487 * m4/jm-macros.m4: Reflect the renamings.
54488 * m4/prereq.m4: Likewise.
54490 2004-04-20 Jim Meyering <jim@meyering.net>
54492 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54495 2004-04-20 Jim Meyering <jim@meyering.net>
54496 Bruno Haible <bruno@clisp.org>
54498 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54499 memory when realloc fails.
54501 2004-04-19 Jim Meyering <jim@meyering.net>
54503 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54504 now that readutmp.c may call `free (0)'.
54506 2004-04-19 Bruno Haible <bruno@clisp.org>
54508 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54509 * m4/inttypes_h.m4: Likewise.
54510 * m4/stdint_h.m4: Likewise.
54511 * m4/intmax_t.m4: Likewise.
54512 * m4/uintmax_t.m4: Likewise.
54514 2004-04-18 Jim Meyering <jim@meyering.net>
54516 * m4/prereq.m4: Don't forbid jm_ prefix.
54518 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54519 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54520 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54521 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54522 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54523 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54524 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54525 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54526 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54527 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54528 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54529 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54530 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54531 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54532 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54533 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54534 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54535 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54536 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54538 2004-04-18 Jim Meyering <jim@meyering.net>
54540 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54541 failure, don't leak memory and do call END_UTMP_ENT.
54543 2004-04-16 Jim Meyering <jim@meyering.net>
54545 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
54546 coreutils' stat program.
54547 (gl_PREREQ): Don't require jm_PREREQ_STAT.
54549 2004-04-11 Paul Eggert <eggert@twinsun.com>
54551 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54553 (CHAR_BIT): Remove, since we assume C89.
54554 Include <stdint.h> if available, as per current Autoconf CVS advice.
54556 2004-03-31 Jim Meyering <jim@meyering.net>
54558 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54559 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54560 * m4/xalloc.m4: Likewise.
54562 2004-03-30 Paul Eggert <eggert@twinsun.com>
54564 Merge from coreutils.
54566 * m4/inttostr.m4: New file.
54567 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54568 Require AM_STDBOOL_H and gl_TIMESPEC instead.
54569 Require gl_CLOCK_TIME.
54570 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54572 2004-03-30 Paul Eggert <eggert@twinsun.com>
54574 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54575 not bool, to be more consistent with Unix conventions.
54576 Suggested by Bruno Haible.
54578 Merge from coreutils.
54580 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54581 * lib/umaxtostr.c: New files.
54583 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54584 the usual <time.h> dance.
54585 (get_date): Change signature to support fractional time stamps.
54586 All callers changed.
54587 * lib/getdate.y: Include "getdate.h" first, as we can now
54588 assume C89 and don't need to worry about 'const'.
54589 Similarly, include "unlocked-io.h" near start, not in middle.
54590 Include <limits.h>.
54591 (textint.value): Use long int rather than int.
54592 (textint.digits): Use size_t rather than int.
54593 (BILLION, LOG10_BILLION): New constants.
54594 (parser_control): New member rel_ns. Members day_ordinal,
54595 time_zone, month, day, hour, minutes, rel_year, rel_month,
54596 rel_day, rel_hour, rel_minutes, rel_seconds
54597 are now long int, not int. Member seconds is now struct timespec,
54598 not int. New member timespec_seen. Members dates_seen, days_seen,
54599 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54601 (%union.intval): Now long int, not int.
54602 New member timespec.
54603 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54604 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54605 (spec): Now is a timespec or an item list.
54606 (timespec, items): New nonterminals.
54607 (time, rel, relunit, number, get_date):
54608 Add support for fractional seconds.
54609 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54610 (gmtime, localtime, mktime): Remove decls; not needed with C89.
54611 (to_hour): First arg is now long int, not int.
54612 (to_year): Returns long int, not int.
54613 Don't treat year -70 like 70.
54614 (tm_diff): Returns long int, not int.
54615 (lookup_word): Use bool instead of int when appropriate.
54616 (yylex): Use size_t for count, not int.
54617 Detect overflow when parsing large integer constants.
54618 Add support for fractions.
54619 (get_date): Make pointers 'const' if possible.
54620 Use more-portable code to detect integer overflow.
54621 (main) [TEST]: Adjust to above changes. Test for localtime failure.
54622 Don't use ctime; it's not reliable if the year has >4 digits.
54624 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54625 This is for compatibility with BSD.
54627 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54628 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54629 From coreutils' system.h.
54631 * lib/userspec.c: Don't include "posixver.h".
54632 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54633 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54634 compatible extension. Simplify code by removing a boolean int
54635 that was always nonzero if a string was nonnull.
54637 2004-03-30 Jim Meyering <jim@meyering.net>
54639 Merge from coreutils.
54641 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54642 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54643 on some systems one must include <grp.h> before it.
54644 Reported by Christian Krackowizer.
54646 2004-03-30 Jim Meyering <jim@meyering.net>
54648 Merge from coreutils.
54650 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54652 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54653 an empty input stream.
54655 * lib/readtokens.c: Include <stdbool.h>.
54656 (readtoken): Use `size_t' rather than int/long.
54657 All callers adjusted.
54658 Use `bool' rather than `int' where appropriate.
54659 Use memset rather than an explicit loop.
54660 Use x2nrealloc rather than xrealloc.
54661 Allow the use of `\0' as a delimiter.
54662 (readtokens): Likewise.
54663 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54665 2004-03-30 Jim Meyering <jim@meyering.net>
54667 * m4/realloc.m4: Remove file, since now it does no more than
54668 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54669 the `configure.ac' section of module/realloc.
54670 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54672 2004-03-30 Bruno Haible <bruno@clisp.org>
54674 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54677 2004-03-29 Paul Eggert <eggert@twinsun.com>
54679 Merge changes to getloadavg.c from coreutils and Emacs.
54681 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54682 Define to an expression, not to the empty string.
54683 Include cloexec.h and xalloc.h.
54684 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54685 Use set_cloexec_flag rather than rolling our own.
54686 * lib/cloexec.c, lib/cloexec.h: New files.
54688 2004-03-29 Paul Eggert <eggert@twinsun.com>
54690 * m4/cloexec.m4: New file.
54692 2004-03-18 Paul Eggert <eggert@twinsun.com>
54694 * lib/getopt.h: Sync with libc CVS.
54696 2004-03-18 Paul Eggert <eggert@twinsun.com>
54697 Bruno Haible <bruno@clisp.org>
54699 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54702 2004-03-18 Paul Eggert <eggert@twinsun.com>
54703 Bruno Haible <bruno@clisp.org>
54705 * lib/mbswidth.h: Include <wchar.h> only if
54706 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54708 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54710 2004-03-09 Paul Eggert <eggert@twinsun.com>
54712 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54713 Sync with libc CVS.
54714 * lib/getopt_int.h: New file, also synced from libc.
54716 2004-03-09 Paul Eggert <eggert@twinsun.com>
54718 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54719 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
54720 Bring back getopt.c, getopt.h, getopt1.c.
54722 2004-03-07 Paul Eggert <eggert@twinsun.com>
54724 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54725 All uses changed. Check for sa_sigaction member; this fixes
54726 a bug first reported by Jason Andrade in
54727 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54729 2004-03-07 Paul Eggert <eggert@twinsun.com>
54731 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
54732 '#if' expressions. Unlike the code it replaces, it does not
54733 depend on (defined _SC_PAGESIZE). However, it does depend on
54734 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54735 first reported by Jason Andrade in
54736 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54738 2004-02-25 Simon Josefsson <jas@extundo.com>
54740 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54742 2004-02-25 Simon Josefsson <jas@extundo.com>
54744 * lib/strdup.h: New file.
54745 * lib/strdup.c: Include it.
54746 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54747 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54749 2004-02-23 Karl Berry <karl@gnu.org>
54751 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54752 (from fencepost.gnu.org:/gd/gnuorg).
54754 2004-02-23 Karl Berry <karl@gnu.org>
54756 * config/srclistvars.sh (GNUORG) [karl]: redefine.
54757 * config/srclist.txt: add maintain/standards documents.
54759 2004-02-18 Bruno Haible <bruno@clisp.org>
54761 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54762 Reported by Derek Robert Price <derek@ximbiot.com>.
54764 2004-02-16 Karl Berry <karl@gnu.org>
54766 * config/mkinstalldirs, install-sh: update from automake.
54768 2004-02-06 Karl Berry <karl@gnu.org>
54770 * m4/po.m4: update from gettext 0.14.1.
54772 2004-02-06 Karl Berry <karl@gnu.org>
54774 * lib/config.charset: update from gettext 0.14.1.
54776 2004-02-05 Paul Eggert <eggert@twinsun.com>
54778 Add comments and code, prompted by suggestions from Bruno Haible
54780 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54781 describing the enum quoting_style values.
54782 * lib/quotearg.c (quotearg_alloc): New function.
54783 (quotearg_buffer_restyled): Treat lone { and } as special.
54784 Treat = as special. Work around bug with older shells
54785 that "see" a '\' that is really the 2nd byte of a multibyte char.
54786 Quote empty string with shell_quoting_style.
54788 2004-02-03 Bruno Haible <bruno@clisp.org>
54790 * m4/pipe.m4: New file, from GNU gettext.
54792 2004-02-03 Bruno Haible <bruno@clisp.org>
54794 * lib/pipe.h: New file, from GNU gettext.
54795 * lib/pipe.c: New file, from GNU gettext.
54797 2004-01-27 Bruno Haible <bruno@clisp.org>
54799 * m4/execute.m4: New file, from GNU gettext.
54801 2004-01-27 Bruno Haible <bruno@clisp.org>
54803 * lib/execute.h: New file, from GNU gettext.
54804 * lib/execute.c: New file, from GNU gettext.
54805 * lib/w32spawn.h: New file, from GNU gettext.
54807 2004-01-24 Paul Eggert <eggert@twinsun.com>
54809 Merge from diffutils.
54811 * lib/file-type.c (file_type): Add typed memory objects.
54812 * lib/file-type.h (S_TYPEISTMO): New macro.
54814 * lib/c-stack.h (c_stack_action): Remove argv argument.
54815 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54816 (die): Don't calculate message unless segv_action returns.
54817 (get_stack_location, min_address_from_argv, max_address_from_argv,
54818 volatile stack_base, volatile_stack_size): Remove.
54819 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54820 that every segmentation violation is a stack overflow. (Ouch!)
54821 See Debian bug 136249 (still outstanding) for more info about why
54822 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54824 2004-01-24 Paul Eggert <eggert@twinsun.com>
54826 Exit-status fix from coreutils.
54828 Use exit_failure consistently in place of EXIT_FAILURE,
54829 so that program exit statuses are consistent on failure.
54831 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54832 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54833 * lib/argmatch.h: Comment fix to match the above.
54834 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54835 Now a macro referring to exit_failure, instead of a separate
54836 variable. Include "exitfail.h" to get it.
54837 * lib/xstrtol.h: Include "exitfail.h".
54838 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54840 * lib/long-options.c (parse_long_options): Use prototype
54841 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
54844 2004-01-21 Jim Meyering <jim@meyering.net>
54846 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54847 so as not to conflict with a different-sized __mktime_internal
54848 function in GNU libc.
54849 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54850 Problem building statically-linked `ls' reported by Michael Brunnbauer.
54852 2004-01-20 Karl Berry <karl@gnu.org>
54854 * config/config.guess: update from config.
54856 * config/srclistvars.sh: GNUWWWLICENSES for karl.
54858 2004-01-20 Bruno Haible <bruno@clisp.org>
54860 Safer stack allocation.
54861 * lib/setenv.c: Include allocsa.h.
54862 (alloca): Remove fallback definition.
54863 (freea): Remove macro.
54864 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54867 2004-01-20 Bruno Haible <bruno@clisp.org>
54869 * m4/eealloc.m4: New file, from GNU gettext.
54871 2004-01-20 Bruno Haible <bruno@clisp.org>
54873 * m4/allocsa.m4: New file, from GNU gettext.
54875 2004-01-20 Bruno Haible <bruno@clisp.org>
54877 * lib/xallocsa.h: New file, from GNU gettext.
54878 * lib/xallocsa.c: New file, from GNU gettext.
54880 2004-01-20 Bruno Haible <bruno@clisp.org>
54882 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54884 2004-01-20 Bruno Haible <bruno@clisp.org>
54886 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54887 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54890 2004-01-20 Bruno Haible <bruno@clisp.org>
54892 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54895 2004-01-20 Bruno Haible <bruno@clisp.org>
54897 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54899 2004-01-20 Bruno Haible <bruno@clisp.org>
54901 * lib/eealloc.h: New file.
54903 2004-01-20 Bruno Haible <bruno@clisp.org>
54905 * lib/binary-io.h: Avoid warnings on Cygwin.
54907 2004-01-20 Bruno Haible <bruno@clisp.org>
54909 * lib/allocsa.h: New file, from GNU gettext.
54910 * lib/allocsa.c: New file, from GNU gettext.
54912 2004-01-18 Karl Berry <karl@gnu.org>
54914 * doc/gpl.texi, doc/lgpl.texi: new files.
54916 2004-01-18 Karl Berry <karl@gnu.org>
54918 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54919 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54921 2004-01-15 Paul Eggert <eggert@twinsun.com>
54923 Merge from coreutils.
54925 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54926 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54927 (gl_DEFAULT_POSIX2_VERSION): Move
54928 the documentation from 'configure' into 'config.hin',
54929 so that 'configure --help' isn't burdened by it and
54930 we don't have to worry about its formatting there.
54931 Reword the documentation so that it's more succinct
54932 and can be run together into a single paragraph.
54933 * m4/same.m4 (gl_SAME): Check for pathconf.
54935 2004-01-15 Paul Eggert <eggert@twinsun.com>
54937 Merge from coreutils.
54939 * lib/posixver.c: Include posixver.h.
54941 * lib/same.c: Include <stdbool.h>, <limits.h>.
54942 (_POSIX_NAME_MAX): Define if not defined.
54944 (same_name): If file names are silently truncated, report
54945 that the file names are the same if they are the same after
54946 the silent truncation.
54948 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54949 conversion function.
54950 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
54951 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
54954 2004-01-15 Jim Meyering <jim@meyering.net>
54956 Merge from coreutils.
54958 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54959 if no library is required.
54960 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54961 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54962 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54963 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54964 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54965 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54966 value, $ac_cv_search_crypt, if it's "none required".
54967 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54968 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54969 not gl_FUNC_GETLOADAVG.
54970 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54971 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54973 2004-01-15 Jim Meyering <jim@meyering.net>
54975 Merge from coreutils.
54977 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
54978 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
54979 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54981 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54982 optional configure-time default.
54984 * lib/version-etc.c (version_etc_copyright): Update copyright date.
54986 * lib/xreadlink.c (xreadlink): Correct outdated comment.
54988 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
54990 Merge from coreutils.
54992 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54993 value, $ac_cv_search_nanosleep, if it's "none required".
54995 2004-01-14 Paul Eggert <eggert@twinsun.com>
54997 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54998 with like-named macro in fnmatch.c.
54999 (EXT): Use an internal constant instead.
55001 Merge fnmatch patches from glibc.
55002 * lib/fnmatch.c (mbsinit): Remove define.
55003 Add libc_hidden_ver (__fnmatch, fnmatch).
55004 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55005 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55007 2004-01-14 Karl Berry <karl@gnu.org>
55009 * config/install-sh: update from automake.
55011 2004-01-13 Karl Berry <karl@gnu.org>
55013 * config/install-sh: update from automake.
55015 2004-01-09 Karl Berry <karl@gnu.org>
55017 * config/install-sh: update from automake.
55019 2004-01-05 Karl Berry <karl@gnu.org>
55021 * config/config.{sub,guess}: update from config.
55023 2003-12-31 Karl Berry <karl@gnu.org>
55025 * config/depcomp: update from automake.
55027 2003-12-14 Karl Berry <karl@gnu.org>
55029 * lib/config.charset: update from gettext-runtime.
55031 2003-12-03 Paul Eggert <eggert@twinsun.com>
55033 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55034 Bug reported by Alfred M. Szmidt.
55036 2003-12-03 Bruno Haible <bruno@clisp.org>
55038 * m4/gettext.m4: Upgrade from gettext-0.13.
55039 * m4/po.m4: Upgrade from gettext-0.13.
55040 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55041 * m4/intmax.m4: New file, from gettext-0.13.
55042 * m4/printf-posix.m4: New file, from gettext-0.13.
55044 2003-11-29 Karl Berry <karl@gnu.org>
55046 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55048 2003-11-25 Paul Eggert <eggert@twinsun.com>
55049 Bruno Haible <bruno@clisp.org>
55051 * lib/printf-parse.h: Don't include sys/types.h.
55052 (ARG_NONE): New macro.
55053 (char_directive): Change type of *arg_index fields to size_t.
55054 * lib/printf-parse.c: Don't include sys/types.h.
55055 (SSIZE_MAX): Remove macro.
55056 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55057 Remove unnecessary overflow check.
55058 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55061 2003-11-25 Bruno Haible <bruno@clisp.org>
55063 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55065 2003-11-25 Bruno Haible <bruno@clisp.org>
55067 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55070 2003-11-24 Paul Eggert <eggert@twinsun.com>
55072 * modules/alloca: Remove dependency on xalloc.
55074 2003-11-24 Paul Eggert <eggert@twinsun.com>
55076 * lib/alloca.c: Remove dependency on xalloc module.
55077 (xalloc_die): Remove.
55078 (memory_full) [!defined emacs]: New macro.
55079 [!defined emacs]: Don't include xalloc.h.
55080 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55081 address arithmetic overflows. Change datatypes a bit to avoid
55084 2003-11-22 Jim Meyering <jim@meyering.net>
55086 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55089 2003-11-21 Karl Berry <karl@gnu.org>
55091 * config/config.{sub,guess}: update from config.
55093 2003-11-18 Karl Berry <karl@gnu.org>
55095 * config/config.{sub,guess}: update from config.
55097 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55099 2003-11-17 Paul Eggert <eggert@twinsun.com>
55101 * README: Mention that S+T cannot overflow if S is the size of
55102 an existing object and T is sufficiently small.
55104 2003-11-17 Jim Meyering <jim@meyering.net>
55106 On systems without utime and without a utimes function capable of
55107 dealing with a NULL struct utimbuf* argument, this utime replacement
55108 could -- in unusual circumstances -- leak a file descriptor.
55109 * lib/utime.c: Include <unistd.h> and <errno.h>.
55110 (utime_null): Be sure to close `fd' and to preserve errno.
55111 Reported by Geoff Collyer via Arnold Robbins.
55113 2003-11-17 Bruno Haible <bruno@clisp.org>
55115 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55116 (Depends-on): Add xsize.
55118 2003-11-17 Bruno Haible <bruno@clisp.org>
55120 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55122 2003-11-17 Bruno Haible <bruno@clisp.org>
55124 * lib/vasnprintf.c (alloca): Remove fallback definition.
55125 (freea): Remove definition.
55126 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55127 Reported by Paul Eggert.
55129 2003-11-16 Paul Eggert <eggert@twinsun.com>
55130 Bruno Haible <bruno@clisp.org>
55132 Protect against address arithmetic overflow.
55133 * lib/printf-args.h: Include stddef.h.
55134 (arguments): Change type of field 'count' to size_t.
55135 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55136 'unsigned int' where appropriate.
55137 * lib/printf-parse.h: Include sys/types.h.
55138 (char_directive): Change type of *arg_index fields to ssize_t.
55139 (char_directives): Change type of fields 'count', max_*_length to
55141 * lib/printf-parse.c: Include sys/types.h and xsize.h.
55142 (SSIZE_MAX): Define fallback value.
55143 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55144 instead of 'int' where appropriate. Check a_allocated, d_allocated
55145 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55146 * lib/vasnprintf.c: Include xsize.h.
55147 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55148 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55149 overflow. Avoid wraparound when converting a width or precision from
55152 2003-11-16 Bruno Haible <bruno@clisp.org>
55154 Update from GNU gettext.
55155 * lib/printf-parse.c: Generalize to it can be compiled for wide
55157 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55158 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55159 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55160 SNPRINTF): New macros.
55161 Don't include <alloca.h> if the file is used inside libintl.
55162 (local_wcslen): New function, for Solaris 2.5.1.
55163 (VASNPRINTF): Use it instead of wcslen.
55165 2003-11-16 Bruno Haible <bruno@clisp.org>
55167 * lib/xsize.h (xmax): New function.
55168 (xsum, xsum3, xsum4): Declare as "pure" functions.
55170 2003-11-12 Paul Eggert <eggert@twinsun.com>
55172 * modules/xalloc (Files): Undo latest change, since xalloc.h
55173 no longer needs SIZE_MAX or PTRDIFF_MAX.
55175 2003-11-12 Paul Eggert <eggert@twinsun.com>
55177 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55180 2003-11-12 Paul Eggert <eggert@twinsun.com>
55182 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55183 "return", to pacify some unknown compiler. Problem reported
55184 by Joerg Schilling.
55186 2003-11-12 Paul Eggert <eggert@twinsun.com>
55188 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55189 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55190 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
55191 heuristic is just as accurate as far as we know, and it removes a
55192 dependency on size_max.m4 and ptrdiff_max.m4.
55194 2003-11-11 Bruno Haible <bruno@clisp.org>
55196 * modules/xsize (Files): Add m4/size_max.m4.
55197 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55199 2003-11-11 Bruno Haible <bruno@clisp.org>
55201 * m4/size_max.m4: New file.
55202 * m4/ptrdiff_max.m4: New file.
55203 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55204 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55205 (gl_XALLOC): Invoke it.
55207 2003-11-11 Bruno Haible <bruno@clisp.org>
55209 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55210 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55213 2003-11-10 Paul Eggert <eggert@twinsun.com>
55215 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55216 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55217 rejected some allocations of exactly SIZE_MAX - 2 bytes.
55219 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55220 not (size_t) -1, since it's defined here.
55222 2003-11-09 Karl Berry <karl@gnu.org>
55224 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55226 2003-11-06 Paul Eggert <eggert@twinsun.com>
55228 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55229 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55230 Reject sizes of exactly SIZE_MAX bytes.
55231 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55232 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55234 2003-11-05 Bruno Haible <bruno@clisp.org>
55236 * lib/xsize.h: Include limits.h, to avoid a possible collision with
55237 SIZE_MAX defined in <limits.h> on Solaris.
55239 2003-11-04 Jim Meyering <jim@meyering.net>
55241 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55242 variable names, rather than @VAR@.
55243 * modules/poll: Likewise.
55245 2003-11-04 Bruno Haible <bruno@clisp.org>
55247 * modules/xsize: New file.
55248 * modules/linebreak: Depend on xsize.
55249 * MODULES.html.sh (func_all_modules): Add xsize.
55251 2003-11-04 Bruno Haible <bruno@clisp.org>
55253 * m4/xsize.m4: New file.
55255 2003-11-04 Bruno Haible <bruno@clisp.org>
55257 * lib/xsize.h: New file.
55258 * lib/linebreak.c: Include xsize.h.
55259 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55260 argument for overflow.
55261 Suggested by Paul Eggert.
55263 2003-11-03 Karl Berry <karl@gnu.org>
55265 * config/config.{guess,sub}: update from config.
55267 2003-11-03 Jim Meyering <jim@meyering.net>
55269 * modules/userspec (lib_SOURCES): Add userspec.h.
55270 (Include): Add "userspec.h".
55271 Improve description.
55273 2003-11-03 Jim Meyering <jim@meyering.net>
55275 * lib/userspec.c: Include "userspec.h".
55276 * lib/userspec.h: New file.
55278 2003-11-03 Bruno Haible <bruno@clisp.org>
55280 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55282 2003-11-03 Bruno Haible <bruno@clisp.org>
55284 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55285 available, to avoid (extremely rare) race condition.
55286 Suggested by Paul Eggert.
55288 2003-11-02 Karl Berry <karl@gnu.org>
55290 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55292 2003-10-31 Paul Eggert <eggert@twinsun.com>
55294 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55295 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55296 (read_filesystem_list): Set and use me_type_malloced.
55297 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55298 whatever the type happens to be), for brevity and consistency.
55299 Check for size calculation overflow on Alphas running OSF/1.
55301 2003-10-31 Jim Meyering <jim@meyering.net>
55303 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55305 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55307 2003-10-30 Paul Eggert <eggert@twinsun.com>
55308 Bruno Haible <bruno@clisp.org>
55310 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55311 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55313 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55315 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55316 netbsd*-gnu*. Suggested by Robert Millan.
55318 2003-10-29 Paul Eggert <eggert@twinsun.com>
55320 * modules/group-member: Depend on stdbool.
55322 2003-10-29 Paul Eggert <eggert@twinsun.com>
55324 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55326 2003-10-29 Paul Eggert <eggert@twinsun.com>
55328 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55329 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55330 after the 'gnu' in these cases. This fixes some bugs in the
55331 previous change, and is based on suggestions by Robert Millan.
55333 2003-10-29 Paul Eggert <eggert@twinsun.com>
55335 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55336 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55338 * lib/quotearg.c (quotearg_n_options): Use it.
55339 * lib/group-member.c: Include <stdbool.h>.
55340 (free_group_info): Arg is now const *; don't free arg.
55341 (get_group_info): Now returns bool and accepts struct group_info *,
55342 rather than returning a malloc'ed struct group_info *.
55343 All uses changed. Check for overflow in internal size calculation.
55345 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55346 rather than xmalloc/xrealloc.
55347 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55348 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55349 conformance bug: the old code used a pointer after freeing the
55350 storage that it addressed.
55351 * lib/hash.c (hash_initialize): Simplify the code by using
55352 xalloc_oversized rather than doing it by hand.
55353 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55354 the buffer preserved. Use free and xmalloc instead.
55355 * lib/quotearg.c (quotearg_n_options): Likewise.
55356 Use a simpler test for size overflow. Don't use xalloc_oversized
55357 because unsigned int might be wider than size_t (!); this suggests
55358 that we should switch from unsigned int to size_t for slot numbers.
55360 2003-10-28 Paul Eggert <eggert@twinsun.com>
55362 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55363 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55364 NetBSD kernels. Requested by Richard Stallman.
55366 2003-10-27 Paul Eggert <eggert@twinsun.com>
55368 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55369 to allocate the returned structure. Do not allocate a subarray,
55370 as x2nrealloc will do that.
55371 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55372 instead of xnrealloc.
55373 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55375 2003-10-27 Bruno Haible <bruno@clisp.org>
55377 * lib/stdbool_.h: Better support for BeOS.
55379 2003-10-26 Paul Eggert <eggert@twinsun.com>
55381 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55384 2003-10-26 Paul Eggert <eggert@twinsun.com>
55386 * lib/xalloc.h (xalloc_oversized): New static inline function, for
55387 callers that want to do their own size-overflow checking. Include
55388 <stdbool.h>, since xalloc_oversized returns bool.
55389 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
55390 to use xalloc_oversized.
55392 Add two functions x2realloc, x2nrealloc, for programs that grow
55393 arrays dynamically by doubling their sizes.
55394 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55395 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55398 Port to C99 semantics for 'inline' of external functions.
55399 Bug reported by Bruno Haible.
55400 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55401 with the old contents of xnmalloc.
55402 (xnmalloc, xmalloc): Use it.
55403 (xnrealloc_inline): New static inline function,
55404 with the old contents of xnrealloc.
55405 (xnrealloc, xrealloc): Use it.
55407 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55410 2003-10-26 Karl Berry <karl@gnu.org>
55412 * config/srclist.txt (COPYING.DOC): no longer available from
55413 /gd/gnuorg; don't know where the ultimate source is.
55415 2003-10-25 Paul Eggert <eggert@twinsun.com>
55417 Fix several address-calculation bugs in the hash modules,
55418 plus some minor code cleanup.
55420 * lib/hash.h: Include <stdbool.h>, for bool.
55421 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55422 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55423 hash_get_n_entries, hash_get_max_bucket_length,
55424 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55425 hash_rehash): Use size_t rather than unsigned.
55426 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55427 hash_get_n_buckets_used, hash_get_n_entries,
55428 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55429 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55430 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55432 (SIZE_MAX): Define if not defined.
55433 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55434 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55436 Use const * when possible.
55437 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55438 (check_tuning): Fix bug: if tuning parameters were very close to
55439 0 or 1, rounding errors could have caused subscript violations.
55440 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55441 (hash_initialize): Add 'fail:' label
55442 to free table and return NULL, and use it to simplify code.
55443 Use calloc rather than clearing the storage ourself.
55444 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55445 buffer size calculations.
55446 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55447 Include <stddef.h>, for size_t.
55448 * lib/hash-pjw.c (hash_pjw): Likewise.
55449 Switch to method described by Bruno Haible.
55450 Include <limits.h>, for CHAR_BIT.
55451 (SIZE_BITS): New macro.
55453 2003-10-23 Paul Eggert <eggert@twinsun.com>
55455 * m4/getline.m4 (AM_FUNC_GETLINE):
55456 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55457 hosts. Problem reported by Derek Robert Price in
55458 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55459 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55460 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55462 2003-10-21 Paul Eggert <eggert@twinsun.com>
55464 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55465 ceiling the allocation at NMAX bytes rather than silently
55466 discarding input bytes before NMAX is reached. This makes
55467 a difference only if NMAX exceeds SIZE_MAX / 2.
55469 * lib/obstack.c: Merge from glibc.
55470 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55471 Add libc_hidden_def (_obstack_newchunk).
55472 (_obstack_free) [! defined _LIBC]: Remove.
55473 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55474 a clone of the function body.
55475 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55476 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55478 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55480 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55483 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55484 (obstack_ptr_grow_fast, obstack_int_grow_fast):
55485 Don't use lvalue casts, as GCC plans to remove support for them
55486 in GCC 3.5. Reported by Joseph S. Myers. This bug
55487 was also present in the non-GCC version, indicating that this
55488 code had always been buggy and had never been widely used.
55489 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55490 Use the fast variant of each macro, rather than copying the
55491 definiens of the fast variant; that way, we'll be more likely to
55492 catch future bugs in the fast variants.
55494 2003-10-20 Bruno Haible <bruno@clisp.org>
55496 * modules/wait-process: New file.
55497 * MODULES.html.sh (func_all_modules): Add wait-process.
55499 2003-10-20 Bruno Haible <bruno@clisp.org>
55501 * m4/wait-process.m4: New file.
55503 2003-10-20 Bruno Haible <bruno@clisp.org>
55505 * lib/wait-process.h: New file, from GNU gettext.
55506 * lib/wait-process.c: New file, from GNU gettext.
55508 2003-10-19 Jim Meyering <jim@meyering.net>
55510 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55513 2003-10-18 Karl Berry <karl@gnu.org>
55515 * config/config.guess: update from config.
55517 2003-10-16 Paul Eggert <eggert@twinsun.com>
55519 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55520 (getgroups): First arg is int, not size_t.
55521 Don't let 'free' mangle errno.
55523 2003-10-16 Paul Eggert <eggert@twinsun.com>
55525 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55527 2003-10-16 Karl Berry <karl@gnu.org>
55529 * config/config.{guess,sub}: update from config.
55531 2003-10-16 Jim Meyering <jim@meyering.net>
55533 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55536 2003-10-15 Paul Eggert <eggert@twinsun.com>
55538 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55539 (SIZE_MAX): Remove.
55540 (new_exclude, add_exclude_file): Initial size no longer needs to
55542 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55543 our own address arithmetic overflow checking.
55545 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55546 (fnmatch): Do not alloca more than 2000 wide characters;
55547 instead, use malloc for large buffers.
55548 Check for address arithmetic overflow, and return -1
55549 with errno set to ENOMEM in that case.
55550 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55551 (NEW_PATTERN): Do not alloca more than 8000 bytes;
55552 instead, return -1. Check for address arithmetic overflow.
55554 2003-10-14 Paul Eggert <eggert@twinsun.com>
55556 Handle invalid suffixes and overflow independently, so that
55557 callers can treat them independently as needed. Fix some bugs in
55558 suffix handling, e.g., "100k@" was not diagnosed as an invalid
55559 suffix for a human-readable blocksize. The major caller-visible
55560 change is the addition of a new
55561 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55562 that both overflow and suffix chars were found.
55564 * lib/human.c (humblock): Don't check separately for invalid suffix
55565 char; that is xstrtoumax's job (now that its bug is fixed).
55566 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55567 INTMAX_MAX]: New macros.
55568 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55569 TYPE_MAXIMUM): New macros.
55570 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55571 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55572 if overflow occurs, as it's what __strtol does and it's more useful
55574 (__xstrtol): If __strtol reports some error other than ERANGE,
55575 reflect it to the caller as LONGINT_INVALID. If it reports
55576 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55577 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55578 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55580 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
55581 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55582 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55583 [defined UINTMAX_MAX]: New macros.
55585 2003-10-14 Bruno Haible <bruno@clisp.org>
55587 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55589 2003-10-14 Bruno Haible <bruno@clisp.org>
55591 * m4/sig_atomic_t: New file, from GNU gettext.
55592 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55594 2003-10-14 Bruno Haible <bruno@clisp.org>
55596 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55597 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55598 Also use volatile where needed.
55600 2003-10-12 Paul Eggert <eggert@twinsun.com>
55602 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
55603 Change maintainer from Bruno Haible to 'all'.
55605 2003-10-12 Paul Eggert <eggert@twinsun.com>
55607 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55609 2003-10-12 Paul Eggert <eggert@twinsun.com>
55611 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55612 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55613 and define in terms of the other primitives.
55614 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55615 (SIZE_MAX): Define if not already defined.
55616 (array_size_overflow): New function.
55617 (xalloc_die): Abort instead of exiting if 'error' returns.
55618 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55619 (xmalloc, xrealloc): Use them.
55620 (xcalloc): Check for address arithmetic overflow.
55621 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55622 a bit faster than strcpy.
55624 2003-10-10 Simon Josefsson <jas@extundo.com>
55626 * modules/argp (Depends-on): Add restrict and strcase.
55628 2003-10-10 Simon Josefsson <jas@extundo.com>
55630 * m4/argp.m4: Add AC_C_INLINE.
55632 2003-10-08 Paul Eggert <eggert@twinsun.com>
55634 Merge getpass from libc, plus a few fixes.
55636 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55637 Include <stdbool.h>.
55638 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55639 __fsetlocking to empty.
55640 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55641 do include <bits/libc-lock.h>.
55642 Do not include <fcntl.h>; not needed.
55643 [_LIBC]: Include <wchar.h>.
55644 (NOTCANCEL_MODE): New macro.
55645 (flockfile, funlockfile) [_LIBC]: New macros.
55646 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55647 [!_LIBC]: New macros.
55648 (call_fclose): New function.
55649 (getpass): Use it. Save tty stream separately; this simplifies the
55650 code and makes it more reliable if stdin happens to equal stdout.
55651 Invoke __fsetlocking on tty.
55652 Handle thread cancellation if needed.
55653 Namespace cleanup (use __tcgetattr, __getline).
55654 Use bool for Booleans.
55655 [USE_IN_LIBIO]: Handle wide streams.
55656 [!_LIBC]: Unconditionally do the fseek, since we don't know what
55657 stream might go where.
55659 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55660 doesn't have to include <stdio.h> before us.
55661 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55662 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55663 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55664 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55665 if not declared, so that we can use getpass.c code from libc without
55667 (flockfile, ftrylockfile, funlockfile): New macros.
55669 2003-10-08 Paul Eggert <eggert@twinsun.com>
55671 * modules/getpass: Depend on stdbool.
55673 2003-10-08 Paul Eggert <eggert@twinsun.com>
55675 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55677 2003-10-07 Karl Berry <karl@gnu.org>
55679 * config/config.{guess,sub}: update from config.
55681 2003-10-06 Jim Meyering <jim@meyering.net>
55682 Bruno Haible <bruno@clisp.org>
55684 This lets translators provide better translations for the
55685 "Written by ..." part of --version output.
55686 * lib/version-etc.h: Include stdarg.h.
55687 (version_etc_copyright): Declare as readonly.
55688 (version_etc): Make this function variadic with a NULL-terminated list
55689 of author name strings.
55690 (version_etc_va): New declaration.
55691 * lib/version-etc.c: Include stdarg.h, stdlib.h.
55692 (version_etc_copyright): Declare as readonly.
55693 (version_etc_va): New function. Provide a different translatable string
55694 for each possible number of authors < 10. Abbreviate when there are 10
55696 (version_etc): Make this function variadic. Call version_etc_va.
55697 Suggestion from Gary V. Vaughan.
55699 * lib/long-options.h (parse_long_options): Change prototype: the
55700 authors string is moved to the end and becomes variadic.
55701 * lib/long-options.c: Include stdarg.h.
55702 (parse_long_options): Make this function variadic, too.
55703 Call version_etc_va, not version_etc.
55705 2003-10-06 Bruno Haible <bruno@clisp.org>
55707 * modules/version-etc-2: Remove file.
55708 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55710 2003-10-06 Bruno Haible <bruno@clisp.org>
55712 * modules/fatal-signal: New file.
55713 * MODULES.html.sh (func_all_modules): Add fatal-signal.
55715 2003-10-06 Bruno Haible <bruno@clisp.org>
55717 * m4/fatal-signal.m4: New file.
55718 * m4/signalblocking.m4: New file, from GNU gettext.
55720 2003-10-06 Bruno Haible <bruno@clisp.org>
55722 * lib/version-etc-2.h: Remove file.
55723 * lib/version-etc-2.c: Remove file.
55725 2003-10-06 Bruno Haible <bruno@clisp.org>
55727 * lib/fatal-signal.h: New file, from GNU gettext.
55728 * lib/fatal-signal.c: New file, from GNU gettext.
55730 2003-10-05 Paul Eggert <eggert@twinsun.com>
55732 * README: Rework advice for preventing empty .o files.
55733 Don't recommend ELIDE constructs. Recommend <stddef.h>,
55736 2003-10-04 Karl Berry <karl@gnu.org>
55738 * lib/argp*: update from libc.
55740 2003-10-04 Karl Berry <karl@gnu.org>
55742 * config/config.{guess,sub}: update from config.
55744 2003-10-02 Bruno Haible <bruno@clisp.org>
55746 * modules/lchown (Include): Add lchown.h.
55747 * modules/time_r (Include): Use "..." syntax.
55748 * modules/xgetdomainname (Include): Add xgetdomainname.h.
55750 2003-10-01 Simon Josefsson <jas@extundo.com>
55752 * MODULES.html.sh (func_all_modules): Move gethostname from section
55753 'based on' to section 'lacking' POSIX:2001.
55755 2003-10-01 Larry Jones <lawrence.jones@eds.com>
55757 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55758 to output mode on the same stream.
55760 2003-09-29 Paul Eggert <eggert@twinsun.com>
55762 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55763 Fix arg typo in previous patch.
55765 2003-09-28 Jim Meyering <jim@meyering.net>
55767 * lib/error.c: Correct cpp indentation.
55769 2003-09-27 Paul Eggert <eggert@twinsun.com>
55771 * modules/free: New file.
55773 2003-09-27 Paul Eggert <eggert@twinsun.com>
55775 * m4/free.m4: New file.
55777 2003-09-27 Paul Eggert <eggert@twinsun.com>
55779 * lib/minmax.h (MIN, MAX)
55780 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55781 Omit the special code that used __typeof__, since we worry that
55782 it could be more trouble than it's worth. See:
55783 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55784 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55786 * lib/free.c: New file.
55788 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55790 Trivial fixes to Makefile.am parts of module listings.
55791 * modules/strstr: Append strstr.h to lib_SOURCES.
55792 * modules/strcase: Likewise, for strcase.h.
55794 2003-09-27 Karl Berry <karl@gnu.org>
55796 * config/mkinstalldirs: update from automake.
55798 2003-09-26 Paul Eggert <eggert@twinsun.com>
55800 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55801 (error_tail): Do not loop, reallocating temporary buffer, since
55802 the output cannot contain more wide characters than the input
55803 contains bytes, the size must be big enough already. This avoids
55804 one potential size overflow calculation. Check for size overflow
55805 when calculating temporary buffer size. Free temporary buffer
55806 when done, if it was allocated with malloc; this plugs a memory
55807 leak. Remove casts from void * to pointers, that are no longer
55808 needed now that we're assuming C89 or better.
55810 Merge error changes from glibc.
55812 * lib/error.c, error.h: Update copyright notice header to match glibc.
55813 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55814 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55815 Disable cancellation while printing error.
55816 * lib/error.h: Prepend __ to parameter names.
55818 2003-09-26 Jim Meyering <jim@meyering.net>
55820 * lib/error.c (error_tail): Move some declarations
55821 into inner scope where the local variables are used.
55823 2003-09-26 Bruno Haible <bruno@clisp.org>
55825 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55827 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55829 2003-09-26 Bruno Haible <bruno@clisp.org>
55831 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55832 (stpncpy): Define as alias for gnu_stpncpy.
55833 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55835 2003-09-25 Simon Josefsson <jas@extundo.com>
55837 * lib/xgetdomainname.h: New file.
55838 * lib/xgetdomainname.c: New file.
55840 2003-09-25 Simon Josefsson <jas@extundo.com>
55841 Bruno Haible <bruno@clisp.org>
55843 * modules/getdomainname: New file.
55844 * modules/xgetdomainname: New file.
55845 * MODULES.html.sh (func_all_modules): Add getdomainname,
55848 2003-09-25 Simon Josefsson <jas@extundo.com>
55849 Bruno Haible <bruno@clisp.org>
55851 * m4/getdomainname.m4: New file.
55853 2003-09-25 Simon Josefsson <jas@extundo.com>
55854 Bruno Haible <bruno@clisp.org>
55856 * lib/getdomainname.h: New file.
55857 * lib/getdomainname.c: New file.
55859 2003-09-25 Karl Berry <karl@gnu.org>
55861 * lib/argp-fmtstream.c, argp-help.c: update from libc.
55863 2003-09-25 Karl Berry <karl@gnu.org>
55865 * config/install-sh: update from automake.
55867 2003-09-25 Bruno Haible <bruno@clisp.org>
55869 * modules/version-etc-2: New file, from modules/version-etc with
55871 * MODULES.html.sh (func_all_modules): Add version-etc-2.
55873 2003-09-25 Bruno Haible <bruno@clisp.org>
55875 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55876 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55878 2003-09-24 Simon Josefsson <jas@extundo.com>
55880 * modules/xgethostname: Add xgethostname.h.
55882 2003-09-24 Paul Eggert <eggert@twinsun.com>
55884 * lib/linebuffer.c (freebuffer): Don't free the argument, just
55885 the buffer associated with the argument. Bug reported by
55888 2003-09-24 Paul Eggert <eggert@twinsun.com>
55890 * README: Document assumptions that 'int' is at least 32 bits
55891 wide, that integer arithmetic is 2's complement without overflow,
55892 that there are no holes in integer values, that adding sizes of
55893 two nonoverlapping objects can't overflow, and that all-bits-zero
55894 yields scalar zero. Fix spelling and capitalization typos.
55896 2003-09-19 Karl Berry <karl@gnu.org>
55898 * lib/argp.h: update from libc.
55900 2003-09-17 Paul Eggert <eggert@twinsun.com>
55902 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55903 to avoid spurious warnings like "AC_RUN_IFELSE was called before
55904 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55906 2003-09-17 Paul Eggert <eggert@twinsun.com>
55908 * gnulib-tool: Use "test -h", not "test -L", for portability
55909 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
55910 (tags_regexp): Remove, since \| doesn't conform to POSIX.
55911 (sed_extract_prog): Issue s commands one-by-one, rather than
55912 using \| in one s command.
55914 2003-09-16 Paul Eggert <eggert@twinsun.com>
55916 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55917 input error, instead of returning NULL the next time we are called
55918 (and therefore losing track of errno).
55920 2003-09-16 Bruno Haible <bruno@clisp.org>
55922 * gnulib-tool (func_create_testdir): Warn about duplicated
55925 2003-09-15 Paul Eggert <eggert@twinsun.com>
55927 * modules/argmatch, modules/fatal, modules/obstack,
55928 modules/xalloc, modules/xgethostname: Sort dependencies by
55929 importance, not alphabetically.
55931 2003-09-15 Paul Eggert <eggert@twinsun.com>
55933 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55934 fails, so that the caller gets the proper errno.
55936 * lib/readutmp.c (read_utmp): Likewise.
55937 Check for fstat error. Close stream and free storage
55940 2003-09-14 Karl Berry <karl@gnu.org>
55942 * config/srclist.txt (strdup.c): disable for c89 changes.
55944 2003-09-14 Jim Meyering <jim@meyering.net>
55946 * lib/getloadavg.c: Correct cpp indentation.
55947 * lib/strdup.c: Likewise.
55948 * lib/vasnprintf.c: Likewise.
55950 2003-09-14 Bruno Haible <bruno@clisp.org>
55952 * modules/fwriteerror: New file.
55953 * MODULES.html.sh (func_all_modules): Add fwriteerror.
55955 2003-09-14 Bruno Haible <bruno@clisp.org>
55957 * lib/fwriteerror.h: New file.
55958 * lib/fwriteerror.c: New file.
55960 2003-09-12 Paul Eggert <eggert@twinsun.com>
55962 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55963 modules/xgethostname, modules/xalloc: Depend on exit.
55965 2003-09-12 Paul Eggert <eggert@twinsun.com>
55967 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55969 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55970 and AC_MINIX, too, so that their extensions are available.
55972 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
55973 This macro has been superseded by gl_BACKUPFILE.
55975 More patches to assume C89 or better.
55977 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55979 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55981 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55982 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55983 Include <string.h>, <stdlib.h> unconditionally.
55984 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55985 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55986 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55987 headers or for string.h.
55988 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55991 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55993 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55994 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55995 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55996 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55997 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55998 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56000 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56001 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56002 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56004 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56005 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56006 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56009 2003-09-12 Paul Eggert <eggert@twinsun.com>
56011 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56012 * lib/obstack.c [!defined _LIBC]: Likewise.
56013 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56014 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56015 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56017 More changes to assume C89 or better.
56019 * lib/error.c (error_tail): Assume vprintf.
56021 * lib/argmatch.c (getenv): Remove decl.
56022 * lib/progreloc.c (get_full_program_name): Define via prototype.
56023 * lib/setenv.c (clearenv): Likewise.
56024 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56026 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56027 (malloc, memcpy): Remove decls.
56028 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56029 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56030 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56031 (memcpy): Remove macro.
56032 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56033 (__P): Remove. All uses removed.
56034 (PTR): Remove. All uses changed to void *.
56035 (CHAR_BIT, NULL): Remove.
56036 (spaces, zeros, memset_space, memset_zero)
56037 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56039 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56040 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56041 Define with prototype.
56042 Remove now-unnecessary prototype decl.
56043 (extra_args_spec): Assume ANSI C. All uses changed.
56044 (extra_args_spec_iso): Remove.
56045 (my_strftime, emacs_strftimeu): Define via prototype.
56046 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56048 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56049 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56050 (strtoul, strtol): Remove decls.
56051 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56053 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56054 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
56055 (LOCALE_PARAM_PROTO): New macro.
56056 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56057 (INTERNAL (strtol), strtol): Define with a prototype.
56058 (PARAMS): Remove. All uses removed.
56059 * lib/tempname.c: Include <string.h> unconditionally.
56060 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56061 * lib/xgethostname.c (main): Define with a prototype.
56062 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56063 Include <stdlib.h> unconditionally.
56064 (calloc, malloc, realloc, free): Remove decls.
56065 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56066 Include <stdlib.h> unconditionally. Sort include file names.
56068 (xstrtod): Define with a prototype.
56069 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56070 (strtol, strtoul): Remove decls.
56072 2003-09-11 Paul Eggert <eggert@twinsun.com>
56074 More patches to assume C89 or better.
56075 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56076 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56077 string.h, memchr, STDC_HEADERS.
56079 2003-09-11 Paul Eggert <eggert@twinsun.com>
56081 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56082 Include <stdlib.h>, <string.h> unconditionally.
56083 Remove now-unnecessary cast to char *.
56084 * lib/strnlen.c: Include <string.h> unconditionally.
56085 * lib/yesno.c (yesno): Define with a prototype.
56087 2003-09-11 Bruno Haible <bruno@clisp.org>
56089 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56091 2003-09-10 Jim Meyering <jim@meyering.net>
56093 * lib/error.c: Correct indentation of cpp directives.
56095 2003-09-10 Bruno Haible <bruno@clisp.org>
56097 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56098 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56099 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56100 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56101 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56102 <stdlib.h> and <string.h> checks.
56103 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56104 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56106 2003-09-10 Bruno Haible <bruno@clisp.org>
56108 * lib/strcspn.c: Include <string.h> unconditionally.
56109 * lib/strpbrk.c: Include <string.h> unconditionally.
56110 * lib/strstr.c: Include <string.h> unconditionally.
56111 * lib/unicodeio.c: Include <string.h> unconditionally.
56112 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56113 * lib/unsetenv.c: Likewise.
56114 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56115 * lib/yesno.c: Include <stdlib.h> unconditionally.
56116 (rpmatch): Add prototype.
56118 2003-09-09 Paul Eggert <eggert@twinsun.com>
56120 More patches to assume C89 or better.
56121 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56122 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56123 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56125 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56127 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56129 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56131 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56132 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56133 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56135 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56136 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56138 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56140 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56141 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56142 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56143 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56144 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56145 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56147 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56148 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56149 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56150 C headers, or for string.h.
56151 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56152 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56153 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56154 headers, memory.h, stdlib.h, string.h, strings.h.
56155 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56156 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56157 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56159 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56160 headers, memory.h, string.h.
56161 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56162 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56164 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56166 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56167 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56168 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56169 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56170 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56172 2003-09-09 Paul Eggert <eggert@twinsun.com>
56176 * lib/acosl.c (main): Use a prototype.
56177 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56180 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56182 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56183 (getopt, etopt_long, getopt_long_only, _getopt_internal)
56184 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56186 * lib/getopt.c (const): Remove macro.
56187 Include <string.h> unconditionally.
56188 (my_index): Remove; all uses changed to strchr.
56189 (strlen): Remove decl.
56190 (exchange): Remove forward decl; no longer needed.
56191 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56192 Define with prototype.
56193 * lib/getopt1.c (const): Remove macro.
56194 (getopt_long, getopt_long_only, main): Define with prototype.
56196 * lib/getugroups.c: Include <string.h> unconditionally.
56198 * lib/getusershell.c: Include <stdlib.h> unconditionally.
56199 (getusershell, setusershell, endusershell, readname, main):
56200 Define with prototypes.
56202 * lib/group-member.c: Include group-member.h first.
56203 Include <stdlib.h> unconditionally.
56205 * lib/hard-locale.c: Include hard-locale.h first.
56206 Include <stdlib.h>, <string.h> unconditionally.
56208 * lib/hash.c (free, malloc): Remove decls.
56209 Include <stdlib.h> unconditionally.
56211 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56212 (getenv): Do not declare.
56214 * lib/idcache.c: Include <string.h> unconditionally.
56216 * lib/long-options.c: Include long-options.h first, to test interface.
56217 Include <stdlib.h> unconditionally.
56219 * lib/makepath.c: Include makepath.h first, to test interface.
56220 Include <stdlib.h> and <string.h> unconditionally.
56222 * lib/linebuffer.c: Include <stdlib.h>.
56223 (free): Remove decl.
56225 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56226 stddef.h. rpl_malloc returns void *, not char *.
56227 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
56230 * lib/md5.h: Include <limits.h> unconditionally.
56231 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56232 (__P): Remove; all uses removed.
56233 * lib/md5.c: Include "md5.h" first.
56234 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56235 md5_buffer, md5_process_bytes, md5_process_block):
56236 Define with prototypes.
56237 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
56238 * lib/sha.c: Include "sha.h" first.
56239 Include <stdlib.h>, <string.h> unconditionally.
56241 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56242 * lib/memcmp.c (__ptr_t): Likewise.
56243 * lib/memrchr.c (__ptr_t): Likewise.
56244 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56245 Include <string.h> unconditionally.
56246 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56247 * lib/memchr.c: Include <stdlib.h> unconditionally.
56248 * lib/memchr.c (LONG_MAX): Remove.
56249 * lib/memrchr.c (LONG_MAX): Likewise.
56250 * lib/memchr.c (__memchr): Define via a prototype.
56251 * lib/memrchr.c (__memrchr): Likewise.
56252 * lib/memcmp.c (__P): Remove, and remove all uses.
56253 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56254 Remove forward decls; no longer needed.
56255 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56256 Use types required by C89 in prototype.
56258 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56259 * lib/savedir.c: Likewise.
56260 * lib/mkdir.c (free): Remove decl.
56261 * lib/rmdir.c (rmdir): Define with a prototype.
56262 * lib/savedir.c: Include savedir.h first, to test interface.
56264 * lib/mktime.c (STDC_HEADERS): Remove.
56265 Include <stdlib.h>, <string.h> unconditionally.
56267 * lib/modechange.c: Include <stdlib.h> unconditionally.
56268 (malloc): Remove decl.
56270 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56271 (free): Remove decl.
56273 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56274 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56275 (This type really should be intptr_t, but that's a C99ism.)
56276 (_obstack_memcpy): Remove: all uses changed to memcpy.
56277 Include <string.h> unconditionally.
56278 (struct obstack): Assume __STDC__ for types of members
56279 chunkfun, freefun, extra_arg.
56280 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56281 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56282 obstack_begin, obstack_specify_allocation,
56283 obstack_specify_allocation_with_arg, obstack_chunkfun,
56284 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56285 Remove unprototyped decls and the macros that use them.
56286 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56287 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56288 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56289 (defined __STDC__ && __STDC__)]:
56290 Remove nonprototyped code.
56291 Include <stdlib.h> unconditionally.
56292 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56293 _obstack_allocated_p, _obstack_free, obstack_free,
56294 _obstack_memory_used, print_and_abort):
56295 Define using prototypes.
56296 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56297 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56298 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56299 obstack_next_free, obstack_object_size, obstack_room) [0]:
56300 Remove unused, unprototyped code.
56302 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56304 * lib/physmem.c (physmem_total, physmem_available, main): Define
56307 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56308 (main): Define with a prototype.
56310 * lib/posixver.c (getenv): Remove decl.
56312 * lib/putenv.c (malloc): Returns void *, not char *.
56313 Include <string.h> unconditionally.
56314 (strchr, memcpy, NULL): Do not define.
56316 * lib/readtokens.c: Include readtokens.h first, to test interface.
56317 Include <stdlib.h>, <string.h> unconditionally.
56318 (init_tokenbuffer): Define with a prototype.
56320 * lib/regex.c (PARAMS): Remove. All uses removed.
56321 All uses of _RE_ARGS removed, too.
56322 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56324 (bzero): Assume memset exists.
56325 (memcmp, memcpy, NULL): Remove.
56326 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56327 char, or assignments to local vars of type signed char.
56328 (init_syntax_once, PREFIX(extract_number_and_incr),
56329 PREFIX(print_partial_compiled_pattern),
56330 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56331 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56332 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56333 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56334 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56335 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56336 wcs_compile_range, byte_compile_range, truncate_wchar,
56337 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56338 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56339 count_mbs_length, wcs_re_match_2_internal,
56340 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56341 PREFIX(alt_match_null_string_p),
56342 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56343 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56344 regfree, PREFIX(extract_number)): Define with prototype. Remove
56345 now-unnecessary declaration, if any.
56346 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56348 Remove now-unnecessary casts among pointer types.
56349 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56351 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56352 (free): Remove decl.
56354 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56356 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56357 (free): Remove decl.
56359 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56360 * lib/xgetcwd.c: Likewise.
56362 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56363 (free): Remove decl.
56365 * lib/strchrnul.c (strchrnul): Define with a prototype.
56366 Fix bug: c_in was not converted to char before searching.
56368 The following changes are not K&R related:
56370 * lib/group-member.h: Include <sys/types.h>, so that this file is
56372 * lib/makepath.h: Likewise.
56374 * lib/getusershell.c (readname, default_index, line_size, readname):
56375 Use size_t, not int, for sizes.
56376 (readname): If the size overflows, report an error instead of
56379 2003-09-09 Paul Eggert <eggert@twinsun.com>
56381 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56384 2003-09-09 Paul Eggert <eggert@twinsun.com>
56386 * README: New section: portability guidelines.
56388 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56390 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56393 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56395 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56397 2003-09-08 Paul Eggert <eggert@twinsun.com>
56399 Assume C89 or better; remove K&R cruft.
56400 A few of these changes were first proposed by Derek Robert Price
56401 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56403 * lib/addext.c: Include <string.h> unconditionally.
56404 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56405 Don't declare getenv or malloc.
56407 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56408 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56410 (find_stack_direction, alloca): Use prototypes.
56412 * lib/atexit.c (atexit): Define using a prototype.
56414 * lib/basename.c, dirname.c, stripslash.c:
56415 Include <string.h> unconditionally.
56417 * lib/bcopy.c: Include <stddef.h>.
56418 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56420 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56422 * lib/error.h (error, error_at_line, error_print_progname)
56423 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56424 * lib/error.c: Include error.h first, to check interface.
56425 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56426 (VA_START): Remove; all uses changeed to va_start.
56427 (exit, strerror): Remove decls.
56428 (error_print_progname): Prototype uncondionally.
56429 Don't include <errno.h>; no longer needed.
56430 (private_strerror): Remove.
56431 (error_tail): Always define.
56432 (error, error_at_line): Assume C89 or better; always use prototypes.
56433 * lib/fatal.c: Include "fatal.h" first, to test interface.
56434 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56435 (VA_START): Remove; all uses changed to va_start.
56436 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56438 (exit): Remove decl.
56439 (fatal): Prototype unconditionally. Assume va_start works.
56440 Abort at end, to pacify gcc.
56442 * lib/euidaccess.c (main): Define with a prototype.
56444 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56446 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56448 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56450 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56451 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56452 (getenv): Remove decl.
56453 (fnmatch): Define using a prototype.
56454 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56455 (FCT): Define using a prototype.
56457 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56459 * lib/gethostname.c: Include <stddef.h>.
56460 (gethostname): Define with prototype. Length is size_t, not int.
56462 2003-09-08 Paul Eggert <eggert@twinsun.com>
56464 Assume C89 or better; remove K&R cruft.
56465 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56466 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56467 string.h, getenv, malloc.
56468 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56470 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56471 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56472 do not check for strerror.
56473 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56474 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56475 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56476 do not check for doprnt or vprintf.
56477 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56478 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56480 2003-09-08 Paul Eggert <eggert@twinsun.com>
56482 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56483 getversion.c should have been removed then, but was accidentally
56486 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56487 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56489 2003-09-08 Karl Berry <karl@gnu.org>
56491 * config/config.sub, config.guess, srclistvars.sh: update from savannah
56492 config, forget about prep.
56494 * config/depcomp, missing: update from automake.
56496 2003-09-07 Paul Eggert <eggert@twinsun.com>
56498 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
56499 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56501 2003-09-07 Paul Eggert <eggert@twinsun.com>
56503 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56504 copy_tm_result. Bug reported by Simon Josefsson in
56505 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56507 2003-09-06 Paul Eggert <eggert@twinsun.com>
56509 * m4/time_r.m4: New file.
56510 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56511 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56512 is. Check for timegm declaration.
56513 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56514 Do not check for gmtime_r.
56515 Replace mktime if __mktime_internal does not exist and if mktime
56516 hasn't been replaced already.
56518 2003-09-06 Paul Eggert <eggert@twinsun.com>
56520 * lib/time_r.c, lib/time_r.h: New files.
56522 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56524 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
56525 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56527 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56529 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56530 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56531 Include <time_r.h>.
56533 * lib/timegm.c: Switch to glibc implementation, with the following
56535 [defined HAVE_CONFIG_H]: Include <config.h>.
56536 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56537 (__mktime_internal) [!defined _LIBC]: New decl.
56538 (__gmtime_r) [!defined _LIBC]: New macro and function.
56539 (timegm): Use a prototype, since gnulib assumes C89.
56540 Do not bother declaring tmp to be const, as it's not really usefu.
56541 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56542 (timegm): Declare only if HAVE_DECL_TIMEGM.
56544 2003-09-06 Paul Eggert <eggert@twinsun.com>
56546 * MODULES.html.sh (func_all_modules): Add time_r.
56547 * modules/time_r: New file.
56548 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56549 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
56551 2003-09-03 Paul Eggert <eggert@twinsun.com>
56553 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56554 Bug reported by Lute Kamstra in
56555 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56557 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56558 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
56559 course with correspondingly smaller numbers for tomorrow and
56560 yesterday. From Tadayoshi Funaba. Originally installed into
56561 sh-utils on 1999-08-07, but the patch got lost (I guess during the
56564 2003-08-31 Simon Josefsson <jas@extundo.com>
56566 * modules/timegm: New file.
56567 * MODULES.html.sh (func_all_modules): Add timegm.
56569 2003-08-31 Simon Josefsson <jas@extundo.com>
56571 * m4/timegm.m4: New file.
56573 2003-08-31 Simon Josefsson <jas@extundo.com>
56575 * lib/timegm.h: New file.
56576 * lib/timegm.c: New file. Based on
56577 wget-1.8.2/src/http.c:mktime_from_utc.
56579 2003-08-31 Karl Berry <karl@gnu.org>
56581 * lib/argp.h: update from libc.
56583 2003-08-28 Bruno Haible <bruno@clisp.org>
56585 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56586 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56587 followed by '#define fnmatch fnmatch_posix' gives an error.
56589 2003-08-28 Bruno Haible <bruno@clisp.org>
56591 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56592 warning on QNX, which defines O_BINARY to 000000.
56594 2003-08-27 Jim Meyering <jim@meyering.net>
56596 * m4/mkstemp.m4: Require that the system mkstemp be able to create
56597 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
56598 would fail after 32. Reported by Danny Levinson. Details here:
56599 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56601 2003-08-24 Bruno Haible <bruno@clisp.org>
56603 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56604 MSVC7 <stdio.h> is included later.
56606 2003-08-22 Simon Josefsson <jas@extundo.com>
56608 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56610 2003-08-20 Karl Berry <karl@gnu.org>
56612 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56614 2003-08-20 Bruno Haible <bruno@clisp.org>
56616 * modules/progname: New file.
56617 * MODULES.html.sh (func_all_modules): Add progname.
56619 2003-08-20 Bruno Haible <bruno@clisp.org>
56621 * lib/progname.h: New file, from GNU gettext.
56622 * lib/progname.c: New file, from GNU gettext.
56623 * lib/progreloc.c: New file, from GNU gettext.
56625 2003-08-19 Jim Meyering <jim@meyering.net>
56627 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56628 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56630 2003-08-19 Bruno Haible <bruno@clisp.org>
56632 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56635 2003-08-19 Bruno Haible <bruno@clisp.org>
56637 * lib/xstrdup.c: Assume <string.h> exists.
56639 2003-08-18 Paul Eggert <eggert@twinsun.com>
56641 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
56644 2003-08-18 Jim Meyering <jim@meyering.net>
56646 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56647 * m4/lib-ld.m4: Likewise.
56649 2003-08-18 Jim Meyering <jim@meyering.net>
56651 * lib/setenv.h: Indent nested cpp directive.
56652 * lib/vasnprintf.c: Remove trailing blanks.
56654 2003-08-17 Simon Josefsson <jas@extundo.com>
56656 * modules/xstrndup: New file.
56657 * MODULES.html.sh (func_all_modules): Add xstrndup.
56659 2003-08-17 Simon Josefsson <jas@extundo.com>
56661 * modules/argp: Fix autoconf macro name. Add more dependencies.
56663 2003-08-17 Simon Josefsson <jas@extundo.com>
56665 * m4/xstrndup.m4: New file.
56667 2003-08-17 Simon Josefsson <jas@extundo.com>
56669 * m4/argp.m4: New file.
56671 2003-08-17 Simon Josefsson <jas@extundo.com>
56672 Bruno Haible <bruno@clisp.org>
56674 * lib/xstrndup.h: New file.
56675 * lib/xstrndup.c: New file.
56677 2003-08-17 Bruno Haible <bruno@clisp.org>
56679 * modules/strndup (Files, Include): Add lib/strndup.h.
56681 2003-08-17 Bruno Haible <bruno@clisp.org>
56683 * modules/euidaccess (Files): Add lib/euidaccess.h.
56685 2003-08-17 Bruno Haible <bruno@clisp.org>
56687 * lib/strndup.h: New file.
56689 2003-08-17 Bruno Haible <bruno@clisp.org>
56691 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56692 like AC_GNU_SOURCE.
56693 * modules/extensions (configure.ac): Comment out the invocation of
56694 gl_USE_SYSTEM_EXTENSIONS.
56696 2003-08-16 Paul Eggert <eggert@twinsun.com>
56698 Merges from coreutils, etc.
56699 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56700 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
56701 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56703 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56704 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56706 2003-08-16 Paul Eggert <eggert@twinsun.com>
56708 Document merge from coreutils.
56709 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56710 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56711 * modules/utime: Add m4/utimes-null.m4.
56713 2003-08-16 Paul Eggert <eggert@twinsun.com>
56715 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56716 space, undoing this 2003-08-12 change:
56717 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56719 2003-08-16 Paul Eggert <eggert@twinsun.com>
56721 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56722 strtoul.c from libc, undoing this 2003-08-12 change:
56723 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56725 2003-08-16 Jim Meyering <jim@meyering.net>
56727 Merges from coreutils.
56728 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56729 prefix. Adjust cache variables similarly. Create 500 rather than
56730 just 300 files, to exercise bug on Darwin6.5, too.
56731 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56733 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56734 AM_SYS_POSIX_TERMIOS.
56735 Reported by mkc@mathdogs.com.
56736 Also change use of $am_cv_sys_posix_termios
56737 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
56738 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56739 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56740 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56741 in /proc/mounts until it finds one with matching device number. This
56742 is unnecessary when the FILE argument *is* a mount point. No stat call
56743 is necessary in that case. So, disable the statvfs-testing code on
56744 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
56745 as RedHat bug# 84846.
56746 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56747 to 1MB, so as not to render systems with no stack size limit (e.g.,
56748 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56749 Include <unistd.h>. On some systems,
56750 it is required for the definition of _SC_PAGESIZE.
56752 2003-08-16 Jim Meyering <jim@meyering.net>
56754 Merge from coreutils.
56755 * lib/xstrtoimax.c: #else #if -> #elif.
56756 * lib/xstrtoumax.c: Likewise.
56758 2003-08-16 Jim Meyering <jim@meyering.net>
56760 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56761 * m4/utimes.m4: Removed.
56762 * m4/utimes-null.m4: Renamed from utimes.m4.
56764 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56765 to 1MB, so as not to render systems with no stack size limit (e.g.,
56766 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56767 Include <unistd.h>. On some systems,
56768 it is required for the definition of _SC_PAGESIZE.
56770 2003-08-16 Jim Meyering <jim@meyering.net>
56771 and Paul Eggert <eggert@cs.ucla.edu>
56773 Merges from coreutils, etc.
56775 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56776 using the latest version from cvs. This avoids problems with #line
56777 directives using a vendor (Sun) compiler.
56778 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56779 Don't set GETGROUPS_LIB here; now it's
56780 done via getgroups.m4's wrapper function.
56781 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56782 rather than just in sh-util/configure.in, so that the
56783 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56785 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56786 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56787 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56788 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56789 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56790 Remove code that is now done by the newly-required macros.
56791 Append $(EXEEXT) to DF_PROG.
56792 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56793 Do not invoke or require the following here,
56794 since prereq.m4 or some gnulib .m4 now does this for us:
56795 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56796 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56797 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56798 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56799 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56800 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56801 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56803 Do not replace the following functions, as this is now the job
56804 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56805 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56806 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56807 atexit getpass, strdup, getpagesize.
56809 Do not check for the following functions, as this is now the job
56810 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56811 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56813 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56814 Check for sys/sysctl.h.
56815 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56816 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56817 of checking for ssize_t ourselves.
56819 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56820 Require every macro that gnulib/modules/* suggests for us.
56821 (jm_PREREQ_ADDEXT): New macro.
56822 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56823 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56825 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56826 (gl_PHYSMEM): Use it.
56827 Also check for `table' function.
56828 Check for new headers and functions.
56829 Add check for sys/sysmp.h.
56830 With suggestions from Kaveh Ghazi.
56831 Ignore headers that are present but cannot be compiled. This
56832 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56835 2003-08-15 Paul Eggert <eggert@twinsun.com>
56837 Document merge from coreutils.
56838 * modules/userspec: Depend on posixver.
56839 * modules/strftime: Depend on tzset.
56841 2003-08-15 Paul Eggert <eggert@twinsun.com>
56843 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56844 rather than tab, after '#' in shell-script copyright notices.
56845 Suggested by Bruno Haible.
56847 2003-08-15 Paul Eggert <eggert@twinsun.com>
56849 * config/srclist-update: Use three spaces, rather than tab, after '#'
56850 in shell-script copyright notices. Suggested by Bruno Haible.
56851 Remove unnecessary parenthesization in regular expression.
56853 2003-08-15 Jim Meyering <jim@meyering.net>
56855 Merge from coreutils.
56856 * lib/xgethostname.c: Include <stdlib.h>.
56857 (xghostname): Don't exit for anything other than memory-related
56858 failure; just return NULL.
56859 * lib/userspec.c: Include "posixver.h".
56860 (parse_user_spec): Accept `.' as a separator only
56861 in pre-POSIX-200112 mode.
56862 * lib/strtoimax.c: Use #elif rather than #else #if.
56863 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56864 Remove function, now that we can rely on a working tzset function.
56865 [!_LIBC]: Ensure that the required autoconf test has been run.
56866 [!defined _NL_CURRENT && HAVE_STRFTIME]:
56867 Use underlying_strftime for %r.
56868 * lib/sha.c: Merge in some clean-up and optimization changes from
56870 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56871 Ensure that it is a multiple of 64.
56872 Rearrange loop exit tests so as to avoid performing an
56873 additional fread after encountering an error or EOF.
56874 * lib/realloc.c: Update copyright date.
56876 2003-08-15 Jim Meyering <jim@meyering.net>
56877 and Paul Eggert <eggert@twinsun.com>
56879 Merge from coreutils.
56880 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56881 member but strut utmpx does not. Needed for AIX 4.3.3.
56882 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56884 2003-08-15 Jim Meyering <jim@meyering.net>
56885 and Paul Eggert <eggert@cs.ucla.edu>
56887 Merges from coreutils, etc.
56888 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56889 Require gl_FUNC_TZSET_CLOBBER.
56890 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56891 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56894 2003-08-14 Paul Eggert <eggert@twinsun.com>
56896 Help the merge from coreutils.
56897 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56898 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56899 * m4/tzset.m4: Use it too.
56901 2003-08-14 Paul Eggert <eggert@twinsun.com>
56903 * modules/tzset: New file.
56905 2003-08-14 Jim Meyering <jim@meyering.net>
56907 Merges from coreutils.
56908 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56909 variable names, rather than @FNMATCH_H@.
56910 * modules/alloca: Likewise for $(ALLOCA_H).
56912 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56913 the three copies of the literal target, `fnmatch.h'.
56914 * modules/alloca (alloca.h): Likewise.
56916 2003-08-14 Jim Meyering <jim@meyering.net>
56918 Merge from coreutils.
56919 * m4/tzset.m4: New file.
56920 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56921 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56922 otherwise, AIX 5.1 systems would end up using the latter.
56923 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56924 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
56925 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56926 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
56928 2003-08-14 Jim Meyering <jim@meyering.net>
56930 Merge from coreutils.
56931 * lib/obstack.h: Whitespace changes.
56932 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56933 and xcalloc return values.
56934 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56935 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
56936 hang on OSF/1 5.1 for DIR on both local and remote file systems.
56937 Reported by (and fix confirmed by) Nelson H. F. Beebe.
56938 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56940 Use mntctl's return value to drive the entry-processing loop, since
56941 we can't rely on the value of the vmt_length member in the last
56942 entry. On some systems doing so could result in exhausting
56943 virtual memory. Based in part on a patch from Mike Jetzer.
56945 2003-08-14 Jim Meyering <jim@meyering.net>
56946 and Paul Eggert <eggert@twinsun.com>
56948 Merges from coreutils, plus other fixes.
56949 * lib/physmem.c: Merge in portability changes from gcc/libiberty
56950 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
56951 for credits and details. Thanks to Kaveh Ghazi for helping
56952 to keep these files in sync.
56953 (ARRAY_SIZE): Define it.
56954 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56955 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56956 (memcasecmp): Don't assume size_t fits in unsigned int.
56957 Remove casts and duplicate code.
56958 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56959 (memcpy): Remove definition.
56960 Merge in some clean-up and optimization changes from glibc.
56961 [BLOCKSIZE]: Move definition to top of file.
56962 Ensure that it is a multiple of 64.
56963 Rearrange loop exit tests so as to avoid performing an
56964 additional fread after encountering an error or EOF.
56965 * lib/md5.h (md5_uintptr): Define.
56966 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56967 return to the initial working directory. Preserve errno
56969 * lib/idcache.c: Include "xalloc.h".
56970 (xmalloc, xrealloc): Remove decls.
56971 (getuser): Remove casts no longer required in C89.
56972 * lib/human.c: Include stdio.h, for sprintf.
56973 * lib/group-member.c: Include "xalloc.h".
56974 (xmalloc, xrealloc): Remove decls.
56975 (get_group_info): Remove casts no longer required in C89.
56976 * lib/getusershell.c (readname): Remove casts no longer required in
56978 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56979 * lib/getline.c: Whitespace fix, from coreutils.
56981 2003-08-13 Paul Eggert <eggert@twinsun.com>
56983 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56986 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56987 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56988 Undo previous (whitespace-only) change.
56990 2003-08-13 Paul Eggert <eggert@twinsun.com>
56992 * lib/exclude.c: Include <ctype.h>
56993 (IN_CTYPE_DOMAIN): New macro.
56994 (is_space): New fn.
56995 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56998 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56999 Undo previous (whitespace-only) change.
57001 2003-08-13 Paul Eggert <eggert@twinsun.com>
57003 * config/srclist-update: Change update back to the old behavior,
57004 leaving whitespace alone. Use one 'sed' command rather than a
57006 (fixlicense): Now a variable, not a function.
57007 (remove_trailing_blanks): Remove.
57008 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57009 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57010 Undo previous (whitespace-only) change.
57012 2003-08-12 Paul Eggert <eggert@twinsun.com>
57014 Merge from coreutils.
57015 * modules/euidaccess: Add lib_SOURCES, include for new
57018 2003-08-12 Paul Eggert <eggert@twinsun.com>
57020 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57021 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57022 Normalize leading white space and remove trailing white space.
57024 Merge from coreutils
57025 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57027 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57028 0.12.1. These files are now being upgraded automatically by
57029 ../config/srclist-update.
57031 2003-08-12 Paul Eggert <eggert@twinsun.com>
57033 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57034 Normalize leading white space and remove trailing white space.
57035 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57036 notice, as per ../config/srclist-update.
57038 Merge from coreutils.
57039 * lib/euidaccess.h: New file.
57040 * lib/euidaccess.c: Include it.
57041 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57042 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
57043 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57045 2003-08-12 Paul Eggert <eggert@twinsun.com>
57047 * config/srclist-update: Add copyright notice.
57048 (remove_id_lines, remove_trailing_blanks): New constants.
57049 (fixfile): Use them to normalize spacing a bit in copied files.
57050 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57051 Normalize leading white space and remove trailing white space.
57053 * config/texinfo.tex: Sync with texinfo.
57055 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57056 strtoul.c from libc, to merge coreutils whitespace changes.
57058 * config/srclist.txt: Get the following m4 files from gettext:
57059 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57060 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57061 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57064 2003-08-12 Karl Berry <karl@gnu.org>
57066 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57069 2003-08-11 Paul Eggert <eggert@twinsun.com>
57071 * modules/gnu-source, m4/gnu-source.m4:
57072 Remove; we're assuming Autoconf 2.54 or later now.
57073 Suggested by Bruno Haible.
57074 * MODULES.html.sh (func_all_modules): Remove gnu-source.
57076 2003-08-11 Bruno Haible <bruno@clisp.org>
57078 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57080 2003-08-11 Bruno Haible <bruno@clisp.org>
57082 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57083 (vasnprintf): Use it instead of wcslen.
57085 2003-08-11 Bruno Haible <bruno@clisp.org>
57087 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57088 value to ensure that _Bool promotes to int. Use #define for _Bool when
57089 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57091 2003-08-10 Karl Berry <karl@gnu.org>
57093 * lib/regex.h: update from libc (whitespace fix).
57095 2003-08-09 Paul Eggert <eggert@twinsun.com>
57097 Merge some files from coreutils. These changes were
57098 originally made by Jim Meyering.
57099 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57100 many older Unixes require this.
57101 * lib/alloca.c (alloca): Remove cast to argument of free;
57102 no longer needed in C89.
57103 * lib/alloca_.h, regex.h: Fix white space to match
57104 what GNU indent does.
57106 2003-08-09 Paul Eggert <eggert@twinsun.com>
57108 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57109 apparently Emacs's Unicode mode got confused before my 2003-08-05
57112 2003-08-08 Paul Eggert <eggert@twinsun.com>
57114 * m4/extensions.m4: New file.
57115 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57116 Require gl_USE_SYSTEM_EXTENSIONS.
57117 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57118 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57120 2003-08-08 Paul Eggert <eggert@twinsun.com>
57122 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57123 * modules/extensions, modules/gnu-source: New files.
57124 * modules/timespec, modules/unlocked-io: Depend on extensions.
57126 2003-08-07 Paul Eggert <eggert@twinsun.com>
57128 * modules/restrict: New file.
57129 * MODULES.html.sh (func_all_modules): Add restrict.
57130 * modules/regex: Depend on restrict.
57132 2003-08-07 Paul Eggert <eggert@twinsun.com>
57134 * m4/restrict.m4: New file.
57135 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57137 2003-08-07 Bruno Haible <bruno@clisp.org>
57139 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57140 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57142 2003-08-07 Bruno Haible <bruno@clisp.org>
57144 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57145 makes the module 'getndelim2' compatible with the module 'getline'.
57147 2003-08-05 Paul Eggert <eggert@twinsun.com>
57149 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57150 byte with "\201" to avoid glitches when editing that source file
57151 with multi-gnome-terminal.
57153 2003-08-05 Paul Eggert <eggert@twinsun.com>
57155 * lib/bumpalloc.h: Remove.
57157 2003-08-05 Paul Eggert <eggert@twinsun.com>
57159 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57160 * modules/bumpalloc: Remove.
57162 2003-08-04 Paul Eggert <eggert@twinsun.com>
57164 * lib/getloadavg.c: Change copyright notice and spacing to conform to
57167 Merge from coreutils.
57168 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57170 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57171 from Karl Berry, implemented by Jim Meyering.
57172 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57173 from Dmitry V. Levin.
57174 Remove anachronistic cast of xrealloc.
57175 * lib/fnmatch_.h (__const): Remove. Use 'const'.
57176 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57177 type. Otherwise, it wouldn't compile with at least /bin/cc on
57178 ymp-cray-unicos9.0.2.X.
57179 Combine two mostly-identical uses of alloca into one.
57180 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57182 2003-08-04 Dave Love <d.love@dl.ac.uk>
57186 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
57187 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
57188 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57189 obsolete NLIST_NAME_UNION.
57190 [__GNU__]: Undef BSD and FSCALE.
57191 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57193 2003-08-03 Paul Eggert <eggert@twinsun.com>
57195 * lib/stdbool_.h (_Bool): Make it signed char, instead of
57196 an enum type, so that it's guaranteed to promote to int. See:
57197 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57199 2003-08-03 Karl Berry <karl@gnu.org>
57201 * config/depcomp: update from automake.
57203 2003-07-31 Paul Eggert <eggert@twinsun.com>
57205 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
57206 (strerror): Don't assume that a printable int fits in 14 bytes.
57208 2003-07-31 Bruno Haible <bruno@clisp.org>
57210 * modules/getpass-gnu: New file.
57211 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57213 2003-07-31 Bruno Haible <bruno@clisp.org>
57215 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57217 2003-07-24 Karl Berry <karl@gnu.org>
57219 * config/missing: update from automake.
57221 2003-07-24 Derek Robert Price <derek@ximbiot.com>
57222 Bruno Haible <bruno@clisp.org>
57224 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57225 * lib/getline.c (getline, getdelim): Likewise.
57226 Remove _GNU_SOURCE define; now it's defined in config.h through
57229 2003-07-23 Karl Berry <karl@gnu.org>
57231 * config/config.sub: update from prep.
57233 2003-07-22 Paul Eggert <eggert@twinsun.com>
57235 * modules/xalloc (Depends-on): Add exitfail.
57236 * modules/xmemcoll: Likewise.
57238 2003-07-22 Paul Eggert <eggert@twinsun.com>
57240 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57241 over-parenthesization in macros.
57243 Sync with coreutils.
57245 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57248 Use `exit_failure' for xalloc and xmemcoll instead of their own
57249 private exit-failure variables.
57250 * lib/xalloc.h (xalloc_exit_failure): Remove.
57251 * lib/xmalloc.c: Likewise. Include exitfail.h.
57252 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57253 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57254 * lib/xmemcoll.c: Likewise. Include exitfail.h.
57255 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57257 2003-07-20 Jim Meyering <jim@meyering.net>
57259 * modules/closeout (Depends-on): Add exitfail.
57260 Suggestion from Bruno Haible.
57262 2003-07-19 Karl Berry <karl@gnu.org>
57264 * config/config.sub: update from prep.
57266 2003-07-18 Paul Eggert <eggert@twinsun.com>
57268 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57270 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57271 to test that it can stand by itself. Include "exitfail.h".
57272 Clients should set exit_failure instead.
57273 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57275 2003-07-18 Bruno Haible <bruno@clisp.org>
57277 * modules/getndelim2: New file.
57278 * modules/getline: Share files with module getndelim2.
57279 * modules/getnline: Depend on getndelim2 instead of sharing files with
57280 it. Add getnline.c to lib_SOURCES.
57281 * MODULES.html.sh (func_all_modules): Add getndelim2.
57283 2003-07-18 Bruno Haible <bruno@clisp.org>
57285 * m4/getndelim2.m4: New file.
57286 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57287 invoke gl_PREREQ_GETNDELIM2.
57288 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57289 gl_PREREQ_GETNDELIM2.
57290 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57293 2003-07-18 Bruno Haible <bruno@clisp.org>
57295 * lib/getndelim2.h: New file.
57296 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57298 (getndelim2): Make non-static. Change return type to ssize_t.
57299 * lib/getline.h: Change argument names.
57300 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57301 * lib/getnline.c: Include getndelim2.h.
57303 2003-07-18 Andreas Schwab <schwab@suse.de>
57305 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57307 2003-07-17 Karl Berry <karl@gnu.org>
57309 * config/config.sub: update from prep.
57311 2003-07-17 Bruno Haible <bruno@clisp.org>
57313 * modules/getnline: New file.
57314 * modules/getline: Add lib/getndelim2.c to source file list.
57315 * MODULES.html.sh (func_all_modules): Add getnline.
57317 2003-07-17 Bruno Haible <bruno@clisp.org>
57319 * m4/getnline.m4: New file.
57321 2003-07-17 Bruno Haible <bruno@clisp.org>
57323 * m4/Makefile.am.in: Remove file.
57324 * m4/Makefile.am: Remove file.
57325 * m4/Makefile.in: Remove file.
57327 2003-07-17 Bruno Haible <bruno@clisp.org>
57329 * lib/getnline.h: New file.
57330 * lib/getnline.c: New file.
57331 * lib/getndelim2.c: New file, extracted from getline.c.
57332 (getndelim2): Renamed from getdelim2, with added nmax argument.
57333 * lib/getline.c: Include getndelim2.c.
57334 (getdelim2): Moved out to getndelim2.c.
57335 (getline, getdelim): Update.
57337 2003-07-17 Bruno Haible <bruno@clisp.org>
57339 * lib/Makefile.am: Remove file.
57340 * lib/Makefile.in: Remove file.
57342 2003-07-17 Bruno Haible <bruno@clisp.org>
57344 * configure.in: Remove file.
57345 * Makefile.in: Remove file.
57347 2003-07-17 Bruno Haible <bruno@clisp.org>
57349 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57351 2003-07-16 Karl Berry <karl@gnu.org>
57353 * config/srclist-update: was running fixlicense twice, which caused
57354 texinfo.tex to be nullified for some reason. Simplify,
57355 $gplsrc is no longer needed as far as I can see?
57357 2003-07-16 Jim Meyering <jim@meyering.net>
57359 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57361 2003-07-15 Paul Eggert <eggert@twinsun.com>
57363 * config/srclist.txt: Get the following files from gettext-runtime/intl
57364 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57365 ref-del.sin. From Bruno Haible.
57366 * config/srclist-update (fixfile): Change grep pattern again, since the
57367 previous fix didn't work (there was another trailing $). Use
57368 '[$]' to escape the $s.
57370 2003-07-15 Karl Berry <karl@gnu.org>
57372 * lib/vasnprintf.c: update from gettext.
57374 2003-07-15 Karl Berry <karl@gnu.org>
57376 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57377 gets expanded when surrounded by '$'.
57379 2003-07-15 Jim Meyering <jim@meyering.net>
57381 * modules/save-cwd: Don't depend on error. From Derek Price.
57383 2003-07-15 Jim Meyering <jim@meyering.net>
57385 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57387 2003-07-14 Simon Josefsson <jas@extundo.com>
57389 * modules/mempcpy: New file.
57390 * MODULES.html.sh (func_all_modules): Add mempcpy.
57392 2003-07-14 Simon Josefsson <jas@extundo.com>
57394 * m4/mempcpy.m4: New file.
57396 2003-07-14 Simon Josefsson <jas@extundo.com>
57398 * lib/mempcpy.h: New file.
57399 * lib/mempcpy.c: New file.
57401 2003-07-14 Paul Eggert <eggert@twinsun.com>
57403 * modules/getdate, modules/posixtm: Depend on mktime.
57405 2003-07-14 Paul Eggert <eggert@twinsun.com>
57407 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57408 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57409 unicodeio.c, unicodeio.h, unlocked-io.h:
57410 Switch from LGPL to GPL.
57412 2003-07-14 Paul Eggert <eggert@twinsun.com>
57414 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57415 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57416 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57417 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57418 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57419 updated automatically by ../config/srclist-update. This changes
57420 their license from LPGL to GPL.
57422 2003-07-14 Paul Eggert <eggert@twinsun.com>
57424 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57425 assumed to refer to the root of the most recent stable gettext version.
57426 * config/srclistvars.sh: Add defaults for eggert.
57427 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57428 Match "This program" as well as "The program". This is needed
57431 2003-07-14 Jim Meyering <jim@meyering.net>
57433 Don't emit diagnostics. Let callers do that.
57434 * lib/save-cwd.c: Don't include "error.h".
57435 (save_cwd): Don't call error. Ensure that errno is valid
57436 when returning nonzero.
57438 * lib/save-cwd.h (restore_cwd): Update prototype.
57439 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57440 Simplify. Don't call error upon failure. Let callers do that.
57441 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57442 when auditing is enabled. But don't bother updating the #if.
57444 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57446 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57447 it breaks C++ compilation.
57448 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57450 2003-07-10 Simon Josefsson <jas@extundo.com>
57452 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57454 2003-07-10 Jim Meyering <jim@meyering.net>
57456 * m4/clock_time.m4: Remove trailing blank.
57457 * m4/intmax_t.m4: Likewise.
57459 2003-07-10 Jim Meyering <jim@meyering.net>
57461 * lib/vasnprintf.c: Remove trailing blanks.
57462 Make cpp indentation consistent.
57464 2003-07-09 Paul Eggert <eggert@twinsun.com>
57466 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57467 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57468 Switch from LGPL to GPL.
57470 2003-07-09 Paul Eggert <eggert@twinsun.com>
57472 * config/srclist.txt: Sort sublists. Add
57473 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57474 that differ from gnulib for one reason or another; we'd like this list
57475 to be smaller but for now let's document what we have.
57477 2003-07-08 Paul Eggert <eggert@twinsun.com>
57479 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57480 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
57481 and sweeter "eval x=$x".
57482 * config/srclist.txt: Get lib/argp* from glibc.
57484 2003-07-07 Paul Eggert <eggert@twinsun.com>
57486 * lib/mktime.c: Fix some boundary cases and remove need for floating
57489 Issue a compile-time diagnostic if time_t is floating point, or if
57490 two's complement arithmetic is not in effect, or if arithmetic
57491 right shift does not propagate the sign. These assumptions were
57492 all in the original code but they weren't checked.
57494 (TIME_T_MIDPOINT, verify): New macros.
57495 (__isleap): Remove; it has integer overflow problems.
57496 (leapyear): New function, without those problems.
57497 (ydhms_tm_diff): Remove; splitting into two parts.
57498 (ydhms_diff): New function, containing the arithmetic part of
57499 the old ydhms_tm_diff function. Issue a compile-time
57500 diagnostic if we are not using C99 integer division.
57501 Avoid casts when possible.
57502 (guess_time_tm): New function, containing the checking part of
57503 the old ydhms_tm_diff function. Return the new value, rather than
57504 the difference between it and the old. Accept a new argument T
57505 so that *T specifies the old value. Check for overflow in the result.
57507 (__mktime_internal): Use a time_t offset, not a long int offset.
57508 This undoes the 2003-06-04 change, which is no longer needed now
57509 that we have better overflow checking.
57510 (localtime_offset): Likewise.
57512 (__mktime_internal): Avoid harmful overflow on hosts where time_t
57513 and long are 64-bit but int is only 32-bit.
57514 (ydhms_diff): Use long int to store year1 and yday1.
57515 Issue a compile-time diagnostic if long int is not wide enough.
57517 (__mktime_internal): Use long int to store adjusted year and yday.
57518 Use plain C rather than preprocessor commands, if that doesn't
57520 Check for overflow (and try to repair) after each probe
57521 rather than checking only at the very end. This avoids some bugs
57522 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57523 does not equal GMT offset at maximum time).
57524 Use integer to check for overflow rather than floating point; this
57525 is more portable to non-IEEE hosts, and is a tad faster.
57526 When we detect that we are oscillating between two values,
57527 don't check whether tm_isdst has the requested value, since
57528 we already know the answer. When tm_isdst has the wrong value,
57529 use a different heuristic to find the right one, based on the
57530 extreme values actually observed in practice in tz2003a,
57531 rather than the (overly optimistic) "previous 3 calendar quarters".
57533 (not_equal_tm, print_tm, check_result): Use "const T" rather than
57534 "T const" to accommodate glibc style.
57535 (check_result): Use less-confusing report format. "long" -> "long int.
57537 Don't loop if the iteration overflows time_t.
57538 Allow a negative step in the iteration.
57540 2003-07-06 Karl Berry <karl@gnu.org>
57542 * config/depcomp: update from automake.
57543 * config/config.sub: update from prep.
57545 2003-07-03 Karl Berry <karl@gnu.org>
57547 * config/config.guess: update from prep.
57549 2003-07-01 Paul Eggert <eggert@twinsun.com>
57551 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57552 xreadlink.c now includes it unconditionally.
57554 2003-07-01 Paul Eggert <eggert@twinsun.com>
57556 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57557 having it depend on HAVE_SYS_TYPES_H.
57559 2003-07-01 Bruno Haible <bruno@clisp.org>
57561 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57562 <sys/types.h> should be sufficient.
57563 Reported by Paul Eggert.
57565 2003-06-26 Karl Berry <karl@gnu.org>
57567 * config/depcomp: update from automake.
57569 2003-06-26 Bruno Haible <bruno@clisp.org>
57571 * modules/human: Depend on module stdbool.
57573 2003-06-25 Bruno Haible <bruno@clisp.org>
57575 * modules/readlink: New file.
57576 * modules/xreadlink: Depend on it.
57577 * MODULES.html.sh (func_all_modules): Add readlink.
57579 2003-06-25 Bruno Haible <bruno@clisp.org>
57581 * m4/readlink.m4: New file.
57583 2003-06-25 Bruno Haible <bruno@clisp.org>
57585 * lib/readlink.c: New file.
57587 2003-06-22 Karl Berry <karl@gnu.org>
57589 * config/srclist.txt: update mkinstalldirs from automake.
57590 * config/mkinstalldirs: update.
57592 2003-06-22 Bruno Haible <bruno@clisp.org>
57594 Portability to mingw32.
57595 * m4/ssize_t.m4: New file, from GNU gettext.
57596 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57597 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57599 2003-06-22 Bruno Haible <bruno@clisp.org>
57601 * modules/safe-read: Add m4/ssize_t.m4.
57602 * modules/xreadlink: Add m4/ssize_t.m4.
57604 2003-06-20 Bruno Haible <bruno@clisp.org>
57606 Assume C89, so PARAMS isn't needed.
57607 * lib/unicodeio.h (PARAMS): Remove.
57608 * lib/unicodeio.c: Don't use PARAMS.
57610 2003-06-18 Karl Berry <karl@gnu.org>
57612 * config/config.{guess,sub}: update from prep.
57614 2003-06-18 Jim Meyering <jim@meyering.net>
57616 Merge changes from coreutils.
57617 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57618 Remove explicit declarations of xmalloc and realloc.
57620 (read_utmp): Remove anachronistic cast of xmalloc.
57622 2003-06-17 Paul Eggert <eggert@twinsun.com>
57624 Assume C89, so PARAMS isn't needed.
57625 * lib/backupfile.h (PARAMS): Remove. All uses removed.
57626 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57627 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57628 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57629 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57630 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57631 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57632 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57633 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57634 lib/xstrtod.h, lib/xstrtol.h: Likewise.
57635 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57636 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57637 no longer needed. Anyway, config.h should always be included before any
57640 2003-06-11 Simon Josefsson <jas@extundo.com>
57642 * modules/sysexits: New file.
57643 * MODULES.html.sh (func_all_modules): Add sysexits.
57645 2003-06-11 Simon Josefsson <jas@extundo.com>
57647 * lib/sysexit_.h: New file.
57649 2003-06-11 Derek Price <derek@ximbiot.com>
57651 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57654 2003-06-11 Bruno Haible <bruno@clisp.org>
57656 * m4/sysexits.m4: New file.
57658 2003-06-10 Simon Josefsson <jas@extundo.com>
57660 * lib/argp.h: New file, from glibc.
57661 * lib/argp-ba.c: New file, from glibc.
57662 * lib/argp-eexst.c: New file, from glibc.
57663 * lib/argp-fmtstream.c: New file, from glibc.
57664 * lib/argp-fmtstream.h: New file, from glibc.
57665 * lib/argp-fs-xinl.c: New file, from glibc.
57666 * lib/argp-help.c: New file, from glibc.
57667 * lib/argp-namefrob.h: New file, from glibc.
57668 * lib/argp-parse.c: New file, from glibc.
57669 * lib/argp-pv.c: New file, from glibc.
57670 * lib/argp-pvh.c: New file, from glibc.
57671 * lib/argp-xinl.c: New file, from glibc.
57673 2003-06-10 Simon Josefsson <jas@extundo.com>
57675 * modules/strchrnul: New file.
57677 2003-06-10 Simon Josefsson <jas@extundo.com>
57679 * modules/argp: New file.
57681 2003-06-10 Simon Josefsson <jas@extundo.com>
57683 * m4/strchrnul.m4: New file.
57685 2003-06-10 Simon Josefsson <jas@extundo.com>
57687 * lib/strchrnul.h: New file.
57688 * lib/strchrnul.c: New file.
57690 2003-06-10 Bruno Haible <bruno@clisp.org>
57692 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57694 2003-06-07 Karl Berry <karl@gnu.org>
57696 * config/config.{guess,sub}: update from prep.
57698 2003-06-07 Jim Meyering <jim@meyering.net>
57700 * modules/strtod: Use $(...) notation, not @...@ for
57701 AC_REPLACE'd variables.
57702 * modules/localcharset: Likewise.
57704 2003-06-07 Jim Meyering <jim@meyering.net>
57706 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57707 in place of my name in the copyright comment.
57708 Remove definition and uses of __P.
57711 * lib/stat.c: Don't declare xmalloc explicitly.
57712 Instead, include "xalloc.h".
57713 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57714 xrealloc, and xcalloc return values.
57715 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57717 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57719 2003-06-07 Bruno Haible <bruno@clisp.org>
57721 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57722 avoid AC_CONFIG_LINKS.
57723 * modules/fnmatch (Makefile.am): Use explicit creation rule for
57724 fnmatch.h, to avoid AC_CONFIG_LINKS.
57725 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57727 2003-06-07 Bruno Haible <bruno@clisp.org>
57729 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57730 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57731 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57733 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57734 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57737 2003-06-06 Jim Meyering <jim@meyering.net>
57739 Merge from coreutils.
57740 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57741 Consolidate declarations and initializations of *_base* locals.
57743 Merge from coreutils.
57744 This avoids a core dump on systems without GNU putenv,
57745 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57746 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57747 (unsetenv): New static function, from GNU libc.
57748 (rpl_putenv): Use it.
57750 * lib/modechange.c: Remove trailing blanks.
57752 Merge from coreutils.
57753 * lib/fsusage.c: Remove declaration of statfs.
57754 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57756 * lib/posixtm.c: Include <stdbool.h> unconditionally.
57758 2003-06-06 Jim Meyering <jim@meyering.net>
57760 * lib/stdbool_.h: Renamed from stdbool.h.in.
57762 2003-06-06 Jim Meyering <jim@meyering.net>
57763 Bruno Haible <bruno@clisp.org>
57765 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57766 Adjust Makefile.am snippet not to redirect directly to target.
57767 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57769 2003-06-05 Paul Eggert <eggert@twinsun.com>
57771 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57772 mismatch, look in future quarters as well as past. This fixes a
57773 bug when processing fall-backwards gaps immediately after a long
57774 period of daylight-saving time.
57776 * lib/mktime.c: Assume freestanding C89 or better.
57777 (HAVE_LIMITS_H): Remove. Assume it's 1.
57778 (__P): Remove; not used.
57779 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57780 (mktime, not_equal_tm, print_tm, check_result,
57781 main): Use prototypes. Use const * where appropriate.
57782 (main): Fix typo in testing code that uncovered by above changes.
57783 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57785 2003-06-04 Paul Eggert <eggert@twinsun.com>
57787 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57788 locale.h, localeconv. This merges changes from coreutils.
57790 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57791 It can be removed after the next Autoconf is released.
57792 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57795 2003-06-04 Paul Eggert <eggert@twinsun.com>
57797 * lib/mktime.c: Fix Debian bug 177940
57798 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57799 (localtime_offset): Now long int, not time_t, because we want it
57800 to be guaranteed to be signed. All uses changed.
57801 (__mktime_internal): If overflow would occur when adding offset,
57804 Merge 'human' changes from coreutils. Rewrite to support
57805 locale-specific notations like thousands separators.
57806 * lib/human.c: Simplify authorship notice.
57807 Include human.h immediately after config.h.
57808 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57809 <limits.h>: Do not include, since human.h does.
57810 (SIZE_MAX, UINTMAX_MAX): New macros.
57811 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57812 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57813 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57814 (power_letter): Renamed from suffixes.
57815 (generate_suffix_backwards): Remove.
57816 (adjust_value): Now takes int style (because of human.h changes)
57817 and long double value (for greater precision on some platforms).
57818 (group_number): New function.
57819 (human_readable): Use it. Use integer options, not enum.
57820 Put the options before the sizes in the arg list.
57821 Support all the new options.
57822 The old human_readable function has been removed;
57823 use inttostr.h instead.
57824 (human_readable, default_block_size, humblock):
57825 Use uintmax_t, not int, for block sizes.
57826 (human_readable_inexact, block_size_types): Remove.
57827 (block_size_opts): New constant.
57828 (human_options): Renamed from human_block_size, with new signature
57829 that allows block sizes up to UINTMAX_MAX. All callers changed.
57830 * lib/human.h: Add copyright and authorship notice.
57831 Include <limits.h> and <stdbool.h> unconditionally.
57832 (PARAMS): Remove. All uses removed.
57833 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57834 (enum human_inexact_style): Remove tag; now a nameless enum.
57835 (human_floor, human_ceiling, human_round_to_even): Now have
57836 values 2, 0, 1 rather than -1, 1, 0.
57837 (human_group_digits, human_suppress_point_zero, human_autoscale,
57838 human_base_1024, human_SI, human_B): New constants.
57839 (human_readable_inexact, human_block_size): Remove.
57840 (human_readable): Size args are now uintmax_t, not int.
57841 (human_options): New decl.
57843 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57844 unnecessary now that we assume C89 or better. This change
57845 imported from coreutils.
57847 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57848 arbitrarily. This is the same patch as 2003-05-28, but it got lost
57849 in the 2003-05-30 sync from glibc.
57851 .h files should stand alone, but we shouldn't include <sys/types.h>
57852 if we can get away with just <stddef.h>.
57854 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57855 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57856 rather than <sys/types.h>, as we merely need size_t.
57857 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57859 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57860 Include <stdio.h>, to get FILE.
57861 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57862 memcasecmp.h has included <stddef.h> and all we need is size_t.
57863 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57864 our interface, instead of including <sys/types.h>
57866 2003-06-04 Paul Eggert <eggert@twinsun.com>
57868 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57869 now, as glibc mktime is buggy on non-glibc systems.
57871 2003-06-03 Karl Berry <karl@gnu.org>
57873 * config/config.sub: update from prep.
57875 2003-06-02 Paul Eggert <eggert@twinsun.com>
57878 Fix some minor time-related bugs with POSIX time arguments.
57879 Some valid time stamps were being rejected (notably -1, and
57880 time stamps before 1900 on 64-bit hosts). And some invalid
57881 time stamps were being accepted, e.g. September 31.
57883 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57884 that we can return (time_t) -1 successfully.
57885 * lib/posixtm.c: Likewise.
57886 [HAVE_STDBOOL_H]: Include <stdbool.h>.
57887 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57888 (t): Remove static var.
57889 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57890 of static var. All uses changed.
57891 (year): Do not reject years before 1900; they can occur with
57893 (posix_time_parse): Do not check for out-of-range components;
57894 that is now the caller's responsibility, since our checks were
57895 only approximations.
57896 (posixtime): Use mktime to check for out-of-range components,
57897 since it knows them exactly.
57898 If mktime returns (time_t) -1, check whether an error actually occurred
57899 by invoking localtime on -1.
57900 (main) [TEST_POSIXTIME]: Check for input data errors, and report
57901 posixtime failures better.
57902 Improve the test data (in comments only).
57904 2003-06-02 Karl Berry <karl@gnu.org>
57906 * config/mkinstalldirs (version): new variable.
57907 (--version): new option.
57908 (usage): improve message.
57910 2003-05-30 Karl Berry <karl@gnu.org>
57912 * lib/mktime.c: update from libc.
57914 2003-05-30 Bruno Haible <bruno@clisp.org>
57916 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57917 * config/config.rpath: Upgrade to gettext-0.12.1.
57919 2003-05-30 Bruno Haible <bruno@clisp.org>
57921 * m4/gettext.m4: Upgrade to gettext-0.12.1.
57922 * m4/nls.m4: New file, from gettext-0.12.1.
57923 * m4/po.m4: New file, from gettext-0.12.1.
57924 * m4/progtest.m4: Upgrade to gettext-0.12.1.
57926 2003-05-30 Bruno Haible <bruno@clisp.org>
57928 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57929 * lib/localcharset.h: Likewise.
57930 * lib/localcharset.c: Likewise.
57932 2003-05-29 Karl Berry <karl@gnu.org>
57934 * config/config.rpath: update from gettext.
57936 2003-05-28 Paul Eggert <eggert@twinsun.com>
57938 Assume the headers required for C89 freestanding compilers.
57939 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57940 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57941 * m4/human.m4 (gl_HUMAN): Likewise.
57942 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57943 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57944 * m4/userspec.m4 (gl_USERSPEC): Likewise.
57945 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57946 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57947 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57949 2003-05-28 Paul Eggert <eggert@twinsun.com>
57951 Assume the headers required for C89 freestanding compilers.
57952 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57953 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57954 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57955 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57956 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57957 define, since <limits.h> is guaranteed to do that.
57958 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57959 * lib/exclude.c: Include <stdbool.h> unconditionally.
57960 * lib/tempname.c: Include <stddef.h> unconditionally.
57961 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57962 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57963 <stddef.h> does that.
57964 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57965 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57966 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57968 * lib/xstrtol.c: Likewise.
57969 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57970 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57972 * lib/addext.c (addext): Use assignment rather than cast, to avoid
57973 warnings on some platforms.
57975 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57978 2003-05-26 Jim Meyering <jim@meyering.net>
57980 Merge in a change from coreutils:
57981 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57982 that is guaranteed to be `no'. Use `no_such_member' to indicate
57983 that condition, rather than `-1' which is slightly misleading.
57984 Change the name of the cache variable to have the gl_ prefix.
57985 Prompted by a patch from Richard Dawe for DJGPP.
57987 2003-05-24 Karl Berry <karl@gnu.org>
57989 * config/config.guess: update from prep.
57991 2003-05-22 Karl Berry <karl@gnu.org>
57993 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57995 2003-05-20 Karl Berry <karl@gnu.org>
57997 * config/config.guess: update from prep.
57999 2003-05-18 Karl Berry <karl@gnu.org>
58001 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58002 might actually be set by the user.
58004 * config/depcomp, install-sh, mdate-sh: update from automake.
58006 2003-05-17 Bruno Haible <bruno@clisp.org>
58008 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58009 invalid expansion for AC_EGREP_CPP.
58010 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58011 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58012 Suggested by Akim Demaille <akim@epita.fr> in
58013 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58015 2003-05-12 Jim Meyering <jim@meyering.net>
58017 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58018 the space-padded-by-default conversion specifiers, %e, %k, %l.
58020 2003-05-12 Bruno Haible <bruno@clisp.org>
58022 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58023 the string is longer than 4 KB.
58025 2003-05-11 Karl Berry <karl@gnu.org>
58027 * config/config.{guess,sub}: update from prep.
58029 2003-05-09 Bruno Haible <bruno@clisp.org>
58031 * modules/error: Add m4/strerror_r.m4 to file list.
58033 2003-05-03 Bruno Haible <bruno@clisp.org>
58035 Upgrade to Unicode-4.0.
58036 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58037 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58038 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58039 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58040 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58041 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58042 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58043 Change width of U+E0100..U+E01EF from 1 to 0.
58045 2003-04-25 Jim Meyering <jim@meyering.net>
58047 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58048 of type size_t, not int.
58050 2003-04-25 Bruno Haible <bruno@clisp.org>
58052 * lib/copy-file.c: Include <stddef.h>, for size_t.
58054 2003-04-21 Paul Eggert <eggert@twinsun.com>
58056 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58057 code which expansion is under static control. Patch imported from
58058 Akim Demaille's patch to Bison; see
58059 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58061 2003-04-14 Bruno Haible <bruno@clisp.org>
58063 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58065 2003-04-11 Jim Meyering <jim@meyering.net>
58067 Merge changes from Coreutils.
58069 2003-03-22 Jim Meyering <jim@meyering.net>
58071 * lib/strftime.c (widen): Cast alloca return value to proper type.
58073 2003-01-19 Ulrich Drepper <drepper@redhat.com>
58076 * lib/strftime.c (my_strftime): Handle very large width
58077 specifications for numeric values correctly. Improve checks for
58080 2003-01-19 Jim Meyering <jim@meyering.net>
58082 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58084 (nl_get_alt_digit) [! defined my_strftime]: Define.
58085 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58086 _nl_get_alt_digit and _nl_get_walt_digit.
58088 * lib/strftime.c (my_strftime): Merge in locale-related changes from
58089 libc. These changes have no effect outside of _LIBC.
58091 2003-04-10 Bruno Haible <bruno@clisp.org>
58093 * modules/findprog: New file.
58094 * MODULES.html.sh (func_all_modules): Add it.
58096 2003-04-10 Bruno Haible <bruno@clisp.org>
58098 * m4/findprog.m4: New file.
58099 * m4/eaccess.m4: New file.
58101 2003-04-10 Bruno Haible <bruno@clisp.org>
58103 * lib/findprog.h: New file, from GNU gettext.
58104 * lib/findprog.c: New file, from GNU gettext.
58106 2003-04-05 Jim Meyering <jim@meyering.net>
58108 Merge changes from Coreutils.
58110 * lib/exclude.h (PARAMS): Remove definition and uses.
58111 * lib/exclude.c: Remove uses of `PARAMS'.
58113 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58114 Add test-cases for DOS filenames. Declare program_name.
58115 (main): Set up program_name. Patch by Rich Dawe.
58117 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58119 Use mntctl's return value to drive the entry-processing loop, since
58120 we can't rely on the value of the vmt_length member in the last
58121 entry. On some systems doing so could result in exhausting
58122 virtual memory. Based in part on a patch from Mike Jetzer.
58124 2003-04-04 Bruno Haible <bruno@clisp.org>
58126 * modules/linebreak: New file.
58127 * MODULES.html.sh (func_all_modules): Add it.
58129 2003-04-04 Bruno Haible <bruno@clisp.org>
58131 * m4/linebreak.m4: New file.
58133 2003-04-04 Bruno Haible <bruno@clisp.org>
58135 * lib/linebreak.h: New file, from GNU gettext.
58136 * lib/linebreak.c: New file, from GNU gettext with slight
58138 * lib/lbrkprop.h: New file, from GNU gettext.
58140 2003-04-03 Bruno Haible <bruno@clisp.org>
58142 * modules/utf8-ucs4: New file.
58143 * modules/utf16-ucs4: New file.
58144 * modules/ucs4-utf8: New file.
58145 * modules/ucs4-utf16: New file.
58146 * MODULES.html.sh (func_all_modules): Add them.
58148 2003-04-03 Bruno Haible <bruno@clisp.org>
58150 * m4/utf-ucs4.m4: New file.
58151 * m4/ucs4-utf.m4: New file.
58153 2003-04-03 Bruno Haible <bruno@clisp.org>
58155 * lib/utf8-ucs4.h: New file, from GNU gettext.
58156 * lib/utf16-ucs4.h: New file, from GNU gettext.
58157 * lib/ucs4-utf8.h: New file, from GNU gettext.
58158 * lib/ucs4-utf16.h: New file, from GNU gettext.
58160 2003-04-02 Bruno Haible <bruno@clisp.org>
58162 * modules/binary-io: New file.
58163 * MODULES.html.sh (func_all_modules): Add it.
58165 2003-04-02 Bruno Haible <bruno@clisp.org>
58167 * lib/binary-io.h: New file, from GNU gettext.
58169 2003-04-01 Bruno Haible <bruno@clisp.org>
58171 * modules/pathname: New file.
58172 * MODULES.html.sh (func_all_modules): Add it.
58174 2003-04-01 Bruno Haible <bruno@clisp.org>
58176 * lib/pathname.h: New file, from GNU gettext.
58177 * lib/concatpath.c: New file, from GNU gettext.
58179 2003-03-30 Bruno Haible <bruno@clisp.org>
58181 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58183 2003-03-30 Bruno Haible <bruno@clisp.org>
58185 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58186 function chown() doesn't exist.
58188 2003-03-28 Bruno Haible <bruno@clisp.org>
58190 * modules/copy-file: New file.
58191 * MODULES.html.sh (func_all_modules): Add it.
58193 2003-03-28 Bruno Haible <bruno@clisp.org>
58195 * m4/copy-file.m4: New file.
58197 2003-03-28 Bruno Haible <bruno@clisp.org>
58199 * lib/copy-file.h: New file, from GNU gettext.
58200 * lib/copy-file.c: New file, from GNU gettext.
58202 2003-03-18 Jim Meyering <jim@meyering.net>
58204 * lib/quote.c (quote_n): Fix typo in comment.
58206 2003-03-18 Bruno Haible <bruno@clisp.org>
58208 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58210 * m4/onceonly_2_57.m4: Likewise.
58212 2003-03-17 Bruno Haible <bruno@clisp.org>
58214 * m4/onceonly.m4: Require autoconf 2.54 or newer.
58215 (m4_quote): Remove macro.
58216 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58218 2003-03-14 Jim Meyering <jim@meyering.net>
58220 Merge changes from Coreutils.
58221 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58222 to be const, in order to avoid warnings.
58223 (obstack_room): Likewise.
58224 (obstack_empty_p): Likewise.
58226 2003-03-14 Bruno Haible <bruno@clisp.org>
58228 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58229 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58231 2003-03-13 Paul Eggert <eggert@twinsun.com>
58233 Merge changes from Bison.
58234 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58235 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58236 when compiling Bison 1.875's `bitset bset = obstack_alloc
58237 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
58238 * lib/hash.c: Include <stdbool.h> unconditionally.
58240 2003-03-13 Paul Eggert <eggert@twinsun.com>
58242 * m4/onceonly.m4 (m4_quote): New macro.
58243 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58244 Quote AC_FOREACH variable-expansions properly.
58246 2003-03-13 Paul Eggert <eggert@twinsun.com>
58248 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58250 2003-03-09 Paul Eggert <eggert@twinsun.com>
58252 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58253 Reported by Bruce Becker; see:
58254 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58256 2003-03-03 Paul Eggert <eggert@twinsun.com>
58257 Bruno Haible <bruno@clisp.org>
58259 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58260 Reported by John Hughes, see
58261 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58263 2003-02-20 Bruno Haible <bruno@clisp.org>
58265 * MODULES.html.sh (func_all_modules): Add poll.
58267 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58269 * modules/poll: New file.
58271 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58273 * lib/poll_.h: New file.
58274 * lib/poll.c: New file.
58276 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58278 * m4/poll.m4: New file.
58280 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58282 * modules/mathl: New file.
58284 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58286 * lib/mathl.h: New file.
58287 * lib/acosl.c: New file.
58288 * lib/asinl.c: New file.
58289 * lib/atanl.c: New file.
58290 * lib/ceill.c: New file.
58291 * lib/cosl.c: New file.
58292 * lib/expl.c: New file.
58293 * lib/floorl.c: New file.
58294 * lib/frexpl.c: New file.
58295 * lib/ldexpl.c: New file.
58296 * lib/logl.c: New file.
58297 * lib/sincosl.c: New file.
58298 * lib/sinl.c: New file.
58299 * lib/sqrtl.c: New file.
58300 * lib/tanl.c: New file.
58301 * lib/trigl.c: New file.
58302 * lib/trigl.h: New file.
58304 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58306 * m4/mathl.m4: New file.
58308 2003-02-18 Bruno Haible <bruno@clisp.org>
58310 * MODULES.html.sh (func_all_modules): Add mathl.
58312 2003-02-17 Bruno Haible <bruno@clisp.org>
58314 * modules/mkdtemp: New module.
58315 * MODULES.html.sh (func_all_modules): Add it.
58317 2003-02-17 Bruno Haible <bruno@clisp.org>
58319 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58321 2003-02-17 Bruno Haible <bruno@clisp.org>
58323 * lib/mkdtemp.h: New file, from GNU gettext.
58324 * lib/mkdtemp.c: New file, from GNU gettext.
58326 2003-02-02 Jim Meyering <jim@meyering.net>
58328 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58331 2003-01-31 Bruno Haible <bruno@clisp.org>
58333 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58335 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58337 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58339 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58342 2003-01-31 Bruno Haible <bruno@clisp.org>
58344 * lib/rename.c: #undef rename before defining rpl_rename.
58345 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58347 2003-01-30 Bruno Haible <bruno@clisp.org>
58349 * modules/vasnprintf, modules/vasprintf: New modules.
58350 * MODULES.html.sh (func_all_modules): Add them.
58352 2003-01-30 Bruno Haible <bruno@clisp.org>
58354 * m4/signed.m4: New file, from GNU gettext.
58355 * m4/longdouble.m4: New file, from GNU gettext.
58356 * m4/wchar_t.m4: New file, from GNU gettext.
58357 * m4/wint_t.m4: New file, from GNU gettext.
58358 * m4/vasnprintf.m4: New file.
58359 * m4/vasprintf.m4: New file.
58361 2003-01-30 Bruno Haible <bruno@clisp.org>
58363 * lib/printf-args.h: New file, from GNU gettext.
58364 * lib/printf-args.c: New file, from GNU gettext.
58365 * lib/printf-parse.h: New file, from GNU gettext.
58366 * lib/printf-parse.c: New file, from GNU gettext.
58367 * lib/vasnprintf.h: New file, from GNU gettext.
58368 * lib/vasnprintf.c: New file, from GNU gettext.
58369 * lib/asnprintf.c: New file, from GNU gettext.
58370 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58371 * lib/vasprintf.c: New file, from GNU gettext.
58372 * lib/asprintf.c: New file, from GNU gettext.
58374 2003-01-29 Bruno Haible <bruno@clisp.org>
58376 * modules/stpncpy: New module.
58377 * MODULES.html.sh (func_all_modules): Add it.
58379 2003-01-29 Bruno Haible <bruno@clisp.org>
58381 * m4/stpncpy.m4: New file.
58383 2003-01-29 Bruno Haible <bruno@clisp.org>
58385 * lib/stpncpy.h: New file, from GNU gettext with modifications.
58386 * lib/stpncpy.c: New file, from GNU gettext with modifications.
58388 2003-01-28 Bruno Haible <bruno@clisp.org>
58390 * modules/c-ctype: New module.
58391 * MODULES.html.sh (func_all_modules): Add it.
58393 2003-01-28 Bruno Haible <bruno@clisp.org>
58395 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58397 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58400 2003-01-27 Bruno Haible <bruno@clisp.org>
58402 * modules/xsetenv: New module.
58403 * MODULES.html.sh (func_all_modules): Add it.
58405 2003-01-27 Bruno Haible <bruno@clisp.org>
58407 * lib/xsetenv.h: New file, from GNU gettext.
58408 * lib/xsetenv.c: New file, from GNU gettext.
58410 2003-01-23 Jim Meyering <jim@meyering.net>
58412 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58413 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58415 2003-01-23 Bruno Haible <bruno@clisp.org>
58417 * modules/minmax: New module.
58418 * MODULES.html.sh (func_all_modules): Add it.
58420 2003-01-23 Bruno Haible <bruno@clisp.org>
58422 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58425 2003-01-22 Bruno Haible <bruno@clisp.org>
58427 * modules/exit: New module.
58428 * MODULES.html.sh (func_all_modules): Add it.
58430 2003-01-22 Bruno Haible <bruno@clisp.org>
58432 * lib/exit.h: New file, from GNU gettext.
58434 2003-01-19 Bruno Haible <bruno@clisp.org>
58436 * gnulib-tool: Recognize option --extract-maintainer.
58437 (func_get_maintainer): New function.
58438 * modules/*: Add Maintainer entry.
58440 2003-01-16 Jim Meyering <jim@meyering.net>
58442 * m4/regex.m4: The `regex' struct is both input and output.
58443 Initialize it before each use. Patch by Tim Waugh.
58445 2003-01-16 Bruno Haible <bruno@clisp.org>
58447 * MODULES.html.sh: Add a table of contents. Add the module name as
58448 leftmost column. Add hyperlinks.
58450 2003-01-15 Bruno Haible <bruno@clisp.org>
58452 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58454 2003-01-15 Bruno Haible <bruno@clisp.org>
58456 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58457 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58460 2003-01-15 Bruno Haible <bruno@clisp.org>
58462 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58464 2003-01-15 Bruno Haible <bruno@clisp.org>
58466 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58467 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58469 2003-01-14 Jim Meyering <jim@meyering.net>
58471 * lib/same.c (same_name): Tweak a comment.
58473 2003-01-14 Bruno Haible <bruno@clisp.org>
58475 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58476 when a string comparison is sufficient.
58478 2003-01-14 Bruno Haible <bruno@clisp.org>
58480 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58483 2003-01-14 Bruno Haible <bruno@clisp.org>
58485 * lib/hash-pjw.c: Add comment about low quality of this function.
58487 2003-01-13 Bruno Haible <bruno@clisp.org>
58489 * modules/stpcpy: Distribute lib/stpcpy.h.
58490 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58492 2003-01-13 Bruno Haible <bruno@clisp.org>
58494 * modules/*: Add a description.
58495 * modules/strpbrk: Fix Makefile.am snippet.
58496 * modules/strtoimax: Fix dependencies.
58497 * modules/strtoumax: Likewise.
58499 2003-01-13 Bruno Haible <bruno@clisp.org>
58501 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58502 * modules/alloca (Makefile.am): All object files depend on alloca.h.
58503 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58505 2003-01-13 Bruno Haible <bruno@clisp.org>
58507 * gnulib-tool (func_create_testdir): Store config/* files in the main
58509 * config.rpath: Move to ...
58510 * config/config.rpath: ... here.
58511 * modules/gettext: Contains config/config.rpath, not config.rpath.
58512 * modules/iconv: Likewise.
58514 2003-01-12 Paul Eggert <eggert@twinsun.com>
58516 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58517 to avoid collisions with libcurses and libreadline.
58519 * m4/getstr.m4: Remove.
58520 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
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 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58528 * lib/getstr.h, getstr.c: Remove.
58529 * lib/getline.c: Include "getline.h", to check interface.
58530 Move body of old getstr.c here: this defines MIN_CHUNK and
58531 declares getdelim2, which is renamed from getstr.
58532 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58534 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58536 * lib/linebuffer.h: Likewise.
58537 (readline): Remove backward-compatibility macro.
58539 2003-01-12 Paul Eggert <eggert@twinsun.com>
58541 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58542 to avoid collisions with libcurses and libreadline.
58544 * MODULES.html.sh: Remove getstr.
58545 * modules/getline: Depend on unlocked-io, not getstr.
58547 2003-01-12 Jim Meyering <jim@meyering.net>
58549 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
58551 2003-01-10 Bruno Haible <bruno@clisp.org>
58553 * modules/alloca: Change Makefile.am requirements. Simplify Include
58554 requirements. Add lib/alloca_.h to file list.
58556 2003-01-10 Bruno Haible <bruno@clisp.org>
58558 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58560 2003-01-10 Bruno Haible <bruno@clisp.org>
58562 * lib/alloca_.h: New file.
58563 * lib/getdate.y: Unconditionally include alloca.h.
58564 * lib/makepath.c: Likewise.
58565 * lib/setenv.c: Likewise.
58566 * lib/userspec.c: Likewise.
58568 2003-01-09 Karl Berry <karl@gnu.org>
58570 * MODULES.html.sh: include `dirname $0` in PATH, to find
58573 2003-01-09 Bruno Haible <bruno@clisp.org>
58575 * modules/stdbool: Change configure.ac, Makefile.am requirements.
58576 Simplify Include requirements. Add lib/stdbool.h.in to file list.
58578 2003-01-09 Bruno Haible <bruno@clisp.org>
58580 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58582 2003-01-09 Bruno Haible <bruno@clisp.org>
58584 * lib/stdbool.h.in: New file.
58586 2003-01-09 Bruno Haible <bruno@clisp.org>
58588 * gnulib-tool (func_all_modules): Ignore files ending in ~.
58589 * MODULES.html.sh: Likewise.
58591 2003-01-08 Jim Meyering <jim@meyering.net>
58593 * lib/full-write.c: Undefine and define-away `const' after inclusion
58594 of errno.h, not before. Suggestion from Bruno Haible.
58596 2003-01-08 Bruno Haible <bruno@clisp.org>
58598 * modules/full-read: Depend on full-write.
58600 2003-01-08 Bruno Haible <bruno@clisp.org>
58602 * lib/safe-read.c: Include specification header first, to ensure its
58604 * lib/full-write.c: Likewise.
58606 2003-01-07 Jim Meyering <jim@meyering.net>
58608 * lib/full-write.c: Rework so that it may serve to define full_read,
58610 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58612 2003-01-07 Bruno Haible <bruno@clisp.org>
58614 * lib/strtoimax.c: Include <stdint.h> as an alternative to
58616 * lib/xstrtol.h: Likewise.
58617 * lib/xstrtoimax.c: Likewise.
58618 * lib/xstrtoumax.c: Likewise.
58619 * lib/human.h: Likewise.
58621 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58622 on systems that have <inttypes.h> but not <stdint.h>.
58624 2003-01-07 Bruno Haible <bruno@clisp.org>
58626 * MODULES.html.sh: Add copyright notice.
58627 (missed_files): Omit CVS directory entries.
58628 (func_module): Make it work with sed-3.02.
58629 * MODULES.txt: Remove file.
58631 2003-01-06 Jim Meyering <jim@meyering.net>
58633 * lib/version-etc.c: Update year in translatable copyright string.
58635 2003-01-03 Karl Berry <karl@gnu.org>
58637 * config/config.{guess,sub}: update from prep.
58639 2003-01-02 Karl Berry <karl@gnu.org>
58641 * doc/COPYING.DOC: belatedly updated to 1.2.
58643 2003-01-01 Karl Berry <karl@gnu.org>
58645 * gnulib-tool (func_verify_module): report module name $module in
58646 error message, not $1.
58647 * gnulib-tool (create-testdir): don't complain if destdir couldn't
58648 be created, only if it doesn't exist.
58649 * gnulib-tool (last_checkin_date): don't expand the $Date here.
58651 2002-12-31 Paul Eggert <eggert@twinsun.com>
58653 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58655 2002-12-31 Paul Eggert <eggert@twinsun.com>
58657 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58658 memcmp if strcoll doesn't work.
58660 2002-12-31 Bruno Haible <bruno@clisp.org>
58662 * lib/utime.c (utime_null): No need to call ftruncate if the file was
58665 2002-12-31 Bruno Haible <bruno@clisp.org>
58667 * lib/memcoll.c (STRCOLL): New macro.
58670 2002-12-31 Bruno Haible <bruno@clisp.org>
58672 * lib/localcharset.h: New file.
58673 * lib/localcharset.c: Include it.
58674 * lib/unicodeio.c: Likewise.
58676 2002-12-31 Bruno Haible <bruno@clisp.org>
58678 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58679 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58681 2002-12-31 Bruno Haible <bruno@clisp.org>
58683 * lib/getline.h: Include <stddef.h>, for size_t.
58685 * lib/unicodeio.h: Include <stddef.h>, for size_t.
58686 * lib/unicodeio.c: Don't include <stddef.h>.
58688 2002-12-31 Bruno Haible <bruno@clisp.org>
58690 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58693 2002-12-24 Karl Berry <karl@gnu.org>
58695 * config/config.guess: update from prep.
58697 2002-12-24 Bruno Haible <bruno@clisp.org>
58699 General infrasructure.
58700 * m4/README: Rewritten.
58701 * m4/onceonly.m4: New file.
58702 * m4/onceonly_2_57.m4: New file.
58705 * m4/atexit.m4: New file.
58708 * m4/strtod.m4: New file.
58711 * m4/strtol.m4: New file.
58714 * m4/strtoul.m4: New file.
58717 * m4/memchr.m4: New file.
58720 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58721 (jm_FUNC_MEMCMP): Invoke it.
58724 * m4/memcpy.m4: New file.
58727 * m4/memmove.m4: New file.
58730 * m4/memset.m4: New file.
58733 * m4/strcspn.m4: New file.
58736 * m4/strpbrk.m4: New file.
58739 * m4/strstr.m4: New file.
58742 * m4/strerror.m4: New file.
58745 * m4/mktime.m4: Renamed from jm-mktime.m4.
58746 (gl_PREREQ_MKTIME): New macro.
58747 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58750 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58751 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58752 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58755 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58756 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58757 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58760 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58761 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58762 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58764 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58767 * m4/xalloc.m4: New file.
58770 * m4/alloca.m4: New file.
58773 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58774 (jm_FUNC_PUTENV): Invoke it.
58777 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58778 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58779 when invoked twice.
58780 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58784 * m4/memrchr.m4: New file.
58787 * m4/stpcpy.m4: New file.
58790 * m4/strcase.m4: New file.
58793 * m4/strdup.m4: New file.
58796 * m4/strnlen.m4: New file.
58799 * m4/strndup.m4: New file.
58802 * m4/xstrtod.m4: New file.
58805 * m4/xstrtol.m4: New file.
58808 * m4/getdate.m4: New file.
58810 Module unlocked-io.
58811 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58812 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58813 * m4/jm-glibc-io.m4n: Remove file.
58815 Module long-options.
58816 * m4/long-options.m4: New file.
58819 * m4/md5.m4: New file.
58822 * m4/sha.m4: New file.
58825 * m4/getstr.m4: New file.
58828 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58829 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58830 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58831 simply getline. Infoke gl_PREREQ_GETLINE.
58834 * m4/obstack.m4: New file.
58837 * m4/hash.m4: New file.
58840 * m4/readtokens.m4: New file.
58843 * m4/strverscmp.m4: New file.
58846 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58850 * m4/strtoll.m4: New file.
58853 * m4/strtoull.m4: New file.
58856 * m4/strtoimax.m4: New file.
58859 * m4/strtoumax.m4: New file.
58862 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58863 jm_AC_PREREQ_XSTRTOIMAX.
58864 Moved the strtol prerequisites to strtol.m4.
58865 Moved the strtoll prerequisites to strtoll.m4.
58866 Moved the strtoimax prerequisites to strtoimax.m4.
58869 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58870 jm_AC_PREREQ_XSTRTOUMAX.
58871 Moved the strtoul prerequisites to strtoul.m4.
58872 Moved the strtoull prerequisites to strtoull.m4.
58873 Moved the strtoumax prerequisites to strtoumax.m4.
58876 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58877 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58880 * m4/dup2.m4: New file.
58883 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58884 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58887 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58888 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58890 Module gettimeofday.
58891 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58892 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58893 gl_PREREQ_GETTIMEOFDAY.
58896 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58897 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58900 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58901 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58902 jm_AC_TYPE_UINTMAX_T.
58903 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58906 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58907 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58910 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58911 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58914 * m4/timespec.m4 (gl_TIMESPEC): New macro.
58915 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58916 * m4/st_mtim.m4: Indentation.
58919 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58920 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58921 gl_PREREQ_NANOSLEEP.
58924 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58925 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58926 (gl_REGEX): New macro.
58929 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58930 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58933 * m4/rmdir.m4: New file.
58936 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58937 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58938 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58941 * m4/dirname.m4: New file.
58944 * m4/getopt.m4: New file.
58946 Module unistd-safer.
58947 * m4/unistd-safer.m4: New file.
58950 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58952 (gl_PREREQ_FNMATCH_EXTRA): New macro.
58953 (gl_FUNC_FNMATCH_POSIX): New macro.
58954 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58955 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58959 * m4/exclude.m4: New file.
58962 * m4/human.m4: New file.
58968 * m4/backupfile.m4: New file.
58969 * m4/d-ino.m4: Indentation.
58972 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58973 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58974 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58977 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58981 * m4/euidaccess.m4: New file.
58984 * m4/file-type.m4: New file.
58987 * m4/fileblocks.m4: New file.
58990 * m4/filemode.m4: New file.
58993 * m4/isdir.m4: New file.
58996 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58997 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59000 * m4/makepath.m4: New file.
59003 * m4/modechange.m4: New file.
59006 * m4/mountlist.m4: New file.
59007 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59010 Module path-concat.
59011 * m4/path-concat.m4: New file.
59014 * m4/pathmax.m4: New file.
59017 * m4/same.m4: New file.
59020 * m4/save-cwd.m4: New file.
59023 * m4/savedir.m4: New file.
59026 * m4/xgetcwd.m4: New file.
59027 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59030 * m4/xreadlink.m4: New file.
59033 * m4/safe-read.m4: New file.
59036 * m4/safe-write.m4: New file.
59039 * m4/closeout.m4: New file.
59041 Module stdio-safer.
59042 * m4/stdio-safer.m4: New file.
59045 * m4/getpass.m4: New file.
59048 * m4/getugroups.m4: New file.
59050 Module group-member.
59051 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59052 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59055 * m4/idcache.m4: New file.
59058 * m4/userspec.m4: New file.
59061 * m4/clock_time.m4: New file.
59062 * m4/gettime.m4: New file.
59065 * m4/settime.m4: New file.
59068 * m4/posixtm.m4: New file.
59070 Module gethostname.
59071 * m4/gethostname.m4: New file.
59074 * m4/canon-host.m4: New file.
59077 * m4/codeset.m4: New file, from gettext-0.11.5.
59078 * m4/gettext.m4: New file, from gettext-0.11.5.
59079 * m4/glibc21.m4: New file, from gettext-0.11.5.
59080 * m4/iconv.m4: New file, from gettext-0.11.5.
59081 * m4/intdiv0.m4: New file, from gettext-0.11.5.
59082 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59083 * m4/inttypes.m4: New file, from gettext-0.11.5.
59084 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59085 * m4/isc-posix.m4: New file, from gettext-0.11.5.
59086 * m4/lcmessage.m4: New file, from gettext-0.11.5.
59087 * m4/lib-ld.m4: New file, from gettext-0.11.5.
59088 * m4/lib-link.m4: New file, from gettext-0.11.5.
59089 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59090 * m4/progtest.m4: New file, from gettext-0.11.5.
59091 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59092 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59093 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59095 Module localcharset.
59096 * m4/localcharset.m4: New file.
59098 Module hard-locale.
59099 * m4/hard-locale.m4: New file.
59102 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59104 * m4/mbrtowc.m4: Add comment.
59107 * m4/memcasecmp.m4: New file.
59110 * m4/memcoll.m4: New file.
59113 * m4/unicodeio.m4: New file.
59116 * m4/rpmatch.m4: New file.
59119 * m4/yesno.m4: New file.
59122 * m4/exitfail.m4: New file.
59125 * m4/c-stack.m4 (gl_C_STACK): New macro.
59126 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59129 * m4/error.m4 (gl_ERROR): New macro.
59130 (jm_PREREQ_ERROR): Use onceonly macros.
59133 * m4/fatal.m4: New file.
59136 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59137 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59139 Module getpagesize.
59140 * m4/getpagesize.m4: New file.
59142 Module getusershell.
59143 * m4/getusershell.m4: New file.
59146 * m4/physmem.m4: New file.
59149 * m4/posixver.m4: New file.
59152 * m4/quotearg.m4: New file.
59155 * m4/quote.m4: New file.
59158 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59161 * m4/sig2str.m4: New file.
59164 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59166 * m4/intmax_t.m4: New file.
59167 * m4/d-type.m4: Indentation.
59168 * m4/jm-macros.m4: Update.
59169 * m4/prereq.m4 (jm_PREREQ): Update.
59170 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59171 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59172 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59173 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59174 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59175 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59176 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59177 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59178 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59179 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59180 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59181 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59182 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59183 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59184 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59185 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59186 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59187 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59188 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59190 2002-12-24 Bruno Haible <bruno@clisp.org>
59192 * MODULES.txt: Update according to m4/ changes.
59195 * config.rpath: New file, from gettext-0.11.5.
59197 * modules/*: New module descriptions.
59198 * gnulib-tool: New file.
59199 * MODULES.html.sh: New file.
59201 2002-12-21 Karl Berry <karl@gnu.org>
59203 * doc/fdl.texi: update to version 1.2.
59205 2002-12-19 Karl Berry <karl@gnu.org>
59207 * config/config.guess: update from prep.
59209 2002-12-18 Bruno Haible <bruno@clisp.org>
59211 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59212 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59214 2002-12-17 Bruno Haible <bruno@clisp.org>
59216 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59217 stdlib.h, string.h.
59219 2002-12-17 Bruno Haible <bruno@clisp.org>
59221 * lib/canon-host.c (strdup): Remove unused declaration.
59223 * lib/fsusage.c: Include full_read.h.
59224 (get_fs_usage): Use full_read instead of safe_read.
59226 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59228 2002-12-12 Karl Berry <karl@gnu.org>
59230 * config/config.guess: update from prep.
59232 2002-12-11 Bruno Haible <bruno@clisp.org>
59234 * m4/setenv.m4: New file, from gettext-0.11.5.
59236 2002-12-11 Bruno Haible <bruno@clisp.org>
59238 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59240 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59243 2002-12-11 Bruno Haible <bruno@clisp.org>
59245 * setenv.c (alloca): Fall back to malloc.
59246 (freea): New macro.
59247 (setenv): Use freea() to free memory allocated with alloca().
59249 2002-11-13 Bruno Haible <bruno@clisp.org>
59251 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59252 function declarations.
59253 * unsetenv.c (unsetenv): Likewise.
59255 2002-03-04 Bruno Haible <bruno@clisp.org>
59257 Portability to AIX 4.3.3.
59258 * unsetenv.c: New file, extracted from setenv.c.
59259 * setenv.c: Move the unsetenv() function to unsetenv.c.
59261 2001-12-20 Bruno Haible <bruno@clisp.org>
59263 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59264 use malloc instead. For SunOS 4.
59266 2001-12-11 Bruno Haible <bruno@clisp.org>
59268 * setenv.c: Declare alloca.
59269 (compar_fn_t): New typedef.
59270 (KNOWN_VALUE, STORE_VALUE): Use it.
59272 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59275 2002-12-10 Paul Eggert <eggert@twinsun.com>
59277 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59278 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59279 Choose values that are less likely to collide with system fnmatch
59281 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59282 defined (e.g., a pure POSIX system).
59283 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59284 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59286 2002-12-06 Paul Eggert <eggert@twinsun.com>
59288 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59289 a pain in practice to deal with generated m4 files. This change
59290 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59292 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59293 and jm-glibc-io.m4, as they are no longer a special case.
59294 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59295 kludge and the auto-generation stuff. Check only whether the
59296 functions are declared, not whether they exist, since older hosts
59297 that don't declare the functions can't use the optimization anyway.
59299 2002-12-06 Jim Meyering <jim@meyering.net>
59301 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59303 Merge in changes from libc's misc/error.c, in preparation
59304 for the merge of gnulib's changes back into libc.
59306 * lib/error.c (_): Define only if not already defined.
59307 Move definition to follow all #include directives.
59308 Include unlocked-io.h only if !_LIBC.
59309 [_LIBC]: Include <libio/libioP.h>.
59310 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59311 (fflush): Tweak definition to use INTUSE.
59314 2002-12-05 Paul Eggert <eggert@twinsun.com>
59316 * lib/alloca.c [defined emacs]: Include "lisp.h".
59317 (xalloc_die) [defined emacs]: New macro.
59318 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59319 [! defined emacs]: Include <xalloc.h>.
59320 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59321 (pointer): Typedef to POINTER_TYPE *.
59322 (malloc): Remove decl; we now always use xmalloc.
59323 (alloca): Use old-style definition, since Emacs needs this.
59324 Check for arithmetic overflow when computing combined size.
59326 2002-12-04 Paul Eggert <eggert@twinsun.com>
59328 Do not generate unlocked-io.h automatically, since it's easier to
59329 maintain it by hand.
59331 * lib/unlocked-io.h: New file, from GNU diffutils,
59332 but with proper copyright notice and attribution.
59333 * lib/gen-uio: Remove.
59334 * lib/Makefile.am: Add copyright notice.
59335 (libfetish_a_SOURCES): Add unlocked-io.h.
59336 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59337 (DISTCLEANFILES, io_functions): Remove macros.
59338 (EXTRA_DIST): Remove gen_uio.
59339 (unlocked-io.h): Remove rule.
59341 2002-12-04 Jim Meyering <jim@meyering.net>
59343 Reflect the fact that stat.c and lstat.c are no longer generated.
59344 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59345 (DISTCLEANFILES): Likewise.
59346 (EXTRA_DIST): Likewise.
59347 (all_local): Don't depend on stat.c or lstat.c.
59348 (stat.c, lstat.c): Remove rules.
59349 (EXTRA_DIST): Remove xstat.in.
59351 * lib/xstat.in: Remove file. Contents moved into stat.c.
59352 * lib/stat.c: New file. Contents mostly from xstat.in.
59353 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59354 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59356 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59358 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59360 2002-12-03 Jim Meyering <jim@meyering.net>
59362 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59363 but not semantics, to minimize the differences between these two files.
59364 (safe_read): Change comment to mention SAFE_READ_ERROR.
59366 * lib/safe-read.c (IS_EINTR): Define.
59367 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59369 2002-12-02 Jim Meyering <jim@meyering.net>
59371 * lib/safe-read.c (EINTR): Define.
59372 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59373 (INT_MAX): Provide fallback.
59374 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59376 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59378 2002-12-02 Bruno Haible <bruno@clisp.org>
59380 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59381 Define, taken from safe-read.c.
59382 (INT_MAX): Provide fallback.
59383 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59384 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59386 * lib/safe-read.c (EINTR): Remove definition.
59387 (safe_read): Don't use EINTR if it is absent.
59389 2002-12-01 Jim Meyering <jim@meyering.net>
59391 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59393 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59395 2002-11-27 Paul Eggert <eggert@twinsun.com>
59397 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59398 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59399 with `if (! (value < limit)) abort ();', for readability.
59401 2002-11-26 Karl Berry <karl@gnu.org>
59403 * lib/strdup.c: copy from libc again, with jim's ok.
59404 * lib/.cppi-disable: re-add strdup.c
59406 2002-11-25 Karl Berry <karl@gnu.org>
59408 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59409 instead of "strtol.c".
59411 2002-11-25 Karl Berry <karl@gnu.org>
59413 * config/install-sh: update from automake for variable quoting, $0 in
59416 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59417 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59420 2002-11-25 Jim Meyering <jim@meyering.net>
59422 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59424 2002-11-24 Karl Berry <karl@gnu.org>
59426 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59427 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59429 2002-11-24 Jim Meyering <jim@meyering.net>
59431 Update from coreutils:
59433 * lib/mktime.c: Merge in changes from libc.
59435 Avoid a link-time failure on some Linux systems.
59436 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59438 (__mon_yday): Declare with the STATIC attribute.
59439 (__mktime_internal): Likewise.
59440 Based on a report from Greg Schafer.
59442 2002-11-23 Jim Meyering <jim@meyering.net>
59444 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59445 Use `unsigned', not `int', as type of index.
59447 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59449 * lib/fsusage.c: Remove unneeded parentheses around operands of
59452 2002-11-22 Paul Eggert <eggert@twinsun.com>
59454 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59455 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59456 so that we can be included first.
59457 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59458 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59459 No need to include stddef.h or sys/types.h any more.
59460 Surround local include files with "", not "<>".
59461 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59462 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59463 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59464 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59465 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59466 (ISPRINT): Remove; no longer needed now that we assume C89.
59468 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59471 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59472 quotearg_char): Use SIZE_MAX rather than
59473 (size_t) -1 when we are talking about "infinity".
59475 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59477 2002-11-22 Paul Eggert <eggert@twinsun.com>
59479 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59480 hint that one should use `if (! x) abort ();' rather than `assert
59481 (x);', and anyway it's one less thing to worry about configuring.
59482 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59483 hash_rehash, hash_insert): Use abort rather than assert.
59485 2002-11-22 Bruno Haible <bruno@clisp.org>
59487 * lib/safe-read.h: Assume C89. Add comments.
59488 (safe_read): Change return type to size_t.
59489 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59490 byte counts > SSIZE_MAX correctly.
59491 * lib/safe-write.h: New file.
59492 * lib/safe-write.c: New file.
59493 * lib/full-read.h: New file.
59494 * lib/full-read.c: New file.
59495 * lib/full-write.h: Assume C89. Add comments.
59496 * lib/full-write.c: Include safe-write.h.
59497 (full_write): Rewritten to use safe_write.
59498 Suggested by Jim Meyering and Paul Eggert.
59500 2002-11-21 Jim Meyering <jim@meyering.net>
59502 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59504 Merge in changes from the coreutils.
59506 2002-09-25 Paul Eggert <eggert@twinsun.com>
59507 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59509 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59510 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59511 int. Work more efficiently if X is the same width as uintmax_t.
59512 Do not compare X to -1, to avoid bogus compiler warning.
59513 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59514 Don't assume that f_frsize and f_bsize are the same type.
59516 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59517 warning on FreeBSD.
59519 * lib/makepath.c (make_path): Restore umask *before* creating the final
59521 (make_path): Minor reformatting.
59523 * lib/xmalloc.c: Adjust to work with new autoconf macros,
59524 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59525 HAVE_MALLOC/HAVE_REALLOC.
59527 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59528 dummy ones. At least on GNU/Linux systems, `auto' means something
59530 From Michael Stone.
59532 2002-11-21 Bruno Haible <bruno@clisp.org>
59534 Remove case insensitive option matching.
59535 * lib/argmatch.h (argcasematch): Remove declaration.
59536 (ARGCASEMATCH): Remove macro.
59537 (__xargmatch_internal): Remove case_sensitive argument.
59538 (XARGMATCH): Update.
59539 (XARGCASEMATCH): Remove macro.
59540 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59541 case_sensitive argument.
59542 (argcasematch): Remove function.
59543 (__xargmatch_internal): Remove case_sensitive argument.
59544 (main): Use XARGMATCH instead of XARGCASEMATCH.
59546 * lib/xmalloc.c: Change compile-time error message. Add comment about
59547 required autoconf version.
59549 2002-11-20 Paul Eggert <eggert@twinsun.com>
59551 Merge argmatch cleanups from Bison. Assume C89.
59553 * lib/argmatch.c: Include config.h here, not in argmatch.h.
59554 Include stdlib.h, for EXIT_FAILURE.
59555 Always include <string.h>, since we assume C89.
59556 (EXIT_FAILURE): Remove pre-C89 bug workaround.
59557 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59558 Include <stddef.h> instead, since it's all we need for size_t.
59559 (PARAMS): Remove. All uses removed.
59560 (ARRAY_CARDINALITY): Do not bother to #undef.
59561 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59562 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59563 Remove unnecessary parentheses.
59564 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59565 Insert necessary parentheses.
59566 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59567 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59569 2002-11-19 Bruno Haible <bruno@clisp.org>
59571 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59572 * lib/mbswidth.h: Include <stddef.h>, for size_t.
59574 * lib/mbswidth.h (PARAMS): Remove macro.
59575 (mbswidth, mbsnwidth): Use ANSI C function declarations.
59576 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59578 * lib/gcd.h (PARAMS): Remove macro.
59579 (gcd): Use ANSI C function declarations.
59580 * lib/gcd.c (gcd): Likewise.
59582 2002-11-15 Bruno Haible <bruno@clisp.org>
59584 * lib/strcspn.c: Include <stddef.h>.
59585 (strcspn): Use ANSI C function declaration. Change return type to
59587 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59588 (strpbrk): Use NULL.
59589 * lib/strpbrk.h (PARAMS): Remove macro.
59590 (strpbrk): Use ANSI C function declaration.
59591 * lib/strstr.c: Don't include <sys/types.h>.
59592 * lib/strstr.h (PARAMS): Remove macro.
59593 (strstr): Use ANSI C function declarations.
59595 2002-11-14 Karl Berry <karl@gnu.org>
59597 * config/mkinstalldirs: `do' on separate line, instead of
59600 2002-11-06 Bruno Haible <bruno@clisp.org>
59602 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59603 * lib/gcd.c (gcd): Likewise.
59605 2002-11-05 Bruno Haible <bruno@clisp.org>
59607 * lib/gcd.h: New file, from gettext-0.11.5.
59608 * lib/gcd.c: New file, from gettext-0.11.5.
59610 2002-11-05 Bruno Haible <bruno@clisp.org>
59612 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59613 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59614 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59615 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59617 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59619 * lib/makepath.c: Include gettext.h instead of <locale.h> and
59622 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59623 * lib/human.c: Include gettext.h instead of <libintl.h>.
59624 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59625 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59626 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59627 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59628 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59629 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59630 (textdomain): Remove definition.
59631 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59633 * lib/long-options.c: Remove include of <libintl.h> and definition of
59635 * lib/same.c: Remove include of <libintl.h> and definition of _.
59637 2002-11-04 Owen Taylor <otaylor@redhat.com>
59639 * lib/config.charset: A few additions for Solaris.
59641 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59643 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59644 * lib/localcharset.c (locale_charset): Declare as extern "C".
59646 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59648 * lib/config.charset: msdos in uk_UA uses CP1125.
59650 2002-11-04 Bruno Haible <bruno@clisp.org>
59652 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59653 * lib/strcase.h: New file, from GNU gettext-0.11.5.
59654 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59655 * lib/strstr.h: New file, from GNU gettext-0.11.5.
59656 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59658 2002-11-04 Bruno Haible <bruno@clisp.org>
59660 * lib/localcharset.c (locale_charset): Don't return an empty string.
59662 2002-11-04 Bruno Haible <bruno@clisp.org>
59664 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59667 2002-11-04 Bruno Haible <bruno@clisp.org>
59669 * lib/config.charset: Update for newest glibc. Add canonical names
59670 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59672 2002-11-04 Bruno Haible <bruno@clisp.org>
59674 * lib/config.charset: Add support for NetBSD.
59676 2002-11-04 Bruno Haible <bruno@clisp.org>
59678 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59680 2002-11-01 Bruno Haible <bruno@clisp.org>
59682 * configure.in: Add AC_CONFIG_AUX_DIR call.
59683 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59685 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59687 2002-09-28 Karl Berry <karl@gnu.org>
59689 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59690 installed automake until the next release, since changes have been
59693 2002-09-25 Karl Berry <karl@gnu.org>
59695 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59696 * lib/getopt*: copy from libc/posix.
59697 * lib/gettext.h: copy from gettext.
59698 * lib/.cppi-disable: add strdup.c, gettext.h.
59700 2002-09-25 Karl Berry <karl@gnu.org>
59702 * config/srclist.txt: enable gettext.h check.
59703 * config/config.{guess,sub}: update from prep.
59704 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59705 from automake 1.6.3.
59708 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
59710 * regex.c (PATFETCH): Remove the translating fetch.
59711 (PATFETCH_RAW): Rename to PATFETCH.
59712 (set_image_of_range): New fun.
59713 (SET_RANGE_TABLE_WORK_AREA): Use it.
59714 (regex_compile): Don't translate the pattern chars so eagerly.
59715 Only do it when inserting an `exactn' bytecode or when handling
59717 (mutually_exclusive_p): Avoid empty statement.
59719 2002-07-06 Jim Meyering <meyering@lucent.com>
59721 * m4/README: Don't mention Makefile.am.in.
59722 Outline how I've tested changes to .m4 files. Yep, it's a pain.
59724 2002-07-01 Jim Meyering <meyering@lucent.com>
59726 * lib/c-stack.c: Include sys/time.h.
59727 From Volker Borchert.
59729 2002-06-26 Paul Eggert <eggert@twinsun.com>
59731 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59733 2002-06-26 Paul Eggert <eggert@twinsun.com>
59735 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59736 New macro. Use it uniformly instead of
59737 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59738 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59739 reported by Vin Shelton.
59741 2002-06-22 Paul Eggert <eggert@twinsun.com>
59743 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59744 Do not assume SA_SIGINFO behavior.
59745 Bug reported by Jim Meyering on NetBSD 1.5.2.
59747 2002-06-22 Jim Meyering <meyering@lucent.com>
59749 * m4/c-stack.m4: New file, from diffutils-2.8.2.
59750 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59752 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59753 now that configure.ac uses AC_GNU_SOURCE.
59754 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59755 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59757 Update to latest tools. Suggestions from Paul Eggert.
59758 * m4/stdbool.m4: New file, from diffutils-2.8.2.
59759 * m4/gnu-source.m4: Update from diffutils-2.8.2.
59760 * m4/fnmatch.m4: Likewise.
59761 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59762 to AC_HEADER_STDBOOL
59764 2002-06-22 Jim Meyering <meyering@lucent.com>
59766 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59767 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59769 2002-06-22 Jim Meyering <meyering@lucent.com>
59771 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59773 * lib/exitfail.c, exitfail.h: Likewise.
59774 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59776 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59778 (EXTRA_DIST): Add fnmatch_loop.c.
59779 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59781 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59782 * lib/fnmatch.c: Update from diffutils-2.8.2.
59783 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59784 * lib/fnmatch.h: Remove file.
59786 2002-06-21 Jim Meyering <meyering@lucent.com>
59788 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59789 * m4/mbrtowc.m4: Likewise.
59791 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59792 * m4/mbswidth.m4: Reflect name change:
59793 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59794 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59796 * m4/lib-link.m4: Update from gettext-0.11.2.
59797 * m4/gettext.m4: Likewise.
59799 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59800 From Alfred M. Szmidt.
59802 2002-06-18 Paul Eggert <eggert@twinsun.com>
59804 * lib/file-type.h: Report an error if neither S_ISREG nor
59805 S_IFREG is defined, instead of using a test specific to glibc
59806 2.2. This should be safe, since POSIX requires S_ISREG and
59807 Unix Version 7 had S_IFREG. We don't need to check for
59808 <sys/types.h> since we don't use any symbols that it defines.
59810 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59812 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59813 $@-t, so that each temporary file name is unique and valid in the first
59814 8 characters, for operation under DOS.
59816 2002-06-15 Paul Eggert <eggert@twinsun.com>
59818 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59820 2002-06-15 Jim Meyering <meyering@lucent.com>
59822 Work even with DJGPP 2.03, which lacks support for symlinks.
59824 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59826 * lib/lchown.c (S_ISLNK): Likewise.
59828 2002-06-15 Jim Meyering <meyering@lucent.com>
59830 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59831 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59832 have been included before this file.
59834 2002-06-14 Jim Meyering <meyering@lucent.com>
59836 * lib/file-type.h: Use the version from diffutils-2.8.2.
59837 * lib/file-type.c: Likewise.
59839 2002-06-07 Jim Meyering <meyering@lucent.com>
59841 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59842 They're needed at least for NetBSD 1.5.2.
59843 ($statxfs_includes): Include those same headers.
59844 ($statxfs_includes): Include sys/vfs.h if available.
59845 ($statxfs_includes): Likewise for sys/statvfs.h.
59846 Check for the following members in both structs statfs and statvfs:
59847 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59849 2002-06-01 Jim Meyering <meyering@lucent.com>
59851 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59852 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59854 2002-05-28 Jim Meyering <meyering@lucent.com>
59856 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59857 Reported by Volker Borchert.
59859 2002-05-27 Jim Meyering <meyering@lucent.com>
59861 Fix a problem seen only on nonconforming systems whereby ls.c's
59862 use of localtime, and then of gettimeofday would cause trouble:
59863 the localtime call used to initialize rpl_gettimeofday's save
59864 mechanism would clobber ls's current local time information so
59865 that in any long listing the first file would always be listed
59866 with date 1970-01-01. Analysis by Volker Borchert.
59868 * lib/gettimeofday.c (localtime): Undefine.
59869 (rpl_localtime): New function.
59871 2002-05-27 Jim Meyering <meyering@lucent.com>
59873 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59876 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59877 use the replacement function; it wouldn't resolve at link time.
59878 Reported by Volker Borchert.
59880 2002-05-22 Jim Meyering <meyering@lucent.com>
59882 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59884 * lib/file-type.h: New file.
59885 * lib/file-type.c (file_type): New file/function. Extracted from
59888 2002-04-30 Jim Meyering <meyering@lucent.com>
59890 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59892 2002-04-29 Paul Eggert <eggert@twinsun.com>
59894 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59896 2002-04-29 Paul Eggert <eggert@twinsun.com>
59898 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59899 Do not check for alloca.h (no longer used) or stdbool.h (was never
59900 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
59902 2002-04-29 Paul Eggert <eggert@twinsun.com>
59904 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59906 2002-04-29 Jim Meyering <meyering@lucent.com>
59908 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59909 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59910 Use AC_FUNC_STRNLEN here instead.
59912 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59913 With autoconf-2.53a, it's part of AC_PROG_CC.
59915 2002-04-28 Paul Eggert <eggert@twinsun.com>
59917 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59918 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59920 2002-04-28 Paul Eggert <eggert@twinsun.com>
59922 * lib/sig2str.h, lib/sig2str.c: New files.
59923 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59925 2002-04-28 Paul Eggert <eggert@twinsun.com>
59927 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59928 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
59929 of 127, since 64 is the largest conceivable number for ancient
59931 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59933 2002-04-28 Jim Meyering <meyering@lucent.com>
59935 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59937 2002-04-24 Jim Meyering <meyering@lucent.com>
59939 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59940 (jm_PREREQ): Use it.
59942 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59943 mach/mach.h fcntl.h.
59944 Check for this function: setlocale.
59946 2002-04-24 Jim Meyering <meyering@lucent.com>
59948 * lib/gettext.h: New file, from Gettext.
59949 * lib/Makefile.am (INCLUDES): Remove -I../intl.
59950 (libfetish_a_SOURCES): Add gettext.h.
59952 2002-04-16 Jim Meyering <meyering@lucent.com>
59954 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59955 ut_pid, ut_id, ut_exit.
59957 2002-04-16 Jim Meyering <meyering@lucent.com>
59959 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59960 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59961 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59963 2002-04-12 Jim Meyering <meyering@lucent.com>
59965 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59966 now-bogus check for f_type in sys/mount.h. Instead, just test for the
59967 existence of the getmntinfo function. Needed for Darwin 5.3.
59969 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59970 This is necessary at least on Darwin 5.3.
59972 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59973 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
59974 strnlen.o in the library, and that makes some versions of ranlib
59977 2002-04-12 Jim Meyering <meyering@lucent.com>
59979 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59981 2002-04-09 Jim Meyering <meyering@lucent.com>
59983 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59984 to be more precise. Rather than saying we're checking whether the
59985 function `works', say what we're testing.
59986 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59987 Reported by Bruno Haible.
59989 2002-03-10 Jim Meyering <meyering@lucent.com>
59991 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59992 Suggestion from Santiago Vila.
59994 2002-03-08 Jim Meyering <meyering@lucent.com>
59996 * lib/rename.c: Mention that this wrapper is needed also on
59997 mips-dec-ultrix4.4 systems.
59999 2002-03-02 Jim Meyering <meyering@lucent.com>
60001 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60002 not HAVE_CLOCK_SETTIME.
60004 2002-02-27 Paul Eggert <eggert@twinsun.com>
60006 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60007 Check for clock_settime.
60009 2002-02-27 Paul Eggert <eggert@twinsun.com>
60011 * lib/nanosleep.h: Rename to....
60012 * lib/timespec.h: New name for nanosleep.h. All uses changed.
60014 * lib/gettime.c: New file.
60015 * lib/settime.c: New file.
60016 * lib/stime.c: Remove.
60018 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60019 timespec.h. Remove nanosleep.h.
60021 2002-02-25 Paul Eggert <eggert@twinsun.com>
60023 * m4/acl.m4: New file.
60024 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60025 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60027 2002-02-25 Paul Eggert <eggert@twinsun.com>
60029 * lib/acl.c, lib/acl.h: New files.
60030 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60032 2002-02-24 Jim Meyering <meyering@lucent.com>
60034 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60035 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60036 cause trouble. Reported by Nelson Beebe.
60038 2002-02-23 Paul Eggert <eggert@twinsun.com>
60040 * lib/path-concat.c (xpath_concat): Reorder code to pacify
60041 compilers that don't know that xalloc_die never returns.
60043 2002-02-20 Jim Meyering <meyering@lucent.com>
60045 * lib/getdate.c: Regenerate using bison-1.33.
60047 2002-02-17 Jim Meyering <meyering@lucent.com>
60049 * config/config.guess (main): Don't use `head -1'; it's no longer
60050 portable. Use `sed 1q' instead.
60052 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
60054 * m4/codeset.m4: Upgrade to gettext-0.11.
60055 * m4/gettext.m4: Upgrade to gettext-0.11.
60056 * m4/glibc21.m4: Upgrade to gettext-0.11.
60057 * m4/iconv.m4: Upgrade to gettext-0.11.
60058 * m4/isc-posix.m4: Upgrade to gettext-0.11.
60059 * m4/lcmessage.m4: Upgrade to gettext-0.11.
60060 * m4/lib-ld.m4: New file, from gettext-0.11.
60061 * m4/lib-link.m4: New file, from gettext-0.11.
60062 * m4/lib-prefix.m4: New file, from gettext-0.11.
60063 * m4/progtest.m4: Upgrade to gettext-0.11.
60065 2002-02-15 Paul Eggert <eggert@twinsun.com>
60067 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60068 (jm_PREREQ): Use it.
60070 2002-02-15 Paul Eggert <eggert@twinsun.com>
60072 * lib/posixver.c, lib/posixver.h: New files.
60073 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60075 2002-02-02 Paul Eggert <eggert@twinsun.com>
60076 Bruno Haible <bruno@clisp.org>
60078 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60079 (fwrite_success_callback): New declaration.
60080 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60081 print_unicode_char. Call failure callback instead of error.
60082 (fwrite_success_callback): New function.
60083 (exit_failure_callback): New function.
60084 (fallback_failure_callback): New function.
60085 (print_unicode_char): Call unicode_to_mb.
60087 2002-01-26 Jim Meyering <meyering@lucent.com>
60089 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60090 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60092 2002-01-26 Jim Meyering <meyering@lucent.com>
60094 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60096 2002-01-22 Paul Eggert <eggert@twinsun.com>
60098 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60100 2002-01-22 Jim Meyering <meyering@lucent.com>
60102 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60103 Otherwise, some versions of automake would omit the rule that makes
60104 Makefile from Makefile.in.
60106 2002-01-21 Paul Eggert <eggert@twinsun.com>
60108 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60109 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60110 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60111 (memcoll): Set errno to zero if there is no error.
60113 * lib/quotearg.c (quotearg_buffer_restyled):
60114 Fix bug with quoting buffers containing NUL when backslashing escapes.
60115 This bug was exposed by the other changes in this patch.
60116 (quotearg_n_options): New arg ARGSIZE.
60117 All callers changed.
60118 (quoting_options_from_style): New function.
60119 (quotearg_n_style): Use it.
60120 (quotearg_n_style_mem): New function.
60122 * lib/quotearg.h (quotearg_n_style_mem): New function.
60124 2002-01-19 Jim Meyering <meyering@lucent.com>
60126 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60127 Remove useless quotes: DF_PROG="df".
60128 * m4/strnlen.m4: New file.
60130 2002-01-16 Paul Eggert <eggert@twinsun.com>
60132 * lib/backupfile.c (ISDIGIT): Comment fix.
60133 * lib/getdate.y (ISDIGIT): Likewise.
60134 * lib/posixtm.c (ISDIGIT, year): Likewise.
60135 * lib/strverscmp.c (ISDIGIT): Likewise.
60136 * lib/userspec.c (ISDIGIT): Likewise.
60138 2002-01-16 Jim Meyering <meyering@lucent.com>
60140 * lib/getdate.y: Add three semicolons, each just before a closing
60141 brace. Bison (as of version 1.31) no longer papers over that mistake.
60143 2002-01-05 Jim Meyering <meyering@lucent.com>
60145 * lib/version-etc.c (version_etc_copyright): Update copyright year.
60147 2001-12-19 Paul Eggert <eggert@twinsun.com>
60149 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60150 not silently exit merely because the output buffer happens to
60151 have nothing pending.
60153 2001-12-18 Paul Eggert <eggert@twinsun.com>
60155 See the big note in ../ChangeLog.
60156 * lib/human.c (suffixes): Prefer K to k for 1024.
60157 (generate_suffix_backwards): New function.
60158 (human_readable_inexact): Use it.
60159 * lib/xstrtol.c (__xstrtol): If there is no number but there
60160 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
60161 Accept 'K' as well as 'k'.
60163 2001-12-15 Jim Meyering <meyering@lucent.com>
60165 * lib/regex.h (__restrict_arr): Update from libc.
60167 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60168 as `remote' if the name starts with `//'. Suggested by Michael Stone.
60171 2001-12-14 Jim Meyering <meyering@lucent.com>
60173 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60174 Suggestion from Bruno Haible.
60176 2001-12-10 Jim Meyering <meyering@lucent.com>
60178 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60179 xrealloc, Instead, include "xalloc.h".
60180 (initbuffer): Don't cast xmalloc return value to char*.
60181 (readline): Reword comment.
60182 Don't cast xrealloc return value to char*
60183 Return NULL, not 0.
60185 2001-12-09 Jim Meyering <meyering@lucent.com>
60187 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60188 about `signed and unsigned type in conditional expression'.
60189 * lib/posixtm.c (posix_time_parse): Likewise.
60191 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60193 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60194 to avoid a pedantic warning.
60196 * lib/getstr.c: Don't include assert.h.
60197 (getstr): Remove warning-evoking assertions.
60198 Return -1 if offset parameter is out of bounds.
60199 Change the type of a local from int to size_t.
60201 * lib/strftime.c (my_strftime_localtime_r): Include this function
60202 definition in the `#if ! HAVE_TM_GMTOFF' block.
60204 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60205 Include xalloc.h instead.
60207 2001-12-02 Jim Meyering <meyering@lucent.com>
60209 * lib/tempname.c: Don't declare getenv, thus reverting the change of
60210 2001-11-18. It's no longer necessary, now that stdlib.h is always
60213 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60214 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
60216 2001-11-30 Akim Demaille <akim@epita.fr>
60218 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60219 before being defined.
60221 2001-11-27 Paul Eggert <eggert@twinsun.com>
60223 * lib/quotearg.h (quotearg_n, quotearg_n_style):
60224 First arg is int, not unsigned.
60225 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60226 (SIZE_MAX, UINT_MAX): New macros.
60227 (quotearg_n_options): Abort if N is negative.
60228 Avoid overflow check on hosts where size_t is 64 bits and int
60229 is 32 bits, as overflow is impossible there.
60230 Fix off-by-one typo that caused unnecessary reallocation.
60232 2001-11-27 Jim Meyering <meyering@lucent.com>
60234 * lib/tempname.c: Merge with version from libc.
60235 * lib/regex.c: Likewise.
60237 * lib/tempname.c: Include stdlib.h unconditionally. On some old
60238 systems for which STDC_HEADERS is 0, it was not included, resulting in
60239 a warning about an integer-to-pointer conversion problem with getenv.
60240 Reported by Volker Borchert.
60242 2001-11-26 Jim Meyering <meyering@lucent.com>
60244 * lib/gtod.h: Remove file.
60245 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60246 * lib/gettimeofday.c: Don't include gtod.h.
60247 (GTOD_init): Remove function.
60248 (rpl_gettimeofday): Do its job here instead, rather than aborting.
60249 Suggestion from Volker Borchert.
60251 2001-11-23 Jim Meyering <meyering@lucent.com>
60253 * lib/hash.h (struct hash_table): Don't define here. Merely declare
60255 * lib/hash.c (struct hash_table): Define it here instead.
60257 2001-11-22 Jim Meyering <meyering@lucent.com>
60259 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60261 2001-11-20 Jim Meyering <meyering@lucent.com>
60263 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60264 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60266 2001-11-19 Jim Meyering <meyering@lucent.com>
60268 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60269 directory. Use "conftestXXXXXX" as the template.
60270 Suggestion from Paul Eggert.
60272 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60273 immediately, so the test doesn't mistakenly hit the max-open-files
60276 2001-11-18 Paul Eggert <eggert@twinsun.com>
60278 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60279 (TEMPORARIES): New macro.
60280 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60281 removes an artificial limitation (e.g. HP-UX 10.20, where
60284 2001-11-18 Jim Meyering <meyering@lucent.com>
60286 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60288 2001-11-18 Jim Meyering <meyering@lucent.com>
60290 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60293 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60294 files will be created before anything else.
60296 2001-11-17 Paul Eggert <eggert@twinsun.com>
60298 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60299 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60301 2001-11-17 Jim Meyering <meyering@lucent.com>
60303 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60304 Prompted by a report from Bob Proulx.
60306 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60307 Instead, require UTILS_FUNC_MKSTEMP.
60309 2001-11-17 Jim Meyering <meyering@lucent.com>
60311 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60312 Now, that's done as part of AC_FUNC_STRTOD.
60314 2001-11-17 Jim Meyering <meyering@lucent.com>
60316 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60317 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60318 rather than group writable. Patch by Juan F. Codagnone.
60320 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60321 xrealloc, Instead, include "xalloc.h".
60323 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60324 Remove explicit declarations of xmalloc, xrealloc,
60325 and xstrdup. Instead, include "xalloc.h".
60327 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60329 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60331 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60333 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60334 Reported by Padraig Brady.
60336 * lib/mkstemp.c: #undef mkstemp.
60338 (rpl_mkstemp): Rename from mkstemp.
60341 2001-11-16 Jim Meyering <meyering@lucent.com>
60343 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60344 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60345 determine the amount of total physical memory, use pstat_getstatic.
60346 HPUX-11 doesn't define _SC_PHYS_PAGES.
60347 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60348 If sysconf couldn't be used to determine the amount of available
60349 physical memory, use both pstat_getstatic and pstat_getdynamic.
60350 Based on a patch from Bob Proulx.
60352 2001-11-10 Jim Meyering <meyering@lucent.com>
60354 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60355 (jm_PREREQ): Use it.
60357 2001-11-09 Jim Meyering <meyering@lucent.com>
60359 * m4/jm-macros.m4: Require autoconf-2.52f.
60360 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60361 Use these AC_-prefixed names, not the AM_-prefixed ones.
60363 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60365 2001-11-05 Jim Meyering <meyering@lucent.com>
60367 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60369 2001-11-04 Jim Meyering <meyering@lucent.com>
60371 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60374 2001-11-03 Jim Meyering <meyering@lucent.com>
60376 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60379 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60380 know the name of the variable in the macro definition.
60382 2001-11-03 Jim Meyering <meyering@lucent.com>
60384 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60385 in argmatch_to_argument call.
60387 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60390 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60391 e.g., a fault due to an attempt to free a NULL pointer.
60393 2001-11-01 Jim Meyering <meyering@lucent.com>
60395 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60396 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60398 2001-11-01 Jim Meyering <meyering@lucent.com>
60400 * lib/dirfd.c, lib/dirfd.h: New files.
60401 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60403 * lib/hash.c (hash_print) [TESTING]: Clean up.
60405 2001-10-22 Paul Eggert <eggert@twinsun.com>
60407 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60408 to avoid a warning if -Wall.
60410 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60413 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60414 (per RMS's instructions, this is now the canonical source)
60415 * lgpl/, gpl/: New directories.
60417 2001-10-21 Paul Eggert <eggert@twinsun.com>
60419 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60421 2001-10-21 Jim Meyering <meyering@lucent.com>
60423 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60424 this code would end up calling gettext even in packages built
60425 with --disable-nls.
60426 * lib/getopt.c (_): Likewise.
60427 * lib/regex.c (_): Likewise.
60429 2001-10-20 Paul Eggert <eggert@twinsun.com>
60431 * m4/error.m4 (jm_PREREQ_ERROR):
60432 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60433 AC_FUNC_STRERROR_R does that.
60434 Check for strerror declaration.
60436 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60437 are supposed to have them these days.
60438 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60439 Merge changes from latest Autoconf CVS.
60440 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60441 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60442 POSIX decided to standardize on the int flavor of strerror_r.
60444 2001-10-20 Paul Eggert <eggert@twinsun.com>
60446 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60447 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60448 Use strerror_r that is only a macro, even if it is not a function.
60449 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60450 (private_strerror): Use prototypes, not old-style function definition.
60451 (print_errno_message): New function.
60452 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60453 char*-flavored one.
60454 (error_tail, error, error_at_line): Use it.
60456 2001-10-11 Jim Meyering <meyering@lucent.com>
60458 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60459 and quote_n (1, ... to avoid clobbering a buffer.
60461 2001-10-05 Jim Meyering <meyering@lucent.com>
60463 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60465 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60466 * lib/hash-pjw.h: New file.
60468 2001-09-30 Jim Meyering <meyering@lucent.com>
60470 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60471 `struct fsstat' has the `f_fstypename' member.
60472 Use that to define FS_TYPE, which is now used to make
60473 the getfsstat link test tighter.
60475 2001-09-30 Jim Meyering <meyering@lucent.com>
60477 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60478 Include <sys/ucred.h>, for Apple Darwin.
60479 Include sys/mount.h and sys/fs_types.h only if available.
60481 (read_filesystem_list): Use FS_TYPE.
60483 2001-09-29 Paul Eggert <eggert@twinsun.com>
60485 * lib/exclude.c (excluded_filename): 0 -> false, since it's
60488 2001-09-29 Jim Meyering <meyering@lucent.com>
60490 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60491 [one-argument getmntent function]): Include stdio.h before mntent.h.
60492 SunOS 4.1.x needs it for the declaration of `FILE'.
60493 Patch by Volker Borchert.
60495 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60496 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60497 sys/fs_types.h, and make the link-test for getfsstat guard #include
60498 directives with appropriate #if HAVE_*_H tests so that we can
60499 detect getfsstat on Apple Darwin1.3.7 systems.
60500 Reported by Nelson Beebe.
60501 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60503 2001-09-28 Paul Eggert <eggert@twinsun.com>
60505 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60506 #defines strtoimax. Also treat the other strto* functions
60509 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60510 Check for strtoul and strtoumax,
60511 as those declarations are made even in the signed case.
60512 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60513 Likewise, for strtol and strtoimax.
60515 2001-09-28 Paul Eggert <eggert@twinsun.com>
60517 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60518 #defines strtoimax. Also treat the other strto* functions
60521 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60522 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60523 (strtoimax, strtoumax): Do not declare if already defined as a macro.
60525 2001-09-26 Jim Meyering <meyering@lucent.com>
60527 Most macros in unlocked-io.h had the wrong number of arguments.
60528 * lib/gen-uio: New script.
60529 (USE_UNLOCKED_IO): Define to 1 if not already defined.
60530 * lib/unlocked-io.hin: Remove file.
60531 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60532 rather than trying to embed it here.
60533 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
60534 Reported by Padraig Brady.
60536 2001-09-25 Volker Borchert <bt@teknon.de>
60538 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60541 2001-09-24 Jim Meyering <meyering@lucent.com>
60543 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60545 2001-09-23 Jim Meyering <meyering@lucent.com>
60547 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60548 instead of the mere test for existence of mntent.h. The latter
60549 would get a false-positive on AIX 3.4 systems.
60550 In the outer getmntent if-block, don't die if neither of the getmntent
60551 tests succeeds. Instead, just fall through and continue with the
60554 2001-09-23 Jim Meyering <meyering@lucent.com>
60556 * lib/mountlist.c: Remove useless parentheses in #if directives.
60557 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60558 the deprecated MOUNTED symbol is no longer defined in mntent.h.
60560 2001-09-22 Jim Meyering <meyering@lucent.com>
60562 * m4/gettext.m4: New file. From gettext.
60563 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60564 * m4/progtest.m4: Likewise
60565 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60566 * m4/glibc21.m4: Likewise.
60568 * m4/libintl.m4: Remove. No longer used.
60570 2001-09-22 Jim Meyering <meyering@lucent.com>
60572 * lib/localcharset.c: Update from latest gettext.
60573 * lib/config.charset: Likewise.
60575 2001-09-20 Jim Meyering <meyering@lucent.com>
60577 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60579 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60582 2001-09-20 Jim Meyering <meyering@lucent.com>
60584 * lib/xstrtol.c (strtoimax): Guard declaration with
60585 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60586 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60587 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60588 (strtoumax): Likewise, for completeness (it wasn't necessary).
60590 2001-09-17 Paul Eggert <eggert@twinsun.com>
60592 * lib/strtoimax.c (HAVE_LONG_LONG):
60593 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60594 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60595 to work around bug in IBM C compiler.
60597 2001-09-17 Jim Meyering <meyering@lucent.com>
60599 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60600 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60601 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60602 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60603 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60604 whenever the right hand side need not be expanded by the shell.
60606 2001-09-16 Paul Eggert <eggert@twinsun.com>
60608 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60609 library. It's not correct, as some older glibcs are buggy.
60610 fnmatch wasn't fixed until glibc 2.2.
60612 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60613 special shell magic here.
60615 2001-09-16 Jim Meyering <meyering@lucent.com>
60617 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60618 * m4/jm-macros.m4: Require it.
60620 2001-09-16 Jim Meyering <meyering@lucent.com>
60622 * lib/mkdir.c: New file.
60624 2001-09-15 Jim Meyering <meyering@lucent.com>
60626 * m4/jm-macros.m4: Check for help2man.
60628 2001-09-11 Jim Meyering <meyering@lucent.com>
60630 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60631 The body, by Paul Eggert, was moved here from configure.in.
60632 * m4/jm-macros.m4: Require UTILS_HOST_OS.
60634 2001-09-04 Paul Eggert <eggert@twinsun.com>
60636 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60637 (jm_PREREQ): Use it.
60639 2001-09-04 Paul Eggert <eggert@twinsun.com>
60641 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
60642 Use ssize_t, not int, to store result of readlink.
60643 Check for ssize_t overflow as well as size_t overflow,
60644 as POSIX says the result of readlink is implementation-defined
60645 when ssize_t overflows.
60646 Remove unnecessary cast to char*.
60647 Use free+malloc instead of realloc, as the storage doesn't need
60648 to be preserved and it's clearer and can be more efficient that way.
60649 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60650 * lib/xreadlink.h (xreadlink): Update prototype.
60652 2001-09-04 Paul Eggert <eggert@twinsun.com>
60654 * lib/xgetcwd.c: Revert some of the previous change; intead,
60655 fix the HAVE_GETCWD_NULL code to behave more like the
60656 !HAVE_GETCWD_NULL code used to.
60658 Include "xalloc.h".
60659 (xgetcwd): Do not return NULL when memory is exhausted; instead,
60662 2001-09-03 Paul Eggert <eggert@twinsun.com>
60664 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60665 sys/param.h, as pathmax.h includes them.
60667 2001-09-03 Paul Eggert <eggert@twinsun.com>
60669 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60670 (jm_PREREQ_XGETCWD): New macro.
60672 * m4/getcwd.m4: New file.
60674 2001-09-03 Paul Eggert <eggert@twinsun.com>
60676 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60677 like the HAVE_GETCWD_NULL code.
60678 Include pathmax.h if not HAVE_GETCWD.
60679 Do not include xalloc.h.
60680 (INITIAL_BUFFER_SIZE): New symbol.
60681 Do not use xmalloc / xrealloc, since the caller is responsible for
60682 handling errors. Preserve errno around `free' during failure.
60683 Do not overrun buffer when using getwd.
60685 2001-09-03 Paul Eggert <eggert@twinsun.com>
60687 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60688 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60691 2001-09-03 Paul Eggert <eggert@twinsun.com>
60693 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60694 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
60695 spotted by Jim Meyering.
60697 2001-09-03 Jim Meyering <meyering@lucent.com>
60699 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60702 2001-09-02 Jim Meyering <meyering@lucent.com>
60704 * lib/error.c: Update from GNU libc.
60706 2001-09-01 Jim Meyering <meyering@lucent.com>
60708 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60711 2001-09-01 Jim Meyering <meyering@lucent.com>
60713 * lib/xreadlink.c: New file.
60714 * lib/xreadlink.h: New file.
60715 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60718 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60719 doesn't conflict with sparc Solaris 7's definition in
60720 /usr/include/sys/int_types.h.
60722 * lib/exclude.c: Use `""', not `<>' to #include non-system header
60724 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60725 and strncasecmp as r-values. Unixware didn't have declarations.
60727 2001-08-31 Paul Eggert <eggert@twinsun.com>
60729 * lib/xstrtol.h: Add copyright notice.
60730 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60731 LONGINT_INVALID_SUFFIX_CHAR.
60733 2001-08-31 Paul Eggert <eggert@twinsun.com>
60735 * lib/xstrtol.c (strtoimax): New decl.
60737 2001-08-31 Paul Eggert <eggert@twinsun.com>
60739 * lib/xgetcwd.c: Don't include pathmax.h.
60740 Include stdlib.h and unistd.h if available.
60742 (xmalloc, xstrdup, free): Remove decls.
60743 (xgetcwd): Don't assume sizes fit in unsigned.
60744 Check for overflow when computing sizes.
60745 Simplify reallocation code.
60747 2001-08-31 Paul Eggert <eggert@twinsun.com>
60749 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60750 a directory's st_size can have an arbitrary value, so the old
60751 usage could waste an arbitrary amount of memory. All uses
60753 * lib/savedir.h: Update prototype.
60755 2001-08-31 Paul Eggert <eggert@twinsun.com>
60757 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60759 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60762 Also, make the following further changes to make this file's
60763 configuration more similar to that of strtol.c:
60764 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60765 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60766 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60767 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60768 changed to signed values.
60770 And make the following changes as well:
60771 Fix copyright notice, as 1999 was missing.
60772 (verify): New macro.
60773 (strtoimax): Check sizes at compile-time, not run-time.
60774 Prefer strtol to strtoll if both work.
60775 (main): Remove; it was not that useful and was a pain to maintain.
60777 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60779 2001-08-31 Jim Meyering <meyering@lucent.com>
60781 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60782 Use an initial, malloc'd, buffer of length 128 rather than
60783 a statically allocated one of length 1024.
60785 2001-08-30 Paul Eggert <eggert@twinsun.com>
60787 Simplify code, partly by assuming autoconf 2.52 semantics.
60789 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60791 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60792 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60794 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60795 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60796 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60797 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60798 jm_AC_HEADER_INTTYPES_H.
60799 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60801 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60803 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60804 Quote first arg of AC_DEFUN.
60805 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60806 since they are needed to parse the include file even if we need
60807 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60808 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60809 but with opposite signedness.
60811 2001-08-30 Paul Eggert <eggert@twinsun.com>
60813 Merge 'exclude' changes from tar 1.13.22.
60814 This fixes one or two unlikely storage allocation overflow bugs,
60815 but doesn't change user-visible behavior otherwise.
60817 2001-08-30 Paul Eggert <eggert@twinsun.com>
60819 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60820 (jm_PREREQ_EXCLUDE): New macro.
60822 2001-08-30 Paul Eggert <eggert@twinsun.com>
60824 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60827 2001-08-30 Paul Eggert <eggert@twinsun.com>
60829 * lib/hash.c: Remove '2001' from copyright notice.
60831 2001-08-30 Paul Eggert <eggert@twinsun.com>
60833 * lib/full-write.h: New file.
60834 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60835 * lib/full-write.c: Correct credits, as cccp.c no longer
60836 exists and anyway it was so heavily changed from the old cccp
60837 code as to be unrecognizable. Include full-write.h.
60838 (full_write) Return size_t, with short writes meaning failure.
60839 All callers changed. This fixes a bug with large buffers
60841 * lib/utime.c: Include full-write.h.
60843 2001-08-30 Paul Eggert <eggert@twinsun.com>
60845 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60846 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60847 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60848 Include if available.
60849 (<xalloc.h>): Include
60850 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60851 (verify): New macro. Use it to verify that EXCLUDE macros do not
60852 collide with FNM macros.
60853 (struct patopts): New struct.
60854 (struct exclude): Use it, as exclude patterns now come with options.
60855 (new_exclude): Support above changes.
60856 (new_exclude, add_exclude_file):
60857 Initial size must now be a power of two to simplify overflow checking.
60858 (free_exclude, fnmatch_no_wildcards): New function.
60859 (excluded_filename): No longer requires options arg, as the options
60860 are determined by add_exclude. Now returns bool, not int.
60861 (excluded_filename, add_exclude):
60862 Add support for the fancy new exclusion options.
60863 (add_exclude, add_exclude_file): Now takes int options arg.
60864 Check for arithmetic overflow when computing sizes.
60865 (add_exclude_file): xrealloc might modify errno, so don't
60866 realloc until after errno might be used.
60868 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60870 (free_exclude): New decl.
60871 (add_exclude, add_exclude_file): Now takes int options arg.
60872 (excluded_filename): No longer requires options arg, as the options
60873 are determined by add_exclude. Now returns bool, not int.
60875 2001-08-30 Paul Eggert <eggert@twinsun.com>
60877 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60879 2001-08-27 Jim Meyering <meyering@lucent.com>
60881 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60883 * lib/version-etc.c (N_): Remove definition.
60884 Revert most of last change.
60885 Instead, simply don't mark the `Copyright...' string for translation.
60886 Based on advice from Paul Eggert.
60888 * lib/strtoxmax.c: Tweak comment.
60890 2001-08-26 Jim Meyering <meyering@lucent.com>
60892 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60894 * m4/xstrtoimax.m4: New file.
60895 * m4/xstrtoumax.m4: Add comments explaining why we
60896 AC_REPLACE_FUNCS(strtol).
60898 2001-08-26 Jim Meyering <meyering@lucent.com>
60900 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60901 of copyright with `%s' so translators don't get an untranslated
60903 (COPYRIGHT_YEAR): Define.
60904 (version_etc): Use fprintf rather than fputs.
60905 Suggestion from Ulrich Drepper.
60907 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60909 * lib/strtoll.c: New file, from GNU libc.
60910 * lib/xstrtoimax.c: New file.
60912 * lib/xstrtol.h: Add xstrtoimax.
60913 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
60914 * lib/strtoimax.c: New file. Likewise, but first define
60917 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60919 * lib/strtoxmax.c: ... then renamed to this.
60921 2001-08-18 Paul Eggert <eggert@twinsun.com>
60923 * m4/inttypes.m4: Add AC_PREREQ(2.13).
60924 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60925 (jm_AC_TYPE_INTMAX_T): New macro.
60926 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60928 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60930 * m4/longlong.m4: Renamed from ulonglong.m4.
60931 * m4/inttypes.m4: Renamed from inttypes_h.m4.
60932 * m4/uintmax_t.m4: Removed.
60934 2001-08-13 Paul Eggert <eggert@twinsun.com>
60936 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60937 Port to Solaris 8, where 'sed' requires a space after the 'r'
60938 command, and where sh dislikes "$/". Clean up the spacing a bit.
60939 Redirect output to $tmp just once.
60941 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
60943 * lib/addext.c (<errno.h>): Include.
60944 (errno): Declare if not defined.
60945 (addext): Work correctly when pathconf returns -1 and leaves
60946 errno alone because there is no limit. Also, work even if
60947 pathconf returns a value greater than SIZE_MAX.
60949 2001-08-12 Jim Meyering <meyering@lucent.com>
60951 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60952 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60953 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60954 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60955 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60956 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60957 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60958 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60959 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60960 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60961 utime.m4, utimes.m4, xstrtoumax.m4:
60962 Quote the first argument in each use of AC_DEFUN.
60964 2001-08-12 Jim Meyering <meyering@lucent.com>
60966 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60967 Simply `return getcwd (NULL, 0);'.
60968 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60969 Use 1300 as initial value for length, not PATH_MAX.
60971 * lib/pathmax.h: Clean up cpp syntax.
60973 2001-08-12 Jim Meyering <meyering@lucent.com>
60975 * lib/gettimeofday.c: New file.
60976 * lib/gtod.h: New file.
60977 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60979 2001-08-05 Jim Meyering <meyering@lucent.com>
60981 * m4/jm-macros.m4: Require autoconf-2.52.
60983 2001-08-04 Jim Meyering <meyering@lucent.com>
60985 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60986 stmt, to get in sync with glibc.
60988 2001-08-03 Paul Eggert <eggert@twinsun.com>
60990 The following changes are from gettext 0.10.39 as maintained by
60993 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60994 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60995 with inverted sense. All uses changed.
60997 * lib/mbswidth.c: Don't include <limits.h>.
60998 Include <stdlib.h> and <string.h> unconditionally.
60999 (iswcntrl, mbsinit, ISCNTRL): New macros.
61000 (mbsnwidth): Use K&R style function declarations.
61001 Don't bother checking for MB_LEN_MAX == 1, since the compiler
61002 can optimize it when MB_CUR_MAX == 1.
61003 The width of control characters is zero, not 1.
61005 2001-08-03 Paul Eggert <eggert@twinsun.com>
61007 The following changes are from gettext 0.10.39 as maintained by
61008 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61010 * m4/codeset.m4: Upgrade to serial AM1.
61011 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61012 all uses changed. Quote first arg of AC_DEFUN.
61013 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61015 * m4/iconv.m4: Upgrade to serial AM2.
61016 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61017 Add --with-libconv-prefix.
61018 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
61019 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61020 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61021 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61022 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61024 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61025 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61026 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61027 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61028 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61029 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61030 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61031 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61032 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61034 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61037 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61038 not the default value.
61040 2001-06-25 Bruno Haible <haible@clisp.cons.org>
61041 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61042 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
61043 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61044 Also check for iswcntrl, used for wcwidth fallback.
61045 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61048 2001-08-03 Jim Meyering <meyering@lucent.com>
61050 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61051 as it was in the original. Reported by Paul Eggert.
61053 2001-07-16 Jim Meyering <meyering@lucent.com>
61055 * m4/gettimeofday.m4: New file.
61056 Prompted by a report from Bernhard Baehr.
61058 2001-07-15 Jim Meyering <meyering@lucent.com>
61060 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61061 stuff. Now it's in ../Makefile.cfg.
61063 2001-07-15 Jim Meyering <meyering@lucent.com>
61065 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61066 (BUILT_SOURCES): Add unlocked-io.h.
61067 (io_functions): Define.
61068 (unlocked-io.h): New rule.
61069 (DISTCLEANFILES): Add unlocked-io.h.
61070 (all-local): Depend on unlocked-io.h, to ensure it is created.
61072 * lib/unlocked-io.hin: New file
61074 * lib/regex.c: Update from glibc.
61076 2001-07-05 Jim Meyering <meyering@lucent.com>
61078 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61080 (libfetish_a_SOURCES): Put all .h files here instead.
61081 Remove a thus-exposed (better checks in automake) duplicate and
61082 two unnecessary .h files.
61084 2001-07-04 Jim Meyering <meyering@lucent.com>
61086 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
61087 that generates jm-glibc-io.m4 so that it doesn't trigger any make
61090 2001-07-02 Jim Meyering <meyering@lucent.com>
61092 The following changes were prompted by suggestions from Bruno Haible.
61094 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61096 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61097 definition of EXTRA_DIST.
61098 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61099 ensure that the generated file is created/updated whenever the list
61100 of $(unlocked_functions) is changed.
61101 (jm-glibc-io.m4): New rule.
61102 (unlocked-io.h): New rule -- currently unused.
61104 2001-06-24 Jim Meyering <meyering@lucent.com>
61106 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61107 unmatched right bracket, rather than kludging it with an extra,
61108 falsely-matching quote in a comment. Patch by Akim Demaille.
61110 2001-06-11 Jim Meyering <meyering@lucent.com>
61112 * lib/regex.c: Update from GNU libc.
61114 2001-05-27 Jim Meyering <meyering@lucent.com>
61116 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61117 Check for ut_type in struct utmp.
61119 2001-05-27 Jim Meyering <meyering@lucent.com>
61121 * lib/readutmp.h (UT_TYPE): Define.
61123 2001-05-24 Jim Meyering <meyering@lucent.com>
61125 * lib/argmatch.c: Include "quote.h".
61126 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
61127 quote function. Reported by Göran Uddeborg.
61129 2001-05-22 Jim Meyering <meyering@lucent.com>
61131 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61132 now that we use the package-supplied version unconditionally.
61133 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61135 2001-05-21 Jim Meyering <meyering@lucent.com>
61137 * m4/regex.m4: Change a couple backticks to single quotes to avoid
61138 shell syntax errors.
61140 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61142 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61144 2001-05-20 Paul Eggert <eggert@twinsun.com>
61146 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61147 Don't bother to check library strftime, since
61148 we'll be using our own my_strftime function anyway.
61149 Define my_strftime instead of strftime.
61151 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
61153 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61154 which is not yet declared.
61156 2001-05-15 Jim Meyering <meyering@lucent.com>
61158 * m4/regex.m4: Use proper quoting so brackets appear in the test
61160 Reported by, and with help from, Bruno Haible.
61162 2001-05-13 Jim Meyering <meyering@lucent.com>
61164 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61167 2001-05-11 Paul Eggert <eggert@twinsun.com>
61169 dirname code cleanup. base_name now behaves more compatibly
61170 with POSIX basename when given file names that have trailing
61171 slashes, and similarly for dir_name. Add new primitives
61172 base_len and dir_len. Put the directory-name-related decls
61175 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61176 * lib/backupfile.c (base_name): Likewise.
61177 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61178 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61179 * lib/makepath.c (strip_trailing_slashes): Likewise.
61180 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61181 ISSLASH): Likewise.
61182 * lib/rename.c (strip_trailing_slashes): Likewise.
61183 * lib/same.c (base_name): Likewise.
61184 * lib/stripslash.c (ISSLASH): Likewise.
61186 * lib/addext.c: Include <dirname.h> after size_t is defined.
61187 * lib/backupfile.c: Likewise.
61189 * lib/addext.c (addext): Use base_len to trim redundant
61190 trailing slashes instead of doing it ourselves.
61191 But do not trim the last slash if it is not redundant.
61193 * lib/backupfile.c (find_backup_file_name,
61194 max_backup_version): Use base_len instead of rolling it ourselves.
61195 Handle the case of "" and (on DOS) "C:" correctly.
61197 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61198 needed. Include <string.h>, <dirname.h>.
61199 (base_name): Allow file names ending in slashes, other than names
61200 that are all slashes. In this case, return the basename followed
61201 by the slashes. This is more general, and can be used in places
61202 where the original base_name purposely had an assertion failure.
61203 (base_len): New function.
61205 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61206 Do not include <assert.h>; no longer needed.
61208 (memrchr): Remove decl.
61209 (dir_name_r): Remove.
61210 (dir_len): Renamed from dirlen. All callers changed.
61211 Rewrite in terms of base_name, for simplicity and consistency.
61212 (dir_name): Never return NULL. All callers changed.
61213 Do not include <stdlib.h> in test program; no longer needed.
61214 return 0; is fine for test program.
61216 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61218 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61220 * lib/path-concat.c (path_concat): Use base_len to compute
61221 base length, not strlen; this means we cannot rely on memcpy
61224 * lib/same.c (STREQ): Remove.
61225 (same_name): Handle the case where the basename ends in trailing '/'.
61227 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61228 a slash was stripped. Do not strip the last slash after a
61229 file system prefix.
61231 2001-05-11 Paul Eggert <eggert@twinsun.com>
61233 * lib/Makefile.am (libfetish_a_SOURCES):
61234 Add strftime.c, since we now compile it on all hosts.
61236 * lib/strftime.c (my_strftime):
61237 Define to nstrftime if emacs, but only if my_strftime is not defined.
61238 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61239 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61240 Add one more extra argument: a nanoseconds value.
61243 (my_strftime function): Add %N format.
61244 (emacs_strftimeu): Renamed from emacs_strftime,
61245 with extra ut argument.
61247 2001-05-09 Paul Eggert <eggert@twinsun.com>
61249 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61251 2001-04-21 Jim Meyering <meyering@lucent.com>
61253 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61256 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61258 * m4/ftruncate.m4: Check for chsize.
61259 Link with ftruncate.o unconditionally if ftruncate is missing.
61260 This was required when cross-compiling to i586-mingw32msvc.
61262 2001-04-08 Jim Meyering <meyering@lucent.com>
61264 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61265 recomputed; that's necessary when the offset spans a DST transition.
61266 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61268 2001-04-02 Jim Meyering <meyering@lucent.com>
61270 * lib/regex.h, regex.c: Update from GNU libc.
61272 2001-03-24 Jim Meyering <meyering@lucent.com>
61274 * m4/jm-macros.m4: Require autoconf-2.49d.
61276 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61278 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61280 2001-03-19 Paul Eggert <eggert@twinsun.com>
61282 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61284 2001-03-17 Jim Meyering <meyering@lucent.com>
61286 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61287 now that the version in autoconf is equivalent.
61288 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61290 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61291 Suggestion from Akim Demaille.
61293 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61294 (jm_PREREQ_TEMPNAME): New function.
61296 2001-03-16 Paul Eggert <eggert@twinsun.com>
61298 * lib/tempname.c (uint64_t): Define to uintmax_t if
61299 not defined, and if UINT64_MAX is not defined.
61300 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61301 Reported by John David Anglin.
61303 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61305 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61306 resolve alias if codeset is empty.
61307 * lib/config.charset (BeOS): Use wildcard syntax.
61309 2001-03-13 Jim Meyering <meyering@lucent.com>
61311 * lib/path-concat.c (path_concat)
61312 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61313 concatenating e.g., `C:' and `foo'.
61316 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61318 * lib/localcharset.c (locale_charset): Don't use
61319 setlocale(LC_CTYPE,NULL). Don't return NULL.
61320 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61322 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61324 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61325 support for DOS/DJGPP.
61327 2001-03-01 Paul Eggert <eggert@twinsun.com>
61329 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61330 lacks mkstemp. Compile our own tempname.c if we compile our own
61331 mkstemp.c, as mkstemp relies on tempname.
61333 2001-03-01 Jim Meyering <meyering@lucent.com>
61335 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61336 AH_VERBATIM really does output its argument verbatim.
61338 2001-02-28 Paul Eggert <eggert@twinsun.com>
61340 * lib/Makefile.am (libfetish_a_SOURCES):
61341 Add dup-safer.c, fopen-safer.c.
61342 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61344 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61345 * lib/unistd-safer.h: New files.
61347 2001-02-25 Paul Eggert <eggert@twinsun.com>
61349 The mkstemp replacement is taken from glibc 2.2.2, with some
61350 portability fixes for use outside glibc, as follows:
61352 * lib/tempname.c (struct_stat64): New macro.
61353 (direxists, __gen_tempname): Use it.
61354 This avoids a portability problem with Solaris 8.
61356 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61357 (<stddef.h>, <stdint.h>, <string.h>):
61358 Include only if STDC_HEADERS || _LIBC.
61359 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61360 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61361 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61362 (__set_errno): Define this macro if <errno.h> doesn't.
61363 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61364 Define these macros if <stdio.h> doesn't.
61365 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61366 Define these macros if <sys/stat.h>
61367 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61368 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61369 __xstat64): Define if not _LIBC.
61370 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61371 (__gen_tempname): Invoke gettimeofday only if
61372 HAVE_GETTIMEOFDAY || _LIBC;
61373 otherwise, fall back on plain "time".
61374 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61376 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61378 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61380 2001-02-18 Paul Eggert <eggert@twinsun.com>
61382 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61384 2001-02-17 Paul Eggert <eggert@twinsun.com>
61386 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61387 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61388 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61389 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61391 2001-02-17 Paul Eggert <eggert@twinsun.com>
61393 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61394 Remove workaround macros for hosts that have mbrtowc but not
61395 mbstate_t, as we now insist on proper declarations for both
61396 before using mbrtowc.
61398 2001-02-17 Jim Meyering <meyering@lucent.com>
61400 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61401 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61402 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61405 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61406 rather than AC_CACHE_VAL.
61408 2001-02-17 Jim Meyering <meyering@lucent.com>
61410 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61411 around included file name.
61413 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61415 * lib/strftime.c: Update from GNU libc (the only changes were to
61418 2001-02-17 Jim Meyering <meyering@lucent.com>
61420 * lib/regex.c: Update from libc.
61422 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61424 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61427 2001-02-16 Paul Eggert <eggert@twinsun.com>
61429 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61430 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61431 Reported by Mark Hounschell via Paul Eggert.
61433 2001-02-07 Jim Meyering <meyering@lucent.com>
61435 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61437 2001-02-05 Jim Meyering <meyering@lucent.com>
61439 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61440 it includes the patch required for `large file' support with at least
61441 HP-UX's 10.20 /bin/cc.
61443 2001-02-03 Jim Meyering <meyering@lucent.com>
61445 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61446 AS_IF, now that it works once again (mysteriously).
61447 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61449 2001-01-30 Jim Meyering <meyering@lucent.com>
61451 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61452 * m4/chown.m4: Rename conftestchown to conftest.chown.
61453 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61454 s/conftestdir2/conftest.d2/.
61455 * m4/utimes.m4: s/conftestdata/conftest.data/
61456 Inspired by Pavel Roskin's change in autoconf.
61458 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61460 * lib/config.charset: Update for FreeBSD 4.2.
61462 2001-01-27 Jim Meyering <meyering@lucent.com>
61464 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61466 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61468 2001-01-26 Jim Meyering <meyering@lucent.com>
61470 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61471 quotearg.c includes it.
61473 2001-01-26 Jim Meyering <meyering@lucent.com>
61475 * lib/quotearg.c: Include stddef.h.
61476 * lib/quote.c: Include stddef.h.
61477 Reported by Axel Kittenberger.
61479 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61480 line in double quotes so that it evokes a better diagnostic.
61481 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61482 Reported by Axel Kittenberger.
61484 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
61486 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61487 as if it was a `charset'.
61489 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61491 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61494 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61496 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61497 to avoid a warning. Add back 'const' to inptr.
61499 2001-01-20 Jim Meyering <meyering@lucent.com>
61501 Be sure that headers are checked before used in code compiled
61502 for the type checks.
61503 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61504 In place of that, invoke jm_CHECK_ALL_TYPES.
61505 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61506 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61507 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61508 The check for ssize_t was mistakenly run before the test for unistd.h.
61510 The configure-time check for stdbool.h was missing.
61511 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61512 (jm_PREREQ_HASH): New function.
61514 2001-01-17 Jim Meyering <meyering@lucent.com>
61516 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61517 for autoconf-2.49c.
61518 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61520 2001-01-16 Jim Meyering <meyering@lucent.com>
61522 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61525 2001-01-14 Jim Meyering <meyering@lucent.com>
61527 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61528 foo and bar. Create conftestdir/ in the script, not in the C code.
61529 Remove directories in the script, not in the C code.
61530 Remove conftestdir{,2} before trying to create the directory.
61531 Make the entire configure script fail if the mkdir fails.
61533 2001-01-14 Jim Meyering <meyering@lucent.com>
61535 * lib/rename.c: New file. From Volker Borchert.
61536 Include stdlib.h, string.h or strings.h, and xalloc.h.
61537 Use strip_trailing_slashes rather than open-coding it.
61539 2001-01-03 Paul Eggert <eggert@twinsun.com>
61541 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61543 2001-01-03 Jim Meyering <meyering@lucent.com>
61545 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61546 of local `inptr' to avoid warning with some system declarations of
61549 2001-01-02 Volker Borchert <bt@teknon.de>
61551 * m4/rename.m4: New file.
61552 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61554 2001-01-01 Jim Meyering <meyering@lucent.com>
61556 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61557 even on systems with utmpx.h. It's necessary for the declaration of
61558 utmp's ut_user member. Reported by Andreas Jaeger.
61560 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61561 available. They are required for the declarations of getgrgid and
61563 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61564 Reported by Andreas Jaeger.
61566 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
61568 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61569 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61570 so `make install' also works in VPATH builds.
61572 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
61574 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61575 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61576 can be used in subdirectories.
61578 2000-12-29 Paul Eggert <eggert@twinsun.com>
61580 * lib/modechange.c: Do not assume that mode_t uses the
61581 traditional octal encoding. E.g. "chmod 1 FOO" should set
61582 the other-execute bit of FOO even if S_IXOTH != 1.
61584 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61585 WOTH, XOTH, ALLM): New macros.
61586 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61587 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61589 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61590 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61592 No need to use uintmax_t; unsigned long is long enough.
61593 Don't bother to get suffix since we don't use it.
61595 2000-12-26 Jim Meyering <meyering@lucent.com>
61597 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61598 better with autoheader.
61600 2000-12-24 Jim Meyering <meyering@lucent.com>
61602 * lib/hash.c (is_prime): Return explicit boolean values.
61603 (hash_get_first): Return NULL to appease Irix5.6's 89.
61604 Reported by Nelson Beebe.
61606 2000-12-19 Bruno Haible <haible@clisp.cons.org>
61608 * lib/localcharset.c (locale_charset): Add support for Win32.
61610 2000-12-18 Paul Eggert <eggert@twinsun.com>
61612 * lib/physmem.h, lib/physmem.c: New files.
61614 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61615 (noinst_HEADERS): Add physmem.h.
61617 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61618 't' for compatibility with Solaris 8 sort.
61620 2000-12-18 Bruno Haible <haible@clisp.cons.org>
61622 * lib/config.charset: Add support for BeOS.
61624 2000-12-17 Jim Meyering <meyering@lucent.com>
61626 * m4/dos.m4 (jm_AC_DOS): New file and macro.
61627 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61629 2000-12-16 Jim Meyering <meyering@lucent.com>
61631 This bug had a serious impact on chown: `chown N:M FILE' (for integer
61632 N and M) would have treated it like `chown N:N FILE'.
61634 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61636 2000-12-16 Jim Meyering <meyering@lucent.com>
61638 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61639 SHELLS_FILE to a file name that's useful on djgpp systems.
61641 (ADDITIONAL_DEFAULT_SHELLS): Define.
61642 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61643 Based mostly on a patch from Prashant TR.
61645 2000-12-16 Bruno Haible <haible@clisp.cons.org>
61647 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61648 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61649 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61651 2000-12-08 Andreas Schwab <schwab@suse.de>
61653 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61654 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61656 2000-12-07 Jim Meyering <meyering@lucent.com>
61658 * lib/stripslash.c (ISSLASH): Define.
61659 (strip_trailing_slashes): Use ISSLASH rather than comparing against
61663 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61664 (dir_name_r): Declare this function as static.
61665 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61666 manifest itself on a name containing a mix of slashes and
61668 Make this function work with names starting with a DOS-style
61669 drive letter and colon prefix.
61670 (dir_name): Append `.' if necessary.
61671 Based mostly on patches from Prashant TR and Eli Zaretskii.
61673 * lib/dirname.h (dir_name_r): Remove prototype.
61675 2000-12-06 Paul Eggert <eggert@twinsun.com>
61677 * m4/off_t-format.m4: Remove this file.
61678 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61680 2000-12-06 Jim Meyering <meyering@lucent.com>
61682 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61683 replacement strtoull, we may well need the replacement strtoul, too.
61684 Check for declarations of strtoul and strtoull.
61685 Check for strtol. Mainly as a cue to cause automake to include
61686 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61687 Check for limits.h -- strtol.c needs it.
61689 2000-12-05 Jim Meyering <meyering@lucent.com>
61691 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61693 2000-12-04 Jim Meyering <meyering@lucent.com>
61695 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61696 Also include memory.h, stdlib.h, unistd.h if appropriate.
61697 Reported by Andreas Jaeger (conflicting declaration of malloc).
61699 2000-12-02 Jim Meyering <meyering@lucent.com>
61701 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61702 * m4/jm-macros.m4 (jm_MACROS): require it.
61704 2000-12-02 Jim Meyering <meyering@lucent.com>
61706 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61708 2000-12-01 Paul Eggert <eggert@twinsun.com>
61710 * lib/memrchr.c: Include <config.h> before any system include file.
61712 2000-11-30 Jim Meyering <meyering@lucent.com>
61714 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61716 2000-11-30 Jim Meyering <meyering@lucent.com>
61718 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61720 2000-11-29 Paul Eggert <eggert@twinsun.com>
61722 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61724 2000-11-26 Jim Meyering <meyering@lucent.com>
61726 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
61728 2000-11-22 Paul Eggert <eggert@twinsun.com>
61730 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61731 size of (size_t) -1; it's not portable.
61733 2000-11-17 Jim Meyering <meyering@lucent.com>
61735 * lib/strstr.c: Update from GNU libc.
61737 2000-11-17 Akim Demaille <akim@epita.fr>
61739 * lib/obstack.h: Formatting changes.
61740 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61741 prevent type checking.
61742 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61743 cast the value to (void *): assigning a `foo *' to a `void *'
61745 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61747 2000-11-16 Jim Meyering <meyering@lucent.com>
61749 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61751 2000-11-11 Jim Meyering <meyering@lucent.com>
61753 * lib/error.c: Add a couple #includes, merging from GNU libc version.
61755 2000-11-10 Jim Meyering <meyering@lucent.com>
61757 * lib/obstack.h: Update from GNU libc.
61758 * lib/obstack.c: Likewise.
61760 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61762 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61764 2000-11-06 Paul Eggert <eggert@twinsun.com>
61766 * lib/getusershell.c (setusershell): Use rewind rather than
61767 fseek/fseeko, to avoid configuration hassles with fseeko.
61768 Don't bother opening SHELLS_FILE if shellstream is NULL;
61769 it's not necessary.
61771 2000-11-05 Jim Meyering <meyering@lucent.com>
61773 * lib/makepath.h (make_dir): Declare.
61774 * lib/makepath.c (make_dir): Remove `static' attribute.
61777 2000-11-04 Jim Meyering <meyering@lucent.com>
61779 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61781 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61783 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61784 last one in a bucket, advance to the next bucket.
61786 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61788 * lib/fnmatch.c: Do not comment out all the code if we are using
61789 the GNU C library, because in some cases we are replacing buggy
61790 code in the GNU C library itself.
61792 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61794 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61795 (regex_compile): Catch bogus \(\1\).
61797 2000-10-30 Paul Eggert <eggert@twinsun.com>
61799 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61800 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61801 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61803 2000-10-30 Paul Eggert <eggert@twinsun.com>
61805 * lib/error.h, getline.h, modechange.h:
61806 Remove "2000" from Copyright line, as the file hasn't been
61807 changed this year other than in the copyright notice.
61809 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61810 was changed this year.
61812 2000-10-29 Jim Meyering <meyering@lucent.com>
61814 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61816 * m4/ls-mntd-fs.m4: Likewise
61818 2000-10-29 Jim Meyering <meyering@lucent.com>
61820 * lib/xstat.in: Fix grammar in comment.
61822 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61824 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61825 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61826 doesn't define __restrict_arr.
61828 2000-10-28 Jim Meyering <meyering@lucent.com>
61830 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61831 (jm_PREREQ_MEMCHR): New function.
61833 2000-10-28 Jim Meyering <meyering@lucent.com>
61835 * lib/memchr.c: Update from libc.
61836 Adjust for portability:
61837 [HAVE_STDLIB_H]: Include stdlib.h.
61838 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61839 Undef __memchr, too.
61840 [!weak_alias]: Define __memchr to memchr.
61842 * lib/regex.c: Update from libc.
61843 * lib/regex.h: Likewise.
61844 * lib/getopt1.c: Likewise.
61845 * lib/memcmp.c: Likewise.
61847 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61848 Avoid using fseek, when possible -- it's broken by design.
61849 Patch by Ulrich Drepper.
61851 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
61853 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61854 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61855 Giving in to popular pressure to shut up the compiler with casts.
61857 2000-10-26 Jim Meyering <meyering@lucent.com>
61859 * lib/strftime.c: Update from libc.
61861 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
61863 * regex.c: More `unsigned char' -> `re_char' changes.
61864 Also change several `int' into `re_wchar_t'.
61865 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61866 (PUSH_FAILURE_POINTER): Don't cast any more.
61867 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61868 We want GCC to complain, since this piece of code makes
61869 re_match non-reentrant, which *should* be fixed.
61870 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61871 (EXTEND_BUFFER): Use RETALLOC.
61872 (SET_LIST_BIT): Don't cast.
61873 (re_wchar_t): New type.
61874 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61875 that those two functions will always properly return.
61876 (IMMEDIATE_QUIT_CHECK): Cast to void.
61877 (analyse_first): Use recursion rather than an explicit stack.
61878 (re_compile_fastmap): Can't fail anymore.
61879 (re_search_2): Don't check re_compile_fastmap for failure.
61880 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61881 Now also sets the new value (passed in a new argument).
61882 (re_match_2_internal): Use it.
61883 Also, use a new var `reg' of type size_t when looping through regs
61884 rather than reuse the inappropriate `mcnt'.
61886 2000-10-25 Jim Meyering <meyering@lucent.com>
61888 * lib/obstack.c: Update from libc.
61890 2000-10-24 Kenichi Handa <handa@etl.go.jp>
61892 * regex.c (regex_compile): Change the way of handling a range from
61893 a char less than 256 to a char not less than 256.
61895 2000-10-24 Andrew Innes <andrewi@gnu.org>
61897 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61899 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61900 so that re_search functions only quit when callers expect them to.
61902 2000-10-23 Jim Meyering <meyering@lucent.com>
61904 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61905 wrong. That set_locale call must not have any side effects.
61908 2000-10-22 Jim Meyering <meyering@lucent.com>
61910 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61911 [CYCLIC]: Remove now-unused definition.
61913 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61914 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61915 Suggestion from Ulrich Drepper.
61917 2000-10-21 Jim Meyering <meyering@lucent.com>
61919 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61920 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61921 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61923 2000-10-21 Jim Meyering <meyering@lucent.com>
61925 * lib/dirname.c (memrchr): Declare if necessary.
61926 (dir_name): Remove the restriction that there be no
61927 trailing slashes. Now, this code skips past them, effectively
61929 [TEST_DIRNAME] (main): New unit tests.
61931 * lib/memrchr.c: New file from GNU libc.
61932 Undef __memrchr, too.
61933 [!weak_alias]: Define __memrchr to memrchr.
61934 Guard weak_alias use with `#ifdef weak_alias'.
61936 2000-10-21 Jim Meyering <meyering@lucent.com>
61938 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61939 (dir_name): Use dir_name_r.
61940 * lib/dirname.h (dir_name_r): Declare it.
61942 2000-10-17 Jim Meyering <meyering@lucent.com>
61944 * lib/quote.h (PARAMS): Define and use.
61945 Reported by Akim Demaille.
61947 * lib/getopt.c: Update from libc.
61949 2000-10-16 Jim Meyering <meyering@lucent.com>
61951 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61955 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
61957 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61959 2000-09-25 Jim Meyering <meyering@lucent.com>
61961 * lib/md5.h (rol): Define (from GnuPG).
61963 * lib/sha.c: Give credit (GnuPG) where due.
61964 (M): Use rol rather than open-coding it.
61965 Add a FIXME comment.
61967 2000-09-21 Jim Meyering <meyering@lucent.com>
61969 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61970 Reported by Michael Stone.
61972 2000-09-20 Jim Meyering <meyering@lucent.com>
61974 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61975 (noinst_HEADERS): Add sha.h.
61976 Based on code from Scott G. Miller and from GnuPG.
61978 2000-09-18 Jim Meyering <meyering@lucent.com>
61980 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61981 LIBS. Otherwise, everyone ends up linking with -lelf for some
61983 Reported by Mike Stone.
61985 2000-09-15 Jim Meyering <meyering@lucent.com>
61987 * lib/regex.c: Update from libc.
61989 2000-09-10 Jim Meyering <meyering@lucent.com>
61991 * lib/getopt.c (_getopt_internal): Update from glibc.
61993 2000-09-09 Jim Meyering <meyering@lucent.com>
61995 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61996 think it should be used as a general replacement for isascii.
61997 * lib/fnmatch.c: Likewise.
61998 * lib/mbswidth.c: Likewise
61999 * lib/regex.c: Likewise.
62002 * lib/userspec.c: Include sys/param.h and limits.h.
62004 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62005 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62006 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62007 UID, GID. Check range.
62009 2000-09-06 Jim Meyering <meyering@lucent.com>
62011 * lib/getopt.c (_getopt_internal): Update from glibc.
62013 2000-08-30 Jim Meyering <meyering@lucent.com>
62015 * lib/strftime.c: Merge in changes from GNU libc.
62017 2000-08-26 Jim Meyering <meyering@lucent.com>
62019 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62020 * m4/fpending.m4: New file.
62022 2000-08-26 Jim Meyering <meyering@lucent.com>
62024 * lib/closeout.c: Include "__fpending.h".
62025 (close_stdout_status): Return right away if there's nothing to flush.
62027 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62028 * lib/__fpending.c: New file.
62029 * lib/__fpending.h: New file.
62031 2000-08-20 Jim Meyering <meyering@lucent.com>
62033 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62034 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
62035 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
62037 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
62039 Improve fileutils installation on systems where running
62040 programs (like install) can't be unlinked.
62041 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62042 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62044 2000-08-07 Paul Eggert <eggert@twinsun.com>
62046 Standardize on "memory exhausted" instead of "Memory exhausted"
62047 or "virtual memory exhausted".
62048 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62049 "virtual memory exhausted".
62050 * lib/same.c (same_name): Invoke xalloc_die instead of printing
62052 * lib/userspec.c (parse_user_spec): Likewise.
62053 * lib/bumpalloc.h: comment fix
62054 * lib/same.c, userspec.c: Include xalloc.h.
62056 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62057 not char *const and pointing to a constant array.
62058 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62059 (xrealloc): Comment fix.
62061 * lib/userspec.c (parse_user_spec):
62062 Don't translate a message until just before returning,
62063 to avoid unnecessary translation.
62065 2000-08-07 Jim Meyering <meyering@lucent.com>
62067 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62068 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62069 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62070 getgroups.c, gethostname.c, getopt.h, group-member.c,
62071 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62072 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62073 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62074 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62075 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62076 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62077 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62078 yesno.c: Back out Copyright date changes for each file with no change
62079 this year. This eases coordination with other programs using the same
62080 source code modules. From Paul Eggert.
62082 2000-08-06 Paul Eggert <eggert@twinsun.com>
62084 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62085 not char, for compatibility with glibc 2.1.3 strftime.c.
62087 2000-08-03 Greg McGary <greg@mcgary.org>
62089 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62090 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62091 (EXTEND_BUFFER): Use them.
62093 2000-08-01 Jim Meyering <meyering@lucent.com>
62095 * lib/dirname.c (ISSLASH): Define.
62096 (BACKSLASH_IS_PATH_SEPARATOR): Define.
62097 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62098 both `\' and `/' may be use as path separators.
62099 Based on a patch from Prashant TR.
62101 2000-07-31 Paul Eggert <eggert@twinsun.com>
62103 * lib/quotearg.c (quotearg_n_options): Don't make the initial
62104 slot vector a constant, since it might get modified.
62106 2000-07-31 Jim Meyering <meyering@lucent.com>
62108 * lib/xmalloc.c: Use `virtual memory exhausted', not
62109 `Memory exhausted'.
62110 * lib/obstack.c (print_and_abort): Likewise.
62112 2000-07-30 Paul Eggert <eggert@twinsun.com>
62114 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62115 buffer, so that the caller can always quote one small
62116 component of a "memory exhausted" message in slot 0.
62117 From a suggestion by Jim Meyering.
62119 2000-07-30 Jim Meyering <meyering@lucent.com>
62121 * lib/makepath.c (make_path): Quote the other instance, too.
62123 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62124 (STATIC_BUF_SIZE): Define.
62125 (quotearg_n_options): Use only statically allocated storage when
62126 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62127 than STATIC_BUF_SIZE.
62129 2000-07-29 Jim Meyering <meyering@lucent.com>
62131 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62132 * lib/dirname.c (dir_name): Likewise.
62134 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62137 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62138 (dir_name): Assert that there are no trailing slashes.
62140 2000-07-29 Bruno Haible <haible@clisp.cons.org>
62142 * lib/mbswidth.h (mbswidth): Add a flags argument.
62143 (mbswidth): New declaration.
62144 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62145 * lib/mbswidth.c (mbswidth): Add a flags argument.
62146 (mbsnwidth): New function.
62148 2000-07-24 Jim Meyering <meyering@lucent.com>
62150 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
62152 2000-07-23 Paul Eggert <eggert@twinsun.com>
62154 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62156 2000-07-23 Paul Eggert <eggert@twinsun.com>
62158 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62159 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62160 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62161 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62162 invoke multibyte primitives.
62164 2000-07-23 Paul Eggert <eggert@twinsun.com>
62167 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62168 so that mbstate_t is always defined.
62170 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62171 be 1 in at least one GCC installation, and this configuration
62172 error is likely to be common. Ignoring MB_LEN_MAX hurts
62173 performance on hosts that have mbrtowc but have only unibyte
62174 locales, but I assume these hosts are rare.
62176 2000-07-23 Paul Eggert <eggert@twinsun.com>
62178 * lib/mbswidth.c (_XOPEN_SOURCE):
62179 Don't define; this causes problems on Solaris 7.
62180 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62182 2000-07-23 Jim Meyering <meyering@lucent.com>
62184 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62185 too: getgrgid, getpwuid, getuid.
62187 2000-07-23 Jim Meyering <meyering@lucent.com>
62189 * lib/basename.c (base_name): Add an assertion.
62191 2000-07-23 Bruno Haible <haible@clisp.cons.org>
62193 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62194 shadow its mbsinit function.
62196 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62198 * lib/mbswidth.h: New file.
62199 * lib/mbswidth.c: New file.
62200 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62201 (noinst_HEADERS): Add mbswidth.h.
62203 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62205 * lib/config.charset: Add support for FreeBSD. Improve support for
62208 2000-07-16 Bruno Haible <haible@clisp.cons.org>
62210 * m4/mbswidth.m4: New file.
62211 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62213 2000-07-15 Jim Meyering <meyering@lucent.com>
62215 * lib/makepath.c: Include quote.h.
62216 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62217 corresponding argument in a `quote (...)' call.
62218 Give better diagnostics.
62220 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62221 (noinst_HEADERS): Add quote.h.
62223 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
62224 from tar's src/misc.c.
62225 * lib/quote.h: New file. Prototypes for same.
62227 2000-07-14 Paul Eggert <eggert@twinsun.com>
62229 From a suggestion by Bruno Haible.
62230 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62231 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62232 to decide whether to define the BeOS workaround macro;
62233 this adjusts to the change to AC_MBSTATE_T.
62235 2000-07-14 Jim Meyering <meyering@lucent.com>
62237 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62238 jm_AC_TYPE_UINTMAX_T.
62240 2000-07-13 Paul Eggert <eggert@twinsun.com>
62242 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62244 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62245 quotearg_buffer_restyled): Add support for
62246 clocale_quoting_style. Undo previous change to
62247 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62248 and "{RIGHT QUOTATION MARK}" msgids.
62250 2000-07-10 Paul Eggert <eggert@twinsun.com>
62252 From a suggestion by Bruno Haible.
62253 * m4/mbstate_t.m4 (AC_MBSTATE_T):
62254 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
62255 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62256 and mbstate_t, to a single-part test that simply defines mbstate_t.
62257 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62258 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62260 2000-07-10 Jim Meyering <meyering@lucent.com>
62262 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62264 * m4/gnu-source.m4: Output to confdefs.h directly.
62265 Suggestion from Akim Demaille.
62267 2000-07-09 Paul Eggert <eggert@twinsun.com>
62269 The old behavior of quoting `like this' doesn't look good with
62270 newer, ISO-style fonts. See:
62271 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62273 Instead, quote "like this" by default. Let the translator
62274 tailor the locale-specific quoting behavior by providing
62275 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62277 * lib/quotearg.c (N_): New macro.
62278 (gettext_default): New function.
62279 (quotearg_buffer_restyled): Use
62280 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62281 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62283 2000-07-09 Jim Meyering <meyering@lucent.com>
62285 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62286 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62288 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62289 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62291 2000-07-09 Jim Meyering <meyering@lucent.com>
62293 * lib/Most files: Update copyright dates to include 2000.
62295 2000-07-08 Jim Meyering <meyering@lucent.com>
62297 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62299 (xgethostname): Remove now-unnecessary #ifdef.
62300 Move declaration of `err' into loop where it's used.
62302 2000-07-05 Paul Eggert <eggert@twinsun.com>
62303 and Bruno Haible <haible@clisp.cons.org>
62305 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62306 only if the test for an object-type mbstate_t fails. This
62307 prevents us from mistakenly reporting that mbstate_t is a
62308 system object type after we "#define mbstate_t int" to work
62311 2000-07-05 Paul Eggert <eggert@twinsun.com>
62312 and Bruno Haible <haible@clisp.cons.org>
62314 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62316 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62318 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62320 Include <ctype.h> for use of isalpha.
62322 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62324 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62325 by allocating a larger buffer. Test the gethostname return value for
62326 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62327 returns an error and ENAMETOOLONG isn't defined.
62329 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62331 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62334 2000-07-04 Jim Meyering <meyering@lucent.com>
62336 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62337 of the deprecated AC_CHECKING.
62339 2000-07-04 Jim Meyering <meyering@lucent.com>
62341 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62342 Reported by Bruno Haible.
62344 2000-07-04 Jim Meyering <meyering@lucent.com>
62346 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62347 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62350 2000-07-03 Paul Eggert <eggert@twinsun.com>
62352 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62353 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62355 2000-07-03 Paul Eggert <eggert@twinsun.com>
62356 and Bruno Haible <haible@clisp.cons.org>
62358 * lib/quotearg.c (mbrtowc):
62359 Assign to *pwc, and return 1 only if result is nonzero.
62360 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62362 2000-07-03 Jim Meyering <meyering@lucent.com>
62364 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62366 2000-07-03 Jim Meyering <meyering@lucent.com>
62368 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62369 This is necessary to get a definition of e.g., UTMP_FILE on
62373 2000-07-02 Jim Meyering <meyering@lucent.com>
62375 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62377 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62378 AC_LIBOBJ(function_name).
62379 * m4/chown.m4: Likewise.
62380 * m4/fnmatch.m4: Likewise.
62381 * m4/ftruncate.m4: Likewise.
62382 * m4/getgroups.m4: Likewise.
62383 * m4/getline.m4: Likewise.
62384 * m4/group-member.m4: Likewise.
62385 * m4/jm-macros.m4: Likewise.
62386 * m4/lstat.m4: Likewise.
62387 * m4/malloc.m4: Likewise.
62388 * m4/memcmp.m4: Likewise.
62389 * m4/nanosleep.m4: Likewise.
62390 * m4/putenv.m4: Likewise.
62391 * m4/realloc.m4: Likewise.
62392 * m4/regex.m4: Likewise.
62393 * m4/stat.m4: Likewise.
62394 * m4/strftime.m4: Likewise.
62396 2000-07-02 Jim Meyering <meyering@lucent.com>
62398 * lib/quotearg.c (mbstate_t): Don't define here.
62400 2000-07-02 Jim Meyering <meyering@lucent.com>
62402 * lib/nanosleep.c (SIGCONT): Define if not already defined.
62404 2000-07-01 Jim Meyering <meyering@lucent.com>
62406 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62408 2000-07-01 Jim Meyering <meyering@lucent.com>
62410 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62413 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62415 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62416 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62418 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62420 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62421 per change in ../m4/ls-mntd-fs.m4.
62422 (read_filesystem_list): Ignore symbolic links.
62424 2000-06-29 Jim Meyering <meyering@lucent.com>
62426 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62427 for declaration of strcmp.
62429 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62431 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62432 Avoid warning by casting result to `char *' to remove `const'.
62434 2000-06-28 Jim Meyering <meyering@lucent.com>
62436 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62437 included by quotearg.c, for which we perform this test. From
62440 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62442 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62443 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62444 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62446 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62448 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62450 2000-06-26 Paul Eggert <eggert@twinsun.com>
62452 savedir now sets errno on failure and invokes xmalloc to get memory.
62453 Fix a couple of other minor bugs while we're at it.
62455 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62456 (NAMLEN): Remove macro.
62457 (malloc, realloc): Remove decls.
62458 (stpcpy): Likewise.
62459 ("xalloc.h"): Include.
62460 (NAME_SIZE_DEFAULT): New macro.
62461 (savedir): Use xmalloc / xrealloc to allocate memory.
62462 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62463 Skip "" directory entries.
62464 Use strlen to calculate directory entry length, since the old method
62465 is rarely used these days and isn't worth supporting.
62466 Don't use a pointer after freeing it.
62467 Check for integer overflow when calculating allocation size.
62468 Use memcpy to copy entries, instead of stpcpy.
62469 Set errno properly when returning NULL.
62470 Check for readdir error.
62472 2000-06-26 Jim Meyering <meyering@lucent.com>
62474 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62476 2000-06-25 Jim Meyering <meyering@lucent.com>
62478 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62479 Linux header bug when _XOPEN_SOURCE is defined to 500.
62481 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62483 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62486 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62488 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62490 Don't include <stdlib.h>. Don't declare malloc, realloc.
62492 2000-06-24 Jim Meyering <meyering@lucent.com>
62494 * m4/strerror_r.m4: Revive this file -- to try out an experimental
62495 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62496 for which strerror does return char*, but which lacks a conveniently
62497 accessible declaration of the function. If the compile-test says
62498 strerror_r doesn't work, then resort to a `run'-test that works on
62499 BeOS and segfaults on DEC Unix.
62501 2000-06-24 Jim Meyering <meyering@lucent.com>
62503 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62505 2000-06-23 Paul Eggert <eggert@twinsun.com>
62507 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62508 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
62510 2000-06-23 Paul Eggert <eggert@twinsun.com>
62512 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62513 (mbrtowc, mbstate_t): Define substitutes if
62514 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62515 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62516 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62518 2000-06-23 Jim Meyering <meyering@lucent.com>
62520 * m4/afs.m4: Add missing AC_MSG_RESULT.
62521 Reported by Bruno Haible.
62523 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62524 Suggestion from Bruno Haible.
62526 2000-06-23 Jim Meyering <meyering@lucent.com>
62528 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
62530 2000-06-21 Jim Meyering <meyering@lucent.com>
62532 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62534 2000-06-21 Jim Meyering <meyering@lucent.com>
62536 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62537 (noinst_HEADERS): Add getstr.h.
62539 * lib/getline.c (getstr): Move into a separate file.
62540 * lib/getstr.c (getstr): New file, extracted from getline.c, with
62541 the following changes: new parameter, delim2; both delim[12]
62542 parameters have type `int', not `char'. The latter would lose
62543 with 8-bit delimiters.
62544 * lib/getstr.h: New file.
62546 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62548 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62549 than 1024, return a memory chunk of least possible size, instead
62550 of size PATH_MAX + 2. In the loop, increment the size proportionally.
62551 Use free/xmalloc instead of xrealloc to avoid copying for very long
62554 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62556 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62559 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62561 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62562 address, not strdup. Include <stdlib.h> and don't declare free().
62564 2000-06-19 Jim Meyering <meyering@lucent.com>
62566 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62568 2000-06-18 Jim Meyering <meyering@lucent.com>
62570 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62572 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62573 `checking whether...' message to be consistent with that of the
62576 2000-06-18 Jim Meyering <meyering@lucent.com>
62578 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62579 Besides, these days every porting target provides a mkdir function.
62581 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62582 needed. (this snippet comes from src/system.h).
62584 2000-06-16 Bruno Haible <haible@clisp.cons.org>
62586 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62588 2000-06-15 Paul Eggert <eggert@twinsun.com>
62590 * lib/human.c (adjust_value): New function.
62591 (human_readable_inexact): Apply rounding style even when
62592 printing approximate values.
62594 2000-06-14 Paul Eggert <eggert@twinsun.com>
62596 * lib/human.c (human_readable_inexact): Allow an input block
62597 size that is not a multiple of the output block size, and vice versa.
62598 Reported by Piergiorgio Sartor.
62600 2000-06-14 Paul Eggert <eggert@twinsun.com>
62602 * lib/getdate.y (get_date): Apply relative times after time
62603 zone indicator, not before. Reported by Todd A. Jacobs.
62605 2000-06-13 Jim Meyering <meyering@lucent.com>
62607 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62609 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62611 2000-06-12 Paul Eggert <eggert@twinsun.com>
62613 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62615 2000-06-12 Jim Meyering <meyering@lucent.com>
62617 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62618 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62620 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62621 the optional argument, `lib'.
62623 2000-06-08 Jim Meyering <meyering@lucent.com>
62625 * m4/largefile.m4: Remove file (now that it's part of autoconf).
62627 2000-06-04 Paul Eggert <eggert@twinsun.com>
62629 Rewrite largefile configuration so that we don't need to run
62630 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
62631 AC_CANONICAL_HOST in configure.in -- jmm]
62633 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62634 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62635 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62636 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62637 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62639 Instead of inspecting the output of getconf, try to compile the
62640 test program without and with the macro definition.
62641 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62642 for getconf. Instead, check for the needed flags by compiling
62645 2000-06-04 Paul Eggert <eggert@twinsun.com>
62647 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62649 2000-06-04 Jim Meyering <meyering@lucent.com>
62651 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62652 SunOS 4.1.4 for which gid_t is an unsigned type.
62654 2000-06-03 Jim Meyering <meyering@lucent.com>
62656 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62657 now that autoconf requires that.
62659 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62660 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62661 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62663 2000-06-03 Jim Meyering <meyering@lucent.com>
62665 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62667 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62669 * m4/glibc21.m4: New file.
62670 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62672 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62674 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62675 newer, don't install charset.alias.
62676 * lib/config.charset: Change the Linux/glibc rules so they become empty
62677 on glibc-2.1 or newer.
62679 2000-06-02 Jim Meyering <meyering@lucent.com>
62681 * lib/mountlist.c: Back out last change. Instead, do this...
62682 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62683 me_dummy member using the same `ignore'-testing code.
62684 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62688 2000-05-29 Jim Meyering <meyering@lucent.com>
62690 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62691 mounts with the `ignore' attribute. Based on a patch from
62694 2000-05-28 Jim Meyering <meyering@lucent.com>
62696 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62697 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62698 * m4/stat.m4: Likewise.
62699 * m4/lstat.m4: Likewise.
62700 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62702 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62703 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62705 2000-05-26 Jim Meyering <meyering@lucent.com>
62707 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62709 2000-05-24 Jim Meyering <meyering@lucent.com>
62711 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62712 autoconf requires that.
62713 * m4/lib-check.m4: Likewise.
62714 * m4/jm-macros.m4: Likewise.
62715 * m4/strftime.m4: Likewise.
62717 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62718 AC_CHECK_DECLS, now that autoconf requires that.
62720 2000-05-22 Jim Meyering <meyering@lucent.com>
62722 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62723 * m4/lstat.m4: Likewise.
62725 2000-05-22 Jim Meyering <meyering@lucent.com>
62727 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62729 2000-05-20 Jim Meyering <meyering@lucent.com>
62731 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62732 (jm_PREREQ): Use it.
62734 2000-05-18 Jim Meyering <meyering@lucent.com>
62736 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62737 back, too, since it may have been modified by allocate_entry.
62738 (hash_delete): Rewrite to use neither the assignment operator
62739 nor the comma operator in an if-expression.
62741 2000-05-15 Paul Eggert <eggert@twinsun.com>
62744 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62745 Remove; no longer needed.
62746 "quotearg.h": Add include.
62747 (file_name): Do not bother to explicitly initialize to NULL; it's less
62748 efficient on some hosts.
62749 (close_stdout_status): Remove test as to whether stdout was already
62750 closed; it breaks for the case "echo x | sort >&-".
62751 Quote file name colons.
62752 Do not assume that _("write error") lacks format strings.
62754 2000-05-15 Jim Meyering <meyering@lucent.com>
62756 * lib/version-etc.c (version_etc_copyright): Update the copyright
62757 string used in all --version output.
62759 2000-05-14 Jim Meyering <meyering@lucent.com>
62761 * lib/closeout.c (close_stdout_set_file_name): New function.
62762 (close_stdout_status): Use new file-scoped global.
62763 Return right away if fstat says the stdout file descriptor is invalid.
62764 * lib/closeout.h (close_stdout_set_file_name): Declare.
62766 2000-05-10 Jim Meyering <meyering@lucent.com>
62768 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62769 (close_stdout_set_status): New function.
62770 * lib/closeout.h (close_stdout_set_status): Declare.
62772 2000-05-09 Jim Meyering <meyering@lucent.com>
62774 * m4/gettext.m4: Rename this...
62775 * m4/libintl.m4: ...to this.
62777 2000-05-08 Jim Meyering <meyering@lucent.com>
62779 * lib/long-options.c: Don't include closeout.h.
62780 (parse_long_options): Don't call close_stdout for --version.
62782 2000-05-06 Paul Eggert <eggert@twinsun.com>
62784 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62785 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62786 2.1.3 bug. This avoids a clash when files like regex.c define
62789 2000-05-06 Jim Meyering <meyering@lucent.com>
62791 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62792 (AC_REPLACE_FUNCS): Add strnlen.
62794 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62795 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62797 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62798 AC_SEARCH_LIBS call for nanosleep.
62799 (LIB_NANOSLEEP): Set and AC_SUBST.
62801 2000-05-06 Jim Meyering <meyering@lucent.com>
62803 * lib/strnlen.c: Undefine __strnlen and strnlen.
62804 [!weak_alias]: Define __strnlen to strnlen.
62806 * lib/atexit.c: New file, from libiberty.
62808 2000-05-06 Jim Meyering <meyering@lucent.com>
62810 * lib/closeout.c (close_stdout_status): Also check for errors on the
62813 2000-05-05 Jim Meyering <meyering@lucent.com>
62815 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62816 AC_SEARCH_LIBS call for clock_gettime.
62817 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62819 * m4/search-libs.m4: Update from autoconf.
62821 su doesn't work on Solaris 2.6.
62822 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62823 <shadow.h>. Reported by Dragos Harabor.
62825 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62827 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62828 memcpy instead of xmalloc, xrealloc, path_concat.
62829 (locale_charset): Treat empty environment variables as absent.
62830 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62832 2000-05-04 Jim Meyering <meyering@lucent.com>
62834 * lib/getopt.c: Update from glibc.
62835 * lib/obstack.c: Likewise.
62836 * lib/obstack.h: Likewise.
62837 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
62840 * lib/regex.h: Likewise.
62841 * lib/strndup.c: Likewise.
62842 * lib/strnlen.c: New file, from glibc.
62844 2000-05-03 Jim Meyering <meyering@lucent.com>
62846 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62848 2000-05-02 Paul Eggert <eggert@twinsun.com>
62850 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62851 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
62852 compile-time test, rather than inspecting host and OS, to
62853 decide whether to define _LARGEFILE_SOURCE.
62855 2000-05-01 Jim Meyering <meyering@lucent.com>
62857 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62859 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62860 Based on a patch from Bruno Haible.
62862 2000-05-01 Jim Meyering <meyering@lucent.com>
62864 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62866 2000-04-29 Jim Meyering <meyering@lucent.com>
62868 * lib/path-concat.c: Declare strdup only if it's not defined.
62869 * lib/canon-host.c: Likewise.
62871 2000-04-28 Jim Meyering <meyering@lucent.com>
62873 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62874 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
62875 is included first, then limits.h is included by locale.h by libintl.h.
62876 From John David Anglin.
62878 2000-04-25 Jim Meyering <meyering@lucent.com>
62880 * lib/makepath.c (S_IRWXUGO): Define.
62881 (make_path): Always perform explicit chmod if MODE specifies any
62882 of the `special' permission bits. Prompted by a bug report against
62883 install from Mate Wierdl and Joost van Baal.
62885 2000-04-18 Jim Meyering <meyering@lucent.com>
62887 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62888 (jm_PREREQ): Use it.
62890 2000-04-18 Jim Meyering <meyering@lucent.com>
62892 * lib/README: New file.
62894 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62895 getpagesize. For BeOS. Based on a patch from Bruno Haible.
62897 2000-04-17 Jim Meyering <meyering@lucent.com>
62900 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62901 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
62902 Suggestion from Akim Demaille.
62904 2000-04-17 Jim Meyering <meyering@lucent.com>
62906 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62907 the definition of it to rpl_strftime also defined-away the system's
62910 2000-04-15 Jim Meyering <meyering@lucent.com>
62912 Use `C' to denote so-called `contiguous' files, the same way
62914 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62915 (ftypelet): Use S_ISCTG.
62916 From Michael Deutschmann.
62918 2000-04-14 Jim Meyering <meyering@lucent.com>
62920 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62921 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
62924 2000-04-14 Jim Meyering <meyering@lucent.com>
62926 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62928 2000-04-13 Jim Meyering <meyering@lucent.com>
62930 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62931 AH_VERBATIM to insert required #ifndef into config.h.in.
62932 Suggestion from Akim Demaille.
62934 2000-04-12 Jim Meyering <meyering@lucent.com>
62936 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62937 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
62938 Christian Krackowizer.
62940 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62941 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62942 (AC_SYS_LARGEFILE): Require.
62943 (AM_C_PROTOTYPES): Require.
62945 2000-04-08 Jim Meyering <meyering@lucent.com>
62947 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62948 names don't conflict. Reported by Eli Zaretskii.
62950 2000-04-07 Jim Meyering <meyering@lucent.com>
62952 * lib/putenv.c: Move inclusion of errno.h so it follows that of
62953 sys/types.h, to work around system header problems on AIX 3.2.5.
62956 2000-04-07 Bruno Haible <haible@clisp.cons.org>
62958 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62959 bug. Deal with the different error behavior of Irix iconv.
62961 2000-04-05 Paul Eggert <eggert@twinsun.com>
62963 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62964 IRIX if the installer said otherwise.
62966 2000-04-05 Jim Meyering <meyering@lucent.com>
62968 Portability tweaks required for ultrix4.3.
62969 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62970 (jm_CHECK_DECLS): Add getutent to the list of functions.
62971 (_jm_DECL_HEADERS): Add utmpx.h.
62972 From John David Anglin.
62974 * m4/strftime.m4: Back out the 2000-04-02 change.
62975 Instead of that change, simply undefine putenv in the test program.
62977 2000-04-05 Jim Meyering <meyering@lucent.com>
62979 Portability tweaks required for ultrix4.3.
62980 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62982 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62983 * lib/canon-host.c: Declare strdup.
62984 * lib/path-concat.c: Likewise.
62985 From John David Anglin.
62987 2000-04-04 Jim Meyering <meyering@lucent.com>
62989 Be more DOS 8.3-friendly.
62990 * lib/ref-add.sin: Renamed from ref-add.sed.in.
62991 * lib/ref-del.sin: Renamed from ref-del.sed.in.
62992 * lib/Makefile.am: Reflect renaming.
62993 Reported by Eli Zaretskii.
62995 Use a temporary file name that won't clash with `charset.alias'
62996 in the DOS 8.3 name space.
62997 * lib/Makefile.am (charset_tmp): Define.
62998 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62999 (uninstall-local): Likewise.
63000 Reported by Eli Zaretskii.
63002 2000-04-03 Jim Meyering <meyering@lucent.com>
63004 * m4/gettext.m4: Fix typo in comment.
63006 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63007 textutils/configure.in). Suggestion from Paul Eggert.
63008 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
63010 2000-04-02 Paul Eggert <eggert@twinsun.com>
63012 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63013 variable in the shell rather than using putenv, which isn't
63014 portable. This avoids the configure-time inter-test dependency
63015 on the potentially-renamed putenv function.
63017 2000-03-30 Paul Eggert <eggert@twinsun.com>
63019 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63020 before checking struct stat.st_blksize, so that
63021 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63023 2000-03-29 Paul Eggert <eggert@twinsun.com>
63025 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63026 since strftime.c uses HAVE_STRFTIME to decide whether to use
63027 the underlying strftime.
63029 2000-03-29 Paul Eggert <eggert@twinsun.com>
63031 * lib/time/strftime.c (my_strftime): Make sure we call the system
63032 strftime, not ourselves, when invoking the underlying strftime.
63034 2000-03-24 Jim Meyering <meyering@lucent.com>
63036 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63037 (charset_alias): Define.
63038 (install-exec-local): Factor out common code.
63039 (uninstall-local): Split lines longer than 80.
63040 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63041 (SUFFIXES): Define.
63042 (.sed.in.sed): New rule. Don't redirect directly to $@.
63043 (CLEANFILES): Add ref-add.sed and ref-del.sed.
63045 2000-03-19 Bruno Haible <haible@clisp.cons.org>
63047 * lib/config.charset: Output a line containing "Packages using this
63049 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63050 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63051 ref-del.sed): New rules.
63053 2000-03-17 Jim Meyering <meyering@lucent.com>
63055 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63056 Otherwise, include <strings.h>
63058 2000-03-17 Bruno Haible <haible@clisp.cons.org>
63060 * lib/unicodeio.c (utf8_wctomb): New function.
63061 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63062 format instead of in UCS-4 with platform dependent endianness.
63064 2000-03-10 Jim Meyering <meyering@lucent.com>
63066 * m4/lib-check.m4: Look for getspnam in -lgen, too.
63067 From Marco Franzen.
63069 2000-03-07 Paul Eggert <eggert@twinsun.com>
63071 * lib/savedir.c (savedir): Work even if directory size is
63072 negative; this can happen with some screwy NFS configurations.
63074 2000-03-06 Jim Meyering <meyering@lucent.com>
63076 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63077 if it's NULL (because we ran out of memory). From Bruno Haible.
63079 2000-03-05 Jim Meyering <meyering@lucent.com>
63081 * lib/localcharset.c ("path-concat.h"): Include.
63082 (get_charset_aliases): Use path_concat instead of ANSI string
63085 * lib/unicodeio.h (PARAMS): Define.
63086 Use it to guard prototype.
63088 2000-03-04 Jim Meyering <meyering@lucent.com>
63090 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63091 for lib/localcharset.c.
63093 2000-03-04 Jim Meyering <meyering@lucent.com>
63095 * lib/Makefile.am (install-exec-local): Create $(libdir) before
63096 installing into it.
63097 (uninstall-local): Uncomment this rule so `make distcheck' works
63100 * lib/unicodeio.c (<errno.h>): Include it.
63101 (errno): Declare if not defined.
63103 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63105 * lib/config.charset: New version, incorporating remarks from a linux
63106 i18n mailing list. From Bruno Haible.
63108 2000-03-04 Bruno Haible <haible@clisp.cons.org>
63110 * m4/codeset.m4: New file.
63111 * m4/iconv.m4: New file.
63112 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63114 2000-03-03 Jim Meyering <meyering@lucent.com>
63116 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63118 2000-03-02 Jim Meyering <meyering@lucent.com>
63120 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63121 the messages come out on separate lines.
63123 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63124 rather than jm_CHECK_DECLARATIONS.
63125 * m4/decl.m4: Remove now-unused file.
63127 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63130 2000-03-02 Jim Meyering <meyering@lucent.com>
63132 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63134 2000-03-01 Jim Meyering <meyering@lucent.com>
63136 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63137 * lib/unicodeio.c: Likewise.
63139 2000-03-01 Bruno Haible <haible@clisp.cons.org>
63141 * lib/config.charset: New file.
63142 * lib/localcharset.c: New file.
63143 * lib/unicodeio.h, lib/unicodeio.c: New files.
63144 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63145 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63146 (noinst_HEADERS): Add unicodeio.h.
63147 (all-local, install-exec-local, charset.alias): New targets.
63149 2000-02-28 Paul Eggert <eggert@twinsun.com>
63151 * lib/quotearg.c (ALERT_CHAR): New macro.
63152 (quotearg_buffer_restyled): Use it.
63154 2000-02-27 Jim Meyering <meyering@lucent.com>
63156 * m4/check-decl.m4: Add getenv to the list.
63158 2000-02-27 Jim Meyering <meyering@lucent.com>
63160 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63161 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63163 * lib/backupfile.c: Guard inclusion of stdlib.h with
63164 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63165 Declare malloc if needed.
63167 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63168 `#ifndef HAVE_DECL..'
63169 now that autoconf always defines the HAVE_DECL_ symbols.
63170 * lib/human.c: Likewise.
63171 * lib/same.c: Likewise.
63172 * lib/strtoumax.c: Likewise.
63174 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63175 declaration check was not run.
63176 * lib/hash.c: Likewise.
63177 * lib/human.c: Likewise.
63178 * lib/same.c: Likewise.
63179 * lib/strtoumax.c: Likewise.
63181 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63182 `.', then first look up the entire `.'-containing string as a login
63185 2000-02-23 Jim Meyering <meyering@lucent.com>
63187 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63188 in place of my hack.
63190 2000-02-18 Paul Eggert <eggert@twinsun.com>
63192 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63193 (textint): New typedef.
63194 (parser_control): Member year changed from int to textint.
63196 (YYSTYPE): Removed; replaced by %union with int and textint members.
63197 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63198 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63199 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63200 (tSNUMBER, tUNUMBER): Now of type <textintval>.
63201 (date, number, to_year): Use width of number in digits, not its value,
63202 to determine whether it's a 2-digit year, or a 2-digit time.
63203 (yylex): Store number of digits of numeric tokens.
63204 Reported by John Kendall.
63206 (parser_control): Changed from struct parser_control to typedef (for
63207 consistency). All uses changed.
63209 (tID): Removed; not used.
63210 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63212 2000-02-14 Paul Eggert <eggert@twinsun.com>
63214 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63215 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63217 2000-02-12 Jim Meyering <meyering@lucent.com>
63219 * lib/userspec.c (ISDIGIT): Define it.
63220 (isdigit): Remove definition.
63221 (is_number): Use ISDIGIT, not isdigit.
63222 <libintl.h>: Include.
63223 (_ and N_): Define.
63224 (parse_user_spec): Mark translatable strings.
63226 2000-02-10 Jim Meyering <meyering@lucent.com>
63228 With these changes, nanosleep.[ch] are finally enough like the other
63229 lib/* replacement files to compile on a few more losing systems.
63231 * lib/nanosleep.h: Don't include config.h.
63232 Remove prototype from declaration of nanosleep.
63233 (PARAMS): Remove now-unneeded definition.
63234 * lib/nanosleep.c: #undef nanosleep.
63235 (rpl_nanosleep): Rename from nanosleep.
63237 2000-02-10 Jim Meyering <meyering@lucent.com>
63239 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63240 gnu_nanosleep to rpl_nanosleep.
63242 2000-02-09 Jim Meyering <meyering@lucent.com>
63244 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63245 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
63247 2000-02-08 Akim Demaille <akim@epita.fr>
63249 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63250 `[' and `]' and remove uses of `changequote'.
63251 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63252 (AC_SYS_LARGEFILE): Likewise.
63253 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63254 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63256 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63257 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63258 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63259 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63261 2000-02-05 Jim Meyering <meyering@lucent.com>
63263 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63264 Remove explicit use of AC_HEADER_TIME. It is required by
63265 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63266 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63267 in autoconf whereby the expansion of the latter ended up preceding
63268 the expansion of its prerequisite, AC_HEADER_TIME.
63269 Reported by Volker Borchert.
63271 2000-02-03 Jim Meyering <meyering@lucent.com>
63273 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63275 2000-02-03 Jim Meyering <meyering@lucent.com>
63277 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63278 rather than with `#if HAVE_UTMPNAME'.
63280 2000-02-02 Jim Meyering <meyering@lucent.com>
63282 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63283 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63284 Reported by Eli Zaretskii.
63286 2000-02-01 Jim Meyering <meyering@lucent.com>
63288 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63290 2000-01-31 Jim Meyering <meyering@lucent.com>
63292 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63293 functions. Add the time.h and sys/time.h headers along with the
63294 AC_REQUIRE'ment of AC_HEADER_TIME.
63296 2000-01-31 Jim Meyering <meyering@lucent.com>
63298 * lib/nanosleep.h (nanosleep): Guard declaration with
63299 `#if ! HAVE_DECL_NANOSLEEP'.
63300 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63301 the declaration in that vendor's sys/timers.h.
63302 Reported by Christian Krackowizer.
63304 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63305 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63306 (ISPRINT): Likewise.
63307 Reported by Tom Tromey.
63309 2000-01-30 Jim Meyering <meyering@lucent.com>
63311 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63313 * m4/prereq.m4 (utmp_includes): Define.
63314 Check for ut_user and ut_name members in both struct utmpx
63317 2000-01-30 Jim Meyering <meyering@lucent.com>
63319 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63320 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63321 header files where only utmpx.ut_user is declared.
63323 * lib/readutmp.h (UT_USER): Define.
63325 2000-01-29 Jim Meyering <meyering@lucent.com>
63327 * m4/lib-check.m4: New file containing library-related checks from
63328 fileutils and sh-utils (textutils had none).
63330 2000-01-28 Jim Meyering <meyering@lucent.com>
63332 * m4/perl.m4: Change format of warning message to look more like that
63333 from the missing script. Suggestion from François Pinard.
63335 2000-01-25 Jim Meyering <meyering@lucent.com>
63337 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63338 well as time.h in the compile check.
63339 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63340 Fix typo in cross-compiling case: s/yes/no/.
63342 2000-01-23 Jim Meyering <meyering@lucent.com>
63344 * m4/jm-macros.m4: Move df-related tests here from
63345 fileutils/configure.in
63347 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63348 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63350 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63351 s/space/ac_fsusage_space/.
63352 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63354 * m4/ftruncate.m4: New file (derived from part of
63355 fileutils/configure.in).
63356 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63357 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63359 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63360 AC_SUBST these here, rather than just in sh-util/configure.in, so
63361 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63363 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63364 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63365 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63366 (AC_SUBST(POW_LIBM)): Likewise.
63367 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63369 2000-01-23 Jim Meyering <meyering@lucent.com>
63371 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63374 2000-01-22 Jim Meyering <meyering@lucent.com>
63376 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63378 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63380 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63382 (AC_CHECK_HEADERS): Likewise for sh-utils.
63383 (AC_CHECK_HEADERS): Likewise for textutils.
63384 Merge the three lists of headers.
63386 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
63387 from fileutils' configure.in.
63389 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63390 code. Moved tests into their own function (_jm_DECL_HEADERS) in
63393 * m4/check-decl.m4: Use #if rather than #ifdef.
63394 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63395 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63396 (_jm_DECL_HEADERS): Define new function.
63397 (jm_CHECK_DECLARATIONS): Require it.
63399 2000-01-22 Jim Meyering <meyering@lucent.com>
63401 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63402 [! HAVE_DECL_STRTOULL]: Declare strtoull.
63403 Required for some AIX systems. Reported by Christian Krackowizer.
63404 [TESTING] (main): New function.
63406 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
63407 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63410 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63413 * lib/strverscmp.c (ISDIGIT): Define.
63414 (strverscmp): Use ISDIGIT, not isdigit.
63416 2000-01-19 Jim Meyering <meyering@lucent.com>
63418 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63419 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63420 defines `struct timespec' in <sys/time.h>
63422 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63423 Thanks to Akim for explaining.
63425 2000-01-17 Paul Eggert <eggert@twinsun.com>
63427 * lib/nanosleep.c (nanosleep):
63428 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63429 POSIX.1 doesn't require SA_INTERRUPT and some systems
63430 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63431 it's been part of POSIX.1 since day 1 (in 1988).
63433 2000-01-17 Jim Meyering <meyering@lucent.com>
63435 * lib/interlock: Remove unused file. Reported by François Pinard.
63437 2000-01-16 Paul Eggert <eggert@twinsun.com>
63439 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63440 alert, backslash, formfeed, and vertical tab unnecessarily in
63441 shell quoting style.
63443 2000-01-16 Jim Meyering <meyering@lucent.com>
63445 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63446 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63447 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63448 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63450 2000-01-16 Jim Meyering <meyering@lucent.com>
63452 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63453 because the latter didn't work.
63455 2000-01-15 Jim Meyering <meyering@lucent.com>
63457 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63458 (AC_REPLACE_FUNCS): Add memcpy and memset.
63459 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63461 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63463 2000-01-12 Jim Meyering <meyering@lucent.com>
63465 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63466 (jm_PREREQ): Use it.
63467 (jm_PREREQ_READUTMP): New macro.
63468 (jm_PREREQ): Use it.
63470 2000-01-11 Paul Eggert <eggert@twinsun.com>
63472 Quote multibyte characters correctly.
63473 * m4/c-bs-a.m4: New file.
63474 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63475 (jm_PREREQ): Use it.
63477 2000-01-11 Paul Eggert <eggert@twinsun.com>
63479 * m4/uintmax_t.m4: Port to autoconf 2.13.
63481 2000-01-08 Jim Meyering <meyering@ascend.com>
63483 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63484 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63486 2000-01-04 Jim Meyering <meyering@ascend.com>
63488 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63489 jm_STRUCT_DIRENT_D_TYPE.
63490 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63491 jm_STRUCT_DIRENT_D_INO.
63492 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63494 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63496 * m4/utime.m4: Likewise.
63498 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63499 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63501 2000-01-03 Paul Eggert <eggert@twinsun.com>
63503 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63504 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63506 2000-01-02 Jim Meyering <meyering@ascend.com>
63508 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
63509 remember if this is necessary.
63511 1999-12-26 Jim Meyering <meyering@ascend.com>
63513 * m4/jm-macros.m4: Use it here.
63514 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63516 1999-12-23 Jim Meyering <meyering@ascend.com>
63518 * m4/jm-macros.m4: Check for clock_gettime (moved from
63519 fileutils/configure.in)
63520 Check for gettimeofday.
63522 1999-12-20 Jim Meyering <meyering@ascend.com>
63524 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63525 autoconf-2.14a-1999-12-20.
63527 1999-12-19 Jim Meyering <meyering@ascend.com>
63529 * m4/lstat-slash.m4: New file.
63530 * m4/jm-macros.m4: Use the new macro:
63531 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63533 1999-12-07 Jim Meyering <meyering@ascend.com>
63535 * m4/perl.m4: Require that File::Compare be available, too.
63536 Too many systems seem to lack it.
63538 * m4/strftime.m4: Add checks for most of the cpp macros tested in
63539 GNU's strftime.c. Prompted by a patch from Paul Eggert.
63541 1999-11-18 Paul Eggert <eggert@twinsun.com>
63543 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63544 problem with the QNX 4.25 shell, which doesn't propagate exit
63545 status of failed commands inside shell assignments.
63547 1999-11-17 Jim Meyering <meyering@ascend.com>
63549 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63551 1999-11-07 Jim Meyering <meyering@ascend.com>
63553 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63555 1999-11-06 Jim Meyering <meyering@ascend.com>
63557 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63558 * m4/jm-macros.m4 (jm_MACROS): Use it here.
63560 1999-11-05 Jim Meyering <meyering@ascend.com>
63562 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63563 configure.in of textutils, fileutils, and sh-utils into this one
63564 (shared between those packages) file.
63565 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63566 AC_STRUCT_ST_BLKSIZE.
63568 1999-11-03 Jim Meyering <meyering@ascend.com>
63570 * m4/ssize_t.m4: Remove file. No longer needed since the new version
63571 of AC_CHECK_TYPE checks includes unistd.h.
63572 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63573 Suggestion from Akim Demaille.
63575 1999-10-30 Jim Meyering <meyering@ascend.com>
63577 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
63579 * m4/ls-mntd-fs.m4: Likewise.
63580 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
63581 * m4/jm-winsz1.m4: Likewise.
63583 * m4/const.m4: Remove file, since the fix made it into the experimental
63584 version of autoconf.
63585 * m4/mktime.m4: Likewise.
63587 * m4/check-type.m4: Remove file, now that the latest version of
63588 AC_CHECK_TYPE takes a third arg to specify additional #includes.
63590 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63591 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63594 1999-10-04 Jim Meyering <meyering@ascend.com>
63596 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63598 1999-09-22 Paul Eggert <eggert@twinsun.com>
63600 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63601 2.95.1 bug with HP-UX 10.20.
63603 1999-09-17 Jim Meyering <meyering@ascend.com>
63605 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63606 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63607 due to missing strdup (against sh-utils-2.0).
63609 1999-08-29 Jim Meyering <meyering@ascend.com>
63611 * m4/jm-macros.m4: Require jm_BISON.
63612 * m4/bison.m4: New file.
63614 1999-08-17 Paul Eggert <eggert@twinsun.com>
63616 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63617 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63619 1999-08-05 Jim Meyering <meyering@ascend.com>
63621 * m4/getline.m4: Rename test file from conftestdata to conftest.data
63622 to avoid conflicts with `conftest' on 8+3 filesystems.
63623 Suggestion from Eli Zaretskii.
63625 1999-08-04 Jim Meyering <meyering@ascend.com>
63627 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63628 fileutils and sh-utils (textutils's getline test was inadequate).
63629 (AM_FUNC_GETLINE): Run this test.
63630 (AC_CHECK_FUNCS): Check for getdelim.
63631 Reported by Bob Proulx.
63633 1999-08-02 Jim Meyering <meyering@ascend.com>
63635 * m4/jm-macros.m4: Add a comment.
63637 1999-08-01 Paul Eggert <eggert@twinsun.com>
63639 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63640 <inttypes.h> defines strtoumax as a macro (and not as a
63643 1999-08-01 Paul Eggert <eggert@twinsun.com>
63645 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63646 that we can shift, multiply and divide unsigned long long
63647 values; Ultrix cc can't do it.
63649 1999-08-01 Paul Eggert <eggert@twinsun.com>
63651 * m4/mktime.m4: New file, which is a preview of what should appear
63652 in the next public autoconf release.
63654 1999-08-01 Paul Eggert <eggert@twinsun.com>
63656 * m4/lfs.m4: Remove this file.
63657 * m4/largefile.m4: New file. It contains the old contents of
63658 lfs.m4, except that all names with prefix AC_LFS have been
63659 changed to use the prefix AC_SYS_LARGEFILE instead, to be
63660 compatible with future autoconf versions. Also, some minor m4
63661 quoting problems have been fixed.
63663 1999-08-01 Paul Eggert <eggert@twinsun.com>
63665 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63666 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63667 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63668 and simplify the shell code.
63670 1999-08-01 Jim Meyering <meyering@ascend.com>
63672 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63675 1999-07-20 Jim Meyering <meyering@ascend.com>
63677 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63679 1999-07-15 Jim Meyering <meyering@ascend.com>
63681 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63683 1999-05-22 Jim Meyering <meyering@ascend.com>
63685 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63687 1999-05-20 Jim Meyering <meyering@ascend.com>
63689 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63690 Add a colon after each `then' in case $4 is empty.
63692 1999-05-16 Jim Meyering <meyering@ascend.com>
63694 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63696 1999-05-10 Jim Meyering <meyering@ascend.com>
63698 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63700 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63703 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
63705 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63707 1999-05-04 Paul Eggert <eggert@twinsun.com>
63709 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63710 not CPPFLAGS, so that linking works correctly in IRIX.
63712 1999-04-30 Paul Eggert <eggert@twinsun.com>
63714 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63716 1999-04-20 Paul Eggert <eggert@twinsun.com>
63718 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63719 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63720 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63721 jm_AC_TYPE_UNSIGNED_LONG_LONG.
63722 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63724 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
63726 1999-04-20 Jim Meyering <meyering@ascend.com>
63728 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63729 AC_REPLACE xstroull if necessary. From Paul Eggert.
63730 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63732 1999-04-18 Jim Meyering <meyering@ascend.com>
63734 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63735 * m4/jm-macros.m4: Use it.
63737 1999-04-06 Jim Meyering <meyering@ascend.com>
63739 * m4/strftime.m4: Remove test for %f.
63741 1999-03-29 Jim Meyering <meyering@ascend.com>
63743 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63744 superset of the AC_TYPE_* checks in the textutils, fileutils,
63745 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
63748 1999-03-28 Jim Meyering <meyering@ascend.com>
63750 * m4/jm-macros.m4: Define GNU_PACKAGE here.
63751 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63752 replaced e.g., in the *.sh files of the sh-utils.
63754 1999-03-20 Jim Meyering <meyering@ascend.com>
63756 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63757 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63758 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
63760 1999-03-19 Jim Meyering <meyering@ascend.com>
63762 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63764 1999-03-12 Jim Meyering <meyering@ascend.com>
63766 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63768 1999-03-07 Jim Meyering <meyering@ascend.com>
63770 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63773 1999-02-17 Jim Meyering <meyering@ascend.com>
63775 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63776 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63778 1999-02-07 Jim Meyering <meyering@ascend.com>
63780 * m4/group-member.m4: New file -- extracted from sh-utils'
63783 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63784 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63786 1999-02-06 Jim Meyering <meyering@ascend.com>
63788 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63789 * m4/fnmatch.m4: Likewise.
63790 * m4/getgroups.m4: Likewise.
63791 * m4/lstat.m4: Likewise.
63792 * m4/malloc.m4: Likewise.
63793 * m4/putenv.m4: Likewise.
63794 * m4/realloc.m4: Likewise.
63795 * m4/regex.m4: Likewise.
63796 * m4/stat.m4: Likewise.
63797 * m4/strftime.m4: Likewise.
63798 Suggestion from Alain Magloire.
63800 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63801 * m4/fnmatch.m4: Likewise.
63802 * m4/getgroups.m4: Likewise.
63803 * m4/getline.m4: Likewise.
63804 * m4/lstat.m4: Likewise.
63805 * m4/malloc.m4: Likewise.
63806 * m4/memcmp.m4: Likewise.
63807 * m4/putenv.m4: Likewise.
63808 * m4/realloc.m4: Likewise.
63809 * m4/regex.m4: Likewise.
63810 * m4/stat.m4: Likewise.
63811 * m4/strftime.m4: Likewise.
63812 Suggestion from Alain Magloire.
63814 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63817 * m4/regex.m4: Add a run-time Test for proper operation of
63818 re_compile_pattern.
63820 1999-01-31 Jim Meyering <meyering@ascend.com>
63822 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63824 1999-01-30 Jim Meyering <meyering@ascend.com>
63826 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63828 * m4/jm-mktime.m4: Make this a wrapper around the official
63829 AM_FUNC_MKTIME rather than my private copy, now that the official one
63831 * m4/mktime.m4: Remove file.
63833 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63834 * m4/uptime.m4: Likewise.
63835 * m4/uintmax_t.m4: Likewise.
63837 1999-01-28 Jim Meyering <meyering@ascend.com>
63839 * m4/jm-macros.m4: Use jm_AFS.
63840 * m4/afs.m4: New file (from fileutils' configure.in).
63842 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63843 * m4/chown.m4: Likewise.
63844 * m4/d-ino.m4: Likewise.
63845 * m4/d-type.m4: Likewise.
63846 * m4/fnmatch.m4: Likewise.
63847 * m4/getgroups.m4: Likewise.
63848 * m4/gettext.m4: Likewise.
63849 * m4/jm-mktime.m4: Likewise.
63850 * m4/jm-winsz2.m4: Likewise.
63851 * m4/lcmessage.m4: Likewise.
63852 * m4/ls-mntd-fs.m4: Likewise.
63853 * m4/malloc.m4: Likewise.
63854 * m4/memcmp.m4: Likewise.
63855 * m4/putenv.m4: Likewise.
63856 * m4/realloc.m4: Likewise.
63857 * m4/st_mtim.m4: Likewise.
63858 * m4/strftime.m4: Likewise.
63860 1999-01-16 Jim Meyering <meyering@ascend.com>
63862 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63863 (ARGMATCH_DIE_DECL): Define.
63865 1999-01-12 Jim Meyering <meyering@ascend.com>
63867 * m4/Makefile.am.in: Rewrite to avoid using fmt.
63868 Reported by Lars Hecking.
63870 1999-01-10 Jim Meyering <meyering@ascend.com>
63872 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63874 * m4/inttypes_h.m4: Likewise.
63875 * m4/lstat.m4: Likewise.
63876 * m4/malloc.m4: Likewise.
63877 * m4/readdir.m4: Likewise.
63878 * m4/realloc.m4: Likewise.
63879 * m4/st_dm_mode.m4: Likewise.
63880 * m4/stat.m4: Likewise.
63881 * m4/utimbuf.m4: Likewise.
63882 * m4/utimes.m4: Likewise.
63884 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63885 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
63886 comments in config.h.in are meaningful.
63888 * m4/jm-macros.m4: Require autoconf-2.13 here.
63890 * m4/regex.m4: By default, don't use the included regex.c on systems
63891 with glibc 2. Suggestion from Uli Drepper.
63893 1999-01-02 Jim Meyering <meyering@ascend.com>
63895 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63897 1998-12-18 Jim Meyering <meyering@ascend.com>
63899 * m4/Makefile.am.in (Makefile.am): Simplify rule.
63900 Based on a suggestion from Lars Hecking.
63902 1998-11-16 Paul Eggert <eggert@twinsun.com>
63904 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63906 1998-11-16 Jim Meyering <meyering@ascend.com>
63908 * m4/lfs.m4: Double-quote the `uname...` expression.
63910 1998-11-14 Jim Meyering <meyering@ascend.com>
63912 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
63913 * m4/stat.m4: Likewise.
63915 1998-11-03 Jim Meyering <meyering@ascend.com>
63917 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63918 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63920 1998-10-18 Jim Meyering <meyering@ascend.com>
63922 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63924 1998-10-17 Jim Meyering <meyering@ascend.com>
63926 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63927 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63928 calls for those previously hard-coded headers. Instead, take a new
63930 (jm_CHECK_DECLARATIONS): Reflect interface change.
63931 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63932 (jm_CHECK_DECL_LOCALTIME_R): New macro.
63934 * m4/mktime.m4: Test for spring-forward gap before long-running test.
63936 1998-10-14 Jim Meyering <meyering@ascend.com>
63938 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63939 instead of "TZ=America/Vancouver". From Paul Eggert.
63941 1998-10-11 Jim Meyering <meyering@ascend.com>
63943 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63944 This adds a test for a recently added compatibility fix for mktime.c.
63945 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63947 1998-09-27 Jim Meyering <meyering@ascend.com>
63949 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63951 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
63952 ../configure.in, including a change from Gordon Matzigkeit to allow
63953 cross-compiling for the Hurd.
63955 * m4/glibc.m4: New file/macro to test for the GNU C Library
63956 versions 1 and 2. From Gordon Matzigkeit.
63959 1998-09-21 Jim Meyering <meyering@ascend.com>
63961 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
63963 1998-08-18 Paul Eggert <eggert@twinsun.com>
63965 Port nanosecond-resolution times to UnixWare 2.1.2 and
63966 pedantic Solaris 2.6.
63968 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63970 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63971 Generate name of ns member, instead of just 1 or undef.
63972 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63974 1998-08-15 Jim Meyering <meyering@ascend.com>
63976 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63977 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
63978 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63979 instead of jm_TYPE_SSIZE_T.
63981 1998-08-12 Jim Meyering <meyering@ascend.com>
63983 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
63985 1998-08-02 Jim Meyering <meyering@ascend.com>
63987 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63988 in acconfig.h manually.
63990 1998-07-31 Paul Eggert <eggert@twinsun.com>
63992 * m4/st_mtim.m4: New file.
63994 1998-07-28 Jim Meyering <meyering@ascend.com>
63996 * m4/utimes.m4: Undef stat.
63998 1998-07-25 Jim Meyering <meyering@ascend.com>
64000 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64001 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64003 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
64005 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64006 uid and gid actually remain unchanged.
64008 1998-07-07 Jim Meyering <meyering@ascend.com>
64010 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64012 1998-07-04 Jim Meyering <meyering@ascend.com>
64014 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
64015 to prove that this macro can be used in packages without regex.c.
64017 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
64019 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64022 1998-07-03 Jim Meyering <meyering@ascend.com>
64024 * m4/gettext.m4: Add -lintl if it's found to be necessary.
64026 * m4/gettext.m4: New file -- from gettext-0.10.35.
64027 * m4/lcmessage.m4: Likewise.
64028 * m4/progtest.m4: Likewise.
64030 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64031 * m4/jm-macros.m4: Require the new macro.
64033 1998-06-29 Jim Meyering <meyering@ascend.com>
64035 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
64036 for the definition of NGROUPS (used in a system header included
64039 1998-06-28 Jim Meyering <meyering@ascend.com>
64041 * m4/ls-mntd-fs.m4: New file.
64042 * m4/fstypename.m4: New file.
64044 * m4/jm-macros.m4: Require the new macro.
64045 * m4/jm-glibc-io.m4: New file.
64047 1998-05-19 Jim Meyering <meyering@ascend.com>
64049 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64050 * m4/lchown.m4: New file.
64052 * m4/Makefile.am.in: New file.
64053 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64055 1998-05-14 Jim Meyering <meyering@ascend.com>
64057 * m4/Makefile.am (EXTRA_DIST): Add them.
64058 * m4/jm-macros.m4: New file.
64059 * m4/utimbuf.m4: New file.
64061 1998-05-12 Jim Meyering <meyering@ascend.com>
64063 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64065 1998-05-11 Jim Meyering <meyering@ascend.com>
64067 * m4/isc-posix.m4: New file.
64069 1998-05-10 Jim Meyering <meyering@ascend.com>
64071 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64073 1998-05-09 Jim Meyering <meyering@ascend.com>
64075 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64076 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64079 * m4/ssize_t.m4: New file.
64080 * m4/mktime.m4: Remove file -- the new automake has this now.
64082 1998-04-26 Jim Meyering <meyering@ascend.com>
64084 * m4/assert.m4: New file.
64085 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64087 1998-04-05 Jim Meyering <meyering@ascend.com>
64089 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64090 (jm_PREREQ): Use it here.
64092 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
64094 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64097 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
64099 * m4/prereq.m4: New file.
64100 * m4/error.m4: New file.
64101 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64103 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
64105 * m4/getline.m4: Don't set am_cv_func_working_getline before the
64106 cache-check for the same variable -- that defeated the purpose of
64107 the test; the test program was never run. This was a problem only
64108 on systems with losing getline functions -- HP-UX 10.20 is one.
64109 Reported by Bjorn Helgaas.
64111 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
64113 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64115 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
64117 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64119 * m4/const.m4: New file. Use an initializer in this declaration
64120 typedef int charset[2]; const charset x;
64121 Reported by Bob Glickstein.
64123 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
64125 * m4/chown.m4: Fix reversed types on -1 args to chown.
64128 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
64130 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64131 Add lseek and memchr.
64133 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64134 T.E.Dickey <dickey@clark.net> said that some older preprocessors
64135 have a 20-character limit on names.
64137 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
64139 * m4/inttypes_h.m4: New file.
64140 * m4/uintmax_t.m4: New file.
64141 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64150 Copyright (C) 1997-2010 Free Software Foundation, Inc.
64152 Copying and distribution of this file, with or without
64153 modification, are permitted provided the copyright notice
64154 and this notice are preserved.