1 2010-03-21 Bruno Haible <bruno@clisp.org>
3 * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4 (Makefile.am): Verify that PTY_LIB is defined.
6 * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8 2010-03-21 Bruno Haible <bruno@clisp.org>
10 Tests for module 'login_tty'.
11 * modules/login_tty-tests: New file.
12 * tests/test-login_tty.c: New file.
14 New module 'login_tty'.
15 * lib/login_tty.c: New file.
16 * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17 * modules/login_tty: New file.
18 * doc/glibc-functions/login_tty.texi: Mention the new module.
20 2010-03-21 Bruno Haible <bruno@clisp.org>
22 login_tty: Documentation.
23 * doc/glibc-functions/login_tty.texi: New file.
24 * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26 2010-03-21 Bruno Haible <bruno@clisp.org>
28 pty: Consistent macro naming.
29 * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31 * modules/pty (configure.ac): Update.
33 2010-03-21 Bruno Haible <bruno@clisp.org>
35 Tests for openpty: Make stricter.
36 * tests/test-openpty.c (main): Add test of canonical processing and
38 * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
40 openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
41 * lib/openpty.c (openpty): New replacement function.
42 * lib/pty.in.h: Include <termios.h>.
43 (openpty): Update declaration. Add comments.
44 * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
45 is not declared, arrange to provide the replacement. Check for _getpty
47 * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
48 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
49 * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
50 * modules/pty-tests (test_pty_c___LDADD): New variable.
51 * doc/glibc-functions/openpty.texi: More supported platforms.
53 2010-03-21 Bruno Haible <bruno@clisp.org>
56 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
58 * doc/posix-functions/setenv.texi: Update platforms list.
60 2010-03-21 Bruno Haible <bruno@clisp.org>
62 New module 'unlockpt'.
63 * lib/unlockpt.c: New file, from glibc with modifications.
64 * m4/unlockpt.m4: New file.
65 * modules/unlockpt: New file.
66 * lib/stdlib.in.h (unlockpt): New declaration.
67 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
68 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
69 * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
71 * doc/posix-functions/unlockpt.texi: Mention the new module.
72 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
73 * config/srclist.txt: Add unlockpt.c (commented).
75 2010-03-21 Jim Meyering <meyering@redhat.com>
77 maint.mk: prohibit inclusion of "intprops.h" without use
78 * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
80 2010-03-21 Bruno Haible <bruno@clisp.org>
83 * lib/grantpt.c: New file, from glibc with modifications.
84 * m4/grantpt.m4: New file.
85 * modules/grantpt: New file.
86 * lib/stdlib.in.h (grantpt): New declaration.
87 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
88 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
89 * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
91 * doc/posix-functions/grantpt.texi: Mention the new module.
92 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
93 * config/srclist.txt: Add grantpt.c (commented).
95 2010-03-21 Bruno Haible <bruno@clisp.org>
97 New module 'pt_chown'.
98 * lib/pt_chown.c: New file, from glibc with modifications.
99 * lib/pty-private.h: New file, from glibc with modifications.
100 * modules/pt_chown: New file.
101 * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
103 2010-03-21 Bruno Haible <bruno@clisp.org>
105 Tests for module 'ptsname'.
106 * modules/ptsname-tests: New file.
107 * tests/test-ptsname.c: New file.
109 New module 'ptsname'.
110 * lib/ptsname.c: New file, from glibc with modifications.
111 * m4/ptsname.m4: New file.
112 * modules/ptsname: New file.
113 * lib/stdlib.in.h (ptsname): New declaration.
114 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
115 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
116 * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
118 * doc/posix-functions/ptsname.texi: Mention the new module.
119 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
120 * config/srclist.txt: Add ptsname.c (commented).
122 2010-03-21 Bruno Haible <bruno@clisp.org>
124 Tests for module 'ttyname_r'.
125 * modules/ttyname_r-tests: New file.
126 * tests/test-ttyname_r.c: New file.
128 New module 'ttyname_r'.
129 * lib/ttyname_r.c: New file.
130 * m4/ttyname_r.m4: New file.
131 * modules/ttyname_r: New file.
132 * lib/unistd.in.h (ttyname_r): New declaration.
133 * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
134 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
135 * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
137 * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
138 * doc/posix-functions/ttyname_r.texi: Mention the new module.
140 2010-03-20 Bruno Haible <bruno@clisp.org>
142 signal: Undefine macro definitions in C++ mode.
143 * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
144 sigfillset): Undefine macro definitions from the system header in C++
146 Reported by John W. Eaton <jwe@gnu.org>.
148 2010-03-20 Bruno Haible <bruno@clisp.org>
150 Ensure no #include statements inside extern "C" { ... }.
151 * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
152 contain #include statements.
153 * lib/time.in.h: Likewise.
155 2010-03-20 Bruno Haible <bruno@clisp.org>
157 Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
158 * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
159 (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
160 Reported by John W. Eaton <jwe@gnu.org>.
162 2010-03-20 Bruno Haible <bruno@clisp.org>
164 * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
165 Reported by Jim Meyering.
167 2010-03-20 Bruno Haible <bruno@clisp.org>
169 pipe: Set errno upon failure.
170 * lib/pipe.h: Specify that when -1 is returned, errno is set.
171 * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
172 errno value in error message.
174 2010-03-20 Bruno Haible <bruno@clisp.org>
175 Jim Meyering <meyering@redhat.com>
177 lchown: Avoid "unused variable" warning.
178 * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
180 2010-03-20 Bruno Haible <bruno@clisp.org>
182 Work around unlink() bug on MacOS X 10.5.6.
183 * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
184 attempting to unlink a parent directory.
185 * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
186 MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
187 activate for the replacement function.
188 * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
190 2010-03-20 Bruno Haible <bruno@clisp.org>
192 Fix link errors on Solaris 8.
193 * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
194 * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
196 2010-03-19 Jim Meyering <meyering@redhat.com>
198 regcomp.c: make non-_LIBC implementation of build_range_exp consistent
199 The _LIBC implementation of build_range_exp correctly honors the
200 RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
201 However, the non-_LIBC implementation would ignore that syntax-bit
202 flag and return REG_ERANGE unconditionally.
203 This change makes it honor that flag.
204 * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
205 Make two pointer parameters "const".
206 Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
207 (parse_bracket_exp): Update caller.
209 regex.m4: correct the reversed range endpoint ([b-a]) test
210 * m4/regex.m4: When requiring that [b-a] evoke failure,
211 use RE_NO_EMPTY_RANGES. This makes this entire configure-time
212 test pass once again for x86-based systems.
214 2010-03-19 Bruno Haible <bruno@clisp.org>
216 scandir: Fix link error on Solaris 8.
217 * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
220 2010-03-19 Bruno Haible <bruno@clisp.org>
222 getusershell: Fix documentation.
223 * doc/glibc-functions/endusershell.texi: Refer to the getusershell
225 * doc/glibc-functions/setusershell.texi: Likewise.
227 getusershell: Provide declaration, missing on Solaris 9.
228 * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
229 also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
230 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
231 check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
232 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
233 HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
234 * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
236 * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
238 2010-03-19 Bruno Haible <bruno@clisp.org>
240 wctype: Provide iswblank function.
241 * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
243 * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
244 * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
245 * tests/test-wctype.c (main): Re-enable the iswblank tests.
246 * doc/posix-functions/iswblank.texi: Update.
248 2010-03-19 Bruno Haible <bruno@clisp.org>
250 Tests of module 'pty' in C++ mode.
251 * modules/pty-tests: New file.
252 * tests/test-pty-c++.cc: New file.
253 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
255 2010-03-19 Eric Blake <eblake@redhat.com>
257 logb: fix documentation
258 * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
261 forkpty, openpty: prefer glibc's const-safe prototype
262 * lib/forkpty.c (rpl_forkpty): New file.
263 * lib/openpty.c (rpl_openpty): Likewise.
264 * modules/forkpty (Files): Distribute it.
265 * modules/openpty (Files): Likewise.
266 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. Move decl
268 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here. Request
269 replacement for for non-const BSD signature.
270 * modules/pty (Makefile.am): Substitute witnesses.
271 * lib/pty.in.h (forkpty, openpty): Declare replacements.
272 * tests/test-forkpty.c: Update signature check.
273 * tests/test-openpty.c: Likewise.
274 * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
275 * doc/glibc-functions/openpty.texi (openpty): Likewise.
277 forkpty, openpty: split functions into new modules
278 * modules/pty (Makefile.am): Substitute new witnesses.
279 (Libraries): Move library detection...
280 * modules/forkpty: ...into new module.
281 * modules/openpty: Another new module.
282 * modules/pty-tests: Rename and split...
283 * modules/forkpty-tests: ...to this...
284 * modules/openpty-tests: ...and this.
285 * tests/test-pty.c: Rename and split...
286 * tests/test-forkpty.c: ...to this...
287 * tests/test-openpty.c: ...and this.
288 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
289 (gl_PTY): Split library searching...
290 * m4/pty.m4 (gl_PTY_LIB): ...into new file.
291 (gl_FORKPTY, gl_OPENPTY): New macros.
292 * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
293 * NEWS: Mention the split.
294 * MODULES.html.sh (Misc): Document the modules.
295 * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
296 * doc/glibc-functions/openpty.texi (openpty): Likewise.
298 pty: improve replacement header
299 * lib/pty.in.h: New file.
300 * modules/pty (Files): Ship it.
301 (Makefile.am): Always build replacement.
302 * m4/pty.m4: Rename...
303 * m4/pty_h.m4: ...to this.
304 (gl_PTY): Modernize setting of witness macros; update check of
305 forkpty to take proper advantage of cache.
306 (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
308 getopt: avoid compiler warning
309 * lib/getopt.c (attribute_hidden): Remove unused macro.
311 2010-03-18 Bruno Haible <bruno@clisp.org>
313 Fix link errors on Solaris 8.
314 * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
315 * modules/search-tests (test_search_c___LDADD): Likewise.
316 * modules/signal-tests (test_signal_c___LDADD): Likewise.
317 * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
318 * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
319 * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
320 * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
321 * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
322 * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
324 2010-03-18 Bruno Haible <bruno@clisp.org>
326 Fix bug introduced on 2010-03-14.
327 * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
328 (gl_SPAWN_H): Require it.
329 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
330 Reported by Simon Josefsson.
332 2010-03-18 Bruno Haible <bruno@clisp.org>
334 Fix typo introduced on 2009-12-31.
335 * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
336 posix_spawn_file_actions_adddup2.
338 2010-03-17 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
339 and Eric Blake <eblake@redhat.com>
341 test-vc-list-files-git: make more robust
342 * tests/test-vc-list-files-git.sh: Unset problematic environment
343 variables. Chain commands together.
345 2010-03-17 Ludovic Courtès <ludo@gnu.org> (tiny change)
347 * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
348 `AC_CHECK_DECL' invocation.
350 2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua>
352 * lib/inttostr.c (inttostr): Make sure the invocation of verify
353 appears before executable statements. Suggested by Petr Sumbera
354 <Petr.Sumbera@Sun.COM>.
356 2010-03-14 Bruno Haible <bruno@clisp.org>
358 * tests/test-flock.c (test_exclusive): Comment out a test that causes
359 portability problems. Instead use a simpler test.
360 (main): Check that invalid arguments are rejected only on Linux.
362 2010-03-14 Bruno Haible <bruno@clisp.org>
364 Fix bug introduced on 2009-12-31.
365 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
366 gl_PREREQ_SYS_H_WINSOCK2 always.
367 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
368 SYS_SOCKET_H variable.
369 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
371 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
372 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
373 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
374 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
375 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
377 2010-03-14 Bruno Haible <bruno@clisp.org>
379 Fix values returned by sinl, cosl.
380 * lib/trigl.h: Add specification comments.
381 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
382 that combines the values from the precomputed table with the values of
383 the Chebyshev polynomials.
385 2010-03-14 Bruno Haible <bruno@clisp.org>
387 Fix compilation error when modules 'posix_spawn[p]' are not used.
388 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
389 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
391 2010-03-14 Bruno Haible <bruno@clisp.org>
393 Fix compilation error on mingw when module 'time_r' is not used.
394 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
396 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
397 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
398 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
399 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
401 2010-03-14 Bruno Haible <bruno@clisp.org>
403 Fix compilation error with Sun C.
404 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
405 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
406 instead of GCC specific ULONG_LONG_MAX.
407 * lib/xstrtoll.c: Likewise.
408 * lib/xstrtoull.c: Likewise.
410 2010-03-13 Bruno Haible <bruno@clisp.org>
412 Allow the user to disable C++ code and tests.
413 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
414 (gl_PROG_ANSI_CXX): Require it.
416 2010-03-13 Bruno Haible <bruno@clisp.org>
418 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
421 2010-03-13 Bruno Haible <bruno@clisp.org>
423 Test that gnulib does not break the standard C++ headers.
424 * tests/test-locale-c++2.cc: New file.
425 * modules/locale-tests (Files): Add it.
426 (Makefile.am): Compile it for test-locale-c++.
427 * tests/test-math-c++2.cc: New file.
428 * modules/math-tests (Files): Add it.
429 (Makefile.am): Compile it for test-math-c++.
430 * tests/test-signal-c++2.cc: New file.
431 * modules/signal-tests (Files): Add it.
432 (Makefile.am): Compile it for test-signal-c++.
433 * tests/test-stdio-c++2.cc: New file.
434 * modules/stdio-tests (Files): Add it.
435 (Makefile.am): Compile it for test-stdio-c++.
436 * tests/test-stdlib-c++2.cc: New file.
437 * modules/stdlib-tests (Files): Add it.
438 (Makefile.am): Compile it for test-stdlib-c++.
439 * tests/test-string-c++2.cc: New file.
440 * modules/string-tests (Files): Add it.
441 (Makefile.am): Compile it for test-string-c++.
442 * tests/test-time-c++2.cc: New file.
443 * modules/time-tests (Files): Add it.
444 (Makefile.am): Compile it for test-time-c++.
445 Reported by John W. Eaton <jwe@gnu.org>.
447 2010-03-13 Bruno Haible <bruno@clisp.org>
449 * gnulib-tool (func_usage): Clarify which options are available for
450 --create-testdir and --create-megatestdir.
452 2010-03-13 Bruno Haible <bruno@clisp.org>
454 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
455 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
456 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
457 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
458 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
460 Reported by Jim Meyering.
462 2010-03-12 Simon Josefsson <simon@josefsson.org>
464 * gnulib-tool (func_import): Explain origin of code.
466 2010-03-12 Bruno Haible <bruno@clisp.org>
468 Fix problem with automake's definition of CXXLINK.
469 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
470 Reported by Simon Josefsson and Ludovic Courtès.
472 2010-03-12 Bruno Haible <bruno@clisp.org>
474 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
477 2010-03-11 Bruno Haible <bruno@clisp.org>
479 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
480 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
481 whether the system provides one variant or multiple variants of the
483 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
485 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
486 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
487 Reported by Jim Meyering.
489 2010-03-09 Simon Josefsson <simon@josefsson.org>
491 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
493 2010-03-08 Bruno Haible <bruno@clisp.org>
495 gnulib-tool: Add support for --libtool in --create-testdir.
496 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
497 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
499 2010-03-08 Eric Blake <eblake@redhat.com>
501 gnulib-tool.texi: mention possibility of git submodule
502 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
504 * doc/.gitignore: Ignore another generated file.
506 2010-03-08 Karl Berry <karl@gnu.org>
508 * doc/gnulib-tool.texi (VCS Issues): Mention third option
509 of committing gnulib files while skipping others.
511 2010-03-07 Bruno Haible <bruno@clisp.org>
513 Tests of module 'wctype' in C++ mode.
514 * tests/test-wctype-c++.cc: New file.
515 * modules/wctype-tests (Files): Add it and tests/signature.h.
516 (Depends-on): Add ansi-c++-opt.
517 (Makefile.am): Arrange to compile and run test-wctype-c++.
519 Tests of module 'wchar' in C++ mode.
520 * tests/test-wchar-c++.cc: New file.
521 * modules/wchar-tests (Files): Add it and tests/signature.h.
522 (Depends-on): Add ansi-c++-opt.
523 (Makefile.am): Arrange to compile and run test-wchar-c++.
524 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
527 Tests of module 'unistd' in C++ mode.
528 * tests/test-unistd-c++.cc: New file.
529 * modules/unistd-tests (Files): Add it and tests/signature.h.
530 (Depends-on): Add ansi-c++-opt.
531 (Makefile.am): Arrange to compile and run test-unistd-c++.
532 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
535 Tests of module 'time' in C++ mode.
536 * tests/test-time-c++.cc: New file.
537 * modules/time-tests (Files): Add it and tests/signature.h.
538 (Depends-on): Add ansi-c++-opt.
539 (Makefile.am): Arrange to compile and run test-time-c++.
540 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
542 Tests of module 'sys_time' in C++ mode.
543 * tests/test-sys_time-c++.cc: New file.
544 * modules/sys_time-tests (Files): Add it and tests/signature.h.
545 (Depends-on): Add ansi-c++-opt.
546 (Makefile.am): Arrange to compile and run test-sys_time-c++.
547 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
550 Tests of module 'sys_stat' in C++ mode.
551 * tests/test-sys_stat-c++.cc: New file.
552 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
553 (Depends-on): Add ansi-c++-opt.
554 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
555 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
558 Tests of module 'sys_socket' in C++ mode.
559 * tests/test-sys_socket-c++.cc: New file.
560 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
561 (Depends-on): Add ansi-c++-opt.
562 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
563 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
566 Tests of module 'sys_select' in C++ mode.
567 * tests/test-sys_select-c++.cc: New file.
568 * modules/sys_select-tests (Files): Add it and tests/signature.h.
569 (Depends-on): Add ansi-c++-opt.
570 (Makefile.am): Arrange to compile and run test-sys_select-c++.
571 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
574 Tests of module 'sys_ioctl' in C++ mode.
575 * tests/test-sys_ioctl-c++.cc: New file.
576 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
577 (Depends-on): Add ansi-c++-opt.
578 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
579 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
582 Tests of module 'string' in C++ mode.
583 * tests/test-string-c++.cc: New file.
584 * modules/string-tests (Files): Add it and tests/signature.h.
585 (Depends-on): Add ansi-c++-opt.
586 (Makefile.am): Arrange to compile and run test-string-c++.
587 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
590 Tests of module 'stdlib' in C++ mode.
591 * tests/test-stdlib-c++.cc: New file.
592 * modules/stdlib-tests (Files): Add it and tests/signature.h.
593 (Depends-on): Add ansi-c++-opt.
594 (Makefile.am): Arrange to compile and run test-stdlib-c++.
595 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
598 Tests of module 'stdio' in C++ mode.
599 * tests/test-stdio-c++.cc: New file.
600 * modules/stdio-tests (Files): Add it and tests/signature.h.
601 (Depends-on): Add ansi-c++-opt.
602 (Makefile.am): Arrange to compile and run test-stdio-c++.
603 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
606 Tests of module 'spawn' in C++ mode.
607 * tests/test-spawn-c++.cc: New file.
608 * modules/spawn-tests (Files): Add it and tests/signature.h.
609 (Depends-on): Add ansi-c++-opt.
610 (Makefile.am): Arrange to compile and run test-spawn-c++.
611 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
614 Tests of module 'signal' in C++ mode.
615 * tests/test-signal-c++.cc: New file.
616 * modules/signal-tests (Files): Add it and tests/signature.h.
617 (Depends-on): Add ansi-c++-opt.
618 (Makefile.am): Arrange to compile and run test-signal-c++.
619 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
622 Tests of module 'search' in C++ mode.
623 * tests/test-search-c++.cc: New file.
624 * modules/search-tests (Files): Add it and tests/signature.h.
625 (Depends-on): Add ansi-c++-opt.
626 (Makefile.am): Arrange to compile and run test-search-c++.
627 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
630 Tests of module 'math' in C++ mode.
631 * tests/test-math-c++.cc: New file.
632 * modules/math-tests (Files): Add it and tests/signature.h.
633 (Depends-on): Add ansi-c++-opt.
634 (Makefile.am): Arrange to compile and run test-math-c++.
635 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
637 Tests of module 'locale' in C++ mode.
638 * tests/test-locale-c++.cc: New file.
639 * modules/locale-tests (Files): Add it and tests/signature.h.
640 (Depends-on): Add ansi-c++-opt.
641 (Makefile.am): Arrange to compile and run test-locale-c++.
642 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
645 Tests of module 'langinfo' in C++ mode.
646 * tests/test-langinfo-c++.cc: New file.
647 * modules/langinfo-tests (Files): Add it and tests/signature.h.
648 (Depends-on): Add ansi-c++-opt.
649 (Makefile.am): Arrange to compile and run test-langinfo-c++.
650 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
653 Tests of module 'iconv-h' in C++ mode.
654 * tests/test-iconv-h-c++.cc: New file.
655 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
656 (Depends-on): Add ansi-c++-opt.
657 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
659 Tests of module 'glob' in C++ mode.
660 * tests/test-glob-c++.cc: New file.
661 * modules/glob-tests (Files): Add it.
662 (Depends-on): Add ansi-c++-opt.
663 (Makefile.am): Arrange to compile and run test-glob-c++.
665 Tests of module 'fcntl-h' in C++ mode.
666 * tests/test-fcntl-h-c++.cc: New file.
667 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
668 (Depends-on): Add ansi-c++-opt.
669 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
670 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
673 Tests of module 'dirent' in C++ mode.
674 * tests/test-dirent-c++.cc: New file.
675 * modules/dirent-tests (Files): Add it and tests/signature.h.
676 (Depends-on): Add ansi-c++-opt.
677 (Makefile.am): Arrange to compile and run test-dirent-c++.
678 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
681 New module 'ansi-c++-opt'.
682 * modules/ansi-c++-opt: New file.
683 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
685 Document C++ namespace mode.
686 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
688 wctype: Avoid #define replacements in C++ mode.
689 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
690 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
691 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
692 In C++, define a namespaced alias symbol.
693 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
694 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
695 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
698 wchar: Avoid #define replacements in C++ mode.
699 * lib/wchar.in.h: Include c++defs.h.
700 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
701 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
703 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
704 * modules/wchar (Depends-on): Add c++defs.
705 (Makefile.am): Update wchar.h rule.
707 unistd: Avoid #define replacements in C++ mode.
708 * lib/unistd.in.h: Include c++defs.h.
709 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
710 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
711 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
712 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
713 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
714 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
717 * modules/unistd (Depends-on): Add c++defs.
718 (Makefile.am): Update unistd.h rule.
720 time: Avoid #define replacements in C++ mode.
721 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
722 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
723 define a namespaced alias symbol.
724 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
725 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
726 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
727 * modules/time (Depends-on): Add c++defs, warn-on-use.
728 (Makefile.am): Update time.h rule.
729 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
730 * modules/nanosleep (configure.ac): Likewise.
731 * modules/strptime (configure.ac): Likewise.
732 * modules/timegm (configure.ac): Likewise.
734 sys_time: Avoid #define replacements in C++ mode.
735 * lib/sys_time.in.h: Include c++defs.h.
736 (gettimeofday): In C++, define a namespaced alias symbol.
737 * modules/sys_time (Depends-on): Add c++defs.
738 (Makefile.am): Update sys/time.h rule.
740 sys_stat: Avoid #define replacements in C++ mode.
741 * lib/sys_stat.in.h: Include c++defs.h.
742 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
743 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
744 namespaced alias symbol.
745 In C++, define a namespaced alias symbol.
746 * modules/sys_stat (Depends-on): Add c++defs.
747 (Makefile.am): Update sys/stat.h rule.
749 sys_socket: Avoid #define replacements in C++ mode.
750 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
751 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
752 definitions also when the system has a <sys/socket.h>.
753 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
754 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
755 In C++, define a namespaced alias symbol.
756 * modules/sys_socket (Depends-on): Add c++defs.
757 (Makefile.am): Update sys/socket.h rule.
759 sys_select: Avoid #define replacements in C++ mode.
760 * lib/sys_select.in.h: Include c++defs.h. Enable the function
761 definitions also when the system has a <sys/select.h>.
762 (select): In C++, define a namespaced alias symbol.
763 * modules/sys_select (Depends-on): Add c++defs.
764 (Makefile.am): Update sys/select.h rule.
766 sys_ioctl: Avoid #define replacements in C++ mode.
767 * lib/sys_ioctl.in.h: Include c++defs.h.
768 (ioctl): In C++, define a namespaced alias symbol.
769 * modules/sys_ioctl (Depends-on): Add c++defs.
770 (Makefile.am): Update sys/ioctl.h rule.
772 string: Avoid #define replacements in C++ mode.
773 * lib/string.in.h: Include c++defs.h.
774 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
775 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
776 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
777 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
778 strsignal, strverscmp): In C++, define a namespaced alias symbol.
779 * modules/string (Depends-on): Add c++defs.
780 (Makefile.am): Update string.h rule.
782 stdlib: Avoid #define replacements in C++ mode.
783 * lib/stdlib.in.h: Include c++defs.h.
784 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
785 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
786 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
787 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
789 * modules/stdlib (Depends-on): Add c++defs.
790 (Makefile.am): Update stdlib.h rule.
792 stdio: Avoid #define replacements in C++ mode.
793 * lib/stdio.in.h: Include c++defs.h.
794 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
795 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
796 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
797 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
798 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
799 namespaced alias symbol.
800 * modules/stdio (Depends-on): Add c++defs.
801 (Makefile.am): Update stdio.h rule.
803 spawn: Avoid #define replacements in C++ mode.
804 * lib/spawn.in.h: Include c++defs.h.
805 (posix_spawn, posix_spawnp, posix_spawnattr_init,
806 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
807 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
808 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
809 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
810 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
811 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
812 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
813 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
814 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
815 In C++, define a namespaced alias symbol.
816 * modules/spawn (Depends-on): Add c++defs.
817 (Makefile.am): Update spawn.h rule.
819 signal: Avoid #define replacements in C++ mode.
820 * lib/signal.in.h: Include c++defs.h.
821 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
822 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
823 namespaced alias symbol.
824 * modules/signal (Depends-on): Add c++defs.
825 (Makefile.am): Update signal.h rule.
827 search: Avoid #define replacements in C++ mode.
828 * lib/search.in.h: Include c++defs.h.
829 (_gl_search_compar_fn, _gl_search_action_fn): New types.
830 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
832 * modules/search (Depends-on): Add c++defs.
833 (Makefile.am): Update search.h rule.
835 math: Avoid #define replacements in C++ mode.
836 * lib/math.in.h: Include c++defs.h.
837 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
838 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
839 trunc, truncl): In C++, define a namespaced alias symbol.
840 * modules/math (Depends-on): Add c++defs.
841 (Makefile.am): Update math.h rule.
843 locale: Avoid #define replacements in C++ mode.
844 * lib/locale.in.h: Include c++defs.h.
845 (duplocale): In C++, define a namespaced alias symbol.
846 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
847 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
848 * modules/locale (Depends-on): Add c++defs.
849 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
851 langinfo: Avoid #define replacements in C++ mode.
852 * lib/langinfo.in.h: Include c++defs.h.
853 (nl_langinfo): In C++, define a namespaced alias symbol.
854 * modules/langinfo (Depends-on): Add c++defs.
855 (Makefile.am): Update langinfo.h rule.
857 iconv-h: Avoid #define replacements in C++ mode.
858 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
859 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
861 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
862 whenever iconv is present.
863 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
864 (Makefile.am): Update iconv.h rule.
866 glob: Avoid #define replacements in C++ mode.
867 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
868 (_gl_glob_errfunc_fn): New type.
869 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
871 * modules/glob (Depends-on): Add c++defs, warn-on-use.
872 (Makefile.am): Update glob.h rule.
874 fcntl-h: Avoid #define replacements in C++ mode.
875 * lib/fcntl.in.h: Include c++defs.h.
876 (fcntl, open, openat): In C++, define a namespaced alias symbol.
877 * modules/fcntl-h (Depends-on): Add c++defs.
878 (Makefile.am): Update fcntl.h rule.
880 dirent: Avoid #define replacements in C++ mode.
881 * lib/dirent.in.h: Include c++defs.h.
882 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
883 namespaced alias symbol.
884 (dirfd): Update declaration.
885 * modules/dirent (Depends-on): Add c++defs.
886 (Makefile.am): Update dirent.h rule.
888 ctype: Make it usable in C++ code.
889 * lib/ctype.in.h: Include c++defs.h.
890 (isblank): Declare as extern "C".
891 * modules/ctype (Depends-on): Add c++defs.
892 (Makefile.am): Update ctype.h rule.
894 New module 'c++defs'.
895 * modules/c++defs: New file.
896 * build-aux/c++defs.h: New file.
897 Reported by John W. Eaton <jwe@gnu.org>.
899 2010-03-07 Bruno Haible <bruno@clisp.org>
901 logb: Provide missing declaration for Cygwin.
902 * lib/math.in.h (logb): New declaration.
903 * m4/logb.m4: New file.
904 * modules/logb (Files): Add m4/logb.m4.
905 (Depends-on): Add math.
906 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
907 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
908 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
909 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
910 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
912 2010-03-07 Bruno Haible <bruno@clisp.org>
914 Fix test-cond link error.
915 * tests/test-cond.c: Include <stdio.h>.
917 2010-03-07 Bruno Haible <bruno@clisp.org>
919 Fix test-dirent-safer link error.
920 * modules/dirent-safer-tests (Makefile.am): Define
921 test_dirent_safer_LDADD.
923 2010-03-07 Bruno Haible <bruno@clisp.org>
925 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
926 among default module list.
928 2010-03-07 Bruno Haible <bruno@clisp.org>
930 Fix link error on platforms with GNU libiconv.
931 * modules/unistr/u8-strcoll-tests (Makefile): Define
932 test_u8_strcoll_LDADD.
933 * modules/unistr/u16-strcoll-tests (Makefile): Define
934 test_u16_strcoll_LDADD.
935 * modules/unistr/u32-strcoll-tests (Makefile): Define
936 test_u32_strcoll_LDADD.
938 2010-03-07 Bruno Haible <bruno@clisp.org>
940 Use POSIX declarations for socket functions.
941 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
942 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
943 rpl_sendto): Change declaration to match POSIX.
944 * lib/connect.c (rpl_connect): Likewise.
945 * lib/accept.c (rpl_accept): Likewise.
946 * lib/bind.c (rpl_bind): Likewise.
947 * lib/getpeername.c (rpl_getpeername): Likewise.
948 * lib/getsockname.c (rpl_getsockname): Likewise.
949 * lib/recv.c (rpl_recv): Likewise.
950 * lib/send.c (rpl_send): Likewise.
951 * lib/recvfrom.c (rpl_recvfrom): Likewise.
952 * lib/sendto.c (rpl_sendto): Likewise.
954 2010-03-06 Bruno Haible <bruno@clisp.org>
956 Clarify access, euidaccess, faccessat.
957 * doc/posix-functions/faccessat.texi: Mention security problem under
958 "Other problems", not "Portability problems".
959 * doc/posix-functions/access.texi: Likewise. Mention a related security
961 * doc/glibc-functions/euidaccess.texi: Mention security problems.
962 * lib/euidaccess.c: Add comments about platforms.
963 * lib/unistd.in.h (access, euidaccess): Add warnings.
965 2010-03-07 Bruno Haible <bruno@clisp.org>
967 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
968 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
969 (POSIX_SPAWN_SETSCHEDULER): Likewise.
970 (POSIX_SPAWN_USEVFORK): Define in a way that works when
971 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
972 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
973 declare when POSIX_SPAWN_SETSCHEDULER is zero.
974 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
975 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
976 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
977 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
978 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
979 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
980 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
981 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
982 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
983 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
984 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
985 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
986 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
988 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
989 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
990 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
992 * tests/test-spawn.c (main): Make it work when
993 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
995 2010-03-07 Bruno Haible <bruno@clisp.org>
997 Fix incorrect Makefile.am generation in German locale.
998 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
999 Execute sed command with character range in C locale.
1001 2010-03-06 Bruno Haible <bruno@clisp.org>
1003 Tests for module 'iconv-h'.
1004 * modules/iconv-h-tests: New file.
1005 * tests/test-iconv-h.c: New file.
1007 New module 'iconv-h'.
1008 * modules/iconv-h: New file.
1009 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1010 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1011 (configure.ac): Remove gl_ICONV_H.
1012 (Makefile.am): Remove rule for iconv.h.
1014 2010-03-06 Bruno Haible <bruno@clisp.org>
1016 More consistent naming of *.m4 files.
1017 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1018 * modules/wctype (Files): Update.
1020 More consistent naming of *.m4 files.
1021 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1022 * modules/wchar (Files): Update.
1024 2010-03-06 Jim Meyering <meyering@redhat.com>
1026 euidaccess: relax license to LGPLv2+
1027 * modules/euidaccess (License): Relax to LGPLv2+.
1029 2010-03-06 Bruno Haible <bruno@clisp.org>
1031 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1032 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1033 (Makefile.am): Augment lib_SOURCES instead.
1035 2010-03-04 Jim Meyering <meyering@redhat.com>
1037 utime: remove obsolete module
1038 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1039 unnecessary for years, and has been marked as obsolete for 10 months.
1040 * modules/utime: Remove file.
1041 * lib/utime.c: Remove file.
1042 * m4/utime.m4: Remove file.
1043 * m4/utimes-null.m4: Remove file.
1044 * doc/posix-functions/utime.texi (utime): Remove reference to
1045 the module. Move the sole "fixed by gnulib" item into the
1046 "problems not fixed by Gnulib" list.
1047 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1049 2010-03-05 Simon Josefsson <simon@josefsson.org>
1051 * modules/exit (License): Relax license to LGPLv2+.
1052 (Status): Mark as obsolete.
1053 * NEWS: Mention deprecated 'exit' module.
1054 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1055 of now obsolete 'exit'.
1057 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1059 fts-lgpl: remove unused module
1060 * modules/fts-lgpl: Remove.
1061 * MODULES.html.sh (func_all_modules): Adjust.
1062 * check-module (find_included_lib_files): Adjust.
1063 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1065 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
1067 copy-acl: enhance Solaris ACL error handling
1068 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1069 * lib/set-mode-acl.c (qset_acl): Likewise.
1071 2010-03-02 Bruno Haible <bruno@clisp.org>
1073 spawn: Don't override the system defined values on FreeBSD 8.
1074 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1075 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1076 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1077 if HAVE_POSIX_SPAWN is 1.
1078 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1080 2010-03-01 Bruno Haible <bruno@clisp.org>
1082 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1085 2010-02-25 Bruno Haible <bruno@clisp.org>
1087 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1088 * gnulib-tool: Define 'echo' as a function only before the ksh alias
1089 setting, not afterwards.
1090 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1092 2010-02-24 Eric Blake <eblake@redhat.com>
1094 bootstrap, git-version-gen: use timestamp
1095 * build-aux/git-version-gen (scriptversion): Force UTC.
1096 * build-aux/bootstrap (scriptversion): New variable.
1098 bootstrap: allow older git
1099 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1100 older than 1.6.4. Requested by the libvirt project.
1102 2010-02-23 Eric Blake <eblake@redhat.com>
1104 warn-on-use: work with old autoconf
1105 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1106 AS_VAR semantics of autoconf 2.60.
1107 Reported by Bruno Haible.
1109 bootstrap: improve some comments
1110 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
1111 clarification comments.
1113 gettimeofday: provide correct function
1114 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1115 when replacement is declared, otherwise provide gettimeofday.
1116 Reported by Michael Goffioul.
1118 2010-02-23 Jim Meyering <meyering@redhat.com>
1120 lib-ignore: relax license to "unlimited", not LGPLv2+
1121 * modules/lib-ignore (License): Relax to "unlimited".
1123 2010-02-23 Jim Meyering <meyering@redhat.com>
1125 lib-ignore: relax license to LGPLv2+
1126 * modules/lib-ignore (License): Relax to LGPLv2+.
1128 2010-02-22 Eric Blake <eblake@redhat.com>
1130 lseek: avoid bash 3.2 broken pipe bug
1131 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1132 warning from bash 3.2.
1133 Reported by Ben Pfaff, with analysis from Bruno Haible.
1135 bootstrap: support non-FSF copyright holder
1136 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1137 bootstrap.conf override of COPYRIGHT_HOLDER.
1138 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1140 bootstrap: interoperate with gettext 0.14.1
1141 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1143 bootstrap: allow for alternate submodule location
1144 * build-aux/bootstrap (gnulib_path): New variable; use instead of
1145 hardcoding submodule location.
1146 (gnulib_mk): Allow direct use of Makefile.am.
1148 bootstrap: use GNULIB_SRCDIR to reduce disk usage
1149 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1150 rather than reconfiguring where the submodule points.
1152 gettimeofday: restore support for platforms that lack function
1153 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1154 replacement if function is missing.
1155 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1156 * modules/sys_time (Makefile.am): Substitute it.
1157 * lib/sys_time.in.h (gettimeofday): Check it.
1158 Reported by Michael Goffioul.
1160 2010-02-21 Bruno Haible <bruno@clisp.org>
1162 * lib/stdio.in.h (obstack_printf): Fix typo.
1164 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
1166 vc-list-files: use bzr ls's -R option
1167 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1168 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1170 2010-02-21 Jim Meyering <meyering@redhat.com>
1172 init.sh: fix EXEEXT shims to work also for names like test-prog
1173 * tests/init.sh: Re-exec a better shell, when needed.
1174 If the current shell lacks support for posix $(...), an init.sh-using
1175 test will now try to find a shell that supports that. If EXEEXT is
1176 nonempty, we also require support for hyphen-in-alias-name and shell
1177 substitutions like ${var#glob}. Failure to find such a shell results
1180 2010-02-21 Bruno Haible <bruno@clisp.org>
1182 Really work around around "broken pipe" error message from bash 3.2.
1183 * gnulib-tool (func_reset_sigpipe): Remove function.
1184 (echo): In bash 3.2, define to a function that uses printf.
1185 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1187 2010-02-20 Bruno Haible <bruno@clisp.org>
1189 Restore support for automake 1.9.6 with autoconf 2.61.
1190 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1191 Reported by James Youngman <jay@gnu.org>.
1193 2010-02-20 Bruno Haible <bruno@clisp.org>
1195 Improve *printf warning condition.
1196 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1197 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1198 and the function is overridden due to SIGPIPE emulation.
1200 2010-02-20 Bruno Haible <bruno@clisp.org>
1202 * lib/stdio.in.h: Tweak comments.
1204 2010-02-19 Bruno Haible <bruno@clisp.org>
1206 Make it easier to find modules. New gnulib-tool option '--find'.
1207 * gnulib-tool: New option --find.
1208 (func_usage): Document it.
1209 (func_sanitize_modulelist): New function, extracted from
1211 (func_all_modules): Invoke it.
1212 * doc/gnulib-tool.texi (Which modules?): New node.
1214 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
1216 * lib/sys_select.in.h: Provide select replacement even if
1217 sys/select.h exists on a system, for Interix.
1219 2010-02-18 Jim Meyering <meyering@redhat.com>
1221 init.sh: don't use $(...) just yet
1222 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1223 to accommodate e.g., Solaris' /bin/sh.
1225 2010-02-17 Bruno Haible <bruno@clisp.org>
1227 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1228 Reported by Ludovic Courtès <ludo@gnu.org>.
1230 2010-02-16 Simon Josefsson <simon@josefsson.org>
1232 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1233 linking with -lintl.
1235 2010-02-17 Simon Josefsson <simon@josefsson.org>
1237 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1238 if not provided by the system's netdb.h. Reported by
1239 ludo@gnu.org (Ludovic Courtès).
1241 2010-02-15 Jim Meyering <meyering@redhat.com>
1243 init.sh: improve portability and efficiency
1244 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1245 "dummy" in a for loop.
1246 Use '!', not '^' to select the complement of a character set used
1247 in a "case" statement.
1248 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1249 Suggestions from Eric Blake.
1251 init.sh: automatically accommodate programs with the .exe suffix
1252 Automatically arrange for an invocation of "prog" to execute the
1253 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
1254 may use the simpler "prog", yet still work when built on a system
1255 that requires specifying the added suffix.
1256 Do this by constructing a function named "prog" that invokes
1257 "prog.exe" for each .exe file in selected directories.
1258 * tests/init.sh (find_exe_basenames_): New function.
1259 (create_exe_shim_functions_): New function.
1260 (path_prepend_): Use it.
1262 maint.mk: mark syntax-check sc_*.m rules as .PHONY
1263 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1264 "make -t syntax-check" doesn't create a ton of sc_*.m files.
1266 2010-02-14 Jim Meyering <meyering@redhat.com>
1268 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1269 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1270 (sc_prohibit_hash_pjw_without_use): New rule.
1272 maint.mk: allow the default upload destination dir to be overridden
1273 * top/maint.mk (upload_dest_dir_): Define with a default that
1274 preserves the status quo.
1275 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1276 Reported by Peter Simons.
1278 maint.mk: prohibit inclusion of "hash.h" without_use
1279 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1281 2010-02-10 Jim Meyering <meyering@redhat.com>
1283 maint.mk: prohibit inclusion of "ignore-value.h" without_use
1284 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1286 2010-02-09 Eric Blake <ebb9@byu.net>
1287 and Bruno Haible <bruno@clisp.org>
1289 obstack-printf-posix: ensure declaration
1290 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1291 extracted from gl_FUNC_OBSTACK_PRINTF.
1292 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1293 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1295 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1296 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1299 2010-02-08 Bruno Haible <bruno@clisp.org>
1301 gnulib-tool: Fix typo in 2010-02-07 commit.
1302 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1303 Reported by Eric Blake.
1305 2010-02-07 Bruno Haible <bruno@clisp.org>
1307 gnulib-tool: Fix up caching patches.
1308 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1309 option --no-cache. Use associative arrays when supported by the shell.
1310 (sed_comments): New variable.
1311 (modcache): Renamed from do_cache.
1312 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1313 abbreviate unnecessarily.
1314 (have_associative): New variable.
1315 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1316 way also for ksh and zsh.
1317 (func_init_sed_convert_to_cache_statements): New function, extracted
1318 from func_cache_lookup_module. Add support for associative arrays.
1319 Don't set the c_MODULE_cached variable here. Ignore all lines before
1320 the first field header. Remove only the final newline, not all trailing
1321 newlines. Support empty fields correctly. Limit the use of 'eval' to
1323 (func_get_description, func_get_status, func_get_notice,
1324 func_get_applicability, func_get_filelist, func_get_dependencies,
1325 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1326 func_get_automake_snippet, func_get_include_directive,
1327 func_get_link_directive, func_get_license, func_get_maintainer):
1328 Update documentation. List the unoptimized code first. Add support for
1329 associative arrays. Limit the use of 'eval' to assignments.
1330 (func_get_applicability): Undo stylistic pessimisations.
1331 (func_get_automake_snippet, func_get_include_directive): Reduce code
1333 (func_modules_transitive_closure, func_modules_add_dummy,
1334 func_modules_notice, func_modules_to_filelist, func_add_file,
1335 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1336 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1337 func_create_testdir, func_create_megatestdir): Update documentation.
1339 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1341 * gnulib-tool (func_cache_lookup_module): Store the module name
1342 belonging to the cache variable; error out if two different
1343 module names map to the same cache variable name.
1345 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1347 gnulib-tool: Make caching optional.
1348 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1349 Update matching short versions of --no-changelog.
1350 (func_usage): Update.
1351 (sed_extract_cache_prog): Renamed from ...
1352 (sed_extract_prog): ... this; revert to old extraction script.
1353 (func_get_description, func_get_status)
1354 (func_get_notice, func_get_applicability, func_get_filelist)
1355 (func_get_dependencies, func_get_autoconf_early_snippet)
1356 (func_get_autoconf_snippet, func_get_automake_snippet)
1357 (func_get_include_directive, func_get_link_directive)
1358 (func_get_license, func_get_maintainer): If $do_cache is false,
1359 use old, non-caching extraction scripts.
1360 Suggestion by Bruno Haible.
1362 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1364 gnulib-tool: cache module metainformation.
1365 * gnulib-tool (sed_extract_prog): Match newline before each
1366 header, and rewrite header to a shell variable suffix.
1367 (func_cache_var, func_cache_lookup_module): New functions,
1368 to turn a module name into a cache variable prefix, and to
1369 look up and cache module metainformation.
1370 (func_get_description, func_get_status)
1371 (func_get_notice, func_get_applicability, func_get_filelist)
1372 (func_get_dependencies, func_get_autoconf_early_snippet)
1373 (func_get_autoconf_snippet, func_get_automake_snippet)
1374 (func_get_include_directive, func_get_link_directive)
1375 (func_get_license, func_get_maintainer): Use
1376 func_cache_lookup_module.
1378 2010-02-07 Bruno Haible <bruno@clisp.org>
1380 fnctl: Fix missing dependency.
1381 * modules/fcntl (Depends-on): Add getdtablesize.
1382 Reported by John W. Eaton <jwe@gnu.org>.
1384 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1386 Argp: fix recognition of short alias options.
1388 * lib/argp-parse.c (convert_options): Fix improper use of
1389 `|' between character values.
1390 * tests/test-argp.c (group1_option): New alias option
1392 (group1_parser): Special handling for 'r'.
1393 (test15): New test case.
1394 (test_fun): Add test15.
1395 * tests/test-argp-2.sh: Update expected --help and --usage
1398 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1400 * tests/test-argp.c: Fix indentation.
1402 2010-02-04 Eric Blake <ebb9@byu.net>
1404 gettimeofday: expose type of second argument
1405 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1406 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1407 * tests/test-gettimeofday.c: Use it to silence warning.
1408 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1411 2010-02-03 Jim Meyering <meyering@redhat.com>
1413 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1414 * lib/regcomp.c (TYPE_SIGNED): Define.
1415 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1417 regcomp.c: avoid a new -Wshadow warning
1418 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1420 2010-02-01 Jim Meyering <meyering@redhat.com>
1422 removing useless parentheses in cpp #define directives
1423 For motivation, see commit c0221df4, "define STREQ(a,b)
1424 consistently, removing useless parentheses"
1425 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1426 * lib/mountlist.c (MNT_IGNORE): Likewise.
1427 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1429 2010-02-01 Eric Blake <ebb9@byu.net>
1431 sys_time: use link-warning
1432 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1433 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1434 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1435 * modules/sys_time (Depends-on): Add warn-on-use.
1436 (Makefile.am): Always build replacement.
1437 (configure.ac): Update substitutions.
1438 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1439 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1440 bother with SYS_TIME_H.
1441 * modules/gettimeofday (configure.ac): Declare indicator.
1442 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1445 closein-tests: silence compiler warning
1446 * tests/test-closein.c (main): Ignore fread result.
1447 * modules/closein-tests (Depends-on): Add ignore-value.
1449 tests: silence warning about system return
1450 * tests/test-areadlink-with-size.c (main): Ignore system result.
1451 * tests/test-areadlink.c (main): Likewise.
1452 * tests/test-areadlinkat-with-size.c (main): Likewise.
1453 * tests/test-areadlinkat.c (main): Likewise.
1454 * tests/test-canonicalize-lgpl.c (main): Likewise.
1455 * tests/test-canonicalize.c (main): Likewise.
1456 * tests/test-chown.c (main): Likewise.
1457 * tests/test-fchownat.c (main): Likewise.
1458 * tests/test-fdutimensat.c (main): Likewise.
1459 * tests/test-fstatat.c (main): Likewise.
1460 * tests/test-futimens.c (main): Likewise.
1461 * tests/test-lchown.c (main): Likewise.
1462 * tests/test-link.c (main): Likewise.
1463 * tests/test-linkat.c (main): Likewise.
1464 * tests/test-lstat.c (main): Likewise.
1465 * tests/test-mkdir.c (main): Likewise.
1466 * tests/test-mkdirat.c (main): Likewise.
1467 * tests/test-mkfifo.c (main): Likewise.
1468 * tests/test-mkfifoat.c (main): Likewise.
1469 * tests/test-mknod.c (main): Likewise.
1470 * tests/test-readlink.c (main): Likewise.
1471 * tests/test-remove.c (main): Likewise.
1472 * tests/test-rename.c (main): Likewise.
1473 * tests/test-renameat.c (main): Likewise.
1474 * tests/test-rmdir.c (main): Likewise.
1475 * tests/test-symlink.c (main): Likewise.
1476 * tests/test-symlinkat.c (main): Likewise.
1477 * tests/test-unlink.c (main): Likewise.
1478 * tests/test-unlinkat.c (main): Likewise.
1479 * tests/test-utimens.c (main): Likewise.
1480 * tests/test-utimensat.c (main): Likewise.
1481 * modules/areadlink-tests (Depends-on): Add ignore-value.
1482 * modules/areadlink-with-size-tests (Depends-on): Likewise.
1483 * modules/areadlinkat-tests (Depends-on): Likewise.
1484 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1485 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1486 * modules/canonicalize-tests (Depends-on): Likewise.
1487 * modules/chown-tests (Depends-on): Likewise.
1488 * modules/fdutimensat-tests (Depends-on): Likewise.
1489 * modules/futimens-tests (Depends-on): Likewise.
1490 * modules/lchown-tests (Depends-on): Likewise.
1491 * modules/link-tests (Depends-on): Likewise.
1492 * modules/linkat-tests (Depends-on): Likewise.
1493 * modules/lstat-tests (Depends-on): Likewise.
1494 * modules/mkdir-tests (Depends-on): Likewise.
1495 * modules/mkfifo-tests (Depends-on): Likewise.
1496 * modules/mkfifoat-tests (Depends-on): Likewise.
1497 * modules/mknod-tests (Depends-on): Likewise.
1498 * modules/openat-tests (Depends-on): Likewise.
1499 * modules/readlink-tests (Depends-on): Likewise.
1500 * modules/remove-tests (Depends-on): Likewise.
1501 * modules/rename-tests (Depends-on): Likewise.
1502 * modules/renameat-tests (Depends-on): Likewise.
1503 * modules/rmdir-tests (Depends-on): Likewise.
1504 * modules/symlink-tests (Depends-on): Likewise.
1505 * modules/symlinkat-tests (Depends-on): Likewise.
1506 * modules/unlink-tests (Depends-on): Likewise.
1507 * modules/utimens-tests (Depends-on): Likewise.
1508 * modules/utimensat-tests (Depends-on): Likewise.
1510 2010-01-31 Bruno Haible <bruno@clisp.org>
1512 Perform the same test for many <math.h> functions.
1513 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1514 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1515 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1517 * modules/acos (configure.ac): Likewise.
1518 * modules/asin (configure.ac): Likewise.
1519 * modules/atan (configure.ac): Likewise.
1520 * modules/atan2 (configure.ac): Likewise.
1521 * modules/cbrt (configure.ac): Likewise.
1522 * modules/copysign (configure.ac): Likewise.
1523 * modules/cos (configure.ac): Likewise.
1524 * modules/cosh (configure.ac): Likewise.
1525 * modules/erf (configure.ac): Likewise.
1526 * modules/erfc (configure.ac): Likewise.
1527 * modules/exp (configure.ac): Likewise.
1528 * modules/fmod (configure.ac): Likewise.
1529 * modules/hypot (configure.ac): Likewise.
1530 * modules/j0 (configure.ac): Likewise.
1531 * modules/j1 (configure.ac): Likewise.
1532 * modules/jn (configure.ac): Likewise.
1533 * modules/lgamma (configure.ac): Likewise.
1534 * modules/log (configure.ac): Likewise.
1535 * modules/log10 (configure.ac): Likewise.
1536 * modules/log1p (configure.ac): Likewise.
1537 * modules/pow (configure.ac): Likewise.
1538 * modules/remainder (configure.ac): Likewise.
1539 * modules/sin (configure.ac): Likewise.
1540 * modules/sinh (configure.ac): Likewise.
1541 * modules/tan (configure.ac): Likewise.
1542 * modules/tanh (configure.ac): Likewise.
1543 * modules/y0 (configure.ac): Likewise.
1544 * modules/y1 (configure.ac): Likewise.
1545 * modules/yn (configure.ac): Likewise.
1546 Suggested by Paolo Bonzini.
1548 2010-01-31 Bruno Haible <bruno@clisp.org>
1550 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1552 2010-01-31 Bruno Haible <bruno@clisp.org>
1554 Work around getdelim() bug on FreeBSD 8.0.
1555 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1556 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1558 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1560 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1561 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1562 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1564 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1566 2010-01-31 Bruno Haible <bruno@clisp.org>
1568 Work around getline() bug on FreeBSD 8.0.
1569 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1570 and a non-zero size.
1571 * tests/test-getline.c (main): Likewise.
1572 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1573 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1575 2010-01-28 Eric Blake <ebb9@byu.net>
1577 regex: fix build failure
1578 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1581 2010-01-28 Jim Meyering <meyering@redhat.com>
1583 regex: do not ignore memory allocation failure
1584 * lib/regex_internal.c (create_cd_newstate): Detect
1585 re_node_set_init_copy failure. Extracted from glibc commit
1586 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1588 regex: sync more white-space changes from libc
1589 * lib/regex_internal.c: White-space only changes.
1590 * lib/regexec.c: Likewise.
1592 regex: add many uses of __attribute_warn_unused_result__
1593 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1594 * lib/regexec.c: Likewise.
1595 Extracted from a messy glibc commit.
1597 regcomp.c: spelling and merge-artifact from glibc
1598 * lib/regcomp.c: Merge remainder of glibc's
1599 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1601 regcomp.c: sync white-space changes from glibc
1602 * lib/regcomp.c: Merge to accommodate white space
1603 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1605 regcomp.c: do not ignore internal return values
1606 * lib/regcomp.c: Do not ignore internal return values.
1607 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1608 but without its white-space changes and spelling fixes.
1610 regex_internal.h: define __attribute_warn_unused_result__
1611 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1613 maint: add a syntax-check rule to check for vulnerable Makefile.in
1614 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1616 2010-01-27 Jim Meyering <meyering@redhat.com>
1618 ncftpput-ftp: clean up spaces
1619 * build-aux/ncftpput-ftp: Make Copyright line consistent.
1620 Remove trailing blanks.
1622 2010-01-27 Simon Josefsson <simon@josefsson.org>
1624 * build-aux/git-version-gen: Fix copyright statement.
1625 * build-aux/gnupload: Likewise.
1626 * tests/test-arcfour.c: Likewise.
1627 * tests/test-arctwo.c: Likewise.
1628 * tests/test-count-one-bits.c: Likewise.
1629 * tests/test-crc.c: Likewise.
1630 * tests/test-des.c: Likewise.
1631 * tests/test-gc-arcfour.c: Likewise.
1632 * tests/test-gc-arctwo.c: Likewise.
1633 * tests/test-gc-des.c: Likewise.
1634 * tests/test-gc-hmac-md5.c: Likewise.
1635 * tests/test-gc-hmac-sha1.c: Likewise.
1636 * tests/test-gc-md2.c: Likewise.
1637 * tests/test-gc-md4.c: Likewise.
1638 * tests/test-gc-md5.c: Likewise.
1639 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1640 * tests/test-gc-rijndael.c: Likewise.
1641 * tests/test-gc-sha1.c: Likewise.
1642 * tests/test-gc.c: Likewise.
1643 * tests/test-gethostname.c: Likewise.
1644 * tests/test-gettimeofday.c: Likewise.
1645 * tests/test-hash.c: Likewise.
1646 * tests/test-hmac-md5.c: Likewise.
1647 * tests/test-hmac-sha1.c: Likewise.
1648 * tests/test-md2.c: Likewise.
1649 * tests/test-md4.c: Likewise.
1650 * tests/test-md5.c: Likewise.
1651 * tests/test-memchr.c: Likewise.
1652 * tests/test-memchr2.c: Likewise.
1653 * tests/test-memcmp.c: Likewise.
1654 * tests/test-memmem.c: Likewise.
1655 * tests/test-memrchr.c: Likewise.
1656 * tests/test-rawmemchr.c: Likewise.
1657 * tests/test-read-file.c: Likewise.
1658 * tests/test-rijndael.c: Likewise.
1659 * tests/test-sockets.c: Likewise.
1660 * tests/test-strchrnul.c: Likewise.
1661 * tests/test-strstr.c: Likewise.
1662 * tests/test-strtod.c: Likewise.
1663 * build-aux/ncftpput-ftp: Likewise.
1665 2010-01-26 Eric Blake <ebb9@byu.net>
1667 ignore-value: update recommended header name
1668 * modules/ignore-value (Include): Only use <> for headers that
1671 2010-01-26 Jim Meyering <meyering@redhat.com>
1673 test-userspec.c: avoid compiler warnings
1674 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1675 and "initialization discards qualifiers..." warnings.
1676 Put the first "uid" in its own scope, and make char* members "const".
1678 2010-01-25 Bruno Haible <bruno@clisp.org>
1680 gnulib-tool: Make warning diagnostics consistent.
1681 * gnulib-tool (func_warning): New function.
1682 Use it everywhere where gnulib-tool produces output to stderr and it is
1685 2010-01-25 Bruno Haible <bruno@clisp.org>
1687 Fix test dependencies.
1688 * modules/xstrtol-tests (Depends-on): Add inttypes.
1689 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1691 2010-01-25 Pádraig Brady <P@draigBrady.com>
1693 syntax-check: detect incorrect boolean macro values in config.h
1694 * modules/maintainer-makefile (configure.ac): Parameterize the location
1695 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1696 The logic is from Eric Blake and the location indicated by Jim Meyering.
1697 Note the more natural CONFIG_HEADER name is prohibited by automake
1698 for backwards compatibility reasons.
1699 * top/maint.mk (sc_Wundef_boolean): New rule.
1701 2010-01-25 Jim Meyering <meyering@redhat.com>
1703 bootstrap: detect MacOS 10.6's shasum, too
1704 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1705 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1707 2010-01-23 Jim Meyering <meyering@redhat.com>
1709 xstrtoll: new module
1710 * modules/xstrtoll: New file.
1711 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1712 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1713 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1714 ./configure fails if you use this module and lack "long long".
1715 * modules/xstrtoll-tests: New module.
1716 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1717 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1718 new init.sh-based test framework.
1720 2010-01-24 Bruno Haible <bruno@clisp.org>
1722 Tests for module 'yn'.
1723 * modules/yn-tests: New file.
1724 * tests/test-yn.c: New file.
1726 Tests for module 'y1'.
1727 * modules/y1-tests: New file.
1728 * tests/test-y1.c: New file.
1730 Tests for module 'y0'.
1731 * modules/y0-tests: New file.
1732 * tests/test-y0.c: New file.
1734 Tests for module 'tanh'.
1735 * modules/tanh-tests: New file.
1736 * tests/test-tanh.c: New file.
1738 Tests for module 'tan'.
1739 * modules/tan-tests: New file.
1740 * tests/test-tan.c: New file.
1742 Tests for module 'sqrt'.
1743 * modules/sqrt-tests: New file.
1744 * tests/test-sqrt.c: New file.
1746 Tests for module 'sinh'.
1747 * modules/sinh-tests: New file.
1748 * tests/test-sinh.c: New file.
1750 Tests for module 'sin'.
1751 * modules/sin-tests: New file.
1752 * tests/test-sin.c: New file.
1754 Tests for module 'rint'.
1755 * modules/rint-tests: New file.
1756 * tests/test-rint.c: New file.
1758 Tests for module 'remainder'.
1759 * modules/remainder-tests: New file.
1760 * tests/test-remainder.c: New file.
1762 Tests for module 'pow'.
1763 * modules/pow-tests: New file.
1764 * tests/test-pow.c: New file.
1766 Tests for module 'nextafter'.
1767 * modules/nextafter-tests: New file.
1768 * tests/test-nextafter.c: New file.
1770 Tests for module 'modf'.
1771 * modules/modf-tests: New file.
1772 * tests/test-modf.c: New file.
1774 Tests for module 'logb'.
1775 * modules/logb-tests: New file.
1776 * tests/test-logb.c: New file.
1778 Tests for module 'log1p'.
1779 * modules/log1p-tests: New file.
1780 * tests/test-log1p.c: New file.
1782 Tests for module 'log10'.
1783 * modules/log10-tests: New file.
1784 * tests/test-log10.c: New file.
1786 Tests for module 'log'.
1787 * modules/log-tests: New file.
1788 * tests/test-log.c: New file.
1790 Tests for module 'lgamma'.
1791 * modules/lgamma-tests: New file.
1792 * tests/test-lgamma.c: New file.
1794 Tests for module 'ldexp'.
1795 * modules/ldexp-tests: New file.
1796 * tests/test-ldexp.c: New file.
1798 Tests for module 'jn'.
1799 * modules/jn-tests: New file.
1800 * tests/test-jn.c: New file.
1802 Tests for module 'j1'.
1803 * modules/j1-tests: New file.
1804 * tests/test-j1.c: New file.
1806 Tests for module 'j0'.
1807 * modules/j0-tests: New file.
1808 * tests/test-j0.c: New file.
1810 Tests for module 'hypot'.
1811 * modules/hypot-tests: New file.
1812 * tests/test-hypot.c: New file.
1814 Tests for module 'fmod'.
1815 * modules/fmod-tests: New file.
1816 * tests/test-fmod.c: New file.
1818 Tests for module 'fabs'.
1819 * modules/fabs-tests: New file.
1820 * tests/test-fabs.c: New file.
1822 Tests for module 'exp'.
1823 * modules/exp-tests: New file.
1824 * tests/test-exp.c: New file.
1826 Tests for module 'erfc'.
1827 * modules/erfc-tests: New file.
1828 * tests/test-erfc.c: New file.
1830 Tests for module 'erf'.
1831 * modules/erf-tests: New file.
1832 * tests/test-erf.c: New file.
1834 Tests for module 'cosh'.
1835 * modules/cosh-tests: New file.
1836 * tests/test-cosh.c: New file.
1838 Tests for module 'cos'.
1839 * modules/cos-tests: New file.
1840 * tests/test-cos.c: New file.
1842 Tests for module 'copysign'.
1843 * modules/copysign-tests: New file.
1844 * tests/test-copysign.c: New file.
1846 Tests for module 'cbrt'.
1847 * modules/cbrt-tests: New file.
1848 * tests/test-cbrt.c: New file.
1850 Tests for module 'atan2'.
1851 * modules/atan2-tests: New file.
1852 * tests/test-atan2.c: New file.
1854 Tests for module 'atan'.
1855 * modules/atan-tests: New file.
1856 * tests/test-atan.c: New file.
1858 Tests for module 'asin'.
1859 * modules/asin-tests: New file.
1860 * tests/test-asin.c: New file.
1862 Tests for module 'acos'.
1863 * modules/acos-tests: New file.
1864 * tests/test-acos.c: New file.
1866 2010-01-24 Bruno Haible <bruno@clisp.org>
1868 Fix tests for common <math.h> functions.
1869 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1870 code snippet that references the function pointer, rather than merely
1871 calling the function. Substitute the FUNC_LIBM variable.
1872 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1873 * modules/acos (configure.ac): Likewise.
1874 * modules/asin (configure.ac): Likewise.
1875 * modules/atan (configure.ac): Likewise.
1876 * modules/atan2 (configure.ac): Likewise.
1877 * modules/cbrt (configure.ac): Likewise.
1878 * modules/copysign (configure.ac): Likewise.
1879 * modules/cos (configure.ac): Likewise.
1880 * modules/cosh (configure.ac): Likewise.
1881 * modules/erf (configure.ac): Likewise.
1882 * modules/erfc (configure.ac): Likewise.
1883 * modules/exp (configure.ac): Likewise.
1884 * modules/fabs (configure.ac): Likewise.
1885 * modules/fmod (configure.ac): Likewise.
1886 * modules/hypot (configure.ac): Likewise.
1887 * modules/j0 (configure.ac): Likewise.
1888 * modules/j1 (configure.ac): Likewise.
1889 * modules/jn (configure.ac): Likewise.
1890 * modules/ldexp (configure.ac): Likewise.
1891 * modules/lgamma (configure.ac): Likewise.
1892 * modules/log (configure.ac): Likewise.
1893 * modules/log10 (configure.ac): Likewise.
1894 * modules/log1p (configure.ac): Likewise.
1895 * modules/logb (configure.ac): Likewise.
1896 * modules/modf (configure.ac): Likewise.
1897 * modules/nextafter (configure.ac): Likewise.
1898 * modules/pow (configure.ac): Likewise.
1899 * modules/remainder (configure.ac): Likewise.
1900 * modules/rint (configure.ac): Likewise.
1901 * modules/sin (configure.ac): Likewise.
1902 * modules/sinh (configure.ac): Likewise.
1903 * modules/tan (configure.ac): Likewise.
1904 * modules/tanh (configure.ac): Likewise.
1905 * modules/y0 (configure.ac): Likewise.
1906 * modules/y1 (configure.ac): Likewise.
1907 * modules/yn (configure.ac): Likewise.
1909 2010-01-24 Bruno Haible <bruno@clisp.org>
1911 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1912 * tests/test-acosl.c (x): New variable.
1913 (main): Store argument in x and fetch it from x.
1914 * tests/test-asinl.c (x): New variable.
1915 (main): Store argument in x and fetch it from x.
1916 * tests/test-atanl.c (x): New variable.
1917 (main): Store argument in x and fetch it from x.
1918 * tests/test-cosl.c (x): New variable.
1919 (main): Store argument in x and fetch it from x.
1920 * tests/test-expl.c (x): New variable.
1921 (main): Store argument in x and fetch it from x.
1922 * tests/test-logl.c (x): New variable.
1923 (main): Store argument in x and fetch it from x.
1924 * tests/test-sinl.c (x): New variable.
1925 (main): Store argument in x and fetch it from x.
1926 * tests/test-sqrtl.c (x): New variable.
1927 (main): Store argument in x and fetch it from x.
1928 * tests/test-tanl.c (x): New variable.
1929 (main): Store argument in x and fetch it from x.
1931 2010-01-24 Bruno Haible <bruno@clisp.org>
1933 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1934 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1935 assignments to the initial TESTS_ENVIRONMENT.
1936 * doc/gnulib.texi (Unit test modules): Document it.
1937 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1939 * modules/btowc-tests (Makefile.am): Likewise.
1940 * modules/c-stack-tests (Makefile.am): Likewise.
1941 * modules/c-strcase-tests (Makefile.am): Likewise.
1942 * modules/copy-file-tests (Makefile.am): Likewise.
1943 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1944 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1945 * modules/mbrtowc-tests (Makefile.am): Likewise.
1946 * modules/mbscasecmp-tests (Makefile.am): Likewise.
1947 * modules/mbscasestr-tests (Makefile.am): Likewise.
1948 * modules/mbschr-tests (Makefile.am): Likewise.
1949 * modules/mbscspn-tests (Makefile.am): Likewise.
1950 * modules/mbsinit-tests (Makefile.am): Likewise.
1951 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1952 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1953 * modules/mbspbrk-tests (Makefile.am): Likewise.
1954 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1955 * modules/mbsrchr-tests (Makefile.am): Likewise.
1956 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1957 * modules/mbsspn-tests (Makefile.am): Likewise.
1958 * modules/mbsstr-tests (Makefile.am): Likewise.
1959 * modules/nl_langinfo-tests (Makefile.am): Likewise.
1960 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1961 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1962 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1963 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1964 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1965 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1966 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1967 * modules/wcrtomb-tests (Makefile.am): Likewise.
1968 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1969 * modules/wcsrtombs-tests (Makefile.am): Likewise.
1970 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1971 assignments from TESTS_ENVIRONMENT.
1972 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1974 * modules/argp-version-etc-tests (Makefile.am): Likewise.
1975 * modules/atexit-tests (Makefile.am): Likewise.
1976 * modules/binary-io-tests (Makefile.am): Likewise.
1977 * modules/closein-tests (Makefile.am): Likewise.
1978 * modules/dprintf-posix-tests (Makefile.am): Likewise.
1979 * modules/exclude-tests (Makefile.am): Likewise.
1980 * modules/fflush-tests (Makefile.am): Likewise.
1981 * modules/fpending-tests (Makefile.am): Likewise.
1982 * modules/fprintf-posix-tests (Makefile.am): Likewise.
1983 * modules/freadahead-tests (Makefile.am): Likewise.
1984 * modules/freadptr-tests (Makefile.am): Likewise.
1985 * modules/freadseek-tests (Makefile.am): Likewise.
1986 * modules/fseek-tests (Makefile.am): Likewise.
1987 * modules/fseeko-tests (Makefile.am): Likewise.
1988 * modules/ftell-tests (Makefile.am): Likewise.
1989 * modules/ftello-tests (Makefile.am): Likewise.
1990 * modules/idpriv-drop-tests (Makefile.am): Likewise.
1991 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1992 * modules/lseek-tests (Makefile.am): Likewise.
1993 * modules/parse-duration-tests (Makefile.am): Likewise.
1994 * modules/perror-tests (Makefile.am): Likewise.
1995 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1996 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1997 * modules/pipe-tests (Makefile.am): Likewise.
1998 * modules/pread-tests (Makefile.am): Likewise.
1999 * modules/printf-posix-tests (Makefile.am): Likewise.
2000 * modules/select-tests (Makefile.am): Likewise.
2001 * modules/sigpipe-tests (Makefile.am): Likewise.
2002 * modules/tsearch-tests (Makefile.am): Likewise.
2003 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2004 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2005 * modules/uniname/uniname-tests (Makefile.am): Likewise.
2006 * modules/uniwidth/width-tests (Makefile.am): Likewise.
2007 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2008 * modules/version-etc-tests (Makefile.am): Likewise.
2009 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2010 * modules/vprintf-posix-tests (Makefile.am): Likewise.
2011 * modules/xalloc-die-tests (Makefile.am): Likewise.
2012 * modules/xprintf-posix-tests (Makefile.am): Likewise.
2013 * modules/xstrtoimax-tests (Makefile.am): Likewise.
2014 * modules/xstrtol-tests (Makefile.am): Likewise.
2015 * modules/xstrtoumax-tests (Makefile.am): Likewise.
2016 * modules/yesno-tests (Makefile.am): Likewise.
2017 Suggested by Jim Meyering.
2019 2010-01-24 Bruno Haible <bruno@clisp.org>
2022 * doc/gnulib.texi (Writing modules): New chapter.
2023 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2026 2010-01-24 Jim Meyering <meyering@redhat.com>
2028 maint.mk: do not prepend "./" after filtering
2029 * top/maint.mk (_prepend_srcdir_prefix): New variable
2030 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2031 "./" when $(srcdir) is ".".
2033 define STREQ(a,b) consistently, removing useless parentheses
2034 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2035 since the only risk is that "a" or "b" contains an unparenthesized
2036 comma, but if either did that, STREQ would have 3 or more arguments.
2037 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2038 * lib/fts.c (STREQ): Remove unnecessary parentheses.
2039 * lib/hash-triple.c (STREQ): Likewise.
2040 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2041 * lib/getugroups.c (STREQ): Likewise.
2043 2010-01-23 Jim Meyering <meyering@redhat.com>
2045 maint.mk: fix syntax-check in a non-srcdir build directory
2046 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2047 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
2049 2010-01-22 Jim Meyering <meyering@redhat.com>
2051 userspec: add unit tests
2052 * tests/test-userspec.c: New file.
2053 * modules/userspec-tests: Likewise.
2055 2010-01-21 Jim Meyering <meyering@redhat.com>
2057 maint.mk: handle source file names containing "." robustly
2058 * top/maint.mk (_dot_escaped_srcdir): Define.
2059 (VC_LIST): Use it in LHS of sed substitution.
2061 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
2063 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2064 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2065 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2066 from a non-srcdir build.
2068 2010-01-20 Eric Blake <ebb9@byu.net>
2070 warn-on-use: use instead of link-warning
2071 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2072 * modules/unistd (Depends-on, Makefile.am): Likewise.
2073 * modules/arpa_inet (Depends-on): Replace link-warning with
2075 (Makefile.am): Update rules accordingly.
2076 * modules/ctype (Depends-on, Makefile.am): Likewise.
2077 * modules/dirent (Depends-on, Makefile.am): Likewise.
2078 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2079 * modules/inttypes (Depends-on, Makefile.am): Likewise.
2080 * modules/langinfo (Depends-on, Makefile.am): Likewise.
2081 * modules/locale (Depends-on, Makefile.am): Likewise.
2082 * modules/math (Depends-on, Makefile.am): Likewise.
2083 * modules/search (Depends-on, Makefile.am): Likewise.
2084 * modules/signal (Depends-on, Makefile.am): Likewise.
2085 * modules/spawn (Depends-on, Makefile.am): Likewise.
2086 * modules/stdlib (Depends-on, Makefile.am): Likewise.
2087 * modules/string (Depends-on, Makefile.am): Likewise.
2088 * modules/strings (Depends-on, Makefile.am): Likewise.
2089 * modules/sys_file (Depends-on, Makefile.am): Likewise.
2090 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2091 * modules/sys_select (Depends-on, Makefile.am): Likewise.
2092 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2093 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2094 * modules/sys_times (Depends-on, Makefile.am): Likewise.
2095 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2096 * modules/wchar (Depends-on, Makefile.am): Likewise.
2097 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2099 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2100 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2101 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2102 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2103 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2104 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2105 * m4/math_h.m4 (gl_MATH_H): Likewise.
2106 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2107 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2108 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2109 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2110 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2111 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2112 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2113 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2114 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2115 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2116 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2117 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2118 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2119 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2120 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2121 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2122 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2124 * lib/ctype.in.h: Likewise.
2125 * lib/dirent.in.h: Likewise.
2126 * lib/fcntl.in.h: Likewise.
2127 * lib/inttypes.in.h: Likewise.
2128 * lib/langinfo.in.h: Likewise.
2129 * lib/locale.in.h: Likewise.
2130 * lib/math.in.h: Likewise.
2131 * lib/search.in.h: Likewise.
2132 * lib/signal.in.h: Likewise.
2133 * lib/spawn.in.h: Likewise.
2134 * lib/stdio.in.h: Likewise.
2135 * lib/stdlib.in.h: Likewise.
2136 * lib/string.in.h: Likewise.
2137 * lib/strings.in.h: Likewise.
2138 * lib/sys_file.in.h: Likewise.
2139 * lib/sys_ioctl.in.h: Likewise.
2140 * lib/sys_select.in.h: Likewise.
2141 * lib/sys_socket.in.h: Likewise.
2142 * lib/sys_stat.in.h: Likewise.
2143 * lib/sys_times.in.h: Likewise.
2144 * lib/sys_utsname.in.h: Likewise.
2145 * lib/unistd.in.h: Likewise.
2146 * lib/wchar.in.h: Likewise.
2148 2010-01-20 Bruno Haible <bruno@clisp.org>
2150 Avoid duplicate -lm.
2151 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2152 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2153 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2154 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2155 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2156 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2157 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2158 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2159 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2160 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2161 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2162 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2163 Reported by Paolo Bonzini.
2165 2010-01-19 Bruno Haible <bruno@clisp.org>
2167 langinfo, nl_langinfo: Relicense under LGPLv2+.
2168 * modules/langinfo (License): Change to LGPLv2+.
2169 * modules/nl_langinfo (License): Likewise.
2170 Patch by David Lutterkort <lutter@redhat.com>.
2172 2010-01-19 Bruno Haible <bruno@clisp.org>
2174 Avoid compilation error with cc on OSF/1 5.1.
2175 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2176 statement, not before.
2177 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2179 2010-01-18 Bruno Haible <bruno@clisp.org>
2181 Avoid a link error due to the __printf__ symbol.
2182 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2184 (__format__, __printf__): Remove definitions.
2185 * lib/argp-fmtstream.h: Likewise.
2186 * lib/argp.h: Likewise.
2187 * lib/error.h: Likewise.
2188 * lib/vasnprintf.h: Likewise.
2189 * lib/xprintf.h: Likewise.
2190 * lib/xvasprintf.h: Likewise.
2191 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2193 2010-01-18 Bruno Haible <bruno@clisp.org>
2195 Tests for module 'tanl'.
2196 * modules/tanl-tests: New file.
2197 * tests/test-tanl.c: New file.
2199 Tests for module 'sqrtl'.
2200 * modules/sqrtl-tests: New file.
2201 * tests/test-sqrtl.c: New file.
2203 Tests for module 'sinl'.
2204 * modules/sinl-tests: New file.
2205 * tests/test-sinl.c: New file.
2207 Tests for module 'logl'.
2208 * modules/logl-tests: New file.
2209 * tests/test-logl.c: New file.
2211 Tests for module 'expl'.
2212 * modules/expl-tests: New file.
2213 * tests/test-expl.c: New file.
2215 Tests for module 'cosl'.
2216 * modules/cosl-tests: New file.
2217 * tests/test-cosl.c: New file.
2219 Tests for module 'atanl'.
2220 * modules/atanl-tests: New file.
2221 * tests/test-atanl.c: New file.
2223 Tests for module 'asinl'.
2224 * modules/asinl-tests: New file.
2225 * tests/test-asinl.c: New file.
2227 Tests for module 'acosl'.
2228 * modules/acosl-tests: New file.
2229 * tests/test-acosl.c: New file.
2231 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2232 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2233 tanl): Use the standard gnulib idiom.
2234 * lib/cosl.c: Don't include trigl.c and sincosl.c.
2235 * lib/sinl.c: Likewise.
2236 * lib/tanl.c: Don't include trigl.c.
2237 (kernel_tanl): Make static.
2238 * lib/sincosl.c: Include trigl.h first.
2239 * lib/trigl.c: Likewise.
2240 * m4/acosl.m4: New file.
2241 * m4/asinl.m4: New file.
2242 * m4/atanl.m4: New file.
2243 * m4/cosl.m4: New file.
2244 * m4/expl.m4: New file.
2245 * m4/logl.m4: New file.
2246 * m4/sinl.m4: New file.
2247 * m4/sqrtl.m4: New file.
2248 * m4/tanl.m4: New file.
2249 * m4/mathl.m4: Remove file.
2250 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2251 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2252 Don't initialize GNULIB_MATHL.
2253 * modules/acosl: New file.
2254 * modules/asinl: New file.
2255 * modules/atanl: New file.
2256 * modules/cosl: New file.
2257 * modules/expl: New file.
2258 * modules/logl: New file.
2259 * modules/sinl: New file.
2260 * modules/sqrtl: New file.
2261 * modules/tanl: New file.
2262 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2263 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2264 substitute GNULIB_MATHL.
2265 * modules/mathl: Rewritten.
2266 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2267 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2268 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2269 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2270 * doc/posix-functions/expl.texi: Mention the 'expl' module.
2271 * doc/posix-functions/logl.texi: Mention the 'logl' module.
2272 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2273 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2274 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2276 2010-01-18 Bruno Haible <bruno@clisp.org>
2278 sqrt: Make gl_FUNC_SQRT requirable.
2279 * m4/sqrt.m4: New file.
2280 * modules/sqrt (Files): Add it.
2281 (configure.ac): Invoke gl_FUNC_SQRT.
2283 2010-01-18 Bruno Haible <bruno@clisp.org>
2285 New modules for common <math.h> functions.
2286 * m4/mathfunc.m4: New file.
2287 * modules/acos: New file.
2288 * modules/asin: New file.
2289 * modules/atan: New file.
2290 * modules/atan2: New file.
2291 * modules/cbrt: New file.
2292 * modules/copysign: New file.
2293 * modules/cos: New file.
2294 * modules/cosh: New file.
2295 * modules/erf: New file.
2296 * modules/erfc: New file.
2297 * modules/exp: New file.
2298 * modules/fabs: New file.
2299 * modules/fmod: New file.
2300 * modules/hypot: New file.
2301 * modules/j0: New file.
2302 * modules/j1: New file.
2303 * modules/jn: New file.
2304 * modules/ldexp: New file.
2305 * modules/lgamma: New file.
2306 * modules/log: New file.
2307 * modules/log10: New file.
2308 * modules/log1p: New file.
2309 * modules/logb: New file.
2310 * modules/modf: New file.
2311 * modules/nextafter: New file.
2312 * modules/pow: New file.
2313 * modules/remainder: New file.
2314 * modules/rint: New file.
2315 * modules/sin: New file.
2316 * modules/sinh: New file.
2317 * modules/sqrt: New file.
2318 * modules/tan: New file.
2319 * modules/tanh: New file.
2320 * modules/y0: New file.
2321 * modules/y1: New file.
2322 * modules/yn: New file.
2323 * doc/posix-functions/acos.texi: Mention the 'acos' module.
2324 * doc/posix-functions/asin.texi: Mention the 'asin' module.
2325 * doc/posix-functions/atan.texi: Mention the 'atan' module.
2326 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2327 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2328 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2329 * doc/posix-functions/cos.texi: Mention the 'cos' module.
2330 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2331 * doc/posix-functions/erf.texi: Mention the 'erf' module.
2332 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2333 * doc/posix-functions/exp.texi: Mention the 'exp' module.
2334 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2335 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2336 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2337 * doc/posix-functions/j0.texi: Mention the 'j0' module.
2338 * doc/posix-functions/j1.texi: Mention the 'j1' module.
2339 * doc/posix-functions/jn.texi: Mention the 'jn' module.
2340 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2341 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2342 * doc/posix-functions/log.texi: Mention the 'log' module.
2343 * doc/posix-functions/log10.texi: Mention the 'log10' module.
2344 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2345 * doc/posix-functions/logb.texi: Mention the 'logb' module.
2346 * doc/posix-functions/modf.texi: Mention the 'modf' module.
2347 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2348 * doc/posix-functions/pow.texi: Mention the 'pow' module.
2349 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2350 * doc/posix-functions/rint.texi: Mention the 'rint' module.
2351 * doc/posix-functions/sin.texi: Mention the 'sin' module.
2352 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2353 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2354 * doc/posix-functions/tan.texi: Mention the 'tan' module.
2355 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2356 * doc/posix-functions/y0.texi: Mention the 'y0' module.
2357 * doc/posix-functions/y1.texi: Mention the 'y1' module.
2358 * doc/posix-functions/yn.texi: Mention the 'yn' module.
2360 2010-01-18 Jim Meyering <meyering@redhat.com>
2362 ignore-value: relax license to LGPLv2+
2363 * modules/ignore-value (License): Relax to LGPLv2+.
2365 getdate: don't leak when TZ contains two or more '"'s
2366 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2367 double quote in TZ after the first one.
2369 readtokens: do not leak internal token_lengths buffer
2370 * lib/readtokens.c (readtokens): Free the local, lengths,
2371 when the supplied "token_lengths" parameter is NULL.
2373 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2375 Fix a couple of missing LIBTHREAD link failures on AIX.
2376 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2378 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2380 Link test-poll against INET_PTON_LIB.
2381 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2382 for inet_pton on Solaris 10.
2384 2010-01-17 Bruno Haible <bruno@clisp.org>
2386 unistdio/*-sprintf: Fix typo in module description.
2387 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2388 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2389 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2390 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2391 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2392 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2393 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2394 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2396 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2398 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2399 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2400 variables in shell case patterns, for AIX and HP-UX ksh.
2402 Split large sed scripts, for HP-UX sed.
2403 * modules/stdio: Split sed scripts around 50 sed commands,
2404 to avoid HP-UX limit of 99 commands, in the near future.
2405 * modules/string: Likewise.
2406 * modules/unistd: Likewise.
2408 gnulib-tool: avoid writing in the current directory.
2409 * gnulib-tool (func_emit_lib_Makefile_am)
2410 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2411 not in the current directory, so concurrent gnulib-tool
2412 instances do not interfere.
2414 2010-01-16 Jim Meyering <meyering@redhat.com>
2416 doc: update users.txt
2417 * users.txt: Add grep.
2418 (diffutils, gzip): Update URLs.
2420 2010-01-12 Bruno Haible <bruno@clisp.org>
2422 posix_spawn: Avoid test failure on Cygwin.
2423 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2425 Reported by Simon Josefsson.
2427 2010-01-12 Bruno Haible <bruno@clisp.org>
2429 * tests/test-cond.c (main): When skipping the test, show the reason.
2431 2010-01-12 Simon Josefsson <simon@josefsson.org>
2433 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2435 2010-01-12 Simon Josefsson <simon@josefsson.org>
2437 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2438 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2440 2010-01-12 Eric Blake <ebb9@byu.net>
2442 build: guarantee AS_VAR_IF
2443 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2444 (gl_AS_VAR_IF): Move...
2445 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2446 Reported by Simon Josefsson.
2448 2010-01-12 Simon Josefsson <simon@josefsson.org>
2450 * lib/stdio.in.h: Fix typo.
2452 2010-01-12 Simon Josefsson <simon@josefsson.org>
2454 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2457 2010-01-12 Simon Josefsson <simon@josefsson.org>
2459 * tests/test-xalloc-die.sh: Use $EXEEXT.
2461 2010-01-12 Simon Josefsson <simon@josefsson.org>
2462 Bruno Haible <bruno@clisp.org>
2464 getlogin, getlogin_r: Avoid test failure.
2465 * tests/test-getlogin.c: Include <stdio.h>.
2466 (main): Skip the test when the function fails because stdin is not a
2468 * tests/test-getlogin_r.c: Include <stdio.h>.
2469 (main): Skip the test when the function fails because stdin is not a
2472 2010-01-11 Eric Blake <ebb9@byu.net>
2474 tests: avoid more large file warnings
2475 * tests/test-fflush.c: Avoid warning about ftell use.
2476 * tests/test-fseek.c: Avoid warning about fseek use.
2478 2010-01-10 Bruno Haible <bruno@clisp.org>
2480 nproc: Work better on Linux when /proc and /sys are not mounted.
2481 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2482 as lower bound when, on glibc/Linux systems,
2483 sysconf (_SC_NPROCESSORS_CONF) returns 1.
2484 Suggested by Pádraig Brady <P@draigbrady.com>.
2485 Reported by Dmitry V. Levin <ldv@altlinux.org>.
2488 * lib/nproc.c (num_processors_via_affinity_mask): New function,
2489 extracted from num_processors.
2490 (num_processors): Call it.
2492 2010-01-11 Jim Meyering <meyering@redhat.com>
2494 utimecmp: avoid new warning from upcoming gcc-4.5.0
2495 * lib/utimecmp.c (BILLION): Define using #define rather than an
2496 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2498 2010-01-11 Eric Blake <ebb9@byu.net>
2500 math: add portability warnings for classification macros
2501 * modules/math (Depends-on): Add warn-on-use.
2502 (Makefile.am): Provide new substitutions.
2503 * m4/math_h.m4 (gl_MATH_H): Require inline.
2504 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2505 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2506 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2509 unistd: warn on use of environ without module
2510 * modules/unistd (Depends-on): Add warn-on-use.
2511 (Makefile.am): Provide new substitutions.
2512 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2513 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2515 stdio: warn on suspicious uses
2516 * modules/stdio (Depends-on): Add warn-on-use.
2517 (Makefile.am): Provide new substitutions.
2518 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2520 * lib/stdio.in.h (gets): Always warn on use.
2521 (fseek, ftell): Adjust when warnings are issued, and honor
2522 _GL_NO_LARGE_FILES as a way to silence the warning.
2523 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2524 any warning about large file offsets.
2525 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2526 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2527 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2528 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2529 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2530 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2531 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2532 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2534 warn-on-use: new module
2535 * modules/warn-on-use: New file.
2536 * build-aux/warn-on-use.h: Likewise.
2537 * m4/warn-on-use.m4: Likewise.
2538 * MODULES.html.sh (Support for building): Mention it.
2540 2010-01-10 Bruno Haible <bruno@clisp.org>
2542 Tests for module 'unistr/u32-strdup'.
2543 * modules/unistr/u32-strdup-tests: New file.
2544 * tests/unistr/test-u32-strdup.c: New file.
2546 Tests for module 'unistr/u16-strdup'.
2547 * modules/unistr/u16-strdup-tests: New file.
2548 * tests/unistr/test-u16-strdup.c: New file.
2550 Tests for module 'unistr/u8-strdup'.
2551 * modules/unistr/u8-strdup-tests: New file.
2552 * tests/unistr/test-u8-strdup.c: New file.
2553 * tests/unistr/test-strdup.h: New file.
2555 Tests for module 'unistr/u32-strncmp'.
2556 * modules/unistr/u32-strncmp-tests: New file.
2557 * tests/unistr/test-u32-strncmp.c: New file.
2559 Tests for module 'unistr/u16-strncmp'.
2560 * modules/unistr/u16-strncmp-tests: New file.
2561 * tests/unistr/test-u16-strncmp.c: New file.
2563 Tests for module 'unistr/u8-strncmp'.
2564 * modules/unistr/u8-strncmp-tests: New file.
2565 * tests/unistr/test-u8-strncmp.c: New file.
2566 * tests/unistr/test-strncmp.h: New file.
2568 Tests for module 'unistr/u32-strcoll'.
2569 * modules/unistr/u32-strcoll-tests: New file.
2570 * tests/unistr/test-u32-strcoll.c: New file.
2572 Tests for module 'unistr/u16-strcoll'.
2573 * modules/unistr/u16-strcoll-tests: New file.
2574 * tests/unistr/test-u16-strcoll.c: New file.
2576 Tests for module 'unistr/u8-strcoll'.
2577 * modules/unistr/u8-strcoll-tests: New file.
2578 * tests/unistr/test-u8-strcoll.c: New file.
2580 Tests for module 'unistr/u32-strcmp'.
2581 * modules/unistr/u32-strcmp-tests: New file.
2582 * tests/unistr/test-u32-strcmp.c: New file.
2583 * tests/unistr/test-u32-strcmp.h: New file.
2585 Tests for module 'unistr/u16-strcmp'.
2586 * modules/unistr/u16-strcmp-tests: New file.
2587 * tests/unistr/test-u16-strcmp.c: New file.
2588 * tests/unistr/test-u16-strcmp.h: New file.
2590 Tests for module 'unistr/u8-strcmp'.
2591 * modules/unistr/u8-strcmp-tests: New file.
2592 * tests/unistr/test-u8-strcmp.c: New file.
2593 * tests/unistr/test-u8-strcmp.h: New file.
2594 * tests/unistr/test-strcmp.h: New file.
2596 Tests for module 'unistr/u32-strncat'.
2597 * modules/unistr/u32-strncat-tests: New file.
2598 * tests/unistr/test-u32-strncat.c: New file.
2600 Tests for module 'unistr/u16-strncat'.
2601 * modules/unistr/u16-strncat-tests: New file.
2602 * tests/unistr/test-u16-strncat.c: New file.
2604 Tests for module 'unistr/u8-strncat'.
2605 * modules/unistr/u8-strncat-tests: New file.
2606 * tests/unistr/test-u8-strncat.c: New file.
2607 * tests/unistr/test-strncat.h: New file.
2609 Tests for module 'unistr/u32-strcat'.
2610 * modules/unistr/u32-strcat-tests: New file.
2611 * tests/unistr/test-u32-strcat.c: New file.
2613 Tests for module 'unistr/u16-strcat'.
2614 * modules/unistr/u16-strcat-tests: New file.
2615 * tests/unistr/test-u16-strcat.c: New file.
2617 Tests for module 'unistr/u8-strcat'.
2618 * modules/unistr/u8-strcat-tests: New file.
2619 * tests/unistr/test-u8-strcat.c: New file.
2620 * tests/unistr/test-strcat.h: New file.
2622 Tests for module 'unistr/u32-stpncpy'.
2623 * modules/unistr/u32-stpncpy-tests: New file.
2624 * tests/unistr/test-u32-stpncpy.c: New file.
2626 Tests for module 'unistr/u16-stpncpy'.
2627 * modules/unistr/u16-stpncpy-tests: New file.
2628 * tests/unistr/test-u16-stpncpy.c: New file.
2630 Tests for module 'unistr/u8-stpncpy'.
2631 * modules/unistr/u8-stpncpy-tests: New file.
2632 * tests/unistr/test-u8-stpncpy.c: New file.
2633 * tests/unistr/test-stpncpy.h: New file.
2635 Tests for module 'unistr/u32-strncpy'.
2636 * modules/unistr/u32-strncpy-tests: New file.
2637 * tests/unistr/test-u32-strncpy.c: New file.
2639 Tests for module 'unistr/u16-strncpy'.
2640 * modules/unistr/u16-strncpy-tests: New file.
2641 * tests/unistr/test-u16-strncpy.c: New file.
2643 Tests for module 'unistr/u8-strncpy'.
2644 * modules/unistr/u8-strncpy-tests: New file.
2645 * tests/unistr/test-u8-strncpy.c: New file.
2646 * tests/unistr/test-strncpy.h: New file.
2648 Tests for module 'unistr/u32-stpcpy'.
2649 * modules/unistr/u32-stpcpy-tests: New file.
2650 * tests/unistr/test-u32-stpcpy.c: New file.
2652 Tests for module 'unistr/u16-stpcpy'.
2653 * modules/unistr/u16-stpcpy-tests: New file.
2654 * tests/unistr/test-u16-stpcpy.c: New file.
2656 Tests for module 'unistr/u8-stpcpy'.
2657 * modules/unistr/u8-stpcpy-tests: New file.
2658 * tests/unistr/test-u8-stpcpy.c: New file.
2659 * tests/unistr/test-stpcpy.h: New file.
2661 Tests for module 'unistr/u32-strcpy'.
2662 * modules/unistr/u32-strcpy-tests: New file.
2663 * tests/unistr/test-u32-strcpy.c: New file.
2665 Tests for module 'unistr/u16-strcpy'.
2666 * modules/unistr/u16-strcpy-tests: New file.
2667 * tests/unistr/test-u16-strcpy.c: New file.
2669 Tests for module 'unistr/u8-strcpy'.
2670 * modules/unistr/u8-strcpy-tests: New file.
2671 * tests/unistr/test-u8-strcpy.c: New file.
2672 * tests/unistr/test-strcpy.h: New file.
2674 Tests for module 'unistr/u32-strnlen'.
2675 * modules/unistr/u32-strnlen-tests: New file.
2676 * tests/unistr/test-u32-strnlen.c: New file.
2678 Tests for module 'unistr/u16-strnlen'.
2679 * modules/unistr/u16-strnlen-tests: New file.
2680 * tests/unistr/test-u16-strnlen.c: New file.
2682 Tests for module 'unistr/u8-strnlen'.
2683 * modules/unistr/u8-strnlen-tests: New file.
2684 * tests/unistr/test-u8-strnlen.c: New file.
2685 * tests/unistr/test-strnlen.h: New file.
2687 Tests for module 'unistr/u32-strlen'.
2688 * modules/unistr/u32-strlen-tests: New file.
2689 * tests/unistr/test-u32-strlen.c: New file.
2691 Tests for module 'unistr/u16-strlen'.
2692 * modules/unistr/u16-strlen-tests: New file.
2693 * tests/unistr/test-u16-strlen.c: New file.
2695 Tests for module 'unistr/u8-strlen'.
2696 * modules/unistr/u8-strlen-tests: New file.
2697 * tests/unistr/test-u8-strlen.c: New file.
2699 Tests for module 'unistr/u32-prev'.
2700 * modules/unistr/u32-prev-tests: New file.
2701 * tests/unistr/test-u32-prev.c: New file.
2703 Tests for module 'unistr/u16-prev'.
2704 * modules/unistr/u16-prev-tests: New file.
2705 * tests/unistr/test-u16-prev.c: New file.
2707 Tests for module 'unistr/u8-prev'.
2708 * modules/unistr/u8-prev-tests: New file.
2709 * tests/unistr/test-u8-prev.c: New file.
2711 Tests for module 'unistr/u32-next'.
2712 * modules/unistr/u32-next-tests: New file.
2713 * tests/unistr/test-u32-next.c: New file.
2715 Tests for module 'unistr/u16-next'.
2716 * modules/unistr/u16-next-tests: New file.
2717 * tests/unistr/test-u16-next.c: New file.
2719 Tests for module 'unistr/u8-next'.
2720 * modules/unistr/u8-next-tests: New file.
2721 * tests/unistr/test-u8-next.c: New file.
2723 Tests for module 'unistr/u32-strmbtouc'.
2724 * modules/unistr/u32-strmbtouc-tests: New file.
2725 * tests/unistr/test-u32-strmbtouc.c: New file.
2727 Tests for module 'unistr/u16-strmbtouc'.
2728 * modules/unistr/u16-strmbtouc-tests: New file.
2729 * tests/unistr/test-u16-strmbtouc.c: New file.
2731 Tests for module 'unistr/u8-strmbtouc'.
2732 * modules/unistr/u8-strmbtouc-tests: New file.
2733 * tests/unistr/test-u8-strmbtouc.c: New file.
2735 Tests for module 'unistr/u32-strmblen'.
2736 * modules/unistr/u32-strmblen-tests: New file.
2737 * tests/unistr/test-u32-strmblen.c: New file.
2739 Tests for module 'unistr/u16-strmblen'.
2740 * modules/unistr/u16-strmblen-tests: New file.
2741 * tests/unistr/test-u16-strmblen.c: New file.
2743 Tests for module 'unistr/u8-strmblen'.
2744 * modules/unistr/u8-strmblen-tests: New file.
2745 * tests/unistr/test-u8-strmblen.c: New file.
2747 Tests for module 'unistr/u32-cpy-alloc'.
2748 * modules/unistr/u32-cpy-alloc-tests: New file.
2749 * tests/unistr/test-u32-cpy-alloc.c: New file.
2751 Tests for module 'unistr/u16-cpy-alloc'.
2752 * modules/unistr/u16-cpy-alloc-tests: New file.
2753 * tests/unistr/test-u16-cpy-alloc.c: New file.
2755 Tests for module 'unistr/u8-cpy-alloc'.
2756 * modules/unistr/u8-cpy-alloc-tests: New file.
2757 * tests/unistr/test-u8-cpy-alloc.c: New file.
2758 * tests/unistr/test-cpy-alloc.h: New file.
2760 Tests for module 'unistr/u32-mbsnlen'.
2761 * modules/unistr/u32-mbsnlen-tests: New file.
2762 * tests/unistr/test-u32-mbsnlen.c: New file.
2764 Tests for module 'unistr/u16-mbsnlen'.
2765 * modules/unistr/u16-mbsnlen-tests: New file.
2766 * tests/unistr/test-u16-mbsnlen.c: New file.
2768 Tests for module 'unistr/u8-mbsnlen'.
2769 * modules/unistr/u8-mbsnlen-tests: New file.
2770 * tests/unistr/test-u8-mbsnlen.c: New file.
2772 Tests for module 'unistr/u32-chr'.
2773 * modules/unistr/u32-chr-tests: New file.
2774 * tests/unistr/test-u32-chr.c: New file.
2776 Tests for module 'unistr/u16-chr'.
2777 * modules/unistr/u16-chr-tests: New file.
2778 * tests/unistr/test-u16-chr.c: New file.
2780 Tests for module 'unistr/u8-chr'.
2781 * modules/unistr/u8-chr-tests: New file.
2782 * tests/unistr/test-u8-chr.c: New file.
2783 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2785 Tests for module 'unistr/u32-cmp2'.
2786 * modules/unistr/u32-cmp2-tests: New file.
2787 * tests/unistr/test-u32-cmp2.c: New file.
2789 Tests for module 'unistr/u16-cmp2'.
2790 * modules/unistr/u16-cmp2-tests: New file.
2791 * tests/unistr/test-u16-cmp2.c: New file.
2793 Tests for module 'unistr/u8-cmp2'.
2794 * modules/unistr/u8-cmp2-tests: New file.
2795 * tests/unistr/test-u8-cmp2.c: New file.
2796 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2798 Tests for module 'unistr/u32-cmp'.
2799 * modules/unistr/u32-cmp-tests: New file.
2800 * tests/unistr/test-u32-cmp.c: New file.
2802 Tests for module 'unistr/u16-cmp'.
2803 * modules/unistr/u16-cmp-tests: New file.
2804 * tests/unistr/test-u16-cmp.c: New file.
2806 Tests for module 'unistr/u8-cmp'.
2807 * modules/unistr/u8-cmp-tests: New file.
2808 * tests/unistr/test-u8-cmp.c: New file.
2809 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2811 Tests for module 'unistr/u32-set'.
2812 * modules/unistr/u32-set-tests: New file.
2813 * tests/unistr/test-u32-set.c: New file.
2815 Tests for module 'unistr/u16-set'.
2816 * modules/unistr/u16-set-tests: New file.
2817 * tests/unistr/test-u16-set.c: New file.
2819 Tests for module 'unistr/u8-set'.
2820 * modules/unistr/u8-set-tests: New file.
2821 * tests/unistr/test-u8-set.c: New file.
2822 * tests/unistr/test-set.h: New file.
2824 Tests for module 'unistr/u32-move'.
2825 * modules/unistr/u32-move-tests: New file.
2826 * tests/unistr/test-u32-move.c: New file.
2828 Tests for module 'unistr/u16-move'.
2829 * modules/unistr/u16-move-tests: New file.
2830 * tests/unistr/test-u16-move.c: New file.
2832 Tests for module 'unistr/u8-move'.
2833 * modules/unistr/u8-move-tests: New file.
2834 * tests/unistr/test-u8-move.c: New file.
2835 * tests/unistr/test-move.h: New file.
2837 Tests for module 'unistr/u32-cpy'.
2838 * modules/unistr/u32-cpy-tests: New file.
2839 * tests/unistr/test-u32-cpy.c: New file.
2841 Tests for module 'unistr/u16-cpy'.
2842 * modules/unistr/u16-cpy-tests: New file.
2843 * tests/unistr/test-u16-cpy.c: New file.
2845 Tests for module 'unistr/u8-cpy'.
2846 * modules/unistr/u8-cpy-tests: New file.
2847 * tests/unistr/test-u8-cpy.c: New file.
2848 * tests/unistr/test-cpy.h: New file.
2850 2010-01-09 Bruno Haible <bruno@clisp.org>
2852 Tests for module 'unistr/u32-uctomb'.
2853 * modules/unistr/u32-uctomb-tests: New file.
2854 * tests/unistr/test-u32-uctomb.c: New file.
2856 Tests for module 'unistr/u16-uctomb'.
2857 * modules/unistr/u16-uctomb-tests: New file.
2858 * tests/unistr/test-u16-uctomb.c: New file.
2860 Tests for module 'unistr/u8-uctomb'.
2861 * modules/unistr/u8-uctomb-tests: New file.
2862 * tests/unistr/test-u8-uctomb.c: New file.
2864 Tests for module 'unistr/u32-mbtoucr'.
2865 * modules/unistr/u32-mbtoucr-tests: New file.
2866 * tests/unistr/test-u32-mbtoucr.c: New file.
2868 Tests for module 'unistr/u16-mbtoucr'.
2869 * modules/unistr/u16-mbtoucr-tests: New file.
2870 * tests/unistr/test-u16-mbtoucr.c: New file.
2872 Tests for module 'unistr/u8-mbtoucr'.
2873 * modules/unistr/u8-mbtoucr-tests: New file.
2874 * tests/unistr/test-u8-mbtoucr.c: New file.
2876 Tests for module 'unistr/u32-mbtouc'.
2877 * modules/unistr/u32-mbtouc-tests: New file.
2878 * tests/unistr/test-u32-mbtouc.c: New file.
2880 Tests for module 'unistr/u16-mbtouc'.
2881 * modules/unistr/u16-mbtouc-tests: New file.
2882 * tests/unistr/test-u16-mbtouc.c: New file.
2884 Tests for module 'unistr/u8-mbtouc'.
2885 * modules/unistr/u8-mbtouc-tests: New file.
2886 * tests/unistr/test-u8-mbtouc.c: New file.
2888 Tests for module 'unistr/u32-mbtouc-unsafe'.
2889 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2890 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2891 * tests/unistr/test-u32-mbtouc.h: New file.
2893 Tests for module 'unistr/u16-mbtouc-unsafe'.
2894 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2895 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2896 * tests/unistr/test-u16-mbtouc.h: New file.
2898 Tests for module 'unistr/u8-mbtouc-unsafe'.
2899 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2900 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2901 * tests/unistr/test-u8-mbtouc.h: New file.
2903 Tests for module 'unistr/u32-mblen'.
2904 * modules/unistr/u32-mblen-tests: New file.
2905 * tests/unistr/test-u32-mblen.c: New file.
2907 Tests for module 'unistr/u16-mblen'.
2908 * modules/unistr/u16-mblen-tests: New file.
2909 * tests/unistr/test-u16-mblen.c: New file.
2911 Tests for module 'unistr/u8-mblen'.
2912 * modules/unistr/u8-mblen-tests: New file.
2913 * tests/unistr/test-u8-mblen.c: New file.
2915 Tests for module 'unistr/u32-to-u16'.
2916 * modules/unistr/u32-to-u16-tests: New file.
2917 * tests/unistr/test-u32-to-u16.c: New file.
2919 Tests for module 'unistr/u32-to-u8'.
2920 * modules/unistr/u32-to-u8-tests: New file.
2921 * tests/unistr/test-u32-to-u8.c: New file.
2923 Tests for module 'unistr/u16-to-u32'.
2924 * modules/unistr/u16-to-u32-tests: New file.
2925 * tests/unistr/test-u16-to-u32.c: New file.
2927 Tests for module 'unistr/u16-to-u8'.
2928 * modules/unistr/u16-to-u8-tests: New file.
2929 * tests/unistr/test-u16-to-u8.c: New file.
2931 Tests for module 'unistr/u8-to-u32'.
2932 * modules/unistr/u8-to-u32-tests: New file.
2933 * tests/unistr/test-u8-to-u32.c: New file.
2935 Tests for module 'unistr/u8-to-u16'.
2936 * modules/unistr/u8-to-u16-tests: New file.
2937 * tests/unistr/test-u8-to-u16.c: New file.
2939 Tests for module 'unistr/u32-check'.
2940 * modules/unistr/u32-check-tests: New file.
2941 * tests/unistr/test-u32-check.c: New file.
2943 Tests for module 'unistr/u16-check'.
2944 * modules/unistr/u16-check-tests: New file.
2945 * tests/unistr/test-u16-check.c: New file.
2947 Tests for module 'unistr/u8-check'.
2948 * modules/unistr/u8-check-tests: New file.
2949 * tests/unistr/test-u8-check.c: New file.
2951 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2952 (category_equals): New function.
2953 (main): Add more tests.
2954 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2956 * tests/unictype/test-bidi_byname.c (main): Add more tests.
2958 2010-01-10 Bruno Haible <bruno@clisp.org>
2960 unistr/u*-strcoll: Try harder to distinguish different strings.
2961 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2962 compare s1 and s2 to see if they are different.
2964 2010-01-10 Bruno Haible <bruno@clisp.org>
2966 unistr/u*-stpncpy: Fix the return value.
2967 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2968 description of the return value consistent with stpncpy in glibc.
2969 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2970 written non-NUL unit.
2972 2010-01-10 Bruno Haible <bruno@clisp.org>
2974 unistr/u*-next: Add missing dependencies.
2975 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2976 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2977 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2979 2010-01-10 Bruno Haible <bruno@clisp.org>
2981 unistr/u8-mbsnlen: Fix return value for incomplete character.
2982 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2984 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2985 Remove unistr/u8-mblen.
2986 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2988 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2989 Remove unistr/u16-mblen.
2991 2010-01-10 Bruno Haible <bruno@clisp.org>
2993 wchar: Fix compilation error when <wchar.h> is used from coreutils.
2994 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2995 Reported by Brian Gough <bjg@gnu.org> and
2996 Chris Clayton <chris2553@googlemail.com> via
2997 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2999 2010-01-09 Bruno Haible <bruno@clisp.org>
3001 unistr/u16-to-u32: Reject invalid input.
3002 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3004 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3005 Remove unistr/u16-mbtouc.
3007 unistr/u16-to-u8: Reject invalid input.
3008 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3010 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3011 Remove unistr/u16-mbtouc.
3013 unistr/u8-to-u32: Reject invalid input.
3014 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3016 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3017 Remove unistr/u8-mbtouc.
3019 unistr/u8-to-u16: Reject invalid input.
3020 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3022 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3023 Remove unistr/u8-mbtouc.
3025 2010-01-09 Bruno Haible <bruno@clisp.org>
3027 Tests for module 'getlogin'.
3028 * modules/getlogin-tests: New file.
3029 * tests/test-getlogin.c: New file.
3031 New module 'getlogin'.
3032 * lib/unistd.in.h (getlogin): New declaration.
3033 * lib/getlogin.c: New file.
3034 * m4/getlogin.m4: New file.
3035 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3037 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3039 * modules/getlogin: New file.
3040 * doc/posix-functions/getlogin.texi: Mention the new module.
3041 Reported by John W. Eaton <jwe@gnu.org>.
3043 2010-01-09 Bruno Haible <bruno@clisp.org>
3045 getlogin_r: Support for native Windows.
3046 * lib/getlogin_r.c: Include <windows.h>
3047 (getlogin_r): Implement for native Windows.
3048 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3049 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3050 via John W. Eaton <jwe@gnu.org>.
3052 2010-01-09 Bruno Haible <bruno@clisp.org>
3054 getlogin_r: Small fixes.
3055 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3057 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3058 before testing whether getlogin_r is declared. No need to set
3059 HAVE_DECL_GETLOGIN_R to 1.
3060 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3062 2010-01-09 Bruno Haible <bruno@clisp.org>
3064 * lib/unistd.in.h (getlogin_r): Add comment.
3066 2010-01-09 Bruno Haible <bruno@clisp.org>
3068 Tests for module 'getlogin_r'.
3069 * modules/getlogin_r-tests: New file.
3070 * tests/test-getlogin_r.c: New file.
3072 2010-01-09 Jim Meyering <meyering@redhat.com>
3074 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3075 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3076 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3078 2010-01-08 Simon Josefsson <simon@josefsson.org>
3080 * lib/dup2.c (rpl_dup2): Improve comment.
3082 2010-01-08 Eric Blake <ebb9@byu.net>
3084 maint.mk: allow packages to add makefile @@ exceptions
3085 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3086 (sc_makefile_check): Rename...
3087 (sc_makefile_at_at_check): ...to this, and use hook.
3089 dup2: work around mingw bug
3090 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3091 Reported by Simon Josefsson.
3093 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
3095 glob: Fix C++ compilation.
3096 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3099 2010-01-07 Bruno Haible <bruno@clisp.org>
3101 Fix indentation of wctype.in.h, broken since 2007-01-06.
3102 * lib/wctype.in.h: Fix indentation of preprocessor directives.
3104 2010-01-07 Bruno Haible <bruno@clisp.org>
3106 mbslen: Avoid collision with system function.
3107 * lib/string.in.h [MirBSD]: Include <wchar.h>.
3108 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3109 * m4/mbslen.m4: New file.
3110 * modules/mbslen (Files): Add it.
3111 (configure.ac): Invoke gl_MBSLEN.
3112 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3113 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3114 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3115 via Ian Beckwith <ianb@erislabs.net>.
3117 2010-01-07 Bruno Haible <bruno@clisp.org>
3119 dirent: Document the last fix.
3120 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3122 2010-01-07 Bruno Haible <bruno@clisp.org>
3124 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3125 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3126 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3127 va_list are defined.
3128 * doc/posix-headers/stdio.texi: Document the bug of missing types.
3129 Reported by Eric Blake.
3131 2010-01-07 Bruno Haible <bruno@clisp.org>
3133 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3134 * modules/xlist (Depends-on): Add 'list',
3135 * modules/xoset (Depends-on): Add 'oset'.
3136 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3138 2010-01-07 Bruno Haible <bruno@clisp.org>
3140 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3141 * doc/posix-functions/strncasecmp.texi: Likewise.
3143 2010-01-07 Bruno Haible <bruno@clisp.org>
3145 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3147 2010-01-07 John W. Eaton <jwe@octave.org>
3149 wctype: allow C++ use
3150 * lib/wctype.in.h: Add extern "C" block for C++.
3152 2010-01-06 Eric Blake <ebb9@byu.net>
3154 maint.mk: detect incorrect GFDL usage
3155 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3157 2010-01-06 Jim Meyering <meyering@redhat.com>
3158 and Eric Blake <ebb9@byu.net>
3160 maint.mk: ignore multi-line copyright in NEWS
3161 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3163 2010-01-06 Eric Blake <ebb9@byu.net>
3165 select: add missing dependency
3166 * modules/select-tests (Depends-on): Move sockets dependency...
3167 * modules/select (Depends-on): ...here.
3168 Reported by Ian Beckwith.
3170 doc: regenerate INSTALL
3171 * doc/INSTALL: Reflect recent autoconf update.
3172 * doc/INSTALL.ISO: Likewise.
3173 * doc/INSTALL.UTF-8: Likewise.
3175 pread: fix compilation on glibc
3176 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3177 Reported by Ralf Wildenhues.
3179 dirent: fix test failure
3180 * lib/dirent.in.h (includes): Guarantee ino_t.
3181 Reported by Ralf Wildenhues.
3183 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
3185 linkat, renameat: avoid bad free
3186 * lib/at-func2.c (at_func2): Fix typo.
3187 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3189 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3191 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3192 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3193 to avoid failure of symlink test later.
3195 2010-01-06 Eric Blake <ebb9@byu.net>
3197 stdio, unistd: guarantee ssize_t
3198 * lib/unistd.in.h (includes): Ensure that types required by POSIX
3199 2008 are exposed when needed.
3200 * lib/stdio.in.h (includes): Likewise.
3201 Reported by Ralf Wildenhues.
3203 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
3205 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3206 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3207 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3209 2010-01-06 Jim Meyering <meyering@redhat.com>
3211 readtokens: this module *does* require xalloc.h
3212 It uses only functions that were omitted by the old syntax-check rule.
3213 * lib/readtokens.c: Include "xalloc.h" once again.
3214 * modules/readtokens (Depends-on): Add xalloc.
3215 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3217 2010-01-05 Eric Blake <ebb9@byu.net>
3219 maint: support 'make announcement' from a VPATH build
3220 * top/maint.mk (announcement): Look for correct NEWS file.
3222 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
3224 utimens (fdutimens): ignore a negative FD, per contract
3225 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3226 when we have a valid file descriptor. Otherwise, using a brand
3227 new glibc (with just-patched futimens that now fails with EBADF)
3228 would cause this function to fail with ENOSYS.
3229 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3230 See also http://bugzilla.redhat.com/552320.
3232 2010-01-05 Eric Blake <ebb9@byu.net>
3234 strcase: document what it provides
3235 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3237 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3238 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3240 2010-01-05 Jim Meyering <meyering@redhat.com>
3242 maint: remove useless inclusions of "xalloc.h"
3243 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3244 * lib/readtokens.c: Likewise.
3245 * lib/same.c: Likewise.
3246 * modules/getloadavg (Depends-on): Remove xalloc.
3247 * modules/readtokens: Likewise.
3248 * modules/same: Likewise.
3250 maint.mk: include 4 more function names in alloca.h-checking regexp
3251 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3252 regexp. Before, we would give a false-positive (saying alloca.h
3253 is included unnecessarily) when the only uses involved omitted symbols.
3255 xalloc.h: use consistent formatting
3256 * lib/xalloc.h: Move declarations to start in the first column.
3258 2010-01-05 Eric Blake <ebb9@byu.net>
3261 * lib/mkdir.c (includes): Drop unused header.
3262 Reported by John W. Eaton.
3264 2010-01-04 Jim Meyering <meyering@redhat.com>
3266 nl_langinfo: avoid configure-time syntax error
3267 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3268 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3269 the empty string. Don't let that provoke a shell syntax error.
3271 regcomp, regexec, fnmatch: avoid array bounds read error
3272 * lib/regcomp.c (build_equiv_class): From glibc:
3273 Use only the low 24 bits of a findidx return value as an index
3274 into the weights array. Patch by Ulrich Drepper:
3275 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3276 * lib/regexec.c (check_node_accept_bytes): Likewise.
3277 * lib/fnmatch_loop.c (FCT): Likewise.
3279 regcomp: skip collseq lookup when there are no rules
3280 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3281 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3283 regcomp: recognize ill-formed { } expressions
3284 * lib/regcomp.c (parse_dup_op): From glibc:
3285 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3287 regcomp: fix typo in comment
3288 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3289 s/satisfy/satisfies/.
3291 regcomp: sync from glibc: remove dead store
3292 * lib/regcomp.c (duplicate_node_closure): Remove useless
3293 search_duplicated_node call and dead store.
3295 regcomp: sync from glibc; always use nl_langinfo
3296 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3297 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
3298 * modules/regex (Depends-on): Add nl_langinfo.
3300 2010-01-04 Eric Blake <ebb9@byu.net>
3302 fdopendir: fix configure test
3303 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3305 2010-01-01 Bruno Haible <bruno@clisp.org>
3307 wchar: Remove unused configure check.
3308 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3310 2010-01-01 Eric Blake <ebb9@byu.net>
3312 headers: make check of system header explicit
3313 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3314 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3316 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3317 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3318 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3319 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3321 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3323 Suggested by Bruno Haible.
3325 2010-01-01 Jim Meyering <meyering@redhat.com>
3327 ChangeLog: tweak to eliminate unnecessary copyright line
3328 * ChangeLog: Remove a copyright line that was mistakenly updated
3329 by today's update-copyright run. Reported by Eric Blake.
3331 test-update-copyright: don't let envvar setting cause test failure
3332 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3334 2010-01-01 Bruno Haible <bruno@clisp.org>
3336 localename: Avoid gcc warning.
3337 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3338 function if it is not used.
3340 2010-01-01 Jim Meyering <meyering@redhat.com>
3342 update nearly all FSF copyright year lists to include 2010
3343 Use the same procedure as for 2009, outlined in
3344 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3346 version-etc: set COPYRIGHT_YEAR to 2010
3347 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3349 2009-12-31 Eric Blake <ebb9@byu.net>
3351 doc: correct availability of cygwin 1.5.x getopt
3352 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3354 * doc/posix-functions/opterr.texi (opterr): Likewise.
3355 * doc/posix-functions/optind.texi (optind): Likewise.
3356 * doc/posix-functions/optopt.texi (optopt): Likewise.
3357 * doc/posix-functions/tzname.texi (tzname): Likewise.
3359 openat: update maintainer
3360 * modules/openat (Maintainer): Add myself.
3362 utimens: avoid shadowing warning
3363 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3364 buffers into one, to avoid shadowing, as well as avoiding a
3366 Reported by Jim Meyering.
3368 test-dup2: avoid compiler warning
3369 * tests/test-dup2.c (is_inheritable): Only define if used.
3371 2010-01-01 Bruno Haible <bruno@clisp.org>
3373 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3374 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3375 defined, use wctomb instead of wcrtomb.
3377 2010-01-01 Bruno Haible <bruno@clisp.org>
3379 iconv: Reject native Solaris iconv.
3380 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3381 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3383 2009-12-31 Bruno Haible <bruno@clisp.org>
3385 * tests/test-signal.c (main): Remove test of 'SIG'.
3387 2009-12-31 Bruno Haible <bruno@clisp.org>
3389 spawn: Fix incomplete fix.
3390 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3391 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3392 warnings for GNULIB_POSIXCHECK again.
3393 Reported by Eric Blake.
3395 2009-12-31 Bruno Haible <bruno@clisp.org>
3397 Avoid namespace pollution on glibc systems.
3398 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3399 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3400 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3403 2009-12-31 Bruno Haible <bruno@clisp.org>
3405 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3406 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3407 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3408 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3409 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3410 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3411 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3413 2009-12-31 Bruno Haible <bruno@clisp.org>
3415 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3416 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3419 2009-12-31 Bruno Haible <bruno@clisp.org>
3421 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3424 2009-12-31 Bruno Haible <bruno@clisp.org>
3426 spawn: Fix misapplied patch.
3427 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3428 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3429 warnings for GNULIB_POSIXCHECK.
3431 2009-12-31 Bruno Haible <bruno@clisp.org>
3433 times: Update after sys_times changed.
3434 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3435 * modules/times (Files): Add it.
3436 (configure.ac): Invoke gl_FUNC_TIMES.
3438 2009-12-31 Bruno Haible <bruno@clisp.org>
3440 Use AC_C_INLINE where necessary.
3441 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3442 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3443 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3444 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3445 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3446 * m4/mbiter.m4 (gl_MBITER): Likewise.
3447 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3448 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3449 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3450 * modules/u64 (configure.ac): Likewise.
3452 2009-12-31 Bruno Haible <bruno@clisp.org>
3454 Use AC_C_INLINE instead of module 'inline' where possible.
3455 * modules/inline (Description): Clarify purpose.
3456 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3457 * modules/count-one-bits (Depends-on): Remove inline.
3458 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3459 * modules/openat (Depends-on): Remove inline.
3460 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3461 instead of depending on module 'inline'.
3462 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3463 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3464 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3465 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3466 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3467 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3468 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3469 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3470 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3471 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3472 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3473 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3474 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3475 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3476 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3477 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3478 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3479 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3481 * modules/unictype/property-ascii-hex-digit (Depends-on,
3482 configure.ac): Likewise.
3483 * modules/unictype/property-bidi-arabic-digit (Depends-on,
3484 configure.ac): Likewise.
3485 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3486 configure.ac): Likewise.
3487 * modules/unictype/property-bidi-block-separator (Depends-on,
3488 configure.ac): Likewise.
3489 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3490 configure.ac): Likewise.
3491 * modules/unictype/property-bidi-common-separator (Depends-on,
3492 configure.ac): Likewise.
3493 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3495 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3496 configure.ac): Likewise.
3497 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3498 configure.ac): Likewise.
3499 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3500 configure.ac): Likewise.
3501 * modules/unictype/property-bidi-european-digit (Depends-on,
3502 configure.ac): Likewise.
3503 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3504 configure.ac): Likewise.
3505 * modules/unictype/property-bidi-left-to-right (Depends-on,
3506 configure.ac): Likewise.
3507 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3508 configure.ac): Likewise.
3509 * modules/unictype/property-bidi-other-neutral (Depends-on,
3510 configure.ac): Likewise.
3511 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3513 * modules/unictype/property-bidi-segment-separator (Depends-on,
3514 configure.ac): Likewise.
3515 * modules/unictype/property-bidi-whitespace (Depends-on,
3516 configure.ac): Likewise.
3517 * modules/unictype/property-combining (Depends-on, configure.ac):
3519 * modules/unictype/property-composite (Depends-on, configure.ac):
3521 * modules/unictype/property-currency-symbol (Depends-on,
3522 configure.ac): Likewise.
3523 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3524 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3526 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3527 configure.ac): Likewise.
3528 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3530 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3532 * modules/unictype/property-extender (Depends-on, configure.ac):
3534 * modules/unictype/property-format-control (Depends-on, configure.ac):
3536 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3538 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3540 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3542 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3544 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3546 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3548 * modules/unictype/property-id-start (Depends-on, configure.ac):
3550 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3552 * modules/unictype/property-ids-binary-operator (Depends-on,
3553 configure.ac): Likewise.
3554 * modules/unictype/property-ids-trinary-operator (Depends-on,
3555 configure.ac): Likewise.
3556 * modules/unictype/property-ignorable-control (Depends-on,
3557 configure.ac): Likewise.
3558 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3560 * modules/unictype/property-join-control (Depends-on, configure.ac):
3562 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3564 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3566 * modules/unictype/property-logical-order-exception (Depends-on,
3567 configure.ac): Likewise.
3568 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3570 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3571 * modules/unictype/property-non-break (Depends-on, configure.ac):
3573 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3575 * modules/unictype/property-numeric (Depends-on, configure.ac):
3577 * modules/unictype/property-other-alphabetic (Depends-on,
3578 configure.ac): Likewise.
3579 * modules/unictype/property-other-default-ignorable-code-point
3580 (Depends-on, configure.ac): Likewise.
3581 * modules/unictype/property-other-grapheme-extend (Depends-on,
3582 configure.ac): Likewise.
3583 * modules/unictype/property-other-id-continue (Depends-on,
3584 configure.ac): Likewise.
3585 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3587 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3589 * modules/unictype/property-other-math (Depends-on, configure.ac):
3591 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3593 * modules/unictype/property-paired-punctuation (Depends-on,
3594 configure.ac): Likewise.
3595 * modules/unictype/property-paragraph-separator (Depends-on,
3596 configure.ac): Likewise.
3597 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3599 * modules/unictype/property-pattern-white-space (Depends-on,
3600 configure.ac): Likewise.
3601 * modules/unictype/property-private-use (Depends-on, configure.ac):
3603 * modules/unictype/property-punctuation (Depends-on, configure.ac):
3605 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3607 * modules/unictype/property-radical (Depends-on, configure.ac):
3609 * modules/unictype/property-sentence-terminal (Depends-on,
3610 configure.ac): Likewise.
3611 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3613 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3614 * modules/unictype/property-terminal-punctuation (Depends-on,
3615 configure.ac): Likewise.
3616 * modules/unictype/property-titlecase (Depends-on, configure.ac):
3618 * modules/unictype/property-unassigned-code-value (Depends-on,
3619 configure.ac): Likewise.
3620 * modules/unictype/property-unified-ideograph (Depends-on,
3621 configure.ac): Likewise.
3622 * modules/unictype/property-uppercase (Depends-on, configure.ac):
3624 * modules/unictype/property-variation-selector (Depends-on,
3625 configure.ac): Likewise.
3626 * modules/unictype/property-white-space (Depends-on, configure.ac):
3628 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3630 * modules/unictype/property-xid-start (Depends-on, configure.ac):
3632 * modules/unictype/property-zero-width (Depends-on, configure.ac):
3634 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3635 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3638 2009-12-31 Bruno Haible <bruno@clisp.org>
3640 Remove unnecessary AC_C_INLINE invocation.
3641 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3644 2009-12-31 Jim Meyering <meyering@redhat.com>
3646 maint.mk: don't require explicit gpg_key_ID in cfg.mk
3647 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3648 With this change, we can all remove the gpg_key_ID = ... definition
3649 from our respective cfg.mk files.
3651 maint.mk: create announcement template in ~/, not in /tmp
3652 * top/maint.mk (emit_upload_commands): Adjust.
3653 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3654 Remove temporary file, .ci-msg.
3656 2009-12-31 Eric Blake <ebb9@byu.net>
3658 link-warning: always build headers with link warnings
3659 * modules/arpa_inet (Makefile.am): Always build replacement
3661 * modules/ctype (Makefile.am): Likewise.
3662 * modules/dirent (Makefile.am): Likewise.
3663 * modules/inttypes (Makefile.am): Likewise.
3664 * modules/langinfo (Makefile.am): Likewise.
3665 * modules/locale (Makefile.am): Likewise.
3666 * modules/spawn (Makefile.am): Likewise.
3667 * modules/sys_file (Makefile.am): Likewise.
3668 * modules/sys_ioctl (Makefile.am): Likewise.
3669 * modules/sys_select (Makefile.am): Likewise.
3670 * modules/sys_socket (Makefile.am): Likewise.
3671 * modules/sys_times (Makefile.am): Likewise.
3672 * modules/sys_utsname (Makefile.am): Likewise.
3673 * modules/sys_wait (Makefile.am): Likewise.
3674 * modules/wchar (Makefile.am): Likewise.
3675 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3676 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3677 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3678 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3679 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3681 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3682 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3683 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3685 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3687 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3688 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3689 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3690 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3691 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3692 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3693 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3694 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3695 (gl_WCHAR_H_DEFAULTS): Likewise.
3697 2009-12-31 Eric Blake <ebb9@byu.net>
3699 signal, spawn: use link warnings
3700 * lib/signal.in.h (sigset_t): Make unconditional.
3701 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3702 (sigpending, sigprocmask, sigaction): Add link warnings.
3703 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3704 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3705 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3706 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3707 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3708 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3709 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3710 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3711 (posix_spawn_file_actions_destroy)
3712 (posix_spawn_file_actions_addopen)
3713 (posix_spawn_file_actions_addclose)
3714 (posix_spawn_file_actions_adddup2): Likewise.
3715 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3716 * tests/test-signal.c (main): Enhance test.
3718 spawn: improve wrapper support
3719 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3720 (gl_SPAWN_H_DEFAULTS): New defaults.
3721 * modules/spawn (Makefile.am): Substitute them.
3722 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3723 Only declare if missing or broken.
3725 sys_times, sys_utsname: use include_next
3726 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3728 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3729 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3730 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3731 * modules/sys_times (Depends-on): Add include_next.
3732 (Makefile.am): Substitute additional values.
3733 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3734 * lib/sys_times.in.h (includes): Include native header, if
3736 * lib/sys_utsname.in.h (includes): Likewise.
3737 * tests/test-sys_times.c (main): Enhance test.
3739 fdutimensat: revert prior patch
3740 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3742 Reported by Bruno Haible.
3744 2009-12-30 Eric Blake <ebb9@byu.net>
3746 sys_wait: drop link-warning dependency
3747 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3748 link-warning efforts.
3749 * lib/sys_wait.in.h: Likewise.
3751 fdutimensat: remove bogus dependency
3752 * modules/fdutimensat (Depends-on): Drop inline.
3755 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3757 2009-12-30 Bruno Haible <bruno@clisp.org>
3759 Fix compilation error with Solaris cc.
3760 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3761 * lib/unicase/u16-is-invariant.c: Likewise.
3762 * lib/unicase/u32-is-invariant.c: Likewise.
3763 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3765 2009-12-30 Bruno Haible <bruno@clisp.org>
3768 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3770 Reported by Simon Josefsson <simon@josefsson.org>.
3772 2009-12-30 Bruno Haible <bruno@clisp.org>
3774 Fix compilation error on most platforms.
3775 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3776 Reported by Simon Josefsson <simon@josefsson.org>
3777 and Nelson H. F. Beebe <beebe@math.utah.edu>.
3779 2009-12-30 Eric Blake <ebb9@byu.net>
3781 futimens, utimensat: work around ntfs-3g bug
3782 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3783 a ctime bug is present, and expand workaround to cover ntfs-3g.
3784 * lib/utimens.c (fdutimens, lutimens): Likewise.
3785 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3786 (validate_timespec): Adjust return value.
3787 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3788 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3789 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3791 2009-12-29 Eric Blake <ebb9@byu.net>
3793 link-warning: make usage consistent
3794 * modules/ctype (Depends-on): Add link-warning.
3795 (Makefile.am): Update rules accordingly.
3796 * modules/langinfo (Depends-on, Makefile.am): Likewise.
3797 * modules/locale (Depends-on, Makefile.am): Likewise.
3798 * modules/sys_file (Makefile.am): Likewise.
3799 * modules/getopt-posix (Makefile.am): Delete unused link warning
3801 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3802 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3803 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3804 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3806 stdio: remove unused variables
3807 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3808 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3809 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3811 tests: test more substitute headers
3812 * modules/ctype-tests: New file.
3813 * modules/dirent-tests: Likewise.
3814 * modules/spawn-tests: Likewise.
3815 * modules/sys_file-tests: Likewise.
3816 * modules/sys_ioctl-tests: Likewise.
3817 * modules/sys_wait-tests: Likewise.
3818 * tests/test-ctype.c: Likewise.
3819 * tests/test-dirent.c: Likewise.
3820 * tests/test-spawn.c: Likewise.
3821 * tests/test-sys_file.c: Likewise.
3822 * tests/test-sys_ioctl.c: Likewise.
3823 * tests/test-sys_wait.c: Likewise.
3824 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3825 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3826 whether or not flock is in use.
3828 tests: remove License section from module
3829 * modules/arpa_inet-tests: Remove unneeded section.
3830 * modules/byteswap-tests: Likewise.
3831 * modules/ceilf-tests: Likewise.
3832 * modules/ceill-tests: Likewise.
3833 * modules/crypto/des-tests: Likewise.
3834 * modules/crypto/gc-arcfour-tests: Likewise.
3835 * modules/crypto/gc-arctwo-tests: Likewise.
3836 * modules/crypto/gc-des-tests: Likewise.
3837 * modules/crypto/gc-hmac-md5-tests: Likewise.
3838 * modules/crypto/gc-hmac-sha1-tests: Likewise.
3839 * modules/crypto/gc-md2-tests: Likewise.
3840 * modules/crypto/gc-md4-tests: Likewise.
3841 * modules/crypto/gc-md5-tests: Likewise.
3842 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3843 * modules/crypto/gc-rijndael-tests: Likewise.
3844 * modules/crypto/gc-sha1-tests: Likewise.
3845 * modules/crypto/gc-tests: Likewise.
3846 * modules/crypto/md2-tests: Likewise.
3847 * modules/crypto/md4-tests: Likewise.
3848 * modules/fcntl-h-tests: Likewise.
3849 * modules/floorf-tests: Likewise.
3850 * modules/floorl-tests: Likewise.
3851 * modules/frexp-nolibm-tests: Likewise.
3852 * modules/frexp-tests: Likewise.
3853 * modules/frexpl-nolibm-tests: Likewise.
3854 * modules/frexpl-tests: Likewise.
3855 * modules/getaddrinfo-tests: Likewise.
3856 * modules/inttypes-tests: Likewise.
3857 * modules/isfinite-tests: Likewise.
3858 * modules/isinf-tests: Likewise.
3859 * modules/ldexpl-tests: Likewise.
3860 * modules/locale-tests: Likewise.
3861 * modules/math-tests: Likewise.
3862 * modules/netdb-tests: Likewise.
3863 * modules/netinet_in-tests: Likewise.
3864 * modules/printf-frexp-tests: Likewise.
3865 * modules/printf-frexpl-tests: Likewise.
3866 * modules/priv-set-tests: Likewise.
3867 * modules/random_r-tests: Likewise.
3868 * modules/round-tests: Likewise.
3869 * modules/roundf-tests: Likewise.
3870 * modules/roundl-tests: Likewise.
3871 * modules/search-tests: Likewise.
3872 * modules/select-tests: Likewise.
3873 * modules/signal-tests: Likewise.
3874 * modules/stdbool-tests: Likewise.
3875 * modules/stddef-tests: Likewise.
3876 * modules/stdint-tests: Likewise.
3877 * modules/stdio-tests: Likewise.
3878 * modules/stdlib-tests: Likewise.
3879 * modules/string-tests: Likewise.
3880 * modules/strings-tests: Likewise.
3881 * modules/sys_select-tests: Likewise.
3882 * modules/sys_socket-tests: Likewise.
3883 * modules/sys_stat-tests: Likewise.
3884 * modules/sys_time-tests: Likewise.
3885 * modules/sys_utsname-tests: Likewise.
3886 * modules/sysexits-tests: Likewise.
3887 * modules/time-tests: Likewise.
3888 * modules/trunc-tests: Likewise.
3889 * modules/truncf-tests: Likewise.
3890 * modules/truncl-tests: Likewise.
3891 * modules/tsearch-tests: Likewise.
3892 * modules/unistd-tests: Likewise.
3893 * modules/wchar-tests: Likewise.
3894 * modules/wctype-tests: Likewise.
3896 tests: fix license on several tests
3897 * tests/test-des.c: Update to GPLv3+.
3898 * tests/test-flock.c: Likewise.
3899 * tests/test-fsync.c: Likewise.
3900 * tests/test-futimens.h: Likewise.
3901 * tests/test-gc-arcfour.c: Likewise.
3902 * tests/test-gc-arctwo.c: Likewise.
3903 * tests/test-gc-des.c: Likewise.
3904 * tests/test-gc-hmac-md5.c: Likewise.
3905 * tests/test-gc-hmac-sha1.c: Likewise.
3906 * tests/test-gc-md2.c: Likewise.
3907 * tests/test-gc-md4.c: Likewise.
3908 * tests/test-gc-md5.c: Likewise.
3909 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3910 * tests/test-gc-rijndael.c: Likewise.
3911 * tests/test-gc-sha1.c: Likewise.
3912 * tests/test-gc.c: Likewise.
3913 * tests/test-getcwd.c: Likewise.
3914 * tests/test-link.c: Likewise.
3915 * tests/test-link.h: Likewise.
3916 * tests/test-lutimens.h: Likewise.
3917 * tests/test-md2.c: Likewise.
3918 * tests/test-md4.c: Likewise.
3919 * tests/test-mkdir.h: Likewise.
3920 * tests/test-rename.c: Likewise.
3921 * tests/test-rename.h: Likewise.
3922 * tests/test-safe-alloc.c: Likewise.
3923 * tests/test-utimens-common.h: Likewise.
3924 * tests/test-utimens.h: Likewise.
3926 maint: sync license texts
3927 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3928 * doc/gpl-3.0.texi: Revert copyright year update.
3929 * doc/lgpl-3.0.texi: Likewise.
3931 2009-12-29 Jim Meyering <meyering@redhat.com>
3933 update nearly all FSF copyright year lists to include 2009
3934 The files named by the following are exempted:
3935 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3936 test -f "$dst" && { echo "$dst"; continue; }
3937 test -d "$dst" || continue
3938 echo "$dst"/$(basename "$src")
3940 git ls-files tests/unictype >> exempt
3941 In the remaining files, convert to all-interval notation if
3942 - there is already at least one year interval like 2000-2003
3943 - the file is maintained by me
3944 - the file is in lib/uni*/, where that style already prevails
3945 Otherwise, use update-copyright's default.
3947 2009-12-29 Simon Josefsson <simon@josefsson.org>
3948 and Eric Blake <ebb9@byu.net>
3950 tests: don't require debug system() to pass
3951 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3952 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3953 * tests/test-unlink.h (test_unlink_func): Likewise.
3954 * tests/test-fstatat.c (main): ...into callers.
3955 * tests/test-lstat.c (main): Likewise.
3956 * tests/test-rmdir.c (main): Likewise.
3957 * tests/test-unlink.c (main): Likewise.
3958 * tests/test-unlinkat.c (main): Likewise.
3959 * tests/test-areadlink-with-size.c (main): Don't require a
3960 debug-only system call to pass, aiding cross-testing to mingw.
3961 * tests/test-areadlink.c (main): Likewise.
3962 * tests/test-areadlinkat-with-size.c (main): Likewise.
3963 * tests/test-areadlinkat.c (main): Likewise.
3964 * tests/test-canonicalize-lgpl.c (main): Likewise.
3965 * tests/test-canonicalize.c (main): Likewise.
3966 * tests/test-chown.c (main): Likewise.
3967 * tests/test-fchownat.c (main): Likewise.
3968 * tests/test-lchown.c (main): Likewise.
3969 * tests/test-fdutimensat.c (main): Likewise.
3970 * tests/test-futimens.c (main): Likewise.
3971 * tests/test-link.c (main): Likewise.
3972 * tests/test-linkat.c (main): Likewise.
3973 * tests/test-mkdir.c (main): Likewise.
3974 * tests/test-mkdirat.c (main): Likewise.
3975 * tests/test-mkfifo.c (main): Likewise.
3976 * tests/test-mkfifoat.c (main): Likewise.
3977 * tests/test-mknod.c (main): Likewise.
3978 * tests/test-readlink.c (main): Likewise.
3979 * tests/test-remove.c (main): Likewise.
3980 * tests/test-rename.c (main): Likewise.
3981 * tests/test-renameat.c (main): Likewise.
3982 * tests/test-symlink.c (main): Likewise.
3983 * tests/test-symlinkat.c (main): Likewise.
3984 * tests/test-utimens.c (main): Likewise.
3985 * tests/test-utimensat.c (main): Likewise.
3987 2009-12-29 Simon Josefsson <simon@josefsson.org>
3989 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3990 on $(UNUSED_PARAMETER_H) to avoid build failure.
3992 2009-12-28 Jim Meyering <meyering@redhat.com>
3994 update-copyright: you may specify a max. line length other than 72
3995 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3997 maint: use consistent FSF copyright line syntax
3998 * lib/posixtm.c: Add missing comma in FSF copyright line.
3999 * lib/posixtm.h: Likewise.
4000 * lib/getugroups.c: Add missing ", Inc.".
4002 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4003 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4004 FSF copyright line. Remove trailing blanks.
4006 2009-12-28 Eric Blake <ebb9@byu.net>
4008 test-dup2: reduce dependencies
4009 * modules/cloexec (Configure.ac): Set witness.
4010 * modules/dup2-tests (Depends-on): Drop cloexec.
4011 * tests/test-dup2.c (main): Skip portion of test if cloexec module
4013 Suggested by Bruno Haible.
4015 2009-12-26 Bruno Haible <bruno@clisp.org>
4017 Remove an unneeded dependency.
4018 * modules/fseterr (Depends-on): Remove dup2.
4020 2009-12-26 Eric Blake <ebb9@byu.net>
4022 tests: use macros.h in more places
4023 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4024 (ASSERT_STREAM): Provide default of stderr.
4025 * tests/test-dirent-safer.c: Include macros.h, using alternate
4026 stream for assertions.
4027 * tests/test-dup-safer.c: Likewise.
4028 * tests/test-freopen-safer.c: Likewise.
4029 * tests/test-getopt.c: Likewise.
4030 * tests/test-openat-safer.c: Likewise.
4031 * tests/test-pipe.c: Likewise.
4032 * tests/test-popen-safer.c: Likewise.
4033 * modules/dirent-safer-tests (Files): Include macros.h.
4034 * modules/unistd-safer-tests (Files): Likewise.
4035 * modules/freopen-safer-tests (Files): Likewise.
4036 * modules/getopt-posix-tests (Files): Likewise.
4037 * modules/openat-safer-tests (Files): Likewise.
4038 * modules/pipe-tests (Files): Likewise.
4040 2009-12-26 Bruno Haible <bruno@clisp.org>
4042 javacomp: Portability fix.
4043 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4044 that it also works on Solaris.
4046 2009-12-26 Bruno Haible <bruno@clisp.org>
4048 localename: Fix storage allocation of gl_locale_name_thread's result.
4049 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4050 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4051 all platforms that have 'uselocale'.
4052 (gl_locale_name_thread_unsafe): New function, extracted from
4053 gl_locale_name_thread.
4054 (gl_locale_name_thread): Call struniq on all platforms that have
4056 * tests/test-localename.c (test_locale_name_thread): Check that the
4057 resulting strings are permanently allocated.
4058 * modules/localename-tests (Depends-on): Add strdup.
4060 2009-12-26 Bruno Haible <bruno@clisp.org>
4062 * tests/test-localename.c (categories): Fill in the strings.
4064 2009-12-26 Jim Meyering <meyering@redhat.com>
4066 isdir: complete the removal of m4/isdir.m4
4067 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4069 isdir: clean up, since at least grep still uses it
4070 * lib/isdir.c: Include "isdir.h".
4071 (S_ISDIR): Remove now-unneeded definition.
4072 * modules/isdir (Files): Add lib/isdir.h.
4073 * lib/isdir.h: New file, with declaration.
4074 * m4/isdir.m4: Remove file -- unneeded.
4076 2009-12-25 Bruno Haible <bruno@clisp.org>
4078 selinux-h: Make generated .h files standalone.
4079 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4080 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4081 * lib/se-selinux.in.h: Likewise.
4082 * modules/selinux-h (Depends-on): Add unused-parameter.
4083 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4084 selinux/selinux.h and selinux/context.h.
4085 Suggested by Eric Blake.
4087 2009-12-25 Bruno Haible <bruno@clisp.org>
4089 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4090 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4091 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4092 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4093 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4095 2009-12-24 Bruno Haible <bruno@clisp.org>
4097 openat: Fix warning.
4098 * lib/openat-proc.c: Include <unistd.h>.
4100 2009-12-24 Bruno Haible <bruno@clisp.org>
4102 New module 'unused-parameter'.
4103 * build-aux/unused-parameter.h: New file, extracted from earlier
4105 * modules/unused-parameter: New file.
4106 * lib/unistr.h: Include unused-parameter.h.
4107 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4109 * modules/unistr/base (Depends-on): Add unused-parameter.
4111 2009-12-24 Bruno Haible <bruno@clisp.org>
4113 Add missing dependencies to 'extensions' module.
4114 * m4/extensions.m4: Add comment.
4115 * modules/accept4 (Depends-on): Add extensions.
4116 * modules/dup3 (Depends-on): Likewise.
4117 * modules/fcntl (Depends-on): Likewise.
4118 * modules/futimens (Depends-on): Likewise.
4119 * modules/mknod (Depends-on): Likewise.
4120 * modules/pipe2 (Depends-on): Likewise.
4121 * modules/stat-time (Depends-on): Likewise.
4122 * modules/strcasestr-simple (Depends-on): Likewise.
4123 * modules/strsignal (Depends-on): Likewise.
4124 * modules/utimensat (Depends-on): Likewise.
4125 * modules/localcharset (Depends-on): Likewise. Needed because of
4127 * modules/wcrtomb (Depends-on): Likewise. Needed because of
4129 * modules/wcsnrtombs (Depends-on): Likewise.
4130 * modules/wcsrtombs (Depends-on): Likewise.
4132 2009-12-24 Bruno Haible <bruno@clisp.org>
4134 binary-io: Avoid gcc warning due to SET_BINARY.
4135 * lib/binary-io.h (SET_BINARY): Cast the result to void.
4136 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4138 2009-12-24 Bruno Haible <bruno@clisp.org>
4140 Avoid future namespace pollution on glibc systems.
4141 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4142 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4143 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4146 2009-12-24 Bruno Haible <bruno@clisp.org>
4148 Refactor common macros used in tests.
4149 * tests/macros.h: New file.
4150 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4151 and/or <stdlib.h>, if appropriate.
4152 (ASSERT, SIZEOF): Remove macros.
4153 * tests/test-areadlink-with-size.c: Likewise.
4154 * tests/test-areadlinkat.c: Likewise.
4155 * tests/test-areadlinkat-with-size.c: Likewise.
4156 * tests/test-argmatch.c: Likewise.
4157 * tests/test-argv-iter.c: Likewise.
4158 * tests/test-array-mergesort.c: Likewise.
4159 * tests/test-array_list.c: Likewise.
4160 * tests/test-array_oset.c: Likewise.
4161 * tests/test-avltree_list.c: Likewise.
4162 * tests/test-avltree_oset.c: Likewise.
4163 * tests/test-avltreehash_list.c: Likewise.
4164 * tests/test-base64.c: Likewise.
4165 * tests/test-binary-io.c: Likewise.
4166 * tests/test-bitrotate.c: Likewise.
4167 * tests/test-btowc.c: Likewise.
4168 * tests/test-byteswap.c: Likewise.
4169 * tests/test-c-ctype.c: Likewise.
4170 * tests/test-c-stack.c: Likewise.
4171 * tests/test-c-strcasecmp.c: Likewise.
4172 * tests/test-c-strcasestr.c: Likewise.
4173 * tests/test-c-strncasecmp.c: Likewise.
4174 * tests/test-c-strstr.c: Likewise.
4175 * tests/test-canonicalize-lgpl.c: Likewise.
4176 * tests/test-canonicalize.c: Likewise.
4177 * tests/test-carray_list.c: Likewise.
4178 * tests/test-ceilf1.c: Likewise.
4179 * tests/test-ceilf2.c: Likewise.
4180 * tests/test-ceill.c: Likewise.
4181 * tests/test-chown.c: Likewise.
4182 * tests/test-cloexec.c: Likewise.
4183 * tests/test-copy-acl.c: Likewise.
4184 * tests/test-copy-file.c: Likewise.
4185 * tests/test-count-one-bits.c: Likewise.
4186 * tests/test-dprintf-posix.c: Likewise.
4187 * tests/test-dup2.c: Likewise.
4188 * tests/test-dup3.c: Likewise.
4189 * tests/test-duplocale.c: Likewise.
4190 * tests/test-fbufmode.c: Likewise.
4191 * tests/test-fchdir.c: Likewise.
4192 * tests/test-fchownat.c: Likewise.
4193 * tests/test-fcntl-safer.c: Likewise.
4194 * tests/test-fcntl.c: Likewise.
4195 * tests/test-fdopendir.c: Likewise.
4196 * tests/test-fdutimensat.c: Likewise.
4197 * tests/test-fflush2.c: Likewise.
4198 * tests/test-file-has-acl.c: Likewise.
4199 * tests/test-filevercmp.c: Likewise.
4200 * tests/test-flock.c: Likewise.
4201 * tests/test-floorf1.c: Likewise.
4202 * tests/test-floorf2.c: Likewise.
4203 * tests/test-floorl.c: Likewise.
4204 * tests/test-fnmatch.c: Likewise.
4205 * tests/test-fopen.h: Likewise.
4206 * tests/test-fpending.c: Likewise.
4207 * tests/test-fprintf-posix.c: Likewise.
4208 * tests/test-fpurge.c: Likewise.
4209 * tests/test-freadable.c: Likewise.
4210 * tests/test-freadahead.c: Likewise.
4211 * tests/test-freading.c: Likewise.
4212 * tests/test-freadptr.c: Likewise.
4213 * tests/test-freadptr2.c: Likewise.
4214 * tests/test-freadseek.c: Likewise.
4215 * tests/test-freopen.c: Likewise.
4216 * tests/test-frexp.c: Likewise.
4217 * tests/test-frexpl.c: Likewise.
4218 * tests/test-fseek.c: Likewise.
4219 * tests/test-fseeko.c: Likewise.
4220 * tests/test-fstatat.c: Likewise.
4221 * tests/test-fstrcmp.c: Likewise.
4222 * tests/test-fsync.c: Likewise.
4223 * tests/test-ftell.c: Likewise.
4224 * tests/test-ftello.c: Likewise.
4225 * tests/test-func.c: Likewise.
4226 * tests/test-futimens.c: Likewise.
4227 * tests/test-fwritable.c: Likewise.
4228 * tests/test-fwriting.c: Likewise.
4229 * tests/test-getcwd.c: Likewise.
4230 * tests/test-getdate.c: Likewise.
4231 * tests/test-getdelim.c: Likewise.
4232 * tests/test-getdtablesize.c: Likewise.
4233 * tests/test-getgroups.c: Likewise.
4234 * tests/test-getline.c: Likewise.
4235 * tests/test-getndelim2.c: Likewise.
4236 * tests/test-glob.c: Likewise.
4237 * tests/test-hash.c: Likewise.
4238 * tests/test-i-ring.c: Likewise.
4239 * tests/test-iconv-utf.c: Likewise.
4240 * tests/test-iconv.c: Likewise.
4241 * tests/test-idpriv-drop.c: Likewise.
4242 * tests/test-idpriv-droptemp.c: Likewise.
4243 * tests/test-inet_ntop.c: Likewise.
4244 * tests/test-inet_pton.c: Likewise.
4245 * tests/test-isblank.c: Likewise.
4246 * tests/test-isfinite.c: Likewise.
4247 * tests/test-isinf.c: Likewise.
4248 * tests/test-isnan.c: Likewise.
4249 * tests/test-isnand.h: Likewise.
4250 * tests/test-isnanf.h: Likewise.
4251 * tests/test-isnanl.h: Likewise.
4252 * tests/test-lchown.c: Likewise.
4253 * tests/test-ldexpl.c: Likewise.
4254 * tests/test-link.c: Likewise.
4255 * tests/test-linkat.c: Likewise.
4256 * tests/test-linked_list.c: Likewise.
4257 * tests/test-linkedhash_list.c: Likewise.
4258 * tests/test-localename.c: Likewise.
4259 * tests/test-lseek.c: Likewise.
4260 * tests/test-lstat.c: Likewise.
4261 * tests/test-mbmemcasecmp.c: Likewise.
4262 * tests/test-mbmemcasecoll.c: Likewise.
4263 * tests/test-mbrtowc.c: Likewise.
4264 * tests/test-mbscasecmp.c: Likewise.
4265 * tests/test-mbscasestr1.c: Likewise.
4266 * tests/test-mbscasestr2.c: Likewise.
4267 * tests/test-mbscasestr3.c: Likewise.
4268 * tests/test-mbscasestr4.c: Likewise.
4269 * tests/test-mbschr.c: Likewise.
4270 * tests/test-mbscspn.c: Likewise.
4271 * tests/test-mbsinit.c: Likewise.
4272 * tests/test-mbsncasecmp.c: Likewise.
4273 * tests/test-mbsnrtowcs.c: Likewise.
4274 * tests/test-mbspbrk.c: Likewise.
4275 * tests/test-mbspcasecmp.c: Likewise.
4276 * tests/test-mbsrchr.c: Likewise.
4277 * tests/test-mbsrtowcs.c: Likewise.
4278 * tests/test-mbsspn.c: Likewise.
4279 * tests/test-mbsstr1.c: Likewise.
4280 * tests/test-mbsstr2.c: Likewise.
4281 * tests/test-mbsstr3.c: Likewise.
4282 * tests/test-memchr.c: Likewise.
4283 * tests/test-memchr2.c: Likewise.
4284 * tests/test-memcmp.c: Likewise.
4285 * tests/test-memmem.c: Likewise.
4286 * tests/test-memrchr.c: Likewise.
4287 * tests/test-mkdir.c: Likewise.
4288 * tests/test-mkdirat.c: Likewise.
4289 * tests/test-mkfifo.c: Likewise.
4290 * tests/test-mkfifoat.c: Likewise.
4291 * tests/test-mknod.c: Likewise.
4292 * tests/test-nanosleep.c: Likewise.
4293 * tests/test-nl_langinfo.c: Likewise.
4294 * tests/test-obstack-printf.c: Likewise.
4295 * tests/test-open.c: Likewise.
4296 * tests/test-openat.c: Likewise.
4297 * tests/test-pipe-filter-gi1.c: Likewise.
4298 * tests/test-pipe-filter-gi2-main.c: Likewise.
4299 * tests/test-pipe-filter-ii1.c: Likewise.
4300 * tests/test-pipe-filter-ii2-main.c: Likewise.
4301 * tests/test-pipe2.c: Likewise.
4302 * tests/test-popen.h: Likewise.
4303 * tests/test-posixtm.c: Likewise.
4304 * tests/test-pread.c: Likewise.
4305 * tests/test-printf-frexp.c: Likewise.
4306 * tests/test-printf-frexpl.c: Likewise.
4307 * tests/test-printf-posix.c: Likewise.
4308 * tests/test-priv-set.c: Likewise.
4309 * tests/test-quotearg.c: Likewise.
4310 * tests/test-random_r.c: Likewise.
4311 * tests/test-rawmemchr.c: Likewise.
4312 * tests/test-rbtree_list.c: Likewise.
4313 * tests/test-rbtree_oset.c: Likewise.
4314 * tests/test-rbtreehash_list.c: Likewise.
4315 * tests/test-readlink.c: Likewise.
4316 * tests/test-remove.c: Likewise.
4317 * tests/test-rename.c: Likewise.
4318 * tests/test-renameat.c: Likewise.
4319 * tests/test-rmdir.c: Likewise.
4320 * tests/test-round1.c: Likewise.
4321 * tests/test-roundf1.c: Likewise.
4322 * tests/test-roundl.c: Likewise.
4323 * tests/test-safe-alloc.c: Likewise.
4324 * tests/test-sameacls.c: Likewise.
4325 * tests/test-set-mode-acl.c: Likewise.
4326 * tests/test-setenv.c: Likewise.
4327 * tests/test-sigaction.c: Likewise.
4328 * tests/test-signbit.c: Likewise.
4329 * tests/test-sleep.c: Likewise.
4330 * tests/test-snprintf-posix.c: Likewise.
4331 * tests/test-snprintf.c: Likewise.
4332 * tests/test-sprintf-posix.c: Likewise.
4333 * tests/test-stat-time.c: Likewise.
4334 * tests/test-stat.c: Likewise.
4335 * tests/test-strcasestr.c: Likewise.
4336 * tests/test-strchrnul.c: Likewise.
4337 * tests/test-strerror.c: Likewise.
4338 * tests/test-striconv.c: Likewise.
4339 * tests/test-striconveh.c: Likewise.
4340 * tests/test-striconveha.c: Likewise.
4341 * tests/test-strsignal.c: Likewise.
4342 * tests/test-strstr.c: Likewise.
4343 * tests/test-strtod.c: Likewise.
4344 * tests/test-strverscmp.c: Likewise.
4345 * tests/test-symlink.c: Likewise.
4346 * tests/test-symlinkat.c: Likewise.
4347 * tests/test-trunc1.c: Likewise.
4348 * tests/test-trunc2.c: Likewise.
4349 * tests/test-truncf1.c: Likewise.
4350 * tests/test-truncf2.c: Likewise.
4351 * tests/test-truncl.c: Likewise.
4352 * tests/test-uname.c: Likewise.
4353 * tests/test-unlink.c: Likewise.
4354 * tests/test-unlinkat.c: Likewise.
4355 * tests/test-unsetenv.c: Likewise.
4356 * tests/test-usleep.c: Likewise.
4357 * tests/test-utimens.c: Likewise.
4358 * tests/test-utimensat.c: Likewise.
4359 * tests/test-vasnprintf-posix.c: Likewise.
4360 * tests/test-vasnprintf-posix2.c: Likewise.
4361 * tests/test-vasnprintf.c: Likewise.
4362 * tests/test-vasprintf-posix.c: Likewise.
4363 * tests/test-vasprintf.c: Likewise.
4364 * tests/test-vdprintf-posix.c: Likewise.
4365 * tests/test-vfprintf-posix.c: Likewise.
4366 * tests/test-vprintf-posix.c: Likewise.
4367 * tests/test-vsnprintf-posix.c: Likewise.
4368 * tests/test-vsnprintf.c: Likewise.
4369 * tests/test-vsprintf-posix.c: Likewise.
4370 * tests/test-wcrtomb.c: Likewise.
4371 * tests/test-wcsnrtombs.c: Likewise.
4372 * tests/test-wcsrtombs.c: Likewise.
4373 * tests/test-wctype.c: Likewise.
4374 * tests/test-wcwidth.c: Likewise.
4375 * tests/test-xfprintf-posix.c: Likewise.
4376 * tests/test-xmemdup0.c: Likewise.
4377 * tests/test-xprintf-posix.c: Likewise.
4378 * tests/test-xvasprintf.c: Likewise.
4379 * tests/unicase/test-locale-language.c: Likewise.
4380 * tests/unicase/test-mapping-part1.h: Likewise.
4381 * tests/unicase/test-predicate-part1.h: Likewise.
4382 * tests/unicase/test-u8-casecmp.c: Likewise.
4383 * tests/unicase/test-u8-casecoll.c: Likewise.
4384 * tests/unicase/test-u8-casefold.c: Likewise.
4385 * tests/unicase/test-u8-is-cased.c: Likewise.
4386 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4387 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4388 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4389 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4390 * tests/unicase/test-u8-tolower.c: Likewise.
4391 * tests/unicase/test-u8-totitle.c: Likewise.
4392 * tests/unicase/test-u8-toupper.c: Likewise.
4393 * tests/unicase/test-u16-casecmp.c: Likewise.
4394 * tests/unicase/test-u16-casecoll.c: Likewise.
4395 * tests/unicase/test-u16-casefold.c: Likewise.
4396 * tests/unicase/test-u16-is-cased.c: Likewise.
4397 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4398 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4399 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4400 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4401 * tests/unicase/test-u16-tolower.c: Likewise.
4402 * tests/unicase/test-u16-totitle.c: Likewise.
4403 * tests/unicase/test-u16-toupper.c: Likewise.
4404 * tests/unicase/test-u32-casecmp.c: Likewise.
4405 * tests/unicase/test-u32-casecoll.c: Likewise.
4406 * tests/unicase/test-u32-casefold.c: Likewise.
4407 * tests/unicase/test-u32-is-cased.c: Likewise.
4408 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4409 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4410 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4411 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4412 * tests/unicase/test-u32-tolower.c: Likewise.
4413 * tests/unicase/test-u32-totitle.c: Likewise.
4414 * tests/unicase/test-u32-toupper.c: Likewise.
4415 * tests/unicase/test-ulc-casecmp.c: Likewise.
4416 * tests/unicase/test-ulc-casecoll.c: Likewise.
4417 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4418 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4419 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4420 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4421 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4422 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4423 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4424 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4425 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4426 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4427 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4428 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4429 * tests/unictype/test-bidi_byname.c: Likewise.
4430 * tests/unictype/test-bidi_name.c: Likewise.
4431 * tests/unictype/test-bidi_of.c: Likewise.
4432 * tests/unictype/test-bidi_test.c: Likewise.
4433 * tests/unictype/test-block_list.c: Likewise.
4434 * tests/unictype/test-block_of.c: Likewise.
4435 * tests/unictype/test-block_test.c: Likewise.
4436 * tests/unictype/test-categ_and.c: Likewise.
4437 * tests/unictype/test-categ_and_not.c: Likewise.
4438 * tests/unictype/test-categ_byname.c: Likewise.
4439 * tests/unictype/test-categ_name.c: Likewise.
4440 * tests/unictype/test-categ_none.c: Likewise.
4441 * tests/unictype/test-categ_of.c: Likewise.
4442 * tests/unictype/test-categ_or.c: Likewise.
4443 * tests/unictype/test-categ_test_withtable.c: Likewise.
4444 * tests/unictype/test-combining.c: Likewise.
4445 * tests/unictype/test-decdigit.c: Likewise.
4446 * tests/unictype/test-digit.c: Likewise.
4447 * tests/unictype/test-mirror.c: Likewise.
4448 * tests/unictype/test-numeric.c: Likewise.
4449 * tests/unictype/test-pr_byname.c: Likewise.
4450 * tests/unictype/test-pr_test.c: Likewise.
4451 * tests/unictype/test-predicate-part1.h: Likewise.
4452 * tests/unictype/test-scripts.c: Likewise.
4453 * tests/unictype/test-sy_c_ident.c: Likewise.
4454 * tests/unictype/test-sy_java_ident.c: Likewise.
4455 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4456 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4457 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4458 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4459 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4460 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4461 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4462 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4463 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4464 * tests/uninorm/test-compat-decomposition.c: Likewise.
4465 * tests/uninorm/test-composition.c: Likewise.
4466 * tests/uninorm/test-decomposing-form.c: Likewise.
4467 * tests/uninorm/test-decomposition.c: Likewise.
4468 * tests/uninorm/test-u8-nfc.c: Likewise.
4469 * tests/uninorm/test-u8-nfd.c: Likewise.
4470 * tests/uninorm/test-u8-nfkc.c: Likewise.
4471 * tests/uninorm/test-u8-nfkd.c: Likewise.
4472 * tests/uninorm/test-u8-normcmp.c: Likewise.
4473 * tests/uninorm/test-u8-normcoll.c: Likewise.
4474 * tests/uninorm/test-u16-nfc.c: Likewise.
4475 * tests/uninorm/test-u16-nfd.c: Likewise.
4476 * tests/uninorm/test-u16-nfkc.c: Likewise.
4477 * tests/uninorm/test-u16-nfkd.c: Likewise.
4478 * tests/uninorm/test-u16-normcmp.c: Likewise.
4479 * tests/uninorm/test-u16-normcoll.c: Likewise.
4480 * tests/uninorm/test-u32-nfc.c: Likewise.
4481 * tests/uninorm/test-u32-nfd.c: Likewise.
4482 * tests/uninorm/test-u32-nfkc.c: Likewise.
4483 * tests/uninorm/test-u32-nfkd.c: Likewise.
4484 * tests/uninorm/test-u32-normalize-big.c: Likewise.
4485 * tests/uninorm/test-u32-normcmp.c: Likewise.
4486 * tests/uninorm/test-u32-normcoll.c: Likewise.
4487 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4488 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4489 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4490 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4491 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4492 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4493 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4494 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4495 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4496 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4497 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4498 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4499 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4500 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4501 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4502 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4503 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4504 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4505 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4506 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4507 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4508 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4509 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4510 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4511 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4512 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4513 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4514 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4515 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4516 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4517 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4518 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4519 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4520 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4521 * tests/uniwidth/test-u8-width.c: Likewise.
4522 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4523 * tests/uniwidth/test-u16-width.c: Likewise.
4524 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4525 * tests/uniwidth/test-u32-width.c: Likewise.
4526 * tests/uniwidth/test-uc_width.c: Likewise.
4527 * tests/uniwidth/test-uc_width2.c: Likewise.
4528 * modules/acl-tests (Files): Add tests/macros.h.
4529 * modules/areadlink-tests (Files): Likewise.
4530 * modules/areadlink-with-size-tests (Files): Likewise.
4531 * modules/areadlinkat-tests (Files): Likewise.
4532 * modules/areadlinkat-with-size-tests (Files): Likewise.
4533 * modules/argmatch-tests (Files): Likewise.
4534 * modules/argv-iter-tests (Files): Likewise.
4535 * modules/array-list-tests (Files): Likewise.
4536 * modules/array-mergesort-tests (Files): Likewise.
4537 * modules/array-oset-tests (Files): Likewise.
4538 * modules/avltree-list-tests (Files): Likewise.
4539 * modules/avltree-oset-tests (Files): Likewise.
4540 * modules/avltreehash-list-tests (Files): Likewise.
4541 * modules/base64-tests (Files): Likewise.
4542 * modules/binary-io-tests (Files): Likewise.
4543 * modules/bitrotate-tests (Files): Likewise.
4544 * modules/btowc-tests (Files): Likewise.
4545 * modules/byteswap-tests (Files): Likewise.
4546 * modules/c-ctype-tests (Files): Likewise.
4547 * modules/c-stack-tests (Files): Likewise.
4548 * modules/c-strcase-tests (Files): Likewise.
4549 * modules/c-strcasestr-tests (Files): Likewise.
4550 * modules/c-strstr-tests (Files): Likewise.
4551 * modules/canonicalize-lgpl-tests (Files): Likewise.
4552 * modules/canonicalize-tests (Files): Likewise.
4553 * modules/carray-list-tests (Files): Likewise.
4554 * modules/ceilf-tests (Files): Likewise.
4555 * modules/ceill-tests (Files): Likewise.
4556 * modules/chown-tests (Files): Likewise.
4557 * modules/cloexec-tests (Files): Likewise.
4558 * modules/copy-file-tests (Files): Likewise.
4559 * modules/count-one-bits-tests (Files): Likewise.
4560 * modules/dprintf-posix-tests (Files): Likewise.
4561 * modules/dup2-tests (Files): Likewise.
4562 * modules/dup3-tests (Files): Likewise.
4563 * modules/duplocale-tests (Files): Likewise.
4564 * modules/fbufmode-tests (Files): Likewise.
4565 * modules/fchdir-tests (Files): Likewise.
4566 * modules/fcntl-safer-tests (Files): Likewise.
4567 * modules/fcntl-tests (Files): Likewise.
4568 * modules/fdopendir-tests (Files): Likewise.
4569 * modules/fdutimensat-tests (Files): Likewise.
4570 * modules/fflush-tests (Files): Likewise.
4571 * modules/filevercmp-tests (Files): Likewise.
4572 * modules/flock-tests (Files): Likewise.
4573 * modules/floorf-tests (Files): Likewise.
4574 * modules/floorl-tests (Files): Likewise.
4575 * modules/fnmatch-tests (Files): Likewise.
4576 * modules/fopen-safer-tests (Files): Likewise.
4577 * modules/fopen-tests (Files): Likewise.
4578 * modules/fpending-tests (Files): Likewise.
4579 * modules/fprintf-posix-tests (Files): Likewise.
4580 * modules/fpurge-tests (Files): Likewise.
4581 * modules/freadable-tests (Files): Likewise.
4582 * modules/freadahead-tests (Files): Likewise.
4583 * modules/freading-tests (Files): Likewise.
4584 * modules/freadptr-tests (Files): Likewise.
4585 * modules/freadseek-tests (Files): Likewise.
4586 * modules/freopen-tests (Files): Likewise.
4587 * modules/frexp-nolibm-tests (Files): Likewise.
4588 * modules/frexp-tests (Files): Likewise.
4589 * modules/frexpl-nolibm-tests (Files): Likewise.
4590 * modules/frexpl-tests (Files): Likewise.
4591 * modules/fseek-tests (Files): Likewise.
4592 * modules/fseeko-tests (Files): Likewise.
4593 * modules/fstrcmp-tests (Files): Likewise.
4594 * modules/fsync-tests (Files): Likewise.
4595 * modules/ftell-tests (Files): Likewise.
4596 * modules/ftello-tests (Files): Likewise.
4597 * modules/func-tests (Files): Likewise.
4598 * modules/futimens-tests (Files): Likewise.
4599 * modules/fwritable-tests (Files): Likewise.
4600 * modules/fwriting-tests (Files): Likewise.
4601 * modules/getcwd-tests (Files): Likewise.
4602 * modules/getdate-tests (Files): Likewise.
4603 * modules/getdelim-tests (Files): Likewise.
4604 * modules/getdtablesize-tests (Files): Likewise.
4605 * modules/getgroups-tests (Files): Likewise.
4606 * modules/getline-tests (Files): Likewise.
4607 * modules/getndelim2-tests (Files): Likewise.
4608 * modules/glob-tests (Files): Likewise.
4609 * modules/hash-tests (Files): Likewise.
4610 * modules/i-ring-tests (Files): Likewise.
4611 * modules/iconv-tests (Files): Likewise.
4612 * modules/iconv_open-utf-tests (Files): Likewise.
4613 * modules/idpriv-drop-tests (Files): Likewise.
4614 * modules/idpriv-droptemp-tests (Files): Likewise.
4615 * modules/inet_ntop-tests (Files): Likewise.
4616 * modules/inet_pton-tests (Files): Likewise.
4617 * modules/isblank-tests (Files): Likewise.
4618 * modules/isfinite-tests (Files): Likewise.
4619 * modules/isinf-tests (Files): Likewise.
4620 * modules/isnan-tests (Files): Likewise.
4621 * modules/isnand-nolibm-tests (Files): Likewise.
4622 * modules/isnand-tests (Files): Likewise.
4623 * modules/isnanf-nolibm-tests (Files): Likewise.
4624 * modules/isnanf-tests (Files): Likewise.
4625 * modules/isnanl-nolibm-tests (Files): Likewise.
4626 * modules/isnanl-tests (Files): Likewise.
4627 * modules/lchown-tests (Files): Likewise.
4628 * modules/ldexpl-tests (Files): Likewise.
4629 * modules/link-tests (Files): Likewise.
4630 * modules/linkat-tests (Files): Likewise.
4631 * modules/linked-list-tests (Files): Likewise.
4632 * modules/linkedhash-list-tests (Files): Likewise.
4633 * modules/localename-tests (Files): Likewise.
4634 * modules/lseek-tests (Files): Likewise.
4635 * modules/lstat-tests (Files): Likewise.
4636 * modules/mbmemcasecmp-tests (Files): Likewise.
4637 * modules/mbmemcasecoll-tests (Files): Likewise.
4638 * modules/mbrtowc-tests (Files): Likewise.
4639 * modules/mbscasecmp-tests (Files): Likewise.
4640 * modules/mbscasestr-tests (Files): Likewise.
4641 * modules/mbschr-tests (Files): Likewise.
4642 * modules/mbscspn-tests (Files): Likewise.
4643 * modules/mbsinit-tests (Files): Likewise.
4644 * modules/mbsncasecmp-tests (Files): Likewise.
4645 * modules/mbsnrtowcs-tests (Files): Likewise.
4646 * modules/mbspbrk-tests (Files): Likewise.
4647 * modules/mbspcasecmp-tests (Files): Likewise.
4648 * modules/mbsrchr-tests (Files): Likewise.
4649 * modules/mbsrtowcs-tests (Files): Likewise.
4650 * modules/mbsspn-tests (Files): Likewise.
4651 * modules/mbsstr-tests (Files): Likewise.
4652 * modules/memchr-tests (Files): Likewise.
4653 * modules/memchr2-tests (Files): Likewise.
4654 * modules/memcmp-tests (Files): Likewise.
4655 * modules/memmem-tests (Files): Likewise.
4656 * modules/memrchr-tests (Files): Likewise.
4657 * modules/mkdir-tests (Files): Likewise.
4658 * modules/mkfifo-tests (Files): Likewise.
4659 * modules/mkfifoat-tests (Files): Likewise.
4660 * modules/mknod-tests (Files): Likewise.
4661 * modules/nanosleep-tests (Files): Likewise.
4662 * modules/nl_langinfo-tests (Files): Likewise.
4663 * modules/obstack-printf-tests (Files): Likewise.
4664 * modules/open-tests (Files): Likewise.
4665 * modules/openat-tests (Files): Likewise.
4666 * modules/pipe-filter-gi-tests (Files): Likewise.
4667 * modules/pipe-filter-ii-tests (Files): Likewise.
4668 * modules/pipe2-tests (Files): Likewise.
4669 * modules/popen-safer-tests (Files): Likewise.
4670 * modules/popen-tests (Files): Likewise.
4671 * modules/posixtm-tests (Files): Likewise.
4672 * modules/pread-tests (Files): Likewise.
4673 * modules/printf-frexp-tests (Files): Likewise.
4674 * modules/printf-frexpl-tests (Files): Likewise.
4675 * modules/printf-posix-tests (Files): Likewise.
4676 * modules/priv-set-tests (Files): Likewise.
4677 * modules/quotearg-tests (Files): Likewise.
4678 * modules/random_r-tests (Files): Likewise.
4679 * modules/rawmemchr-tests (Files): Likewise.
4680 * modules/rbtree-list-tests (Files): Likewise.
4681 * modules/rbtree-oset-tests (Files): Likewise.
4682 * modules/rbtreehash-list-tests (Files): Likewise.
4683 * modules/readlink-tests (Files): Likewise.
4684 * modules/remove-tests (Files): Likewise.
4685 * modules/rename-tests (Files): Likewise.
4686 * modules/renameat-tests (Files): Likewise.
4687 * modules/rmdir-tests (Files): Likewise.
4688 * modules/round-tests (Files): Likewise.
4689 * modules/roundf-tests (Files): Likewise.
4690 * modules/roundl-tests (Files): Likewise.
4691 * modules/safe-alloc-tests (Files): Likewise.
4692 * modules/setenv-tests (Files): Likewise.
4693 * modules/sigaction-tests (Files): Likewise.
4694 * modules/signbit-tests (Files): Likewise.
4695 * modules/sleep-tests (Files): Likewise.
4696 * modules/snprintf-posix-tests (Files): Likewise.
4697 * modules/snprintf-tests (Files): Likewise.
4698 * modules/sprintf-posix-tests (Files): Likewise.
4699 * modules/stat-tests (Files): Likewise.
4700 * modules/stat-time-tests (Files): Likewise.
4701 * modules/strcasestr-tests (Files): Likewise.
4702 * modules/strchrnul-tests (Files): Likewise.
4703 * modules/strerror-tests (Files): Likewise.
4704 * modules/striconv-tests (Files): Likewise.
4705 * modules/striconveh-tests (Files): Likewise.
4706 * modules/striconveha-tests (Files): Likewise.
4707 * modules/strsignal-tests (Files): Likewise.
4708 * modules/strstr-tests (Files): Likewise.
4709 * modules/strtod-tests (Files): Likewise.
4710 * modules/strverscmp-tests (Files): Likewise.
4711 * modules/symlink-tests (Files): Likewise.
4712 * modules/symlinkat-tests (Files): Likewise.
4713 * modules/trunc-tests (Files): Likewise.
4714 * modules/truncf-tests (Files): Likewise.
4715 * modules/truncl-tests (Files): Likewise.
4716 * modules/uname-tests (Files): Likewise.
4717 * modules/unicase/cased-tests (Files): Likewise.
4718 * modules/unicase/ignorable-tests (Files): Likewise.
4719 * modules/unicase/locale-language-tests (Files): Likewise.
4720 * modules/unicase/tolower-tests (Files): Likewise.
4721 * modules/unicase/totitle-tests (Files): Likewise.
4722 * modules/unicase/toupper-tests (Files): Likewise.
4723 * modules/unicase/u8-casecmp-tests (Files): Likewise.
4724 * modules/unicase/u8-casecoll-tests (Files): Likewise.
4725 * modules/unicase/u8-casefold-tests (Files): Likewise.
4726 * modules/unicase/u8-is-cased-tests (Files): Likewise.
4727 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4728 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4729 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4730 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4731 * modules/unicase/u8-tolower-tests (Files): Likewise.
4732 * modules/unicase/u8-totitle-tests (Files): Likewise.
4733 * modules/unicase/u8-toupper-tests (Files): Likewise.
4734 * modules/unicase/u16-casecmp-tests (Files): Likewise.
4735 * modules/unicase/u16-casecoll-tests (Files): Likewise.
4736 * modules/unicase/u16-casefold-tests (Files): Likewise.
4737 * modules/unicase/u16-is-cased-tests (Files): Likewise.
4738 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4739 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4740 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4741 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4742 * modules/unicase/u16-tolower-tests (Files): Likewise.
4743 * modules/unicase/u16-totitle-tests (Files): Likewise.
4744 * modules/unicase/u16-toupper-tests (Files): Likewise.
4745 * modules/unicase/u32-casecmp-tests (Files): Likewise.
4746 * modules/unicase/u32-casecoll-tests (Files): Likewise.
4747 * modules/unicase/u32-casefold-tests (Files): Likewise.
4748 * modules/unicase/u32-is-cased-tests (Files): Likewise.
4749 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4750 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4751 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4752 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4753 * modules/unicase/u32-tolower-tests (Files): Likewise.
4754 * modules/unicase/u32-totitle-tests (Files): Likewise.
4755 * modules/unicase/u32-toupper-tests (Files): Likewise.
4756 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4757 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4758 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4759 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4760 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4761 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4762 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4763 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4764 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4765 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4766 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4767 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4768 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4769 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4770 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4771 * modules/unictype/bidicategory-name-tests (Files): Likewise.
4772 * modules/unictype/bidicategory-of-tests (Files): Likewise.
4773 * modules/unictype/bidicategory-test-tests (Files): Likewise.
4774 * modules/unictype/block-list-tests (Files): Likewise.
4775 * modules/unictype/block-of-tests (Files): Likewise.
4776 * modules/unictype/block-test-tests (Files): Likewise.
4777 * modules/unictype/category-C-tests (Files): Likewise.
4778 * modules/unictype/category-Cc-tests (Files): Likewise.
4779 * modules/unictype/category-Cf-tests (Files): Likewise.
4780 * modules/unictype/category-Cn-tests (Files): Likewise.
4781 * modules/unictype/category-Co-tests (Files): Likewise.
4782 * modules/unictype/category-Cs-tests (Files): Likewise.
4783 * modules/unictype/category-L-tests (Files): Likewise.
4784 * modules/unictype/category-Ll-tests (Files): Likewise.
4785 * modules/unictype/category-Lm-tests (Files): Likewise.
4786 * modules/unictype/category-Lo-tests (Files): Likewise.
4787 * modules/unictype/category-Lt-tests (Files): Likewise.
4788 * modules/unictype/category-Lu-tests (Files): Likewise.
4789 * modules/unictype/category-M-tests (Files): Likewise.
4790 * modules/unictype/category-Mc-tests (Files): Likewise.
4791 * modules/unictype/category-Me-tests (Files): Likewise.
4792 * modules/unictype/category-Mn-tests (Files): Likewise.
4793 * modules/unictype/category-N-tests (Files): Likewise.
4794 * modules/unictype/category-Nd-tests (Files): Likewise.
4795 * modules/unictype/category-Nl-tests (Files): Likewise.
4796 * modules/unictype/category-No-tests (Files): Likewise.
4797 * modules/unictype/category-P-tests (Files): Likewise.
4798 * modules/unictype/category-Pc-tests (Files): Likewise.
4799 * modules/unictype/category-Pd-tests (Files): Likewise.
4800 * modules/unictype/category-Pe-tests (Files): Likewise.
4801 * modules/unictype/category-Pf-tests (Files): Likewise.
4802 * modules/unictype/category-Pi-tests (Files): Likewise.
4803 * modules/unictype/category-Po-tests (Files): Likewise.
4804 * modules/unictype/category-Ps-tests (Files): Likewise.
4805 * modules/unictype/category-S-tests (Files): Likewise.
4806 * modules/unictype/category-Sc-tests (Files): Likewise.
4807 * modules/unictype/category-Sk-tests (Files): Likewise.
4808 * modules/unictype/category-Sm-tests (Files): Likewise.
4809 * modules/unictype/category-So-tests (Files): Likewise.
4810 * modules/unictype/category-Z-tests (Files): Likewise.
4811 * modules/unictype/category-Zl-tests (Files): Likewise.
4812 * modules/unictype/category-Zp-tests (Files): Likewise.
4813 * modules/unictype/category-Zs-tests (Files): Likewise.
4814 * modules/unictype/category-and-not-tests (Files): Likewise.
4815 * modules/unictype/category-and-tests (Files): Likewise.
4816 * modules/unictype/category-byname-tests (Files): Likewise.
4817 * modules/unictype/category-name-tests (Files): Likewise.
4818 * modules/unictype/category-none-tests (Files): Likewise.
4819 * modules/unictype/category-of-tests (Files): Likewise.
4820 * modules/unictype/category-or-tests (Files): Likewise.
4821 * modules/unictype/category-test-withtable-tests (Files): Likewise.
4822 * modules/unictype/combining-class-tests (Files): Likewise.
4823 * modules/unictype/ctype-alnum-tests (Files): Likewise.
4824 * modules/unictype/ctype-alpha-tests (Files): Likewise.
4825 * modules/unictype/ctype-blank-tests (Files): Likewise.
4826 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4827 * modules/unictype/ctype-digit-tests (Files): Likewise.
4828 * modules/unictype/ctype-graph-tests (Files): Likewise.
4829 * modules/unictype/ctype-lower-tests (Files): Likewise.
4830 * modules/unictype/ctype-print-tests (Files): Likewise.
4831 * modules/unictype/ctype-punct-tests (Files): Likewise.
4832 * modules/unictype/ctype-space-tests (Files): Likewise.
4833 * modules/unictype/ctype-upper-tests (Files): Likewise.
4834 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4835 * modules/unictype/decimal-digit-tests (Files): Likewise.
4836 * modules/unictype/digit-tests (Files): Likewise.
4837 * modules/unictype/mirror-tests (Files): Likewise.
4838 * modules/unictype/numeric-tests (Files): Likewise.
4839 * modules/unictype/property-alphabetic-tests (Files): Likewise.
4840 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4841 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4842 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4844 * modules/unictype/property-bidi-block-separator-tests (Files):
4846 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4848 * modules/unictype/property-bidi-common-separator-tests (Files):
4850 * modules/unictype/property-bidi-control-tests (Files): Likewise.
4851 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4853 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4855 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4857 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4858 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4860 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4861 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4863 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4864 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4865 * modules/unictype/property-bidi-segment-separator-tests (Files):
4867 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4868 * modules/unictype/property-byname-tests (Files): Likewise.
4869 * modules/unictype/property-combining-tests (Files): Likewise.
4870 * modules/unictype/property-composite-tests (Files): Likewise.
4871 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4872 * modules/unictype/property-dash-tests (Files): Likewise.
4873 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4874 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4876 * modules/unictype/property-deprecated-tests (Files): Likewise.
4877 * modules/unictype/property-diacritic-tests (Files): Likewise.
4878 * modules/unictype/property-extender-tests (Files): Likewise.
4879 * modules/unictype/property-format-control-tests (Files): Likewise.
4880 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4881 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4882 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4883 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4884 * modules/unictype/property-hyphen-tests (Files): Likewise.
4885 * modules/unictype/property-id-continue-tests (Files): Likewise.
4886 * modules/unictype/property-id-start-tests (Files): Likewise.
4887 * modules/unictype/property-ideographic-tests (Files): Likewise.
4888 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4889 * modules/unictype/property-ids-trinary-operator-tests (Files):
4891 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4892 * modules/unictype/property-iso-control-tests (Files): Likewise.
4893 * modules/unictype/property-join-control-tests (Files): Likewise.
4894 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4895 * modules/unictype/property-line-separator-tests (Files): Likewise.
4896 * modules/unictype/property-logical-order-exception-tests (Files):
4898 * modules/unictype/property-lowercase-tests (Files): Likewise.
4899 * modules/unictype/property-math-tests (Files): Likewise.
4900 * modules/unictype/property-non-break-tests (Files): Likewise.
4901 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4902 * modules/unictype/property-numeric-tests (Files): Likewise.
4903 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4904 * modules/unictype/property-other-default-ignorable-code-point-tests
4906 * modules/unictype/property-other-grapheme-extend-tests (Files):
4908 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4909 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4910 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4911 * modules/unictype/property-other-math-tests (Files): Likewise.
4912 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4913 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4914 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4915 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4916 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4917 * modules/unictype/property-private-use-tests (Files): Likewise.
4918 * modules/unictype/property-punctuation-tests (Files): Likewise.
4919 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4920 * modules/unictype/property-radical-tests (Files): Likewise.
4921 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4922 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4923 * modules/unictype/property-space-tests (Files): Likewise.
4924 * modules/unictype/property-terminal-punctuation-tests (Files):
4926 * modules/unictype/property-test-tests (Files): Likewise.
4927 * modules/unictype/property-titlecase-tests (Files): Likewise.
4928 * modules/unictype/property-unassigned-code-value-tests (Files):
4930 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4931 * modules/unictype/property-uppercase-tests (Files): Likewise.
4932 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4933 * modules/unictype/property-white-space-tests (Files): Likewise.
4934 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4935 * modules/unictype/property-xid-start-tests (Files): Likewise.
4936 * modules/unictype/property-zero-width-tests (Files): Likewise.
4937 * modules/unictype/scripts-tests (Files): Likewise.
4938 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4939 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4940 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4941 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4942 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4943 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4944 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4945 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4946 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4947 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4948 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4949 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4950 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4951 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4952 * modules/uninorm/composition-tests (Files): Likewise.
4953 * modules/uninorm/decomposing-form-tests (Files): Likewise.
4954 * modules/uninorm/decomposition-tests (Files): Likewise.
4955 * modules/uninorm/filter-tests (Files): Likewise.
4956 * modules/uninorm/nfc-tests (Files): Likewise.
4957 * modules/uninorm/nfd-tests (Files): Likewise.
4958 * modules/uninorm/nfkc-tests (Files): Likewise.
4959 * modules/uninorm/nfkd-tests (Files): Likewise.
4960 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4961 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4962 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4963 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4964 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4965 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4966 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4967 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4968 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4969 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4970 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4971 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4972 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4973 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4974 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4975 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4976 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4977 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4978 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4979 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4980 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4981 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4982 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4983 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4984 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4985 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4986 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4987 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4988 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4989 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4990 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4991 * modules/uniwidth/u8-width-tests (Files): Likewise.
4992 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4993 * modules/uniwidth/u16-width-tests (Files): Likewise.
4994 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4995 * modules/uniwidth/u32-width-tests (Files): Likewise.
4996 * modules/uniwidth/width-tests (Files): Likewise.
4997 * modules/unlink-tests (Files): Likewise.
4998 * modules/unsetenv-tests (Files): Likewise.
4999 * modules/usleep-tests (Files): Likewise.
5000 * modules/utimens-tests (Files): Likewise.
5001 * modules/utimensat-tests (Files): Likewise.
5002 * modules/vasnprintf-posix-tests (Files): Likewise.
5003 * modules/vasnprintf-tests (Files): Likewise.
5004 * modules/vasprintf-posix-tests (Files): Likewise.
5005 * modules/vasprintf-tests (Files): Likewise.
5006 * modules/vdprintf-posix-tests (Files): Likewise.
5007 * modules/vfprintf-posix-tests (Files): Likewise.
5008 * modules/vprintf-posix-tests (Files): Likewise.
5009 * modules/vsnprintf-posix-tests (Files): Likewise.
5010 * modules/vsnprintf-tests (Files): Likewise.
5011 * modules/vsprintf-posix-tests (Files): Likewise.
5012 * modules/wcrtomb-tests (Files): Likewise.
5013 * modules/wcsnrtombs-tests (Files): Likewise.
5014 * modules/wcsrtombs-tests (Files): Likewise.
5015 * modules/wctype-tests (Files): Likewise.
5016 * modules/wcwidth-tests (Files): Likewise.
5017 * modules/xmemdup0-tests (Files): Likewise.
5018 * modules/xprintf-posix-tests (Files): Likewise.
5019 * modules/xvasprintf-tests (Files): Likewise.
5021 2009-12-24 Eric Blake <ebb9@byu.net>
5023 test-nanosleep: fix typo
5024 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5026 Reported by Bruno Haible.
5028 2009-12-24 Bruno Haible <bruno@clisp.org>
5030 Reduce namespace pollution on glibc systems.
5031 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5032 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5034 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5035 <getopt.h> on glibc systems.
5036 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5038 * lib/fcntl.c: Include <unistd.h> here instead.
5040 2009-12-24 Bruno Haible <bruno@clisp.org>
5042 * lib/stdlib.in.h (includes): Fix typo in today's commit.
5044 2009-12-24 Eric Blake <ebb9@byu.net>
5046 tests: add signature checks
5047 * tests/signature.h (SIGNATURE_CHECK): New file.
5048 * modules/atexit-tests (Files): Use it.
5049 * modules/btowc-tests (Files): Likewise.
5050 * modules/canonicalize-lgpl-tests (Files): Likewise.
5051 * modules/ceilf-tests (Files): Likewise.
5052 * modules/ceill-tests (Files): Likewise.
5053 * modules/chown-tests (Files): Likewise.
5054 * modules/dprintf-posix-tests (Files): Likewise.
5055 * modules/dup2-tests (Files): Likewise.
5056 * modules/dup3-tests (Files): Likewise.
5057 * modules/duplocale-tests (Files): Likewise.
5058 * modules/fchdir-tests (Files): Likewise.
5059 * modules/fcntl-tests (Files): Likewise.
5060 * modules/fdopendir-tests (Files): Likewise.
5061 * modules/fflush-tests (Files): Likewise.
5062 * modules/flock-tests (Files): Likewise.
5063 * modules/floorf-tests (Files): Likewise.
5064 * modules/floorl-tests (Files): Likewise.
5065 * modules/fnmatch-tests (Files): Likewise.
5066 * modules/fopen-tests (Files): Likewise.
5067 * modules/fprintf-posix-tests (Files): Likewise.
5068 * modules/freopen-tests (Files): Likewise.
5069 * modules/frexp-nolibm-tests (Files): Likewise.
5070 * modules/frexp-tests (Files): Likewise.
5071 * modules/frexpl-nolibm-tests (Files): Likewise.
5072 * modules/frexpl-tests (Files): Likewise.
5073 * modules/fseek-tests (Files): Likewise.
5074 * modules/fseeko-tests (Files): Likewise.
5075 * modules/fsync-tests (Files): Likewise.
5076 * modules/ftell-tests (Files): Likewise.
5077 * modules/ftello-tests (Files): Likewise.
5078 * modules/futimens-tests (Files): Likewise.
5079 * modules/getaddrinfo-tests (Files): Likewise.
5080 * modules/getcwd-tests (Files): Likewise.
5081 * modules/getdelim-tests (Files): Likewise.
5082 * modules/getdtablesize-tests (Files): Likewise.
5083 * modules/getgroups-tests (Files): Likewise.
5084 * modules/gethostname-tests (Files): Likewise.
5085 * modules/getline-tests (Files): Likewise.
5086 * modules/getopt-posix-tests (Files): Likewise.
5087 * modules/gettimeofday-tests (Files): Likewise.
5088 * modules/glob-tests (Files): Likewise.
5089 * modules/iconv-tests (Files): Likewise.
5090 * modules/inet_ntop-tests (Files): Likewise.
5091 * modules/inet_pton-tests (Files): Likewise.
5092 * modules/isblank-tests (Files): Likewise.
5093 * modules/lchown-tests (Files): Likewise.
5094 * modules/ldexpl-tests (Files): Likewise.
5095 * modules/link-tests (Files): Likewise.
5096 * modules/linkat-tests (Files): Likewise.
5097 * modules/lseek-tests (Files): Likewise.
5098 * modules/lstat-tests (Files): Likewise.
5099 * modules/mbrtowc-tests (Files): Likewise.
5100 * modules/mbsinit-tests (Files): Likewise.
5101 * modules/mbsnrtowcs-tests (Files): Likewise.
5102 * modules/mbsrtowcs-tests (Files): Likewise.
5103 * modules/memchr-tests (Files): Likewise.
5104 * modules/memcmp-tests (Files): Likewise.
5105 * modules/memmem-tests (Files): Likewise.
5106 * modules/memrchr-tests (Files): Likewise.
5107 * modules/mkdir-tests (Files): Likewise.
5108 * modules/mkfifo-tests (Files): Likewise.
5109 * modules/mkfifoat-tests (Files): Likewise.
5110 * modules/mknod-tests (Files): Likewise.
5111 * modules/nanosleep-tests (Files): Likewise.
5112 * modules/nl_langinfo-tests (Files): Likewise.
5113 * modules/obstack-printf-tests (Files): Likewise.
5114 * modules/open-tests (Files): Likewise.
5115 * modules/openat-tests (Files): Likewise.
5116 * modules/perror-tests (Files): Likewise.
5117 * modules/pipe2-tests (Files): Likewise.
5118 * modules/poll-tests (Files): Likewise.
5119 * modules/popen-tests (Files): Likewise.
5120 * modules/posix_spawn-tests (Files): Likewise.
5121 * modules/posix_spawnp-tests (Files): Likewise.
5122 * modules/pread-tests (Files): Likewise.
5123 * modules/printf-posix-tests (Files): Likewise.
5124 * modules/pty-tests (Files): Likewise.
5125 * modules/random_r-tests (Files): Likewise.
5126 * modules/rawmemchr-tests (Files): Likewise.
5127 * modules/readlink-tests (Files): Likewise.
5128 * modules/remove-tests (Files): Likewise.
5129 * modules/rename-tests (Files): Likewise.
5130 * modules/renameat-tests (Files): Likewise.
5131 * modules/rmdir-tests (Files): Likewise.
5132 * modules/round-tests (Files): Likewise.
5133 * modules/roundf-tests (Files): Likewise.
5134 * modules/roundl-tests (Files): Likewise.
5135 * modules/select-tests (Files): Likewise.
5136 * modules/setenv-tests (Files): Likewise.
5137 * modules/sigaction-tests (Files): Likewise.
5138 * modules/sleep-tests (Files): Likewise.
5139 * modules/snprintf-posix-tests (Files): Likewise.
5140 * modules/snprintf-tests (Files): Likewise.
5141 * modules/sprintf-posix-tests (Files): Likewise.
5142 * modules/stat-tests (Files): Likewise.
5143 * modules/strcasestr-tests (Files): Likewise.
5144 * modules/strchrnul-tests (Files): Likewise.
5145 * modules/strerror-tests (Files): Likewise.
5146 * modules/strsignal-tests (Files): Likewise.
5147 * modules/strstr-tests (Files): Likewise.
5148 * modules/strtod-tests (Files): Likewise.
5149 * modules/strverscmp-tests (Files): Likewise.
5150 * modules/symlink-tests (Files): Likewise.
5151 * modules/symlinkat-tests (Files): Likewise.
5152 * modules/times-tests (Files): Likewise.
5153 * modules/trunc-tests (Files): Likewise.
5154 * modules/truncf-tests (Files): Likewise.
5155 * modules/truncl-tests (Files): Likewise.
5156 * modules/tsearch-tests (Files): Likewise.
5157 * modules/uname-tests (Files): Likewise.
5158 * modules/unlink-tests (Files): Likewise.
5159 * modules/unsetenv-tests (Files): Likewise.
5160 * modules/usleep-tests (Files): Likewise.
5161 * modules/utimensat-tests (Files): Likewise.
5162 * modules/vasprintf-tests (Files): Likewise.
5163 * modules/vdprintf-posix-tests (Files): Likewise.
5164 * modules/vfprintf-posix-tests (Files): Likewise.
5165 * modules/vprintf-posix-tests (Files): Likewise.
5166 * modules/vsnprintf-posix-tests (Files): Likewise.
5167 * modules/vsnprintf-tests (Files): Likewise.
5168 * modules/vsprintf-posix-tests (Files): Likewise.
5169 * modules/wcrtomb-tests (Files): Likewise.
5170 * modules/wcsnrtombs-tests (Files): Likewise.
5171 * modules/wcsrtombs-tests (Files): Likewise.
5172 * modules/wcwidth-tests (Files): Likewise.
5173 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5174 * tests/test-isinf.c (isinf): Likewise.
5175 * tests/test-isnan.c (isnan): Likewise.
5176 * tests/test-signbit.c (signbit): Likewise.
5177 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5178 declaration, either as macro or with correct signature.
5179 (select): Ensure function under test is declared with correct
5180 signature in correct header.
5181 * tests/test-atexit.c (atexit): Likewise.
5182 * tests/test-btowc.c (btowc): Likewise.
5183 * tests/test-canonicalize-lgpl.c (realpath)
5184 (canonicalize_file_name): Likewise.
5185 * tests/test-ceilf1.c (ceilf): Likewise.
5186 * tests/test-ceill.c (ceill): Likewise.
5187 * tests/test-chown.c (chown): Likewise.
5188 * tests/test-dprintf-posix.c (dprintf): Likewise.
5189 * tests/test-dup2.c (dup2): Likewise.
5190 * tests/test-dup3.c (dup3): Likewise.
5191 * tests/test-duplocale.c (duplocale): Likewise.
5192 * tests/test-fchdir.c (fchdir): Likewise.
5193 * tests/test-fchownat.c (fchownat): Likewise.
5194 * tests/test-fcntl.c (fcntl): Likewise.
5195 * tests/test-fdopendir.c (fdopendir): Likewise.
5196 * tests/test-fflush.c (fflush): Likewise.
5197 * tests/test-flock.c (flock): Likewise.
5198 * tests/test-floorf1.c (floorf): Likewise.
5199 * tests/test-floorl.c (floorl): Likewise.
5200 * tests/test-fnmatch.c (fnmatch): Likewise.
5201 * tests/test-fopen.c (fopen): Likewise.
5202 * tests/test-fprintf-posix.c (fprintf): Likewise.
5203 * tests/test-freopen.c (freopen): Likewise.
5204 * tests/test-frexp.c (frexp): Likewise.
5205 * tests/test-frexpl.c (frexpl): Likewise.
5206 * tests/test-fseek.c (fseek): Likewise.
5207 * tests/test-fseeko.c (fseeko): Likewise.
5208 * tests/test-fstatat.c (fstatat): Likewise.
5209 * tests/test-fsync.c (fsync): Likewise.
5210 * tests/test-ftell.c (ftell): Likewise.
5211 * tests/test-ftello.c (ftello): Likewise.
5212 * tests/test-futimens.c (futimens): Likewise.
5213 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5214 (gai_strerror): Likewise.
5215 * tests/test-getcwd.c (getcwd): Likewise.
5216 * tests/test-getdelim.c (getdelim): Likewise.
5217 * tests/test-getdtablesize.c (getdtablesize): Likewise.
5218 * tests/test-getgroups.c (getgroups): Likewise.
5219 * tests/test-gethostname.c (gethostname): Likewise.
5220 * tests/test-getline.c (getline): Likewise.
5221 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5223 * tests/test-gettimeofday.c (gettimeofday): Likewise.
5224 * tests/test-glob.c (glob, globfree): Likewise.
5225 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5226 * tests/test-inet_ntop.c (inet_ntop): Likewise.
5227 * tests/test-inet_pton.c (inet_pton): Likewise.
5228 * tests/test-isblank.c (isblank): Likewise.
5229 * tests/test-lchown.c (lchown): Likewise.
5230 * tests/test-ldexpl.c (ldexpl): Likewise.
5231 * tests/test-link.c (link): Likewise.
5232 * tests/test-linkat.c (linkat): Likewise.
5233 * tests/test-lseek.c (lseek): Likewise.
5234 * tests/test-lstat.c (lstat): Likewise.
5235 * tests/test-mbrtowc.c (mbrtowc): Likewise.
5236 * tests/test-mbsinit.c (mbsinit): Likewise.
5237 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5238 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5239 * tests/test-memchr.c (memchr): Likewise.
5240 * tests/test-memcmp.c (memcmp): Likewise.
5241 * tests/test-memmem.c (memmem): Likewise.
5242 * tests/test-memrchr.c (memrchr): Likewise.
5243 * tests/test-mkdir.c (mkdir): Likewise.
5244 * tests/test-mkdirat.c (mkdirat): Likewise.
5245 * tests/test-mkfifo.c (mkfifo): Likewise.
5246 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5247 * tests/test-mknod.c (mknod): Likewise.
5248 * tests/test-nanosleep.c (nanosleep): Likewise.
5249 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5250 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5252 * tests/test-open.c (open): Likewise.
5253 * tests/test-openat.c (openat): Likewise.
5254 * tests/test-perror.c (perror): Likewise.
5255 * tests/test-pipe2.c (pipe2): Likewise.
5256 * tests/test-poll.c (poll): Likewise.
5257 * tests/test-popen.c (popen, pclose): Likewise.
5258 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5259 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5260 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5261 (posix_spawn_file_actions_destroy)
5262 (posix_spawn_file_actions_addclose)
5263 (posix_spawn_file_actions_addopen)
5264 (posix_spawn_file_actions_adddup2): Likewise.
5265 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5266 * tests/test-pread.c (pread): Likewise.
5267 * tests/test-printf-posix.c (printf): Likewise.
5268 * tests/test-pty.c (openpty, forkpty): Likewise.
5269 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5270 (random_r): Likewise.
5271 * tests/test-rawmemchr.c (rawmemchr): Likewise.
5272 * tests/test-readlink.c (readlink): Likewise.
5273 * tests/test-remove.c (remove): Likewise.
5274 * tests/test-rename.c (rename): Likewise.
5275 * tests/test-renameat.c (renameat): Likewise.
5276 * tests/test-rmdir.c (rmdir): Likewise.
5277 * tests/test-round1.c (round): Likewise.
5278 * tests/test-roundf1.c (roundf): Likewise.
5279 * tests/test-roundl.c (roundl): Likewise.
5280 * tests/test-setenv.c (setenv): Likewise.
5281 * tests/test-sigaction.c (sigaction): Likewise.
5282 * tests/test-sleep.c (sleep): Likewise.
5283 * tests/test-snprintf.c (snprintf): Likewise.
5284 * tests/test-sprintf-posix.c (sprintf): Likewise.
5285 * tests/test-stat.c (stat): Likewise.
5286 * tests/test-stpncpy.c (stpncpy): Likewise.
5287 * tests/test-strcasestr.c (strcasestr): Likewise.
5288 * tests/test-strchrnul.c (strchrnul): Likewise.
5289 * tests/test-strerror.c (strerror): Likewise.
5290 * tests/test-strsignal.c (strsignal): Likewise.
5291 * tests/test-strstr.c (strstr): Likewise.
5292 * tests/test-strtod.c (strtod): Likewise.
5293 * tests/test-strverscmp.c (strverscmp): Likewise.
5294 * tests/test-symlink.c (symlink): Likewise.
5295 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5296 * tests/test-times.c (times): Likewise.
5297 * tests/test-trunc1.c (trunc): Likewise.
5298 * tests/test-truncf1.c (truncf): Likewise.
5299 * tests/test-truncl.c (truncl): Likewise.
5300 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5302 * tests/test-uname.c (uname): Likewise.
5303 * tests/test-unlink.c (unlink): Likewise.
5304 * tests/test-unlinkat.c (unlinkat): Likewise.
5305 * tests/test-unsetenv.c (unsetenv): Likewise.
5306 * tests/test-usleep.c (usleep): Likewise.
5307 * tests/test-utimensat.c (utimensat): Likewise.
5308 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5309 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5310 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5311 * tests/test-vprintf-posix.c (vprintf): Likewise.
5312 * tests/test-vsnprintf.c (vsnprintf): Likewise.
5313 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5314 * tests/test-wcrtomb.c (wcrtomb): Likewise.
5315 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5316 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5317 * tests/test-wcwidth.c (wcwidth): Likewise.
5319 build: pull in conditional headers during GNULIB_POSIXCHECK
5320 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5321 definitions from any conditionally-included headers.
5322 * lib/stdlib.in.h (includes): Likewise.
5323 * lib/unistd.in.h (includes): Likewise.
5325 2009-12-24 Bruno Haible <bruno@clisp.org>
5327 * tests/test-argv-iter.c: Include header file being tested immediately
5329 * tests/test-base64.c: Likewise.
5330 * tests/test-flock.c: Likewise.
5331 * tests/test-fsync.c: Likewise.
5332 * tests/test-getdate.c: Likewise.
5333 * tests/test-getndelim2.c: Likewise.
5334 * tests/test-isfinite.c: Likewise.
5335 * tests/test-isinf.c: Likewise.
5336 * tests/test-strerror.c: Likewise.
5337 * tests/test-strsignal.c: Likewise.
5339 2009-12-23 Eric Blake <ebb9@byu.net>
5341 unistd: work around cygwin bug
5342 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5343 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5344 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5346 2009-12-23 Bruno Haible <bruno@clisp.org>
5348 localename: More tests.
5349 * tests/test-localename.c (SIZEOF): New macro.
5350 (categories): New variable.
5351 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5352 test_locale_name_default): Add test w.r.t. thread locale.
5353 (test_locale_name_thread): New function.
5356 localename: Make aware of thread locale.
5357 * lib/localename.h (gl_locale_name_thread): New declaration.
5358 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5359 behaviour with respect to thread locale.
5360 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5361 <langinfo.h>, glthread/lock.h.
5362 (SIZE_BITS): New macro.
5363 (string_hash): New function.
5364 (struct hash_node): New type.
5365 (HASH_TABLE_SIZE): New macro.
5366 (struniq_hash_table, struniq_lock): New variables.
5367 (struniq): New function.
5368 (gl_locale_name_thread): New function.
5369 (gl_locale_name): Invoke it.
5370 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5371 * modules/localename (Depends-on): Add lock.
5372 Reported by Mike Gran <spk121@yahoo.com>.
5374 2009-12-23 Eric Blake <ebb9@byu.net>
5377 * modules/va-args: New file.
5378 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5379 * MODULES.html.sh (Core language properties): Mention it.
5381 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5382 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5383 named alias for __attribute__((__unused__)).
5384 * lib/chown.c: Update client.
5385 * lib/fchmodat.c: Likewise.
5386 * lib/fts.c: Likewise.
5387 * lib/getdate.y: Likewise.
5388 * lib/getgroups.c: Likewise.
5389 * lib/getopt.c: Likewise.
5390 * lib/getugroups.c: Likewise.
5391 * lib/mkdir.c: Likewise.
5392 * lib/mkfifo.c: Likewise.
5393 * lib/mkfifoat.c: Likewise.
5394 * lib/mknod.c: Likewise.
5395 * lib/mknodat.c: Likewise.
5396 * lib/readlink.c: Likewise.
5397 * lib/se-context.in.h: Likewise.
5398 * lib/se-selinux.in.h: Likewise.
5399 * lib/sockets.c: Likewise.
5400 * lib/symlink.c: Likewise.
5401 * lib/symlinkat.c: Likewise.
5402 * lib/unicodeio.c: Likewise.
5403 * lib/unistr.h: Likewise.
5404 * tests/test-areadlink.c: Likewise.
5405 * tests/test-areadlinkat.c: Likewise.
5406 * tests/test-filenamecat.c: Likewise.
5407 * tests/test-fseeko.c: Likewise.
5408 * tests/test-ftello.c: Likewise.
5409 * tests/test-getdate.c: Likewise.
5410 * tests/test-getgroups.c: Likewise.
5411 * tests/test-gethostname.c: Likewise.
5412 * tests/test-quotearg.c: Likewise.
5413 * tests/test-version-etc.c: Likewise.
5414 * tests/test-xalloc-die.c: Likewise.
5415 * tests/test-xfprintf-posix.c: Likewise.
5416 * tests/test-xprintf-posix.c: Likewise.
5417 * tests/test-xvasprintf.c: Likewise.
5419 tests: avoid compiler warnings
5420 * tests/test-fcntl.c (main): Delete unused parameters.
5421 * tests/test-freopen-safer.c (main): Likewise.
5422 * tests/test-xalloc-die.c (main): Mark unused parameters.
5423 * tests/test-fseeko.c (main): Likewise.
5424 * tests/test-ftello.c (main): Likewise.
5425 * tests/test-nanosleep.c (main): Avoid declaration warning.
5426 * tests/test-sleep.c (main): Likewise.
5427 * tests/test-unsetenv.c (main): Silence warning about string
5429 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5431 2009-12-23 Bruno Haible <bruno@clisp.org>
5433 * tests/test-localename.c (test_locale_name): New function, extracted
5434 from main. Also test mixed situations.
5435 (test_locale_name_posix, test_locale_name_environ,
5436 test_locale_name_default): New functions.
5437 (main): Invoke them all.
5438 * modules/localename-tests (configure.ac): Test for newlocale.
5440 2009-12-23 Bruno Haible <bruno@clisp.org>
5442 unistd: Ensure getcwd gets declared before being overridden.
5443 * lib/unistd.in.h: Conditionally include <io.h>.
5445 2009-12-22 Bruno Haible <bruno@clisp.org>
5447 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5448 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5449 (gl_WCHAR_H): Invoke it.
5450 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5451 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5452 Reported by Karl Berry <karl@freefriends.org>.
5454 2009-12-22 Eric Blake <ebb9@byu.net>
5456 math, unistd: avoid redundant includes
5457 * lib/math.in.h (isnan): No need to re-include <math.h>.
5458 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5460 getsubopt: work around cygwin bug
5461 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5462 avoid conflicting with system getsubopt.
5463 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5466 getopt: synchronize from glibc
5467 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5468 parameter order. Adjust all callers.
5469 (_getopt_internal_r, main): Adjust quoting in error messages.
5470 Drop considerations for outdated POSIX 1003.2 error message.
5471 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5473 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5475 test-getopt: test stderr behavior
5476 * modules/getopt-posix-tests (Depends-on): Add dup2.
5477 * tests/test-getopt.c (ASSERT): Avoid stderr.
5478 (main): Move stderr to a temporary file.
5479 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5480 Instead, add parameter to inform caller if output occurred.
5481 (test_getopt): Adjust all existing tests to expect silence, and
5482 add new tests of leading ":".
5483 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5484 glibc shortcomings with leading "-:" or "+:" in optstring.
5485 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5487 * doc/posix-functions/getopt.texi (getopt): Likewise.
5489 test-getopt: enhance test
5490 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5492 * tests/test-getopt.c (OPTIND_MIN): Move...
5493 * tests/test-getopt.h (OPTIND_MIN): ...here.
5494 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5495 Require that optind=0 works, since modern BSD supports it in
5496 addition to optreset, and since coreutils expects it.
5497 (test_getopt_long_only): New test.
5498 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5499 glibc shortcomings with 'W;', and enforcement of optind=0.
5500 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5503 2009-12-21 Bruno Haible <bruno@clisp.org>
5505 localename: Improvements for MacOS X and Cygwin.
5506 * lib/localename.h (gl_locale_name_environ): New declaration.
5507 * lib/localename.c (gl_locale_name_environ): New function, extracted from
5508 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5509 (gl_locale_name_posix): Invoke it.
5510 (gl_locale_name_default): Add comments. Use Windows native API also on
5513 2009-12-21 Bruno Haible <bruno@clisp.org>
5515 Update list of Win32 locale ids.
5516 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5517 (LANG_SAMI): Renamed from LANG_SAAMI.
5518 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5519 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5520 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5521 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5522 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5523 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5524 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5525 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5526 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5527 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5528 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5529 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5530 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5531 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5532 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5533 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5534 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5535 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5536 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5537 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5538 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5539 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5540 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5541 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5542 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5543 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5544 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5545 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5546 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5547 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5548 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5549 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5550 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5551 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5552 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5553 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5554 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5555 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5556 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5557 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5558 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5559 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5560 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5561 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5562 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5563 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5564 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5565 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5566 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5567 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5568 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5569 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5570 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5571 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5572 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5573 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5574 Add more languages and countries for Sami, Sorbian. Add more countries
5575 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5576 for Pashto. Change country for Syriac, Tswana.
5578 2009-12-21 Eric Blake <ebb9@byu.net>
5580 test-utimens: avoid spurious failure
5581 * tests/test-chown.h (nap): Factor...
5582 * tests/nap.h: ...into new file.
5583 * tests/test-lchown.h (nap): Avoid duplication.
5584 * tests/test-utimens-common.h (nap): Use shared implementation,
5585 necessary on file systems with 1-second resolution.
5586 * modules/chown-tests (Files): Include new file.
5587 * modules/fdutimensat-tests (Files): Likewise.
5588 * modules/futimens-tests (Files): Likewise.
5589 * modules/lchown-tests (Files): Likewise.
5590 * modules/openat-tests (Files): Likewise.
5591 * modules/utimens-tests (Files): Likewise.
5592 * modules/utimensat-tests (Files): Likewise.
5594 2009-12-19 Eric Blake <ebb9@byu.net>
5596 futimens, utimensat: work around Linux bug
5597 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5598 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5599 * lib/utimensat.c (rpl_utimensat): Work around it.
5600 * lib/futimens.c (rpl_futimens): Adjust comment.
5602 utimens: work around Linux ctime bug
5603 * lib/utimens.c (detect_ctime_bug): New helper function.
5604 (update_timespec): Differentiate between workaround needed for
5605 this bug vs. what is needed for systems that lack utimensat.
5606 (fdutimens, lutimens): Work around bug.
5608 utimens: check for ctime update
5609 * tests/test-utimens-common.h (check_ctime): Define.
5610 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5611 * tests/test-futimens.h (test_futimens): Likewise.
5612 * tests/test-lutimens.h (test_lutimens): Likewise.
5613 * doc/posix-functions/futimens.texi (futimens): Document the bug.
5614 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5616 2009-12-19 Bruno Haible <bruno@clisp.org>
5618 dprintf-posix: Check against memory leak fixed on 2009-12-15.
5619 * tests/test-dprintf-posix2.sh: New file.
5620 * tests/test-dprintf-posix2.c: New file.
5621 * modules/dprintf-posix-tests (Files): Add them.
5622 (configure.ac): Check for getrlimit and setrlimit.
5623 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5625 2009-12-19 Bruno Haible <bruno@clisp.org>
5627 fprintf-posix: Check against memory leak fixed on 2009-12-15.
5628 * tests/test-fprintf-posix3.sh: New file.
5629 * tests/test-fprintf-posix3.c: New file.
5630 * modules/fprintf-posix-tests (Files): Add them.
5631 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5633 2009-12-19 Eric Blake <ebb9@byu.net>
5635 dirfd: fix prototype
5636 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5637 * lib/dirfd.c (dirfd): Likewise.
5639 canonicalize: reduce memory usage
5640 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5642 Reported by Solar Designer <solar@openwall.com>.
5644 2009-12-19 Bruno Haible <bruno@clisp.org>
5646 New module attribute 'Applicability'.
5647 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5648 * gnulib-tool: New option --extract-applicability.
5649 (func_usage): Document it.
5650 (sed_extract_prog): Recognize it.
5651 (func_get_applicability): New function.
5652 (func_import): Generalize handling of 'link-warning' module.
5653 * modules/link-warning (Applicability): New section.
5654 * modules/arg-nonnull (Applicability): New section.
5655 Repoted by Simon Josefsson <simon@josefsson.org>.
5657 2009-12-19 Bruno Haible <bruno@clisp.org>
5660 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5661 * lib/fseeko.c (rpl_fseeko): Likewise.
5663 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
5665 * lib/gl_list.h: Fix typo in comment.
5667 2009-12-16 Eric Blake <ebb9@byu.net>
5669 fcntl: use to simplify other modules
5670 * modules/cloexec (Depends-on): Add fcntl.
5671 * modules/fchdir (Depends-on): Likewise.
5672 * modules/fd-safer-flag (Depends-on): Likewise.
5673 * modules/unistd-safer (Depends-on): Likewise.
5674 * modules/dup3 (configure.ac): Set module indicator.
5675 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5677 * lib/fchdir.c (_gl_register_dup): Fix comment.
5678 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5679 * lib/dup-safer.c (dup_safer): Likewise.
5680 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5681 * lib/dup3.c (dup3): Likewise.
5682 * tests/test-fchdir.c (main): Enhance test.
5683 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
5685 fcntl: port portions of fcntl to mingw
5686 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5687 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5688 replacement for mingw.
5689 * modules/fcntl (Description): Update.
5690 (Depends-on): Add dup2.
5691 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5692 * modules/fcntl-h (Makefile.am): Substitute it.
5693 * lib/fcntl.in.h (fcntl): Update declaration.
5694 (F_DUPFD, F_GETFD): New macros, when needed.
5695 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5696 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5697 * tests/test-fcntl.c (check_flags, main): Enhance test for items
5700 fcntl: work around cygwin bug in F_DUPFD
5701 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5702 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
5703 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5704 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5705 * doc/posix-functions/fcntl.texi (fcntl): Document it.
5707 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5708 * modules/fcntl (Files): List new files.
5709 (configure.ac): Run a test.
5710 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5711 * lib/fcntl.c (rpl_fcntl): Likewise.
5712 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5713 (gl_FCNTL_H): Always replace fcntl.h.
5714 * modules/fcntl-h (Makefile.am): Substitute witnesses.
5715 * lib/fcntl.in.h (fcntl): Declare replacement.
5716 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5717 needed, plus a witness.
5718 * doc/posix-functions/fcntl.texi (fcntl): Document this.
5719 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5720 * tests/test-fcntl.c: New file.
5721 * modules/fcntl-tests: Likewise.
5723 binary-io: avoid potential compilation warning
5724 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5727 fflush: avoid compilation error on NetBSD
5728 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5729 between off_t and fpos_t, since the latter is sometimes a struct.
5730 * lib/fseeko.c (rpl_fseeko): Likewise.
5731 Reported by Alexander Nasonov <alnsn@yandex.ru>.
5733 2009-12-15 Eric Blake <ebb9@byu.net>
5735 fcntl-h, stdio, sys_ioctl: fix declarations
5736 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5737 function must not take arguments.
5738 * lib/sys_ioctl.in.h (ioctl): Likewise.
5739 * lib/fcntl.in.h (openat): Likewise. Declare extern.
5740 (open): Add a link warning.
5742 2009-12-15 Jim Meyering <meyering@redhat.com>
5744 areadlink, areadlink-with-size: relax license to LGPLv2+
5745 * modules/areadlink (License): Relax to LGPLv2+.
5746 * modules/areadlink-with-size (License): Likewise.
5748 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
5749 Bruno Haible <bruno@clisp.org>
5751 *printf: Fix memory leak.
5752 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5753 * lib/vfprintf.c (vfprintf): Likewise.
5754 * lib/dprintf.c (dprintf): Likewise.
5755 * lib/vdprintf.c (vdprintf): Likewise.
5757 2009-12-14 Eric Blake <ebb9@byu.net>
5759 accept4: adjust module dependencies
5760 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5762 utimens: one more try at avoiding compiler warning
5763 * lib/utimens.c (lutimens): Lower scope of result.
5765 2009-12-13 Bruno Haible <bruno@clisp.org>
5767 Move the malloc checking from module 'list' to new module 'xlist'.
5768 * modules/xlist: New file.
5769 * lib/gl_xlist.h: New file.
5770 * lib/gl_xlist.c: New file.
5771 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5772 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5773 gl_list_add_last, gl_list_add_before, gl_list_add_after,
5774 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5775 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5776 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5777 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5778 gl_sortedlist_nx_add): New declarations.
5779 (struct gl_list_implementation): Rename and change methods accordingly.
5780 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5781 (gl_list_nx_create): Renamed from gl_list_create.
5782 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5783 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5784 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5785 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5786 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5787 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5788 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5789 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5790 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5791 gl_list_create_empty.
5792 (gl_list_nx_create): Renamed from gl_list_create.
5793 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5794 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5795 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5796 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5797 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5798 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5799 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5800 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5801 * lib/gl_array_list.c: Don't include xalloc.h.
5802 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5803 NULL upon out-of-memory.
5804 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5806 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5807 Change return type to 'int'.
5808 (gl_array_nx_set_at): Renamed from gl_array_set_at.
5809 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5810 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5812 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5814 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5816 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5818 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5820 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5822 (gl_array_list_implementation): Update.
5823 * lib/gl_carray_list.c: Don't include xalloc.h.
5824 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5825 Return NULL upon out-of-memory.
5826 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5828 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5829 Change return type to 'int'.
5830 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5831 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5832 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5834 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5836 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5838 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5839 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5840 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5842 (gl_carray_list_implementation): Update.
5843 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5844 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5845 gl_linked_create_empty. Return NULL upon out-of-memory.
5846 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5848 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5849 Change return type to 'int'. Return -1 upon out-of-memory.
5850 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5852 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5854 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5856 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5857 NULL upon out-of-memory.
5858 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5860 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5862 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5864 * lib/gl_linked_list.c: Don't include xalloc.h.
5865 (gl_linked_list_implementation): Update.
5866 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5867 (add_to_bucket): Change return type to 'int'.
5868 (gl_linkedhash_list_implementation): Update.
5869 * lib/gl_anytree_list1.h (free_subtree): New function.
5870 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5871 gl_tree_create_empty. Return NULL upon out-of-memory.
5872 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5873 Change return type to 'int'. Return -1 upon out-of-memory.
5874 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5876 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5877 (gl_tree_remove_node): New function, moved here from
5878 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5879 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5881 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5882 malloc, not xmalloc. Return NULL upon out-of-memory.
5883 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5885 (gl_tree_remove_node_from_tree): New function, extracted from
5886 gl_tree_remove_node.
5887 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5889 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5891 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5893 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5895 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5896 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5897 not xmalloc. Return NULL upon out-of-memory.
5898 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5900 (gl_tree_remove_node_from_tree): New function, extracted from
5901 gl_tree_remove_node.
5902 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5904 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5906 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5908 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5910 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5911 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5912 gl_anytree_list1.h before gl_anyavltree_list2.h.
5913 (gl_avltree_list_implementation): Update.
5914 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5915 gl_anytree_list1.h before gl_anyavltree_list2.h.
5916 (gl_rbtree_list_implementation): Update.
5917 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5918 Change return type to 'int'. Return -1 upon out-of-memory. Use
5920 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5921 (gl_avltreehash_list_implementation): Update.
5922 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5923 (gl_rbtreehash_list_implementation): Update.
5924 * modules/array-list (Depends-on): Remove xalloc.
5925 * modules/carray-list (Depends-on): Likewise.
5926 * modules/linked-list (Depends-on): Likewise.
5927 * modules/linkedhash-list (Depends-on): Likewise.
5928 * modules/avltree-list (Depends-on): Likewise.
5929 * modules/rbtree-list (Depends-on): Likewise.
5930 * modules/avltreehash-list (Depends-on): Likewise.
5931 * modules/rbtreehash-list (Depends-on): Likewise.
5933 * modules/xsublist: New file.
5934 * lib/gl_xsublist.h: New file.
5935 * lib/gl_xsublist.c: New file.
5936 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5937 (gl_sublist_nx_create): New declaration.
5938 * lib/gl_sublist.c: Don't include xalloc.h.
5939 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5940 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5941 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5942 Change return type to 'int'. Return -1 upon out-of-memory.
5943 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5945 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5946 NULL upon out-of-memory.
5947 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5949 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5950 NULL upon out-of-memory.
5951 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5952 NULL upon out-of-memory.
5953 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5955 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5956 (gl_sublist_list_implementation): Update.
5957 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5959 * modules/sublist (Depends-on): Remove xalloc.
5961 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5962 * tests/test-carray_list.c: Likewise.
5963 * tests/test-linked_list.c: Likewise.
5964 * tests/test-linkedhash_list.c: Likewise.
5965 * tests/test-avltree_list.c: Likewise.
5966 * tests/test-rbtree_list.c: Likewise.
5967 * tests/test-avltreehash_list.c: Likewise.
5968 * tests/test-rbtreehash_list.c: Likewise.
5969 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5970 * modules/carray-list-tests (Makefile.am): Likewise.
5971 * modules/linked-list-tests (Makefile.am): Likewise.
5972 * modules/linkedhash-list-tests (Makefile.am): Likewise.
5973 * modules/avltree-list-tests (Makefile.am): Likewise.
5974 * modules/rbtree-list-tests (Makefile.am): Likewise.
5975 * modules/avltreehash-list-tests (Makefile.am): Likewise.
5976 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5978 * NEWS: Mention the changes.
5980 * lib/clean-temp.c: Include gl_xlist.h.
5981 * modules/clean-temp (Depends-on): Add xlist.
5983 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5984 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5986 * tests/test-array_oset.c: Include gl_xlist.h.
5987 * modules/array-oset-tests (Depends-on): Add xlist.
5989 Reported by José E. Marchesi <jemarch@gnu.org>.
5991 2009-12-13 Bruno Haible <bruno@clisp.org>
5993 Move the malloc checking from module 'oset' to new module 'xoset'.
5994 * modules/xoset: New file.
5995 * lib/gl_xoset.h: New file.
5996 * lib/gl_xoset.c: New file.
5997 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5999 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6000 (struct gl_oset_implementation): Rename and change methods accordingly.
6001 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6002 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6003 'int'. Mark as __warn_unused_result__.
6004 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6005 gl_oset_create_empty.
6006 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6008 * lib/gl_array_oset.c: Don't include xalloc.h.
6009 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6010 malloc, not xmalloc.
6011 (grow): Change return type to 'int'. Don't call xalloc_die.
6012 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6014 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6016 (gl_array_oset_implementation): Update.
6017 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6018 gl_tree_create_empty.
6019 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6021 * lib/gl_avltree_oset.c: Don't include xalloc.h.
6022 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6024 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6026 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6028 (gl_avltree_oset_implementation): Update.
6029 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6030 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6032 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6034 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6036 (gl_rbtree_oset_implementation): Update.
6037 * modules/array-oset (Depends-on): Remove xalloc.
6038 * modules/avltree-oset (Depends-on): Likewise.
6039 * modules/rbtree-oset (Depends-on): Likewise.
6040 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6041 * tests/test-avltree_oset.c: Likewise.
6042 * tests/test-rbtree_oset.c: Likewise.
6043 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6044 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6045 * modules/rbtree-oset-tests (Makefile.am): Likewise.
6046 * NEWS: Mention the change.
6048 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
6050 maint.mk: allow a project to override release-prep commands
6051 * top/maint.mk (alpha, beta, stable): Move release-preparatory
6052 commands into a new rule.
6053 (release-prep): New rule.
6054 (release-prep-hook): New overridable variable.
6056 2009-12-13 Bruno Haible <bruno@clisp.org>
6058 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6060 2009-12-13 Jim Meyering <meyering@redhat.com>
6062 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6063 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6065 2009-12-12 Bruno Haible <bruno@clisp.org>
6068 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6070 2009-12-12 Karl Berry <karl@gnu.org>
6072 * config/srclist.txt (strtoll.c): tab changes, no more sync.
6074 2009-12-12 Bruno Haible <bruno@clisp.org>
6076 * m4/po.m4: Undo incorrect untabification.
6078 2009-12-12 Bruno Haible <bruno@clisp.org>
6080 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6081 * modules/c-strtod (Depends-on): Add locale.
6082 * modules/c-strtold (Depends-on): Likewise.
6084 2009-12-12 Bruno Haible <bruno@clisp.org>
6086 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6088 2009-12-11 Eric Blake <ebb9@byu.net>
6090 setenv: relax requirement in light of POSIX ruling
6091 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6093 * tests/test-setenv.c (main): Relax test.
6094 * tests/test-unsetenv.c (main): Likewise.
6095 * doc/posix-functions/setenv.texi (setenv): Document this.
6096 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6098 2009-12-11 Bruno Haible <bruno@clisp.org>
6100 New module 'fd-safer-flag'.
6101 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6102 * lib/dup-safer.c (dup_safer_flag): Remove function.
6103 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6104 * lib/fd-safer.c (fd_safer_flag): Remove function.
6105 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6106 * modules/cloexec (configure.ac): Drop indicator macro.
6107 * modules/fd-safer-flag: New file.
6108 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6109 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6110 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6112 2009-12-11 Bruno Haible <bruno@clisp.org>
6114 Tests for module 'nl_langinfo'.
6115 * modules/nl_langinfo-tests: New file.
6116 * tests/test-nl_langinfo.sh: New file.
6117 * tests/test-nl_langinfo.c: New file.
6119 New module 'nl_langinfo'.
6120 * lib/nl_langinfo.c: New file.
6121 * m4/nl_langinfo.m4: New file.
6122 * modules/nl_langinfo: New file.
6123 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6125 2009-12-11 Bruno Haible <bruno@clisp.org>
6127 Tests for module 'langinfo'.
6128 * modules/langinfo-tests: New file.
6129 * tests/test-langinfo.c: New file.
6131 New module 'langinfo'.
6132 * lib/langinfo.in.h: New file.
6133 * m4/langinfo_h.m4: New file.
6134 * modules/langinfo: New file.
6135 * doc/posix-headers/langinfo.texi: Mention the new module.
6137 2009-12-11 Bruno Haible <bruno@clisp.org>
6139 * lib/config.charset: Untabify.
6141 2009-12-11 Bruno Haible <bruno@clisp.org>
6143 * modules/unistd-safer (configure.ac): Drop indicator macro.
6145 2009-12-11 Bruno Haible <bruno@clisp.org>
6147 Move pipe2-safer code to its own file.
6148 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6149 * lib/pipe-safer.c (pipe2_safer): Remove function.
6150 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6151 (Makefile.am): Add it to lib_SOURCES.
6153 2009-12-10 Bruno Haible <bruno@clisp.org>
6155 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6157 2009-12-10 Bruno Haible <bruno@clisp.org>
6159 Declare which arguments expect non-NULL values, for GCC and clang.
6160 * build-aux/arg-nonnull.h: New file.
6161 * modules/arg-nonnull: New file.
6162 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6163 (inet_ntop, inet_pton): Use it.
6164 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6165 (closedir, dirfd, opendir, scandir, alphasort): Use it.
6166 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6167 (open, openat): Use it.
6168 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6170 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6171 (getopt, getopt_long, getopt_long_only): Use it.
6172 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6173 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6175 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6176 (iconv_open): Use it.
6177 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6178 (strtoimax, strtoumax): Use it.
6179 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6180 (duplocale): Use it.
6181 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6182 (frexp, frexpl): Use it.
6183 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6184 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6185 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6186 (tsearch, tfind, tdelete, twalk): Use it.
6187 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6188 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6189 sigpending): Use it.
6190 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6191 (posix_spawn, posix_spawnp, posix_spawnattr_init,
6192 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6193 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6194 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6195 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6196 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6197 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6198 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6199 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6200 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6202 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6203 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6204 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6205 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6206 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6207 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6208 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6209 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6210 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6211 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6212 strtoull, unsetenv): Use it.
6213 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6214 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6215 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6216 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6217 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6218 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6219 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6220 (strcasecmp, strncasecmp): Use it.
6221 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6222 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6223 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6224 rpl_setsockopt): Use it.
6225 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6226 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6227 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6228 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6229 (gettimeofday): Use it.
6230 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6232 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6234 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6235 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6236 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6237 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6238 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6239 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6240 unlinkat, write): Use it.
6241 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6242 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6243 * lib/argv-iter.h: Include arg-nonnull.h.
6244 (_ATTRIBUTE_NONNULL_): Remove macro.
6245 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6246 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6247 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6249 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6250 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6251 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6252 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6253 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6254 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6255 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6256 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6257 * modules/arpa_inet (Depends-on): Add arg-nonnull.
6258 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6259 * modules/dirent (Depends-on): Add arg-nonnull.
6260 (Makefile.am): Insert arg-nonnull.h into dirent.h.
6261 * modules/fcntl-h (Depends-on): Add arg-nonnull.
6262 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6263 * modules/fnmatch (Depends-on): Add arg-nonnull.
6264 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6265 * modules/getopt-posix (Depends-on): Add arg-nonnull.
6266 (Makefile.am): Insert arg-nonnull.h into getopt.h.
6267 * modules/glob (Depends-on): Add arg-nonnull.
6268 (Makefile.am): Insert arg-nonnull.h into glob.h.
6269 * modules/iconv_open (Depends-on): Add arg-nonnull.
6270 (Makefile.am): Insert arg-nonnull.h into iconv.h.
6271 * modules/inttypes (Depends-on): Add arg-nonnull.
6272 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6273 * modules/locale (Depends-on): Add arg-nonnull.
6274 (Makefile.am): Insert arg-nonnull.h into locale.h.
6275 * modules/math (Depends-on): Add arg-nonnull.
6276 (Makefile.am): Insert arg-nonnull.h into math.h.
6277 * modules/netdb (Depends-on): Add arg-nonnull.
6278 (Makefile.am): Insert arg-nonnull.h into netdb.h.
6279 * modules/search (Depends-on): Add arg-nonnull.
6280 (Makefile.am): Insert arg-nonnull.h into search.h.
6281 * modules/signal (Depends-on): Add arg-nonnull.
6282 (Makefile.am): Insert arg-nonnull.h into signal.h.
6283 * modules/spawn (Depends-on): Add arg-nonnull.
6284 (Makefile.am): Insert arg-nonnull.h into spawn.h.
6285 * modules/stdio (Depends-on): Add arg-nonnull.
6286 (Makefile.am): Insert arg-nonnull.h into stdio.h.
6287 * modules/stdlib (Depends-on): Add arg-nonnull.
6288 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6289 * modules/string (Depends-on): Add arg-nonnull.
6290 (Makefile.am): Insert arg-nonnull.h into string.h.
6291 * modules/strings (Depends-on): Add arg-nonnull.
6292 (Makefile.am): Insert arg-nonnull.h into strings.h.
6293 * modules/sys_socket (Depends-on): Add arg-nonnull.
6294 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6295 * modules/sys_stat (Depends-on): Add arg-nonnull.
6296 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6297 * modules/sys_time (Depends-on): Add arg-nonnull.
6298 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6299 * modules/sys_times (Depends-on): Add arg-nonnull.
6300 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6301 * modules/sys_utsname (Depends-on): Add arg-nonnull.
6302 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6303 * modules/time (Depends-on): Add arg-nonnull.
6304 (Makefile.am): Insert arg-nonnull.h into time.h.
6305 * modules/unistd (Depends-on): Add arg-nonnull.
6306 (Makefile.am): Insert arg-nonnull.h into unistd.h.
6307 * modules/wchar (Depends-on): Add arg-nonnull.
6308 (Makefile.am): Insert arg-nonnull.h into wchar.h.
6309 * modules/argv-iter (Depends-on): Add arg-nonnull.
6310 * tests/test-canonicalize.c (null_ptr): New function.
6312 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6314 * tests/test-memmem.c (null_ptr): New function.
6316 Reported by Jim Meyering.
6318 2009-12-10 Bruno Haible <bruno@clisp.org>
6320 Use spaces for indentation, not tabs.
6321 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6322 * m4/*.m4: Untabify.
6323 * build-aux/*.h: Untabify.
6324 * tests/**/*.[hc]: Untabify.
6325 * README: New section "Indent with spaces, not TABs", based on
6326 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6327 * NEWS: Mention the change.
6329 2009-12-10 Bruno Haible <bruno@clisp.org>
6331 pty test: Fix link error.
6332 * modules/pty-tests (Makefile.am): Add the default LDADD value to
6335 2009-12-07 Simon Josefsson <simon@josefsson.org>
6337 * modules/pty: New file.
6338 * modules/pty-tests: New file.
6339 * m4/pty.m4: New file.
6340 * tests/test-pty.c: New file.
6341 * doc/glibc-headers/pty.texi: Modified.
6342 * doc/glibc-functions/forkpty.texi: Modified.
6343 * doc/glibc-functions/openpty.texi: Modified.
6345 2009-12-10 Bruno Haible <bruno@clisp.org>
6347 Avoid syntax error in C++ mode.
6348 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6350 2009-12-10 Bruno Haible <bruno@clisp.org>
6352 Use sed with option -e.
6353 * gnulib-tool (func_version, func_emit_copyright_notice,
6354 func_emit_initmacro_end, func_import, func_create_testdir): Pass
6356 * modules/link-warning (Makefile.am): Likewise.
6358 2009-12-10 Jim Meyering <meyering@redhat.com>
6360 mgetgroups: do not write bytes beyond end of malloc'd buffer
6361 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6362 username, we call getgroups with a one-element-shorter buffer,
6363 but still told it the length was original, max_n_groups.
6365 2009-12-09 Eric Blake <ebb9@byu.net>
6367 cloexec: relax license
6368 * modules/cloexec (Maintainer): Add myself.
6369 (License): Use LGPL, not GPL.
6371 link-warning: optimize generation
6372 * modules/link-warning (Makefile.am): Reduce process usage.
6374 2009-12-09 Bruno Haible <bruno@clisp.org>
6376 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6377 workaround was added on 2009-11-17.
6379 2009-12-09 Jim Meyering <meyering@redhat.com>
6380 Bruno Haible <bruno@clisp.org>
6382 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6383 * modules/link-warning (Makefile.am): Make the comment-removing sed
6384 command more robust in the face of bootstrap-prepended comment lines.
6386 2009-12-09 Bruno Haible <bruno@clisp.org>
6388 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6391 2009-12-09 Simon Josefsson <simon@josefsson.org>
6392 Bruno Haible <bruno@clisp.org>
6394 * build-aux/link-warning.h: Add copyright notice.
6395 * modules/link-warning (Makefile.am): Generate link-warning.h from
6396 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6397 * NEWS: Mention change in link-warning module.
6398 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6399 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6400 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6401 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6402 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6403 * modules/math (Makefile.am): Add dependency to math.h.
6404 * modules/search (Makefile.am): Add dependency to search.h.
6405 * modules/signal (Makefile.am): Add dependency to signal.h.
6406 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6407 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6408 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6409 * modules/string (Makefile.am): Add dependency to string.h.
6410 * modules/strings (Makefile.am): Add dependency to strings.h.
6411 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6412 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6413 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6414 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6415 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6416 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6417 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6418 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6419 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6421 2009-12-09 Bruno Haible <bruno@clisp.org>
6423 fchdir: Optimize away rpl_fstat when possible.
6424 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6425 REPLACE_OPEN_DIRECTORY.
6426 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6428 2009-12-09 Bruno Haible <bruno@clisp.org>
6430 * lib/fchdir.c: Update comment.
6432 2009-12-09 Bruno Haible <bruno@clisp.org>
6434 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6436 2009-12-08 Eric Blake <ebb9@byu.net>
6438 fchdir: avoid memory leak on re-registration.
6439 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6441 2009-12-08 Jim Meyering <meyering@redhat.com>
6443 init.sh: avoid Solaris 10 /bin/sh portability problem
6444 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6446 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6447 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6449 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6450 and two tests used that idiom.
6451 * tests/init.sh: Update suggested usage comments.
6452 (path_prepend_): New function, to be used in place
6453 of the --src-path=DIR option.
6454 (setup_): Move PATH-prepending code into path_prepend_.
6455 * tests/test-pread.sh: Adapt to new usage.
6456 * tests/test-xalloc-die.sh: Likewise.
6458 2009-12-08 Simon Josefsson <simon@josefsson.org>
6460 * doc/gnulib.texi (Glibc pty.h): Add.
6461 * doc/glibc-functions/forkpty.texi: Add.
6462 * doc/glibc-functions/openpty.texi: Add.
6463 Suggested by Bruno Haible.
6465 2009-12-08 Eric Blake <ebb9@byu.net>
6467 fchdir: fix logic bugs
6468 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6469 * tests/test-fchdir.c (main): Enhance test.
6470 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6473 dup2: fix logic bugs
6474 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6475 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6476 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6478 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6480 2009-12-07 Eric Blake <ebb9@byu.net>
6482 unlink: fix m4 detection
6483 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6485 unistd-safer: add unit test
6486 * modules/unistd-safer-tests: New file.
6487 * tests/test-dup-safer.c: Likewise.
6488 * tests/test-cloexec.c (setmode): Avoid compiler warning.
6489 * tests/test-dup2.c (setmode): Likewise.
6490 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6492 cloexec: preserve text vs. binary across dup_cloexec
6493 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6495 * modules/dup2-tests (Depends-on): Add binary-io.
6496 * modules/cloexec-tests (Depends-on): Likewise.
6497 * tests/test-dup2.c (setmode, is_mode): New helpers.
6498 (main): Add tests that translation mode is preserved.
6499 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6500 Reported by Bruno Haible.
6502 mgetgroups: reduce duplicate listings
6503 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6505 * tests/test-chown.h (test_chown): Simplify client.
6506 * tests/test-lchown.h (test_lchown): Likewise.
6508 2009-12-06 Bruno Haible <bruno@clisp.org>
6510 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6513 2009-12-06 Bruno Haible <bruno@clisp.org>
6515 * lib/progname.c: Include stdio.h, stdlib.h.
6516 (set_program_name): Reject a NULL argument.
6518 2009-12-05 Eric Blake <ebb9@byu.net>
6520 pipe2-safer: new module
6521 * modules/pipe2-safer: New file.
6522 * lib/unistd-safer.h (pipe2_safer): New prototype.
6523 * lib/unistd--.h (pipe2): New wrapper.
6524 * lib/pipe-safer.c (pipe2_safer): New function.
6525 * modules/pipe (Depends-on): Add pipe2-safer.
6526 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6528 stdlib-safer: preserve cloexec flag for mkostemp[s]
6529 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6532 unistd-safer: allow preservation of cloexec status via flag
6533 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6535 * lib/dup-safer.c (dup_safer_flag): New function.
6536 * lib/fd-safer.c (fd_safer_flag): Likewise.
6537 * modules/cloexec (configure.ac): Set witness.
6539 test-dup2: enhance test
6540 * modules/dup2-tests (Depends-on): Add cloexec.
6541 * tests/test-dup2.c (main): Enhance test.
6543 cloexec: add dup_cloexec
6544 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6545 header and comments.
6546 * lib/cloexec.c (set_cloexec_flag): Add comments.
6547 (dup_cloexec): New function, with mingw implementation borrowed
6549 * lib/w32spawn.h (dup_noinherit): ...here.
6550 * modules/execute (Depends-on): Add cloexec.
6551 * modules/pipe (Depends-on): Likewise.
6552 * modules/cloexec (Depends-on): Add dup2.
6553 * modules/cloexec-tests (Files): New file.
6554 * tests/test-cloexec.c: Likewise.
6556 test-xalloc-die: fix test for mingw
6557 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6558 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6559 directory and .exe suffix off argv[0] output.
6561 test-fseeko: fix test for mingw
6562 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6563 than undefining fseek, so test will pass on mingw.
6565 2009-12-05 Bruno Haible <bruno@clisp.org>
6567 * lib/progname.h (set_program_name): Clarify specification.
6568 * lib/progname.c (set_program_name): Likewise.
6569 Reported by Jim Meyering.
6571 2009-12-05 Jim Meyering <meyering@redhat.com>
6573 maint.mk: backslash-escape parens in default regexp
6574 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6575 backslash-escape the literal parentheses.
6577 maint.mk: news-date-check: use grep -E
6578 * top/maint.mk (today): Define a Make variable, not a...
6579 (news-date-check): ...shell variable.
6580 (news-date-regexp): Use the Make variable.
6581 Use grep's -E option. Change the failing diagnostic to mention
6582 the variable, $(news-date-regexp).
6584 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
6586 maintainer-makefile: allow customization of NEWS entry format
6587 * top/maint.mk (news-date-regexp): New overridable variable.
6588 (news-date-check): Use it.
6590 2009-12-04 Eric Blake <ebb9@byu.net>
6592 mgetgroups: add xgetgroups, and avoid ENOSYS failures
6593 * lib/mgetgroups.h (xgetgroups): New prototype.
6594 * lib/mgetgroups.c (xgetgroups): New wrapper.
6595 (mgetgroups): Handle ENOSYS.
6596 * modules/mgetgroups (Depends-on): Add realloc.
6597 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6599 mgetgroups: avoid argument promotion issues with -1
6600 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6602 * tests/test-chown.h (getegid, test_chown): Likewise.
6603 * tests/test-lchown.h (getegid, test_lchown): Likewise.
6605 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
6607 exclude: Fix header file problems.
6608 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6610 2009-12-01 Jim Meyering <meyering@redhat.com>
6612 fts: fts_open: do not let an empty string cause immediate failure
6613 This is required in support of GNU rm, for which the command
6614 "rm A '' B" must process and remove both A and B, in spite of
6615 the empty string argument.
6616 * lib/fts.c (fts_open): Do not let the presence of an empty string
6617 cause fts_open to fail immediately. Most fts-using tools must be
6618 able to process all arguments, in order, and can be expected to
6619 diagnose such arguments themselves.
6621 2009-11-30 Eric Blake <ebb9@byu.net>
6623 utimens: fix compilation error
6624 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6625 Declare variable at right scope.
6627 2009-11-29 Jim Meyering <meyering@redhat.com>
6629 bootstrap: handle perl-5.11's changed --version output
6630 * build-aux/bootstrap (get_version): Handle perl separately,
6631 since perl-5.11's --version output is different.
6633 2009-11-28 Jim Meyering <meyering@redhat.com>
6635 userspec: depend on the inttostr module, too
6636 * modules/userspec (Depends-on): Add inttostr.
6638 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6639 * lib/userspec.c (parse_with_separator): Do not accept a user ID
6640 number of MAXUID when it evaluates to (uid_t) -1.
6641 Likewise for group ID. Reported by Matt McCutchen in
6642 <http://savannah.gnu.org/bugs/?28113>
6644 userspec: reformat to use spaces, not TABs
6645 * lib/userspec.c: Expand TABs to spaces.
6646 Add Emacs' "indent-tabs-mode: nil" hint.
6648 2009-11-27 Eric Blake <ebb9@byu.net>
6650 getopt-gnu: flush out another BSD bug
6651 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6652 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6654 * tests/test-getopt.h (test_getopt): End lists with NULL.
6655 * tests/test-getopt_long.h (test_getopt_long): Likewise.
6656 (test_getopt_long_posix): Enhance test.
6657 * modules/getopt-posix-tests (Depends-on): Add stdbool.
6658 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6660 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6663 2009-11-27 Simon Josefsson <simon@josefsson.org>
6665 * modules/idpriv-droptemp-tests (Notice): Fix text.
6667 2009-11-27 Jim Meyering <meyering@redhat.com>
6669 test-xalloc-die: avoid spurious failure due to libtool argv difference
6670 In a libtool-enabled project, this test would fail due to a difference
6671 in the emitted program name, e.g.,
6672 -test-xalloc-die: memory exhausted
6673 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6674 Use program to avoid that.
6675 * modules/xalloc-die-tests (Depends-on): Add progname.
6676 * tests/test-xalloc-die.c: Include progname.h".
6677 (program_name): Remove decl.
6678 (main): Call set_program_name.
6679 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6681 2009-11-26 Richard Jones <rjones@redhat.com>
6683 w32sock: leave win32 error in place.
6684 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6686 2009-11-26 Eric Blake <ebb9@byu.net>
6688 init.sh: suggest to use skip_ and fail_ functions in comments
6689 * tests/init.sh: Add a sentence.
6691 2009-11-25 Bruno Haible <bruno@clisp.org>
6693 init.sh: add documentation in comments
6694 * tests/init.sh: Add some developer and user documentation.
6696 2009-11-26 Jim Meyering <meyering@redhat.com>
6698 init.sh: accommodate even those who specify bogus srcdir manually
6699 * tests/init.sh: Normally, srcdir is guaranteed by automake and
6700 configure-time tests to be sanitized, so that there is no need to
6701 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
6702 (with no double quotes) suffices. However, since tests may be
6703 invoked manually, and since you may explicitly set srcdir to the
6704 name of a directory containing spaces, do quote its uses here.
6705 * tests/test-pread.sh: Likewise.
6706 Suggested by Bruno Haible.
6708 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6709 * tests/test-pread.sh: Write no data into the pipe, because
6710 test-pread actually reads none. This avoids a diagnostic,
6711 "bash: echo: write error: Broken pipe", that arises in the unusual
6712 event something is ignoring SIGPIPE, and might be interpreted
6713 as some sort of failure. Reported by Bruno Haible.
6715 2009-11-25 Jim Meyering <meyering@redhat.com>
6717 test-pread: cover failure with ESPIPE and EINVAL
6718 * tests/test-pread.c (main): Test for failure, too.
6719 * tests/test-pread.sh: Invoke with stdin on a pipe.
6720 Suggested by Eric Blake.
6722 pread: improvement and fix
6723 * modules/pread (Depends-on): Depend on lseek, for portability to
6724 e.g., mingw. Suggested by Eric Blake.
6725 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
6727 unistd.in.h: correct declaration of pread
6728 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6729 Reported by Richard W.M. Jones.
6731 test-pread.sh: distribute the test script
6732 * modules/pread-tests (Files): Include test-pread.sh.
6734 test-pread.sh: clean up
6735 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6736 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6737 That is unnecessary, since it's always ".".
6738 Suggestion from Eric Blake.
6740 test-pread.sh: make executable
6741 * tests/test-pread.sh: Set executable bit.
6742 Reported by Eric Blake.
6744 correct typo in test-pread.sh
6745 * tests/test-pread.sh: Add #! line.
6748 * tests/test-pread.c: New file.
6749 * tests/test-pread.sh: Likewise.
6750 * modules/pread-tests: Likewise.
6753 * modules/pread: New file.
6754 * lib/unistd.in.h (pread): Define/declare.
6755 * lib/pread.c (pread): New file.
6756 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6757 * modules/unistd (Makefile.am): Substitute witnesses.
6758 * doc/posix-functions/pread.texi (pread): Update.
6759 * MODULES.html.sh: Add pread.
6761 2009-11-25 Jim Meyering <meyering@redhat.com>
6763 tests/init.sh: new file to be used via most *.sh tests
6764 * tests/init.sh: New file.
6766 2009-11-25 Eric Blake <ebb9@byu.net>
6768 utimens: work around older Linux failure with symlinks
6769 * lib/utimens.c (lutimensat_works_really): New variable.
6770 (fdutimens, lutimens): Use it to manage kernels that support
6771 nanosecond times on files, but not on symlinks.
6772 Reported by OndÅ™ej VaÅ¡Ãk.
6774 utimes: fix configure grammar
6775 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6777 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
6779 regex: Fix fastmap for multibyte character ranges.
6780 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6781 characters when a multibyte character range is included.
6783 2009-11-22 Andy Wingo <wingo@pobox.com>
6785 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6786 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6788 2009-11-24 Bruno Haible <bruno@clisp.org>
6790 doc: Most *_l functions exist in MacOS X 10.5.
6791 * doc/posix-functions/duplocale.texi: Update platforms list.
6792 * doc/posix-functions/freelocale.texi: Likewise.
6793 * doc/posix-functions/newlocale.texi: Likewise.
6794 * doc/posix-functions/uselocale.texi: Likewise.
6795 * doc/posix-functions/isalnum_l.texi: Likewise.
6796 * doc/posix-functions/isalpha_l.texi: Likewise.
6797 * doc/posix-functions/isblank_l.texi: Likewise.
6798 * doc/posix-functions/iscntrl_l.texi: Likewise.
6799 * doc/posix-functions/isdigit_l.texi: Likewise.
6800 * doc/posix-functions/isgraph_l.texi: Likewise.
6801 * doc/posix-functions/islower_l.texi: Likewise.
6802 * doc/posix-functions/isprint_l.texi: Likewise.
6803 * doc/posix-functions/ispunct_l.texi: Likewise.
6804 * doc/posix-functions/isspace_l.texi: Likewise.
6805 * doc/posix-functions/isupper_l.texi: Likewise.
6806 * doc/posix-functions/iswalnum_l.texi: Likewise.
6807 * doc/posix-functions/iswalpha_l.texi: Likewise.
6808 * doc/posix-functions/iswblank_l.texi: Likewise.
6809 * doc/posix-functions/iswcntrl_l.texi: Likewise.
6810 * doc/posix-functions/iswctype_l.texi: Likewise.
6811 * doc/posix-functions/iswdigit_l.texi: Likewise.
6812 * doc/posix-functions/iswgraph_l.texi: Likewise.
6813 * doc/posix-functions/iswlower_l.texi: Likewise.
6814 * doc/posix-functions/iswprint_l.texi: Likewise.
6815 * doc/posix-functions/iswpunct_l.texi: Likewise.
6816 * doc/posix-functions/iswspace_l.texi: Likewise.
6817 * doc/posix-functions/iswupper_l.texi: Likewise.
6818 * doc/posix-functions/iswxdigit_l.texi: Likewise.
6819 * doc/posix-functions/isxdigit_l.texi: Likewise.
6820 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6821 * doc/posix-functions/strcasecmp_l.texi: Likewise.
6822 * doc/posix-functions/strcoll_l.texi: Likewise.
6823 * doc/posix-functions/strfmon_l.texi: Likewise.
6824 * doc/posix-functions/strftime_l.texi: Likewise.
6825 * doc/posix-functions/strncasecmp_l.texi: Likewise.
6826 * doc/posix-functions/strxfrm_l.texi: Likewise.
6827 * doc/posix-functions/tolower_l.texi: Likewise.
6828 * doc/posix-functions/toupper_l.texi: Likewise.
6829 * doc/posix-functions/towctrans_l.texi: Likewise.
6830 * doc/posix-functions/towlower_l.texi: Likewise.
6831 * doc/posix-functions/towupper_l.texi: Likewise.
6832 * doc/posix-functions/wcscoll_l.texi: Likewise.
6833 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6834 * doc/posix-functions/wctrans_l.texi: Likewise.
6835 * doc/posix-functions/wctype_l.texi: Likewise.
6836 * doc/glibc-functions/strptime_l.texi: Likewise.
6837 * doc/glibc-functions/strtod_l.texi: Likewise.
6838 * doc/glibc-functions/strtof_l.texi: Likewise.
6839 * doc/glibc-functions/strtol_l.texi: Likewise.
6840 * doc/glibc-functions/strtold_l.texi: Likewise.
6841 * doc/glibc-functions/strtoll_l.texi: Likewise.
6842 * doc/glibc-functions/strtoul_l.texi: Likewise.
6843 * doc/glibc-functions/strtoull_l.texi: Likewise.
6844 * doc/glibc-functions/wcsftime_l.texi: Likewise.
6845 * doc/glibc-functions/wcstod_l.texi: Likewise.
6846 * doc/glibc-functions/wcstof_l.texi: Likewise.
6847 * doc/glibc-functions/wcstol_l.texi: Likewise.
6848 * doc/glibc-functions/wcstold_l.texi: Likewise.
6849 * doc/glibc-functions/wcstoll_l.texi: Likewise.
6850 * doc/glibc-functions/wcstoul_l.texi: Likewise.
6851 * doc/glibc-functions/wcstoull_l.texi: Likewise.
6853 2009-11-24 Bruno Haible <bruno@clisp.org>
6855 duplocale: Fix logic bug.
6856 * lib/duplocale.c: Don't include <langinfo.h>.
6857 (_NL_LOCALE_NAME): Remove macro.
6858 (rpl_duplocale): Use setlocale instead of nl_langinfo.
6859 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6861 2009-11-23 Jim Meyering <meyering@redhat.com>
6863 test-update-copyright: don't hard-code /usr/bin/perl
6864 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6865 perl to print the current year. Gilles Espinasse reported that
6866 the replaced use of perl was hard-coded as /usr/bin/perl.
6868 2009-11-23 Bruno Haible <bruno@clisp.org>
6870 duplocale: Add support for glibc 2.3.x.
6871 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6873 2009-11-22 Bruno Haible <bruno@clisp.org>
6875 vasnprintf: Tiny optimization.
6876 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6879 2009-11-22 Bruno Haible <bruno@clisp.org>
6881 Tests for module 'duplocale'.
6882 * modules/duplocale-tests: New file.
6883 * tests/test-duplocale.c: New file.
6885 New module 'duplocale'.
6886 * m4/duplocale.m4: New file.
6887 * lib/locale.in.h (duplocale): New declaration.
6888 * lib/duplocale.c: New file.
6889 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6890 gl_LOCALE_H_DEFAULTS): New macros.
6891 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6892 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6893 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6895 * modules/duplocale: New file.
6896 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6898 2009-11-22 Bruno Haible <bruno@clisp.org>
6900 * modules/locale-tests (configure.ac): Test for newlocale function.
6901 * tests/test-locale.c: When the system has extended locale functions,
6902 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6904 locale: Make locale_t available when possible.
6905 * lib/locale.in.h: Include <xlocale.h> when it exists.
6906 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6907 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6908 * modules/locale (Depends-on): Add extensions.
6909 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6910 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6912 2009-11-22 Bruno Haible <bruno@clisp.org>
6915 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6917 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6918 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6919 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6921 2009-11-22 Bruno Haible <bruno@clisp.org>
6923 error: account for the possibility of freopen (stdout).
6924 * lib/error.c: Include <unistd.h>.
6925 (flush_stdout): New function, extracted from error and error_at_line.
6926 Determine stdout's fd dynamically.
6927 (error, error_at_line): Invoke flush_stdout.
6928 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6929 * modules/error (Depends-on): Add unistd.
6931 2009-11-22 Bruno Haible <bruno@clisp.org>
6933 diffseq: Add comment.
6934 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6936 2009-11-22 Jim Meyering <meyering@redhat.com>
6938 c-stack: avoid defining an unused static function
6939 * lib/c-stack.c (find_stack_direction): Do not define this function
6940 when it will not be used.
6942 diffseq: avoid spurious gcc warnings
6943 * lib/diffseq.h (IF_LINT2): Define.
6944 (compareseq): Use it to initialize two members of "part".
6945 This avoids two used-uninitialized warnings.
6947 2009-11-21 Jim Meyering <meyering@redhat.com>
6949 c-stack: avoid "ignoring return value of `write'" warning
6950 * lib/c-stack.c: Include "ignore-value.h".
6951 (die): Explicitly ignore each write return value.
6952 * modules/c-stack (Depends-on): Add ignore-value.
6954 2009-11-21 Bruno Haible <bruno@clisp.org>
6956 diffseq: reduce scope of variable 'best'.
6957 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6958 variable, earlier used for two different purposes.
6960 2009-11-21 Jim Meyering <meyering@redhat.com>
6962 diffseq: remove useless assignment to "best"
6963 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6964 assignment. At that point "best" is already guaranteed to be zero.
6966 2009-11-20 Eric Blake <ebb9@byu.net>
6968 build: mention ftp redirector in release announcements
6969 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6970 values that used to come from cfg.mk; mention FTP redirect URL.
6971 * build-aux/announce-gen: Mention the mirror list.
6972 Suggested by Karl Berry.
6974 nanosleep: improve port to mingw
6975 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6976 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6977 LIB_NANOSLEEP, but only when needed.
6978 * modules/select (Link): Document LIBSOCKET.
6979 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6982 nanosleep: work around cygwin bug
6983 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6984 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
6986 (getnow): Delete, not needed.
6987 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6989 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
6990 clock-time, gettime.
6991 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6993 * modules/nanosleep-tests: New test.
6994 * tests/test-nanosleep.c: New file.
6996 sleep: work around cygwin bug
6997 * lib/sleep.c (rpl_sleep): Work around the bug.
6998 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6999 (gl_PREREQ_SLEEP): Delete unused macro.
7000 * modules/sleep (Depends-on): Add verify.
7001 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7002 * modules/unistd (Makefile.am): Substitute witness.
7003 * lib/unistd.in.h (sleep): Update prototype.
7004 * doc/posix-functions/sleep.texi (sleep): Document the bug.
7005 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7006 * modules/sleep-tests (Depends-on): Check for alarm.
7008 2009-11-20 Jim Meyering <meyering@redhat.com>
7010 maint.mk: improve sc_prohibit_magic_number_exit
7011 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7012 so it does not match uses like System.exit(1).
7013 Add comments showing how to correct all offenders.
7015 2009-11-19 Eric Blake <ebb9@byu.net>
7017 xalloc-die-tests: add missing library
7018 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7020 test-xvasprintf: silence compiler warnings
7021 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7022 empty string from gcc.
7024 2009-11-19 Jim Meyering <meyering@redhat.com>
7026 xfreopen: new module, from coreutils
7027 * modules/xfreopen: New module.
7028 * lib/xfreopen.c: New file.
7029 * lib/xfreopen.h: New file.
7030 * MODULES.html.sh (File stream based Input/Output"): Add it.
7032 2009-11-19 Eric Blake <ebb9@byu.net>
7034 manywarnings: depend on warnings
7035 * modules/manywarnings (Depends-on): Add warnings.
7037 build: avoid compiler warnings
7038 * lib/select.c (rpl_select): Delete unused variable.
7039 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7041 2009-11-18 Eric Blake <ebb9@byu.net>
7043 tests: avoid false negative with --with-packager
7044 * tests/test-version-etc.sh: Discard packager information.
7045 * tests/test-argp-version-etc-1.sh: Likewise.
7046 Reported by Mike Frysinger.
7048 utimens: fix regression on Solaris
7049 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7050 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7051 can only change fd timestamps via futimesat. Instead, use an
7052 additional witness macro to avoid BSD bug.
7053 Reported by Jim Meyering.
7055 2009-11-17 Eric Blake <ebb9@byu.net>
7057 usleep: use it to simplify tests
7058 * modules/stat-time-tests (Depends-on): Add usleep.
7059 (configure.ac): Drop usleep check.
7060 * modules/chown-tests (Depends-on, configure.ac): Likewise.
7061 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7062 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7063 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7064 * modules/openat-tests (Depends-on, configure.ac): Likewise.
7065 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7066 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7067 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7069 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7070 * tests/test-lchown.h (nap): Likewise.
7071 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7072 * tests/test-stat-time.c (nap): Likewise.
7073 * tests/test-utimens-common.h (nap): Update comments.
7076 * modules/usleep: New file.
7077 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7078 * lib/usleep.c (usleep): Likewise.
7079 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7080 * modules/unistd (Makefile.am): Substitute witnesses.
7081 * lib/unistd.in.h (usleep): Add declaration.
7082 * doc/pastposix-functions/usleep.texi (usleep): Document this.
7083 * MODULES.html.sh (Date and time): Likewise.
7084 * modules/usleep-tests (Depends-on): New test.
7085 * tests/test-usleep.c: New file.
7087 chown: work around OpenBSD bug
7088 * lib/chown.c (rpl_chown): Work around the bug.
7089 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7090 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7091 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7092 * modules/chown (Depends-on): Add stdbool.
7093 * modules/lchown (Depends-on): Likewise.
7094 * doc/posix-functions/chown.texi (chown): Document the bug.
7095 * doc/posix-functions/lchown.texi (lchown): Likewise.
7096 * tests/test-lchown.h (test_chown): Relax test.
7098 mkstemp: avoid conflict with C++ keyword template
7099 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7100 * lib/mkostemp.c (mkostemp): Likewise.
7101 * lib/mkostemps.c (mkostemps): Likewise.
7102 * lib/mkstemp.c (mkstemp): Likewise.
7103 * lib/mkstemps.c (mkstemps): Likewise.
7105 xalloc-die-tests: optimize
7106 * tests/test-xalloc-die.sh: Reduce number of processes.
7108 2009-11-17 Simon Josefsson <simon@josefsson.org>
7110 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
7111 patch from ludo@gnu.org (Ludovic Courtès).
7113 2009-11-17 Jim Meyering <meyering@redhat.com>
7115 version-etc: use proper license string
7116 * modules/version-etc (License): Use LGPL, not LGPLv3+.
7117 * modules/version-etc-fsf: Likewise.
7119 2009-11-17 Simon Josefsson <simon@josefsson.org>
7121 * tests/test-xalloc-die.sh: Add license. Check that nothing is
7122 printed to stdout. Deal with EOL differences.
7124 2009-11-17 Eric Blake <ebb9@byu.net>
7126 unsetenv: work around Solaris bug
7127 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7128 * lib/unsetenv.c (rpl_unsetenv): Work around it.
7129 Reported by Jim Meyering.
7131 vasnprintf: avoid compiler warnings
7132 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7134 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7136 2009-11-17 Simon Josefsson <simon@josefsson.org>
7138 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7139 settings since xalloc-die is no longer the self test,
7142 2009-11-17 Jim Meyering <meyering@redhat.com>
7144 test-xalloc-die.sh: make the code agree with the commit log
7145 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7146 at the end, just in case you happen to have a test-xalloc-die
7147 program in some other PATH directory.
7149 test-xalloc-die.sh: fix a portability bug
7150 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7151 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7152 Otherwise, argv[0] (as often seen in diagnostics) would be too
7153 system-dependent, sometimes with, and sometimes without the leading "./".
7155 version-etc-fsf: relax license to LGPLv3+
7156 * modules/version-etc-fsf (License): Relax license.
7158 2009-11-16 Eric Blake <ebb9@byu.net>
7160 xalloc-die-tests: avoid printing null pointer
7161 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7163 * tests/test-xalloc-die.c (program_name): Declare.
7164 * tests/test-xalloc-die.sh (tmpfiles): New file.
7166 setenv, unsetenv: work around various bugs
7167 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7168 (setenv) [HAVE_SETENV]: Work around bugs.
7169 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7170 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7172 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7173 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7174 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7175 * modules/stdlib (Makefile.am): Update substitutions.
7176 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7177 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7178 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7179 * modules/setenv-tests: New test.
7180 * modules/unsetenv-tests: Likewise.
7181 * tests/test-setenv.c: New file.
7182 * tests/test-unsetenv.c: Likewise.
7184 2009-11-16 Jim Meyering <meyering@redhat.com>
7186 version-etc: relax license to LGPLv3+
7187 * modules/version-etc (License): Relax license.
7189 better AC_REQUIRE expanded-before-required-warning avoidance
7190 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7191 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7192 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
7193 which is no longer needed.
7195 2009-11-16 Eric Blake <ebb9@byu.net>
7197 test-freading: clean up temporary file
7198 * tests/test-freading.c (main): Remove file on success, and use
7199 ASSERT more liberally.
7200 Reported by Jim Meyering.
7202 2009-11-16 Jim Meyering <meyering@redhat.com>
7204 avoid new AC_REQUIRE expanded-before-required warnings
7205 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7207 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7208 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7210 2009-11-15 Simon Josefsson <simon@josefsson.org>
7212 * tests/test-xalloc-die.c: New file.
7213 * modules/xalloc-die-tests: New file.
7214 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7215 XFAIL_TESTS so it can be appended by modules.
7217 2009-11-15 Simon Josefsson <simon@josefsson.org>
7219 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
7220 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7222 2009-11-14 Eric Blake <ebb9@byu.net>
7224 fnmatch: avoid compiler warning
7225 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7226 to silence compiler warning about mismatch signedness in ?:.
7227 Reported by Robert Millan.
7229 intprops: add double-inclusion guard
7230 * lib/intprops.h: Allow idempotent includes.
7231 Suggested by Bruce Korb.
7233 openat: detect Solaris fchownat bug
7234 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
7235 penalizing glibc chownat when only lchownat is broken.
7236 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7237 trailing slash bugs.
7238 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7239 * modules/openat-tests (Files): Include more files.
7240 (Depends-on): Add mgetgroups, sleep, stat-time.
7241 (configure.ac): Add additional checks.
7242 (Makefile.am): Build new test.
7243 * tests/test-fchownat.c: New file.
7245 lchown: detect Solaris and FreeBSD bug
7246 * lib/lchown.c (rpl_lchown): Work around bug.
7247 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7248 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7249 * modules/unistd (Makefile.am): Populate it.
7250 * lib/unistd.in.h (lchown): Update declaration.
7251 * doc/posix-functions/lchown.texi (lchown): Document the bug.
7252 * modules/lchown-tests: New file.
7253 * tests/test-lchown.h (test_lchown): Likewise.
7254 * tests/test-lchown.c (main): Likewise.
7256 chown: detect Solaris and FreeBSD bug
7257 * lib/chown.c (rpl_chown): Work around bug.
7258 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7259 (gl_PREREQ_CHOWN): Delete.
7260 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7261 * modules/unistd (Makefile.am): Populate it.
7262 * lib/unistd.in.h (chown): Update declaration.
7263 * lib/lchown.c (chown): Update client.
7264 * modules/lchown (Depends-on): Add lstat.
7265 * doc/posix-functions/chown.texi (chown): Document the bug.
7266 * doc/posix-functions/getgroups.texi (getgroups): Document
7268 * modules/chown-tests: New file.
7269 * tests/test-chown.h (test_chown): Likewise.
7270 * tests/test-chown.c (main): Likewise.
7272 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
7274 gnulib-tool: correctly detect absence of m4 directories
7275 * gnulib-tool: Avoid extra newline on data passed to wc -l.
7277 2009-11-14 Jim Meyering <meyering@redhat.com>
7279 maint.mk: Prohibit inclusion of "xalloc.h" without use.
7280 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7282 2009-11-14 John W. Eaton <jwe@gnu.org>
7284 strftime.h: wrap funtion declaration in extern "C" block
7285 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7287 2009-11-13 Eric Blake <ebb9@byu.net>
7289 getgroups: avoid compiler warning
7290 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7292 getgroups: work around FreeBSD bug
7293 * lib/getgroups.c (rpl_getgroups): Work around the bug.
7294 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7295 * doc/posix-functions/getgroups.texi (getgroups): Document it.
7296 * tests/test-getgroups.c (main): Fix buffer overrun.
7298 getgroups: avoid compilation failure
7299 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7300 * modules/getgroups (Depends-on): Add stdint.
7302 2009-11-13 Jim Meyering <meyering@redhat.com>
7304 test-getgroups: avoid compilation failure
7305 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7307 2009-11-13 Eric Blake <ebb9@byu.net>
7309 mgetgroups: new module, taken from coreutils
7310 * modules/mgetgroups: New file.
7311 * lib/mgetgroups.h: Likewise.
7312 * lib/mgetgroups.c (mgetgroups): Likewise.
7313 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7314 * MODULES.html.sh (Users and groups): Mention it.
7316 getgroups: don't expose GETGROUPS_T to user
7317 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
7318 an element at a time if GETGROUPS_T is wrong size.
7319 * lib/getugroups.h (getugroups): Change signature.
7320 * lib/unistd.in.h (getgroups): Likewise.
7321 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7322 signature needs fixing.
7323 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7325 * modules/group-member (Depends-on): Add getgroups.
7326 * lib/group-member.c (group_info, get_group_info): Use gid_t.
7327 (group_member): Rely on getgroups replacement.
7328 * lib/getugroups.c (getugroups): Use gid_t.
7329 * tests/test-getgroups.c (main): Likewise.
7330 * NEWS: Mention the signature change.
7331 * doc/posix-functions/getgroups.texi (getgroups): Mention the
7332 problem with signature.
7333 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7334 GETGROUPS_T is still useful for setgroups.
7336 getgroups, getugroups: provide stubs for mingw
7337 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7338 * lib/getugroups.c (getugroups): Likewise.
7339 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7340 function. Modernize replacement scheme.
7341 (gl_PREREQ_GETGROUPS): Delete.
7342 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7343 * modules/getgroups (configure.ac): Declare witness.
7344 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7345 * modules/unistd (Depends-on): Substitute witness.
7346 * lib/unistd.in.h (getgroups): Declare replacement.
7348 getgroups: avoid calling exit
7349 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7351 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7353 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7354 exiting, in the rare case of malloc failure.
7356 getgroups: fix logic error
7357 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7358 has more than 20 groups.
7359 * modules/getgroups-tests: New test.
7360 * tests/test-getgroups.c: New file.
7362 2009-11-13 Simon Josefsson <simon@josefsson.org>
7364 * tests/test-base64.c: Improve.
7366 2009-11-13 Simon Josefsson <simon@josefsson.org>
7368 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7369 Blake <ebb9@byu.net>.
7371 2009-11-13 Simon Josefsson <simon@josefsson.org>
7373 * tests/test-xvasprintf.c: Add %s%s related checks.
7375 2009-11-12 Eric Blake <ebb9@byu.net>
7377 version-etc: match standards.texi style
7378 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7379 and use <> only for URLs.
7381 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7383 fts: do not fail on a submount during traversal
7384 * lib/fts.c (fts_build): Read the stat info again after opening
7385 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7386 Original report at http://bugzilla.redhat.com/501848.
7388 2009-11-12 Jim Meyering <meyering@redhat.com>
7390 bootstrap: sync from coreutils
7391 * build-aux/bootstrap (bootstrap_epilogue): New function.
7392 Use git_modules_config in one more place. This make bootstrap's
7393 --gnulib-srcdir option more useful for testing.
7395 bootstrap: generalize autoheader check
7396 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7399 2009-11-11 Eric Blake <ebb9@byu.net>
7401 mkfifoat: use new modules for Solaris and BSD bugs
7402 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7403 * lib/mkfifoat.c (mknodat): Split...
7404 * lib/mknodat.c (mknodat): ...into new file.
7405 * modules/mkfifoat (Files): Ship new file.
7406 (Depends-on): Add mkfifo, mknod.
7407 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7408 (Depends-on): Add symlink.
7409 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7410 redundant with test_mkfifo.h.
7411 (do_mkfifoat, do_mknodat): New helpers.
7414 * modules/mknod: New file.
7415 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7416 * lib/mknod.c (mknod): Likewise.
7417 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7419 * modules/sys_stat (Makefile.am): Substitute them.
7420 * lib/sys_stat.in.h (mknod): Declare replacement.
7421 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7423 * doc/posix-functions/mknod.texi (mknod): Likewise.
7424 * modules/mknod-tests: New test.
7425 * tests/test-mknod.c: Likewise.
7428 * modules/mkfifo: New file.
7429 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7430 * lib/mkfifo.c (mkfifo): Likewise.
7431 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7433 * modules/sys_stat (Makefile.am): Substitute them.
7434 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7435 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7437 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7438 * modules/mkfifo-tests: New test.
7439 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7440 from test-mkfifoat.c.
7441 * tests/test-mkfifo.c: New file.
7443 readlink: detect FreeBSD bug
7444 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7446 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7447 * tests/test-readlink.h (test_readlink): Enhance test.
7449 symlink: detect FreeBSD bug
7450 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7452 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7453 * tests/test-symlink.h (test_symlink): Enhance test.
7455 2009-11-10 Eric Blake <ebb9@byu.net>
7457 link: detect FreeBSD bug
7458 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7460 * doc/posix-functions/link.texi (link): Document the bug.
7461 * tests/test-link.h (test_link): Enhance test.
7462 * tests/test-linkat.c (main): Update caller.
7464 unlink, remove: detect FreeBSD bug
7465 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7467 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7468 * doc/posix-functions/remove.texi (remove): Likewise.
7469 * tests/test-unlink.h (test_unlink): Enhance test.
7470 * tests/test-remove.c (main): Likewise.
7472 2009-11-09 Eric Blake <ebb9@byu.net>
7474 rename: detect FreeBSD bug
7475 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7477 * modules/renameat-tests (Depends-on): Add filenamecat.
7478 * tests/test-rename.h (test_rename): Allow one more errno.
7479 * tests/test-renameat.c (main): Likewise.
7480 * doc/posix-functions/rename.texi (rename): Document the bug.
7482 open: detect FreeBSD bug
7483 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7485 * doc/posix-functions/open.texi (open): Document the bug.
7486 * doc/posix-functions/utimes.texi (utimes): Likewise.
7487 * tests/test-open.h (test_open): Add parameters, and test symlink
7489 * tests/test-open.c (main): Adjust caller.
7490 * tests/test-fcntl-safer.c (main): Likewise.
7491 * modules/open-tests (Depends-on): Add stdbool, symlink.
7492 * modules/fcntl-safer-tests (Depends-on): Likewise.
7493 * tests/test-openat.c (main): Add test-open tests.
7495 stat: detect FreeBSD bug
7496 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7498 * doc/posix-functions/stat.texi (stat): Document the bug.
7499 * tests/test-stat.h (test_stat_func): Add argument.
7500 * tests/test-stat.c (main): Adjust caller.
7501 * tests/test-fstatat.c (main): Likewise.
7502 * modules/stat-tests (Depends-on): Add stdbool, symlink.
7503 Reported by Jim Meyering.
7505 2009-11-09 James Youngman <jay@gnu.org>
7507 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7508 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7510 2009-11-08 Jim Meyering <meyering@redhat.com>
7512 utimens: remove invalid futimesat call
7513 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7514 It used the file descriptor of the target file as the DIR_FD
7515 parameter and NULL as the file name. That caused failure with
7516 errno == EFAULT on FreeBSD-8.0-rc2
7518 2009-11-07 Eric Blake <ebb9@byu.net>
7520 fflush, freadseek: use fseeko, not fseek
7521 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7522 (clear_ungetc_buffer): Avoid potential problems on large files.
7523 * lib/freadseek.c (freadseek): Likewise.
7524 * modules/freadseek (Depends-on): Add fseeko.
7525 * modules/fseek (configure.ac): Set a witness.
7526 * tests/test-fflush.c (main): Use fseeko.
7527 * tests/test-fpurge.c (fseek): Disable link warning.
7528 * tests/test-freadable.c (fseek): Likewise.
7529 * tests/test-freading.c (fseek): Likewise.
7530 * tests/test-fseeko.c (fseek): Likewise.
7531 * tests/test-ftell.c (fseek): Likewise.
7532 * tests/test-ftello.c (fseek): Likewise.
7533 * tests/test-fwritable.c (fseek): Likewise.
7534 * tests/test-fwriting.c (fseek): Likewise.
7536 2009-11-06 Simon Josefsson <simon@josefsson.org>
7538 * modules/memchr (Depends-on): Drop getpagesize dependency.
7540 2009-11-06 Simon Josefsson <simon@josefsson.org>
7542 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7543 Reported by Ludovic Courtès.
7544 * build-aux/pmccabe2html: Improve example usage.
7545 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7547 2009-11-06 Jim Meyering <meyering@redhat.com>
7549 do-release-commit-and-tag: New module.
7550 Automate the release-commit and tag process.
7551 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7552 * modules/do-release-commit-and-tag: New file.
7553 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7555 2009-11-06 Simon Josefsson <simon@josefsson.org>
7557 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7558 because test-select.c uses inet_pton.
7560 2009-11-06 Simon Josefsson <simon@josefsson.org>
7562 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7563 GETADDRINFO_LIB. Bump serial number.
7564 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7565 Suggested by Eric Blake <ebb9@byu.net>.
7567 2009-11-05 Eric Blake <ebb9@byu.net>
7569 strtod: detect darwin bug
7570 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7571 Reported by Leo Davis.
7573 freopen-safer: new module
7574 * modules/freopen-safer: New module.
7575 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7576 * lib/freopen-safer.c (freopen_safer): New file.
7577 * lib/stdio-safer.h (freopen_safer): New declaration.
7578 * lib/stdio--.h (freopen): New override.
7579 * MODULES.html.sh (File stream based Input/Output): Mention it.
7580 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7581 freopen-safer module.
7582 * doc/posix-functions/stderr.texi (stderr): Likewise.
7583 * doc/posix-functions/stdin.texi (stdin): Likewise.
7584 * doc/posix-functions/stdout.texi (stdout): Likewise.
7585 * modules/freopen-safer-tests: New test.
7586 * tests/test-reopen-safer.c: New file.
7588 2009-11-05 Jim Meyering <meyering@redhat.com>
7590 maint.mk: Prohibit inclusion of "close-stream.h" without use.
7591 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7593 2009-11-05 Simon Josefsson <simon@josefsson.org>
7595 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7597 2009-11-05 Simon Josefsson <simon@josefsson.org>
7599 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7601 2009-11-05 Simon Josefsson <simon@josefsson.org>
7604 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7605 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7607 2009-11-05 Simon Josefsson <simon@josefsson.org>
7609 * tests/test-func.c: Also test value of __func__.
7611 2009-11-05 Simon Josefsson <simon@josefsson.org>
7613 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7614 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
7616 2009-11-05 Bruno Haible <bruno@clisp.org>
7619 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7620 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7621 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7623 2009-11-05 Bruno Haible <bruno@clisp.org>
7625 Tests for module 'inet_pton'.
7626 * modules/inet_pton-tests: New file.
7627 * tests/test-inet_pton.c: New file.
7629 2009-11-05 Bruno Haible <bruno@clisp.org>
7631 Tests for module 'inet_ntop'.
7632 * modules/inet_ntop-tests: New file.
7633 * tests/test-inet_ntop.c: New file.
7635 2009-11-04 Eric Blake <ebb9@byu.net>
7637 stdlib-safer: wrap all mkstemp variants
7638 * modules/mkostemp (configure.ac): Set witness.
7639 * modules/mkostemps (configure.ac): Likewise.
7640 * modules/mkstemps (configure.ac): Likewise.
7641 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7642 (mkstemps_safer): Wrap more functions.
7643 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7645 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7646 (mkstemps_safer): Implement the wrappers.
7648 mkstemps, mkostemps: new modules
7649 * modules/mkostemps: New module.
7650 * modules/mkstemps: Likewise.
7651 * lib/mkostemps.c (mkostemps): New file.
7652 * lib/mkstemps.c (mkstemps): Likewise.
7653 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7654 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7655 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7656 * modules/stdlib (Makefile.am): Substitute them.
7657 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7658 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7659 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7660 * doc/gnulib.texi (Glibc stdlib.h): Include them.
7661 * MODULES.html.sh (File system functions): Mention them.
7663 tempname: resync from glibc
7664 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
7665 same values for __GT_FILE as glibc. Abort even when assertions
7667 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7668 match its value otherwise. Allow idempotent inclusion.
7669 * lib/mkdtemp.c (mkdtemp): Adjust caller.
7670 * lib/mkostemp.c (mkostemp): Likewise.
7671 * lib/mkstemp.c (mkstemp): Likewise.
7672 * lib/tmpfile.c (tmpfile): Likewise.
7673 * NEWS: Document this.
7675 utimens: fix use of futimens on older Linux
7676 * lib/utimens.c (fdutimens): Use updated, rather than original,
7677 timespec to avoid bug in older Linux kernel.
7678 Reported by Simon Josefsson.
7680 2009-11-04 Bruno Haible <bruno@clisp.org>
7682 Make num_processors more flexible and consistent.
7683 * lib/nproc.h (enum nproc_query): New type.
7684 (num_processors): Add a 'query' argument.
7685 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7686 (num_processors): Add a 'query' argument. Test the value of the
7687 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7688 mingw, count the number of CPUs available for the current process.
7689 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7690 Check for sched_getaffinity and sched_getaffinity_np.
7691 * modules/nproc (Depends-on): Add c-ctype, extensions.
7692 * NEWS: Mention the change.
7694 2009-11-03 Bruno Haible <bruno@clisp.org>
7696 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7698 2009-11-03 Jim Meyering <meyering@redhat.com>
7700 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7701 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7704 2009-11-02 Eric Blake <ebb9@byu.net>
7706 mktime, timegm: share common declaration
7707 * lib/mktime-internal.h: New file.
7708 * lib/mktime.c: Use it rather than open-coding a declaration.
7709 * lib/timegm.c: Likewise.
7710 * modules/mktime (Files): Ship it.
7711 * modules/timegm (Files): Likewise.
7712 Suggested by Bruno Haible.
7714 test-update-copyright: update test to match script changes
7715 * tests/test-update-copyright.sh: Avoid hard-coding perl
7716 location. Don't update *.bak created by earlier runs.
7718 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
7719 Simon Josefsson <simon@josefsson.org>
7720 Bruno Haible <bruno@clisp.org>
7722 Fix link error on Solaris 8.
7723 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7724 also in libnsl. Define also INET_PTON_LIB.
7725 * modules/inet_pton (Link): New section.
7727 2009-11-02 Simon Josefsson <simon@josefsson.org>
7728 Bruno Haible <bruno@clisp.org>
7730 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7731 * modules/inet_ntop (Link): New section.
7732 Reported by Boyan Kasarov <bkasarov@gmail.com>.
7734 2009-11-02 Eric Blake <ebb9@byu.net>
7736 maint: avoid compiler warnings in m4 macros
7737 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7738 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7740 2009-11-02 Simon Josefsson <simon@josefsson.org>
7742 * m4/pmccabe2html.m4: Remove file.
7743 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
7744 function. Change maintainer.
7745 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7746 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
7749 2009-10-31 Eric Blake <ebb9@byu.net>
7751 fseeko: fix m4 regression
7752 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
7753 regression from 2009-10-27.
7754 Reported by Ralf Wildenhues.
7756 2009-10-31 Jim Meyering <meyering@redhat.com>
7758 inttostr: aesthetics and improved (compile-time) safety
7759 Define inttype_is_signed rather than inttype_is_unsigned,
7760 since the sole use is via "#if inttype_is_signed".
7761 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7762 inttype_is_unsigned.
7763 * lib/offtostr.c (inttype_is_signed): Likewise.
7764 * lib/uinttostr.c (inttype_is_signed): Likewise.
7765 * lib/umaxtostr.c (inttype_is_signed): Likewise.
7766 * lib/inttostr.c (inttostr): Use verify to cross-check the
7767 inttype_is_signed value and the signedness of the actual type.
7768 * modules/inttostr (Depends-on): Add verify.
7770 2009-10-30 Eric Blake <ebb9@byu.net>
7772 build: avoid compiler warnings
7773 * lib/fchmodat.c (lchmod): Mark unused variables.
7774 * lib/getopt.c (_getopt_initialize): Likewise.
7775 * lib/mktime.c (__mktime_internal): Provide prototype.
7776 * lib/inttostr.c (inttostr): Avoid compiler warning even with
7777 older gcc that do not understand #pragma GCC diagnostic.
7778 * lib/uinttostr.c (inttype_is_unsigned): Define.
7779 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7781 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7783 stat: fix compilation on AIX
7784 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7785 only see struct stat64.
7787 2009-10-30 Eric Blake <ebb9@byu.net>
7789 exclude: make more robust
7790 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7791 rather than masking a coding bug.
7792 Suggested by Bruno Haible.
7794 2009-10-30 Jim Meyering <meyering@redhat.com>
7796 perl scripts: remove #!/usr/bin/perl in favor of more portable...
7797 Rather than putting #!/usr/bin/perl on the first line,
7798 start with a variant of what's recommended by "man perlrun" that
7799 invokes the first "perl" program from your shell's search path.
7800 * build-aux/gitlog-to-changelog: Replace #!... as above.
7801 Add a "Local Variables" perl mode setting.
7802 Prompted by a patch from Ludovic Courtès.
7803 Improved by Eric Blake.
7804 * build-aux/useless-if-before-free: Likewise.
7805 * build-aux/announce-gen: Likewise.
7806 * build-aux/update-copyright: Likewise.
7808 2009-10-29 Eric Blake <ebb9@byu.net>
7810 filenamecat-lgpl: adjust clients
7811 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7813 * modules/renameat (Depends-on): Likewise.
7815 filenamecat: split into filenamecat-lgpl
7816 * modules/filenamecat-lgpl: New module.
7817 * modules/filenamecat (Files): Move library-safe files into
7819 (Depends-on): Add filenamecat-lgpl.
7820 (configure.ac): Declare witness.
7821 * lib/filenamecat.h (file_name_concat): Only declare when using
7823 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7825 * lib/filenamecat-lgpl.c: ...into new file.
7826 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7827 (gl_FILE_NAME_CONCAT): Use it.
7828 * MODULES.html.sh (File system functions): Mention new module.
7830 argp: avoid memory leak
7831 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7832 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7833 base_name, since the latter malloc()s and can call exit().
7834 Leak introduced 2006-07-03.
7836 dirname-lgpl: adjust clients that don't need full dirname
7837 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7838 * modules/filenamecat (Depends-on): Likewise.
7839 * modules/linkat (Depends-on): Likewise.
7840 * modules/mkancesdirs (Depends-on): Likewise.
7841 * modules/mkdir (Depends-on): Likewise.
7842 * modules/openat (Depends-on): Likewise.
7843 * modules/savewd (Depends-on): Likewise.
7844 * modules/rename (Depends-on): Likewise.
7845 (License): Relax license.
7846 * modules/mkdir-tests (Depends-on): Drop progname.
7847 (Makefile.am): Delete unneeded LDADD.
7848 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7850 dirname: split into dirname-lgpl
7851 * modules/dirname-lgpl: New module.
7852 * modules/dirname (Files): Move library-safe files into
7854 (Depends-on): Add dirname-lgpl.
7855 (configure.ac): Declare witness.
7856 * modules/double-slash-root (License): Relax license.
7857 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7859 * lib/dirname.c (dir_len, mdir_name): Move...
7860 * lib/dirname-lgpl.c: ...into new file.
7861 * lib/basename.c (last_component, base_len): Move...
7862 * lib/basename-lgpl.c: ...into new file.
7863 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7864 (gl_DIRNAME): Use it.
7865 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7867 * modules/dirname-tests (Depends-on): Add progname.
7868 * tests/test-dirname.c (program_name): Delete.
7870 mkdir: make safe for libraries
7871 * modules/mkdir (Depends-on): Drop xalloc.
7872 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7875 tests: avoid some compiler warnings
7876 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7878 * tests/test-memchr.c (main): Avoid type mismatch.
7879 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7880 * tests/test-base64.c (main): Likewise.
7881 * tests/test-getdelim.c (main): Likewise.
7882 * tests/test-gethostname.c (main): Likewise.
7883 * tests/test-getline.c (main): Likewise.
7884 * tests/test-netinet_in.c (main): Likewise.
7885 * tests/test-select.c (open_server_socket, main): Likewise.
7886 * tests/test-select-stdin.c (main): Likewise.
7887 * tests/test-sockets.c (main): Likewise.
7888 * tests/test-strsignal.c (main): Likewise.
7889 * tests/test-sys_select.c (main): Likewise.
7890 * tests/test-sys_socket.c (main): Likewise.
7891 * tests/test-u64.c (main): Likewise.
7892 * tests/test-xfprintf-posix.c (main): Likewise.
7893 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7895 sockets: avoid compiler warning
7896 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7898 maint: detect usage(1) and other suspicious exits
7899 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7901 2009-10-29 Jim Meyering <meyering@redhat.com>
7903 timespec: long-to-int truncation could make timespec_cmp malfunction
7904 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7905 a multiple of 2^32 nanoseconds as no difference.
7907 2009-10-28 Jim Meyering <meyering@redhat.com>
7909 fprintftime: wrap macro code argument in "do {...} while(0)"
7910 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7911 cpy macro must be a statement that can be followed by a semicolon.
7912 Now that the else clause contains a comment and is hence longer
7913 than one line, I require curly braces. That in turn requires
7914 that we wrap this code block in the standard do...while(0).
7916 fprintftime: remove stray semicolon from previous change
7917 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7919 fprintftime: avoid a warning about ignored fwrite return value
7920 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7921 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7923 * modules/fprintftime (Depends-on): Add ignore-value.
7925 exclude: avoid an unwarranted warning
7926 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7928 2009-10-27 Eric Blake <ebb9@byu.net>
7930 fseek: avoid compilation failure when fflush is replaced
7931 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7932 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7934 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7935 module is not in use; since REPLACE_FSEEK worked otherwise.
7936 (GNULIB_FTELLO): Likewise for ftell.
7937 Reported by Ian Beckwith and others.
7939 2009-10-27 Bruno Haible <bruno@clisp.org>
7941 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7942 Reported by Jim Meyering.
7944 2009-10-27 Jim Meyering <jim@meyering.net>
7945 Bruno Haible <bruno@clisp.org>
7947 Avoid warning despite dropping the return value of fwrite.
7948 * lib/unicodeio.c: Include ignore-value.h.
7949 (fwrite_success_callback): Explicitly ignore fwrite's return value.
7950 * modules/unicodeio (Depends-on): Add ignore-value.
7952 2009-10-26 Eric Blake <ebb9@byu.net>
7954 areadlinkat: fix fallback path
7955 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7958 2009-10-22 Pádraig Brady <P@draigBrady.com>
7960 Use a better IO block size for modern systems
7961 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7962 * lib/md2.c: Likewise.
7963 * lib/md4.c: Likewise.
7964 * lib/md5.c: Likewise.
7965 * lib/sha1.c: Likewise.
7966 * lib/sha256.c: Likewise.
7967 * lib/sha512.c: Likewise.
7969 2009-10-22 Eric Blake <ebb9@byu.net>
7971 tests: avoid several compiler warnings
7972 * tests/test-getcwd.c (main): Avoid buffer underflow.
7973 * tests/test-getdate.c (main): String literals are not safe with
7974 putenv, so use setenv. Declare unused argument.
7975 * modules/getdate-tests (Depends-on): Add setenv.
7976 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
7977 problems with string literals in char *.
7978 * tests/test-hash.c (main): Avoid shadowing declaration.
7979 (insert_new): Treat string literals as char const *.
7980 * tests/test-getopt.h (test_getopt): Likewise.
7981 (getopt_loop): Alter types to minimize casting elsewhere.
7982 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7983 (test_getopt_long_posix): Likewise.
7984 (do_getopt_long): Add wrapper to minimize casting.
7985 * tests/test-atexit.c (clear_temp_file): Use void.
7986 * tests/test-areadlink-with-size.c (main): Declare unused
7988 * tests/test-areadlink.c (main): Likewise.
7989 * tests/test-areadlinkat-with-size.c (main): Likewise.
7990 * tests/test-areadlinkat.c (main): Likewise.
7991 * tests/test-canonicalize-lgpl.c (main): Likewise.
7992 * tests/test-canonicalize.c (main): Likewise.
7993 * tests/test-dirent-safer.c (main): Likewise.
7994 * tests/test-dirname.c (main): Likewise.
7995 * tests/test-dup2.c (main): Likewise.
7996 * tests/test-fchdir.c (main): Likewise.
7997 * tests/test-fcntl-h.c (main): Likewise.
7998 * tests/test-fcntl-safer.c (main): Likewise.
7999 * tests/test-fdopendir.c (main): Likewise.
8000 * tests/test-fdutimensat.c (main): Likewise.
8001 * tests/test-fflush.c (main): Likewise.
8002 * tests/test-filenamecat.c (main): Likewise.
8003 * tests/test-filevercmp.c (main): Likewise.
8004 * tests/test-fopen-safer.c (main): Likewise.
8005 * tests/test-fopen.c (main): Likewise.
8006 * tests/test-fpending.c (main): Likewise.
8007 * tests/test-fpurge.c (main): Likewise.
8008 * tests/test-freading.c (main): Likewise.
8009 * tests/test-fstatat.c (main): Likewise.
8010 * tests/test-fsync.c (main): Likewise.
8011 * tests/test-futimens.c (main): Likewise.
8012 * tests/test-getndelim2.c (main): Likewise.
8013 * tests/test-gettimeofday.c (main): Likewise.
8014 * tests/test-getopt.c (main): Likewise.
8015 * tests/test-i-ring.c (main): Likewise.
8016 * tests/test-inttypes.c (main): Likewise.
8017 * tests/test-link.c (main): Likewise.
8018 * tests/test-lstat.c (main): Likewise.
8019 * tests/test-math.c (main): Likewise.
8020 * tests/test-md5.c (main): Likewise.
8021 * tests/test-memchr2.c (main): Likewise.
8022 * tests/test-memrchr.c (main): Likewise.
8023 * tests/test-mkdir.c (main): Likewise.
8024 * tests/test-mkdirat.c (main): Likewise.
8025 * tests/test-mkfifoat.c (main): Likewise.
8026 * tests/test-open.c (main): Likewise.
8027 * tests/test-openat-safer.c (main): Likewise.
8028 * tests/test-openat.c (main): Likewise.
8029 * tests/test-quotearg.c (main): Likewise.
8030 * tests/test-rawmemchr.c (main): Likewise.
8031 * tests/test-readlink.c (main): Likewise.
8032 * tests/test-remove.c (main): Likewise.
8033 * tests/test-rename.c (main): Likewise.
8034 * tests/test-renameat.c (main): Likewise.
8035 * tests/test-rmdir.c (main): Likewise.
8036 * tests/test-sha1.c (main): Likewise.
8037 * tests/test-signal.c (main): Likewise.
8038 * tests/test-sigaction.c (main): Likewise.
8039 * tests/test-stat.c (main): Likewise.
8040 * tests/test-stat-time.c (main): Likewise.
8041 * tests/test-stddef.c (main): Likewise.
8042 * tests/test-stdint.c (main): Likewise.
8043 * tests/test-stdio.c (main): Likewise.
8044 * tests/test-stdlib.c (main): Likewise.
8045 * tests/test-strchrnul.c (main): Likewise.
8046 * tests/test-strerror.c (main): Likewise.
8047 * tests/test-string.c (main): Likewise.
8048 * tests/test-strtod.c (main): Likewise.
8049 * tests/test-strverscmp.c (main): Likewise.
8050 * tests/test-symlink.c (main): Likewise.
8051 * tests/test-symlinkat.c (main): Likewise.
8052 * tests/test-sys_stat.c (main): Likewise.
8053 * tests/test-sys_time.c (main): Likewise.
8054 * tests/test-time.c (main): Likewise.
8055 * tests/test-unistd.c (main): Likewise.
8056 * tests/test-unlink.c (main): Likewise.
8057 * tests/test-unlinkat.c (main): Likewise.
8058 * tests/test-utimens.c (main): Likewise.
8059 * tests/test-utimensat.c (main): Likewise.
8060 * tests/test-version-etc.c (main): Likewise.
8061 * tests/test-wchar.c (main): Likewise.
8062 * tests/test-wctype.c (main): Likewise.
8063 * tests/test-xprintf-posix.c (main): Likewise.
8064 * tests/test-posixtm.c (main): Likewise.
8065 (STREQ): Delete unused macro.
8066 * tests/test-linkat.c (main): Declare unused arguments. Avoid
8068 * tests/test-memchr.c (main): Likewise.
8070 2009-10-21 Eric Blake <ebb9@byu.net>
8072 areadlinkat: avoid failure on older glibc
8073 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8074 rather than mis-comparing 0 against FUNC_RESULT of char*.
8076 2009-10-21 Bruno Haible <bruno@clisp.org>
8078 * modules/stpncpy (License): Relicense under LGPLv2+.
8079 Reported by David Lutterkort <lutter@redhat.com>.
8081 2009-10-20 Eric Blake <ebb9@byu.net>
8083 utimensat: work around Solaris 9 bug
8084 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8085 has trailing slash bugs.
8086 * tests/test-lutimens.h (test_lutimens): Enhance test.
8087 * tests/test-utimens.h (test_utimens): Likewise.
8088 * doc/posix-functions/utime.texi (utime): Enhance documentation.
8089 * doc/posix-functions/utimes.texi (utimes): Likewise.
8090 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8091 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8092 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8093 * doc/posix-functions/futimens.texi (futimens): Likewise.
8095 fdutimensat: new module
8096 * modules/fdutimensat: New file.
8097 * lib/fdutimensat.c (fdutimensat): Likewise.
8098 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8099 * MODULES.html.sh (File system functions): Mention module.
8100 * modules/fdutimensat-tests: New test.
8101 * tests/test-fdutimensat.c: Likewise.
8103 doc: regenerate INSTALL
8104 * doc/INSTALL: Reflect recent autoconf update.
8105 * doc/INSTALL.ISO: Likewise.
8106 * doc/INSTALL.UTF-8: Likewise.
8108 2009-10-20 Pádraig Brady <P@draigBrady.com>
8110 acl: warn if ACL support is not detected
8111 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8113 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
8115 * lib/nproc.h: Add extern "C" block for C++.
8117 2009-10-18 Reuben Thomas <rrt@sc3d.org>
8118 Bruno Haible <bruno@clisp.org>
8120 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8121 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8122 * doc/posix-functions/isalpha.texi: Likewise.
8123 * doc/posix-functions/isblank.texi: Likewise.
8124 * doc/posix-functions/iscntrl.texi: Likewise.
8125 * doc/posix-functions/isdigit.texi: Likewise.
8126 * doc/posix-functions/isgraph.texi: Likewise.
8127 * doc/posix-functions/islower.texi: Likewise.
8128 * doc/posix-functions/isprint.texi: Likewise.
8129 * doc/posix-functions/ispunct.texi: Likewise.
8130 * doc/posix-functions/isspace.texi: Likewise.
8131 * doc/posix-functions/isupper.texi: Likewise.
8132 * doc/posix-functions/isxdigit.texi: Likewise.
8134 2009-10-18 Bruno Haible <bruno@clisp.org>
8136 Tests for module 'isblank'.
8137 * modules/isblank-tests: New file.
8138 * tests/test-isblank.c: New file.
8140 New module 'isblank'.
8141 * lib/isblank.c: New file.
8142 * m4/isblank.m4: New file.
8143 * modules/isblank: New file.
8144 * doc/posix-functions/isblank.texi: Mention the new module.
8146 2009-10-18 Bruno Haible <bruno@clisp.org>
8149 * lib/ctype.in.h: New file.
8150 * m4/ctype.m4: New file.
8151 * modules/ctype: New file.
8152 * doc/posix-headers/ctype.texi: Mention the new module.
8154 2009-10-18 Jim Meyering <meyering@redhat.com>
8156 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8157 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8158 right after its initialization, rather than farther down.
8159 Keeping these in close proximity makes it easier to ensure
8160 that each such variable is initialized. E.g.,
8163 AC_SUBST([LIB_CLOCK_GETTIME])
8165 This change also increments these serial numbers.
8166 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8167 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8168 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8170 2009-10-18 Bruno Haible <bruno@clisp.org>
8172 Don't let environment variables perturb build.
8173 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8174 (gl_PREREQ_GETHRXTIME): ... not here.
8176 2009-10-18 Bruno Haible <bruno@clisp.org>
8178 Avoid symlink attack in localcharset module.
8179 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8180 (O_NOFOLLOW): Define fallback.
8181 (get_charset_aliases): Don't open the file if it is a symbolic link.
8182 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8184 (gl_FCNTL_H): Require it.
8185 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8186 * modules/localcharset (Files): Add m4/fcntl_h.m4.
8187 Reported by Fergal Glynn <fglynn@veracode.com>.
8189 2009-10-18 Bruno Haible <bruno@clisp.org>
8191 Implement nproc for mingw.
8192 * lib/nproc.c: Include <windows.h>
8193 (num_processors): On native Windows platforms, try GetSystemInfo.
8195 2009-10-18 Bruno Haible <bruno@clisp.org>
8197 Implement nproc for IRIX.
8198 * lib/nproc.c: Include <sys/sysmp.h>.
8199 (num_processors): On IRIX systems, try sysmp.
8200 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8202 2009-10-18 Bruno Haible <bruno@clisp.org>
8204 Implement nproc for HP-UX.
8205 * lib/nproc.c: Include <sys/pstat.h>
8206 (num_processors): On HP-UX systems, try pstat_getdynamic.
8207 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8210 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
8211 Bruno Haible <bruno@clisp.org>
8213 Implement nproc for NetBSD, OpenBSD.
8214 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8215 (ARRAY_SIZE): New macro.
8216 (num_processors): On BSD systems, try sysctl of HW_NCPU.
8217 * m4/nproc.m4: New file.
8218 * modules/nproc (Files): Add m4/nproc.m4.
8219 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8220 (Makefile.am): Instead, augment lib_SOURCES.
8222 2009-10-18 Bruno Haible <bruno@clisp.org>
8224 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8225 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8228 2009-10-16 Eric Blake <ebb9@byu.net>
8230 utimensat: new module
8231 * modules/utimensat: New file.
8232 * lib/utimensat.c (utimensat): Likewise.
8233 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8234 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8235 so we can work around Linux bugs.
8236 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8237 * modules/sys_stat (Makefile.am): Substitute them.
8238 * lib/sys_stat.in.h (utimensat): Declare it.
8239 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8240 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8241 * modules/utimensat-tests: New test.
8242 * tests/test-utimensat.c: Likewise.
8244 utimens: let lutimens work on non-symlinks
8245 * lib/utimens.c (lutimens): Fall back to utimens rather than
8246 failing with ENOSYS, when file is not a symlink.
8247 (utimens): Reduce redirection.
8248 * tests/test-lutimens.h (test_lutimens): Update test to cover
8250 * tests/test-utimens.h (test_utimens): Update test to cover
8252 * tests/test-utimens.c (main): Update caller.
8254 utimens: cache whether utimensat syscall works
8255 * lib/utimens.c (utimensat_works_really): New cache variable.
8256 (fdutimens, lutimens): Use it to avoid failing syscall.
8258 test-stat-time, test-utimens: improve portability
8259 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8260 ext4 on alpha, and for cygwin.
8261 * tests/test-utimens-common.h: New file.
8262 (nap): Factor delays into single function.
8263 * tests/test-lutimens.h (test_lutimens): Use new header.
8264 * tests/test-futimens.h (test_futimens): Likewise.
8265 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
8266 timestamps to occur from same machine, as was done previously for
8268 * modules/utimens-tests (Files): Ship new file.
8269 * modules/futimens-tests (Files): Likewise.
8270 Reported in part by Jim Meyering.
8272 sys_stat: sort replacement declarations
8273 * lib/sys_stat.in.h: Sort declarations.
8274 * lib/futimens.c (futimens): Fix typo.
8276 2009-10-15 Jim Meyering <meyering@redhat.com>
8278 don't let environment settings perturb build
8279 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8280 could cause a configure-time and/or build-time malfunction.
8281 Typically, a configure-time function-in-library test is performed
8286 prefix_saved_LIBS=$LIBS
8287 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8288 [test "$ac_cv_search_FUNC" = "none required" ||
8289 LIB_VAR=$ac_cv_search_FUNC])
8290 LIBS=$prefix_saved_LIBS
8292 However, in each of the files affected by this change, the LIB_VAR=
8293 initialization was omitted. Thus, when set in the environment, its
8294 value would propagate into generated Makefiles when FUNC is not found
8296 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8297 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8298 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8300 2009-10-14 Eric Blake <ebb9@byu.net>
8302 fchdir: avoid infinite recursion in mingw
8303 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8306 test-stat-time: port to mingw
8307 * tests/test-stat-time.c (force_unlink): Return a value.
8308 (test_ctime) [W32]: Fix compilation error.
8309 (nap): Don't call usleep with too large an argument. Use
8311 * doc/pastposix-functions/usleep.texi (usleep): Document the
8314 2009-10-13 Jim Meyering <meyering@redhat.com>
8316 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8317 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8318 * modules/pipe-filter-ii: Likewise.
8319 * modules/sys_socket-tests: Likewise.
8320 * modules/tsearch-tests: Likewise.
8321 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8322 (check): Depend on it.
8324 2009-10-12 Eric Blake <ebb9@byu.net>
8326 utimens-tests: port to NFS file systems
8327 * tests/test-utimens.h (test_utimens): Refactor utimecmp
8328 comparisons to avoid spurious failures from timestamp drift
8329 between NFS machines.
8331 2009-10-12 Eric Blake <ebb9@byu.net>
8333 stat-time-tests: minor cleanups
8334 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8335 * tests/test-stat-time.c (nap): Separate assignment from call.
8336 Suggested by Paolo Bonzini and Bruno Haible.
8338 sys_stat: guarantee struct timespec
8339 * lib/sys_stat.in.h (includes): Always include <time.h>
8340 * modules/sys_stat (Depends-on): Add time.
8341 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8342 mode_t permission values.
8343 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8344 get at subsecond timestamps.
8346 2009-10-10 Eric Blake <ebb9@byu.net>
8348 futimens: new module
8349 * modules/futimens: New file.
8350 * lib/futimens.c (futimens): Likewise.
8351 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8352 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8353 we can work around Linux bugs.
8354 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8355 * modules/sys_stat (Makefile.am): Substitute them.
8356 * lib/sys_stat.in.h (futimens): Declare it.
8357 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8358 * doc/posix-functions/futimens.texi (futimens): Likewise.
8359 * modules/futimens-tests: New test.
8360 * tests/test-futimens.c: Likewise.
8362 utimens: introduce fdutimens
8363 * lib/utimens.h (fdutimens): New prototype.
8364 * lib/utimens.c (gl_futimens): Move guts...
8365 (fdutimens): ...to new interface.
8366 * tests/test-utimens.c (do_fdutimens): Use it.
8368 utimens: add UTIME_NOW and UTIME_OMIT support
8369 * lib/utimens.c (validate_timespec, update_timespec): New helper
8371 (gl_futimens, lutimens): Use them.
8372 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8374 (Link): Mention resulting library dependency.
8375 * modules/utimecmp (Link): Likewise.
8376 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8377 (Makefile.am): Pick up library dependency.
8378 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8380 * tests/test-sys_stat.c: Test the definitions.
8381 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8382 * NEWS: Document library dependency.
8384 utimecmp: support symlink timestamps
8385 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8386 hashing when possible. Use pathconf when available.
8387 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8388 * modules/utimecmp (Depends-on): Add lstat.
8390 utimens: add lutimens interface
8391 * lib/utimens.c (lutimens): New function.
8392 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8393 * lib/utimens.h (lutimens): Declare new interface.
8394 * tests/test-utimens.c (main): Enhance test.
8395 * tests/test-lutimens.h (test_lutimens): New file.
8396 * modules/utimens-tests (Files): Distribute it.
8397 (Depends-on): Add symlink.
8398 (configure.ac): Check for usleep.
8400 utimens: validate futimens usage
8401 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8402 fewer syscalls on failure later on. Avoid compiler warning on
8404 * modules/utimens (Depends-on): Add dup2.
8407 * modules/utimens-tests: New test.
8408 * tests/test-utimens.h: New file.
8409 * tests/test-futimens.h: Likewise.
8410 * tests/test-utimens.c: Likewise.
8412 doc: mention timestamp portability issues
8413 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8415 * doc/posix-functions/utime.texi (utime): Likewise.
8416 * doc/posix-functions/utimes.texi (utimes): Likewise.
8417 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8419 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8421 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8422 Mention weakness with symlink timestamps.
8423 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8424 to utimensat/futimens instead.
8425 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8427 test-dup2: enhance test
8428 * tests/test-dup2.c (main): Also check AT_FDCWD.
8430 test-stat-time: avoid more spurious failures
8431 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8432 xfs; and avoid race if the two timestamps cross quantization edge.
8434 relocatable: prefer 'file system' over 'filesystem'
8435 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8436 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8437 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8438 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8439 * lib/relocatable.c (compute_curr_prefix): Likewise.
8441 2009-10-10 Jim Meyering <meyering@redhat.com>
8443 stat-time-tests: check for the usleep function
8444 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8446 2009-10-10 Bruno Haible <bruno@clisp.org>
8448 * modules/xnanosleep: Put the Link section after the Include section.
8450 2009-10-09 Eric Blake <ebb9@byu.net>
8452 dup2: work around FreeBSD 6.1 bug
8453 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8454 * doc/posix-functions/dup2.texi (dup2): Document it.
8455 Reported by Nelson H. F. Beebe and Jim Meyering.
8457 test-stat-time: port to buggy NFS clients
8458 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8459 (test_ctime): Also skip test if mtime and ctime are skewed.
8461 maint: prefer 'file system' over 'filesystem'
8462 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8463 * doc/posix-functions/lstat.texi (lstat): Likewise.
8464 * lib/file-has-acl.c (file_has_acl): Likewise.
8465 * lib/fwriteerror.c [TEST]: Likewise.
8466 * tests/test-areadlink.h (test_areadlink): Likewise.
8467 * tests/test-areadlinkat-with-size.c (main): Likewise.
8468 * tests/test-areadlinkat.c (main): Likewise.
8469 * tests/test-canonicalize-lgpl.c (main): Likewise.
8470 * tests/test-canonicalize.c (main): Likewise.
8471 * tests/test-fstatat.c (main): Likewise.
8472 * tests/test-linkat.c (main): Likewise.
8473 * tests/test-lstat.h (test_lstat_func): Likewise.
8474 * tests/test-mkdir.h (test_mkdir): Likewise.
8475 * tests/test-readlink.h (test_readlink): Likewise.
8476 * tests/test-remove.c (main): Likewise.
8477 * tests/test-rename.h (test_rename): Likewise.
8478 * tests/test-renameat.c (main): Likewise.
8479 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8480 * tests/test-symlink.h (test_symlink): Likewise.
8481 * tests/test-symlinkat.c (main): Likewise.
8482 * tests/test-unlink.h (test_unlink_func): Likewise.
8483 * tests/test-unlinkat.c (main): Likewise.
8485 maint: make realtime library usage explicit
8486 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8487 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8488 * modules/settime (Link): Likewise.
8489 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8491 test-stat-time: speed up execution
8492 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8494 (nap): New helper function.
8495 (prepare_test): Use it to reduce sleep time.
8496 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8498 * modules/stat-time-tests (configure.ac): Check for usleep.
8500 2009-10-09 Jim Meyering <meyering@redhat.com>
8502 selinux-h: always use getfilecon wrappers
8503 * lib/getfilecon.c: New file.
8504 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8505 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8506 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8507 (fgetfilecon): Provide a stub.
8508 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8509 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8510 file unconditionally.
8511 When <selinux/selinux.h> is found, arrange to use wrappers.
8512 * modules/selinux-h (Files): Add getfilecon.c.
8513 (Makefile.am): Substitute include-next-related bits
8514 into the now-always-generated selinux/selinux.h file.
8515 * doc/glibc-functions/lgetfilecon.texi: New file.
8516 * doc/glibc-functions/fgetfilecon.texi: New file.
8517 * doc/glibc-functions/getfilecon.texi: New file.
8518 * doc/glibc-functions/getfilecon-desc.texi: New file.
8519 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8520 which to pull in the new files.
8521 * MODULES.html.sh (Misc): Add selinux-h.
8523 2009-10-08 Jim Meyering <meyering@redhat.com>
8525 unistd: fix comment typo
8526 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8528 2009-10-08 Eric Blake <ebb9@byu.net>
8530 areadlink: use SIZE_MAX consistently
8531 * modules/areadlink (Depends-on): Add stdint.
8532 * modules/areadlink-with-size (Depends-on): Likewise.
8533 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8534 gives NULL; drop sys/types, since unistd gives size_t; and add
8535 stdint for SIZE_MAX.
8536 (SIZE_MAX): Rely on headers.
8537 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8539 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8540 (SIZE_MAX): Likewise.
8541 (INITIAL_BUF_SIZE): Turn into enum.
8542 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8544 2009-10-08 Jim Meyering <meyering@redhat.com>
8546 areadlinkat: avoid compilation failure
8547 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8548 Fix typo in comment.
8550 2009-10-07 Eric Blake <ebb9@byu.net>
8552 areadlinkat-with-size: new module
8553 * modules/areadlinkat-with-size: New module.
8554 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8555 * lib/areadlink.h (areadlinkat): Declare it.
8556 * MODULES.html.sh (File system functions): Mention it.
8557 * modules/areadlinkat-with-size-tests: New test.
8558 * tests/test-areadlinkat-with-size.c: New file.
8560 xreadlinkat: new module
8561 * modules/xreadlinkat: New module.
8562 * lib/xreadlinkat.c (xreadlinkat): New file.
8563 * lib/xreadlink.h (xreadlinkat): Declare it.
8564 * MODULES.html.sh (File system functions): Mention it.
8566 areadlinkat: new module
8567 * lib/at-func.c (FUNC_FAIL): New define.
8568 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8569 * modules/areadlinkat: New module.
8570 * lib/linkat.c (areadlinkat): Move...
8571 * lib/areadlinkat.c (areadlinkat): ...to new file.
8572 * lib/areadlink.h (areadlinkat): Declare it.
8573 * modules/linkat (Depends-on): Add areadlinkat.
8574 * MODULES.html.sh (File system functions): Mention it.
8575 * modules/areadlinkat-tests: New test.
8576 * tests/test-areadlinkat.c: New file.
8578 areadlink, areadlink-with-size: add tests
8579 * modules/areadlink-tests: New test.
8580 * modules/areadlink-with-size-tests: Likewise.
8581 * tests/test-areadlink.h: New file.
8582 * tests/test-areadlink.c: Likewise.
8583 * tests/test-areadlink-with-size.c: Likewise.
8585 maint: minor cleanups
8586 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8587 _UNUSED_PARAMETER_ instead.
8588 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8589 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8590 * modules/linkat-tests (Files): Distribute test-link.h.
8592 openat, utimens: whitespace cleanup
8593 * lib/openat.c: Prefer space throughout, rather than mix of 8
8595 * lib/at-func.c: Likewise.
8596 * lib/utimens.c: Likewise.
8598 openat: avoid using wrong fd
8599 * lib/openat.c (openat_permissive): Reject user's fd if saving the
8600 working directory chooses same fd.
8601 * lib/at-func.c (AT_FUNC_NAME): Likewise.
8603 mkdir, mkdirat: fix cygwin 1.5.x bug
8604 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8605 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8606 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8608 (gl_PREREQ_MKDIR): Delete unused macro.
8609 * modules/mkdir (Files): Track file rename.
8610 (configure.ac): Update macro name.
8611 * modules/openat (Depends-on): Add mkdir.
8612 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8614 mkdir, mkdirat: add tests
8615 * modules/mkdir-tests: New test.
8616 * tests/test-mkdir.h: New file.
8617 * tests/test-mkdir.c: Likewise.
8618 * tests/test-mkdirat.c: Likewise.
8619 * modules/openat-tests (Files): Add new files.
8620 (Makefile.am): Run new test.
8622 2009-10-06 Eric Blake <ebb9@byu.net>
8624 doc: tweak *at function documentation
8625 * doc/posix-functions/faccessat.texi (faccessat): Mention
8626 known issue with replacement.
8627 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8628 * doc/posix-functions/linkat.texi (linkat): Likewise.
8629 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8630 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8631 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8632 * doc/posix-functions/renameat.texi (renameat): Likewise.
8633 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8635 openat: fix GNU/Hurd bug in unlinkat
8636 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8638 * doc/posix-functions/unlink.texi (unlink): Document this.
8639 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8641 fdopendir: fix GNU/Hurd bug
8642 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8643 allowing non-directory fds.
8644 * lib/fdopendir.c (rpl_fdopendir): Work around it.
8645 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8646 * modules/dirent (Makefile.am): Substitute it.
8647 * lib/dirent.in.h (fdopendir): Declare replacement.
8648 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8649 * tests/test-fdopendir.c (main): Test something other than
8650 /dev/null, since on Hurd that behaves like a directory.
8652 test-symlink: port to GNU/Hurd
8653 * tests/test-symlink.h (test_symlink): Relax expected errno.
8655 doc: tweak more cygwin information
8656 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8657 now compatible with glibc.
8658 * doc/posix-functions/getopt.texi (getopt): Likewise.
8660 getopt-gnu: add another test
8661 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8662 guarantee behavior relied on by m4.
8663 * tests/test-getopt.c (main): Use it.
8664 * modules/getopt-posix-tests (Depends-on): Add setenv.
8665 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8667 getopt: fix compilation on darwin
8668 * lib/getopt.in.h (includes): Leave breadcrumbs during system
8670 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8671 Reported by Ludovic Courtès.
8673 2009-10-06 Bruno Haible <bruno@clisp.org>
8675 * modules/size_max (Description): Discourage its use.
8676 Reported by Simon Josefsson.
8678 2009-10-06 Jim Meyering <meyering@redhat.com>
8680 linkat: avoid compilation failure
8681 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8683 2009-10-05 Eric Blake <ebb9@byu.net>
8685 linkat: support Linux 2.6.17
8686 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8687 linkat on Linux, but allow cache variable override.
8688 * lib/linkat.c (rpl_linkat): Define override.
8689 * modules/linkat (Depends-on): Add symlinkat.
8690 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8691 * modules/unistd (Makefile.am): Substitute it.
8692 * lib/unistd.in.h (linkat): Declare replacement.
8693 Reported by Pádraig Brady.
8695 quotearg: port test to systems with C.UTF-8 locale
8696 * tests/test-quotearg.c (struct result_strings): Add another
8697 member, differentiating between C.ASCII and C.UTF-8 handling.
8698 (compare_strings): Add parameter.
8699 (main): Adjust all callers.
8701 getopt: avoid clash with FreeBSD _getopt_internal
8702 * lib/getopt.in.h (_getopt_internal): Override the name.
8703 * lib/getopt_int.h (includes): Pick up any overrides.
8704 Reported by Reuben Thomas.
8706 hash: allow C89 compilation
8707 * lib/hash.c (check_tuning): Move declaration before statement.
8708 Reported by Reuben Thomas.
8710 2009-10-05 Karl Berry <karl@gnu.org>
8712 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8714 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
8715 Bruno Haible <bruno@clisp.org>
8717 * lib/uname.c (uname): Use a table-driven algorithm to compute
8718 Windows NT versions.
8720 2009-10-04 Bruno Haible <bruno@clisp.org>
8722 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8723 program_invocation_short_name.
8724 * modules/progname (configure.ac): Test for presence of
8725 program_invocation_short_name.
8726 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8728 2009-10-04 Bruno Haible <bruno@clisp.org>
8730 * lib/progname.c (set_program_name): Fix comment.
8731 Reported by Jim Meyering.
8733 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8734 Bruno Haible <bruno@clisp.org>
8736 * lib/uname.c: Include <string.h>.
8737 (uname): Do only one call to GetVersionEx in the common case.
8739 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8740 Bruno Haible <bruno@clisp.org>
8742 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8743 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8744 (uname): Add support for Windows CE and various non-x86 CPU types.
8746 2009-10-03 Bruno Haible <bruno@clisp.org>
8748 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8749 invocation to tests/configure.ac.
8750 Reported by Ian Beckwith <ianb@erislabs.net>.
8752 2009-10-02 Eric Blake <ebb9@byu.net>
8754 fchdir: avoid compiler warning
8755 * lib/fchdir.c (canonicalize_file_name)
8756 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8758 test-open: support mingw errno values
8759 * tests/test-open.h (test_open): Relax test.
8760 * tests/test-fopen.h (test_fopen): Likewise.
8761 * tests/test-openat-safer.c (main): Likewise.
8763 open: fix opening directory on mingw
8764 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8766 test-open: on GNU/Hurd, /dev/null is a directory
8767 * tests/test-fopen.h (main): Rename...
8768 (test_fopen): ...to this. Use a guaranteed non-directory when
8769 confirming open behavior on trailing slash.
8770 * tests/test-openat-safer.c (main): Likewise.
8771 * tests/test-open.h (main): Likewise....
8772 (test_open): ...to this.
8773 * tests/test-fopen.c (main): Adjust caller.
8774 * tests/test-fopen-safer.c (main): Likewise.
8775 * tests/test-open.c (main): Likewise.
8776 * tests/test-fcntl-safer.c (main): Likewise.
8777 Reported by Samuel Thibault.
8779 rename, fchdir: don't ignore chdir failure
8780 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8781 * lib/rename.c (rpl_rename) [W32]: Likewise.
8782 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8783 an empty destination directory if source cannot be renamed,
8784 although there is still possibility for failure.
8785 * doc/posix-functions/rename.texi (rename): Document the race.
8786 Reported by Jim Meyering.
8788 maint: cleanup whitespace in recent commits
8789 * lib/rename.c (rpl_rename): Remove tabs.
8790 * tests/test-link.h (test_link): Likewise.
8791 * lib/fchdir.c (get_name): Likewise.
8792 Reported by Jim Meyering.
8794 2009-10-02 Ben Pfaff <blp@gnu.org>
8796 relocatable-prog-wrapper: Add missing dependency on
8798 * modules/relocatable-prog-wrapper: Add dependency.
8799 Reported by Ian Beckwith <ianb@erislabs.net>.
8801 2009-10-02 Eric Blake <ebb9@byu.net>
8803 renameat: fix Solaris bugs
8804 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8806 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8807 * modules/stdio (Makefile.am): Substitute it.
8808 * lib/stdio.in.h (renameat): Declare replacement.
8809 * lib/renameat.c (rpl_renameat): Implement fix.
8811 renameat: new module
8812 * modules/renameat: New file.
8813 * lib/renameat.c (renameat): Likewise.
8814 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8815 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8816 * modules/stdio (Makefile.am): Substitute them.
8817 * lib/stdio.in.h (renameat): Declare it.
8818 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8819 * doc/posix-functions/renameat.texi (renameat): Likewise.
8820 * modules/renameat-tests: New test.
8821 * tests/test-renameat.c: Likewise.
8823 rename: fix mingw bugs
8824 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8825 directory overwrite bugs.
8827 rename: fix another cygwin 1.5 bug
8828 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8830 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8831 unnecessary cygwin workarounds. Also work around bug with moving
8832 full directory onto an empty one.
8833 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8835 rename-dest-slash: merge into rename module
8836 * modules/rename-dest-slash (Status): Mark obsolete.
8837 (Depends-on): Add rename.
8838 (Files): Let rename do it all.
8839 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8840 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8841 * m4/rename-dest-slash.m4: ...so this file can be deleted.
8842 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8843 * lib/rename.c (rpl_rename): Update comments.
8845 rename: fix cygwin 1.5.x bugs
8846 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8847 * lib/rename.c (rpl_rename): Work around them.
8848 * modules/rename (Depends-on): Add same-inode.
8850 rename: fix Solaris 10 bug
8851 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8852 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8855 rename: fix Solaris 9 bug
8856 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8857 on non-directory. Avoid calling exit.
8858 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8860 * modules/rename-tests (Depends-on): Drop lstat.
8861 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8862 (gl_PREREQ_RENAME): Delete unused macro.
8864 rename-dest-slash: fix NetBSD bug
8865 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8867 * modules/rename-dest-slash (Depends-on): Add same-inode.
8869 rename-tests: new test, exposes several platform bugs
8870 * modules/rename-tests: New file.
8871 * tests/test-rename.h: Likewise.
8872 * tests/test-rename.c: Likewise.
8873 * doc/posix-functions/rename.texi (rename): Improve documentation,
8874 including bugs that will eventually be fixed in gnulib.
8876 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8878 * lib/uname.c: Include <stdlib.h>
8879 (uname): Assume version info is available.
8881 2009-10-02 Jim Meyering <meyering@redhat.com>
8883 gnu-web-doc-update: correct --help output
8884 * build-aux/gnu-web-doc-update: Make --help output relevant.
8886 gnu-web-doc-update: add standard options
8887 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8889 gnu-web-doc-update: New module.
8890 Use this script to automatically update the on-line web documentation
8891 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8892 * modules/gnu-web-doc-update: New file, from coreutils.
8893 * build-aux/gnu-web-doc-update: New script.
8895 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8897 link: LoadLibrary is not needed.
8898 * lib/link.c: Use GetModuleHandle.
8900 2009-10-01 Eric Blake <ebb9@byu.net>
8902 getopt: bump serial number
8903 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8906 tests: tighten link, rmdir, and remove tests
8907 * tests/test-link.h (includes): No need to use <config.h> here.
8908 Clean up if directory hard link was created, otherwise test for
8910 * tests/test-linkat.c (main): Simplify.
8911 * tests/test-remove.c (main): Enhance test for trailing '.'.
8912 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8914 2009-10-01 Jim Meyering <meyering@redhat.com>
8916 maint.mk: requiring "make major" was annoying, for a "minor" release.
8917 What is intended is "stable", to contrast with alpha and beta,
8918 so require "make stable", not "make major".
8919 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8920 (get_tool_versions): Likewise.
8921 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8923 2009-09-30 Ben Pfaff <blp@gnu.org>
8925 Fix broken build of replacement for Windows tmpfile().
8926 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8927 flags argument added along with the 'mkostemp' module.
8929 2009-09-28 Bruno Haible <bruno@clisp.org>
8931 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8932 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8934 (gl_list_remove): Update.
8935 * lib/gl_list.c (gl_list_remove): Update.
8936 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8938 (gl_oset_remove): Update.
8939 * lib/gl_list.c (gl_oset_remove): Update.
8940 Reported by Eric Blake.
8942 2009-09-28 Eric Blake <ebb9@byu.net>
8944 doc: mention yet more cygwin 1.7 status
8945 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8947 * doc/glibc-functions/execvpe.texi (execvpe): New file.
8948 * doc/gnulib.texi (Glibc unistd.h): Mention it.
8950 argp: fix test failure
8951 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8952 that are not upper-case. Pass correct range to tolower.
8954 2009-09-27 Jim Meyering <meyering@redhat.com>
8956 test-yesno: work around sparc-dash here-document infelicity
8957 Without this change, the literal \177 byte in a here document
8958 would make dash 0.5.5.1-3 access uninitialized memory.
8959 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8960 Instead, use a marker, "@", and filter through tr to create the desired
8961 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8963 2009-09-27 Bruno Haible <bruno@clisp.org>
8965 Disable untested support for new flavours of ACLs on AIX.
8966 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8968 * lib/set-mode-acl.c (qset_acl): Likewise.
8970 2008-12-07 Bruno Haible <bruno@clisp.org>
8972 Add support for new flavours of ACLs on AIX. (Untested.)
8973 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8974 (file_has_acl): Add support for newer AIX.
8975 * lib/set-mode-acl.c (qset_acl): Likewise.
8976 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8977 Rainer Tammer <tammer@tammer.net>.
8979 2009-09-26 Eric Blake <ebb9@byu.net>
8981 argp: fix compilation of getopt
8982 * lib/getopt.in.h (includes): Use different guard than glibc.
8983 Reported by Sergey Poznyakoff.
8985 doc: mention more cygwin 1.7 status
8986 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8988 * doc/posix-functions/execl.texi (execl): Likewise.
8989 * doc/posix-functions/execle.texi (execle): Likewise.
8990 * doc/posix-functions/execlp.texi (execlp): Likewise.
8991 * doc/posix-functions/execv.texi (execv): Likewise.
8992 * doc/posix-functions/execve.texi (execve): Likewise.
8993 * doc/posix-functions/execvp.texi (execvp): Likewise.
8994 * doc/glibc-functions/canonicalize_file_name.texi
8995 (canonicalize_file_name): Cygwin 1.7 now provides this.
8996 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8997 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8998 on AT_SYMLINK_NOFOLLOW.
9000 2009-09-24 Eric Blake <ebb9@byu.net>
9002 test-linkat: make test more robust
9003 * tests/test-linkat.c (main): Avoid collision with EEXIST.
9005 getopt: fix inclusion guards for cygwin
9006 * modules/getopt-posix (Depends-on): Add include-next.
9007 (Makefile.am): Substitute more items in replacement header.
9008 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9010 * lib/getopt.in.h (includes): Use split inclusion guard, and
9011 prefer <getopt.h> over include <unistd.h> when one is present.
9012 (option): Also override name of 'struct option'.
9014 same-inode: revert prior change; it is not yet ready
9015 * NEWS: Undo mention of this change.
9016 * lib/same-inode.h (same-inode.h): Undo tri-state change.
9017 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9018 * lib/cycle-check.c (cycle_check): Likewise.
9019 * lib/same.c (same_name): Likewise.
9020 * lib/at-func2.c (at_func2): Likewise.
9022 2009-09-23 Eric Blake <ebb9@byu.net>
9025 * modules/linkat: New file.
9026 * lib/at-func2.c (at_func2): Likewise.
9027 * lib/linkat.c (linkat): Likewise.
9028 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9029 * lib/openat-priv.h (at_func2): Add declaration.
9030 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9031 * modules/unistd (Makefile.am): Substitute them.
9032 * lib/unistd.in.h (linkat): Declare it.
9033 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9034 * doc/posix-functions/linkat.texi (linkat): Likewise.
9035 * doc/posix-functions/link.texi (link): Tweak wording.
9036 * tests/test-link.c (main): Move guts...
9037 * tests/test-link.h (test_link): ...into new file.
9038 * modules/linkat-tests: New test.
9039 * tests/test-linkat.c: Likewise.
9040 * modules/link-tests (Files): Ship new file.
9041 (Depends-on): Add stdbool.
9043 dirname: add library-safe mdir_name
9044 * lib/dirname.h (mdir_name): New prototype.
9045 * lib/dirname.c (dir_name): Move guts...
9046 (mdir_name): ...to new function that avoids xalloc_die.
9048 fchdir: another mingw fix
9049 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9050 * lib/fchdir.c (get_name): New helper method; skips canonicalize
9051 on mingw (where it has not yet been ported), and make it optional
9053 (_gl_register_fd): Use it.
9055 same-inode: make SAME_INODE tri-state, to port to mingw
9056 * NEWS: Mention this change.
9057 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9058 st_ino always being 0.
9059 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9060 * lib/cycle-check.c (cycle_check): Likewise.
9061 * lib/same.c (same_name): Likewise.
9063 lstat: avoid mingw compilation error
9064 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9065 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9067 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9069 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9070 the checks for lstat.
9071 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9073 link: fix test failure on Solaris 9
9074 * lib/link.c (rpl_link): Don't assume link will catch bogus
9075 trailing slash on source.
9077 test-symlinkat: enhance test
9078 * tests/test-readlink.c (main): Move guts...
9079 * tests/test-readlink.h (test_readlink): ...into new file.
9080 * tests/test-symlink.c (main): Move guts...
9081 * tests/test-symlink.h (test_symlink): ...into new file.
9082 * tests/test-symlinkat.c (main): Use new files for further
9084 (do_symlink, do_readlink): New helper functions.
9085 * modules/symlink-tests (Files): Ship new file.
9086 (Depends-on): Add stdbool.
9087 * modules/readlink-tests (Files): Ship new file.
9088 (Depends-on): Add stdbool.
9089 * modules/symlinkat-tests (Files): Use new files.
9091 2009-09-23 Eric Blake <ebb9@byu.net>
9093 readlink: document portability issue with symlink length
9094 * doc/posix-functions/lstat.texi (lstat): Mention that some file
9095 systems have bogus st_size on symlinks, and mention the
9096 areadlink-with-size module.
9097 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9098 * doc/posix-functions/readlink.texi (readlink): Mention the
9099 areadlink module, and ERANGE failure.
9100 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9101 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9103 readlink: fix Solaris 9 bug with trailing slash
9104 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9105 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9106 * doc/posix-functions/readlink.texi (readlink): Document this.
9107 * modules/readlink-tests: New test.
9108 * tests/test-readlink.c: Likewise.
9110 readlink: fix cygwin 1.5.x bug with return type
9111 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9112 * lib/unistd.in.h (readlink): Use ssize_t.
9113 * lib/readlink.c (readlink): Likewise.
9114 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9115 * modules/unistd (Makefile.am): Substitute it.
9116 * lib/unistd.in.h (readlink): Declare replacement.
9117 * doc/posix-functions/readlink.texi (readlink): Document this.
9119 symlink: use throughout gnulib
9120 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9121 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9122 symlink is not used.
9123 * modules/symlinkat (Depends-on): Add symlink.
9124 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9125 * modules/canonicalize-tests (Depends-on): Likewise.
9126 * modules/lstat-tests (Depends-on): Likewise.
9127 * modules/openat-tests (Depends-on): Likewise.
9128 * modules/remove-tests (Depends-on): Likewise.
9129 * modules/rmdir-tests (Depends-on): Likewise.
9130 * modules/unlink-tests (Depends-on): Likewise.
9131 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9132 * tests/test-canonicalize.c (symlink): Likewise.
9133 * tests/test-fstatat.c (symlink): Likewise.
9134 * tests/test-lstat.c (symlink): Likewise.
9135 * tests/test-remove.c (symlink): Likewise.
9136 * tests/test-rmdir.c (symlink): Likewise.
9137 * tests/test-unlink.c (symlink): Likewise.
9138 * tests/test-unlinkat.c (symlink): Likewise.
9140 symlink: new module, for Solaris 9 bug
9141 * modules/symlink: New file.
9142 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9143 * lib/symlink.c: Likewise.
9144 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9145 * modules/unistd (Makefile.am): Substitute them.
9146 * lib/unistd.in.h (symlink): Declare replacement.
9147 * MODULES.html.sh (File system functions): Mention it.
9148 * doc/posix-functions/symlink.texi (symlink): Likewise.
9149 * modules/symlink-tests: New test.
9150 * tests/test-symlink.c: Likewise.
9152 2009-09-23 Bruno Haible <bruno@clisp.org>
9154 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9156 Test case: gnulib-tool --import --with-tests atexit inttypes.
9157 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9159 2009-09-23 Bruno Haible <bruno@clisp.org>
9161 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9162 subcommand, not in a subshell.
9164 2009-09-22 Eric Blake <ebb9@byu.net>
9166 unistd: sort replacement declarations
9167 * lib/unistd.in.h: Sort declarations.
9169 open, openat: minor optimization
9170 * lib/open.c (open): If open succeeded, len is non-zero.
9171 * lib/openat.c (rpl_openat): Likewise.
9173 link-follow: ensure correct result
9174 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9175 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9176 distinguish between possible failures.
9178 2009-09-21 Eric Blake <ebb9@byu.net>
9180 fts: avoid compiler warning
9181 * lib/fts.c (dirent_inode_sort_may_be_useful)
9182 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9184 2009-09-19 Bruno Haible <bruno@clisp.org>
9186 * lib/progreloc.c (canonicalize_file_name): New declaration.
9188 2009-09-19 Eric Blake <ebb9@byu.net>
9191 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9193 openat: fix openat bugs on Solaris 9
9194 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9195 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9196 * modules/openat (Depends-on): Add open.
9197 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9198 * modules/fcntl-h (Makefile.am): Substitute it.
9199 * lib/fcntl.in.h (openat): Declare replacement.
9200 * doc/posix-functions/openat.texi (openat): Document this.
9202 openat: move fstatat and unlinkat into correct files
9203 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9205 * lib/openat.c (fstatat, unlinkat): Move...
9206 * lib/fstatat.c (fstatat): ...into correct files.
9207 * lib/unlinkat.c (unlinkat): Likewise.
9209 openat: fix unlinkat bugs on Solaris 9
9210 * lib/unlinkat.c (unlinkat): New file.
9211 * modules/openat (Depends-on): Add unlink.
9212 (Files): Distribute it.
9213 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9214 trailing slash behavior is broken.
9215 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9216 * modules/unistd (Makefile.am): Substitute it.
9217 * lib/unistd.in.h (unlinkat): Declare replacement.
9218 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9220 openat: fix fstatat bugs on Solaris 9
9221 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9223 * doc/posix-functions/fstatat.texi (fstatat): Document this.
9225 test-unlinkat: enhance test, to expose Solaris 9 bug
9226 * tests/test-unlink.c (main): Factor guts...
9227 * tests/test-unlink.h (test_rmdir_func): ...into new file.
9228 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9229 * tests/test-rmdir.c (main): Adjust caller.
9230 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
9231 (unlinker): New helper function.
9232 (rmdirat): Enhance check.
9233 * modules/rmdir-tests (Depends-on): Add stdbool.
9234 * modules/unlink-tests (Depends-on): Likewise.
9235 (Files): Add test-unlink.h.
9236 * modules/openat-tests (Files): Likewise.
9237 (Depends-on): Add unlinkdir.
9239 test-fstatat: new test, to expose Solaris 9 bugs
9240 * tests/test-stat.c (main): Factor guts...
9241 * tests/test-stat.h (test_stat_func): ...into new file.
9242 * tests/test-lstat.c (main): Factor guts...
9243 * tests/test-lstat.h (test_lstat_func): ...into new file.
9244 * tests/test-fstatat.c: New file.
9245 * modules/stat-tests (Files): Add test-stat.h.
9246 * modules/lstat-tests (Files): Add test-lstat.h.
9247 (Depends-on): Add stdbool.
9248 * modules/openat-tests (Depends-on): Add pathmax.
9249 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9250 (Makefile.am): Run new test.
9252 remove: new module, for mingw and Solaris 9 bugs
9253 * modules/remove: New file.
9254 * lib/remove.c: Likewise.
9255 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9256 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9257 * modules/stdio (Makefile.am): Use them.
9258 * lib/stdio.in.h (remove): Declare replacement.
9259 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9260 * doc/posix-functions/remove.texi (remove): Likewise.
9261 * modules/remove-tests: New test.
9262 * tests/test-remove.c: Likewise.
9264 unlink: new module, for Solaris 9 bug
9265 * modules/unlink: New file.
9266 * lib/unlink.c: Likewise.
9267 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9268 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9269 * modules/unistd (Makefile.am): Use them.
9270 * lib/unistd.in.h (stat): Declare replacement.
9271 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9272 * doc/posix-functions/unlink.texi (unlink): Likewise.
9273 * modules/unlink-tests: New test.
9274 * tests/test-unlink.c: Likewise.
9276 lstat: fix Solaris 9 bug
9277 * lib/lstat.c (lstat): Also check for trailing slash on
9278 non-symlink, non-directories. Use stat module to simplify logic.
9279 * doc/posix-functions/lstat.texi (lstat): Document it.
9280 * modules/lstat-tests (Depends-on): Add errno, same-inode.
9281 (configure.ac): Check for symlink.
9282 * tests/test-lstat.c (main): Add more tests.
9284 stat: add as dependency to other modules
9285 * modules/chown (Depends-on): Add stat.
9286 * modules/euidaccess (Depends-on): Likewise.
9287 * modules/fchdir (Depends-on): Likewise.
9288 * modules/isdir (Depends-on): Likewise.
9289 * modules/link (Depends-on): Likewise.
9290 * modules/lstat (Depends-on): Likewise.
9291 * modules/mkdir-p (Depends-on): Likewise.
9292 * modules/modechange (Depends-on): Likewise.
9293 * modules/open (Depends-on): Likewise.
9294 * modules/readlink (Depends-on): Likewise.
9295 * modules/same (Depends-on): Likewise.
9297 stat: fix Solaris 9 bug
9298 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9300 * lib/stat.c (rpl_stat): Work around it.
9301 * doc/posix-functions/stat.texi (stat): Update documentation.
9303 stat: new module, for mingw bug
9304 * modules/stat: New file.
9305 * lib/stat.c: Likewise.
9306 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9307 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9308 * modules/sys_stat (Makefile.am): Use them.
9309 * lib/sys_stat.in.h (stat): Declare replacement.
9310 * lib/openat.c (fstatat): Deal with lstat and stat being function
9312 * modules/openat (Depends-on): Add inline.
9313 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9314 * doc/posix-functions/stat.texi (stat): Likewise.
9315 * modules/stat-tests: New test.
9316 * tests/test-stat.c: Likewise.
9318 2009-09-19 Jim Meyering <meyering@redhat.com>
9320 syntax-check: detect unnecessary inclusion of canonicalize.h
9321 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9323 2009-09-19 Eric Blake <ebb9@byu.net>
9325 canonicalize-lgpl: adjust clients to use correct header
9326 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9327 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9328 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9329 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9330 * lib/progreloc.c (includes): Likewise.
9332 2009-09-19 Jim Meyering <meyering@redhat.com>
9334 test-posixtm.c: correct a comment
9335 * tests/test-posixtm.c: Correct first-line comment.
9336 Spotted by Eric Blake.
9338 2009-09-16 Jim Meyering <meyering@redhat.com>
9340 posixtm-tests: make T const-correct; add a test case
9341 * tests/test-posixtm.c (T): Declare const.
9342 Add a test for -(2^31+1).
9343 Remove useless can-succeed-only-in-2002 test.
9345 posixtm-tests: adjust the sole failing test
9346 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9347 expected output matches what mktime now produces. Cross-checked via
9348 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9350 posixtm: move #ifdef'd tests into a new module
9351 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
9352 * tests/test-posixtm.c: ... this new file.
9353 * modules/posixtm-tests: New module.
9355 2009-09-19 Eric Blake <ebb9@byu.net>
9357 openat: simplify use of at-func.c
9358 * lib/at-func.c (includes): Include prerequisites here, to
9359 simplify requirements on client files.
9360 * lib/openat-priv.h: Add double-inclusion guard.
9361 * lib/faccessat.c (includes): Simplify.
9362 * lib/fchmodat.c (includes): Likewise.
9363 * lib/fchownat.c (includes): Likewise.
9364 * lib/mkdirat.c (includes): Likewise.
9365 * lib/mkfifoat.c (includes): Likewise.
9366 * lib/symlinkat.c (includes): Likewise.
9368 openat: allow return of fd 0
9369 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9370 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9372 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9373 <fcntl.h>; this module does not leak fds.
9374 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9375 must be allowed to return 0, leaving openat_safer to add the
9377 (openat_permissive): Avoid writing to just-opened fd 2 if
9378 restoring the current directory fails.
9379 * lib/openat-die.c (openat_restore_fail): Add comment.
9380 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9381 (save_cwd): Guarantee safe fd, but without use of open_safer.
9382 * tests/test-openat.c: New test.
9383 * modules/openat-tests (Files, Makefile.am): Distribute and build
9386 relocatable-prog-wrapper: fix build
9387 * modules/relocatable-prog-wrapper (Files): Update name of
9388 canonicalize m4 file, broken on 2009-09-17.
9389 Reported by emad hajjar <aleppos@hotmail.com>.
9391 2009-09-19 Bruno Haible <bruno@clisp.org>
9393 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9394 * lib/safe-alloc.c: Likewise.
9395 Reported by Ian Beckwith <ianb@erislabs.net>.
9397 2009-09-18 Bruno Haible <bruno@clisp.org>
9399 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9400 Reported by <erobles@sensacd.com.mx>.
9402 2009-09-17 Eric Blake <ebb9@byu.net>
9404 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9405 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9406 slashes when checking if last component is missing.
9407 * tests/test-canonicalize.c (main): Test this.
9409 canonicalize, canonicalize-lgpl: honor // if distinct from /
9410 * modules/canonicalize (Files): Add double-slash-root.m4.
9411 * modules/canonicalize-lgpl (Files): Likewise.
9412 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9413 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9414 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9415 fallback definition.
9416 (canonicalize_filename_mode): Use it to protect //.
9417 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9418 (__realpath): Likewise.
9419 * tests/test-canonicalize.c (main): Test this.
9420 * tests/test-canonicalize-lgpl.c (main): Likewise.
9421 * modules/canonicalize-tests (Depends-on): Add same-inode.
9422 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9424 canonicalize-lgpl: fix glibc bug with trailing slash
9425 * m4/canonicalize-lgpl.m4: Move contents...
9426 * m4/canonicalize.m4: ...here.
9427 (gl_CANONICALIZE_LGPL): Factor realpath check...
9428 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9429 glibc 2.3.5 bug, fixed 2005-04-27.
9430 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9431 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9432 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9433 * modules/canonicalize-lgpl (Files): Manage file rename.
9434 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9435 * modules/stdlib (Makefile.am): Substitute witness.
9436 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9438 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9439 replacement is required.
9440 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9441 * doc/glibc-functions/canonicalize_file_name.texi
9442 (canonicalize_file_name): Document this.
9443 * doc/posix-functions/realpath.texi (realpath): Likewise.
9445 canonicalize-lgpl: reject non-directory with trailing slash
9446 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9447 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9448 catches failures in glibc 2.3.5.
9449 * tests/test-canonicalize.c (main): Likewise.
9451 canonicalize-lgpl: use native realpath if it works
9452 * lib/canonicalize-lgpl.c (realpath): Guard with
9453 FUNC_REALPATH_WORKS.
9454 * lib/stdlib.in.h (realpath): Make declaration optional based on
9456 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9457 native realpath works.
9458 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9459 * modules/stdlib (Makefile.am): Substitute witness.
9461 canonicalize, canonicalize-lgpl: use <stdlib.h>
9462 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9463 (Include): Mention <stdlib.h>.
9464 (configure.ac): Mention functions we provide.
9465 * modules/canonicalize (configure.ac): Likewise.
9466 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9467 realpath if canonicalize_file_name is missing.
9468 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9469 * modules/stdlib (Makefile.am): Substitute witnesses.
9470 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9471 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9472 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9473 * NEWS: Document this.
9474 * doc/glibc-functions/canonicalize_file_name.texi
9475 (canonicalize_file_name): Likewise.
9476 * doc/posix-functions/realpath.texi (realpath): Likewise.
9477 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9479 test-canonicalize: consolidate into single C program
9480 * tests/test-canonicalize.sh: Delete; move setup into...
9481 * tests/test-canonicalize.c (main): ...the program, making it
9482 easier to run in debugger. Add some tests.
9483 * modules/canonicalize-tests (Files): Remove unused file.
9484 (Depends-on): Add progname.
9485 (configure.ac, Makefile.am): Simplify.
9487 test-canonicalize-lgpl: consolidate into single C program
9488 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9489 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9490 easier to run in debugger. Add some tests.
9491 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9492 (configure.ac, Makefile.am): Simplify.
9494 canonicalize: avoid resolvepath
9495 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9497 * lib/canonicalize.c (includes): Simplify.
9498 (canonicalize_file_name): Drop resolvepath implementation.
9499 * modules/canonicalize (Depends-on): Drop filenamecat.
9501 canonicalize: don't lose errno
9502 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9505 canonicalize: simplify errno handling
9506 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9509 canonicalize, canonicalize-lgpl: update module dependencies
9510 * modules/canonicalize (Depends-on): Add extensions, lstat,
9512 (Files): Drop pathmax.h.
9513 (configure.ac): Adjust macro name.
9514 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9515 lstat, stdlib, sys_stat.
9516 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9517 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9519 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9520 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9521 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9522 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9523 declaration, if available.
9524 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9525 we can rely on the readlink module.
9526 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9527 (includes): Use <unistd.h> unconditionally.
9529 2009-09-17 Eric Blake <ebb9@byu.net>
9531 maint: make Include sections of modules consistent
9532 * modules/alloca: Use only header name; no need to list #include.
9533 * modules/alloca-opt: Likewise.
9534 * modules/arpa_inet: Likewise.
9535 * modules/canon-host: Likewise.
9536 * modules/configmake: Likewise.
9537 * modules/dirent: Likewise.
9538 * modules/eealloc: Likewise.
9539 * modules/environ: Likewise.
9540 * modules/fchdir: Likewise.
9541 * modules/fcntl: Likewise.
9542 * modules/fcntl-h: Likewise.
9543 * modules/gethrxtime: Likewise.
9544 * modules/gettime: Likewise.
9545 * modules/ignore-value: Likewise.
9546 * modules/inet_ntop: Likewise.
9547 * modules/inet_pton: Likewise.
9548 * modules/inttypes: Likewise.
9549 * modules/isnand-nolibm: Likewise.
9550 * modules/isnanf-nolibm: Likewise.
9551 * modules/mbchar: Likewise.
9552 * modules/mbfile: Likewise.
9553 * modules/mbiter: Likewise.
9554 * modules/mbuiter: Likewise.
9555 * modules/netdb: Likewise.
9556 * modules/netinet_in: Likewise.
9557 * modules/nproc: Likewise.
9558 * modules/pagealign_alloc: Likewise.
9559 * modules/poll: Likewise.
9560 * modules/printf-frexp: Likewise.
9561 * modules/pthread: Likewise.
9562 * modules/putenv: Likewise.
9563 * modules/random_r: Likewise.
9564 * modules/relocatable-prog: Likewise.
9565 * modules/search: Likewise.
9566 * modules/select: Likewise.
9567 * modules/selinux-h: Likewise.
9568 * modules/settime: Likewise.
9569 * modules/signal: Likewise.
9570 * modules/size_max: Likewise.
9571 * modules/socklen: Likewise.
9572 * modules/ssize_t: Likewise.
9573 * modules/stdarg: Likewise.
9574 * modules/stdbool: Likewise.
9575 * modules/stddef: Likewise.
9576 * modules/stdint: Likewise.
9577 * modules/stdio: Likewise.
9578 * modules/stdlib: Likewise.
9579 * modules/string: Likewise.
9580 * modules/strings: Likewise.
9581 * modules/sys_file: Likewise.
9582 * modules/sys_ioctl: Likewise.
9583 * modules/sys_select: Likewise.
9584 * modules/sys_socket: Likewise.
9585 * modules/sys_stat: Likewise.
9586 * modules/sys_time: Likewise.
9587 * modules/sys_times: Likewise.
9588 * modules/sys_utsname: Likewise.
9589 * modules/sys_wait: Likewise.
9590 * modules/sysexits: Likewise.
9591 * modules/time: Likewise.
9592 * modules/times: Likewise.
9593 * modules/tmpfile: Likewise.
9594 * modules/trim: Likewise.
9595 * modules/unistd: Likewise.
9596 * modules/wchar: Likewise.
9597 * modules/wctype: Likewise.
9599 2009-09-17 Bruno Haible <bruno@clisp.org>
9601 Make getdate.y compile on QNX and NetBSD 5 / i386.
9602 * m4/getdate.m4 (gl_GETDATE): Conditionally define
9603 TIME_T_FITS_IN_LONG_INT.
9604 * lib/getdate.y (long_time_t): New type.
9605 (relative_time): Change type of 'seconds' field to long_time_t.
9606 (get_date): Update types of local variables. Check against overflow
9607 during conversion from long_time_t to time_t.
9608 Reported by Matt Kraai <kraai@ftbfs.org>
9609 and Hasso Tepper <hasso@netbsd.org>.
9611 2009-09-17 Bruno Haible <bruno@clisp.org>
9613 * modules/COPYING: Update copyright years.
9614 * modules/README: Likeiwse.
9615 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9616 Reported by Ian Beckwith <ianb@erislabs.net>.
9618 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9620 * users.txt: Update references for gnuit package.
9622 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9624 * m4/getdelim.m4: Fix typo in copyright line.
9626 2009-09-17 Bruno Haible <bruno@clisp.org>
9628 * lib/atoll.c: Use the standard header with GPL copyright.
9629 * lib/argz.in.h: Likewise.
9630 * lib/glob.c: Likewise.
9631 * lib/glob-libc.h: Likewise.
9632 * lib/random_r.c: Likewise.
9633 * lib/siglist.h: Likewise.
9634 * lib/strsignal.c: Likewise.
9635 Reported by Ian Beckwith <ianb@erislabs.net>.
9637 2009-09-17 Eric Blake <ebb9@byu.net>
9639 rmdir: ensure correct dependency order
9640 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9642 2009-09-17 Bruno Haible <bruno@clisp.org>
9644 Disable assertion that fails on NetBSD 5 / i386.
9645 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9646 Reported by Sam Steingold <sds@gnu.org>
9647 and Hasso Tepper <hasso@netbsd.org>.
9649 2009-09-16 Eric Blake <ebb9@byu.net>
9651 unlinkdir: port to mingw
9652 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9653 on which no one can unlink a directory.
9655 stdlib: sort witness names
9656 * modules/stdlib (Makefile.am): Sort replacements.
9657 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9658 * lib/stdlib.in.h: Likewise.
9660 parse-duration-tests: avoid link failure
9661 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9663 Reported by Tom G. Christensen.
9665 openat-tests: ensure unlinkat behaves like rmdir
9666 * tests/test-rmdir.c (main): Factor guts...
9667 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9668 * modules/rmdir-tests (Files): Ship new file.
9669 * modules/openat-tests: New test.
9670 * tests/test-unlinkat.c: Likewise.
9672 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9673 * modules/rmdir-errno (Status, Notice): Now obsolete.
9675 rmdir: work around cygwin 1.5.x and mingw bugs
9676 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9677 * lib/rmdir.c (rmdir): Work around it.
9678 * modules/rmdir (Status, Notice): No longer obsolete.
9679 (Files): Add dos.m4.
9680 (Depends-on): Add unistd.
9681 (configure.ac): Set witnesses.
9682 (License): Relax to LGPLv2+.
9683 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9684 * modules/unistd (Makefile.am): Substitute witnesses.
9685 * lib/unistd.in.h (rmdir): Declare replacement.
9686 * doc/posix-functions/rmdir.texi (rmdir): Document this.
9687 * modules/rmdir-tests: New tests.
9688 * tests/test-rmdir.c: Likewise.
9690 2009-09-15 Eric Blake <ebb9@byu.net>
9692 fchdir: improve use of replacement functions
9693 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9694 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9695 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9697 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9698 * modules/sys_stat (Makefile.am): Substitute correct witness.
9699 * modules/dirent (Makefile.am): Likewise.
9700 * modules/unistd (Makefile.am): Likewise.
9701 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9702 * lib/unistd.in.h (dup): Likewise.
9703 * lib/sys_stat.in.h (fstat): Likewise.
9705 maint: ignore gnulib-tool temp files
9706 * .gitignore: Ignore files created during gnulib-tool --test.
9708 2009-09-13 Jim Meyering <meyering@redhat.com>
9710 posixtm: don't reject a time that specify "60" as the number of seconds
9711 * lib/posixtm.c (posixtime): The code to reject invalid dates
9712 would also reject a time specified with the .60 suffix.
9713 But POSIX allows that, in order to accommodate leap seconds.
9715 (main): Adjust tests accordingly.
9716 * modules/posixtm (Depends-on): Add stpcpy.
9718 2009-09-11 Jim Meyering <meyering@redhat.com>
9720 announce-gen: include [$release_type] in emitted Subject:
9721 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9722 e.g., [stable] in the emitted Subject: line.
9724 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9726 Remove obsolete macros from several modules.
9727 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9728 obsolete Autoconf macros with their modern counterparts.
9729 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9730 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9731 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9732 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9733 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9734 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9735 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9736 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9737 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9738 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9739 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9740 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9741 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9742 * m4/sockets.m4 (gl_SOCKETS): Likewise.
9743 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9744 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9745 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9746 * m4/time_r.m4 (gl_TIME_R): Likewise.
9747 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9748 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9749 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9751 Fix copyright header in build-aux scripts.
9752 * build-aux/git-version-gen: Fix copyright header to match GPLv3
9754 * build-aux/ncftpput-ftp: Likewise.
9755 * build-aux/update-copyright: Likewise.
9757 2009-09-09 Eric Blake <ebb9@byu.net>
9759 test-link: allow Linux choice of errno
9760 * tests/test-link.c (main): Relax test for alternate error.
9762 strndup: fix improper m4 caching
9763 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9764 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9765 (gl_PREREQ_STRNDUP): Delete.
9766 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9767 * modules/string (Makefile.am): Substitute it.
9768 * lib/string.in.h (strndup): Modernize prototype.
9770 getcwd: port to mingw
9771 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9772 different from the POSIX assumptions made throughout the getcwd
9773 module; fortunately, the mingw getcwd does not need replacement.
9774 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9775 * modules/getcwd-tests: New test.
9776 * tests/test-getcwd.c: Likewise.
9778 link: fix platform bugs
9779 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9780 * lib/link.c (link): Work around them. Fix related mingw bug.
9781 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9782 * modules/unistd (Makefile.am): Substitute it.
9783 * lib/unistd.in.h (link): Declare replacement.
9784 * doc/posix-functions/link.texi (link): Document this.
9785 * modules/link (Depends-on): Add strdup-posix, sys_stat.
9787 test-link: consolidate into single C program, test more cases
9788 * tests/test-link.sh: Delete.
9789 * tests/test-link.c: Test more error conditions. Exposes bugs on
9790 at least Cygwin and Solaris.
9791 * modules/link-tests (Files): Remove unused file.
9792 (Depends-on): Add errno, sys_stat.
9793 (Makefile.am): Simplify.
9795 2009-09-08 Bruno Haible <bruno@clisp.org>
9797 Work around towlower, towupper bug on mingw.
9798 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9799 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9800 * doc/posix-functions/towlower.texi: Mention the mingw bug.
9801 * doc/posix-functions/towupper.texi: Likewise.
9802 Reported by Eric Blake.
9804 2009-09-08 Jim Meyering <meyering@redhat.com>
9806 build: don't try to run autoheader if we don't use it
9807 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9808 is not used in configure.ac.
9810 2009-09-08 Eric Blake <ebb9@byu.net>
9812 euidaccess: fix compilation error
9813 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9815 rawmemchr: relax license
9816 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9818 Reported by Jim Meyering.
9820 mkfifoat: new module
9821 * modules/mkfifoat: New file.
9822 * lib/mkfifoat.c: Likewise.
9823 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9824 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9825 * modules/sys_stat (Makefile.am): Use them.
9826 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9827 * MODULES.html.sh (File system functions): Mention module.
9828 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9829 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9830 * modules/mkfifoat-tests: New test.
9831 * tests/test-mkfifoat.c: Likewise.
9833 strchrnul: relax license
9834 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9836 Reported by Jim Meyering.
9838 2009-09-08 Eric Blake <ebb9@byu.net>
9840 fstatat: fix compilation on Solaris
9841 * lib/fstatat.c (includes): Add fcntl.h.
9842 Reported by Pádraig Brady.
9844 2009-09-07 Eric Blake <ebb9@byu.net>
9846 rename: modernize replacement
9847 * modules/rename (Depends-on): Add stdio.
9848 (configure.ac): Declare witness.
9849 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9850 stdio take care of replacement.
9851 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9852 * modules/stdio (Makefile.am): Substitute them.
9853 * lib/stdio.in.h (rename): Declare replacement.
9854 * lib/rename.c (includes): Allow cross-compilation to non-windows
9856 * doc/posix-functions/rename.texi (rename): Improve
9859 stdio: sort witness names
9860 * modules/stdio (Makefile.am): Sort replacements.
9861 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9862 * lib/stdio.in.h: Likewise.
9864 getcwd: minor cleanups
9865 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9866 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9868 openat: provide more convenience names
9869 * modules/faccessat (configure.ac): Add C witness.
9870 * lib/unistd.in.h (readlinkat): Fix typo.
9871 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9872 convenience wrappers.
9873 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9874 wrappers in syntax checks.
9876 2009-09-06 Eric Blake <ebb9@byu.net>
9878 doc: fix comments in recent patches
9879 * lib/faccessat.c: Mention correct function.
9880 * lib/fchmodat.c: Likewise.
9881 * lib/fchownat.c: Likewise.
9882 * lib/symlinkat.c: Likewise.
9883 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9886 faccessat, symlinkat: continue cleanup of previous patch
9887 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9888 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9889 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9890 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9891 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9892 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9895 2009-09-06 Bruno Haible <bruno@clisp.org>
9897 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9898 (fstatat): Declare if GNULIB_FSTATAT is set.
9899 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9900 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9901 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9902 * modules/fcntl-h (Files): Remove m4/openat.m4.
9903 * modules/sys_stat (Files): Remove m4/openat.m4.
9904 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9905 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9906 * modules/unistd (Files): Remove m4/openat.m4.
9907 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9909 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9910 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9911 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9912 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9913 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9915 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9916 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9917 Don't require gl_OPENAT_DEFAULTS.
9918 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9919 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9920 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9921 (gl_OPENAT_DEFAULTS): Remove macro.
9923 2009-09-06 Bruno Haible <bruno@clisp.org>
9925 * modules/openat (configure.ac): Remove unneeded witness.
9927 2009-09-06 Bruno Haible <bruno@clisp.org>
9929 Set errno to ENOSYS when a function is entirely unsupported.
9930 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9932 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9933 * modules/chown (Depends-on): Remove errno.
9935 2009-09-06 Bruno Haible <bruno@clisp.org>
9937 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9939 2009-09-06 Bruno Haible <bruno@clisp.org>
9941 * lib/sys_stat.in.h: Fix preprocessor command indentation.
9943 2009-09-06 Ben Pfaff <blp@gnu.org>
9944 Bruno Haible <bruno@clisp.org>
9946 Work around a glibc bug in strtok_r.
9947 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9948 Undefine if UNDEFINE_STRTOK_R is set.
9949 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9950 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9951 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9952 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9953 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9955 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9957 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
9960 * lib/exclude.c: Include wctype.h
9962 2009-09-06 Akim Demaille <demaille@gostai.com>
9964 bootstrap: improve error message
9965 * build-aux/bootstrap (find_tool): Upon failure, report the list
9967 Honor the initial value of the envvar.
9969 2009-09-05 Eric Blake <ebb9@byu.net>
9971 symlinkat: new module
9972 * modules/symlinkat: New file.
9973 * lib/symlinkat.c: Likewise.
9974 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9975 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9976 * modules/unistd (Makefile.am): Use them.
9977 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9978 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9979 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9980 * MODULES.html.sh (File system functions): Mention module.
9981 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9982 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9983 * modules/symlinkat-tests: New test.
9984 * tests/test-symlinkat.c: Likewise.
9986 test-openat-safer: add more checks
9987 * tests/test-openat-safer.c (main): Check more code paths.
9989 2009-09-05 Jim Meyering <meyering@redhat.com>
9991 syntax-check: detect unnecessary inclusion of openat.h
9992 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9994 2009-09-05 Bruno Haible <bruno@clisp.org>
9996 Support towlower, towupper.
9997 * doc/posix-functions/towlower.texi: Mention module wctype.
9998 * doc/posix-functions/towupper.texi: Likewise.
9999 * lib/wctype.in.h (towlower, towupper): New functions.
10000 * tests/test-wctype.c: Include stdio.h, stdlib.h.
10001 (ASSERT): New macro.
10003 (main): Test also towlower, towupper. Test WEOF argument.
10004 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10006 2009-09-05 Bruno Haible <bruno@clisp.org>
10008 Fix conversion behaviour when the input is invalid.
10009 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10010 mark occurring in first pass of indirect conversion.
10011 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10013 Found by clang's static analyzer.
10015 2009-09-05 Bruno Haible <bruno@clisp.org>
10017 * tests/test-striconveh.c (main): Test indirect conversion on platforms
10018 where direct conversion is possible.
10020 2009-09-04 Eric Blake <ebb9@byu.net>
10022 openat: fail with ENOENT on empty name
10023 * lib/openat-proc.c (openat_proc_name): Special-case the empty
10026 link-follow: fix logic bug in prior patch
10027 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10028 reversed sense of yes and no in prior patch. Avoid confusing
10029 compilation failure with desired semantics.
10031 link-follow: accomodate mingw and cross-compilation
10032 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10033 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
10034 cross-compilation results to -1, to make linkat easier to
10035 implement when cross-compiling. Trivially support mingw.
10036 * modules/link-follow (configure.ac): Call new name.
10037 * NEWS: Mention this.
10039 2009-09-03 Eric Blake <ebb9@byu.net>
10041 faccessat: compile replacement
10042 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10045 fts: fix compilation error
10046 * lib/fts.c (includes): Re-add "openat.h", for
10047 openat_needs_fchdir.
10049 faccessat: new module
10050 * modules/faccessat: New file.
10051 * lib/faccessat.c: Likewise.
10052 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10053 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10054 * modules/unistd (Makefile.am): Use it.
10055 * lib/unistd.in.h (faccessat): Declare it.
10056 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10057 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10058 * MODULES.html.sh (File system functions): Mention it.
10059 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10060 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10062 euidaccess: prefer POSIX over non-standard implementation
10063 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10064 * lib/euidaccess.c (euidaccess): Use it if available.
10066 openat: make template easier to use
10067 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10068 AT_FUNC_F2 to be undefined.
10069 (VALIDATE_FLAG): New macro; use it to reject bad flags.
10070 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10071 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10072 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10073 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10075 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10076 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10077 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10080 openat: declare in POSIX headers
10081 * NEWS: Mention this.
10082 * modules/openat (configure.ac): Declare witnesses.
10083 (Depends-on): Add fcntl-h, sys_stat, unistd.
10084 (Include): Mention correct headers.
10085 * modules/fcntl-h (Depends-on): Add link-warning.
10086 (Files): Add openat.m4.
10087 (Makefile.am): Substitute witnesses.
10088 * modules/sys_stat (Files, Makefile.am): Likewise.
10089 * modules/unistd (Files, Makefile.am): Likewise.
10090 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10091 (gl_OPENAT_DEFAULTS): New macro.
10092 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10093 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10094 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10095 (SYS_STAT_H): Remove unused variable.
10096 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10097 * lib/fcntl--.h (includes): Remove unneeded header.
10098 * lib/openat-safer.c (includes): Likewise.
10099 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10100 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10101 appropriate headers.
10102 (__OPENAT_PREFIX): Delete.
10103 * lib/fcntl.in.h (openat): Provide declaration.
10104 (AT_FDCWD): Fix Solaris bug.
10105 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10106 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10107 * lib/fchmodat.c (includes): Adjust to find declaration.
10108 * lib/fchownat.c (includes): Likewise.
10109 * lib/mkdirat.c (includes): Likewise.
10110 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
10113 2009-09-02 Eric Blake <ebb9@byu.net>
10115 errno: use consistently
10116 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10117 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10118 * lib/canonicalize.c (ELOOP): Likewise.
10119 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10120 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10121 * lib/lchown.c (EOPNOTSUPP): Likewise.
10122 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10123 * lib/savewd.c (ESTALE): Likewise.
10124 * lib/settime.c (ENOSYS): Likewise.
10125 * lib/utimens.c (ENOSYS): Likewise.
10126 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10127 * lib/chdir-safer.c (ELOOP): Likewise.
10128 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10129 * modules/c-stack (Depends-on): Add errno.
10130 * modules/canonicalize (Depends-on): Likewise.
10131 * modules/chdir-safer (Depends-on): Likewise.
10132 * modules/fdopendir (Depends-on): Likewise.
10133 * modules/inet_ntop (Depends-on): Likewise.
10134 * modules/inet_pton (Depends-on): Likewise.
10135 * modules/lchown (Depends-on): Likewise.
10136 * modules/openat (Depends-on): Likewise.
10137 * modules/savewd (Depends-on): Likewise.
10138 * modules/settime (Depends-on): Likewise.
10139 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10141 fts: avoid leaking fds
10142 * modules/fts (Depends-on): Add cloexec.
10143 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10146 fts: make directory fds more robust
10147 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10148 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10150 backupfile, chdir-long, fts, savedir: make safer
10151 * lib/backupfile.c (includes): Use "dirent--.h", since
10152 numbered_backup can write to stderr during readdir.
10153 * lib/savedir.c (includes): Likewise.
10154 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10155 emulation can write to stderr on failure.
10156 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10157 * lib/getcwd.c: Document why opendir_safer is unused.
10158 * lib/glob.c: Likewise.
10159 * lib/scandir.c: Likewise.
10160 * lib/openat-proc.c: Likewise, for open_safer.
10161 * modules/backupfile (Depends-on): Add dirent-safer.
10162 * modules/savedir (Depends-on): Likewise.
10163 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10164 * modules/chdir-long (Depends-on): Add openat-safer.
10166 openat-safer: new module
10167 * modules/openat-safer: New file.
10168 * lib/openat-safer.c: Likewise.
10169 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10170 * lib/fcntl-safer.h (openat_safer): Declare.
10171 * lib/fcntl--.h (openat): Override.
10172 * MODULES.html.sh (File descriptor based I/O): Mention it.
10173 * lib/openat.h: Add double-inclusion guards.
10174 * lib/openat.c (includes): Only include "fcntl-safer.h", not
10175 "fcntl--.h", so we can implement openat.
10176 * modules/openat-safer-tests: New test.
10177 * tests/test-openat-safer.c: New file.
10179 dirent-safer: new module
10180 * modules/dirent-safer: New file.
10181 * lib/dirent--.h: Likewise.
10182 * lib/dirent-safer.h: Likewise.
10183 * lib/opendir-safer.c: Likewise.
10184 * m4/dirent-safer.m4: Likewise.
10185 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10186 * modules/dirent-safer-tests: New test.
10187 * tests/test-dirent-safer.c: New file.
10188 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10190 fdopendir: optimize on mingw
10191 * lib/unistd.in.h (_gl_directory_name): New prototype.
10192 * lib/fchdir.c (_gl_directory_name): Implement it.
10193 (fchdir): Use it to simplify implementation.
10194 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10195 fchdir, when available, to avoid calling [f]chdir().
10197 fdopendir: split into its own module
10198 * lib/openat.c (fdopendir): Move...
10199 * lib/fdopendir.c: ...into new file.
10200 * modules/fdopendir: New module.
10201 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10202 * modules/openat (Depends-on): Add fdopendir.
10203 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10205 * modules/savedir (Depends-on): Only need fdopendir, not full
10207 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10208 * lib/openat.h (fdopendir): Drop prototype.
10209 * lib/dirent.in.h (fdopendir): Provide prototype.
10210 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10211 * modules/dirent (Makefile.am): Substitute them.
10212 * MODULES.html.sh (File system functions): Mention it.
10213 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10214 * modules/fdopendir-tests: New file.
10215 * tests/test-fdopendir.c: Likewise.
10217 fchdir: use more consistent macro convention
10218 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10219 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10220 REPLACE_FCHDIR, rather than relying on config.h macros.
10221 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10222 inside a single make-time REPLACE_FCHDIR block, rather than using
10223 the config.h FCHDIR_REPLACEMENT.
10224 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10225 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
10226 Manage fstat replacement.
10227 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10229 * modules/sys_stat (Files): Add m4/unistd_h.m4.
10230 (Makefile.am): Substitute REPLACE_FCHDIR.
10231 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10232 FCHDIR_REPLACEMENT.
10233 * lib/dup-safer.c (dup_safer): Likewise.
10234 * lib/dup2.c (rpl_dup2): Likewise.
10235 * lib/dup3.c (rpl_dup3): Likewise.
10236 * lib/open.c (rpl_open): Likewise.
10238 fchdir: simplify error handling, and support dup3
10239 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
10240 stdbool, malloc-posix, realloc-posix.
10241 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10242 (ensure_dirs_slot): Return false on allocation failure.
10243 (rpl_dup2): Delete.
10244 (_gl_register_dup): New function.
10245 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10246 (_gl_register_fd): Close fd on allocation failure.
10247 * lib/fcntl.in.h (_gl_register_fd): Update signature.
10248 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10250 (rpl_dup2_fchdir): Delete prototype.
10251 * lib/open.c (open): Update caller.
10252 * lib/dup2.c (dup2): Track fchdir metadata.
10253 * lib/dup3.c (dup3): Likewise.
10254 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10255 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10257 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10259 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10260 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10261 don't pass arguments to AC_OUTPUT.
10263 2009-09-02 Bruno Haible <bruno@clisp.org>
10265 * modules/mkdtemp (License): Relicense under LGPLv2+.
10266 Reported by Paolo Bonzini.
10268 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10270 Replace uses of obsolete autoconf macros in Jim's modules.
10271 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10272 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10273 can evoke a warning from autoconf when run with -Wobsolete
10274 enabled. They were declared obsolete for good reasons (see
10275 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10276 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10277 should not continue using the deprecated macros.
10278 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10279 obsolete Autoconf macros with modern counterparts.
10280 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10281 * m4/dos.m4 (gl_AC_DOS): Likewise.
10282 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10283 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10284 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10285 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10286 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10287 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10288 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10289 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10290 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10292 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10293 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10294 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10295 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10296 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10297 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10299 2009-09-01 Eric Blake <ebb9@byu.net>
10301 fchdir: fix off-by-one bug in previous patch
10302 * lib/fchdir.c (rpl_fstat): Use correct bounds.
10303 (_gl_unregister_fd): Delete useless if.
10305 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
10307 maint.mk: sort the list of syntax-check rules
10308 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10309 easier to get a sense of progress when the rules are run sequentially
10310 and take a long time.
10312 2009-09-01 Simon Josefsson <simon@josefsson.org>
10314 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10315 * modules/netinet_in: Likewise.
10316 * modules/sys_file: Likewise.
10317 * modules/sys_ioctl: Likewise.
10318 * modules/sys_select: Likewise.
10319 * modules/sys_socket: Likewise.
10320 * modules/sys_stat: Likewise.
10321 * modules/sys_time: Likewise.
10322 * modules/sys_times: Likewise.
10323 * modules/sys_utsname: Likewise.
10324 * modules/sys_wait: Likewise.
10326 2009-09-01 Jim Meyering <meyering@redhat.com>
10328 fts: help ensure that return values are not ignored
10329 * lib/fts_.h (__GNUC_PREREQ): Define.
10330 (__attribute_warn_unused_result__): Define.
10331 (fts_children, fts_close, fts_open, fts_read): Declare with
10332 __attribute_warn_unused_result__.
10334 fts: fts_close now fails also when closing a dir file descriptor fails
10335 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10336 and propagate to caller, along with errno.
10338 announce-gen: correct formatting in --help output
10339 * build-aux/announce-gen (usage): Move the one-line description in
10340 --help output "up", to where it belongs, just after Usage:.
10342 2009-08-31 Eric Blake <ebb9@byu.net>
10344 fchdir: port to mingw
10345 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10346 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10347 opened, then use a substitute.
10348 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10350 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10351 (_gl_register_fd): No need to check stat if open already filters
10353 (fchdir): Fix error condition to match POSIX.
10354 * modules/fchdir (Depends-on): Add sys_stat.
10355 * doc/posix-functions/open.texi (open): Document the limitation.
10356 * modules/fchdir-tests: New file.
10357 * tests/test-fchdir.c: Likewise.
10359 canonicalize: allow cross-testing from cygwin to mingw
10360 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10361 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10362 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10364 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10365 target does not support symlinks.
10366 * tests/test-canonicalize-lgpl.sh: Likewise.
10368 chown: avoid compilation warning on mingw
10369 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10370 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10372 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10373 * modules/chown (Depends-on): Add errno.
10375 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10377 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10380 2009-08-31 Jim Meyering <meyering@redhat.com>
10382 canonicalize: remove useless initialization
10383 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10384 initialization of local, "end".
10386 2009-08-30 Bruno Haible <bruno@clisp.org>
10388 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10389 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10392 2009-08-30 Bruno Haible <bruno@clisp.org>
10394 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10395 /usr/xpg4/bin/tr when it exists.
10396 * tests/test-pipe-filter-gi1.sh: Likewise.
10398 2009-08-30 Bruno Haible <bruno@clisp.org>
10400 Work around deficient /usr/bin/id program on Solaris.
10401 * tests/test-file-has-acl.sh (ID): New variable.
10402 * tests/test-set-mode-acl.sh (ID): Likewise.
10403 * tests/test-copy-acl.sh (ID): Likewise.
10404 * tests/test-copy-file.sh (ID): Likewise.
10406 2009-08-30 Bruno Haible <bruno@clisp.org>
10408 New module 'xstriconveh'.
10409 * lib/xstriconveh.h: New file.
10410 * lib/xstriconveh.c: New file.
10411 * modules/xstriconveh: New file.
10413 2009-08-30 Bruno Haible <bruno@clisp.org>
10415 Make it easier to use mem_cd_iconveh.
10416 * lib/striconveh.h (iconveh_t): New type.
10417 (iconveh_open, iconveh_close): New declarations.
10418 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10419 with a single 'const iconveh_t *' argument.
10420 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10421 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10422 with a single 'const iconveh_t *' argument.
10423 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10424 * tests/test-striconveh.c (main): Update.
10425 * NEWS: Mention the change.
10427 2009-08-30 Bruno Haible <bruno@clisp.org>
10429 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10432 2009-08-30 Bruno Haible <bruno@clisp.org>
10434 Work around iconv_open problem on Solaris.
10435 * lib/iconv_open-solaris.gperf: New file.
10436 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10437 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10438 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10439 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10440 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10441 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10443 2009-08-29 Jim Meyering <meyering@redhat.com>
10445 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10446 * top/maint.mk (cvs-check): Remove target; it was just an alias
10447 to the better-named vc-diff-check.
10448 (maintainer-distcheck): Remove rule. It was used only from
10449 the (alpha/beta/major) target, and all of its commands but one
10450 were coreutils-specific.
10451 (vc-dist): Remove rule.
10452 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10453 Run vc-diff-check, not vc-dist.
10454 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10456 2009-08-27 Bruno Haible <bruno@clisp.org>
10458 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10461 2009-08-27 Bruno Haible <bruno@clisp.org>
10463 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10465 * doc/func.texi: Document the SunPRO C bug.
10467 2009-08-27 Bruno Haible <bruno@clisp.org>
10469 Fix link error on Solaris.
10470 * tests/test-parse-duration.c (xstrdup): Remove function.
10472 2009-08-26 Pádraig Brady <P@draigbrady.com>
10474 ignore-value: handle pointer types, too
10475 * lib/ignore-value.h (__attribute__): Remove definition.
10476 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10477 of a more concise and more-often effective "(void) i" statement.
10478 (ignore_ptr): New function to suppress warnings from functions that
10479 return pointers, and to make it explicit that one function doesn't
10482 2009-08-25 Bruno Haible <bruno@clisp.org>
10484 dup2: work around a Linux bug.
10485 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10486 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10487 * doc/posix-functions/dup2.texi: Mention the Linux bug.
10488 Reported by Simon Josefsson.
10490 2009-08-25 Jim Meyering <meyering@redhat.com>
10492 libguestfs uses gnulib
10493 * users.txt: Add libguestfs.
10495 2009-08-24 Eric Blake <ebb9@byu.net>
10497 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10498 * lib/pipe2.c (includes): Add binary-io.h.
10499 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10501 2009-08-24 Bruno Haible <bruno@clisp.org>
10503 Tolerate declared but missing accept4 syscall.
10504 * lib/accept4.c (accept4): Invoke original accept4 function first, if
10506 * lib/sys_socket.in.h (accept4): If the function is already present,
10508 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10509 * modules/accept4 (Makefile.am): Compile accept4.c always.
10510 Reported by Paolo Bonzini and Eric Blake.
10512 2009-08-23 Bruno Haible <bruno@clisp.org>
10514 New module 'accept4'.
10515 * lib/sys_socket.in.h (accept4): New declaration.
10516 * lib/accept4.c: New file.
10517 * m4/accept4.m4: New file.
10518 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10519 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10520 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10522 * modules/accept4: New file.
10523 * doc/glibc-functions/accept4.texi: Mention the new module.
10525 2009-08-24 Jim Meyering <meyering@redhat.com>
10527 progname: also set global program_invocation_name, when possible
10528 Before this change, a libtool-enabled program that calls glibc's
10529 error function would report the program name as
10530 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10531 * modules/progname (configure.ac): Check for a declaration of
10532 program_invocation_name.
10533 * lib/progname.c: Include <errno.h>.
10534 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10535 Set program_invocation_name.
10537 2009-08-23 Bruno Haible <bruno@clisp.org>
10539 * lib/dup3.c: Include <string.h>.
10541 2009-08-23 Bruno Haible <bruno@clisp.org>
10543 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10544 * lib/pipe2.c (pipe2): Likewise.
10545 Suggested by Eric Blake.
10547 2009-08-23 Bruno Haible <bruno@clisp.org>
10549 Tolerate declared but missing dup3 syscall.
10550 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10551 * lib/unistd.in.h (dup3): If the function is already present,
10553 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10554 * modules/dup3 (Makefile.am): Compile dup3.c always.
10555 Reported by Paolo Bonzini.
10557 2009-08-23 Bruno Haible <bruno@clisp.org>
10559 Tolerate declared but missing pipe2 syscall.
10560 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10562 * lib/unistd.in.h (pipe2): If the function is already present,
10564 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10565 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10566 Reported by Paolo Bonzini.
10568 2009-08-23 Bruno Haible <bruno@clisp.org>
10570 * lib/pipe2.c (pipe2): Move #ifs inside function.
10572 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10574 quotearg: document limitations of quote_these_too
10575 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10576 those limitations are created.
10577 * lib/quotearg.h (set_char_quoting): Document that digits and
10578 letters that are special after backslash are not permitted.
10579 (quotearg_char): Cross-reference set_char_quoting documentation.
10581 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
10583 quotearg: implement custom_quoting_style
10584 * lib/quotearg.c: (struct quoting_options): Add left_quote and
10585 right_quote fields.
10586 (set_custom_quoting): New public function.
10587 (quotearg_buffer_restyled): Add left_quote and right_quote
10588 arguments, handle them very much like locale quoting, and update
10590 (quotearg_n_custom): New public function.
10591 (quotearg_n_custom_mem): New public function.
10592 (quotearg_custom): New public function.
10593 (quotearg_custom_mem): New public function.
10594 * lib/quotearg.h: Prototype and document new public functions.
10595 (enum quoting_style): For escape_quoting_style and
10596 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10597 ignored even though they're otherwise like c_quoting_style.
10598 Add custom_quoting_style member and document with comparison to
10599 clocale_quoting_style.
10600 * tests/test-quotearg.c (custom_quotes): New array.
10601 (custom_results): New array.
10602 (main): Extend to test custom quoting.
10604 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10606 quotearg: fix right quote escaping when it's in quote_these_too
10607 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10608 quote, be sure to prepend only one backslash.
10609 * tests/test-quotearg.c (use_quote_double_quotes): New function.
10612 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10614 quotearg-tests: test escaping of embedded locale quotes
10615 * tests/test-quotearg.c (struct result_strings): Add member for
10617 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10618 (inputs): Add new input.
10619 (results_g): Add expected results.
10620 (flag_results): Likewise.
10621 (locale_results): Likewise.
10622 (compare_strings): Check those.
10624 2009-08-23 Bruno Haible <bruno@clisp.org>
10626 Tests for module 'dup3'.
10627 * modules/dup3-tests: New file.
10628 * tests/test-dup3.c: New file.
10631 * lib/unistd.in.h (dup3): New declaration.
10632 * lib/dup3.c: New file.
10633 * m4/dup3.m4: New file.
10634 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10636 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10637 * modules/dup3: New file.
10638 * doc/glibc-functions/dup3.texi: Mention the new module.
10640 2009-08-23 Bruno Haible <bruno@clisp.org>
10642 Tweak the dup2 test.
10643 * tests/test-dup2.c (main): Create the test file empty. Verify that an
10644 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10645 the test file is still empty. Fix argument order of lseek.
10647 2009-08-23 Bruno Haible <bruno@clisp.org>
10649 Avoid test link errors when the modules getopt-gnu, gettext are used.
10650 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10651 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10653 2009-08-23 Bruno Haible <bruno@clisp.org>
10655 Fix getdtablesize() on mingw.
10656 * lib/getdtablesize.c (getdtablesize): Implement differently.
10657 * lib/unistd.in.h (getdtablesize): Improve comment.
10659 2009-08-23 Bruno Haible <bruno@clisp.org>
10661 New module 'mkostemp'.
10662 Based on Ulrich Drepper's 2007-08-10 change in glibc.
10663 * lib/stdlib.in.h (mksotemp): New declaration.
10664 * lib/mkostemp.c: New file, from glibc with modifications.
10665 * lib/tempname.h (GT_FILE): Remove outdated comment.
10666 (gen_tempname): Add flags argument.
10667 * lib/tempname.c (__GT_BIGFILE): Remove macro.
10668 (__GT_FILE): Map to 1.
10669 (small_open, large_open): Remove macros.
10670 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10671 * lib/mkstemp.c (mkstemp): Update.
10672 * lib/mkdtemp.c (mkdtemp): Likewise.
10673 * m4/mkostemp.m4: New file.
10674 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10676 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10678 * modules/mkostemp: New file, based on modules/mkstemp.
10679 * doc/glibc-functions/mkostemp.texi: Mention the new module.
10680 * NEWS: Mention the change.
10682 2009-08-23 Bruno Haible <bruno@clisp.org>
10684 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10685 Reported by Eric Blake.
10687 2009-08-23 Bruno Haible <bruno@clisp.org>
10689 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10690 Reported by Eric Blake.
10692 2009-08-23 Bruno Haible <bruno@clisp.org>
10694 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10695 * modules/pipe2 (Depends-on): Likewise.
10697 2009-08-23 Eric Blake <ebb9@byu.net>
10699 fcntl-h: add O_TTY_INIT support
10700 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10701 * tests/test-fcntl-h.c (o): Test it.
10702 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10704 fcntl-h: rename from fcntl, in preparation for fcntl(2)
10705 * modules/fcntl: Move <fcntl.h> header replacement...
10706 * modules/fcntl-h: ...to new name, so as not to collide with
10707 like-named function.
10708 * tests/test-fcntl.c: Rename...
10709 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
10710 * modules/fcntl-tests: Rename...
10711 * modules/fcntl-h-tests: ...to this. Update test file name.
10712 * modules/chdir-long (Depends-on): Update clients.
10713 * modules/chdir-safer (Depends-on): Likewise.
10714 * modules/fcntl-safer (Depends-on): Likewise.
10715 * modules/fts (Depends-on): Likewise.
10716 * modules/mkancesdirs (Depends-on): Likewise.
10717 * modules/mkdir-p (Depends-on): Likewise.
10718 * modules/open (Depends-on): Likewise.
10719 * modules/savewd (Depends-on): Likewise.
10720 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10721 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10723 2009-08-22 Bruno Haible <bruno@clisp.org>
10725 * modules/binary-io (License): Relicense under LGPL.
10726 * modules/pipe2 (License): Likewise.
10728 2009-08-22 Bruno Haible <bruno@clisp.org>
10730 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10732 * lib/pipe-filter-gi.c (filter_init): Likewise.
10733 Reported by Eric Blake.
10735 2009-08-22 Bruno Haible <bruno@clisp.org>
10737 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10738 * modules/pipe (Depends-on): Add pipe2.
10740 2009-08-22 Bruno Haible <bruno@clisp.org>
10742 Tests for module 'pipe2'.
10743 * modules/pipe2-tests: New file.
10744 * tests/test-pipe2.c: New file.
10746 New module 'pipe2'.
10747 * lib/unistd.in.h (pipe2): New declaration.
10748 * lib/pipe2.c: New file.
10749 * m4/pipe2.m4: New file.
10750 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10752 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10753 * modules/pipe2: New file.
10754 * doc/glibc-functions/pipe2.texi: Mention the new module.
10756 2009-08-22 Bruno Haible <bruno@clisp.org>
10758 Reference some new glibc functions.
10759 * doc/glibc-functions/accept4.texi: New file.
10760 * doc/glibc-functions/dup3.texi: New file.
10761 * doc/glibc-functions/mkostemp.texi: New file.
10762 * doc/glibc-functions/pipe2.texi: New file.
10763 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10764 (Glibc sys/socket.h): Refer to accept4.
10765 (Glibc unistd.h): Refer to dup3, pipe2.
10766 Reported by Eric Blake.
10768 2009-08-22 Jim Meyering <meyering@redhat.com>
10769 Bruno Haible <bruno@clisp.org>
10771 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10772 This makes it so packages using automake-1.11's silent-rules option
10773 can print e.g., a single "GEN configmake.h" line, rather than
10774 the 30+ statements that perform the job. If you want to see the
10775 actual commands, you can still run "make V=1".
10776 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10777 so that make output is abbreviated when those variables are defined
10779 * modules/argz: Likewise.
10780 * modules/arpa_inet: Likewise.
10781 * modules/byteswap: Likewise.
10782 * modules/configmake: Likewise.
10783 * modules/dirent: Likewise.
10784 * modules/errno: Likewise.
10785 * modules/fcntl: Likewise.
10786 * modules/float: Likewise.
10787 * modules/fnmatch: Likewise.
10788 * modules/getopt-posix: Likewise.
10789 * modules/glob: Likewise.
10790 * modules/iconv_open: Likewise.
10791 * modules/inttypes: Likewise.
10792 * modules/localcharset: Likewise.
10793 * modules/locale: Likewise.
10794 * modules/math: Likewise.
10795 * modules/netdb: Likewise.
10796 * modules/netinet_in: Likewise.
10797 * modules/poll: Likewise.
10798 * modules/posix_spawnp-tests: Likewise.
10799 * modules/sched: Likewise.
10800 * modules/search: Likewise.
10801 * modules/selinux-h: Likewise.
10802 * modules/signal: Likewise.
10803 * modules/spawn: Likewise.
10804 * modules/stdarg: Likewise.
10805 * modules/stdbool: Likewise.
10806 * modules/stddef: Likewise.
10807 * modules/stdint: Likewise.
10808 * modules/stdio: Likewise.
10809 * modules/stdlib: Likewise.
10810 * modules/string: Likewise.
10811 * modules/strings: Likewise.
10812 * modules/sys_file: Likewise.
10813 * modules/sys_ioctl: Likewise.
10814 * modules/sys_select: Likewise.
10815 * modules/sys_socket: Likewise.
10816 * modules/sys_stat: Likewise.
10817 * modules/sys_time: Likewise.
10818 * modules/sys_times: Likewise.
10819 * modules/sys_utsname: Likewise.
10820 * modules/sys_wait: Likewise.
10821 * modules/sysexits: Likewise.
10822 * modules/time: Likewise.
10823 * modules/unistd: Likewise.
10824 * modules/wchar: Likewise.
10825 * modules/wctype: Likewise.
10827 2009-08-22 Jim Meyering <meyering@redhat.com>
10829 announce-gen: detect write failure
10830 * build-aux/announce-gen: Add Coda at end.
10831 Remove equivalent-but-more-verbose block at top.
10833 2009-08-19 Akim Demaille <demaille@gostai.com>
10835 bootstrap: --help to stdout.
10836 * bootstrap (usage): Don't send --help to stderr.
10837 Use a here doc instead of a long string.
10839 2009-08-21 Eric Blake <ebb9@byu.net>
10841 test-popen-safer: split from test-popen
10842 * tests/test-popen.c (main): Move...
10843 * tests/test-popen.h: ...into new file.
10844 * tests/test-popen-safer2.c: New file.
10845 * modules/popen-tests (Files): Add test-popen.h.
10846 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10847 Suggested by Bruno Haible.
10849 test-fcntl-safer: split from test-open
10850 * tests/test-open.c (main): Move...
10851 * tests/test-open.h: ...into new file.
10852 * tests/test-fcntl-safer.c: New file.
10853 * modules/open-tests (Files): Add test-open.h.
10854 * modules/fcntl-safer-tests: New file.
10855 Suggested by Bruno Haible.
10857 test-fopen-safer: split from test-fopen
10858 * tests/test-fopen.c (main): Move...
10859 * tests/test-fopen.h: ...into new file.
10860 * tests/test-fopen-safer.c: New file.
10861 * modules/fopen-tests (Files): Add test-fopen.h.
10862 * modules/fopen-safer-tests: New file.
10863 Suggested by Bruno Haible.
10865 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10867 popen-safer: test O_CLOEXEC at run-time.
10868 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10870 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10872 fcntl: move more flags to the header
10873 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10874 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10875 * lib/fcntl.in.h: Do both things here.
10877 2009-08-21 Jim Meyering <meyering@redhat.com>
10879 consistently remove $@-t before redirecting to it
10880 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10881 * modules/alloca-opt: Likewise.
10882 * modules/byteswap: Likewise.
10883 * modules/fnmatch: Likewise.
10884 * modules/getopt-posix: Likewise.
10885 * modules/glob: Likewise.
10886 * modules/poll: Likewise.
10887 * modules/posix_spawnp-tests: Likewise.
10888 * modules/sys_socket: Likewise.
10889 * modules/sysexits: Likewise.
10891 2009-08-21 Eric Blake <ebb9@byu.net>
10893 popen: simplify access to original popen
10894 * lib/popen.c (rpl_popen): No need to worry about popen being a
10896 Reported by Bruno Haible.
10898 2009-08-20 Eric Blake <ebb9@byu.net>
10900 build: avoid some compiler warnings
10901 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10902 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10904 (new_exclude_segment, excluded_file_pattern_p)
10905 (excluded_file_name_p): Reduce scope.
10906 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10907 old-style declaration.
10909 2009-08-20 Simon Josefsson <simon@josefsson.org>
10911 * tests/test-exclude1.sh: Handle Windows EOL.
10912 * tests/test-exclude2.sh: Likewise.
10913 * tests/test-exclude3.sh: Likewise.
10914 * tests/test-exclude4.sh: Likewise.
10915 * tests/test-exclude5.sh: Likewise.
10916 * tests/test-exclude6.sh: Likewise.
10917 * tests/test-exclude7.sh: Likewise.
10919 2009-08-19 Akim Demaille <demaille@gostai.com>
10921 bootstrap: find sha1sum when named gsha1sum.
10922 * bootstrap (find_tool): New.
10926 2009-08-20 Jim Meyering <meyering@redhat.com>
10928 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10929 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10930 expression that converts "." in a file name to "\." in the resulting
10931 regexp. Start with a dummy statement, so that prior shell variable
10932 definitions are expanded portably. Reported by Simon Josefsson.
10934 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10936 Fix polling for writeability of a screen buffer.
10937 * lib/poll.c: Distinguish input and screen buffers for the
10938 Win32 implementation.
10939 * lib/select.c: Likewise.
10941 2009-08-19 Eric Blake <ebb9@byu.net>
10943 popen-safer: prevent popen from clobbering std descriptors
10944 * modules/popen-safer: New file.
10945 * lib/popen-safer.c: Likewise.
10946 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10947 * lib/stdio--.h (popen): Provide override.
10948 * lib/stdio-safer.h (popen_safer): Provide declaration.
10949 * tests/test-popen.c (includes): Partially test this.
10950 * modules/popen-safer-tests: New file, for more tests.
10951 * tests/test-popen-safer.c: Likewise.
10952 * MODULES.html.sh (file stream based Input/Output): Mention it.
10954 tests: test some of the *-safer modules
10955 * modules/fopen-safer (Depends-on): Add fopen.
10956 * modules/fcntl-safer (Depends-on): Add fcntl.
10957 * modules/stdlib-safer (Depends-on): Add stdlib.
10958 (configure.ac): Set indicator.
10959 * modules/unistd-safer (configure.ac): Likewise.
10960 * modules/tmpfile-safer (configure.ac): Likewise.
10961 (Depends-on): Add tmpfile.
10962 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10964 * tests/test-fopen.c (includes): Test safer versions when they are
10966 * tests/test-open.c (includes): Likewise.
10968 popen: fix cygwin 1.5 bug when stdin closed
10969 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10970 * modules/popen: New file.
10971 * modules/popen-tests: Likewise.
10972 * tests/test-popen.c: Likewise.
10973 * m4/popen.m4: Likewise.
10974 * lib/popen.c: Likewise.
10975 * lib/stdio.in.h (popen): New declaration.
10976 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10977 * modules/stdio (Makefile.am): Likewise.
10978 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10980 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
10982 maint.mk: give full control over update-copyright exclusions
10983 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10984 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10985 (update-copyright): Don't force inclusion of top-level
10986 ChangeLog. Don't force exclusion of all COPYING files, but make
10987 them the default exclusion instead.
10989 2009-08-16 Bruno Haible <bruno@clisp.org>
10991 Fix test failures on Solaris 10.
10992 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10993 tests when Solaris iconv() is used.
10994 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10995 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10996 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10997 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10998 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11000 2009-08-16 Bruno Haible <bruno@clisp.org>
11002 Fix test failures on Solaris 10.
11003 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11004 'tr' program and pass it as first argument.
11005 * tests/test-pipe-filter-gi1.sh: Likewise.
11006 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11007 program as first argument.
11008 * tests/test-pipe-filter-gi1.c (main): Likewise.
11010 2009-08-16 Eric Blake <ebb9@byu.net>
11012 fpurge: fix previous commits
11013 * modules/fpurge (Makefile.am): Make replacement conditional,
11014 partially reverting 2007-04-29 change; missed in previous
11016 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11019 2009-08-16 Bruno Haible <bruno@clisp.org>
11021 Clarify fpurge's effect on the file position.
11022 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11023 * tests/test-fpurge.c (main): Make a second pass for checking the file
11026 2009-08-16 Bruno Haible <bruno@clisp.org>
11028 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11029 declaration of fpurge is missing.
11030 * tests/test-fpurge.c (main): Check that the file has not more contents
11031 than expected. Close the file before removing it.
11033 2009-08-15 Eric Blake <ebb9@byu.net>
11035 fpurge: don't wrap working cygwin implementation
11036 * lib/fpurge.c (fpurge): Fix comment typo.
11037 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11038 1.7 to avoid replacement.
11039 * tests/test-fpurge.c (main): Enhance test.
11041 2009-08-15 Eric Blake <ebb9@byu.net>
11042 and Jim Meyering <meyering@redhat.com>
11044 test-update-copyright: skip if perl is insufficient
11045 * tests/test-update-copyright.sh: Failure to run maintainer tool
11046 should not cause testsuite failure on cygwin 1.5.
11048 2009-08-14 Eric Blake <ebb9@byu.net>
11050 doc: mention more functions added in cygwin 1.7.0
11051 * doc/posix-headers/limits.texi (limits.h): Update for recent
11053 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11054 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11055 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11056 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11057 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11059 2009-08-14 Eric Blake <ebb9@byu.net>
11061 maint.mk: simplify update-copyright rule
11062 * top/maint.mk (update-copyright-local): Delete, and document how
11063 to do it in cfg.mk instead.
11064 (update-copyright-exclude-regexp): Delete, and document how to do
11065 it in .x-update-copyright instead.
11066 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
11069 2009-08-14 Bruno Haible <bruno@clisp.org>
11071 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11073 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11075 maint.mk: support update-copyright-env
11076 * top/maint.mk (update-copyright-env): Define place-holder.
11077 (update-copyright): Expand $(update-copyright-env) before
11078 invoking update-copyright.
11080 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11082 update-copyright: implement forced reformatting
11083 * build-aux/update-copyright: Implement and document
11084 UPDATE_COPYRIGHT_FORCE.
11085 * tests/test-update-copyright.sh: Test it.
11087 2009-08-14 Eric Blake <ebb9@byu.net>
11088 and Bruno Haible <bruno@clisp.org>
11090 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11091 * tests/test-locale.c: Revert previous patch related to NULL.
11092 * tests/test-stdio.c: Likewise.
11093 * tests/test-stdlib.c: Likewise.
11094 * tests/test-string.c: Likewise.
11095 * tests/test-unistd.c: Likewise.
11096 * modules/time-tests (Depends-on): Add verify.
11097 * modules/wchar-tests (Depends-on): Likewise.
11098 * tests/test-time.c: Test for NULL compliance.
11099 * tests/test-wchar.c: Likewise.
11100 * modules/locale (Depends-on): Add stddef.
11101 * modules/stdio (Depends-on): Likewise.
11102 * modules/stdlib (Depends-on): Likewise.
11103 * modules/string (Depends-on): Likewise.
11104 * modules/time (Depends-on): Likewise.
11105 * modules/unistd (Depends-on): Likewise.
11106 * modules/wchar (Depends-on): Likewise.
11107 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11108 * lib/stdlib.in.h (includes): Likewise.
11109 * lib/string.in.h (includes): Likewise.
11110 * lib/time.in.h (includes): Likewise.
11111 * lib/unistd.in.h (includes): Likewise.
11112 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11114 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11115 * m4/stddef_h.m4: New file.
11116 * modules/stddef: Likewise.
11117 * lib/stddef.in.h: Likewise.
11118 * modules/stddef-tests: Likewise.
11119 * tests/test-stddef.c: Likewise.
11120 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11121 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11122 * doc/posix-headers/locale.texi (locale.h): Likewise.
11123 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11124 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11125 * doc/posix-headers/string.texi (string.h): Likewise.
11126 * doc/posix-headers/time.texi (time.h): Likewise.
11127 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11128 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11130 2009-08-14 Eric Blake <ebb9@byu.net>
11132 doc: improve git diff of texinfo files
11133 * .gitattributes: Add rule for *.texi files, with hint on how to
11135 Copied from m4, and based on a report by Bruno Haible.
11137 2009-08-14 Bruno Haible <bruno@clisp.org>
11139 Disable multithread support by default on Cygwin 1.5.x for real.
11140 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11142 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11144 update-copyright: much ado about intervals
11145 * build-aux/update-copyright: Implement and document
11146 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11147 of copyright year intervals.
11148 Also, document UPDATE_COPYRIGHT_YEAR.
11149 * tests/test-update-copyright.sh: Test it.
11151 update-copyright: convert 2-digit to 4-digit years
11152 * build-aux/update-copyright: Implement and document.
11153 * tests/test-update-copyright.sh: Update.
11155 2009-08-14 Jim Meyering <meyering@redhat.com>
11157 test-exclude: avoid coreutils "make check" failure
11158 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11159 just as in test-argmatch.c.
11161 2009-08-13 Eric Blake <ebb9@byu.net>
11163 test-dup2: fix bad assumption
11164 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11165 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11167 test-version-etc: fix CRLF portability issue
11168 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11170 * tests/test-argp-version-etc-1.sh: Likewise.
11172 getopt: update client modules
11173 * modules/argp (Depends-on): Use getopt-gnu.
11174 * modules/git-merge-changelog (Depends-on): Likewise.
11175 * modules/long-options (Depends-on): Likewise.
11176 * modules/xstrtol (Depends-on): Likewise.
11178 2009-08-13 Simon Josefsson <simon@josefsson.org>
11180 * tests/test-version-etc.sh: Don't fail on different
11181 project/version. Don't fail on CRLF differences. Rewrite to use
11182 multiple -e instead of multiple sed forks, suggested by Eric Blake
11184 * tests/test-argp-version-etc-1.sh: Likewise.
11186 2009-08-13 Simon Josefsson <simon@josefsson.org>
11188 * tests/test-version-etc.sh: Don't fail on different
11191 2009-08-12 Bruno Haible <bruno@clisp.org>
11193 Tests for modules 'getopt-posix', 'getopt-gnu'.
11194 * modules/getopt-posix-tests: New file.
11195 * tests/test-getopt.c: New file.
11196 * tests/test-getopt.h: New file.
11197 * tests/test-getopt_long.h: New file.
11199 New modules 'getopt-posix', 'getopt-gnu'.
11200 * modules/getopt-gnu: New file, renamed from modules/getopt.
11201 * modules/getopt-posix: New file.
11202 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11203 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11204 (gl_GETOPT): Remove macro.
11205 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11206 Disable the test against BSD systems that declare optreset. Test
11207 against mingw bug. Test against lack of support of optional arguments
11209 * doc/glibc-headers/getopt.texi: Update module name and list of
11210 relevant platforms.
11211 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11212 'getopt-gnu' and more portability problems.
11213 * NEWS: Mention the changes.
11215 2009-08-12 Bruno Haible <bruno@clisp.org>
11217 Ensure that optarg etc. get declared by <unistd.h>.
11218 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11219 AC_USE_SYSTEM_EXTENSIONS.
11220 * modules/getopt (Depends-on): Add 'extensions'.
11222 2009-08-12 Bruno Haible <bruno@clisp.org>
11224 Avoid test link errors.
11225 * modules/pipe-filter-ii-tests (Makefile.am): Define
11226 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11227 * modules/pipe-filter-gi-tests (Makefile.am): Define
11228 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11229 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11231 2009-08-12 Bruno Haible <bruno@clisp.org>
11233 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11234 gl_GETOPT_SUBSTITUTE before.
11235 (gl_GETOPT): Use it.
11236 * m4/argp.m4 (gl_ARGP): Update.
11237 Reported by Sergey Poznyakoff.
11239 * m4/getopt.m4: Reorder macros.
11240 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11241 (gl_GETOPT_SUBSTITUTE): Remove macro.
11243 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11245 Minor improvement in gitlog-to-changelog
11247 * build-aux/gitlog-to-changelog: New option `--format' makes
11248 output format string configurable.
11250 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
11252 Optimize exclude: use hash tables for non-wildcard patterns.
11254 * lib/exclude.c: Include hash.h and mbuiter.h
11255 (struct exclude_pattern, exclude_segment): New data types.
11256 (struct exclude): Rewrite.
11257 (fnmatch_pattern_has_wildcards): New function.
11258 (new_exclude_segment, free_exclude_segment): New functions.
11259 (excluded_file_pattern_p, excluded_file_name_p): New functions.
11260 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11261 * lib/exclude.h (is_fnmatch_pattern): New prototype.
11262 * modules/exclude: Depend on hash and mbuiter.
11264 * modules/exclude-tests: New file.
11265 * tests/test-exclude.c: New file.
11266 * tests/test-exclude1.sh: New file.
11267 * tests/test-exclude2.sh: New file.
11268 * tests/test-exclude3.sh: New file.
11269 * tests/test-exclude4.sh: New file.
11270 * tests/test-exclude5.sh: New file.
11271 * tests/test-exclude6.sh: New file.
11272 * tests/test-exclude7.sh: New file.
11274 2009-08-12 Bruno Haible <bruno@clisp.org>
11276 Ensure that getopt() gets declared by <unistd.h>.
11277 * lib/unistd.in.h: Conditionally include getopt.h.
11278 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11279 Set GNULIB_UNISTD_H_GETOPT.
11280 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11281 GNULIB_UNISTD_H_GETOPT.
11282 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11284 2009-08-12 Bruno Haible <bruno@clisp.org>
11287 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11288 gl_replace_getopt instead of GETOPT_H.
11290 2009-08-12 Bruno Haible <bruno@clisp.org>
11292 * m4/getopt.m4: Add comments.
11294 2009-08-12 Bruno Haible <bruno@clisp.org>
11296 Disable multithread support by default on Cygwin 1.5.x.
11297 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11298 set gl_use_threads=no if not specified otherwise.
11300 2009-08-11 Bruno Haible <bruno@clisp.org>
11302 Avoid compilation error on NetBSD 5.0.
11303 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11304 * tests/test-stdio.c: Likewise.
11305 * tests/test-stdlib.c: Likewise.
11306 * tests/test-string.c: Likewise.
11307 * tests/test-unistd.c: Likewise.
11308 Reported by Greg Troxel <gdt@ir.bbn.com>
11309 at <https://savannah.gnu.org/support/?106973>.
11311 2009-08-11 Bruno Haible <bruno@clisp.org>
11313 * modules/dup2-tests (Depends-on): Remove close.
11315 Undo 2009-07-19 commit.
11316 * modules/acl-tests (Depends-on): Remove close.
11317 * modules/binary-io-tests (Depends-on): Likewise.
11318 * modules/closein-tests (Depends-on): Likewise.
11319 * modules/flock-tests (Depends-on): Likewise.
11320 * modules/fsync-tests (Depends-on): Likewise.
11321 * modules/lseek-tests (Depends-on): Likewise.
11322 * modules/pipe-tests (Depends-on): Likewise.
11323 * modules/posix_spawn-tests (Depends-on): Likewise.
11324 * modules/posix_spawnp-tests (Depends-on): Likewise.
11325 * modules/stat-time-tests (Depends-on): Likewise.
11326 * modules/yesno-tests (Depends-on): Likewise.
11328 2009-08-10 Bruno Haible <bruno@clisp.org>
11330 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11332 2009-08-10 Bruno Haible <bruno@clisp.org>
11335 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11337 2009-08-10 Bruno Haible <bruno@clisp.org>
11339 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11340 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11341 not only the first time.
11342 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11343 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11344 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11345 is 1, not only the the first time.
11347 2009-08-10 Bruno Haible <bruno@clisp.org>
11349 Make it possible to use module 'gethostname' without module 'close'.
11350 * lib/unistd.in.h (close): Evoke a link error only if
11351 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11352 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11353 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11354 * modules/unistd (Makefile.am): Substitute
11355 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11356 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11357 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11358 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11359 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11360 * modules/sys_ioctl (Makefile.am): Substitute
11361 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11362 * modules/socket (configure.ac): On native Windows, set
11363 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11364 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11365 Reported by Sam Steingold <sds@gnu.org>.
11367 2009-08-10 Bruno Haible <bruno@clisp.org>
11369 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11370 * modules/ioctl (configure.ac): Likewise.
11372 2009-08-10 Bruno Haible <bruno@clisp.org>
11374 Avoid collision between gnulib wrapper and libintl wrapper.
11375 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11376 already defined in intl/printf.c.
11377 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11378 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11380 2009-08-09 Bruno Haible <bruno@clisp.org>
11382 Make <sys/select.h> really self-contained, also on Solaris 10.
11383 * lib/sys_select.in.h: Include <string.h>.
11384 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11385 Solaris 10 problem.
11386 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11387 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11388 Reported by Jim Meyering.
11390 2009-08-09 Bruno Haible <bruno@clisp.org>
11392 Avoid warnings from 'aclocal' that are due to a use of macro name
11393 AM_XGETTEXT_OPTION that is not defined in automake.
11394 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11396 * modules/error (configure.ac): Likewise.
11397 * modules/propername (configure.ac): Likewise.
11398 * modules/vasprintf (configure.ac): Likewise.
11399 * modules/verror (configure.ac): Likewise.
11400 * modules/xprintf (configure.ac): Likewise.
11401 * modules/xvasprintf (configure.ac): Likewise.
11403 2009-08-08 Bruno Haible <bruno@clisp.org>
11405 Avoid compilation error in C++ mode.
11406 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11407 Reported by Sam Steingold <sds@gnu.org>.
11409 2009-08-08 Bruno Haible <bruno@clisp.org>
11411 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11412 for the various Unix platforms.
11413 * doc/posix-headers/limits.texi: Update platforms list regarding
11415 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11417 2009-08-07 Jim Meyering <meyering@redhat.com>
11419 selinux-at: fix typo in a comment
11420 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11421 Spotted by Paolo Bonzini.
11423 selinux-at: remove redundant m4 code, add documentation
11424 * modules/selinux-at (configure.ac): Remove redundant code.
11425 LIB_SELINUX is already set via the dependent module, selinux-h.
11426 (Include): Add quotes around selinux-at.h.
11427 * lib/selinux-at.h: Add documentation.
11428 Reported by Bruno Haible in
11429 http://marc.info/?l=gnulib-bug&m=124958988300749
11431 2009-08-07 Bruno Haible <bruno@clisp.org>
11433 Avoid link error on MacOS X 10.3 and 10.4.
11434 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11435 on non-ELF systems.
11436 * lib/argp-pv.c (argp_program_version): Likewise.
11437 Reported by Simon Josefsson.
11439 2009-08-07 Simon Josefsson <simon@josefsson.org>
11441 * tests/test-version-etc.sh: Use $EXEEXT.
11443 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11445 update-copyright: update documentation to point to maint.mk
11446 * build-aux/update-copyright: Here.
11448 2009-08-06 Jim Meyering <meyering@redhat.com>
11450 maint.mk: support update-copyright-local
11451 * top/maint.mk (update-copyright-local): Define place-holder.
11452 (update-copyright): Depend on $(update-copyright-local).
11454 2009-08-06 Jim Meyering <meyering@redhat.com>
11456 selinux-at: new module
11457 Initially written for coreutils, this module will soon be
11458 used by findutils, too.
11459 * MODULES.html.sh [Misc]: Add selinux-at.
11460 * lib/selinux-at.h: New file, from coreutils.
11461 * lib/selinux-at.c: Likewise.
11462 * modules/selinux-at: Likewise.
11463 (License): Change from LGPL to GPL, since it depends
11464 on the GPL'd openat module.
11467 * README: Remove references to cogito.
11468 Remove cvs-repo-updating instructions from 2007.
11469 Don't imply that CVS is better if you have limited disk space.
11471 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11473 update-copyright: support C-style comments
11474 * build-aux/update-copyright: Implement and document.
11475 * tests/test-update-copyright.sh: Test.
11477 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11479 update-copyright: support omitted "(C)"
11480 * build-aux/update-copyright: Implement and document. Also,
11481 allow variable whitespace before "(C)".
11482 * tests/test-update-copyright.sh: Test.
11484 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11486 update-copyright: don't trip on non-FSF copyright statements
11487 * build-aux/update-copyright: Fix so that the first correctly
11488 formatted FSF copyright statement is recognized no matter what
11489 appears before it. Update documentation.
11490 * tests/test-update-copyright.sh: Test that.
11492 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11494 update-copyright: clean up code a little
11495 * build-aux/update-copyright: Append "_re" to the name of any
11496 variable holding a regular expression.
11497 Replace "old" and "new" with "stmt" in variable names.
11498 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11500 Format code more consistently.
11502 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11504 update-copyright-tests: improve portability
11505 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11506 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
11508 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11510 update-copyright: support @copyright{} and ©
11511 * build-aux/update-copyright: Implement and document.
11512 * tests/test-update-copyright.sh: Test.
11514 2009-08-04 Jim Meyering <meyering@redhat.com>
11516 update-copyright-tests: correctly test EOL=\r\n handling
11517 * tests/test-update-copyright.sh: Put \r at the end of some lines
11518 for the dos-eol tests. Based on a patch by Joel E. Denny.
11520 maint.mk: make update-copyright exclusion list more configurable
11521 * top/maint.mk (update-copyright): Default to excluding COPYING,
11522 but allow an override, in case someone does want to update that file.
11524 maint.mk: don't update copyright date in COPYING
11525 * top/maint.mk (update-copyright): Exclude COPYING.
11527 maint.mk: add a copyright-updating rule
11528 * top/maint.mk (update-copyright): New rule.
11529 Derived from coreutils/Makefile.am.
11531 update-copyright: rename some variables
11532 * build-aux/update-copyright: Rename a few variables for clarity.
11533 Tweak syntax. List Joel E. Denny as coauthor.
11535 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11537 update-copyright: fix bug for 2-digit last year and add tests
11538 * build-aux/update-copyright: Fix bug.
11539 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11541 * modules/update-copyright-tests: New
11542 * tests/test-update-copyright.sh: New.
11544 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11546 update-copyright: handle leading tabs in line prefix
11547 * build-aux/update-copyright: Count leading tabs as 8 spaces
11548 when computing margin. This helps with the formatting of
11549 ChangeLogs, for example.
11550 Fix documentation a little.
11552 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11554 update-copyright: support EOL=\r\n
11555 * build-aux/update-copyright: Implement that.
11557 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11559 update-copyright: automatically format copyright statements
11560 * build-aux/update-copyright: Implement that.
11561 Also, be a little more predictable and safer by always failing
11562 when the full copyright format is not perfectly recognized as an
11563 unbroken whole. Discussed at
11564 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11565 Rewrite documentation.
11567 2009-08-03 Bruno Haible <bruno@clisp.org>
11569 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11571 2009-08-02 Bruno Haible <bruno@clisp.org>
11573 Tests for module 'uname'.
11574 * modules/uname-tests: New file.
11575 * tests/test-uname.c: New file.
11577 New module 'uname'.
11578 * lib/uname.c: New file.
11579 * m4/uname.m4: New file.
11580 * modules/uname: New file.
11581 * doc/posix-functions/uname.texi: Mention the new module.
11583 2009-08-02 Bruno Haible <bruno@clisp.org>
11585 Tests for module 'sys_utsname'.
11586 * modules/sys_utsname-tests: New file.
11587 * tests/test-sys_utsname.c: New file.
11589 New module 'sys_utsname'.
11590 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11591 * m4/sys_utsname_h.m4: New file.
11592 * modules/sys_utsname: New file.
11593 * doc/posix-headers/sys_utsname.texi: Mention the new module.
11595 2009-08-02 Bruno Haible <bruno@clisp.org>
11597 Implicitly initialize the sockets library.
11598 * lib/gethostname.c: Include sockets.h.
11599 (rpl_gethostname): Invoke gl_sockets_startup.
11600 * lib/socket.c: Include sockets.h.
11601 (rpl_socket): Invoke gl_sockets_startup.
11602 * modules/gethostname (Depends-on): Add sockets.
11603 * modules/socket (Depends-on): Likewise.
11604 * tests/test-poll.c: Don't include sockets.h.
11605 (main): Don't invoke gl_sockets_startup.
11606 * tests/test-select.c: Don't include sockets.h.
11607 (main): Don't invoke gl_sockets_startup.
11609 2009-08-02 Bruno Haible <bruno@clisp.org>
11611 Allow multiple calls to gl_sockets_startup.
11612 * lib/sockets.c (initialized_sockets_version): New variable.
11613 (gl_sockets_startup): Do nothing if already called for this or a higher
11615 (gl_sockets_cleanup): Reset initialized_sockets_version.
11617 2009-08-03 Simon Josefsson <simon@josefsson.org>
11619 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
11620 different project/version.
11622 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
11623 Bruno Haible <bruno@clisp.org>
11625 Tests for module 'pipe-filter-gi'.
11626 * modules/pipe-filter-gi-tests: New file.
11627 * tests/test-pipe-filter-gi1.sh: New file.
11628 * tests/test-pipe-filter-gi1.c: New file.
11629 * tests/test-pipe-filter-gi2.sh: New file.
11630 * tests/test-pipe-filter-gi2-main.c: New file.
11631 * tests/test-pipe-filter-gi2-child.c: New file.
11633 New module 'pipe-filter-gi'.
11634 * lib/pipe-filter-gi.c: New file.
11635 * modules/pipe-filter-gi: New file.
11637 2009-08-02 Bruno Haible <bruno@clisp.org>
11638 Paolo Bonzini <bonzini@gnu.org>
11640 Tests for module 'pipe-filter-ii'.
11641 * modules/pipe-filter-ii-tests: New file.
11642 * tests/test-pipe-filter-ii1.sh: New file.
11643 * tests/test-pipe-filter-ii1.c: New file.
11644 * tests/test-pipe-filter-ii2.sh: New file.
11645 * tests/test-pipe-filter-ii2-main.c: New file.
11646 * tests/test-pipe-filter-ii2-child.c: New file.
11648 New module 'pipe-filter-ii'.
11649 * lib/pipe-filter.h: New file.
11650 * lib/pipe-filter-ii.c: New file.
11651 * lib/pipe-filter-aux.h: New file.
11652 * modules/pipe-filter-ii: New file.
11654 2009-08-02 Simon Josefsson <simon@josefsson.org>
11656 * lib/gc-libgcrypt.c: Change copyright to FSF.
11657 * lib/gc-gnulib.c: Likewise.
11659 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
11661 * lib/gethostname.c: Include limits.h.
11663 2009-08-02 Simon Josefsson <simon@josefsson.org>
11664 Bruno Haible <bruno@clisp.org>
11666 Ensure HOST_NAME_MAX as part of the gethostname module.
11667 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11668 define also HOST_NAME_MAX.
11669 * tests/test-gethostname.c: Include <limits.h>.
11670 (main): Check also HOST_NAME_MAX.
11671 * doc/posix-headers/limits.texi: Document the mingw problem.
11673 2009-08-02 Bruno Haible <bruno@clisp.org>
11675 * lib/gethostname.c (gethostname): Fix handling of large len argument.
11678 2009-03-31 Simon Josefsson <simon@josefsson.org>
11680 * lib/gethostname.c: Add Windows wrapper.
11681 * m4/gethostname.m4: Look for gethostname in -lws2_32.
11682 * modules/gethostname: Depend on sys_socket & errno, for also
11683 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
11684 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11686 2009-07-31 Jim Meyering <meyering@redhat.com>
11688 getloadavg: fix symbol name in comment
11689 * lib/getloadavg.c: Correct a typo I introduced when adding
11690 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11691 Matt Kraai spotted the problem.
11693 2009-07-29 Matt Kraai <mkraai@beckman.com>
11695 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11696 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11697 code also if ! defined N_NAME_POINTER.
11698 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11699 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11700 but the n_name member is a 12-byte array.
11702 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
11704 update-copyright: generalize comment handling
11705 * build-aux/update-copyright: Handle copyright statements
11706 within more comment styles.
11708 Report any file with an external copyright holder or parse failure.
11710 2009-07-29 Jim Meyering <meyering@redhat.com>
11712 mktime: correct setting of REPLACE_MKTIME
11713 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11715 update-copyright: new module
11716 * modules/update-copyright: New file.
11717 * build-aux/update-copyright: New file.
11718 * MODULES.html.sh (maint+release support): Add update-copyright.
11720 2009-07-27 Bruno Haible <bruno@clisp.org>
11722 Fix compilation error when <ctime> is used and mktime is replaced.
11723 * lib/time.in.h (mktime): New declaration.
11724 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11725 REPLACE_MKTIME instead of defining mktime in config.h.
11726 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11727 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11728 Reported by Ross McFarland <rwmcfa1@neces.com>.
11730 2009-07-27 Bruno Haible <bruno@clisp.org>
11732 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11733 Reported by Matt Kraai <mkraai@beckman.com>.
11735 2009-07-25 Jim Meyering <meyering@redhat.com>
11737 maint.mk: avoid warnings about missing files
11738 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11739 diagnostic when .prev-version does not exist.
11740 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11741 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11742 nonexistent cfg.mk.
11743 Suggestions from Simon Josefsson.
11745 2009-07-25 Bruno Haible <bruno@clisp.org>
11747 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11748 defined as macros. Needed on QNX 6.4.1.
11749 Reported by Matt Kraai <mkraai@beckman.com>.
11751 2009-07-23 Jim Meyering <meyering@redhat.com>
11753 maint.mk: invoke "make dist" with a working value of XZ_OPT
11754 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11756 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
11758 Make fseeko.c compile on QNX.
11759 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11761 2009-07-22 Peter Simons <simons@cryp.to>
11763 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11764 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11765 * lib/md4.h: Likewise.
11766 * lib/md5.h: Likewise.
11767 * lib/sha1.h: Likewise.
11768 * lib/sha256.h: Likewise.
11769 * lib/sha512.h: Likewise.
11771 tests-sha1: don't assign literal string to 'char *' variable
11772 * tests/test-sha1.c (main): Declare locals with "const" to match
11773 attributes of the right hand side.
11775 2009-07-21 Eric Blake <ebb9@byu.net>
11777 dup2: fix more mingw problems
11778 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11780 * doc/posix-functions/dup2.texi (dup2): Document the bug.
11781 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11782 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11783 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11784 care of mingw bugs.
11786 2009-07-21 Jim Meyering <meyering@redhat.com>
11788 vc-list-files: avoid failure when /bin/sh is dash
11789 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11790 On some Debian based systems, /bin/sh is a symlink to dash, and running
11791 this command would omit the "/" following each 'tests' prefix:
11792 dash -x build-aux/vc-list-files -C . tests
11793 That is because bash and dash work differently:
11794 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11798 2009-07-21 Eric Blake <ebb9@byu.net>
11800 dup2-tests: test previous patch
11801 * modules/dup2-tests: New file.
11802 * tests/test-dup2.c: Likewise.
11803 * tests/test-open.c (main): Avoid unspecified behavior.
11804 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11807 dup2: work around mingw and cygwin 1.5 bug
11808 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11809 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11810 * modules/unistd (Makefile.am): Substitute it.
11811 * lib/unistd.in.h (dup2): Declare the replacement.
11812 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11813 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11814 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11815 * modules/execute (Depends-on): Add dup2.
11816 * modules/fseterr (Depends-on): Likewise.
11817 * modules/pipe (Depends-on): Likewise.
11818 * modules/posix_spawn-internal (Depends-on): Likewise.
11820 2009-07-21 Bruno Haible <bruno@clisp.org>
11822 * modules/.gitattributes: New file.
11824 2009-07-20 Bruno Haible <bruno@clisp.org>
11826 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11829 2009-07-20 Eric Blake <ebb9@byu.net>
11831 test-pipe: make a bit more robust.
11832 * tests/test-pipe.c (myerr): Allow error messages regardless of
11833 what we do to stderr.
11834 (test_pipe): Rearrange to avoid deadlock.
11835 (child_main): Try a larger read, to ensure we avoided deadlock.
11836 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11837 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11840 2009-07-19 Jim Meyering <meyering@redhat.com>
11842 fts: avoid false-positive cycle-detection
11843 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11844 for each new command line argument.
11846 2009-07-19 Bruno Haible <bruno@clisp.org>
11848 Fix build error on mingw with the modules sys_select and unistd.
11849 * modules/acl-tests (Depends-on): Add close.
11850 * modules/binary-io-tests (Depends-on): Likewise.
11851 * modules/closein-tests (Depends-on): Likewise.
11852 * modules/flock-tests (Depends-on): Likewise.
11853 * modules/fsync-tests (Depends-on): Likewise.
11854 * modules/lseek-tests (Depends-on): Likewise.
11855 * modules/pipe-tests (Depends-on): Likewise.
11856 * modules/posix_spawn-tests (Depends-on): Likewise.
11857 * modules/posix_spawnp-tests (Depends-on): Likewise.
11858 * modules/stat-time-tests (Depends-on): Likewise.
11859 * modules/yesno-tests (Depends-on): Likewise.
11861 2009-07-19 Bruno Haible <bruno@clisp.org>
11863 Unify conditionals.
11864 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11865 macros, not at the compiler macros.
11866 * lib/pipe.c: Likewise.
11867 * lib/execute.c: Likewise.
11868 * lib/spawni.c: Likewise.
11870 2009-07-19 Bruno Haible <bruno@clisp.org>
11872 Fix handling of closed stdin/stdout/stderr on mingw.
11873 * lib/w32spawn.h: Include unistd.h.
11874 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11875 file descriptor with O_NOINHERIT flag.
11876 (fd_safer_noinherit): New function, based on fd-safer.c.
11877 (dup_safer_noinherit): New function, based on dup-safer.c.
11878 (undup_safer_noinherit): New function.
11879 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11880 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11881 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11882 instead of fd_safer.
11883 * tests/test-pipe.c: Include <windows.h>.
11884 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11886 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11888 (test_pipe): Pass an extra argument for disambiguation.
11889 (main): Invoke parent_main or child_main.
11891 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11894 2009-07-18 Eric Blake <ebb9@byu.net>
11896 test-pipe: fix mingw build
11897 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11899 2009-07-18 Bruno Haible <bruno@clisp.org>
11901 * modules/pipe-tests (Makefile.am): Fix typo.
11903 2009-07-18 Eric Blake <ebb9@byu.net>
11905 error: fix mingw build
11906 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11907 Reported by Bruno Haible.
11909 error: avoid undefined use of stdout
11910 * lib/error.c (error, error_at_line): Check that fd 1 is open
11911 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11912 is handling faults and the close_stdout module wants to report the
11913 detection of closed stdout as an error.
11915 2009-07-17 Eric Blake <ebb9@byu.net>
11917 pipe: be robust in face of closed fds
11918 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11919 should cause child to misbehave.
11920 * modules/pipe-tests: New module.
11921 * tests/test-pipe.c: New file.
11922 * tests/test-pipe.sh: New file.
11923 Reported by Akim Demaille.
11925 2009-07-14 Bruno Haible <bruno@clisp.org>
11927 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11928 Reported by anonymous kc.
11930 2009-07-07 Jim Meyering <meyering@redhat.com>
11932 maint.mk: don't look for translatable strings in *.m4 or *.mk
11933 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11934 when searching for translatable strings.
11936 2009-07-05 Jim Meyering <meyering@redhat.com>
11938 remove superfluous parentheses in STREQ definition
11939 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11940 * lib/getugroups.c (STREQ): Likewise.
11941 * lib/fnmatch.c (STREQ): Likewise.
11942 Spotted by Bruno Haible.
11944 2009-07-04 Jim Meyering <meyering@redhat.com>
11946 argv-iter: new module
11947 * MODULES.html.sh: Add argv-iter.
11948 * lib/argv-iter.c, lib/argv-iter.h: New files.
11949 * modules/argv-iter: New file.
11950 * modules/argv-iter-tests: New file.
11951 * tests/test-argv-iter.c: Test it.
11953 2009-07-04 Bruno Haible <bruno@clisp.org>
11956 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11957 contains more exact copies of a given entry than file2, leave the extra
11958 copies unpaired rather than aborting.
11959 Reported by Eric Blake.
11961 2009-07-02 Bruno Haible <bruno@clisp.org>
11963 Speedup git-merge-changelog for git cherry-pick.
11964 * lib/git-merge-changelog.c (struct entries_mapping): New type.
11965 (entries_mapping_get): New function, extracted from compute_mapping.
11966 (entries_mapping_reverse_get): New function.
11967 (compute_mapping): Add a 'full' argument. Return the result in a
11968 'struct entries_mapping'.
11969 (main): Update. Access the mappings through entries_mapping_get.
11970 Reported by Eric Blake.
11972 2009-07-02 Bruno Haible <bruno@clisp.org>
11974 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11977 2009-07-02 Bruno Haible <bruno@clisp.org>
11979 Speed up approximate search for matching ChangeLog entries.
11980 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11981 argument. Call fstrcmp_bounded instead of fstrcmp.
11982 (compute_mapping, try_split_merged_entry, main): Update callers.
11984 2009-07-02 Bruno Haible <bruno@clisp.org>
11986 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11988 2009-06-30 Bruno Haible <bruno@clisp.org>
11990 Reduce the number of uc_is_cased calls.
11991 * lib/unicase.h (casing_suffix_context_t): Add
11992 'first_char_except_ignorable' field.
11993 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11994 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11995 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11996 Update initializer.
11997 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11998 case-ignorable characters.
11999 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12000 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12001 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12002 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12003 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12005 2009-06-30 Bruno Haible <bruno@clisp.org>
12007 Tests for module 'unicase/ignorable'.
12008 * modules/unicase/ignorable-tests: New file.
12009 * tests/unicase/test-ignorable.c: New file, generated by
12012 Tests for module 'unicase/cased'.
12013 * modules/unicase/cased-tests: New file.
12014 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12015 * tests/unicase/test-predicate-part1.h: New file, derived from
12016 tests/unictype/test-predicate-part1.h.
12017 * tests/unicase/test-predicate-part2.h: New file, same as
12018 tests/unictype/test-predicate-part2.h.
12020 Fix evaluation of "Before C" condition of FINAL_SIGMA.
12021 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12022 (output_casing_properties): New function.
12024 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12025 * lib/unicase/cased.c: Include unictype/bitmap.h.
12026 (uc_is_cased): Define through a bitmap lookup.
12027 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12028 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12029 (uc_is_case_ignorable): Define through a bitmap lookup.
12030 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12031 lib/unictype/bitmap.h.
12032 (Depends-on): Add inline. Clean up.
12033 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12034 lib/unictype/bitmap.h.
12035 (Depends-on): Add inline. Clean up.
12036 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12038 * tests/unicase/test-u16-tolower.c (main): Likewise.
12039 * tests/unicase/test-u32-tolower.c (main): Likewise.
12041 2009-06-30 Bruno Haible <bruno@clisp.org>
12043 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12044 * lib/unicase/u16-casemap.c: Likewise.
12045 * lib/unicase/u32-casemap.c: Likewise.
12047 2009-06-29 Bruno Haible <bruno@clisp.org>
12049 Define u32_casefold as a wrapper around u32_ct_casefold.
12050 * lib/unicase/u32-casefold.c: Update.
12051 * modules/unicase/u32-casefold (Depends-on): Add
12052 unicase/u32-ct-casefold, unicase/empty-prefix-context,
12053 unicase/empty-suffix-context. Clean up.
12055 Define u16_casefold as a wrapper around u16_ct_casefold.
12056 * lib/unicase/u16-casefold.c: Update.
12057 * modules/unicase/u16-casefold (Depends-on): Add
12058 unicase/u16-ct-casefold, unicase/empty-prefix-context,
12059 unicase/empty-suffix-context. Clean up.
12061 Define u8_casefold as a wrapper around u8_ct_casefold.
12062 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12063 * lib/unicase/u8-casefold.c: Update.
12064 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12065 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12067 Define u32_totitle as a wrapper around u32_ct_totitle.
12068 * lib/unicase/u32-totitle.c: Update.
12069 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12070 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12072 Define u16_totitle as a wrapper around u16_ct_totitle.
12073 * lib/unicase/u16-totitle.c: Update.
12074 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12075 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12077 Define u8_totitle as a wrapper around u8_ct_totitle.
12078 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12080 (FUNC): Delegate to U_CT_TOTITLE.
12081 * lib/unicase/u8-totitle.c: Update.
12082 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12083 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12085 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12087 * modules/unicase/u32-tolower (Depends-on): Add
12088 unicase/empty-prefix-context, unicase/empty-suffix-context.
12090 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12092 * modules/unicase/u16-tolower (Depends-on): Add
12093 unicase/empty-prefix-context, unicase/empty-suffix-context.
12095 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12096 * modules/unicase/u8-tolower (Depends-on): Add
12097 unicase/empty-prefix-context, unicase/empty-suffix-context.
12099 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12101 * modules/unicase/u32-toupper (Depends-on): Add
12102 unicase/empty-prefix-context, unicase/empty-suffix-context.
12104 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12106 * modules/unicase/u16-toupper (Depends-on): Add
12107 unicase/empty-prefix-context, unicase/empty-suffix-context.
12109 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12110 * modules/unicase/u8-toupper (Depends-on): Add
12111 unicase/empty-prefix-context, unicase/empty-suffix-context.
12113 New module 'unicase/u32-ct-casefold'.
12114 * lib/unicase/u32-ct-casefold.c: New file.
12115 * modules/unicase/u32-ct-casefold: New file.
12117 New module 'unicase/u16-ct-casefold'.
12118 * lib/unicase/u16-ct-casefold.c: New file.
12119 * modules/unicase/u16-ct-casefold: New file.
12121 New module 'unicase/u8-ct-casefold'.
12122 * lib/unicase/u8-ct-casefold.c: New file.
12123 * lib/unicase/u-ct-casefold.h: New file, derived from
12124 lib/unicase/u-casefold.h.
12125 * modules/unicase/u8-ct-casefold: New file.
12127 New module 'unicase/u32-ct-totitle'.
12128 * lib/unicase/u32-ct-totitle.c: New file.
12129 * modules/unicase/u32-ct-totitle: New file.
12131 New module 'unicase/u16-ct-totitle'.
12132 * lib/unicase/u16-ct-totitle.c: New file.
12133 * modules/unicase/u16-ct-totitle: New file.
12135 New module 'unicase/u8-ct-totitle'.
12136 * lib/unicase/u8-ct-totitle.c: New file.
12137 * lib/unicase/u-ct-totitle.h: New file, derived from
12138 lib/unicase/u-totitle.h.
12139 * modules/unicase/u8-ct-totitle: New file.
12141 New module 'unicase/u32-ct-tolower'.
12142 * lib/unicase/u32-ct-tolower.c: New file.
12143 * modules/unicase/u32-ct-tolower: New file.
12145 New module 'unicase/u16-ct-tolower'.
12146 * lib/unicase/u16-ct-tolower.c: New file.
12147 * modules/unicase/u16-ct-tolower: New file.
12149 New module 'unicase/u8-ct-tolower'.
12150 * lib/unicase/u8-ct-tolower.c: New file.
12151 * modules/unicase/u8-ct-tolower: New file.
12153 New module 'unicase/u32-ct-toupper'.
12154 * lib/unicase/u32-ct-toupper.c: New file.
12155 * modules/unicase/u32-ct-toupper: New file.
12157 New module 'unicase/u16-ct-toupper'.
12158 * lib/unicase/u16-ct-toupper.c: New file.
12159 * modules/unicase/u16-ct-toupper: New file.
12161 New module 'unicase/u8-ct-toupper'.
12162 * lib/unicase/u8-ct-toupper.c: New file.
12163 * modules/unicase/u8-ct-toupper: New file.
12165 Add context arguments to u*_casemap functions.
12166 * lib/unicase/unicasemap.h: Include unicase.h.
12167 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12168 suffix_context arguments.
12169 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12171 (FUNC): Add prefix_context and suffix_context arguments. Use
12172 uc_is_cased and uc_is_case_ignorable.
12173 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12174 * lib/unicase/u16-casemap.c: Likewise.
12175 * lib/unicase/u32-casemap.c: Likewise.
12176 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12177 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12178 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12179 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12180 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12181 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12183 New module 'unicase/u32-suffix-context'.
12184 * lib/unicase/u32-suffix-context.c: New file.
12185 * modules/unicase/u32-suffix-context: New file.
12187 New module 'unicase/u16-suffix-context'.
12188 * lib/unicase/u16-suffix-context.c: New file.
12189 * modules/unicase/u16-suffix-context: New file.
12191 New module 'unicase/u8-suffix-context'.
12192 * lib/unicase/u8-suffix-context.c: New file.
12193 * lib/unicase/u-suffix-context.h: New file.
12194 * modules/unicase/u8-suffix-context: New file.
12196 New module 'unicase/empty-suffix-context'.
12197 * lib/unicase/empty-suffix-context.c: New file.
12198 * modules/unicase/empty-suffix-context: New file.
12200 New module 'unicase/u32-prefix-context'.
12201 * lib/unicase/u32-prefix-context.c: New file.
12202 * modules/unicase/u32-prefix-context: New file.
12204 New module 'unicase/u16-prefix-context'.
12205 * lib/unicase/u16-prefix-context.c: New file.
12206 * modules/unicase/u16-prefix-context: New file.
12208 New module 'unicase/u8-prefix-context'.
12209 * lib/unicase/u8-prefix-context.c: New file.
12210 * lib/unicase/u-prefix-context.h: New file.
12211 * lib/unicase/context.h: New file.
12212 * modules/unicase/u8-prefix-context: New file.
12214 New module 'unicase/empty-prefix-context'.
12215 * lib/unicase/empty-prefix-context.c: New file.
12216 * modules/unicase/empty-prefix-context: New file.
12218 New module 'unicase/ignorable'.
12219 * lib/unicase/ignorable.c: New file.
12220 * modules/unicase/ignorable: New file.
12222 New module 'unicase/cased'.
12223 * lib/unicase/caseprop.h: New file.
12224 * lib/unicase/cased.c: New file.
12225 * modules/unicase/cased: New file.
12227 New functions for case mapping of substrings.
12228 * lib/unicase.h (casing_prefix_context_t): New type.
12229 (unicase_empty_prefix_context): New variable.
12230 (u8_casing_prefix_context, u16_casing_prefix_context,
12231 u32_casing_prefix_context, u8_casing_prefixes_context,
12232 u16_casing_prefixes_context, u32_casing_prefixes_context): New
12234 (casing_suffix_context_t): New type.
12235 (unicase_empty_suffix_context): New variable.
12236 (u8_casing_suffix_context, u16_casing_suffix_context,
12237 u32_casing_suffix_context, u8_casing_suffixes_context,
12238 u16_casing_suffixes_context, u32_casing_suffixes_context,
12239 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12240 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12241 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12244 2009-06-28 Jim Meyering <meyering@redhat.com>
12246 boostrap: indent only with spaces
12247 * build-aux/bootstrap: Indent only with spaces, never TABs.
12249 bootstrap: split long lines
12250 * build-aux/bootstrap: Keep line length < 80.
12252 bootstrap: sync from coreutils
12253 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12254 just as autoreconf does. Verify a list of prerequisite
12255 package-name,version-number pairs if defined in bootstrap.conf.
12256 Refer to README-prereq, if prerequisites are not satisfied.
12258 2009-06-27 Eric Blake <ebb9@byu.net>
12260 tests: add test for bogus NULL definition
12261 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12262 * tests/test-stdlib.c: Likewise.
12263 * tests/test-string.c: Likewise.
12264 * tests/test-locale.c: Likewise.
12265 * tests/test-unistd.c: Likewise.
12266 * modules/stdio-tests (Depends-on): Add verify.
12267 * modules/stdlib-tests (Depends-on): Likewise.
12268 * modules/string-tests (Depends-on): Likewise.
12269 * modules/locale-tests (Depends-on): Likewise.
12270 * modules/unistd-tests (Depends-on): Likewise.
12272 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12274 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12275 self-explaining comment.
12276 * m4/selinux-selinux-h: Update serial.
12277 (gl_LIBSELINUX): New macro, adding a warning for missing development
12278 packages to code extracted from...
12279 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
12280 Add warning for missing development packages here, too.
12282 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
12284 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12286 2009-06-25 Eric Blake <ebb9@byu.net>
12288 version-etc: fix regression
12289 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12291 (version_etc): Use it, to catch bugs with trailing NULL.
12292 * lib/version-etc.c (version_etc_arn): Delete unused argument.
12293 (version_etc_va): Fix logic bug.
12294 * modules/version-etc-tests: Add test.
12295 * tests/test-version-etc.c: New file.
12296 * tests/test-version-etc.sh: Likewise.
12298 2009-06-25 Sam Steingold <sds@gnu.org>
12300 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12301 mbtowc declaration.
12303 2009-06-25 Eric Blake <ebb9@byu.net>
12305 fpurge: migrate into <stdio.h>
12306 * lib/fpurge.h: Delete...
12307 * lib/stdio.in.h (fpurge): ...and declare here, instead.
12308 * lib/fpurge.c (fpurge): Change declaring header.
12309 * modules/fpurge (Files): Drop deleted file.
12310 (Depends-on): Add stdio.
12311 (configure.ac): Set witness.
12312 * modules/stdio (Makefile.am): Support fpurge macros.
12313 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12314 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12315 * lib/fflush.c: Update client.
12316 * tests/test-fpurge.c: Likewise.
12317 * NEWS: Mention the change.
12319 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12321 * lib/argp-version-etc.c (program_authors): Add const
12323 * lib/version-etc.c: Fix typos in the comments.
12324 * modules/argp-version-etc: Depends on version-etc.
12326 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12328 argp-version-etc: new module.
12330 * lib/argp-version-etc.c: New file.
12331 * lib/argp-version-etc.h: New file.
12332 * modules/argp-version-etc: New file.
12333 * modules/argp-version-etc-tests: New file.
12334 * tests/test-argp-version-etc.c: New test.
12335 * tests/test-argp-version-etc-1.sh: New test.
12337 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12339 Provide additional interfaces and documentation for version-etc
12342 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12344 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12347 2009-06-24 Bruno Haible <bruno@clisp.org>
12349 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12350 HAVE_LIB${NAME} macro.
12351 Reported by Sam Steingold <sds@gnu.org>.
12353 2009-06-23 Simon Josefsson <simon@josefsson.org>
12355 * modules/hash-tests (test_hash_LDADD): Link to libintl when
12358 2009-06-21 Bruno Haible <bruno@clisp.org>
12360 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12362 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12363 together with LIB${NAME}, LTLIB${NAME}.
12364 Reported by Sam Steingold <sds@gnu.org>.
12366 2009-06-20 Jim Meyering <meyering@redhat.com>
12368 tests: make sc_require_test_exit_idiom more generic
12369 * top/maint.mk (Exit_witness_file): New overridable variable.
12370 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12371 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12373 2009-06-19 Jim Meyering <meyering@redhat.com>
12375 hash: reverse order of src/dst parameters in an internal interface
12376 * lib/hash.c (transfer_entries): Reverse order of parameters to
12377 put DST before SRC. Adjust callers.
12379 tests: test-hash: avoid wholesale duplication
12380 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12381 Instead, use a loop and add a single conditional.
12383 tests: test-hash: allow seed selection via a command line argument
12384 * tests/test-hash.c (get_seed): New function.
12387 2009-06-19 Eric Blake <ebb9@byu.net>
12389 hash: avoid memory leak on allocation failure
12390 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12391 failure. Factor repeated algorithm...
12392 (transfer_entries): ...into new helper routine.
12393 (hash_delete): React to hash_rehash return value.
12395 hash: reduce memory pressure in hash_rehash no-op case
12396 * lib/hash.c (next_prime): Avoid overflow.
12397 (hash_initialize): Factor bucket size computation...
12398 (compute_bucket_size): ...into new helper function.
12399 (hash_rehash): Use new function and open coding to reduce memory
12400 pressure, and avoid a memory leak in USE_OBSTACK code.
12401 Reported by Jim Meyering.
12403 2009-06-18 Eric Blake <ebb9@byu.net>
12405 hash: make rotation more obvious
12406 * modules/hash (Depends-on): Add bitrotate and stdint.
12407 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12408 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12409 (SIZE_MAX): Rely on headers for definition.
12410 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12411 (raw_hasher): Use rotr_sz.
12412 Suggested by Jim Meyering.
12414 hash: fix memory leak in last patch
12415 * lib/hash.c (hash_rehash): Avoid memory leak.
12417 hash: avoid no-op rehashing
12418 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12420 hash: provide default callback functions
12421 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12422 (hash_initialize): Use them as defaults.
12423 * tests/test-hash.c (main): Test this.
12425 hash: minor optimization
12426 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12428 (hash_initialize): Document this promise.
12429 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12430 * tests/test-hash.c (hash_compare_strings): Test this.
12432 2009-06-18 Bruno Haible <bruno@clisp.org>
12434 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12435 going to be replaced anyway.
12437 2009-06-18 Bruno Haible <bruno@clisp.org>
12439 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12441 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12442 be replaced anyway.
12444 2009-06-18 Eric Blake <ebb9@byu.net>
12446 hash: check for resize before insertion
12447 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12448 threshold before insertion, so that a pathological hash_rehash
12449 that fills every bucket can still trigger another rehash.
12451 2009-06-18 Jim Meyering <meyering@redhat.com>
12453 hash-tests: add a loop around the small tests
12454 * tests/test-hash.c (main): Repeat small tests with selected
12455 small initial table sizes.
12457 2009-06-17 Eric Blake <ebb9@byu.net>
12459 hash: minor cleanups
12460 * lib/hash.h (hash_entry): Make opaque, by moving...
12461 * lib/hash.c (hash_entry): ...here.
12462 (hash_insert): Clarify restrictions on what can be inserted.
12463 (hash_get_next): Clarify when it is safe to remove an element
12465 (check_tuning): Skip verification when tuning is known safe.
12466 (hash_initialize): Clarify restrictions on tuning.
12468 2009-06-17 Jim Meyering <jim@meyering.net>
12469 and Eric Blake <ebb9@byu.net>
12471 hash-tests: new module
12472 * modules/hash-tests: New file.
12473 * tests/test-hash.c: New file.
12475 2009-06-17 Eric Blake <ebb9@byu.net>
12477 strstr-simple: document new module
12478 * MODULES.html.sh: Document new module.
12480 strstr, strcasestr: replace on platforms with broken memchr
12481 * modules/strstr: Split into...
12482 * modules/strstr-simple: ...new module that does not care about
12483 performance, but does care about glibc bug.
12484 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12485 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12486 if platform memchr is broken, per Debian bug 521737.
12487 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12489 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12490 * doc/posix-functions/strstr.texi (strstr): Document the fix.
12491 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12492 * modules/mountlist (Depends-on): Add strstr-simple.
12493 * modules/gen-uni-tables (Depends-on): Likewise.
12494 * modules/argz (Depends-on): Add strstr.
12496 2009-06-17 Bruno Haible <bruno@clisp.org>
12498 * modules/posix_spawn-internal (Depends-on): Add errno.
12500 2009-06-17 Bruno Haible <bruno@clisp.org>
12502 Define missing ESTALE on Interix 3.5.
12503 * lib/errno.in.h (ESTALE): Assign a value if missing.
12504 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12505 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12507 * doc/posix-headers/errno.texi: Mention the Interix bug.
12508 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12510 2009-06-15 Eric Blake <ebb9@byu.net>
12512 memchr, memchr2: add valgrind exception
12513 * lib/memchr.valgrind: New file.
12514 * lib/memchr2.valgrind: New file.
12515 * modules/memchr (Files): Distribute valgrind file.
12516 * modules/memchr2 (Files): Likewise.
12518 docs: memchr is no longer obsolete
12519 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12520 * lib/string.in.h (memchr): Simplify logic.
12522 2009-06-14 Jim Meyering <meyering@redhat.com>
12524 link-follow: fix the "checking..." message to not mention trailing slash
12525 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12526 never considered trailing slashes.
12528 2009-06-14 Bruno Haible <bruno@clisp.org>
12530 * m4/memchr.m4: Mention also the bug on IA-64.
12531 * doc/posix-functions/memchr.texi: Likewise.
12533 2009-06-12 Eric Blake <ebb9@byu.net>
12535 memchr: detect broken x86_64 and alpha implementations
12536 * modules/memchr-tests (Depends-on): Move mmap detection...
12537 * modules/memchr (Depends-on): ...here.
12538 (configure.ac): Set indicator.
12539 * lib/string.in.h (memchr): Declare replacement.
12540 * modules/string (Makefile.am): Trigger replacement.
12541 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12542 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12544 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12545 * modules/getpagesize (License): Relax license.
12547 2009-06-11 Bruno Haible <bruno@clisp.org>
12549 * lib/idpriv.h: Add more references.
12551 2009-06-08 Bruno Haible <bruno@clisp.org>
12553 Tests for module 'idpriv-droptemp'.
12554 * modules/idpriv-droptemp-tests: New file.
12555 * tests/test-idpriv-droptemp.sh: New file.
12556 * tests/test-idpriv-droptemp.su.sh: New file.
12557 * tests/test-idpriv-droptemp.c: New file.
12559 New module 'idpriv-droptemp'.
12560 * lib/idpriv-droptemp.c: New file.
12561 * modules/idpriv-droptemp: New file.
12563 2009-06-08 Bruno Haible <bruno@clisp.org>
12565 Tests for module 'idpriv-drop'.
12566 * modules/idpriv-drop-tests: New file.
12567 * tests/test-idpriv-drop.sh: New file.
12568 * tests/test-idpriv-drop.su.sh: New file.
12569 * tests/test-idpriv-drop.c: New file.
12571 New module 'idpriv-drop'.
12572 * lib/idpriv.h: New file.
12573 * lib-idpriv-drop.c: New file.
12574 * m4/idpriv.m4: New file.
12575 * modules/idpriv-drop: New file.
12577 2009-06-08 Bruno Haible <bruno@clisp.org>
12579 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12580 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12581 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12582 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12583 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12584 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12585 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12587 2009-06-08 Eric Blake <ebb9@byu.net>
12589 test-strstr: use memory fence, when possible
12590 * tests/test-strstr.c (main): Use memory fence, in order to be
12591 more likely to trigger Debian bug 521737.
12592 * modules/strstr-tests (Files): Pull in additional files.
12594 memchr: no longer obsolete, for wider field testing
12595 * modules/memchr (Status, Notice): Delete, this module is no
12597 * modules/vasnprintf (Depends-on): Add memchr.
12599 2009-06-07 Jim Meyering <meyering@redhat.com>
12601 hash: declare some functions with the warn_unused_result attribute
12602 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12604 2009-06-07 Bruno Haible <bruno@clisp.org>
12606 * tests/test-alignof.c: Don't test int64_t if it does not exist.
12607 Reported by Eric Blake.
12609 2009-06-06 Eric Blake <ebb9@byu.net>
12611 test-alignof: fix typo with long double
12612 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12615 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
12617 Escape non-texinfo { and }s.
12618 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12621 2009-06-04 Jim Meyering <meyering@redhat.com>
12623 gitlog-to-changelog: don't infloop on an empty commit log
12624 * build-aux/gitlog-to-changelog: Warn about an empty log message.
12625 Reported by Boris Petersen <transacid@centerim.org>.
12627 2009-06-03 Mike Frysinger <vapier@gentoo.org>
12629 version-etc: extend for packagers
12630 Add three new configure options, intended for packagers:
12631 --with-packager="packager name"
12632 --with-packager-version="packager-specific version"
12633 --with-packager-bug-reports="packager bug reporting"
12634 An example with coreutils:
12636 --with-packager=Gentoo \
12637 --with-packager-bug-report=http://bugs.gentoo.org/ \
12638 --with-packager-version="patchset 1.6"
12639 $ ./src/ls --version | head -n2
12640 ls (GNU coreutils) 7.1-dirty
12641 Packaged by Gentoo (patchset 1.6)
12642 Note that the bug reporting info via --help doesn't show up because
12643 coreutils uses its own custom emit_bug_reporting_address() implementation
12644 in src/system.h. If it didn't, it'd look like:
12645 $ ./src/ls --help | tail -n4
12646 Report bugs to <bug-coreutils@gnu.org>.
12647 Report Gentoo bugs to <http://bugs.gentoo.org/>.
12648 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12649 General help using GNU software: <http://www.gnu.org/gethelp/>.
12650 * lib/version-etc.c: Print new information, if provided.
12651 * m4/version-etc.m4: New file.
12652 * modules/version-etc (Files): Add m4/version-etc.m4.
12653 (configure.ac): Add gl_VERSION_ETC.
12655 2009-05-31 Bruno Haible <bruno@clisp.org>
12657 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12659 * modules/alignof-tests (Dependencies): Add stdint.
12660 Reported by Eric Blake.
12662 2009-05-31 Bruno Haible <bruno@clisp.org>
12664 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12665 restriction due to compiler bugs.
12666 Reported by Eric Blake.
12668 2009-05-31 Simon Josefsson <simon@josefsson.org>
12669 Bruno Haible <bruno@clisp.org>
12671 Fix test-alignof failure.
12672 * lib/alignof.h (alignof_slot): New macro.
12673 (alignof_type): New macro, with the same semantics as the previous
12675 (alignof): Alias to alignof_slot.
12676 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12677 check that the results are usable as constant expressions.
12679 2009-05-31 Bruno Haible <bruno@clisp.org>
12681 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12682 * tests/test-memchr.c (main): Check that memchr does not read past the
12683 first occurrence of the byte.
12684 * tests/test-strstr.c (main): Update comment.
12685 Suggested by Eric Blake.
12687 2009-05-30 Bruno Haible <bruno@clisp.org>
12689 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12690 detail how to use dumpbin.
12691 Reported by David Byron <dbyron@dbyron.com>.
12693 2009-06-02 Simon Josefsson <simon@josefsson.org>
12695 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12697 2009-06-02 Simon Josefsson <simon@josefsson.org>
12699 * m4/manywarnings.m4: Add GCC 4.4 warnings.
12701 2009-05-28 Bruno Haible <bruno@clisp.org>
12703 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12706 2009-05-28 Simon Josefsson <simon@josefsson.org>
12708 * gnulib-tool (func_import): Transform license on build-aux/ files too.
12710 2009-05-27 Simon Josefsson <simon@josefsson.org>
12712 * gnulib-tool (sed_transform_main_lib_file)
12713 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12716 2009-05-26 Simon Josefsson <simon@josefsson.org>
12718 * tests/test-strstr.c: Add another self-test.
12719 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12720 strdup. Suggested by Eric Blake <ebb9@byu.net>.
12722 2009-05-23 Bruno Haible <bruno@clisp.org>
12724 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12727 2009-05-21 Bruno Haible <bruno@clisp.org>
12729 Simplify use of mode_t varargs.
12730 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12731 uses 'mode_t' or 'int'.
12732 * lib/openat.c (openat): Likewise.
12733 * lib/open-safer.c (open_safer): Likewise.
12734 * m4/mode_t.m4: New file.
12735 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12736 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12737 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12738 * modules/open (Files): Add m4/mode_t.m4.
12739 * modules/openat (Files): Likewise.
12740 * modules/fcntl-safer (Files): Likewise.
12741 Suggested by Eric Blake.
12743 2009-05-21 Pádraig Brady <P@draigbrady.com>
12745 * doc/glibc-functions/fallocate.texi: New file.
12746 * doc/gnulib.texi: Include it.
12748 2009-05-21 Eric Blake <ebb9@byu.net>
12749 Bruno Haible <bruno@clisp.org>
12751 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12753 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12755 2009-05-21 Eric Blake <ebb9@byu.net>
12756 Bruno Haible <bruno@clisp.org>
12758 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12759 include_next. Fix of 2008-11-20 commit.
12760 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12761 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12762 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12764 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12765 instead of NEXT_MATH_H.
12767 2009-05-21 Bruno Haible <bruno@clisp.org>
12769 Avoid redefinition warnings for SIZE_MAX.
12770 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12771 Reported by Simon Josefsson.
12773 2009-05-21 Bruno Haible <bruno@clisp.org>
12775 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12778 2009-05-20 Bruno Haible <bruno@clisp.org>
12780 Make zeroptr.h work on mingw.
12781 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12783 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12784 * modules/memchr2-tests (configure.ac): Likewise.
12785 * modules/memcmp-tests (configure.ac): Likewise.
12786 * modules/memmem-tests (configure.ac): Likewise.
12787 * modules/memrchr-tests (configure.ac): Likewise.
12788 Reported by Simon Josefsson.
12790 2009-05-20 Simon Josefsson <simon@josefsson.org>
12792 * tests/test-glob.c: Include string.h for strcmp prototype.
12794 2009-05-20 Simon Josefsson <simon@josefsson.org>
12796 * modules/getdelim (Depends-on): Add explicit stdint, although it
12797 was implicitly already pulled in via realloc-posix.
12798 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12800 2009-05-20 Simon Josefsson <simon@josefsson.org>
12802 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
12803 G. Christensen" <tgc@jupiterrise.com>.
12804 * m4/sys_socket_h.m4: Check for sa_family_t.
12805 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12806 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12807 * tests/test-sys_socket.c: Check that sa_family_t works.
12809 2009-05-18 Eric Blake <ebb9@byu.net>
12811 maint.mk: allow gnulib_dir in VPATH build
12812 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12814 2009-05-15 Jim Meyering <meyering@redhat.com>
12816 maint.mk: Give gnulib_dir a default definition.
12817 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12818 Thus, most packages no longer need to specify this variable in cfg.mk
12820 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
12822 rename.m4: fix typos that would make non-mingw cross-configure fail
12823 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12825 2009-05-13 Eric Blake <ebb9@byu.net>
12827 mmap-anon: avoid out-of-order autoconf expansion
12828 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12829 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12830 * modules/memchr-tests (Depends-on): Add extensions.
12831 * modules/memchr2-tests (Depends-on): Add extensions.
12832 * modules/memcmp-tests (Depends-on): Add extensions.
12833 * modules/memmem-tests (Depends-on): Add extensions.
12834 * modules/memrchr-tests (Depends-on): Add extensions.
12836 2009-05-13 Bruno Haible <bruno@clisp.org>
12838 Make some tests ISO C 99 compliant.
12839 * tests/zerosize-ptr.h: New file.
12840 * tests/test-memchr.c: Include zerosize-ptr.h.
12841 (main): Use a zero-size object pointer instead of NULL.
12842 * tests/test-memchr2.c: Include zerosize-ptr.h.
12843 (main): Use a zero-size object pointer instead of NULL.
12844 * tests/test-memcmp.c: Include zerosize-ptr.h.
12845 (main): Use a zero-size object pointer instead of NULL.
12846 * tests/test-memmem.c: Include zerosize-ptr.h.
12847 (main): Use a zero-size object pointer instead of NULL.
12848 * tests/test-memrchr.c: Include zerosize-ptr.h.
12849 (main): Use a zero-size object pointer instead of NULL.
12850 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12852 (Depends-on): Add getpagesize.
12853 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12854 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12856 (Depends-on): Add getpagesize.
12857 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12858 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12860 (Depends-on): Add getpagesize.
12861 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12862 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12864 (Depends-on): Add getpagesize.
12865 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12866 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12868 (Depends-on): Add getpagesize.
12869 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12871 2009-05-12 Bruno Haible <bruno@clisp.org>
12873 Tests for module 'alignof'.
12874 * modules/alignof-tests: New file.
12875 * tests/test-alignof.c: New file.
12877 2009-05-12 Bruno Haible <bruno@clisp.org>
12880 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12881 vendor compilers that are always correct.
12883 2009-05-12 Bruno Haible <bruno@clisp.org>
12885 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12886 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12887 not whether its fully works.
12889 2009-05-12 Bruno Haible <bruno@clisp.org>
12891 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12893 2009-05-12 Jim Meyering <meyering@redhat.com>
12895 * top/maint.mk: Adjust backslash alignment.
12897 2009-05-11 Simon Josefsson <simon@josefsson.org>
12899 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12901 2009-05-11 Eric Blake <ebb9@byu.net>
12903 argp: avoid undefined behavior
12904 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12907 2009-05-08 Simon Josefsson <simon@josefsson.org>
12909 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12910 user.name to prevent git commit from complaining.
12912 2009-05-10 Bruno Haible <bruno@clisp.org>
12914 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12915 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12916 it rewrites every file name only once.
12917 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12919 2009-05-08 Bruno Haible <bruno@clisp.org>
12921 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12924 2009-05-08 Simon Josefsson <simon@josefsson.org>
12926 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12927 sockaddr_storage test.
12929 2009-05-07 Simon Josefsson <simon@josefsson.org>
12931 * modules/sys_socket (Makefile.am): Substitute
12932 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12933 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12934 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12935 * tests/test-sys_socket.c: Check sockaddr_storage.
12937 2009-05-08 Bruno Haible <bruno@clisp.org>
12939 New module 'alignof'.
12940 * lib/alignof.h: New file.
12941 * modules/alignof: New file.
12943 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12944 Bruno Haible <bruno@clisp.org>
12946 Fix test-file-has-acl on FreeBSD.
12947 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12948 mask is implicitly added.
12949 * tests/test-file-has-acl.c: Include <signal.h>.
12950 (main): Terminate the test after 5 seconds.
12951 * modules/acl-tests (configure.ac): Check for alarm function.
12953 2009-05-04 Bruno Haible <bruno@clisp.org>
12955 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12956 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12957 * modules/errno (configure.ac): Drop AC_REQUIRE.
12958 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12959 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12961 2009-05-04 Simon Josefsson <simon@josefsson.org>
12963 * modules/glob-tests: New module.
12964 * tests/test-glob.c: Add.
12966 2009-05-04 Simon Josefsson <simon@josefsson.org>
12968 * modules/fnmatch-tests: New module.
12969 * tests/test-fnmatch.c: Add.
12971 2009-05-04 Eric Blake <ebb9@byu.net>
12973 maint: make the new no-submodule-changes rule VPATH-safe
12974 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12976 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12977 Bruno Haible <bruno@clisp.org>
12979 acl: Fix infinite loop on FreeBSD.
12980 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12981 of return value from acl_get_entry.
12982 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12985 2009-05-03 Bruno Haible <bruno@clisp.org>
12987 * lib/acl-internal.h (acl_entries): Clarify return value.
12988 * lib/acl_entries.c (acl_entries): Likewise.
12990 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12992 Bug fix in acl module.
12993 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12995 2009-05-03 Bruno Haible <bruno@clisp.org>
12997 Create gperf-generated file in the source dir, not in the build dir.
12998 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12999 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13000 * modules/unicase/locale-language (unicase/locale-languages.h):
13002 * modules/unicase/special-casing (unicase/special-casing-table.h):
13004 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13005 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13006 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13007 Reported by Ralf Wildenhues.
13009 2009-05-03 Bruno Haible <bruno@clisp.org>
13011 * modules/fnmatch (Description, configure.ac): Taken from
13013 * modules/fnmatch-posix: Turn into a symbolic reference to the
13014 'fnmatch' module, and deprecate.
13015 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13017 2009-05-03 Bruno Haible <bruno@clisp.org>
13019 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13020 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13021 Reported by Ralf Wildenhues.
13023 2009-05-04 Simon Josefsson <simon@josefsson.org>
13025 * m4/fnmatch.m4: Fix fnmatch re-define.
13027 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
13029 priv-set: new module and tests; adapt write-any-file
13030 * lib/priv-set.c: New file.
13031 * lib/priv-set.h: New file.
13032 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13033 * lib/write-any-file.c: Simplify by using priv-set module.
13034 * m4/priv-set.m4: New file.
13035 * modules/priv-set: New file.
13036 * modules/unlinkdir: Add dependency on priv-set module.
13037 * modules/write-any-file: Likewise.
13039 Tests for module 'priv-set'.
13040 * modules/priv-set-tests: New file.
13041 * tests/test-priv-set.c: New file.
13043 2009-05-03 Jim Meyering <meyering@redhat.com>
13044 Bruno Haible <bruno@clisp.org>
13046 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13047 use the converted UTF-8 variant of the name instead.
13049 2009-05-03 Jim Meyering <meyering@redhat.com>
13051 tests: tighten some getdate tests
13052 * tests/test-getdate.c (main): Tighten tests: require equality,
13053 not just greater than. Set TZ envvar to UTC0.
13055 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
13057 getdate: correctly interpret "next monday" when run on a Monday
13058 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13059 that e.g., "next tues" (when run on a tuesday) results in a date
13060 that is one week in the future, and not today's date.
13061 I.e., add a week when the wday is the same as the current one.
13062 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13063 and earlier by Martin Bernreuther and Jan Minář.
13064 * tests/test-getdate.c (main): Check that "next DAY" is always in
13065 the future and that "last DAY" is always in the past.
13067 2009-05-02 Jim Meyering <meyering@redhat.com>
13069 build: ensure that a release build fails when a submodule is unclean
13070 * top/maint.mk (no-submodule-changes): New rule.
13071 (alpha beta major): Depend on it.
13073 2009-05-02 Bruno Haible <bruno@clisp.org>
13075 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13076 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13077 shell variable gl_fnmatch_required to detect which variant is
13079 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13080 gl_FUNC_FNMATCH_POSIX.
13081 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13082 exclude fnmatch-posix.
13084 2009-05-02 Bruno Haible <bruno@clisp.org>
13086 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13087 * modules/mbsrtowcs (License): Change to LGPLv2+.
13088 * modules/strnlen1 (License): Likewise.
13089 Reported by Simon Josefsson.
13091 2009-05-02 Bruno Haible <bruno@clisp.org>
13093 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13095 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13096 gnulib-tool was called with option --source-base=lib.
13098 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13100 Use automake *-local hooks without commands, for extensibility.
13101 * modules/localcharset (Makefile.am): Rename install-exec-local
13102 rule to install-exec-localcharset, and make it a prerequisite of
13103 install-exec-local. Likewise, rename the uninstall-local rule to
13104 uninstall-localcharset, and make it a prerequisite of the former.
13106 2009-05-01 Bruno Haible <bruno@clisp.org>
13108 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13109 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13110 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13111 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13112 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13113 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13114 m4/locale-zh.m4, m4/codeset.m4.
13116 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13117 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13118 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13121 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13122 REPLACE_WCRTOMB if mbstate_t must be replaced.
13123 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13124 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13126 2009-05-01 Bruno Haible <bruno@clisp.org>
13128 Avoid compiler warnings when redefining macros defined by <libintl.h>.
13129 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13130 dngettext, dcngettext, textdomain, bindtextdomain,
13131 bind_textdomain_codeset): Undefine before redefining.
13133 2009-04-30 Bruno Haible <bruno@clisp.org>
13135 Fix bug introduced on 2009-04-25.
13136 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13137 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13138 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13140 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13142 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13144 Reported by Elbert_Pol <elbert.pol@gmail.com>.
13146 2009-04-28 Bruno Haible <bruno@clisp.org>
13149 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13150 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13151 * lib/unicase.h (u*_casexfrm): Likewise.
13152 Reported by Paolo Bonzini.
13154 2009-04-28 Bruno Haible <bruno@clisp.org>
13156 Fix a compilation error.
13157 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13158 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13159 Reported by Jim Meyering.
13161 2009-04-27 Bruno Haible <bruno@clisp.org>
13163 New module 'libunistring'.
13164 * modules/libunistring: New file.
13165 * m4/libunistring.m4: New file.
13166 * MODULES.html.sh (Unicode string functions): Add it.
13168 2009-04-27 Eric Blake <ebb9@byu.net>
13170 maint.mk: allow package-specific header to provide <config.h>
13171 * top/maint.mk (sc_require_config_h): New variable.
13172 (sc_require_config_h, sc_require_config_h_first): Use it.
13174 2009-04-27 Simon Josefsson <simon@josefsson.org>
13176 * top/maint.mk (sc_avoid_if_before_free): Except
13177 useless-if-before-free script.
13179 2009-04-27 Eric Blake <ebb9@byu.net>
13181 maintainer-makefile: depend on all required helper scripts
13182 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13183 useless-if-before-free.
13184 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13185 version, rather than assuming gnulib checkout is available.
13186 Reported by Simen Josefsson.
13188 2009-04-26 Bruno Haible <bruno@clisp.org>
13190 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13191 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13194 2009-04-26 Bruno Haible <bruno@clisp.org>
13196 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13197 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13198 AC_LIB_HAVE_LINKFLAGS.
13200 2009-04-26 Bruno Haible <bruno@clisp.org>
13202 Simplify calling convention of u*_conv_from_encoding.
13203 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13204 u32_conv_from_encoding): Expect a resultbuf argument and return the
13205 result directly as a pointer.
13206 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13207 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13208 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13209 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13210 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13211 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13213 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13214 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13215 * lib/vasnprintf.c (VASNPRINTF): Update.
13216 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13217 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13218 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13219 * NEWS: Mention the change.
13221 2009-04-26 Bruno Haible <bruno@clisp.org>
13223 Simplify calling convention of u*_conv_to_encoding.
13224 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13225 u32_conv_to_encoding): Expect a resultbuf argument and return the
13226 result directly as a pointer.
13227 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13228 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13229 freeing scaled_offsets if mem_iconveha failed.
13230 * lib/unicase/u-casexfrm.h (FUNC): Update.
13231 * lib/uninorm/u-normxfrm.h (FUNC): Update.
13232 * lib/vasnprintf.c (VASNPRINTF): Update.
13233 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13234 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13235 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13236 * NEWS: Mention the change.
13238 2009-04-26 Bruno Haible <bruno@clisp.org>
13240 Avoid test failures on AIX and OSF/1.
13241 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13243 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13244 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13246 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13247 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13248 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13249 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13250 * doc/posix-functions/malloc.texi: Document the portability problem
13251 related to malloc(0).
13253 2009-04-26 Bruno Haible <bruno@clisp.org>
13255 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13256 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13257 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13259 2009-04-25 Bruno Haible <bruno@clisp.org>
13261 Avoid link error when creating a namespace clean library.
13262 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13263 as macro with arguments if already defined as an alias.
13264 * lib/signbitf.c (gl_signbitf): Don't undefine.
13265 * lib/signbitd.c (gl_signbitd): Don't undefine.
13266 * lib/signbitl.c (gl_signbitl): Don't undefine.
13268 2009-04-25 Jim Meyering <meyering@redhat.com>
13270 vc-list-files: fix another quoting bug
13271 * build-aux/vc-list-files: Avoid sed backslash expansion
13272 of pathological directory names.
13274 2009-04-25 Eric Blake <ebb9@byu.net>
13276 vc-list-files: fix shell quoting error
13277 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
13280 2009-04-25 Jim Meyering <meyering@redhat.com>
13282 vc-list-files: restore lost functionality with subdir argument
13283 * build-aux/vc-list-files: When given a non-"." sub-directory
13284 argument, substitute the $dir/ prefix back onto each resulting name.
13285 Otherwise, coreutils' root_tests check would fail.
13287 2009-04-24 Eric Blake <ebb9@byu.net>
13289 vc-list-files: ignore git symlinks
13290 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13291 than ls-files, to ignore git symlinks.
13293 maint.mk: import improvements from m4
13294 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13295 (move_if_change): Delete unused macro.
13296 (news-date-check, vc-diff-check): Support VPATH builds.
13297 (announcement): Likewise. Split --bootstrap-tools list...
13298 (boostrap-tools): ...into separate list, which can be overridden
13300 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13301 requiring dependency on useless-if-before-free module.
13302 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13303 Support VPATH builds.
13305 2009-04-24 Jim Meyering <meyering@redhat.com>
13307 maint.mk: remove coreutils-specific rules and variables
13308 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13309 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13310 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13312 maint.mk: remove obsolete rule
13313 * top/maint.mk (rel-check): Remove rule.
13314 (WGET, WGETFLAGS): Remove now-unused variables.
13316 2009-04-24 Simon Josefsson <simon@josefsson.org>
13318 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13321 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13322 '$(PATH_SEPARATOR)' instead of ':'.
13324 2009-04-24 Simon Josefsson <simon@josefsson.org>
13326 * lib/getopt1.c (main): Use 'const' for static array.
13328 2009-04-24 Simon Josefsson <simon@josefsson.org>
13330 * top/maint.mk: Sync with coreutils.
13331 * NEWS: Explain incompatibilities.
13333 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13334 Bruno Haible <bruno@clisp.org>
13336 Fix cross-compilation results.
13337 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13338 statement, as third argument of AC_TRY_RUN.
13339 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13340 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13342 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13343 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13345 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13346 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13347 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13349 2009-04-20 Bruno Haible <bruno@clisp.org>
13351 Avoid test failure on mingw.
13352 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13354 2009-04-20 Bruno Haible <bruno@clisp.org>
13356 Avoid compilation error on mingw.
13357 * modules/localename-tests (Depends-on): Add locale.
13359 2009-04-19 Bruno Haible <bruno@clisp.org>
13361 Support for building a shared library on Windows platforms.
13362 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13363 (main): Test the presence of UNINORM_NFC here.
13364 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13365 (main): Test the presence of UNINORM_NFD here.
13366 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13367 (main): Test the presence of UNINORM_NFKC here.
13368 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13369 (main): Test the presence of UNINORM_NFKD here.
13371 2009-04-19 Bruno Haible <bruno@clisp.org>
13373 Avoid a compiler warning.
13374 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13375 Change type of variable 'sequence'.
13377 2009-04-19 Bruno Haible <bruno@clisp.org>
13379 * modules/configmake (Makefile.am): When the contents of configmake.h
13380 does not change, arrange to preserve its modification time.
13382 2009-04-17 Simon Josefsson <simon@josefsson.org>
13384 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13387 2009-04-16 Jim Meyering <meyering@redhat.com>
13389 useless-if-before-free: improve conversion code
13390 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13391 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13393 2009-04-14 Bruno Haible <bruno@clisp.org>
13395 * modules/fcntl (Depends-on): Add extensions.
13396 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13398 2009-04-12 Ben Pfaff <blp@gnu.org>
13400 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13401 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13403 2009-03-20 Ben Pfaff <blp@gnu.org>
13405 Make rename replace existing destinations on Windows.
13406 * m4/rename.m4: Add test for Mingw.
13407 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13408 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13409 * doc/posix-functions/rename.texi: Document.
13411 2009-04-10 Bruno Haible <bruno@clisp.org>
13413 New include file "iconveh.h".
13414 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13415 * lib/striconveh.h: Include it.
13416 (enum iconv_ilseq_handler): Remove definition.
13417 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13419 * lib/striconveha.c: Include striconveh.h.
13420 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13421 * modules/striconveh (Files): Add lib/iconveh.h.
13422 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13425 2009-04-10 Bruno Haible <bruno@clisp.org>
13427 * lib/uniconv.h: Update comment.
13429 2009-04-10 Bruno Haible <bruno@clisp.org>
13431 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13433 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13434 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13435 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13436 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13437 "unistring-notinline.h", so that the function gets defined always.
13438 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13439 * lib/unistr/u8-uctomb.c: Likewise.
13440 * lib/unistr/u16-mbtouc.c: Likewise.
13441 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13442 * lib/unistr/u16-uctomb.c: Likewise.
13443 * lib/unistr/u32-mbtouc.c: Likewise.
13444 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13445 * lib/unistr/u32-uctomb.c: Likewise.
13447 2009-04-10 Bruno Haible <bruno@clisp.org>
13449 Mark 'utime' obsolete.
13450 * modules/utime (Status, Notice): New sections.
13451 Suggested by Jim Meyering.
13453 Fix cross-compile guess for utime test.
13454 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13456 * doc/posix-functions/utime.texi: Give more precisions.
13457 Reported by Jan <ipif@ymail.com>.
13459 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13461 filevercmp: correct today's change
13462 * lib/filevercmp.c: Also handle coreutils' test inputs.
13463 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13465 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13467 * lib/filevercmp.c: Special handle for "", "." and "..".
13468 * tests/test-filevercmp.c: Enlarge the set suite.
13470 2009-04-07 Jim Meyering <meyering@redhat.com>
13472 useless-if-before-free: show how to remove braced useless free, too
13473 * build-aux/useless-if-before-free: still only in a comment, though.
13475 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13477 maint.mk: import changes to syntax-check macros from coreutils
13478 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13479 Use them in the relevant macros.
13481 2009-04-06 Bruno Haible <bruno@clisp.org>
13483 Fix unportable use of bit-fields.
13484 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13485 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13486 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13488 2009-04-06 Bruno Haible <bruno@clisp.org>
13490 Avoid test failures on AIX and OSF/1.
13491 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13492 that malloc(0) = NULL.
13493 * tests/unicase/test-u8-tolower.c (check): Likewise.
13494 * tests/unicase/test-u8-totitle.c (check): Likewise.
13495 * tests/unicase/test-u8-toupper.c (check): Likewise.
13496 * tests/unicase/test-u16-casefold.c (check): Likewise.
13497 * tests/unicase/test-u16-tolower.c (check): Likewise.
13498 * tests/unicase/test-u16-totitle.c (check): Likewise.
13499 * tests/unicase/test-u16-toupper.c (check): Likewise.
13500 * tests/unicase/test-u32-casefold.c (check): Likewise.
13501 * tests/unicase/test-u32-tolower.c (check): Likewise.
13502 * tests/unicase/test-u32-totitle.c (check): Likewise.
13503 * tests/unicase/test-u32-toupper.c (check): Likewise.
13504 * tests/uninorm/test-u8-nfc.c (check): Likewise.
13505 * tests/uninorm/test-u8-nfd.c (check): Likewise.
13506 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13507 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13508 * tests/uninorm/test-u16-nfc.c (check): Likewise.
13509 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13510 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13511 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13512 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13513 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13514 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13515 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13517 2009-04-05 Bruno Haible <bruno@clisp.org>
13519 Work around an autoconf limitation.
13520 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13521 comment line if it would be longer than 3 KB.
13523 2009-04-05 Bruno Haible <bruno@clisp.org>
13525 Avoid test failure with libiconv-1.13.
13526 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13527 of the expected test results.
13529 2009-04-05 Bruno Haible <bruno@clisp.org>
13531 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13532 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13533 that it should be installed.
13535 2009-04-05 Bruno Haible <bruno@clisp.org>
13537 * gnulib-tool: New option --copy-file.
13538 (func_usage): Document it.
13539 (func_dest_tmpfilename): Moved out of func_import.
13540 (func_add_file, func_update_file): New functions, extracted from
13542 (func_import): Update.
13544 2009-04-05 Karl Berry <karl@gnu.org>
13546 * README: prominently mention gnulib-tool.
13547 Rearrange sections so getting the code is near the top.
13549 2009-04-05 Bruno Haible <bruno@clisp.org>
13551 * lib/unicase.h: Mention u*_cmp2.
13552 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13553 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13554 * lib/unicase/ulc-casecmp.c: Likewise.
13555 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13556 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13557 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13559 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13560 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13562 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13565 * lib/uninorm.h: Mention u*_cmp2.
13566 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13567 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13568 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13569 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13570 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13572 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13574 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13577 New module 'unistr/u32-cmp2'.
13578 * lib/unistr/u32-cmp2.c: New file.
13579 * modules/unistr/u32-cmp2: New file.
13581 New module 'unistr/u16-cmp2'.
13582 * lib/unistr/u16-cmp2.c: New file.
13583 * modules/unistr/u16-cmp2: New file.
13585 New module 'unistr/u8-cmp2'.
13586 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13587 * lib/unistr/u8-cmp2.c: New file.
13588 * lib/unistr/u-cmp2.h: New file.
13589 * modules/unistr/u8-cmp2: New file.
13591 2009-04-05 Bruno Haible <bruno@clisp.org>
13593 * lib/unictype.h (uc_property_is_valid): New macro.
13594 * tests/unictype/test-pr_byname.c (main): Use it.
13596 * lib/unistr.h: Doc fixes.
13597 * lib/uniconv.h: Doc fixes.
13598 * lib/unictype.h: Doc fixes.
13600 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
13602 Port coreutils 7.2 to Solaris 8.
13604 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13605 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13606 for Solaris 8. This is a bit of a hack, as it means it's the
13607 caller's responsibility to add -lnsl if needed, but most likely it
13608 won't be needed since only getaddrinfo uses this and getaddrinfo
13609 isn't needed on Solaris 8.
13611 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13612 problem to Solaris 8 encountered with coreutils 7.2, which
13613 resulted in a message "fnmatch.c:292: warning: passing argument 4
13614 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
13615 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13617 2009-04-03 Simon Josefsson <simon@josefsson.org>
13619 * m4/ld-version-script.m4: Add FIXME comment.
13621 2009-04-02 Simon Josefsson <simon@josefsson.org>
13623 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13624 SOVERSION variable.
13626 2009-04-02 Bruno Haible <bruno@clisp.org>
13628 * Makefile (info, html, dvi, pdf): Combine the rules.
13629 Suggested by Jim Meyering.
13631 2009-04-01 Bruno Haible <bruno@clisp.org>
13633 * Makefile (info, html, dvi, pdf): New targets.
13634 Reported by Reuben Thomas <rrt@sc3d.org>.
13636 2009-04-01 Bruno Haible <bruno@clisp.org>
13638 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13639 can be put into PATH.
13640 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13642 2009-04-01 Bruno Haible <bruno@clisp.org>
13644 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13646 2009-04-01 Bruno Haible <bruno@clisp.org>
13648 Rename module 'visibility'.
13649 * modules/lib-symbol-visibility: Renamed from modules/visibility.
13650 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13651 * doc/gnulib.texi: Update.
13652 * MODULES.html.sh (Misc): Update.
13653 * NEWS: Mention the change.
13655 2009-04-01 Simon Josefsson <simon@josefsson.org>
13657 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
13658 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13659 Eric Blake <ebb9@byu.net> for review.
13660 * MODULES.html.sh: Add lib-msvc-compat.
13661 * doc/gnulib.texi: Link to new section.
13662 * m4/ld-output-def.m4: New file.
13663 * doc/ld-output-def.texi: New file.
13665 2009-04-01 Simon Josefsson <simon@josefsson.org>
13667 Rename ld-version-script to lib-symbol-versions. Suggested by
13668 Bruno Haible <bruno@clisp.org>.
13669 * modules/ld-version-script: Renamed to lib-symbol-versions.
13670 * doc/ld-version-script.texi: Fix module name.
13671 * MODULES.html.sh: Add lib-symbol-versions.
13673 2009-03-31 Simon Josefsson <simon@josefsson.org>
13675 * modules/u64-tests: New file.
13676 * tests/test-u64.c: New file.
13678 2009-03-04 Simon Josefsson <simon@josefsson.org>
13680 * MODULES.html.sh: Mention u64.
13681 * modules/u64: New module.
13682 * modules/crypto/sha512: Depend on u64 module instead of providing
13685 2009-03-27 Eric Blake <ebb9@byu.net>
13687 test-strerror: make debugging EAI_SYSTEM easier
13688 * modules/getaddrinfo-tests (Depends-on): Add strerror.
13689 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13690 failure was EAI_SYSTEM.
13692 2009-03-25 Bruno Haible <bruno@clisp.org>
13694 Fix a problem with --enable-relocatable on Solaris 7.
13695 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13698 2009-03-25 Eric Blake <ebb9@byu.net>
13700 test-sockets: avoid gcc warning
13701 * tests/test-sockets.c (main): Silence compiler warning.
13703 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
13705 New modules nproc, pthread, contributed by Glen Lenker.
13707 * MODULES.html.sh: Add pthread, nproc.
13708 * lib/nproc.c: New file.
13709 * lib/nproc.h: New file.
13710 * lib/pthread.in.h: New file.
13711 * m4/pthread.m4: New file.
13712 * modules/nproc: New file.
13713 * modules/pthread: New file.
13715 2009-03-24 Simon Josefsson <simon@josefsson.org>
13717 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13720 2009-03-24 Kamil Dudka <kdudka@redhat.com>
13722 filevercmp: handle simple~ and numbered.~3~ backup suffixes
13723 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13724 * tests/test-filevercmp.c: Add tests for backup suffixes.
13726 2009-03-24 Simon Josefsson <simon@josefsson.org>
13728 * modules/stdlib (Depends-on): Add stdint, needed when defining
13729 struct random_data on, for example, HP-UX 10.20. Reported by
13730 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13732 2009-03-24 Simon Josefsson <simon@josefsson.org>
13734 * lib/readline.c (readline): Call fflush on stdout after printing
13737 2009-03-20 Bruno Haible <bruno@clisp.org>
13739 Remove dependency from 'close' module to -lws2_32 on native Windows.
13740 * lib/close-hook.h: New file.
13741 * lib/close-hook.c: New file.
13742 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13744 (_gl_close_fd_maybe_socket): Remove function.
13745 (rpl_close): Invoke execute_all_close_hooks instead of
13746 _gl_close_fd_maybe_socket.
13747 * lib/sockets.c: Include close-hook.h, w32sock.h.
13748 (close_fd_maybe_socket): New function, essentially from lib/close.c.
13749 (close_sockets_hook): New variable.
13750 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13751 (gl_sockets_cleanup): Unregister it.
13752 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13753 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13754 * modules/close-hook: New file.
13755 * modules/close (Files): Remove lib/w32sock.h.
13756 (Depends-on): Add close-hook.
13757 (Link): Remove section.
13758 * modules/sockets (Files): Add lib/w32sock.h.
13759 (Depends-on): Add close-hook.
13760 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13762 * NEWS: Mention that LIB_CLOSE is gone.
13764 2009-03-23 Eric Blake <ebb9@byu.net>
13766 signal-tests: test previous patch
13767 * tests/test-signal.c: New file.
13768 * modules/signal-tests: Likewise.
13770 signal.h: always support 'volatile sig_atomic_t'
13771 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13772 (gl_SIGNAL_H_DEFAULTS): Add a default.
13773 * modules/signal (Makefile.am): Substitute if needed.
13774 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13775 users can blindly add volatile.
13776 * doc/posix-headers/signal.texi (signal.h): Document it.
13777 Reported by Matthew Woehlke.
13779 2009-03-23 Jim Meyering <meyering@redhat.com>
13781 pathmax: PATH_MAX: use pathconf only when available
13782 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13783 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
13784 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13785 This avoids a link failure in a PSP cross-compilation environment
13786 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13788 * lib/vasnprintf.c (divide): Fix typo in comment.
13790 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13792 * gnulib-tool (func_filter_filelist): Fix comment.
13794 2009-03-20 Bruno Haible <bruno@clisp.org>
13796 Make sockets.h self-contained.
13797 * lib/sockets.c: Include sockets.h first.
13798 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13800 2009-03-19 Eric Blake <ebb9@byu.net>
13802 doc: mention more functions added in cygwin 1.7.0
13803 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13805 * doc/posix-functions/log2f.texi: Likewise.
13807 2009-03-19 Jim Meyering <meyering@redhat.com>
13809 fsusage: avoid syntax error due to statement-before-declaration
13810 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13811 after all declarations. Reported by Matthew Woehlke in
13812 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13814 2009-03-18 Eric Blake <ebb9@byu.net>
13816 build-aux/compile: sync from automake
13817 * build-aux/compile: New file, from automake.
13818 * config/srclist.txt: Mention build-aux/compile.
13820 2009-03-17 Bruno Haible <bruno@clisp.org>
13822 * lib/git-merge-changelog.c: Fix typo in comment.
13823 Reported by Reuben Thomas <rrt@sc3d.org>.
13825 2009-03-17 Reuben Thomas <rrt@sc3d.org>
13827 * m4/regex.m4: update and improve help for
13828 --without-included-regex.
13830 2009-03-17 Simon Josefsson <simon@josefsson.org>
13832 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13833 failure on missing include files.
13835 2009-03-17 Eric Blake <ebb9@byu.net>
13837 doc: mention more functions added in cygwin 1.7.0
13838 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13840 * doc/posix-functions/fwscanf.texi: Likewise.
13841 * doc/posix-functions/swprintf.texi: Likewise.
13842 * doc/posix-functions/swscanf.texi: Likewise.
13843 * doc/posix-functions/vfwprintf.texi: Likewise.
13844 * doc/posix-functions/vfwscanf.texi: Likewise.
13845 * doc/posix-functions/vswprintf.texi: Likewise.
13846 * doc/posix-functions/vswscanf.texi: Likewise.
13847 * doc/posix-functions/vwprintf.texi: Likewise.
13848 * doc/posix-functions/vwscanf.texi: Likewise.
13849 * doc/posix-functions/wcscasecmp.texi: Likewise.
13850 * doc/posix-functions/wcsdup.texi: Likewise.
13851 * doc/posix-functions/wcsftime.texi: Likewise.
13852 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13853 * doc/posix-functions/wprintf.texi: Likewise.
13854 * doc/posix-functions/wscanf.texi: Likewise.
13855 * doc/glibc-functions/gethostbyname2.texi: Likewise.
13857 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13859 maint.mk: really add $(AM_MAKEFLAGS)
13860 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13861 was inadvertently omitted in the last commit.
13862 Spotted by Bruno Haible.
13864 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13865 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13866 $(AM_MAKEFLAGS)' rather than plain `make'.
13868 gnulib-tool: execute $MAKE not make
13869 * gnulib-tool: Default $MAKE to 'make'.
13870 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13871 than make. Initialize $MAKE in the do-autobuild script.
13873 gnulib-tool: use $MAKE not make in generated files
13874 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13875 make, in generated files. Initialize $MAKE in the do-autobuild
13878 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13880 GNUmakefile: disable parallelism only for multiple, recursive targets
13881 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13882 additions in the Makefile.
13883 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13885 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13886 are listed on the command line and at least one of them is
13887 listed in $(ALL_RECURSIVE_TARGETS).
13889 2009-03-14 Bruno Haible <bruno@clisp.org>
13891 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13892 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13893 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13894 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13895 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13896 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13897 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13899 * modules/unistr/u8-strchr (Depends-on): Likewise.
13900 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13901 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13903 * modules/unistr/u16-strchr (Depends-on): Likewise.
13904 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13906 2009-03-12 Bruno Haible <bruno@clisp.org>
13908 Work around select() bug on Interix 3.5.
13909 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13910 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13911 * m4/select.m4: New file.
13912 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13913 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13914 * modules/select (Files): Add m4/select.m4.
13915 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13916 * modules/nanosleep (Depends-on): Add select.
13917 * modules/poll (Depends-on): Likewise.
13918 * doc/posix-functions/select.texi: Mention the Interix bug.
13919 Reported by Markus Duft <mduft@gentoo.org>.
13921 * lib/select.c: Renamed from lib/winsock-select.c.
13922 * modules/select (Files): Add lib/select.c, remove
13923 lib/winsock-select.c.
13924 (configure.ac): Update.
13926 2009-03-12 Jim Meyering <meyering@redhat.com>
13928 avoid gcc warnings about unused macro definitions
13929 * lib/readtokens.c (STREQ): Remove unused definition.
13930 * lib/xmalloc.c (SIZE_MAX): Likewise.
13931 * lib/openat-die.c (N_): Likewise.
13932 * lib/mountlist.c (SIZE_MAX): Remove definition.
13933 Instead, include <stdint.h>.
13934 * lib/readutmp.c: Likewise.
13935 * modules/readutmp (Depends-on): Add stdint.
13936 * modules/mountlist (Depends-on): Add stdint.
13937 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13939 2009-03-10 Bruno Haible <bruno@clisp.org>
13941 Tests for module 'mbmemcasecoll'.
13942 * modules/mbmemcasecoll-tests: New file.
13943 * tests/test-mbmemcasecoll1.sh: New file.
13944 * tests/test-mbmemcasecoll2.sh: New file.
13945 * tests/test-mbmemcasecoll3.sh: New file.
13946 * tests/test-mbmemcasecoll.c: New file.
13948 New module 'mbmemcasecoll'.
13949 * lib/mbmemcasecoll.h: New file.
13950 * lib/mbmemcasecoll.c: New file.
13951 * modules/mbmemcasecoll: New file.
13953 * tests/test-mbmemcasecmp.h: New file, extracted from
13954 tests/test-mbmemcasecmp.c.
13955 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13956 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13958 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13960 2009-03-09 Bruno Haible <bruno@clisp.org>
13962 Tests for module 'mbmemcasecmp'.
13963 * modules/mbmemcasecmp-tests: New file.
13964 * tests/test-mbmemcasecmp1.sh: New file.
13965 * tests/test-mbmemcasecmp2.sh: New file.
13966 * tests/test-mbmemcasecmp3.sh: New file.
13967 * tests/test-mbmemcasecmp.c: New file.
13969 New module 'mbmemcasecmp'.
13970 * lib/mbmemcasecmp.h: New file.
13971 * lib/mbmemcasecmp.c: New file.
13972 * modules/mbmemcasecmp: New file.
13974 2009-03-09 Bruno Haible <bruno@clisp.org>
13976 Tests for module 'unicase/ulc-casecoll'.
13977 * modules/unicase/ulc-casecoll-tests: New file.
13978 * tests/unicase/test-ulc-casecoll1.sh: New file.
13979 * tests/unicase/test-ulc-casecoll2.sh: New file.
13980 * tests/unicase/test-ulc-casecoll.c: New file.
13982 New module 'unicase/ulc-casecoll'.
13983 * lib/unicase.h (ulc_casecoll): New declaration.
13984 * lib/unicase/ulc-casecoll.c: New file.
13985 * modules/unicase/ulc-casecoll: New file.
13987 New module 'unicase/ulc-casexfrm'.
13988 * lib/unicase.h (ulc_casexfrm): New declaration.
13989 * lib/unicase/ulc-casexfrm.c: New file.
13990 * modules/unicase/ulc-casexfrm: New file.
13992 2009-03-09 Bruno Haible <bruno@clisp.org>
13994 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13997 * m4/mbscasecmp.m4: Remove file.
13998 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13999 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14001 * m4/mbscasestr.m4: Remove file.
14002 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14003 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14005 * m4/mbschr.m4: Remove file.
14006 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14007 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14009 * m4/mbscspn.m4: Remove file.
14010 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14011 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14013 * m4/mbslen.m4: Remove file.
14014 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14015 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14017 * m4/mbsncasecmp.m4: Remove file.
14018 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14019 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14021 * m4/mbsnlen.m4: Remove file.
14022 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14023 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14025 * m4/mbspbrk.m4: Remove file.
14026 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14027 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14029 * m4/mbspcasecmp.m4: Remove file.
14030 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14031 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14033 * m4/mbsrchr.m4: Remove file.
14034 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14035 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14037 * m4/mbssep.m4: Remove file.
14038 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14039 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14041 * m4/mbsspn.m4: Remove file.
14042 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14043 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14045 * m4/mbsstr.m4: Remove file.
14046 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14047 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14049 * m4/mbstok_r.m4: Remove file.
14050 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14051 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14053 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14055 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14056 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14058 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14060 2009-03-08 Bruno Haible <bruno@clisp.org>
14062 Tests for module 'unicase/ulc-casecmp'.
14063 * modules/unicase/ulc-casecmp-tests: New file.
14064 * tests/unicase/test-ulc-casecmp1.sh: New file.
14065 * tests/unicase/test-ulc-casecmp2.sh: New file.
14066 * tests/unicase/test-ulc-casecmp.c: New file.
14068 New module 'unicase/ulc-casecmp'.
14069 * lib/unicase.h (ulc_casecmp): New declaration.
14070 * lib/unicase/ulc-casecmp.c: New file.
14071 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14072 'const SRC_UNIT *'.
14073 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14074 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14075 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14076 * modules/unicase/ulc-casecmp: New file.
14078 Tests for module 'unicase/u32-is-cased'.
14079 * modules/unicase/u32-is-cased-tests: New file.
14080 * tests/unicase/test-u32-is-cased.c: New file.
14082 Tests for module 'unicase/u16-is-cased'.
14083 * modules/unicase/u16-is-cased-tests: New file.
14084 * tests/unicase/test-u16-is-cased.c: New file.
14086 Tests for module 'unicase/u8-is-cased'.
14087 * modules/unicase/u8-is-cased-tests: New file.
14088 * tests/unicase/test-u8-is-cased.c: New file.
14089 * tests/unicase/test-is-cased.h: New file.
14091 New module 'unicase/u32-is-cased'.
14092 * lib/unicase/u32-is-cased.c: New file.
14093 * modules/unicase/u32-is-cased: New file.
14095 New module 'unicase/u16-is-cased'.
14096 * lib/unicase/u16-is-cased.c: New file.
14097 * modules/unicase/u16-is-cased: New file.
14099 New module 'unicase/u8-is-cased'.
14100 * lib/unicase/u8-is-cased.c: New file.
14101 * lib/unicase/u-is-cased.h: New file.
14102 * modules/unicase/u8-is-cased: New file.
14104 Tests for module 'unicase/u32-is-casefolded'.
14105 * modules/unicase/u32-is-casefolded-tests: New file.
14106 * tests/unicase/test-u32-is-casefolded.c: New file.
14108 Tests for module 'unicase/u16-is-casefolded'.
14109 * modules/unicase/u16-is-casefolded-tests: New file.
14110 * tests/unicase/test-u16-is-casefolded.c: New file.
14112 Tests for module 'unicase/u8-is-casefolded'.
14113 * modules/unicase/u8-is-casefolded-tests: New file.
14114 * tests/unicase/test-u8-is-casefolded.c: New file.
14115 * tests/unicase/test-is-casefolded.h: New file.
14117 New module 'unicase/u32-is-casefolded'.
14118 * lib/unicase/u32-is-casefolded.c: New file.
14119 * modules/unicase/u32-is-casefolded: New file.
14121 New module 'unicase/u16-is-casefolded'.
14122 * lib/unicase/u16-is-casefolded.c: New file.
14123 * modules/unicase/u16-is-casefolded: New file.
14125 New module 'unicase/u8-is-casefolded'.
14126 * lib/unicase/u8-is-casefolded.c: New file.
14127 * modules/unicase/u8-is-casefolded: New file.
14129 Tests for module 'unicase/u32-is-titlecase'.
14130 * modules/unicase/u32-is-titlecase-tests: New file.
14131 * tests/unicase/test-u32-is-titlecase.c: New file.
14133 Tests for module 'unicase/u16-is-titlecase'.
14134 * modules/unicase/u16-is-titlecase-tests: New file.
14135 * tests/unicase/test-u16-is-titlecase.c: New file.
14137 Tests for module 'unicase/u8-is-titlecase'.
14138 * modules/unicase/u8-is-titlecase-tests: New file.
14139 * tests/unicase/test-u8-is-titlecase.c: New file.
14140 * tests/unicase/test-is-titlecase.h: New file.
14142 New module 'unicase/u32-is-titlecase'.
14143 * lib/unicase/u32-is-titlecase.c: New file.
14144 * modules/unicase/u32-is-titlecase: New file.
14146 New module 'unicase/u16-is-titlecase'.
14147 * lib/unicase/u16-is-titlecase.c: New file.
14148 * modules/unicase/u16-is-titlecase: New file.
14150 New module 'unicase/u8-is-titlecase'.
14151 * lib/unicase/u8-is-titlecase.c: New file.
14152 * modules/unicase/u8-is-titlecase: New file.
14154 Tests for module 'unicase/u32-is-lowercase'.
14155 * modules/unicase/u32-is-lowercase-tests: New file.
14156 * tests/unicase/test-u32-is-lowercase.c: New file.
14158 Tests for module 'unicase/u16-is-lowercase'.
14159 * modules/unicase/u16-is-lowercase-tests: New file.
14160 * tests/unicase/test-u16-is-lowercase.c: New file.
14162 Tests for module 'unicase/u8-is-lowercase'.
14163 * modules/unicase/u8-is-lowercase-tests: New file.
14164 * tests/unicase/test-u8-is-lowercase.c: New file.
14165 * tests/unicase/test-is-lowercase.h: New file.
14167 New module 'unicase/u32-is-lowercase'.
14168 * lib/unicase/u32-is-lowercase.c: New file.
14169 * modules/unicase/u32-is-lowercase: New file.
14171 New module 'unicase/u16-is-lowercase'.
14172 * lib/unicase/u16-is-lowercase.c: New file.
14173 * modules/unicase/u16-is-lowercase: New file.
14175 New module 'unicase/u8-is-lowercase'.
14176 * lib/unicase/u8-is-lowercase.c: New file.
14177 * modules/unicase/u8-is-lowercase: New file.
14179 Tests for module 'unicase/u32-is-uppercase'.
14180 * modules/unicase/u32-is-uppercase-tests: New file.
14181 * tests/unicase/test-u32-is-uppercase.c: New file.
14183 Tests for module 'unicase/u16-is-uppercase'.
14184 * modules/unicase/u16-is-uppercase-tests: New file.
14185 * tests/unicase/test-u16-is-uppercase.c: New file.
14187 Tests for module 'unicase/u8-is-uppercase'.
14188 * modules/unicase/u8-is-uppercase-tests: New file.
14189 * tests/unicase/test-u8-is-uppercase.c: New file.
14190 * tests/unicase/test-is-uppercase.h: New file.
14192 New module 'unicase/u32-is-uppercase'.
14193 * lib/unicase/u32-is-uppercase.c: New file.
14194 * modules/unicase/u32-is-uppercase: New file.
14196 New module 'unicase/u16-is-uppercase'.
14197 * lib/unicase/u16-is-uppercase.c: New file.
14198 * modules/unicase/u16-is-uppercase: New file.
14200 New module 'unicase/u8-is-uppercase'.
14201 * lib/unicase/u8-is-uppercase.c: New file.
14202 * modules/unicase/u8-is-uppercase: New file.
14204 New module 'unicase/u32-is-invariant'.
14205 * lib/unicase/u32-is-invariant.c: New file.
14206 * modules/unicase/u32-is-invariant: New file.
14208 New module 'unicase/u16-is-invariant'.
14209 * lib/unicase/u16-is-invariant.c: New file.
14210 * modules/unicase/u16-is-invariant: New file.
14212 New module 'unicase/u8-is-invariant'.
14213 * lib/unicase/u8-is-invariant.c: New file.
14214 * lib/unicase/invariant.h: New file.
14215 * lib/unicase/u-is-invariant.h: New file.
14216 * modules/unicase/u8-is-invariant: New file.
14218 Tests for module 'unicase/u32-casecoll'.
14219 * modules/unicase/u32-casecoll-tests: New file.
14220 * tests/unicase/test-u32-casecoll.c: New file.
14222 Tests for module 'unicase/u16-casecoll'.
14223 * modules/unicase/u16-casecoll-tests: New file.
14224 * tests/unicase/test-u16-casecoll.c: New file.
14226 Tests for module 'unicase/u8-casecoll'.
14227 * modules/unicase/u8-casecoll-tests: New file.
14228 * tests/unicase/test-u8-casecoll.c: New file.
14230 New module 'unicase/u32-casecoll'.
14231 * lib/unicase/u32-casecoll.c: New file.
14232 * modules/unicase/u32-casecoll: New file.
14234 New module 'unicase/u16-casecoll'.
14235 * lib/unicase/u16-casecoll.c: New file.
14236 * modules/unicase/u16-casecoll: New file.
14238 New module 'unicase/u8-casecoll'.
14239 * lib/unicase/u8-casecoll.c: New file.
14240 * lib/unicase/u-casecoll.h: New file.
14241 * modules/unicase/u8-casecoll: New file.
14243 New module 'unicase/u32-casexfrm'.
14244 * lib/unicase/u32-casexfrm.c: New file.
14245 * modules/unicase/u32-casexfrm: New file.
14247 New module 'unicase/u16-casexfrm'.
14248 * lib/unicase/u16-casexfrm.c: New file.
14249 * modules/unicase/u16-casexfrm: New file.
14251 New module 'unicase/u8-casexfrm'.
14252 * lib/unicase/u8-casexfrm.c: New file.
14253 * lib/unicase/u-casexfrm.h: New file.
14254 * modules/unicase/u8-casexfrm: New file.
14256 Tests for module 'unicase/u32-casecmp'.
14257 * modules/unicase/u32-casecmp-tests: New file.
14258 * tests/unicase/test-u32-casecmp.c: New file.
14260 Tests for module 'unicase/u16-casecmp'.
14261 * modules/unicase/u16-casecmp-tests: New file.
14262 * tests/unicase/test-u16-casecmp.c: New file.
14264 Tests for module 'unicase/u8-casecmp'.
14265 * modules/unicase/u8-casecmp-tests: New file.
14266 * tests/unicase/test-u8-casecmp.c: New file.
14267 * tests/unicase/test-casecmp.h: New file.
14269 New module 'unicase/u32-casecmp'.
14270 * lib/unicase/u32-casecmp.c: New file.
14271 * modules/unicase/u32-casecmp: New file.
14273 New module 'unicase/u16-casecmp'.
14274 * lib/unicase/u16-casecmp.c: New file.
14275 * modules/unicase/u16-casecmp: New file.
14277 New module 'unicase/u8-casecmp'.
14278 * lib/unicase/u8-casecmp.c: New file.
14279 * lib/unicase/u-casecmp.h: New file.
14280 * modules/unicase/u8-casecmp: New file.
14282 Tests for module 'unicase/u32-casefold'.
14283 * modules/unicase/u32-casefold-tests: New file.
14284 * tests/unicase/test-u32-casefold.c: New file.
14286 Tests for module 'unicase/u16-casefold'.
14287 * modules/unicase/u16-casefold-tests: New file.
14288 * tests/unicase/test-u16-casefold.c: New file.
14290 Tests for module 'unicase/u8-casefold'.
14291 * modules/unicase/u8-casefold-tests: New file.
14292 * tests/unicase/test-u8-casefold.c: New file.
14294 New module 'unicase/u32-casefold'.
14295 * lib/unicase/u32-casefold.c: New file.
14296 * modules/unicase/u32-casefold: New file.
14298 New module 'unicase/u16-casefold'.
14299 * lib/unicase/u16-casefold.c: New file.
14300 * modules/unicase/u16-casefold: New file.
14302 New module 'unicase/u8-casefold'.
14303 * lib/unicase/u8-casefold.c: New file.
14304 * lib/unicase/u-casefold.h: New file.
14305 * modules/unicase/u8-casefold: New file.
14307 New module 'unicase/tocasefold'.
14308 * lib/unicase/casefold.h: New file.
14309 * lib/unicase/tocasefold.c: New file.
14310 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14311 * modules/unicase/tocasefold: New file.
14313 Tests for module 'unicase/u32-totitle'.
14314 * modules/unicase/u32-totitle-tests: New file.
14315 * tests/unicase/test-u32-totitle.c: New file.
14317 Tests for module 'unicase/u16-totitle'.
14318 * modules/unicase/u16-totitle-tests: New file.
14319 * tests/unicase/test-u16-totitle.c: New file.
14321 Tests for module 'unicase/u8-totitle'.
14322 * modules/unicase/u8-totitle-tests: New file.
14323 * tests/unicase/test-u8-totitle.c: New file.
14325 New module 'unicase/u32-totitle'.
14326 * lib/unicase/u32-totitle.c: New file.
14327 * modules/unicase/u32-totitle: New file.
14329 New module 'unicase/u16-totitle'.
14330 * lib/unicase/u16-totitle.c: New file.
14331 * modules/unicase/u16-totitle: New file.
14333 New module 'unicase/u8-totitle'.
14334 * lib/unicase/u8-totitle.c: New file.
14335 * lib/unicase/u-totitle.h: New file.
14336 * modules/unicase/u8-totitle: New file.
14338 Tests for module 'unicase/u32-tolower'.
14339 * modules/unicase/u32-tolower-tests: New file.
14340 * tests/unicase/test-u32-tolower.c: New file.
14342 Tests for module 'unicase/u16-tolower'.
14343 * modules/unicase/u16-tolower-tests: New file.
14344 * tests/unicase/test-u16-tolower.c: New file.
14346 Tests for module 'unicase/u8-tolower'.
14347 * modules/unicase/u8-tolower-tests: New file.
14348 * tests/unicase/test-u8-tolower.c: New file.
14350 New module 'unicase/u32-tolower'.
14351 * lib/unicase/u32-tolower.c: New file.
14352 * modules/unicase/u32-tolower: New file.
14354 New module 'unicase/u16-tolower'.
14355 * lib/unicase/u16-tolower.c: New file.
14356 * modules/unicase/u16-tolower: New file.
14358 New module 'unicase/u8-tolower'.
14359 * lib/unicase/u8-tolower.c: New file.
14360 * modules/unicase/u8-tolower: New file.
14362 Tests for module 'unicase/u32-toupper'.
14363 * modules/unicase/u32-toupper-tests: New file.
14364 * tests/unicase/test-u32-toupper.c: New file.
14366 Tests for module 'unicase/u16-toupper'.
14367 * modules/unicase/u16-toupper-tests: New file.
14368 * tests/unicase/test-u16-toupper.c: New file.
14370 Tests for module 'unicase/u8-toupper'.
14371 * modules/unicase/u8-toupper-tests: New file.
14372 * tests/unicase/test-u8-toupper.c: New file.
14374 New module 'unicase/u32-toupper'.
14375 * lib/unicase/u32-toupper.c: New file.
14376 * modules/unicase/u32-toupper: New file.
14378 New module 'unicase/u16-toupper'.
14379 * lib/unicase/u16-toupper.c: New file.
14380 * modules/unicase/u16-toupper: New file.
14382 New module 'unicase/u8-toupper'.
14383 * lib/unicase/u8-toupper.c: New file.
14384 * modules/unicase/u8-toupper: New file.
14386 New module 'unicase/u32-casemap'.
14387 * lib/unicase/u32-casemap.c: New file.
14388 * modules/unicase/u32-casemap: New file.
14390 New module 'unicase/u16-casemap'.
14391 * lib/unicase/u16-casemap.c: New file.
14392 * modules/unicase/u16-casemap: New file.
14394 New module 'unicase/u8-casemap'.
14395 * lib/unicase/unicasemap.h: New file.
14396 * lib/unicase/u8-casemap.c: New file.
14397 * lib/unicase/u-casemap.h: New file.
14398 * modules/unicase/u8-casemap: New file.
14400 New module 'unicase/special-casing'.
14401 * lib/unicase/special-casing.h: New file.
14402 * lib/unicase/special-casing.c: New file.
14403 * lib/unicase/special-casing-table.gperf: New file, generated by
14405 * modules/unicase/special-casing: New file.
14407 Tests for module 'unicase/locale-language'.
14408 * modules/unicase/locale-language-tests: New file.
14409 * tests/unicase/test-locale-language.sh: New file.
14410 * tests/unicase/test-locale-language.c: New file.
14412 New module 'unicase/locale-language'.
14413 * lib/unicase/locale-language.c: New file.
14414 * lib/unicase/locale-languages.gperf: New file.
14415 * modules/unicase/locale-language: New file.
14417 Generate more tables for case conversion and case folding.
14418 * lib/gen-uni-tables.c (SCC_*): New enum items.
14419 (struct special_casing_rule): New type.
14420 (casing_rules, num_casing_rules, allocated_casing_rules): New
14422 (add_casing_rule, fill_casing_rules): New functions.
14423 (struct casefold_rule): New type.
14424 (casefolding_rules, num_casefolding_rules,
14425 allocated_casefolding_rules): New variables.
14426 (fill_casefolding_rules): New function.
14427 (unicode_casefold): New variable.
14428 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14429 sort_casing_rules, output_casing_rules): New functions.
14430 (main): Accept to more arguments: SpecialCasing.txt and
14431 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14432 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14433 Output mapping for casefolding.
14435 * lib/unicase.h: Include stdbool.h, uninorm.h.
14436 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14437 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14438 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14440 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14442 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14443 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14445 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14446 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14447 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14448 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14450 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14452 2009-03-08 Bruno Haible <bruno@clisp.org>
14454 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14455 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14456 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14457 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14459 2009-03-07 Bruno Haible <bruno@clisp.org>
14461 Adjust u*_normcmp, u*_normcoll API.
14462 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14463 u16_normcoll, u32_normcoll): Change failure conventions.
14464 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14465 errno and return -1.
14466 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14468 2009-03-07 Bruno Haible <bruno@clisp.org>
14470 Tests for module 'uninorm/u32-normcoll'.
14471 * modules/uninorm/u32-normcoll-tests: New file.
14472 * tests/uninorm/test-u32-normcoll.c: New file.
14474 Tests for module 'uninorm/u16-normcoll'.
14475 * modules/uninorm/u16-normcoll-tests: New file.
14476 * tests/uninorm/test-u16-normcoll.c: New file.
14478 Tests for module 'uninorm/u8-normcoll'.
14479 * modules/uninorm/u8-normcoll-tests: New file.
14480 * tests/uninorm/test-u8-normcoll.c: New file.
14482 2009-03-07 Bruno Haible <bruno@clisp.org>
14484 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14485 tests/uninorm/test-u32-normcmp.c.
14486 * tests/uninorm/test-u32-normcmp.c: Include it.
14487 (test_nonascii): New function, extracted from main. Add some more
14489 (main): Invoke test_ascii and test_nonascii.
14490 * modules/uninorm/u32-normcmp-tests (Files): Add
14491 tests/uninorm/test-u32-normcmp.h.
14492 (Depends-on): Remove uninorm/u32-normcmp.
14494 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14495 tests/uninorm/test-u16-normcmp.c.
14496 * tests/uninorm/test-u16-normcmp.c: Include it.
14497 (test_nonascii): New function, extracted from main. Add some more
14499 (main): Invoke test_ascii and test_nonascii.
14500 * modules/uninorm/u16-normcmp-tests (Files): Add
14501 tests/uninorm/test-u16-normcmp.h.
14502 (Depends-on): Remove uninorm/u16-normcmp.
14504 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14505 tests/uninorm/test-u8-normcmp.c.
14506 * tests/uninorm/test-u8-normcmp.c: Include it.
14507 (test_nonascii): New function, extracted from main. Add some more
14509 (main): Invoke test_ascii and test_nonascii.
14510 * modules/uninorm/u8-normcmp-tests (Files): Add
14511 tests/uninorm/test-u8-normcmp.h.
14512 (Depends-on): Remove uninorm/u8-normcmp.
14514 2009-03-07 Bruno Haible <bruno@clisp.org>
14516 New module 'uninorm/u32-normcoll'.
14517 * lib/uninorm/u32-normcoll.c: New file.
14518 * modules/uninorm/u32-normcoll: New file.
14520 New module 'uninorm/u16-normcoll'.
14521 * lib/uninorm/u16-normcoll.c: New file.
14522 * modules/uninorm/u16-normcoll: New file.
14524 New module 'uninorm/u8-normcoll'.
14525 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14527 * lib/uninorm/u8-normcoll.c: New file.
14528 * lib/uninorm/u-normcoll.h: New file.
14529 * modules/uninorm/u8-normcoll: New file.
14531 New module 'uninorm/u32-normxfrm'.
14532 * lib/uninorm/u32-normxfrm.c: New file.
14533 * modules/uninorm/u32-normxfrm: New file.
14535 New module 'uninorm/u16-normxfrm'.
14536 * lib/uninorm/u16-normxfrm.c: New file.
14537 * modules/uninorm/u16-normxfrm: New file.
14539 New module 'uninorm/u8-normxfrm'.
14540 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14542 * lib/uninorm/u8-normxfrm.c: New file.
14543 * lib/uninorm/u-normxfrm.h: New file.
14544 * modules/uninorm/u8-normxfrm: New file.
14546 2009-03-07 Bruno Haible <bruno@clisp.org>
14548 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14549 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14550 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14552 2009-03-07 Bruno Haible <bruno@clisp.org>
14554 New module 'memxfrm'.
14555 * lib/memxfrm.h: New file.
14556 * lib/memxfrm.c: New file.
14557 * modules/memxfrm: New file.
14559 2009-03-07 Bruno Haible <bruno@clisp.org>
14561 New module 'memcmp2'.
14562 * lib/memcmp2.h: New file.
14563 * lib/memcmp2.c: New file.
14564 * modules/memcmp2: New file.
14566 2009-03-07 Bruno Haible <bruno@clisp.org>
14568 Tests for module 'uninorm/decomposing-form'.
14569 * modules/uninorm/decomposing-form-tests: New file.
14570 * tests/uninorm/test-decomposing-form.c: New file.
14572 New module 'uninorm/decomposing-form'.
14573 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14574 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14575 Add 'decomposing_variant' field.
14576 * lib/uninorm/decomposing-form.c: New file.
14577 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14578 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14579 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14580 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14581 * modules/uninorm/decomposing-form: New file.
14582 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14583 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14585 2009-03-07 Bruno Haible <bruno@clisp.org>
14587 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14590 2009-03-06 Bruno Haible <bruno@clisp.org>
14592 Tests for module 'uninorm/u32-normcmp'.
14593 * tests/uninorm/test-u32-normcmp.c: New file.
14594 * modules/uninorm/u32-normcmp-tests: New file.
14596 Tests for module 'uninorm/u16-normcmp'.
14597 * tests/uninorm/test-u16-normcmp.c: New file.
14598 * modules/uninorm/u16-normcmp-tests: New file.
14600 Tests for module 'uninorm/u8-normcmp'.
14601 * tests/uninorm/test-u8-normcmp.c: New file.
14602 * modules/uninorm/u8-normcmp-tests: New file.
14604 New module 'uninorm/u32-normcmp'.
14605 * lib/uninorm/u32-normcmp.c: New file.
14606 * modules/uninorm/u32-normcmp: New file.
14608 New module 'uninorm/u16-normcmp'.
14609 * lib/uninorm/u16-normcmp.c: New file.
14610 * modules/uninorm/u16-normcmp: New file.
14612 New module 'uninorm/u8-normcmp'.
14613 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14615 * lib/uninorm/u8-normcmp.c: New file.
14616 * lib/uninorm/u-normcmp.h: New file.
14617 * modules/uninorm/u8-normcmp: New file.
14619 2009-03-06 Bruno Haible <bruno@clisp.org>
14621 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14622 Reported by Eric Blake.
14624 2009-03-06 Eric Blake <ebb9@byu.net>
14625 Bruno Haible <bruno@clisp.org>
14627 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14628 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14630 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14631 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14633 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14635 2009-03-06 Eric Blake <ebb9@byu.net>
14637 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14638 to avoid compiler warnings.
14639 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14641 2009-03-05 Bruno Haible <bruno@clisp.org>
14643 * tests/test-ftell.c (main): Disable test beyond end of file on
14645 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14647 2009-03-05 Kamil Dudka <kdudka@redhat.com>
14649 * lib/filevercmp.c: Move hidden files up in ordering.
14650 * tests/test-filevercmp.c: Add tests for hidden files.
14652 2009-03-04 Bruno Haible <bruno@clisp.org>
14654 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14655 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14657 Reported by Simon Josefsson.
14659 2009-03-03 Bruno Haible <bruno@clisp.org>
14661 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14662 Reported by Simon Josefsson.
14664 * doc/ld-version-script.texi: Update node reference.
14666 2009-03-03 Bruno Haible <bruno@clisp.org>
14668 * modules/visibility (License): Change to 'unlimited'.
14669 Suggested by Simon Josefsson.
14671 2009-03-03 Jim Meyering <meyering@redhat.com>
14673 unlinkdir: cannot_unlink_dir may modify process state
14674 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14675 it's neither thread-safe nor appropriate for use in a library.
14677 2009-03-03 Eric Blake <ebb9@byu.net>
14679 test-closein: silence test under Darwin
14680 * tests/test-closein.sh: Ignore stderr from cat, since we don't
14681 care if it dies from EPIPE or EBADF.
14683 2009-03-03 Bruno Haible <bruno@clisp.org>
14685 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14687 * doc/visibility.texi: Fix @node and @section.
14689 2009-03-03 Simon Josefsson <simon@josefsson.org>
14691 * doc/gnulib.texi: Link to sections for ld version script and
14693 * doc/visibility.texi: Add @node and @section.
14694 * modules/ld-version-script: New module.
14695 * m4/ld-version-script.m4: New file.
14696 * doc/ld-version-script.texi: New file.
14698 2009-03-02 David Lutterkort <lutter@redhat.com>
14700 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14701 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14703 2009-03-02 Bruno Haible <bruno@clisp.org>
14705 * doc/visibility.texi: Mention libtool's -export-symbols option.
14707 2009-03-02 Jim Meyering <meyering@redhat.com>
14709 announce-gen: new option: --no-print-checksums
14710 * build-aux/announce-gen (usage): Describe it.
14711 (print_checksums): Print a newline here, not in the [*] footnote.
14714 2009-03-01 Bruno Haible <bruno@clisp.org>
14716 Use socklen_t in the native Windows replacements prototypes.
14717 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14719 * lib/getsockopt.c (rpl_getsockopt): Likewise.
14720 * lib/setsockopt.c (rpl_setsockopt): Likewise.
14721 * modules/getsockopt (Depends-on): Add socklen.
14722 * modules/setsockopt (Depends-on): Add socklen.
14724 2009-03-01 Bruno Haible <bruno@clisp.org>
14726 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14729 2009-03-01 Eric Blake <ebb9@byu.net>
14730 Bruno Haible <bruno@clisp.org>
14732 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14734 * lib/wait-process.c (wait_subprocess): Omit error message about
14735 deadly signal sent to the child of termsigp != NULL.
14737 2009-03-01 Eric Blake <ebb9@byu.net>
14739 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14741 2009-03-01 Bruno Haible <bruno@clisp.org>
14743 Avoid a gcc warning.
14744 * tests/test-sched.c (b): Make global.
14745 Reported by Eric Blake.
14747 2009-01-19 Martin Lambers <marlam@marlam.de>
14749 Provide POSIX semantics for socket timeout options on W32.
14750 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14751 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14752 * modules/setsockopt: Depend on sys_time module for struct timeval.
14753 * modules/getsockopt: Depend on sys_time module for struct timeval.
14755 2009-03-01 Simon Josefsson <simon@josefsson.org>
14757 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14758 __USE_GNU, for consistency with netdb.in.h.
14759 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14761 2009-03-01 Bruno Haible <bruno@clisp.org>
14763 More support for FreeMiNT.
14764 * lib/fseeko.c (rpl_fseeko): Complete last commit.
14765 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14767 2009-03-01 Bruno Haible <bruno@clisp.org>
14769 More support for FreeMiNT.
14770 * lib/fpurge.c (fpurge): Correct last commit.
14771 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14773 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14775 Fix unportable awk script in vc-list-files.
14776 * build-aux/vc-list-files: In the replacement awk script, use
14777 substr with a second argument of 1, not zero.
14778 Report by Simon Josefsson.
14780 2009-02-28 Bruno Haible <bruno@clisp.org>
14782 More support for FreeMiNT.
14783 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14785 * lib/fwriting.c (fwriting): Likewise.
14786 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14788 2009-02-28 Bruno Haible <bruno@clisp.org>
14790 * tests/test-freadseek.c (main): Disable test beyond end of file on
14792 * tests/test-ftello.c (main): Likewise.
14793 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14795 2009-02-28 Bruno Haible <bruno@clisp.org>
14797 Add tentative support for FreeMiNT.
14798 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14799 * lib/fpurge.c (fpurge): Likewise.
14800 * lib/freadable.c (freadable): Likewise.
14801 * lib/freading.c (freading): Likewise.
14802 * lib/freadptr.c (freadptr): Likewise.
14803 * lib/freadseek.c (freadptrinc): Likewise.
14804 * lib/fseeko.c (rpl_fseeko): Likewise.
14805 * lib/fseterr.c (fseterr): Likewise.
14806 * lib/fwritable.c (fwritable): Likewise.
14807 * lib/fwriting.c (fwriting): Likewise.
14808 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14810 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14812 2009-02-28 Bruno Haible <bruno@clisp.org>
14814 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14816 Reported by Jim Meyering.
14818 2009-02-28 Bruno Haible <bruno@clisp.org>
14820 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14821 Mention the results of these tests on various platforms.
14822 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14824 * doc/posix-functions/printf.texi: Likewise.
14825 * doc/posix-functions/snprintf.texi: Likewise.
14826 * doc/posix-functions/sprintf.texi: Likewise.
14827 * doc/posix-functions/vfprintf.texi: Likewise.
14828 * doc/posix-functions/vprintf.texi: Likewise.
14829 * doc/posix-functions/vsnprintf.texi: Likewise.
14830 * doc/posix-functions/vsprintf.texi: Likewise.
14831 * doc/glibc-functions/obstack_printf.texi: Likewise.
14832 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14834 2009-02-28 Bruno Haible <bruno@clisp.org>
14836 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14837 Reported by Loïc Minier <lool@dooz.org>.
14839 2009-02-27 Bruno Haible <bruno@clisp.org>
14841 * gnulib-tool (func_import): Make the sed expression used to create the
14842 sed script for updating the .gitignore file POSIX compliant.
14843 Reported by Eric Blake.
14845 2009-02-27 Bruno Haible <bruno@clisp.org>
14847 * gnulib-tool (sed): Don't alias as "sed --posix".
14848 Reported by Eric Blake.
14850 2009-02-27 Bruno Haible <bruno@clisp.org>
14852 Avoid test link errors.
14853 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14854 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14855 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14856 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14857 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14859 2009-02-27 Bruno Haible <bruno@clisp.org>
14861 Avoid spurious "(cached)" in configure output.
14862 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14863 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14864 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14865 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14866 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14867 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14868 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14869 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14870 Reported by Eric Blake.
14872 2009-02-27 Eric Blake <ebb9@byu.net>
14874 printf: fix regression in previous patch
14875 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14877 2009-02-27 Bruno Haible <bruno@clisp.org>
14879 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14881 * lib/stdint.in.h: Likewise.
14882 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14884 2009-02-27 Eric Blake <ebb9@byu.net>
14886 doc: mention more functions added in cygwin 1.7.0
14887 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14889 * doc/posix-functions/open_wmemstream.texi: Likewise.
14890 * doc/posix-functions/wcsnlen.texi: Likewise.
14891 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14892 * doc/posix-functions/wcstod.texi: Likewise.
14893 * doc/posix-functions/wcstof.texi: Likewise.
14894 * doc/posix-functions/wcstoimax.texi: Likewise.
14895 * doc/posix-functions/wcstok.texi: Likewise.
14896 * doc/posix-functions/wcstoumax.texi: Likewise.
14898 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14899 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14900 * doc/posix-functions/fprintf.texi: Update.
14901 * doc/posix-functions/printf.texi: Update.
14902 * doc/posix-functions/snprintf.texi: Update.
14903 * doc/posix-functions/sprintf.texi: Update.
14904 * doc/posix-functions/vfprintf.texi: Update.
14905 * doc/posix-functions/vprintf.texi: Update.
14906 * doc/posix-functions/vsnprintf.texi: Update.
14907 * doc/posix-functions/vsprintf.texi: Update.
14908 * doc/glibc-functions/obstack_printf.texi: Update.
14909 * doc/glibc-functions/obstack_vprintf.texi: Update.
14911 2009-02-26 Eric Blake <ebb9@byu.net>
14913 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14914 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14915 compilation bug by using runtime conversion.
14916 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14917 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14918 * modules/ceill-tests (Files): Use nan.h.
14919 * modules/floorl-tests (Files): Likewise.
14920 * modules/frexpl-tests (Files): Likewise.
14921 * modules/isnanl-tests (Files): Likewise.
14922 * modules/ldexpl-tests (Files): Likewise.
14923 * modules/roundl-tests (Files): Likewise.
14924 * modules/truncl-tests (Files): Likewise.
14925 * tests/test-ceill.c (main): Use a working NaN.
14926 * tests/test-floorl.c (main): Likewise.
14927 * tests/test-frexpl.c (main): Likewise.
14928 * tests/test-isnan.c (test_long_double): Likewise.
14929 * tests/test-isnanl.h (main): Likewise.
14930 * tests/test-ldexpl.h (main): Likewise.
14931 * tests/test-roundl.h (main): Likewise.
14932 * tests/test-truncl.h (main): Likewise.
14933 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14935 2009-02-26 Eric Blake <ebb9@byu.net>
14936 Bruno Haible <bruno@clisp.org>
14938 Work around a *printf bug with %ls on Solaris.
14939 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14940 precision is specified, sprintf stops converting the wide string
14941 argument when the number of bytes that have been produced by this
14942 conversion equals or exceeds the precision.
14943 * doc/posix-functions/fprintf.texi: Update.
14944 * doc/posix-functions/printf.texi: Update.
14945 * doc/posix-functions/snprintf.texi: Update.
14946 * doc/posix-functions/sprintf.texi: Update.
14947 * doc/posix-functions/vfprintf.texi: Update.
14948 * doc/posix-functions/vprintf.texi: Update.
14949 * doc/posix-functions/vsnprintf.texi: Update.
14950 * doc/posix-functions/vsprintf.texi: Update.
14951 * doc/glibc-functions/obstack_printf.texi: Update.
14952 * doc/glibc-functions/obstack_vprintf.texi: Update.
14954 2009-02-26 Eric Blake <ebb9@byu.net>
14956 stdlib: favor compiler check of random.h
14957 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
14958 to avoid an ObjC random.h installed by Swarm.
14960 2009-02-26 Bruno Haible <bruno@clisp.org>
14962 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14963 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14964 Reported by Gary V. Vaughan <gary@gnu.org>.
14966 2009-02-26 Bruno Haible <bruno@clisp.org>
14968 Fix *printf behaviour regarding the %ls directive.
14969 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14970 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14971 NEED_PRINTF_DIRECTIVE_LS.
14972 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14973 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14974 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14975 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14976 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14977 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14978 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14979 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14980 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14981 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14982 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14983 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14984 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14985 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14986 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14987 * doc/posix-functions/fprintf.texi: Update.
14988 * doc/posix-functions/printf.texi: Update.
14989 * doc/posix-functions/snprintf.texi: Update.
14990 * doc/posix-functions/sprintf.texi: Update.
14991 * doc/posix-functions/vfprintf.texi: Update.
14992 * doc/posix-functions/vprintf.texi: Update.
14993 * doc/posix-functions/vsnprintf.texi: Update.
14994 * doc/posix-functions/vsprintf.texi: Update.
14995 * doc/glibc-functions/obstack_printf.texi: Update.
14996 * doc/glibc-functions/obstack_vprintf.texi: Update.
14997 Reported by Eric Blake.
14999 2009-02-25 Bruno Haible <bruno@clisp.org>
15001 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15003 Reported by Gary V. Vaughan <gary@gnu.org>.
15005 2009-02-25 Bruno Haible <bruno@clisp.org>
15007 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15008 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15009 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15010 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15011 Reported by Gary V. Vaughan <gary@gnu.org>.
15013 2009-02-25 Bruno Haible <bruno@clisp.org>
15015 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15016 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15017 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15018 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15019 Reported by Gary V. Vaughan <gary@gnu.org>.
15021 2009-02-25 Eric Blake <ebb9@byu.net>
15023 tests: skip fseek/ftell tests if ungetc is broken
15024 * m4/ungetc.m4: New file.
15025 * modules/fseek-tests: Split test, so ungetc dependency is
15026 separate from rest of test.
15027 * modules/fseeko-tests: Likewise.
15028 * modules/ftell-tests: Likewise.
15029 * modules/ftello-tests: Likewise.
15030 * tests/test-fseek.c (main): Isolate ungetc dependency.
15031 * tests/test-fseeko.c (main): Likewise.
15032 * tests/test-ftell.c (main): Likewise.
15033 * tests/test-ftello.c (main): Likewise.
15034 * tests/test-fseek2.sh: New file.
15035 * tests/test-fseeko2.sh: Likewise.
15036 * tests/test-ftell2.sh: Likewise.
15037 * tests/test-ftello2.sh: Likewise.
15039 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
15041 test-getaddrinfo: fix usage of skip return code 77
15042 * tests/test-gettaddrinfo.c: Return skip code 77 only
15043 for first occurance of skip (4x77 is not 77)
15045 2009-02-25 Gary V. Vaughan <gary@gnu.org>
15047 strtod: avoid C99 decl-after-statement
15048 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15050 2009-02-24 Eric Blake <ebb9@byu.net>
15052 strtod: detect HP-UX 11.31 bug
15053 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15054 Reported by Gary V. Vaughan.
15056 2009-02-23 Bruno Haible <bruno@clisp.org>
15058 Fix invalid read past end of memory block.
15059 * lib/vasnprintf.c (DCHAR_SET): Define.
15060 (local_wcslen): Define only when needed.
15061 (local_strnlen, local_wcsnlen): New functions.
15062 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15063 directives that involve a conversion ourselves.
15064 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15065 wcsnlen, mbrtowc, wcrtomb.
15066 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15067 * tests/test-vasprintf-posix.c (test_function): Likewise.
15068 * tests/test-snprintf-posix.h (test_function): Likewise.
15069 * tests/test-sprintf-posix.h (test_function): Likewise.
15070 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15072 2009-02-22 Bruno Haible <bruno@clisp.org>
15074 Implement new clarified decomposition of Hangul syllables.
15075 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15076 of type LTV, return only a pairwise decomposition.
15077 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15079 * tests/uninorm/test-decomposition.c (main): Updated expected result.
15080 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15081 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15083 2009-02-22 Bruno Haible <bruno@clisp.org>
15085 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15086 zero-length results and shrink excess allocated memory.
15087 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15088 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15089 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15090 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15091 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15092 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15093 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15094 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15095 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15096 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15097 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15098 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15100 2009-02-21 Bruno Haible <bruno@clisp.org>
15102 * doc/gnulib.texi: Include safe-alloc.texi earlier.
15103 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15104 spaces after a period. Put a space between a macro name and its
15105 argument list. Trivial rewordings.
15106 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15107 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15108 (main): Return 0 explicitly.
15110 2009-02-21 Bruno Haible <bruno@clisp.org>
15112 Tests for module 'uninorm/filter'.
15113 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15114 * modules/uninorm/filter-tests: New file.
15116 New module 'uninorm/filter'.
15117 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15118 uninorm_filter_flush, uninorm_filter_free): New declarations.
15119 * lib/uninorm/uninorm-filter.c: New file.
15120 * modules/uninorm/filter: New file.
15122 2009-02-21 Bruno Haible <bruno@clisp.org>
15124 Tests for module 'uninorm/nfkc'.
15125 * tests/uninorm/test-nfkc.c: New file.
15126 * tests/uninorm/test-u8-nfkc.c: New file.
15127 * tests/uninorm/test-u16-nfkc.c: New file.
15128 * tests/uninorm/test-u32-nfkc.c: New file.
15129 * tests/uninorm/test-u32-nfkc-big.sh: New file.
15130 * tests/uninorm/test-u32-nfkc-big.c: New file.
15131 * modules/uninorm/nfkc-tests: New file.
15133 New module 'uninorm/nfkc'.
15134 * lib/uninorm/nfkc.c: New file.
15135 * modules/uninorm/nfkc: New file.
15137 Tests for module 'uninorm/nfkd'.
15138 * tests/uninorm/test-nfkd.c: New file.
15139 * tests/uninorm/test-u8-nfkd.c: New file.
15140 * tests/uninorm/test-u16-nfkd.c: New file.
15141 * tests/uninorm/test-u32-nfkd.c: New file.
15142 * tests/uninorm/test-u32-nfkd-big.sh: New file.
15143 * tests/uninorm/test-u32-nfkd-big.c: New file.
15144 * modules/uninorm/nfkd-tests: New file.
15146 New module 'uninorm/nfkd'.
15147 * lib/uninorm/nfkd.c: New file.
15148 * modules/uninorm/nfkd: New file.
15150 Tests for module 'uninorm/nfc'.
15151 * tests/uninorm/test-nfc.c: New file.
15152 * tests/uninorm/test-u8-nfc.c: New file.
15153 * tests/uninorm/test-u16-nfc.c: New file.
15154 * tests/uninorm/test-u32-nfc.c: New file.
15155 * tests/uninorm/test-u32-nfc-big.sh: New file.
15156 * tests/uninorm/test-u32-nfc-big.c: New file.
15157 * modules/uninorm/nfc-tests: New file.
15159 New module 'uninorm/nfc'.
15160 * lib/uninorm/nfc.c: New file.
15161 * modules/uninorm/nfc: New file.
15163 Tests for module 'uninorm/nfd'.
15164 * tests/uninorm/test-nfd.c: New file.
15165 * tests/uninorm/test-u8-nfd.c: New file.
15166 * tests/uninorm/test-u16-nfd.c: New file.
15167 * tests/uninorm/test-u32-nfd.c: New file.
15168 * tests/uninorm/test-u32-nfd-big.sh: New file.
15169 * tests/uninorm/test-u32-nfd-big.c: New file.
15170 * tests/uninorm/test-u32-normalize-big.h: New file.
15171 * tests/uninorm/test-u32-normalize-big.c: New file.
15172 * tests/uninorm/NormalizationTest.txt: New file, created from
15173 Unicode 5.1.0 NormalizationTest.txt.
15174 * modules/uninorm/nfd-tests: New file.
15176 New module 'uninorm/nfd'.
15177 * lib/uninorm/nfd.c: New file.
15178 * modules/uninorm/nfd: New file.
15180 New module 'uninorm/u32-normalize'.
15181 * lib/uninorm/u32-normalize.c: New file.
15182 * modules/uninorm/u32-normalize: New file.
15184 New module 'uninorm/u16-normalize'.
15185 * lib/uninorm/u16-normalize.c: New file.
15186 * modules/uninorm/u16-normalize: New file.
15188 New module 'uninorm/u8-normalize'.
15189 * lib/uninorm/u8-normalize.c: New file.
15190 * lib/uninorm/normalize-internal.h: New file.
15191 * lib/uninorm/u-normalize-internal.h: New file.
15192 * modules/uninorm/u8-normalize: New file.
15194 New module 'uninorm/decompose-internal'.
15195 * lib/uninorm/decompose-internal.c: New file.
15196 * modules/uninorm/decompose-internal: New file.
15198 Tests for module 'uninorm/composition'.
15199 * tests/uninorm/test-composition.c: New file.
15200 * modules/uninorm/composition-tests: New file.
15202 New module 'uninorm/composition'.
15203 * lib/uninorm/composition.c: New file.
15204 * lib/uninorm/composition-table.gperf: New file, generated by
15206 * modules/uninorm/composition: New file.
15208 Tests for module 'uninorm/compat-decomposition'.
15209 * tests/uninorm/test-compat-decomposition.c: New file.
15210 * modules/uninorm/compat-decomposition-tests: New file.
15212 New module 'uninorm/compat-decomposition'.
15213 * lib/uninorm/decompose-internal.h: New file.
15214 * lib/uninorm/compat-decomposition.c: New file.
15215 * modules/uninorm/compat-decomposition: New file.
15217 Tests for module 'uninorm/canonical-decomposition'.
15218 * tests/uninorm/test-canonical-decomposition.c: New file.
15219 * modules/uninorm/canonical-decomposition-tests: New file.
15221 New module 'uninorm/canonical-decomposition'.
15222 * lib/uninorm/canonical-decomposition.c: New file.
15223 * modules/uninorm/canonical-decomposition: New file.
15225 Tests for module 'uninorm/decomposition'.
15226 * tests/uninorm/test-decomposition.c: New file.
15227 * modules/uninorm/decomposition-tests: New file.
15229 New module 'uninorm/decomposition'.
15230 * lib/uninorm/decomposition.c: New file.
15231 * modules/uninorm/decomposition: New file.
15233 New module 'uninorm/decomposition-table'.
15234 * lib/uninorm/decomposition-table.h: New file.
15235 * lib/uninorm/decomposition-table.c: New file.
15236 * lib/uninorm/decomposition-table1.h: New file, generated by
15238 * lib/uninorm/decomposition-table2.h: New file, generated by
15240 * modules/uninorm/decomposition-table: New file.
15242 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15243 (UC_DECOMP_*): New enumeration items.
15244 (get_decomposition): New function.
15245 (struct decomp_table): New type.
15246 (output_decomposition, output_decomposition_tables): New functions.
15247 (unicode_composition_exclusions): New variable.
15248 (fill_composition_exclusions, debug_output_composition_tables): New
15250 (main): Accept one more argument. Invoke fill_composition_exclusions.
15251 Output decomposition and composition tables.
15253 New module 'uninorm/base'.
15254 * lib/uninorm.h: New file.
15255 * lib/unictype.h: Update comment.
15256 * modules/uninorm/base: New file.
15258 2009-02-21 David Lutterkort <lutter@redhat.com>
15260 Tests for module 'safe-alloc'.
15261 * tests/test-safe-alloc.c: New file.
15262 * modules/safe-alloc-tests: New file.
15264 New module 'safe-alloc'.
15265 * lib/safe-alloc.h: New file.
15266 * lib/safe-alloc.c: New file.
15267 * m4/safe-alloc.m4: New file.
15268 * modules/safe-alloc: New file.
15269 * doc/safe-alloc.texi: New file.
15270 * doc/gnulib.texi: Include it.
15271 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15274 2009-02-18 Bruno Haible <bruno@clisp.org>
15276 Fix link error on non-glibc systems.
15277 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15279 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15281 2009-02-18 Jim Meyering <meyering@redhat.com>
15283 fts: avoid used-uninitialized error due to recent change
15284 * lib/fts.c (fts_read): Guard uses of the new member,
15285 parent->fts_n_dirs_remaining, since it's not relevant for
15286 the parent of a directory specified on the command-line.
15288 2009-02-17 James Youngman <jay@gnu.org>
15289 Bruno Haible <bruno@clisp.org>
15291 * m4/include_next.m4: Reformulate comment.
15293 2009-02-16 Jim Meyering <meyering@redhat.com>
15295 fts: add #if guards so that the fts_lgpl module still builds
15296 * lib/fts.c: Guard just-added hash-table-using parts with
15297 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15298 Reported by Simon Josefsson.
15300 2009-02-15 Bruno Haible <bruno@clisp.org>
15302 * modules/array-mergesort-tests: New file.
15303 * tests/test-array-mergesort.c: New file.
15305 New module 'array-mergesort'.
15306 * modules/array-mergesort: New file.
15307 * lib/array-mergesort.h: New file.
15309 2009-02-15 Bruno Haible <bruno@clisp.org>
15311 Fix 2009-02-07 commit.
15312 * lib/gen-uni-tables.c (output_predicate, output_category,
15313 output_combclass, output_bidi_category, output_decimal_digit,
15314 output_digit, output_numeric, output_mirror, output_scripts,
15315 output_ident_category, output_simple_mapping): Fix format directives.
15316 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15318 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
15320 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15321 fixes are available from IBM.
15323 2009-02-13 Jim Meyering <meyering@redhat.com>
15325 fts: arrange not to stat non-directories in more cases
15326 This makes GNU find (when it doesn't need to stat each file)
15327 *much* more efficient at traversing reiserfs file systems.
15328 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15329 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15330 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15331 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15332 (leaf_optimization_applies): New function.
15333 (LCO_hash, LCO_compare): New helper functions.
15334 (link_count_optimize_ok): New function.
15335 (fts_stat): Initialize new member (if dir).
15336 (fts_read): Decrement parent's fts_n_dirs_remaining count if
15337 we've just stat'ed a directory. Skip the stat call when possible.
15339 Note this AFS-related exchange:
15340 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15341 and note find's pioctl call in find/fstype.c.
15342 But that is necessary only if you want to enable the
15343 optimization for AFS, and for now, I don't.
15345 fts: move a function definition "up" (no semantic change)
15346 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15347 "up" to precede upcoming use of a related function.
15349 2009-02-11 Jim Meyering <meyering@redhat.com>
15351 fts: correct internal computation of nlinks (optimization-related)
15352 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15353 whether the current entry is a directory, so don't test it.
15355 2009-02-10 Bruno Haible <bruno@clisp.org>
15357 Tests for module 'uniwbrk/ulc-wordbreaks'.
15358 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15359 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15360 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15362 Tests for module 'uniwbrk/u32-wordbreaks'.
15363 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15364 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15366 Tests for module 'uniwbrk/u16-wordbreaks'.
15367 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15368 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15370 Tests for module 'uniwbrk/u8-wordbreaks'.
15371 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15372 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15374 2009-02-10 Bruno Haible <bruno@clisp.org>
15376 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15378 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15379 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15380 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15382 2009-02-10 Simon Josefsson <simon@josefsson.org>
15384 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15385 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15387 2009-02-10 Bruno Haible <bruno@clisp.org>
15389 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15390 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15391 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15392 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15393 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15394 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15396 2009-02-09 Simon Josefsson <simon@josefsson.org>
15398 * lib/sockets.h (gl_fd_to_handle): New function.
15400 * tests/test-sockets.c: Call gl_fd_to_handle.
15402 2009-02-09 Bruno Haible <bruno@clisp.org>
15404 * doc/havelib.texi: Document the conventions on bi-arch systems.
15406 2009-02-08 Bruno Haible <bruno@clisp.org>
15408 Document the AC_LIB_LINKFLAGS macro.
15409 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15410 * doc/gnulib.texi: Include it.
15412 2009-02-08 Bruno Haible <bruno@clisp.org>
15414 Fix wrong order of sections, compared to TOC.
15415 * doc/gnulib.texi: Include relocatable-maint.texi after the
15416 "Regular expressions" node, not before.
15418 2009-02-08 Bruno Haible <bruno@clisp.org>
15420 Tests for module 'unicase/totitle'.
15421 * modules/unicase/totitle-tests: New file.
15423 Tests for module 'unicase/tolower'.
15424 * modules/unicase/tolower-tests: New file.
15426 Tests for module 'unicase/toupper'.
15427 * modules/unicase/toupper-tests: New file.
15428 * tests/unicase/test-mapping-part1.h: New file.
15429 * tests/unicase/test-mapping-part2.h: New file.
15431 New module 'unicase/totitle'.
15432 * modules/unicase/totitle: New file.
15433 * lib/unicase/totitle.c: New file.
15435 New module 'unicase/tolower'.
15436 * modules/unicase/tolower: New file.
15437 * lib/unicase/tolower.c: New file.
15439 New module 'unicase/toupper'.
15440 * modules/unicase/toupper: New file.
15441 * lib/unicase/toupper.c: New file.
15442 * lib/unicase/simple-mapping.h: New file.
15444 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15445 (mapping_table): New structure.
15446 (output_simple_mapping): New function.
15447 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15448 * modules/gen-uni-tables (Description): Update.
15449 * lib/unicase/toupper.h: New file, automatically generated by
15451 * lib/unicase/tolower.h: New file, automatically generated by
15453 * lib/unicase/totitle.h: New file, automatically generated by
15455 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15457 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15459 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15462 New module 'unicase/base'.
15463 * modules/unicase/base: New file.
15464 * lib/unicase.h: New file.
15466 2009-02-08 Bruno Haible <bruno@clisp.org>
15468 New module 'uniwbrk/ulc-wordbreaks'.
15469 * modules/uniwbrk/ulc-wordbreaks: New file.
15470 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15472 New module 'uniwbrk/u32-wordbreaks'.
15473 * modules/uniwbrk/u32-wordbreaks: New file.
15474 * lib/uniwbrk/u32-wordbreaks.c: New file.
15476 New module 'uniwbrk/u16-wordbreaks'.
15477 * modules/uniwbrk/u16-wordbreaks: New file.
15478 * lib/uniwbrk/u16-wordbreaks.c: New file.
15480 New module 'uniwbrk/u8-wordbreaks'.
15481 * modules/uniwbrk/u8-wordbreaks: New file.
15482 * lib/uniwbrk/u8-wordbreaks.c: New file.
15483 * lib/uniwbrk/u-wordbreaks.h: New file.
15485 New module 'uniwbrk/table'.
15486 * modules/uniwbrk/table: New file.
15487 * lib/uniwbrk/wbrktable.h: New file.
15488 * lib/uniwbrk/wbrktable.c: New file.
15490 New module 'uniwbrk/wordbreak-property'.
15491 * modules/uniwbrk/wordbreak-property: New file.
15492 * lib/uniwbrk/wordbreak-property.c: New file.
15494 * lib/gen-uni-tables.c (WBP_*): New enum items.
15495 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15496 (unicode_org_wbp): New variable.
15497 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15499 (wbp_table): New structure.
15500 (output_wbp, output_wbrk_tables): New functions.
15501 (main): Accept additional argument. Invoke fill_org_wbp,
15502 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15503 output_wbrk_tables.
15504 * modules/gen-uni-tables (Description): Update.
15505 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15508 New module 'uniwbrk/base'.
15509 * modules/uniwbrk/base: New file.
15510 * lib/uniwbrk.h: New file.
15512 2009-02-08 Bruno Haible <bruno@clisp.org>
15514 Update to Unicode 5.1.0.
15515 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15517 (is_property_default_ignorable_code_point): Don't include characters
15518 of category Cc or Cs and not-a-characters.
15519 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15520 U+0D79, U+109E, U+109F, U+A60C.
15521 * lib/unictype/bidi_of.h: Regenerated.
15522 * lib/unictype/blocks.h: Regenerated.
15523 * lib/unictype/categ_C.h: Regenerated.
15524 * lib/unictype/categ_Cf.h: Regenerated.
15525 * lib/unictype/categ_Cn.h: Regenerated.
15526 * lib/unictype/categ_L.h: Regenerated.
15527 * lib/unictype/categ_Ll.h: Regenerated.
15528 * lib/unictype/categ_Lm.h: Regenerated.
15529 * lib/unictype/categ_Lo.h: Regenerated.
15530 * lib/unictype/categ_Lu.h: Regenerated.
15531 * lib/unictype/categ_M.h: Regenerated.
15532 * lib/unictype/categ_Mc.h: Regenerated.
15533 * lib/unictype/categ_Me.h: Regenerated.
15534 * lib/unictype/categ_Mn.h: Regenerated.
15535 * lib/unictype/categ_N.h: Regenerated.
15536 * lib/unictype/categ_Nd.h: Regenerated.
15537 * lib/unictype/categ_Nl.h: Regenerated.
15538 * lib/unictype/categ_No.h: Regenerated.
15539 * lib/unictype/categ_P.h: Regenerated.
15540 * lib/unictype/categ_Pd.h: Regenerated.
15541 * lib/unictype/categ_Pe.h: Regenerated.
15542 * lib/unictype/categ_Pf.h: Regenerated.
15543 * lib/unictype/categ_Pi.h: Regenerated.
15544 * lib/unictype/categ_Po.h: Regenerated.
15545 * lib/unictype/categ_Ps.h: Regenerated.
15546 * lib/unictype/categ_S.h: Regenerated.
15547 * lib/unictype/categ_Sk.h: Regenerated.
15548 * lib/unictype/categ_Sm.h: Regenerated.
15549 * lib/unictype/categ_So.h: Regenerated.
15550 * lib/unictype/categ_of.h: Regenerated.
15551 * lib/unictype/combining.h: Regenerated.
15552 * lib/unictype/ctype_alnum.h: Regenerated.
15553 * lib/unictype/ctype_alpha.h: Regenerated.
15554 * lib/unictype/ctype_graph.h: Regenerated.
15555 * lib/unictype/ctype_lower.h: Regenerated.
15556 * lib/unictype/ctype_print.h: Regenerated.
15557 * lib/unictype/ctype_punct.h: Regenerated.
15558 * lib/unictype/ctype_upper.h: Regenerated.
15559 * lib/unictype/decdigit.h: Regenerated.
15560 * lib/unictype/digit.h: Regenerated.
15561 * lib/unictype/mirror.h: Regenerated.
15562 * lib/unictype/numeric.h: Regenerated.
15563 * lib/unictype/pr_alphabetic.h: Regenerated.
15564 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15565 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15566 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15567 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15568 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15569 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15570 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15571 * lib/unictype/pr_combining.h: Regenerated.
15572 * lib/unictype/pr_dash.h: Regenerated.
15573 * lib/unictype/pr_decimal_digit.h: Regenerated.
15574 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15575 * lib/unictype/pr_deprecated.h: Regenerated.
15576 * lib/unictype/pr_diacritic.h: Regenerated.
15577 * lib/unictype/pr_extender.h: Regenerated.
15578 * lib/unictype/pr_format_control.h: Regenerated.
15579 * lib/unictype/pr_grapheme_base.h: Regenerated.
15580 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15581 * lib/unictype/pr_grapheme_link.h: Regenerated.
15582 * lib/unictype/pr_id_continue.h: Regenerated.
15583 * lib/unictype/pr_id_start.h: Regenerated.
15584 * lib/unictype/pr_ideographic.h: Regenerated.
15585 * lib/unictype/pr_ignorable_control.h: Regenerated.
15586 * lib/unictype/pr_lowercase.h: Regenerated.
15587 * lib/unictype/pr_math.h: Regenerated.
15588 * lib/unictype/pr_numeric.h: Regenerated.
15589 * lib/unictype/pr_other_alphabetic.h: Regenerated.
15590 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15591 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15592 * lib/unictype/pr_other_id_continue.h: Regenerated.
15593 * lib/unictype/pr_other_lowercase.h: Regenerated.
15594 * lib/unictype/pr_other_math.h: Regenerated.
15595 * lib/unictype/pr_punctuation.h: Regenerated.
15596 * lib/unictype/pr_sentence_terminal.h: Regenerated.
15597 * lib/unictype/pr_soft_dotted.h: Regenerated.
15598 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15599 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15600 * lib/unictype/pr_unified_ideograph.h: Regenerated.
15601 * lib/unictype/pr_uppercase.h: Regenerated.
15602 * lib/unictype/pr_xid_continue.h: Regenerated.
15603 * lib/unictype/pr_xid_start.h: Regenerated.
15604 * lib/unictype/pr_zero_width.h: Regenerated.
15605 * lib/unictype/scripts.h: Regenerated.
15606 * lib/unictype/scripts_byname.gperf: Regenerated.
15607 * lib/unictype/sy_java_ident.h: Regenerated.
15608 * lib/unilbrk/lbrkprop1.h: Regenerated.
15609 * lib/unilbrk/lbrkprop2.h: Regenerated.
15610 * tests/unictype/test-categ_C.c: Regenerated.
15611 * tests/unictype/test-categ_Cf.c: Regenerated.
15612 * tests/unictype/test-categ_Cn.c: Regenerated.
15613 * tests/unictype/test-categ_L.c: Regenerated.
15614 * tests/unictype/test-categ_Ll.c: Regenerated.
15615 * tests/unictype/test-categ_Lm.c: Regenerated.
15616 * tests/unictype/test-categ_Lo.c: Regenerated.
15617 * tests/unictype/test-categ_Lu.c: Regenerated.
15618 * tests/unictype/test-categ_M.c: Regenerated.
15619 * tests/unictype/test-categ_Mc.c: Regenerated.
15620 * tests/unictype/test-categ_Me.c: Regenerated.
15621 * tests/unictype/test-categ_Mn.c: Regenerated.
15622 * tests/unictype/test-categ_N.c: Regenerated.
15623 * tests/unictype/test-categ_Nd.c: Regenerated.
15624 * tests/unictype/test-categ_Nl.c: Regenerated.
15625 * tests/unictype/test-categ_No.c: Regenerated.
15626 * tests/unictype/test-categ_P.c: Regenerated.
15627 * tests/unictype/test-categ_Pd.c: Regenerated.
15628 * tests/unictype/test-categ_Pe.c: Regenerated.
15629 * tests/unictype/test-categ_Pf.c: Regenerated.
15630 * tests/unictype/test-categ_Pi.c: Regenerated.
15631 * tests/unictype/test-categ_Po.c: Regenerated.
15632 * tests/unictype/test-categ_Ps.c: Regenerated.
15633 * tests/unictype/test-categ_S.c: Regenerated.
15634 * tests/unictype/test-categ_Sk.c: Regenerated.
15635 * tests/unictype/test-categ_Sm.c: Regenerated.
15636 * tests/unictype/test-categ_So.c: Regenerated.
15637 * tests/unictype/test-ctype_alnum.c: Regenerated.
15638 * tests/unictype/test-ctype_alpha.c: Regenerated.
15639 * tests/unictype/test-ctype_graph.c: Regenerated.
15640 * tests/unictype/test-ctype_lower.c: Regenerated.
15641 * tests/unictype/test-ctype_print.c: Regenerated.
15642 * tests/unictype/test-ctype_punct.c: Regenerated.
15643 * tests/unictype/test-ctype_upper.c: Regenerated.
15644 * tests/unictype/test-decdigit.h: Regenerated.
15645 * tests/unictype/test-digit.h: Regenerated.
15646 * tests/unictype/test-numeric.h: Regenerated.
15647 * tests/unictype/test-pr_alphabetic.c: Regenerated.
15648 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15649 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15650 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15651 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15652 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15653 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15654 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15655 * tests/unictype/test-pr_combining.c: Regenerated.
15656 * tests/unictype/test-pr_dash.c: Regenerated.
15657 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15658 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15659 * tests/unictype/test-pr_deprecated.c: Regenerated.
15660 * tests/unictype/test-pr_diacritic.c: Regenerated.
15661 * tests/unictype/test-pr_extender.c: Regenerated.
15662 * tests/unictype/test-pr_format_control.c: Regenerated.
15663 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15664 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15665 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15666 * tests/unictype/test-pr_id_continue.c: Regenerated.
15667 * tests/unictype/test-pr_id_start.c: Regenerated.
15668 * tests/unictype/test-pr_ideographic.c: Regenerated.
15669 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15670 * tests/unictype/test-pr_lowercase.c: Regenerated.
15671 * tests/unictype/test-pr_math.c: Regenerated.
15672 * tests/unictype/test-pr_numeric.c: Regenerated.
15673 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15674 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15676 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15677 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15678 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15679 * tests/unictype/test-pr_other_math.c: Regenerated.
15680 * tests/unictype/test-pr_punctuation.c: Regenerated.
15681 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15682 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15683 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15684 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15685 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15686 * tests/unictype/test-pr_uppercase.c: Regenerated.
15687 * tests/unictype/test-pr_xid_continue.c: Regenerated.
15688 * tests/unictype/test-pr_xid_start.c: Regenerated.
15689 * tests/unictype/test-pr_zero_width.c: Regenerated.
15691 Update to Unicode 5.1.0.
15692 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15693 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15694 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15695 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15696 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15697 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15698 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15699 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15700 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15701 (nonspacing_table_ind): Update.
15702 * tests/uniwidth/test-uc_width2.sh: Update expected result.
15704 Update to Unicode 5.1.0.
15705 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15707 * lib/uniname/uniname.c (unicode_character_name,
15708 unicode_name_character): Add the range 0x1Fxxx to the code transform.
15709 * lib/uniname/uninames.h: Regenerated.
15710 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15712 2009-02-07 Bruno Haible <bruno@clisp.org>
15714 Merge gen-ctype and gen-lbrk into a single program.
15715 * lib/gen-uni-tables.c: New file, incorporating
15716 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15717 Add directory prefixes to the names of the generated files.
15718 * lib/unictype/gen-ctype.c: Remove file.
15719 * lib/unilbrk/gen-lbrk.c: Remove file.
15720 * modules/gen-uni-tables: New file.
15721 * modules/unictype/gen-ctype: Remove file.
15722 * modules/unilbrk/gen-lbrk: Remove file.
15724 2009-02-07 Bruno Haible <bruno@clisp.org>
15726 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15728 New module 'unistr/u32-strcoll'.
15729 * modules/unistr/u32-strcoll: New file.
15730 * lib/unistr/u32-strcoll.c: New file.
15732 New module 'unistr/u16-strcoll'.
15733 * modules/unistr/u16-strcoll: New file.
15734 * lib/unistr/u16-strcoll.c: New file.
15736 New module 'unistr/u8-strcoll'.
15737 * modules/unistr/u8-strcoll: New file.
15738 * lib/unistr/u8-strcoll.c: New file.
15739 * lib/unistr/u-strcoll.h: New file.
15741 2009-02-07 Bruno Haible <bruno@clisp.org>
15743 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15744 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15745 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15746 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15747 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15748 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15750 2009-02-07 Bruno Haible <bruno@clisp.org>
15753 * lib/unictype/gen-ctype.c (output_predicate, output_category,
15754 output_combclass, output_bidi_category, output_decimal_digit,
15755 output_digit, output_numeric, output_mirror, output_scripts,
15756 output_ident_category): Use proper width specifier in format strings.
15758 2009-02-07 Bruno Haible <bruno@clisp.org>
15760 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15763 2009-02-07 Jim Meyering <meyering@redhat.com>
15765 regex: avoid compilation failure with upcoming gcc-4.4
15766 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15767 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
15768 "... error: integer overflow in preprocessor expression".
15770 2009-02-05 Ben Pfaff <blp@gnu.org>
15772 Fix link errors on Windows when close module is used.
15773 * modules/close: Add $(LIB_CLOSE) to Link section.
15774 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15775 $(LIB_CLOSE) on Windows.
15777 2009-02-05 Jim Meyering <meyering@redhat.com>
15779 still avoid unused-parameter warnings, but do it cleanly
15780 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15781 (get_fs_usage): Cast to void instead.
15782 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15783 (dev_from_mount_options, read_file_system_list): Cast to void.
15784 Prompted by Bruno Haible.
15786 2009-02-04 Jim Meyering <meyering@redhat.com>
15788 fsusage.c: correct copyright year
15789 * lib/fsusage.c: Reflect year in which the change is pushed into
15791 avoid misc. warnings
15792 * lib/fsusage.c (UNUSED_PARAM): Define.
15793 (get_fs_usage): Mark parameter "disk" as unused.
15794 * lib/getugroups.c (getgrent): Use "void" in prototype.
15795 * lib/mountlist.c: Mark unused parameters.
15796 (read_file_system_list): Declare a local with "const".
15797 * lib/nanosleep.c (getnow): Declare static.
15798 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15800 dirfd: set errno upon failure
15801 * lib/dirfd.c: Include <errno.h>.
15802 Set errno to ENOTSUP when returning -1.
15803 * modules/dirfd (Depends-on): Add errno.
15804 Suggested by John Kodis <kodis@comcast.net>.
15806 2009-02-01 Bruno Haible <bruno@clisp.org>
15808 Don't assume sizeof (long) >= sizeof (void *).
15809 * lib/memcmp.c: Include stdint.h.
15810 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15811 srcp2 to 'const byte *'.
15812 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15813 types to uintptr_t.
15814 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15815 * modules/memcmp (Depends-on): Add stdint.
15816 Reported by Ozkan Sezer <sezeroz@gmail.com>.
15818 2009-01-30 Eric Blake <ebb9@byu.net>
15820 fix more require-before-expand issues
15821 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15822 expand, AC_PROG_AWK.
15823 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15825 2009-01-28 Eric Blake <ebb9@byu.net>
15827 version-etc: use consistent URL formatting
15828 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15829 Improve formatting. Use fputs for string without %.
15831 2009-01-28 Jim Meyering <meyering@redhat.com>
15833 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15834 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15835 "underquoted definition of NAME" from autoconf-2.59.
15837 2009-01-28 Bruno Haible <bruno@clisp.org>
15839 * doc/gnulib.texi: Add "Obsolete modules" to index.
15841 2009-01-28 Jim Meyering <meyering@redhat.com>
15843 useless-if-before-free: recognize more variants
15844 * build-aux/useless-if-before-free: Also recognize e.g.,
15845 if (NULL != p) free (p);
15847 2009-01-27 Mark McLoughlin <markmc@redhat.com>
15849 test-getaddrinfo: skip (don't fail) this test when there's no network
15850 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15851 on the presumption that it means you lack network access.
15853 2009-01-26 Jim Meyering <meyering@redhat.com>
15855 fflush: avoid warnings on modern systems
15856 * lib/fflush.c (rpl_fflush): Move declarations of locals,
15857 pos and result, into scopes where they're used.
15859 2009-01-26 Eric Blake <ebb9@byu.net>
15861 Silence warning reintroduced by recent extensions patch.
15862 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15863 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15866 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15867 * m4/00gnulib.m4: New file.
15868 * gnulib-tool (func_get_filelist): Always use it.
15869 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15870 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15872 2009-01-25 Bruno Haible <bruno@clisp.org>
15874 Make test-quotearg work on MacOS X and AIX.
15875 * tests/test-quotearg.sh: New file.
15876 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15877 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15878 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15879 include <libintl.h>.
15880 (fake_locale): Remove variable.
15881 (gettext, dgettext, dcgettext): Remove functions.
15882 (main): Instead of setting a fake locale, set a real locale. Call
15883 textdomain and bindtextdomain.
15884 * modules/quotearg-tests (Files): Add the new files.
15885 (Depends-on): Add gettext, setenv, unsetenv.
15886 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15887 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15888 Augment TESTS_ENVIRONMENT.
15890 2009-01-25 Bruno Haible <bruno@clisp.org>
15892 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15893 fr_FR.ISO8859-1 locale on MacOS X.
15894 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15895 ja_JP.eucJP locale on MacOS X.
15896 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15897 zh_CN.GB18030 locale on MacOS X.
15899 2009-01-25 Bruno Haible <bruno@clisp.org>
15901 Avoid link errors on MacOS X 10.3.
15902 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15903 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15905 2009-01-25 Bruno Haible <bruno@clisp.org>
15907 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15908 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15909 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15910 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15911 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15912 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15913 posix_spawnattr_init, posix_spawnattr_setsigmask,
15914 posix_spawnattr_setflags, posix_spawnattr_destroy.
15916 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15917 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15918 * modules/execute (Files): Remove m4/posix_spawn.m4.
15919 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15920 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15921 posix_spawnattr_init, posix_spawnattr_setsigmask,
15922 posix_spawnattr_setflags, posix_spawnattr_destroy.
15924 2009-01-25 Bruno Haible <bruno@clisp.org>
15926 * lib/glthread/threadlib.c: Include <stdlib.h>.
15928 2009-01-25 Bruno Haible <bruno@clisp.org>
15930 * lib/glthread/threadlib.c (dummy): New declaration.
15932 2009-01-25 Bruno Haible <bruno@clisp.org>
15934 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15935 multibyte characters also for the GB18030 encoding. Don't crash when
15936 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15938 2009-01-25 Bruno Haible <bruno@clisp.org>
15940 Avoid redefining 'struct random_data' on OSF/1 5.1.
15941 * lib/stdlib.in.h: Include <random.h> if it exists.
15942 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15943 HAVE_RANDOM_H. Include <random.h> when testing whether
15944 'struct random_data' exists.
15945 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15947 2009-01-25 Bruno Haible <bruno@clisp.org>
15949 Don't install charset.alias on MacOS X >= 10.3.
15950 * lib/localcharset.c (DARWIN7): New macro.
15951 (get_charset_aliases): Hardcode the result for Darwin7.
15952 * modules/localcharset (install-exec-local): Don't install
15953 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15955 2009-01-25 Bruno Haible <bruno@clisp.org>
15957 Don't install charset.alias on mingw and Cygwin.
15958 * modules/localcharset (install-exec-local): Don't install
15959 charset.alias on mingw and Cygwin, if the file does not yet exist.
15960 The result for these platforms is hardcoded in localcharset.c.
15962 2009-01-25 Bruno Haible <bruno@clisp.org>
15964 Make it possible again to use AC_GNU_SOURCE together with gnulib.
15965 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15966 before requiring AC_USE_SYSTEM_EXTENSIONS.
15968 2009-01-25 Jim Meyering <meyering@redhat.com>
15970 c-strtod: avoid warnings
15971 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15972 "assignment discards qualifiers from pointer target type" warnings.
15974 2009-01-24 Bruno Haible <bruno@clisp.org>
15976 Add support for non-UTF-8 locales on MacOS X.
15977 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15978 canonical encodings. For Darwin 7 and newer, don't map traditional
15979 encodings to UTF-8.
15980 Reported by Vincent Lefevre <vincent@vinc17.org>
15981 at <http://savannah.gnu.org/bugs/?25235>.
15983 2009-01-24 Bruno Haible <bruno@clisp.org>
15985 * doc/gnulib.texi (Obsolete modules): New section.
15986 Reported by Mike Frysinger <vapier@gentoo.org>.
15988 2009-01-24 Bruno Haible <bruno@clisp.org>
15990 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15993 2009-01-24 Bruno Haible <bruno@clisp.org>
15995 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15996 Reported by Eric Blake.
15998 2009-01-24 Bruno Haible <bruno@clisp.org>
16000 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16001 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16002 Reported by Gary V. Vaughan <gary@gnu.org>.
16004 2009-01-24 Bruno Haible <bruno@clisp.org>
16006 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16008 2009-01-23 Bruno Haible <bruno@clisp.org>
16010 Make c-strtod, c-strtold usable in libraries.
16011 * lib/c-strtod.c: Include string.h instead of xalloc.h.
16012 (C_STRTOD): Call strdup instead of xstrdup.
16013 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16014 * modules/c-strtold (Depends-on): Likewise.
16015 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16016 * NEWS: Mention the change.
16017 Reported by Michael Gold <mgold@ncf.ca>.
16019 2009-01-23 Jim Meyering <meyering@redhat.com>
16021 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16022 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16023 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16025 2009-01-23 Simon Josefsson <simon@josefsson.org>
16027 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16029 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16030 * modules/version-etc (Description): Update.
16032 2009-01-22 Bruno Haible <bruno@clisp.org>
16034 Cache the C locale object.
16035 * lib/c-strtod.c (c_locale_cache): New variable.
16036 (c_locale): New function.
16037 (C_STRTOD): Use it, and don't call freelocale.
16038 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16039 Suggested by Paolo Bonzini.
16041 2009-01-21 Bruno Haible <bruno@clisp.org>
16043 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16044 conditions other than overflow.
16046 2009-01-21 Bruno Haible <bruno@clisp.org>
16048 * lib/c-strtod.c: Include errno.h.
16049 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16050 value from STRTOD_L and STRTOD.
16052 2009-01-21 Bruno Haible <bruno@clisp.org>
16053 and Jim Meyering <meyering@redhat.com>
16055 nanosleep: skip configure test (fail it) for apple universal builds
16056 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16057 universal builds, assume that nanosleep does not work.
16058 * modules/nanosleep (Depends-on): Add multiarch.
16060 mktime: skip configure test (fail it) for apple universal builds
16061 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16062 universal builds, assume that mktime does not work.
16063 * modules/mktime (Depends-on): Add multiarch.
16065 2009-01-21 Eric Blake <ebb9@byu.net>
16067 multiarch: avoid expand-before-require warning
16068 * modules/multiarch (configure.ac): Require, rather than expand,
16070 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16071 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16072 enforce that all clients require it. Partial reversion of
16075 error: avoid expand-before-require warning
16076 * modules/errno (configure.ac): Require, rather than expand,
16078 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16079 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16080 enforce that all clients require it.
16082 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16083 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16084 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16085 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16087 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
16090 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16092 regex: do not depend on obsolete modules.
16093 * modules/regex: Remove memcmp and memmove.
16095 2009-01-20 Bruno Haible <bruno@clisp.org>
16097 Make the 'link' module link on Windows NT 4.
16098 * lib/link.c (_WIN32_WINNT): Don't define.
16099 (CreateHardLinkFuncType): New type.
16100 (CreateHardLinkFunc, initialized): New variables.
16101 (initialize): New function.
16102 (link): Invoke CreateHardLink indirectly through the function pointer.
16104 2009-01-20 Bruno Haible <bruno@clisp.org>
16106 Fix compilation failure on mingw.
16107 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16109 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
16111 * doc/c-strtod.texi: Mention a couple of restrictions.
16113 2009-01-20 Jim Meyering <meyering@redhat.com>
16115 gettimeofday: move more declarations out of functions
16116 * lib/gettimeofday.c: Move extern declarations of tzset and
16117 gmtime out of containing functions. Prompted by Bruno Haible.
16119 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16121 regex: do not depend on obsolete modules.
16122 * modules/regex: Remove memcmp and memmove.
16124 2009-01-19 Bruno Haible <bruno@clisp.org>
16126 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16127 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16128 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16129 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16130 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16132 2009-01-19 Bruno Haible <bruno@clisp.org>
16134 * tests/test-link.c: Include <errno.h>.
16135 (main): Exit with code 77 when a hard link cannot be created due to
16137 * tests/test-link.sh: Skip test when a hard link cannot be created due
16138 to the file system.
16139 Suggested by Eric Blake.
16141 2009-01-19 Martin Lambers <marlam@marlam.de>
16143 * modules/link-tests: New file.
16144 * tests/test-link.sh: New file.
16145 * tests/test-link.c: New file.
16147 2009-01-19 Eric Blake <ebb9@byu.net>
16149 doc: mention another function added in cygwin 1.7.0
16150 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16151 Another new function in cygwin 1.7.
16153 2009-01-19 Bruno Haible <bruno@clisp.org>
16155 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16156 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16157 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16158 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16159 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16160 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16161 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16162 * m4/md4.m4 (gl_MD4): Likewise.
16163 * m4/md5.m4 (gl_MD5): Likewise.
16164 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16165 * m4/sha1.m4 (gl_SHA1): Likewise.
16166 * m4/sha256.m4 (gl_SHA256): Likewise.
16167 * m4/sha512.m4 (gl_SHA512): Likewise.
16169 2009-01-19 Bruno Haible <bruno@clisp.org>
16171 * modules/uniname/uniname-tests (Depends-on): Add progname.
16172 * tests/uniname/test-uninames.c: Include progname.h.
16173 (main): Call set_program_name.
16175 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16176 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16177 (main): Call set_program_name.
16179 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16180 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16181 (main): Call set_program_name.
16183 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16184 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16185 (main): Call set_program_name.
16187 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16188 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16189 (main): Call set_program_name.
16191 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16192 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16193 (main): Call set_program_name.
16195 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16196 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16197 (main): Call set_program_name.
16199 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16200 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16201 (main): Call set_program_name.
16203 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16204 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16205 (main): Call set_program_name.
16207 2009-01-19 Eric Blake <ebb9@byu.net>
16209 test-unistd: test previous patch
16210 * tests/test-unistd.c: Test *_FILENO macros.
16212 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16213 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16214 Guarantee a definition.
16215 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16216 * modules/unistd-safer (Depends-on): Add dependency on unistd.
16217 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16218 * lib/dup-safer.c (STDERR_FILENO): Likewise.
16219 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16221 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16222 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16223 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16225 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16226 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16227 (STDERR_FILENO): Likewise.
16228 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16229 (STDERR_FILENO): Likewise.
16230 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16231 (STDERR_FILENO): Likewise.
16232 Reported by Elbert Pol.
16234 2009-01-19 Eric Blake <ebb9@byu.net>
16236 doc: mention more functions added in cygwin 1.7.0
16237 * doc/posix-functions/abort.texi (abort): Update wording related
16239 * doc/posix-functions/daylight.texi (daylight): Likewise.
16240 * doc/posix-functions/optarg.texi (optarg): Likewise.
16241 * doc/posix-functions/optarg.texi (opterr): Likewise.
16242 * doc/posix-functions/optarg.texi (optind): Likewise.
16243 * doc/posix-functions/optarg.texi (optopt): Likewise.
16244 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16245 worked in 1.5.x, and was withdrawn in 1.7.
16246 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16247 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16249 * doc/posix-functions/perror.texi (perror): Likewise.
16250 * doc/posix-functions/printf.texi (printf): Likewise.
16251 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16252 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16253 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16254 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16255 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16256 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16257 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16259 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16261 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16263 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16264 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16266 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16267 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16268 * doc/posix-functions/confstr.texi (confstr): Likewise.
16269 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16270 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16271 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16272 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16273 * doc/posix-functions/fputws.texi (fputws): Likewise.
16274 * doc/posix-functions/fwide.texi (fwide): Likewise.
16275 * doc/posix-functions/getwc.texi (getwc): Likewise.
16276 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16277 * doc/posix-functions/putwc.texi (putwc): Likewise.
16278 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16279 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16280 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16281 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16282 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16283 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16284 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16285 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16286 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16287 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16288 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16290 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16292 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16293 * lib/ioctl.c: Include <sys/ioctl.h>.
16295 2009-01-19 Simon Josefsson <simon@josefsson.org>
16297 * modules/getdate-tests (Depends-on): Add progname.
16298 * tests/test-getdate.c: Use progname module, to avoid link errors
16299 on non-glibc systems.
16301 2009-01-18 Simon Josefsson <simon@josefsson.org>
16303 * modules/filenamecat-tests (Depends-on): Add progname.
16304 * modules/fstrcmp-tests (Depends-on): Likewise.
16306 * tests/test-filenamecat.c: Use progname module, to avoid link
16307 errors on non-glibc systems.
16308 * tests/test-fstrcmp.c: Likewise.
16310 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
16312 gettimeofday: avoid warning: nested extern declaration of 'localtime'
16313 * lib/gettimeofday.c: Move extern declaration out of function.
16315 2009-01-18 Bruno Haible <bruno@clisp.org>
16317 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16318 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16319 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16321 2009-01-18 Bruno Haible <bruno@clisp.org>
16323 * lib/strftime.c (MEMPCPY): Remove unused macro.
16324 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16326 2009-01-18 Martin Lambers <marlam@marlam.de>
16329 * lib/unistd.in.h (link): New declaration.
16330 * lib/link.c: New file.
16331 * m4/link.m4: New file.
16332 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16334 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16335 * modules/link: New file.
16336 * doc/posix-functions/link.texi: Mention the new module.
16338 2009-01-18 Bruno Haible <bruno@clisp.org>
16340 * tests/test-avltree_list.c (main): Call set_program_name.
16341 * tests/test-avltree_oset.c (main): Likewise.
16342 * tests/test-obstack-printf.c: Include progname.h.
16343 (main): Call set_program_name.
16344 * tests/test-quotearg.c: Include progname.h.
16345 (main): Call set_program_name.
16346 * tests/test-xmemdup0.c: Include progname.h.
16347 (main): Call set_program_name.
16349 2009-01-18 Bruno Haible <bruno@clisp.org>
16351 New module 'alphasort'.
16352 * lib/dirent.in.h (alphasort): New declaration.
16353 * lib/alphasort.c: New file, from glibc with modifications.
16354 * m4/alphasort.m4: New file.
16355 * modules/alphasort: New file.
16356 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16358 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16360 * doc/posix-functions/alphasort.texi: Mention the new module and the
16361 portability problems.
16363 2009-01-18 Bruno Haible <bruno@clisp.org>
16365 New module 'scandir'.
16366 * lib/dirent.in.h (scandir): New declaration.
16367 * lib/scandir.c: New file, from glibc with modifications.
16368 * m4/scandir.m4: New file.
16369 * modules/scandir: New file.
16370 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16372 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16374 * doc/posix-functions/scandir.texi: Mention the new module and the
16375 portability problems.
16377 2009-01-17 Bruno Haible <bruno@clisp.org>
16379 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16380 Update documentation.
16381 (func_remove_suffix): Escape all dots in the suffix. Update
16383 (func_filter_filelist): Update documentation.
16384 Reported by Ralf Wildenhues.
16386 2009-01-17 Bruno Haible <bruno@clisp.org>
16388 * modules/dprintf-posix-tests: New file.
16389 * tests/test-dprintf-posix.sh: New file.
16390 * tests/test-dprintf-posix.c: New file.
16392 New modules 'dprintf', 'dprintf-posix'.
16393 * lib/stdio.in.h (dprintf): New declaration.
16394 * lib/dprintf.c: New file.
16395 * m4/dprintf.m4: New file.
16396 * m4/dprintf-posix.m4: New file.
16397 * modules/dprintf: New file.
16398 * modules/dprintf-posix: New file.
16399 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16400 HAVE_DPRINTF, REPLACE_DPRINTF.
16401 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16402 HAVE_DPRINTF, REPLACE_DPRINTF.
16403 * doc/posix-functions/dprintf.texi: Mention the new modules.
16405 2009-01-17 Bruno Haible <bruno@clisp.org>
16407 * modules/vdprintf-posix-tests: New file.
16408 * tests/test-vdprintf-posix.sh: New file.
16409 * tests/test-vdprintf-posix.c: New file.
16411 New modules 'vdprintf', 'vdprintf-posix'.
16412 * lib/stdio.in.h (vdprintf): New declaration.
16413 * lib/vdprintf.c: New file.
16414 * m4/vdprintf.m4: New file.
16415 * m4/vdprintf-posix.m4: New file.
16416 * modules/vdprintf: New file.
16417 * modules/vdprintf-posix: New file.
16418 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16419 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16420 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16421 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16422 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16424 2009-01-17 Bruno Haible <bruno@clisp.org>
16426 Fix replacement of fopen on mingw.
16427 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16430 2009-01-17 Bruno Haible <bruno@clisp.org>
16432 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16433 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16435 2009-01-17 Bruno Haible <bruno@clisp.org>
16437 Avoid test-fflush2.sh failure on mingw.
16438 * tests/test-fflush2.c: Include binary-io.h.
16439 (main): Put standard input into binary mode.
16440 * modules/fflush-tests (Depends-on): Add binary-io.
16442 2009-01-17 Bruno Haible <bruno@clisp.org>
16444 * lib/wchar.in.h: In another particular situation, include only the
16445 system's <wchar.h> file.
16446 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16447 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16448 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16450 2009-01-17 Bruno Haible <bruno@clisp.org>
16452 Support for stripping executables in --enable-relocatable.
16453 * build-aux/install-reloc: Expect one more argument, or an environment
16454 variable RELOC_STRIP_PROG. If set, strip the destination program and
16456 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16458 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16459 to set RELOCATABLE_STRIP.
16460 * NEWS: Mention the new Makefile requirement.
16462 2009-01-17 Bruno Haible <bruno@clisp.org>
16464 * build-aux/install-reloc: Remove debugging information left over by
16465 C compiler on MacOS X.
16467 2009-01-17 Bruno Haible <bruno@clisp.org>
16469 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16470 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16471 _NSGetExecutablePath.
16473 2009-01-16 Jim Meyering <meyering@redhat.com>
16475 strerror: avoid warnings about discarding "const"
16476 * lib/strerror.c (rpl_strerror): Instead of returning a const
16477 string from each and every "case", use a variable, and add a single
16478 cast after the switch.
16480 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16482 * lib/arpa_inet.in.h: Add extern "C" block for C++.
16484 2009-01-16 Bruno Haible <bruno@clisp.org>
16486 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16487 array initializer syntax that also works in C++ mode.
16488 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16490 2009-01-16 Jim Meyering <meyering@redhat.com>
16492 poll: suppress a warning
16493 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16494 to ignore "...unsigned expression < 0 is always false" warnings.
16496 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
16498 poll: remove declarations of unused variables
16499 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16500 sockbuf and optlen.
16502 2009-01-15 Bruno Haible <bruno@clisp.org>
16504 Make fflush-after-ungetc POSIX compliant on BSD systems.
16505 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16506 (clear_ungetc_buffer): Implement also for other systems.
16507 (rpl_fflush): On glibc systems, invoke
16508 clear_ungetc_buffer_preserving_position. Otherwise, invoke
16509 clear_ungetc_buffer after fetching the stream's position, not before.
16511 2009-01-15 Bruno Haible <bruno@clisp.org>
16513 Make fflush-after-ungetc POSIX compliant on glibc systems.
16514 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16516 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16517 (rpl_fflush): On glibc systems, simply call the system's fflush
16518 function after clearing the ungetc buffer.
16519 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16520 Instead, lseek only to the end of file, then use the system's fseeko
16521 for the rest. On glibc systems, reset the EOF indicator bit.
16523 2009-01-15 Jim Meyering <meyering@redhat.com>
16525 openmp.m4: revert quote-adding change, for portability to older autoconf
16526 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16527 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16528 Simon Josefsson noticed the problem when using autoconf-2.61.
16530 2009-01-15 Bruno Haible <bruno@clisp.org>
16532 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16533 * tests/test-fflush2.c (ASSERT): Always fail.
16534 (main): Add two tests for fflush() after ungetc(), taking into account
16535 the Austin Group's clarification.
16536 Suggested by Eric Blake.
16538 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16540 mktime.m4: remove K&R-style function prototypes
16541 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16542 for the Sun C++ compiler.
16544 2009-01-14 Bruno Haible <bruno@clisp.org>
16546 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16547 while including <wchar.h>.
16548 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16549 the system's <wchar.h> file.
16550 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16552 2009-01-14 Bruno Haible <bruno@clisp.org>
16554 * m4/csharp.m4: Don't mention gettext on the serial number line.
16555 * m4/csharpexec.m4: Likewise.
16556 * m4/eaccess.m4: Likewise.
16557 * m4/javaexec.m4: Likewise.
16558 * m4/sig_atomic_t.m4: Likewise.
16559 * m4/tmpdir.m4: Likewise.
16560 * m4/intldir.m4: Bump gettext version.
16561 * m4/lib-ld.m4: Likewise.
16563 2009-01-14 Bruno Haible <bruno@clisp.org>
16565 * lib/progname.c (set_program_name): Add more comments.
16566 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16568 2009-01-14 Simon Josefsson <simon@josefsson.org>
16570 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16571 were sys/stat.h does not define it.
16573 2009-01-14 Jim Meyering <meyering@redhat.com>
16575 many *.m4 files: improve m4 quoting
16576 99% of this change was performed by running the following commands:
16577 git ls-files | grep '\.m4$' | xargs perl -pi \
16578 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16579 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16580 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16581 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16582 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16583 The remainder were to add Copyright dates, increment serial numbers,
16584 undo some changes in comments, exclude m4/intl.m4, and add quotes
16585 around the "1" in ",1" where the unusual spacing prohibited the
16586 above regexps from doing the job. For more details, see
16587 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16588 * m4/acl.m4: Modified.
16589 * m4/afs.m4: Likewise.
16590 * m4/alloca.m4: Likewise.
16591 * m4/argp.m4: Likewise.
16592 * m4/argz.m4: Likewise.
16593 * m4/atexit.m4: Likewise.
16594 * m4/bison-i18n.m4: Likewise.
16595 * m4/bison.m4: Likewise.
16596 * m4/byteswap.m4: Likewise.
16597 * m4/c-stack.m4: Likewise.
16598 * m4/c-strtod.m4: Likewise.
16599 * m4/calloc.m4: Likewise.
16600 * m4/canonicalize-lgpl.m4: Likewise.
16601 * m4/chown.m4: Likewise.
16602 * m4/clock_time.m4: Likewise.
16603 * m4/codeset.m4: Likewise.
16604 * m4/copy-file.m4: Likewise.
16605 * m4/csharp.m4: Likewise.
16606 * m4/csharpcomp.m4: Likewise.
16607 * m4/csharpexec.m4: Likewise.
16608 * m4/d-ino.m4: Likewise.
16609 * m4/d-type.m4: Likewise.
16610 * m4/dirfd.m4: Likewise.
16611 * m4/double-slash-root.m4: Likewise.
16612 * m4/eaccess.m4: Likewise.
16613 * m4/eealloc.m4: Likewise.
16614 * m4/environ.m4: Likewise.
16615 * m4/errno_h.m4: Likewise.
16616 * m4/euidaccess.m4: Likewise.
16617 * m4/execute.m4: Likewise.
16618 * m4/fatal-signal.m4: Likewise.
16619 * m4/fchdir.m4: Likewise.
16620 * m4/fcntl_h.m4: Likewise.
16621 * m4/fileblocks.m4: Likewise.
16622 * m4/filenamecat.m4: Likewise.
16623 * m4/findprog.m4: Likewise.
16624 * m4/flexmember.m4: Likewise.
16625 * m4/fnmatch.m4: Likewise.
16626 * m4/fopen.m4: Likewise.
16627 * m4/fpending.m4: Likewise.
16628 * m4/fprintf-posix.m4: Likewise.
16629 * m4/free.m4: Likewise.
16630 * m4/frexp.m4: Likewise.
16631 * m4/frexpl.m4: Likewise.
16632 * m4/fsusage.m4: Likewise.
16633 * m4/ftruncate.m4: Likewise.
16634 * m4/gc-camellia.m4: Likewise.
16635 * m4/gc-random.m4: Likewise.
16636 * m4/gc.m4: Likewise.
16637 * m4/getaddrinfo.m4: Likewise.
16638 * m4/getcwd-abort-bug.m4: Likewise.
16639 * m4/getcwd-path-max.m4: Likewise.
16640 * m4/getdate.m4: Likewise.
16641 * m4/getdomainname.m4: Likewise.
16642 * m4/getgroups.m4: Likewise.
16643 * m4/gethostname.m4: Likewise.
16644 * m4/gethrxtime.m4: Likewise.
16645 * m4/getline.m4: Likewise.
16646 * m4/getloadavg.m4: Likewise.
16647 * m4/getndelim2.m4: Likewise.
16648 * m4/getpass.m4: Likewise.
16649 * m4/gettext.m4: Likewise.
16650 * m4/gettime.m4: Likewise.
16651 * m4/gettimeofday.m4: Likewise.
16652 * m4/gnulib-common.m4: Likewise.
16653 * m4/group-member.m4: Likewise.
16654 * m4/host-os.m4: Likewise.
16655 * m4/iconv.m4: Likewise.
16656 * m4/iconv_open.m4: Likewise.
16657 * m4/inet_ntop.m4: Likewise.
16658 * m4/inet_pton.m4: Likewise.
16659 * m4/inline.m4: Likewise.
16660 * m4/intldir.m4: Likewise.
16661 * m4/intlmacosx.m4: Likewise.
16662 * m4/intmax.m4: Likewise.
16663 * m4/intmax_t.m4: Likewise.
16664 * m4/inttypes.m4: Likewise.
16665 * m4/inttypes_h.m4: Likewise.
16666 * m4/inttypes-pri.m4: Likewise.
16667 * m4/isapipe.m4: Likewise.
16668 * m4/isnand.m4: Likewise.
16669 * m4/isnanf.m4: Likewise.
16670 * m4/isnanl.m4: Likewise.
16671 * m4/javacomp.m4: Likewise.
16672 * m4/javaexec.m4: Likewise.
16673 * m4/jm-winsz1.m4: Likewise.
16674 * m4/jm-winsz2.m4: Likewise.
16675 * m4/lchown.m4: Likewise.
16676 * m4/lcmessage.m4: Likewise.
16677 * m4/ldexpl.m4: Likewise.
16678 * m4/lib-ld.m4: Likewise.
16679 * m4/lib-link.m4: Likewise.
16680 * m4/libsigsegv.m4: Likewise.
16681 * m4/link-follow.m4: Likewise.
16682 * m4/localcharset.m4: Likewise.
16683 * m4/locale-fr.m4: Likewise.
16684 * m4/locale-ja.m4: Likewise.
16685 * m4/locale-tr.m4: Likewise.
16686 * m4/locale-zh.m4: Likewise.
16687 * m4/lock.m4: Likewise.
16688 * m4/longlong.m4: Likewise.
16689 * m4/ls-mntd-fs.m4: Likewise.
16690 * m4/lstat.m4: Likewise.
16691 * m4/malloc.m4: Likewise.
16692 * m4/mathl.m4: Likewise.
16693 * m4/mbrtowc.m4: Likewise.
16694 * m4/mbstate_t.m4: Likewise.
16695 * m4/mbswidth.m4: Likewise.
16696 * m4/memchr.m4: Likewise.
16697 * m4/memcmp.m4: Likewise.
16698 * m4/memcpy.m4: Likewise.
16699 * m4/memmem.m4: Likewise.
16700 * m4/memmove.m4: Likewise.
16701 * m4/mempcpy.m4: Likewise.
16702 * m4/memrchr.m4: Likewise.
16703 * m4/memset.m4: Likewise.
16704 * m4/minmax.m4: Likewise.
16705 * m4/mkdir-slash.m4: Likewise.
16706 * m4/mkdtemp.m4: Likewise.
16707 * m4/mktime.m4: Likewise.
16708 * m4/mmap-anon.m4: Likewise.
16709 * m4/mountlist.m4: Likewise.
16710 * m4/nanosleep.m4: Likewise.
16711 * m4/nls.m4: Likewise.
16712 * m4/nocrash.m4: Likewise.
16713 * m4/open.m4: Likewise.
16714 * m4/openat.m4: Likewise.
16715 * m4/openmp.m4: Likewise.
16716 * m4/pathmax.m4: Likewise.
16717 * m4/perl.m4: Likewise.
16718 * m4/physmem.m4: Likewise.
16719 * m4/pipe.m4: Likewise.
16720 * m4/po.m4: Likewise.
16721 * m4/poll.m4: Likewise.
16722 * m4/posixtm.m4: Likewise.
16723 * m4/posixver.m4: Likewise.
16724 * m4/printf-frexp.m4: Likewise.
16725 * m4/printf-frexpl.m4: Likewise.
16726 * m4/printf-posix.m4: Likewise.
16727 * m4/printf-posix-rpl.m4: Likewise.
16728 * m4/printf.m4: Likewise.
16729 * m4/progtest.m4: Likewise.
16730 * m4/putenv.m4: Likewise.
16731 * m4/readline.m4: Likewise.
16732 * m4/readlink.m4: Likewise.
16733 * m4/readutmp.m4: Likewise.
16734 * m4/realloc.m4: Likewise.
16735 * m4/regex.m4: Likewise.
16736 * m4/relocatable.m4: Likewise.
16737 * m4/relocatable-lib.m4: Likewise.
16738 * m4/rename-dest-slash.m4: Likewise.
16739 * m4/rename.m4: Likewise.
16740 * m4/rmdir-errno.m4: Likewise.
16741 * m4/rmdir.m4: Likewise.
16742 * m4/roundf.m4: Likewise.
16743 * m4/roundl.m4: Likewise.
16744 * m4/rpmatch.m4: Likewise.
16745 * m4/save-cwd.m4: Likewise.
16746 * m4/selinux-selinux-h.m4: Likewise.
16747 * m4/setenv.m4: Likewise.
16748 * m4/settime.m4: Likewise.
16749 * m4/sig2str.m4: Likewise.
16750 * m4/sig_atomic_t.m4: Likewise.
16751 * m4/signalblocking.m4: Likewise.
16752 * m4/signbit.m4: Likewise.
16753 * m4/sigpipe.m4: Likewise.
16754 * m4/sockets.m4: Likewise.
16755 * m4/sockpfaf.m4: Likewise.
16756 * m4/st_dm_mode.m4: Likewise.
16757 * m4/stat-time.m4: Likewise.
16758 * m4/stdbool.m4: Likewise.
16759 * m4/stdint.m4: Likewise.
16760 * m4/stdint_h.m4: Likewise.
16761 * m4/stpcpy.m4: Likewise.
16762 * m4/stpncpy.m4: Likewise.
16763 * m4/strcase.m4: Likewise.
16764 * m4/strchrnul.m4: Likewise.
16765 * m4/strcspn.m4: Likewise.
16766 * m4/strdup.m4: Likewise.
16767 * m4/strftime.m4: Likewise.
16768 * m4/strndup.m4: Likewise.
16769 * m4/strnlen.m4: Likewise.
16770 * m4/strpbrk.m4: Likewise.
16771 * m4/strptime.m4: Likewise.
16772 * m4/strsep.m4: Likewise.
16773 * m4/strtod.m4: Likewise.
16774 * m4/strtoimax.m4: Likewise.
16775 * m4/strtok_r.m4: Likewise.
16776 * m4/strtol.m4: Likewise.
16777 * m4/strtoll.m4: Likewise.
16778 * m4/strtoul.m4: Likewise.
16779 * m4/strtoull.m4: Likewise.
16780 * m4/strtoumax.m4: Likewise.
16781 * m4/strverscmp.m4: Likewise.
16782 * m4/threadlib.m4: Likewise.
16783 * m4/timegm.m4: Likewise.
16784 * m4/tm_gmtoff.m4: Likewise.
16785 * m4/tmpdir.m4: Likewise.
16786 * m4/tmpfile.m4: Likewise.
16787 * m4/tzset.m4: Likewise.
16788 * m4/uintmax_t.m4: Likewise.
16789 * m4/unlinkdir.m4: Likewise.
16790 * m4/unlocked-io.m4: Likewise.
16791 * m4/uptime.m4: Likewise.
16792 * m4/userspec.m4: Likewise.
16793 * m4/utimbuf.m4: Likewise.
16794 * m4/utime.m4: Likewise.
16795 * m4/utimes-null.m4: Likewise.
16796 * m4/utimes.m4: Likewise.
16797 * m4/vararrays.m4: Likewise.
16798 * m4/vasnprintf.m4: Likewise.
16799 * m4/vfprintf-posix.m4: Likewise.
16800 * m4/vprintf-posix.m4: Likewise.
16801 * m4/wait-process.m4: Likewise.
16802 * m4/wchar_t.m4: Likewise.
16803 * m4/wint_t.m4: Likewise.
16804 * m4/write-any-file.m4: Likewise.
16805 * m4/yield.m4: Likewise.
16807 2009-01-13 Bruno Haible <bruno@clisp.org>
16809 Avoid test-copy-file.sh failures when ACL support insufficient.
16810 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16812 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16813 Reported by Jim Meyering.
16815 2009-01-13 Bruno Haible <bruno@clisp.org>
16817 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16818 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16819 * modules/unistdio/u8-printf-parse (Files): Likewise.
16820 * modules/unistdio/u32-printf-parse (Files): Likewise.
16821 * modules/unistdio/ulc-printf-parse (Files): Likewise.
16823 2009-01-13 Simon Josefsson <simon@josefsson.org>
16825 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16826 and m4/inttypes_h.m4 too.
16828 2009-01-12 Eric Blake <ebb9@byu.net>
16830 tests: IRIX 6.2 cc can't compile -0.0 into .data
16831 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16832 rather than at compile-time.
16833 * tests/test-floorl.c (minus_zero): Likewise.
16834 * tests/test-frexpl.c (minus_zero): Likewise.
16835 * tests/test-isnan.c (minus_zerol): Likewise.
16836 * tests/test-isnanl.h (minus_zero): Likewise.
16837 * tests/test-ldexpl.c (minus_zero): Likewise.
16838 * tests/test-roundl.c (minus_zero): Likewise.
16839 * tests/test-signbit.c (minus_zerol): Likewise.
16840 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16841 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16842 * tests/test-truncl.c (minus_zero): Likewise.
16843 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16844 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16845 Reported by Tom G. Christensen and Nelson H. F. Beebe.
16847 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16849 regex: fix glibc bug 9697
16850 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16853 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16855 regex: fix glibc bug 697
16856 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16857 being NULL also if there are no backreferences.
16859 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16861 regex: merge glibc changes
16862 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16863 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16864 re_string_skip_chars, re_string_reconstruct): Likewise.
16865 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16867 2009-01-07 Jim Meyering <meyering@redhat.com>
16869 poll: filter through cppi
16870 * lib/poll.c: Indent cpp directives to reflect nesting.
16872 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16874 poll: don't return uninitialized
16875 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16877 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16879 avoid compile failure on AIX 6.1
16880 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16881 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16883 2009-01-04 Jim Meyering <meyering@redhat.com>
16885 remove duplicate inclusion of <stdio.h>
16886 * tests/test-fprintf-posix.c: Likewise.
16887 * tests/test-printf-posix.c: Likewise.
16888 * tests/test-snprintf-posix.c: Likewise.
16889 * tests/test-sprintf-posix.c: Likewise.
16890 * tests/test-vasprintf-posix.c: Likewise.
16891 * tests/test-vfprintf-posix.c: Likewise.
16892 * tests/test-vprintf-posix.c: Likewise.
16893 * tests/test-vsnprintf-posix.c: Likewise.
16894 * tests/test-vsprintf-posix.c: Likewise.
16896 2009-01-03 Jim Meyering <meyering@redhat.com>
16898 gnulib-tool: fix sed-based filtering
16899 * gnulib-tool (func_filter_filelist): Remove extra backslash
16900 in sed_fff_filter definition.
16902 2009-01-02 Jim Meyering <meyering@redhat.com>
16904 strftime: avoid compilation failure on Solaris 2.6
16905 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16906 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16907 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16908 be available. Reported by Tom G. Christensen. Details in
16909 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16911 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16912 Bruno Haible <bruno@clisp.org>
16914 Speed up gnulib-tool by doing more string processing through shell
16916 * gnulib-tool (fast_func_append): New variable.
16917 (func_remove_prefix, func_remove_suffix): New functions.
16918 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16919 (func_filter_filelist): New function.
16920 (func_get_dependencies): Use func_remove_suffix instead of sed.
16921 (func_get_automake_snippet): Use func_filter_filelist instead of a
16922 subshell and sed invocation.
16924 2009-01-01 Bruno Haible <bruno@clisp.org>
16926 Fix a security bug.
16927 * gnulib-tool (func_import, import, update): Don't allow the characters
16928 '"', '$', '`', '\' in macro arguments that become part of commands that
16931 2009-01-01 Bruno Haible <bruno@clisp.org>
16933 * gnulib-tool (func_reset_sigpipe): Add more comments.
16935 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16937 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16938 func_emit_tests_Makefile_am, func_import): Abort loops early if we
16939 already know the answer.
16941 2009-01-01 Jim Meyering <meyering@redhat.com>
16943 * lib/version-etc.c (version_etc_va): Update copyright year.
16945 2008-12-30 Bruno Haible <bruno@clisp.org>
16947 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16948 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16949 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16951 2008-12-29 Eric Blake <ebb9@byu.net>
16953 multiarch: avoid autoconf AC_REQUIRE bug
16954 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16955 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16957 Reported by Bruno Haible, and analyzed in
16958 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16960 2008-12-29 Bruno Haible <bruno@clisp.org>
16962 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16963 files in subdirectories correctly.
16964 Reported by Ralf Wildenhues.
16966 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16968 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16969 rather than 'join FILE -', for Solaris join.
16971 2008-12-29 Bruno Haible <bruno@clisp.org>
16973 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16975 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16976 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16977 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16978 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16979 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16980 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16981 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16982 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16983 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16984 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16985 * m4/nls.m4 (AM_NLS): Likewise.
16986 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16987 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16988 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16989 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16990 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16991 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16992 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16993 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16994 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16995 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16996 * m4/xsize.m4 (gl_XSIZE): Likewise.
16997 Suggested by Jim Meyering.
16999 2008-11-17 Bruce Korb <bkorb@gnu.org>
17001 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17002 * lib/parse-duration.c: use a switch instead of cascading if's.
17004 2008-12-29 Eric Blake <ebb9@byu.net>
17006 wchar.h: supply WEOF on Irix 5.3
17007 * lib/wchar.in.h (wint_t): Also supply WEOF.
17008 * lib/wctype.in.h (wint_t): Likewise.
17009 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17010 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17011 Reported by Tom G. Christensen.
17013 2008-12-26 Bruno Haible <bruno@clisp.org>
17015 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17018 2008-12-26 Bruno Haible <bruno@clisp.org>
17020 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17022 2008-12-26 Bruno Haible <bruno@clisp.org>
17024 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17025 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17026 not __STDC_CONSTANT_MACROS.
17027 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17029 2008-12-25 Bruno Haible <bruno@clisp.org>
17031 Add support for universal builds to vasnprintf.
17032 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17033 universal builds, guess no.
17034 * modules/vasnprintf-posix (Depends-on): Add multiarch.
17035 * modules/vasprintf-posix (Depends-on): Likewise.
17036 * modules/fprintf-posix (Depends-on): Likewise.
17037 * modules/vfprintf-posix (Depends-on): Likewise.
17038 * modules/snprintf-posix (Depends-on): Likewise.
17039 * modules/vsnprintf-posix (Depends-on): Likewise.
17040 * modules/sprintf-posix (Depends-on): Likewise.
17041 * modules/vsprintf-posix (Depends-on): Likewise.
17042 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17043 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17044 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17045 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17046 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17047 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17048 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17050 Add support for universal builds to <inttypes.h>.
17051 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17052 _SCNu64_PREFIX): In Apple
17053 universal builds, define directly, using _LP64.
17054 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17055 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17056 * modules/inttypes (Depends-on): Add multiarch.
17057 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17059 Add support for universal builds to <stdint.h>.
17060 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17061 universal builds, define directly, using _LP64.
17062 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17063 Apple universal builds, don't test for the size and suffix of ptrdiff_t
17065 * modules/stdint (Depends-on): Add multiarch.
17066 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17068 New module 'multiarch'.
17069 * modules/multiarch: New file.
17070 * m4/multiarch.m4: New file.
17072 2008-12-25 Bruno Haible <bruno@clisp.org>
17074 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17076 2008-12-25 Bruno Haible <bruno@clisp.org>
17078 * modules/btowc (License): Relicense under LGPLv2+.
17079 * modules/mbsinit (License): Likewise.
17080 * modules/mbrtowc (License): Likewise.
17081 * modules/wcrtomb (License): Likewise.
17082 * modules/streq (License): Likewise.
17083 Reported by David Lutterkort <lutter@redhat.com>.
17085 2008-12-23 Bruno Haible <bruno@clisp.org>
17087 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17089 2008-12-23 Bruno Haible <bruno@clisp.org>
17091 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17092 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17093 GETADDRINFO_LIB, not in LIBS.
17094 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17095 * modules/canon-host (Link): Likewise.
17096 * NEWS: Mention the change.
17097 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17100 2008-12-22 Bruno Haible <bruno@clisp.org>
17102 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17103 * doc/posix-functions/iswalpha_l.texi: Likewise.
17104 * doc/posix-functions/iswblank_l.texi: Likewise.
17105 * doc/posix-functions/iswcntrl_l.texi: Likewise.
17106 * doc/posix-functions/iswctype_l.texi: Likewise.
17107 * doc/posix-functions/iswdigit_l.texi: Likewise.
17108 * doc/posix-functions/iswgraph_l.texi: Likewise.
17109 * doc/posix-functions/iswlower_l.texi: Likewise.
17110 * doc/posix-functions/iswprint_l.texi: Likewise.
17111 * doc/posix-functions/iswpunct_l.texi: Likewise.
17112 * doc/posix-functions/iswspace_l.texi: Likewise.
17113 * doc/posix-functions/iswupper_l.texi: Likewise.
17114 * doc/posix-functions/iswxdigit_l.texi: Likewise.
17115 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17116 * doc/posix-functions/open_wmemstream.texi: Likewise.
17117 * doc/posix-functions/swscanf.texi: Likewise.
17118 * doc/posix-functions/towctrans_l.texi: Likewise.
17119 * doc/posix-functions/towlower.texi: Likewise.
17120 * doc/posix-functions/towlower_l.texi: Likewise.
17121 * doc/posix-functions/towupper.texi: Likewise.
17122 * doc/posix-functions/towupper_l.texi: Likewise.
17123 * doc/posix-functions/vfwprintf.texi: Likewise.
17124 * doc/posix-functions/vfwscanf.texi: Likewise.
17125 * doc/posix-functions/vswscanf.texi: Likewise.
17126 * doc/posix-functions/vwprintf.texi: Likewise.
17127 * doc/posix-functions/vwscanf.texi: Likewise.
17128 * doc/posix-functions/wcpcpy.texi: Likewise.
17129 * doc/posix-functions/wcpncpy.texi: Likewise.
17130 * doc/posix-functions/wcscasecmp.texi: Likewise.
17131 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17132 * doc/posix-functions/wcscoll_l.texi: Likewise.
17133 * doc/posix-functions/wcsdup.texi: Likewise.
17134 * doc/posix-functions/wcsncasecmp.texi: Likewise.
17135 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17136 * doc/posix-functions/wcsnlen.texi: Likewise.
17137 * doc/posix-functions/wcsnrtombs.texi: Likewise.
17138 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17139 * doc/posix-functions/wctrans_l.texi: Likewise.
17140 * doc/posix-functions/wctype_l.texi: Likewise.
17141 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17142 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17143 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17144 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17145 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17146 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17147 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17148 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17149 * doc/glibc-functions/wcschrnul.texi: Likewise.
17150 * doc/glibc-functions/wcsftime_l.texi: Likewise.
17151 * doc/glibc-functions/wcstod_l.texi: Likewise.
17152 * doc/glibc-functions/wcstof_l.texi: Likewise.
17153 * doc/glibc-functions/wcstol_l.texi: Likewise.
17154 * doc/glibc-functions/wcstold_l.texi: Likewise.
17155 * doc/glibc-functions/wcstoll_l.texi: Likewise.
17156 * doc/glibc-functions/wcstoq.texi: Likewise.
17157 * doc/glibc-functions/wcstoul_l.texi: Likewise.
17158 * doc/glibc-functions/wcstoull_l.texi: Likewise.
17159 * doc/glibc-functions/wcstouq.texi: Likewise.
17160 * doc/glibc-functions/wmempcpy.texi: Likewise.
17162 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
17163 Eric Blake <ebb9@byu.net>
17164 Paolo Bonzini <bonzini@gnu.org>
17165 Bruno Haible <bruno@clisp.org>
17167 Make c-stack work on Haiku.
17168 * lib/c-stack.c (SA_ONSTACK): Define fallback.
17169 (c_stack_action): Use SA_ONSTACK flag.
17171 2008-12-22 Bruno Haible <bruno@clisp.org>
17173 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17175 2008-12-22 Bruno Haible <bruno@clisp.org>
17177 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17178 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17180 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17182 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17183 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17184 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17185 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17187 2008-12-22 Bruno Haible <bruno@clisp.org>
17189 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17192 2008-12-22 Eric Blake <ebb9@byu.net>
17194 Avoid gcc warnings on cygwin.
17195 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17196 Avoid unused variable.
17197 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17200 2008-12-22 Bruno Haible <bruno@clisp.org>
17202 Remove HAVE_MBRTOWC conditionals.
17203 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17204 (mbscasecmp): Assume mbrtowc function.
17205 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17206 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17207 * lib/mbschr.c: Include mbuiter.h unconditionally.
17208 (mbschr): Assume mbrtowc function.
17209 * lib/mbscspn.c: Include mbuiter.h unconditionally.
17210 (mbscspn): Assume mbrtowc function.
17211 * lib/mbslen.c: Include mbuiter.h unconditionally.
17212 (mbslen): Assume mbrtowc function.
17213 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17214 (mbsncasecmp): Assume mbrtowc function.
17215 * lib/mbsnlen.c: Include mbiter.h unconditionally.
17216 (mbsnlen): Assume mbrtowc function.
17217 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17218 (mbspbrk): Assume mbrtowc function.
17219 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17220 (mbspcasecmp): Assume mbrtowc function.
17221 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17222 (mbsrchr): Assume mbrtowc function.
17223 * lib/mbssep.c: Include mbuiter.h unconditionally.
17224 (mbssep): Assume mbrtowc function.
17225 * lib/mbsspn.c: Include mbuiter.h unconditionally.
17226 (mbsspn): Assume mbrtowc function.
17227 * lib/mbsstr.c: Include mbuiter.h unconditionally.
17228 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17229 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17230 (mbstok_r): Assume mbrtowc function.
17231 * lib/propername.c: Include mbuiter.h unconditionally.
17232 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17233 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17234 (trim2): Assume mbrtowc function.
17235 * lib/mbswidth.c (mbsinit): Remove fallback definition.
17236 (mbsnwidth): Assume mbrtowc function.
17237 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17238 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17239 fallback definitions.
17240 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17242 2008-12-22 Bruno Haible <bruno@clisp.org>
17244 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17246 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
17248 * modules/regex: Request emulations for the mb*/wc* functions we need.
17249 * m4/regex.m4: Don't look for those functions here.
17250 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17252 2008-12-22 Bruno Haible <bruno@clisp.org>
17254 * modules/fnmatch (Depends-on): Remove duplicated dependency.
17256 2008-12-21 Bruno Haible <bruno@clisp.org>
17258 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17259 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17260 (Include): Remove conditionalization.
17261 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17262 (Include): Remove conditionalization.
17263 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17264 (Include): Remove conditionalization.
17265 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17266 * m4/mbfile.m4 (gl_MBFILE): Likewise.
17267 * NEWS: Mention the change.
17268 Reported by Alan Hourihane <alanh@fairlite.co.uk>
17269 via Sergey Poznyakoff <gray@gnu.org.ua>.
17271 2008-12-21 Bruno Haible <bruno@clisp.org>
17273 * MODULES.html.sh (Extended multibyte and wide character utilities
17274 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17275 wcrtomb, wcsrtombs.
17276 (Support for systems lacking POSIX:2008): Add accept, bind, close,
17277 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17278 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17279 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17281 2008-12-21 Bruno Haible <bruno@clisp.org>
17283 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17285 2008-12-21 Bruno Haible <bruno@clisp.org>
17287 * modules/wcsnrtombs-tests: New file.
17288 * tests/test-wcsnrtombs1.sh: New file.
17289 * tests/test-wcsnrtombs2.sh: New file.
17290 * tests/test-wcsnrtombs3.sh: New file.
17291 * tests/test-wcsnrtombs4.sh: New file.
17292 * tests/test-wcsnrtombs.c: New file.
17294 New module 'wcsnrtombs'.
17295 * lib/wchar.in.h (wcsnrtombs): New declaration.
17296 * lib/wcsnrtombs.c: New file.
17297 * lib/wcsrtombs-state.c: New file.
17298 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17299 (internal_state): Remove variable.
17300 * m4/wcsnrtombs.m4: New file.
17301 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17303 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17305 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17307 * modules/wcsnrtombs: New file.
17308 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17309 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17311 2008-12-21 Bruno Haible <bruno@clisp.org>
17313 * modules/wcsrtombs-tests: New file.
17314 * tests/test-wcsrtombs1.sh: New file.
17315 * tests/test-wcsrtombs2.sh: New file.
17316 * tests/test-wcsrtombs3.sh: New file.
17317 * tests/test-wcsrtombs4.sh: New file.
17318 * tests/test-wcsrtombs.c: New file.
17320 New module 'wcsrtombs'.
17321 * lib/wchar.in.h (wcsrtombs): New declaration.
17322 * lib/wcsrtombs.c: New file.
17323 * m4/wcsrtombs.m4: New file.
17324 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17325 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17326 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17327 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17328 * modules/wcsrtombs: New file.
17329 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17332 2008-12-21 Bruno Haible <bruno@clisp.org>
17334 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17335 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17336 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17337 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17339 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17340 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17341 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17342 m4/locale-zh.m4, m4/codeset.m4.
17343 * doc/posix-functions/wcrtomb.texi: Document the bug.
17345 2008-12-21 Bruno Haible <bruno@clisp.org>
17347 Work around a btowc() bug on IRIX 6.5.
17348 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17349 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17350 REPLACE_WTOBC if not.
17351 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17352 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17353 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17355 2008-12-21 Bruno Haible <bruno@clisp.org>
17357 * modules/wcrtomb-tests: New file.
17358 * tests/test-wcrtomb.sh: New file.
17359 * tests/test-wcrtomb.c: New file.
17361 New module 'wcrtomb'.
17362 * lib/wchar.in.h (wcrtomb): New declaration.
17363 * lib/wcrtomb.c: New file.
17364 * m4/wcrtomb.m4: New file.
17365 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17367 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17369 * modules/wcrtomb: New file.
17370 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17372 2008-12-21 Bruno Haible <bruno@clisp.org>
17374 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17375 * modules/mbsrtowcs (Files): Likewise.
17376 * modules/wctob (Files): Likewise.
17377 * modules/c-strcase-tests (Files): Likewise.
17378 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17379 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17380 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17381 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17382 * modules/vasnprintf-posix-tests (Files): Likewise.
17384 2008-12-21 William Pursell <bill.pursell@gmail.com>
17386 gitlog-to-changelog: pass all command-line arguments to git-log
17387 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17388 it is sometimes convenient to filter the commits in various ways.
17389 gitlog-to-changelog only allows --since to specify a start date,
17390 but git-log itself supports many other filtering mechanisms.
17391 At the moment, I want to filter by branch name. Rather than
17392 adding a --branch option to gitlog-to-changelog, it seems more
17393 flexible to simply pass all options directly to git-log and let
17394 git do the work. Notice that this effectively makes --since a
17395 redundant option for gitlog-to-changelog, but removing it would
17396 require current usage to change since calls would then require
17397 an additional '--'.
17399 2008-12-21 Bruno Haible <bruno@clisp.org>
17401 * modules/mbsnrtowcs-tests: New file.
17402 * tests/test-mbsnrtowcs1.sh: New file.
17403 * tests/test-mbsnrtowcs2.sh: New file.
17404 * tests/test-mbsnrtowcs3.sh: New file.
17405 * tests/test-mbsnrtowcs4.sh: New file.
17406 * tests/test-mbsnrtowcs.c: New file.
17408 New module 'mbsnrtowcs'.
17409 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17410 * lib/mbsnrtowcs.c: New file.
17411 * lib/mbsrtowcs-state.c: New file.
17412 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17413 (internal_state): Remove variable.
17414 * m4/mbsnrtowcs.m4: New file.
17415 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17417 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17418 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17419 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17420 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17421 * modules/mbsnrtowcs: New file.
17422 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17423 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17424 portability problem.
17426 2008-12-21 Bruno Haible <bruno@clisp.org>
17428 Work around mbsrtowcs bug.
17429 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17430 (gl_FUNC_MBSRTOWCS): Invoke it.
17431 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17433 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17435 2008-12-21 Bruno Haible <bruno@clisp.org>
17437 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17439 2008-12-21 Bruno Haible <bruno@clisp.org>
17441 Update doc for AIX.
17442 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17443 16-bit wchar_t type.
17444 * doc/posix-functions/btowc.texi: Likewise.
17445 * doc/posix-functions/fgetwc.texi: Likewise.
17446 * doc/posix-functions/fgetws.texi: Likewise.
17447 * doc/posix-functions/fputwc.texi: Likewise.
17448 * doc/posix-functions/fputws.texi: Likewise.
17449 * doc/posix-functions/fwide.texi: Likewise.
17450 * doc/posix-functions/fwprintf.texi: Likewise.
17451 * doc/posix-functions/fwscanf.texi: Likewise.
17452 * doc/posix-functions/getwchar.texi: Likewise.
17453 * doc/posix-functions/getwc.texi: Likewise.
17454 * doc/posix-functions/iswalnum.texi: Likewise.
17455 * doc/posix-functions/iswalpha.texi: Likewise.
17456 * doc/posix-functions/iswblank.texi: Likewise.
17457 * doc/posix-functions/iswcntrl.texi: Likewise.
17458 * doc/posix-functions/iswctype.texi: Likewise.
17459 * doc/posix-functions/iswdigit.texi: Likewise.
17460 * doc/posix-functions/iswgraph.texi: Likewise.
17461 * doc/posix-functions/iswlower.texi: Likewise.
17462 * doc/posix-functions/iswprint.texi: Likewise.
17463 * doc/posix-functions/iswpunct.texi: Likewise.
17464 * doc/posix-functions/iswspace.texi: Likewise.
17465 * doc/posix-functions/iswupper.texi: Likewise.
17466 * doc/posix-functions/iswxdigit.texi: Likewise.
17467 * doc/posix-functions/mbrtowc.texi: Likewise.
17468 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17469 * doc/posix-functions/mbstowcs.texi: Likewise.
17470 * doc/posix-functions/mbtowc.texi: Likewise.
17471 * doc/posix-functions/putwchar.texi: Likewise.
17472 * doc/posix-functions/putwc.texi: Likewise.
17473 * doc/posix-functions/swprintf.texi: Likewise.
17474 * doc/posix-functions/tolower.texi: Likewise.
17475 * doc/posix-functions/toupper.texi: Likewise.
17476 * doc/posix-functions/towctrans.texi: Likewise.
17477 * doc/posix-functions/ungetwc.texi: Likewise.
17478 * doc/posix-functions/vswprintf.texi: Likewise.
17479 * doc/posix-functions/wcrtomb.texi: Likewise.
17480 * doc/posix-functions/wcscat.texi: Likewise.
17481 * doc/posix-functions/wcschr.texi: Likewise.
17482 * doc/posix-functions/wcscmp.texi: Likewise.
17483 * doc/posix-functions/wcscoll.texi: Likewise.
17484 * doc/posix-functions/wcscpy.texi: Likewise.
17485 * doc/posix-functions/wcscspn.texi: Likewise.
17486 * doc/posix-functions/wcsftime.texi: Likewise.
17487 * doc/posix-functions/wcslen.texi: Likewise.
17488 * doc/posix-functions/wcsncat.texi: Likewise.
17489 * doc/posix-functions/wcsncmp.texi: Likewise.
17490 * doc/posix-functions/wcsncpy.texi: Likewise.
17491 * doc/posix-functions/wcspbrk.texi: Likewise.
17492 * doc/posix-functions/wcsrchr.texi: Likewise.
17493 * doc/posix-functions/wcsrtombs.texi: Likewise.
17494 * doc/posix-functions/wcsspn.texi: Likewise.
17495 * doc/posix-functions/wcsstr.texi: Likewise.
17496 * doc/posix-functions/wcstod.texi: Likewise.
17497 * doc/posix-functions/wcstof.texi: Likewise.
17498 * doc/posix-functions/wcstoimax.texi: Likewise.
17499 * doc/posix-functions/wcstok.texi: Likewise.
17500 * doc/posix-functions/wcstold.texi: Likewise.
17501 * doc/posix-functions/wcstoll.texi: Likewise.
17502 * doc/posix-functions/wcstol.texi: Likewise.
17503 * doc/posix-functions/wcstombs.texi: Likewise.
17504 * doc/posix-functions/wcstoull.texi: Likewise.
17505 * doc/posix-functions/wcstoul.texi: Likewise.
17506 * doc/posix-functions/wcstoumax.texi: Likewise.
17507 * doc/posix-functions/wcswidth.texi: Likewise.
17508 * doc/posix-functions/wcsxfrm.texi: Likewise.
17509 * doc/posix-functions/wctob.texi: Likewise.
17510 * doc/posix-functions/wctomb.texi: Likewise.
17511 * doc/posix-functions/wctrans.texi: Likewise.
17512 * doc/posix-functions/wctype.texi: Likewise.
17513 * doc/posix-functions/wcwidth.texi: Likewise.
17514 * doc/posix-functions/wmemchr.texi: Likewise.
17515 * doc/posix-functions/wmemcmp.texi: Likewise.
17516 * doc/posix-functions/wmemcpy.texi: Likewise.
17517 * doc/posix-functions/wmemmove.texi: Likewise.
17518 * doc/posix-functions/wmemset.texi: Likewise.
17519 * doc/posix-functions/wprintf.texi: Likewise.
17520 * doc/posix-functions/wscanf.texi: Likewise.
17522 2008-12-21 Bruno Haible <bruno@clisp.org>
17524 Update doc for HP-UX 11.11.
17525 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17526 in HP-UX version 11.00, not in all versions of HP-UX 11.
17527 * doc/posix-functions/fwide.texi: Likewise.
17528 * doc/posix-functions/fwprintf.texi: Likewise.
17529 * doc/posix-functions/fwscanf.texi: Likewise.
17530 * doc/posix-functions/inet_ntop.texi: Likewise.
17531 * doc/posix-functions/inet_pton.texi: Likewise.
17532 * doc/posix-functions/mbrlen.texi: Likewise.
17533 * doc/posix-functions/mbrtowc.texi: Likewise.
17534 * doc/posix-functions/mbsinit.texi: Likewise.
17535 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17536 * doc/posix-functions/swprintf.texi: Likewise.
17537 * doc/posix-functions/swscanf.texi: Likewise.
17538 * doc/posix-functions/towctrans.texi: Likewise.
17539 * doc/posix-functions/vfwprintf.texi: Likewise.
17540 * doc/posix-functions/vswprintf.texi: Likewise.
17541 * doc/posix-functions/vwprintf.texi: Likewise.
17542 * doc/posix-functions/wcrtomb.texi: Likewise.
17543 * doc/posix-functions/wcsrtombs.texi: Likewise.
17544 * doc/posix-functions/wcsstr.texi: Likewise.
17545 * doc/posix-functions/wctob.texi: Likewise.
17546 * doc/posix-functions/wctrans.texi: Likewise.
17547 * doc/posix-functions/wmemchr.texi: Likewise.
17548 * doc/posix-functions/wmemcmp.texi: Likewise.
17549 * doc/posix-functions/wmemcpy.texi: Likewise.
17550 * doc/posix-functions/wmemmove.texi: Likewise.
17551 * doc/posix-functions/wmemset.texi: Likewise.
17552 * doc/posix-functions/wprintf.texi: Likewise.
17553 * doc/posix-functions/wscanf.texi: Likewise.
17555 2008-12-21 Bruno Haible <bruno@clisp.org>
17557 Work around a portability problem.
17558 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17559 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17561 2008-12-20 Bruno Haible <bruno@clisp.org>
17563 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17564 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17565 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17566 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17567 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17569 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17570 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17572 (GNULIB_defined_mbstate_t): New macro.
17573 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17574 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17575 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17576 reuses the system's mbrtowc function but works around the bugs.
17577 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17578 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17580 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17581 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17582 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17583 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17584 REPLACE_MBSINIT if mbsinit needs to be overridden.
17585 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17586 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17587 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17588 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17589 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17591 (Depends): Add mbsinit.
17592 * modules/mbsinit (Depends): Add mbrtowc.
17593 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17595 2008-12-20 Bruno Haible <bruno@clisp.org>
17597 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17598 so that there are no conversion errors on AIX.
17599 * tests/test-mbsrtowcs.c (main): LIkewise.
17601 2008-12-20 Bruno Haible <bruno@clisp.org>
17603 Work around wctob bug on Solaris <= 9.
17604 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17605 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17606 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17607 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17608 * modules/wctob (Files): Add m4/locale-fr.m4.
17609 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17611 2008-12-20 Bruno Haible <bruno@clisp.org>
17613 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17615 * tests/test-select-in.sh: Likewise.
17616 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17618 2008-12-20 Bruno Haible <bruno@clisp.org>
17620 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17621 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17624 2008-12-20 Bruno Haible <bruno@clisp.org>
17626 Ensure mbstate_t is defined on HP-UX 11.11.
17627 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17628 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17629 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17630 AC_USE_SYSTEM_EXTENSIONS.
17631 * modules/fnmatch (Depends-on): Add extensions.
17632 * modules/mbrlen (Depends-on): Likewise.
17633 * modules/mbrtowc (Depends-on): Likewise.
17634 * modules/mbsinit (Depends-on): Likewise.
17635 * modules/mbsrtowcs (Depends-on): Likewise.
17636 * modules/mbswidth (Depends-on): Likewise.
17637 * modules/quotearg (Depends-on): Likewise.
17638 * modules/strftime (Depends-on): Likewise.
17640 2008-12-20 Bruno Haible <bruno@clisp.org>
17642 Ensure wctob is declared on IRIX 6.5.
17643 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17644 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17645 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17646 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17648 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17650 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17652 2008-12-19 Bruno Haible <bruno@clisp.org>
17654 * modules/mbsrtowcs-tests: New file.
17655 * tests/test-mbsrtowcs1.sh: New file.
17656 * tests/test-mbsrtowcs2.sh: New file.
17657 * tests/test-mbsrtowcs3.sh: New file.
17658 * tests/test-mbsrtowcs4.sh: New file.
17659 * tests/test-mbsrtowcs.c: New file.
17661 New module 'mbsrtowcs'.
17662 * lib/wchar.in.h (mbsrtowcs): New declaration.
17663 * lib/mbsrtowcs.c: New file.
17664 * m4/mbsrtowcs.m4: New file.
17665 * modules/mbsrtowcs: New file.
17666 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17668 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17670 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17672 2008-12-19 Bruno Haible <bruno@clisp.org>
17674 New module 'mbrlen'.
17675 * lib/wchar.in.h (mbrlen): New declaration.
17676 * lib/mbrlen.c: New file.
17677 * m4/mbrlen.m4: New file.
17678 * modules/mbrlen: New file.
17679 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17681 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17683 * doc/posix-functions/mbrlen.texi: Document the new module.
17685 2008-12-19 Bruno Haible <bruno@clisp.org>
17687 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17688 * modules/mbrtowc (Depends-on): Add verify.
17689 Suggested by Paul Eggert.
17691 2008-12-18 Bruno Haible <bruno@clisp.org>
17693 * modules/mbsinit-tests: New file.
17694 * tests/test-mbsinit.sh: New file.
17695 * tests/test-mbsinit.c: New file.
17697 2008-12-18 Bruno Haible <bruno@clisp.org>
17699 * modules/mbrtowc-tests: New file.
17700 * tests/test-mbrtowc1.sh: New file.
17701 * tests/test-mbrtowc2.sh: New file.
17702 * tests/test-mbrtowc3.sh: New file.
17703 * tests/test-mbrtowc4.sh: New file.
17704 * tests/test-mbrtowc.c: New file.
17706 New module 'mbrtowc'.
17707 * lib/wchar.in.h (mbstate_t): Override when the system does not have
17708 mbsinit and mbrtowc.
17709 (mbrtowc): New declaration.
17710 * lib/mbrtowc.c: New file.
17711 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17712 * modules/mbrtowc: New file.
17713 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17715 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17717 * doc/posix-functions/mbrtowc.texi: Document the new module.
17719 2008-12-18 Bruno Haible <bruno@clisp.org>
17721 New module 'wctob'.
17722 * lib/wchar.in.h (wctob): New declaration.
17723 * lib/wctob.c: New file.
17724 * m4/wctob.m4: New file.
17725 * modules/wctob: New file.
17726 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17728 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17729 * doc/posix-functions/wctob.texi: Document the new module.
17731 2008-12-18 Bruno Haible <bruno@clisp.org>
17733 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17734 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17736 2008-12-18 Simon Josefsson <simon@josefsson.org>
17738 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
17739 G. Christensen" <tgc@jupiterrise.com>.
17741 * lib/flock.c: Need to include errno.h. Reported by "Tom
17742 G. Christensen" <tgc@jupiterrise.com>.
17744 * lib/flock.c: Need to include string.h. Reported by "Tom
17745 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17748 2008-12-18 Bruno Haible <bruno@clisp.org>
17750 * m4/locale-ja.m4: New file, from GNU gettext.
17752 2008-12-17 Bruno Haible <bruno@clisp.org>
17754 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17755 Suggested by Eric Blake.
17757 2008-12-17 Bruno Haible <bruno@clisp.org>
17759 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17761 2008-12-17 Bruno Haible <bruno@clisp.org>
17763 * lib/mbsinit.c: Include verify.h. Verify an assumption.
17764 * modules/mbsinit (Depends-on): Add verify.
17765 Suggested by Paul Eggert.
17767 2008-12-17 Bruno Haible <bruno@clisp.org>
17769 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17770 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17772 * m4/mbiter.m4 (gl_MBITER): LIkewise.
17773 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17774 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17775 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17776 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17777 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17778 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17779 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17780 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17781 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17782 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17783 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17784 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17785 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17786 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17787 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17788 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17789 * modules/trim (configure.ac): Likewise.
17791 2008-12-17 Bruno Haible <bruno@clisp.org>
17793 * modules/btowc-tests: New file.
17794 * tests/test-btowc1.sh: New file.
17795 * tests/test-btowc2.sh: New file.
17796 * tests/test-btowc.c: New file.
17798 New module 'btowc'.
17799 * lib/wchar.in.h (btowc): New declaration.
17800 * lib/btowc.c: New file.
17801 * m4/btowc.m4: New file.
17802 * modules/btowc: New file.
17803 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17805 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17806 * doc/posix-functions/btowc.texi: Document the new module.
17808 2008-12-17 Bruno Haible <bruno@clisp.org>
17810 New module 'mbsinit'.
17811 * lib/wchar.in.h (mbsinit): New declaration.
17812 * lib/mbsinit.c: New file.
17813 * m4/mbsinit.m4: New file.
17814 * modules/mbsinit: New file.
17815 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17817 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17819 * doc/posix-functions/mbsinit.texi: Document the new module.
17821 2008-12-16 Bruno Haible <bruno@clisp.org>
17823 * lib/unistd.in.h: Add comment.
17824 * tests/test-environ.c: Don't include <stdlib.h>.
17826 2008-12-16 Bruno Haible <bruno@clisp.org>
17828 * lib/parse-duration.h (parse_duration): Document return value
17830 * lib/parse-duration.c: Include specification header first. Add
17833 (parse_year_month_day, parse_hour_minute_second): Move side effects
17834 outside of strchr call.
17835 (parse_non_iso8601): Move side effects outside of isspace call.
17836 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17839 2008-12-16 Bruno Haible <bruno@clisp.org>
17841 * tests/test-parse-duration.sh: Produce no output when the test
17844 2008-12-16 Bruno Haible <bruno@clisp.org>
17846 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17849 2008-12-15 Bruno Haible <bruno@clisp.org>
17851 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17852 * doc/glibc-functions/flistxattr.texi: Likewise.
17853 * doc/glibc-functions/fopencookie.texi: Likewise.
17854 * doc/glibc-functions/fremovexattr.texi: Likewise.
17855 * doc/glibc-functions/fsetxattr.texi: Likewise.
17856 * doc/glibc-functions/getxattr.texi: Likewise.
17857 * doc/glibc-functions/lgetxattr.texi: Likewise.
17858 * doc/glibc-functions/listxattr.texi: Likewise.
17859 * doc/glibc-functions/llistxattr.texi: Likewise.
17860 * doc/glibc-functions/lremovexattr.texi: Likewise.
17861 * doc/glibc-functions/lsetxattr.texi: Likewise.
17862 * doc/glibc-functions/removexattr.texi: Likewise.
17863 * doc/glibc-functions/setxattr.texi: Likewise.
17864 * doc/posix-functions/open_memstream.texi: Likewise.
17866 2008-12-15 Eric Blake <ebb9@byu.net>
17868 Update doc for cygwin 1.7.
17869 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17871 * doc/posix-functions/fchmodat.texi: Likewise.
17872 * doc/posix-functions/fchownat.texi: Likewise.
17873 * doc/posix-functions/fdopendir.texi: Likewise.
17874 * doc/posix-functions/fmemopen.texi: Likewise.
17875 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17876 * doc/posix-functions/fstatat.texi: Likewise.
17877 * doc/posix-functions/futimens.texi: Likewise.
17878 * doc/posix-functions/gai_strerror.texi: Likewise.
17879 * doc/posix-functions/getaddrinfo.texi: Likewise.
17880 * doc/posix-functions/getnameinfo.texi: Likewise.
17881 * doc/posix-functions/if_freenameindex.texi: Likewise.
17882 * doc/posix-functions/if_indextoname.texi: Likewise.
17883 * doc/posix-functions/if_nameindex.texi: Likewise.
17884 * doc/posix-functions/if_nametoindex.texi: Likewise.
17885 * doc/posix-functions/insque.texi: Likewise.
17886 * doc/posix-functions/linkat.texi: Likewise.
17887 * doc/posix-functions/llrint.texi: Likewise.
17888 * doc/posix-functions/llrintf.texi: Likewise.
17889 * doc/posix-functions/llrintl.texi: Likewise.
17890 * doc/posix-functions/lockf.texi: Likewise.
17891 * doc/posix-functions/lrintl.texi: Likewise.
17892 * doc/posix-functions/mkdirat.texi: Likewise.
17893 * doc/posix-functions/mkfifoat.texi: Likewise.
17894 * doc/posix-functions/mknodat.texi: Likewise.
17895 * doc/posix-functions/mq_close.texi: Likewise.
17896 * doc/posix-functions/mq_getattr.texi: Likewise.
17897 * doc/posix-functions/mq_notify.texi: Likewise.
17898 * doc/posix-functions/mq_open.texi: Likewise.
17899 * doc/posix-functions/mq_receive.texi: Likewise.
17900 * doc/posix-functions/mq_send.texi: Likewise.
17901 * doc/posix-functions/mq_setattr.texi: Likewise.
17902 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17903 * doc/posix-functions/mq_timedsend.texi: Likewise.
17904 * doc/posix-functions/mq_unlink.texi: Likewise.
17905 * doc/posix-functions/open_memstream.texi: Likewise.
17906 * doc/posix-functions/openat.texi: Likewise.
17907 * doc/posix-functions/posix_fadvise.texi: Likewise.
17908 * doc/posix-functions/posix_fallocate.texi: Likewise.
17909 * doc/posix-functions/posix_madvise.texi: Likewise.
17910 * doc/posix-functions/posix_memalign.texi: Likewise.
17911 * doc/posix-functions/posix_openpt.texi: Likewise.
17912 * doc/posix-functions/readlinkat.texi: Likewise.
17913 * doc/posix-functions/remque.texi: Likewise.
17914 * doc/posix-functions/renameat.texi: Likewise.
17915 * doc/posix-functions/rintl.texi: Likewise.
17916 * doc/posix-functions/sem_unlink.texi: Likewise.
17917 * doc/posix-functions/shm_open.texi: Likewise.
17918 * doc/posix-functions/shm_unlink.texi: Likewise.
17919 * doc/posix-functions/signgam.texi: Likewise.
17920 * doc/posix-functions/sigset.texi: Likewise.
17921 * doc/posix-functions/stpcpy.texi: Likewise.
17922 * doc/posix-functions/stpncpy.texi: Likewise.
17923 * doc/posix-functions/strerror.texi: Likewise.
17924 * doc/posix-functions/strtod.texi: Likewise.
17925 * doc/posix-functions/symlinkat.texi: Likewise.
17926 * doc/posix-functions/unlinkat.texi: Likewise.
17927 * doc/posix-functions/utimensat.texi: Likewise.
17928 * doc/glibc-functions/bindresvport.texi: Likewise.
17929 * doc/glibc-functions/dn_expand.texi: Likewise.
17930 * doc/glibc-functions/exp10.texi: Likewise.
17931 * doc/glibc-functions/exp10f.texi: Likewise.
17932 * doc/glibc-functions/fgetxattr.texi: Likewise.
17933 * doc/glibc-functions/flistxattr.texi: Likewise.
17934 * doc/glibc-functions/fopencookie.texi: Likewise.
17935 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17936 * doc/glibc-functions/fremovexattr.texi: Likewise.
17937 * doc/glibc-functions/fsetxattr.texi: Likewise.
17938 * doc/glibc-functions/getifaddrs.texi: Likewise.
17939 * doc/glibc-functions/getxattr.texi: Likewise.
17940 * doc/glibc-functions/lgetxattr.texi: Likewise.
17941 * doc/glibc-functions/listxattr.texi: Likewise.
17942 * doc/glibc-functions/llistxattr.texi: Likewise.
17943 * doc/glibc-functions/lremovexattr.texi: Likewise.
17944 * doc/glibc-functions/lsetxattr.texi: Likewise.
17945 * doc/glibc-functions/pow10.texi: Likewise.
17946 * doc/glibc-functions/pow10f.texi: Likewise.
17947 * doc/glibc-functions/rcmd_af.texi: Likewise.
17948 * doc/glibc-functions/removexattr.texi: Likewise.
17949 * doc/glibc-functions/res_init.texi: Likewise.
17950 * doc/glibc-functions/res_mkquery.texi: Likewise.
17951 * doc/glibc-functions/res_query.texi: Likewise.
17952 * doc/glibc-functions/res_querydomain.texi: Likewise.
17953 * doc/glibc-functions/res_send.texi: Likewise.
17954 * doc/glibc-functions/rresvport_af.texi: Likewise.
17955 * doc/glibc-functions/setxattr.texi: Likewise.
17956 * doc/glibc-functions/strcasestr.texi: Likewise.
17958 2008-12-15 Bruno Haible <bruno@clisp.org>
17960 Fix compilation error on OSF/1 4.0.
17961 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17962 <sys/time.h>, simply delegate to the system header.
17963 Reported by Daniel Richard G. <oss@teragram.com>.
17965 2008-12-15 Bruno Haible <bruno@clisp.org>
17967 * doc/posix-functions/openat.texi: Mention the 'openat' module.
17968 * doc/posix-functions/fchmodat.texi: Likewise.
17969 * doc/posix-functions/fchownat.texi: Likewise.
17970 * doc/posix-functions/fdopendir.texi: Likewise.
17971 * doc/posix-functions/fstatat.texi: Likewise.
17972 * doc/posix-functions/mkdirat.texi: Likewise.
17973 * doc/posix-functions/unlinkat.texi: Likewise.
17975 2008-12-14 Bruno Haible <bruno@clisp.org>
17977 Update doc for POSIX:2008.
17978 * doc/posix-functions/faccessat.texi: New file.
17979 * doc/posix-functions/fchmodat.texi: New file.
17980 * doc/posix-functions/fchownat.texi: New file.
17981 * doc/posix-functions/fdopendir.texi: New file.
17982 * doc/posix-functions/fstatat.texi: New file.
17983 * doc/posix-functions/futimens.texi: New file.
17984 * doc/posix-functions/linkat.texi: New file.
17985 * doc/posix-functions/mkdirat.texi: New file.
17986 * doc/posix-functions/mkfifoat.texi: New file.
17987 * doc/posix-functions/mknodat.texi: New file.
17988 * doc/posix-functions/open_wmemstream.texi: New file.
17989 * doc/posix-functions/openat.texi: New file.
17990 * doc/posix-functions/psiginfo.texi: New file.
17991 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17992 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17993 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17994 * doc/posix-functions/readlinkat.texi: New file.
17995 * doc/posix-functions/renameat.texi: New file.
17996 * doc/posix-functions/strerror_l.texi: New file.
17997 * doc/posix-functions/symlinkat.texi: New file.
17998 * doc/posix-functions/unlinkat.texi: New file.
17999 * doc/posix-functions/utimensat.texi: New file.
18000 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18002 2008-12-14 Bruno Haible <bruno@clisp.org>
18004 Update doc for POSIX:2008.
18005 * doc/posix-functions/alphasort.texi: Renamed from
18006 doc/glibc-functions/alphasort.texi.
18007 * doc/posix-functions/dirfd.texi: Renamed from
18008 doc/glibc-functions/dirfd.texi.
18009 * doc/posix-functions/dprintf.texi: Renamed from
18010 doc/glibc-functions/dprintf.texi.
18011 * doc/posix-functions/duplocale.texi: Renamed from
18012 doc/glibc-functions/duplocale.texi.
18013 * doc/posix-functions/fexecve.texi: Renamed from
18014 doc/glibc-functions/fexecve.texi.
18015 * doc/posix-functions/fmemopen.texi: Renamed from
18016 doc/glibc-functions/fmemopen.texi.
18017 * doc/posix-functions/freelocale.texi: Renamed from
18018 doc/glibc-functions/freelocale.texi.
18019 * doc/posix-functions/getdate_err.texi: Renamed from
18020 doc/glibc-functions/getdate_err.texi.
18021 * doc/posix-functions/isalnum_l.texi: Renamed from
18022 doc/glibc-functions/isalnum_l.texi.
18023 * doc/posix-functions/isalpha_l.texi: Renamed from
18024 doc/glibc-functions/isalpha_l.texi.
18025 * doc/posix-functions/isblank_l.texi: Renamed from
18026 doc/glibc-functions/isblank_l.texi.
18027 * doc/posix-functions/iscntrl_l.texi: Renamed from
18028 doc/glibc-functions/iscntrl_l.texi.
18029 * doc/posix-functions/isdigit_l.texi: Renamed from
18030 doc/glibc-functions/isdigit_l.texi.
18031 * doc/posix-functions/isgraph_l.texi: Renamed from
18032 doc/glibc-functions/isgraph_l.texi.
18033 * doc/posix-functions/islower_l.texi: Renamed from
18034 doc/glibc-functions/islower_l.texi.
18035 * doc/posix-functions/isprint_l.texi: Renamed from
18036 doc/glibc-functions/isprint_l.texi.
18037 * doc/posix-functions/ispunct_l.texi: Renamed from
18038 doc/glibc-functions/ispunct_l.texi.
18039 * doc/posix-functions/isspace_l.texi: Renamed from
18040 doc/glibc-functions/isspace_l.texi.
18041 * doc/posix-functions/isupper_l.texi: Renamed from
18042 doc/glibc-functions/isupper_l.texi.
18043 * doc/posix-functions/iswalnum_l.texi: Renamed from
18044 doc/glibc-functions/iswalnum_l.texi.
18045 * doc/posix-functions/iswalpha_l.texi: Renamed from
18046 doc/glibc-functions/iswalpha_l.texi.
18047 * doc/posix-functions/iswblank_l.texi: Renamed from
18048 doc/glibc-functions/iswblank_l.texi.
18049 * doc/posix-functions/iswcntrl_l.texi: Renamed from
18050 doc/glibc-functions/iswcntrl_l.texi.
18051 * doc/posix-functions/iswctype_l.texi: Renamed from
18052 doc/glibc-functions/iswctype_l.texi.
18053 * doc/posix-functions/iswdigit_l.texi: Renamed from
18054 doc/glibc-functions/iswdigit_l.texi.
18055 * doc/posix-functions/iswgraph_l.texi: Renamed from
18056 doc/glibc-functions/iswgraph_l.texi.
18057 * doc/posix-functions/iswlower_l.texi: Renamed from
18058 doc/glibc-functions/iswlower_l.texi.
18059 * doc/posix-functions/iswprint_l.texi: Renamed from
18060 doc/glibc-functions/iswprint_l.texi.
18061 * doc/posix-functions/iswpunct_l.texi: Renamed from
18062 doc/glibc-functions/iswpunct_l.texi.
18063 * doc/posix-functions/iswspace_l.texi: Renamed from
18064 doc/glibc-functions/iswspace_l.texi.
18065 * doc/posix-functions/iswupper_l.texi: Renamed from
18066 doc/glibc-functions/iswupper_l.texi.
18067 * doc/posix-functions/iswxdigit_l.texi: Renamed from
18068 doc/glibc-functions/iswxdigit_l.texi.
18069 * doc/posix-functions/isxdigit_l.texi: Renamed from
18070 doc/glibc-functions/isxdigit_l.texi.
18071 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18072 doc/glibc-functions/mbsnrtowcs.texi.
18073 * doc/posix-functions/mkdtemp.texi: Renamed from
18074 doc/glibc-functions/mkdtemp.texi.
18075 * doc/posix-functions/newlocale.texi: Renamed from
18076 doc/glibc-functions/newlocale.texi.
18077 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18078 doc/glibc-functions/nl_langinfo_l.texi.
18079 * doc/posix-functions/open_memstream.texi: Renamed from
18080 doc/glibc-functions/open_memstream.texi.
18081 * doc/posix-functions/opterr.texi: Renamed from
18082 doc/glibc-functions/opterr.texi.
18083 * doc/posix-functions/optind.texi: Renamed from
18084 doc/glibc-functions/optind.texi.
18085 * doc/posix-functions/optopt.texi: Renamed from
18086 doc/glibc-functions/optopt.texi.
18087 * doc/posix-functions/psignal.texi: Renamed from
18088 doc/glibc-functions/psignal.texi.
18089 * doc/posix-functions/scandir.texi: Renamed from
18090 doc/glibc-functions/scandir.texi.
18091 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18092 doc/glibc-functions/sched_get_priority_min.texi.
18093 * doc/posix-functions/signgam.texi: Renamed from
18094 doc/glibc-functions/signgam.texi.
18095 * doc/posix-functions/stpcpy.texi: Renamed from
18096 doc/glibc-functions/stpcpy.texi.
18097 * doc/posix-functions/stpncpy.texi: Renamed from
18098 doc/glibc-functions/stpncpy.texi.
18099 * doc/posix-functions/strcasecmp_l.texi: Renamed from
18100 doc/glibc-functions/strcasecmp_l.texi.
18101 * doc/posix-functions/strcoll_l.texi: Renamed from
18102 doc/glibc-functions/strcoll_l.texi.
18103 * doc/posix-functions/strfmon_l.texi: Renamed from
18104 doc/glibc-functions/strfmon_l.texi.
18105 * doc/posix-functions/strftime_l.texi: Renamed from
18106 doc/glibc-functions/strftime_l.texi.
18107 * doc/posix-functions/strncasecmp_l.texi: Renamed from
18108 doc/glibc-functions/strncasecmp_l.texi.
18109 * doc/posix-functions/strndup.texi: Renamed from
18110 doc/glibc-functions/strndup.texi.
18111 * doc/posix-functions/strnlen.texi: Renamed from
18112 doc/glibc-functions/strnlen.texi.
18113 * doc/posix-functions/strsignal.texi: Renamed from
18114 doc/glibc-functions/strsignal.texi.
18115 * doc/posix-functions/strxfrm_l.texi: Renamed from
18116 doc/glibc-functions/strxfrm_l.texi.
18117 * doc/posix-functions/timer_gettime.texi: Renamed from
18118 doc/glibc-functions/timer_gettime.texi.
18119 * doc/posix-functions/tolower_l.texi: Renamed from
18120 doc/glibc-functions/tolower_l.texi.
18121 * doc/posix-functions/toupper_l.texi: Renamed from
18122 doc/glibc-functions/toupper_l.texi.
18123 * doc/posix-functions/towctrans_l.texi: Renamed from
18124 doc/glibc-functions/towctrans_l.texi.
18125 * doc/posix-functions/towlower_l.texi: Renamed from
18126 doc/glibc-functions/towlower_l.texi.
18127 * doc/posix-functions/towupper_l.texi: Renamed from
18128 doc/glibc-functions/towupper_l.texi.
18129 * doc/posix-functions/uselocale.texi: Renamed from
18130 doc/glibc-functions/uselocale.texi.
18131 * doc/posix-functions/vdprintf.texi: Renamed from
18132 doc/glibc-functions/vdprintf.texi.
18133 * doc/posix-functions/wcpcpy.texi:
18134 Renamed from doc/glibc-functions/wcpcpy.texi.
18135 * doc/posix-functions/wcpncpy.texi: Renamed from
18136 doc/glibc-functions/wcpncpy.texi.
18137 * doc/posix-functions/wcscasecmp.texi: Renamed from
18138 doc/glibc-functions/wcscasecmp.texi.
18139 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18140 doc/glibc-functions/wcscasecmp_l.texi.
18141 * doc/posix-functions/wcscoll_l.texi: Renamed from
18142 doc/glibc-functions/wcscoll_l.texi.
18143 * doc/posix-functions/wcsdup.texi: Renamed from
18144 doc/glibc-functions/wcsdup.texi.
18145 * doc/posix-functions/wcsncasecmp.texi: Renamed from
18146 doc/glibc-functions/wcsncasecmp.texi.
18147 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18148 doc/glibc-functions/wcsncasecmp_l.texi.
18149 * doc/posix-functions/wcsnlen.texi: Renamed from
18150 doc/glibc-functions/wcsnlen.texi.
18151 * doc/posix-functions/wcsnrtombs.texi: Renamed from
18152 doc/glibc-functions/wcsnrtombs.texi.
18153 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18154 doc/glibc-functions/wcsxfrm_l.texi.
18155 * doc/posix-functions/wctrans_l.texi: Renamed from
18156 doc/glibc-functions/wctrans_l.texi.
18157 * doc/posix-functions/wctype_l.texi: Renamed from
18158 doc/glibc-functions/wctype_l.texi.
18159 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18160 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18161 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18162 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18164 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18167 2008-12-14 Bruno Haible <bruno@clisp.org>
18169 Update doc for POSIX:2008.
18170 * doc/posix-functions/*.texi: Update URL of POSIX specification.
18172 2008-12-14 Bruno Haible <bruno@clisp.org>
18174 Update doc for POSIX:2008.
18175 * doc/pastposix-functions/bcmp.texi: Renamed from
18176 doc/posix-functions/bcmp.texi.
18177 * doc/pastposix-functions/bcopy.texi: Renamed from
18178 doc/posix-functions/bcopy.texi.
18179 * doc/pastposix-functions/bsd_signal.texi: Renamed from
18180 doc/posix-functions/bsd_signal.texi.
18181 * doc/pastposix-functions/bzero.texi: Renamed from
18182 doc/posix-functions/bzero.texi.
18183 * doc/pastposix-functions/ecvt.texi: Renamed from
18184 doc/posix-functions/ecvt.texi.
18185 * doc/pastposix-functions/fcvt.texi: Renamed from
18186 doc/posix-functions/fcvt.texi.
18187 * doc/pastposix-functions/ftime.texi: Renamed from
18188 doc/posix-functions/ftime.texi.
18189 * doc/pastposix-functions/gcvt.texi: Renamed from
18190 doc/posix-functions/gcvt.texi.
18191 * doc/pastposix-functions/getcontext.texi: Renamed from
18192 doc/posix-functions/getcontext.texi.
18193 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18194 doc/posix-functions/gethostbyaddr.texi.
18195 * doc/pastposix-functions/gethostbyname.texi: Renamed from
18196 doc/posix-functions/gethostbyname.texi.
18197 * doc/pastposix-functions/getwd.texi: Renamed from
18198 doc/posix-functions/getwd.texi.
18199 * doc/pastposix-functions/h_errno.texi: Renamed from
18200 doc/posix-functions/h_errno.texi.
18201 * doc/pastposix-functions/index.texi: Renamed from
18202 doc/posix-functions/index.texi.
18203 * doc/pastposix-functions/makecontext.texi: Renamed from
18204 doc/posix-functions/makecontext.texi.
18205 * doc/pastposix-functions/mktemp.texi: Renamed from
18206 doc/posix-functions/mktemp.texi.
18207 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18208 doc/posix-functions/pthread_attr_getstackaddr.texi.
18209 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18210 doc/posix-functions/pthread_attr_setstackaddr.texi.
18211 * doc/pastposix-functions/rindex.texi: Renamed from
18212 doc/posix-functions/rindex.texi.
18213 * doc/pastposix-functions/scalb.texi: Renamed from
18214 doc/posix-functions/scalb.texi.
18215 * doc/pastposix-functions/setcontext.texi: Renamed from
18216 doc/posix-functions/setcontext.texi.
18217 * doc/pastposix-functions/swapcontext.texi: Renamed from
18218 doc/posix-functions/swapcontext.texi.
18219 * doc/pastposix-functions/ualarm.texi: Renamed from
18220 doc/posix-functions/ualarm.texi.
18221 * doc/pastposix-functions/usleep.texi: Renamed from
18222 doc/posix-functions/usleep.texi.
18223 * doc/pastposix-functions/vfork.texi: Renamed from
18224 doc/posix-functions/vfork.texi.
18225 * doc/pastposix-functions/wcswcs.texi: Renamed from
18226 doc/posix-functions/wcswcs.texi.
18227 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18228 (Function Substitutes): Update.
18230 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18232 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18235 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18236 Bruno Haible <bruno@clisp.org>
18238 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18240 2008-12-13 Bruno Haible <bruno@clisp.org>
18242 * modules/strtoull (Depends-on): Remove unistd.
18244 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18246 * modules/strtoull (Depends-on): Add stdlib.
18248 2008-12-11 Simon Josefsson <simon@josefsson.org>
18250 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18252 2008-12-10 Jim Meyering <meyering@redhat.com>
18254 gl_ASSERT: don't say assertions are disabled when they're not
18255 * m4/assert.m4 (gl_ASSERT): Do not make configure report
18256 "checking whether to enable assertions... no", when they are in
18257 fact enabled. This is solely a bug in the output of configure.
18258 In spite of saying "no", NDEBUG was not defined in that case.
18259 Also, as noted by Eric Blake, leave assertions enabled upon
18260 --enable-assert=INVALID.
18262 2008-12-10 Bruno Haible <bruno@clisp.org>
18264 Change MODULES.html to refer to POSIX:2008 where possible.
18265 * MODULES.html.sh (POSIX2008_URL): New variable.
18266 (posix_headers): Remove sys/timeb, ucontext.
18267 (posix2001_headers): New variable.
18268 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18269 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18270 index, makecontext, mktemp, pthread_attr_getstackaddr,
18271 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18272 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18273 (posix2001_functions): New variable.
18274 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18277 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18279 add missing include to parse-duration.c
18280 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18281 * modules/parse-duration (Depends-on): Add xalloc.
18283 fix sed script reading maint.mk
18284 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18285 (syntax-check-rules): Use it.
18287 2008-12-09 Bruno Haible <bruno@clisp.org>
18289 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18290 MacOS X 10.4/PowerPC.
18291 Reported by Simon Josefsson.
18293 2008-12-08 Jim Meyering <meyering@redhat.com>
18295 work around mingw's lack of some S_IF definitions
18296 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18297 Reported by Simon Josefsson.
18299 2008-12-08 Bruno Haible <bruno@clisp.org>
18301 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18302 applied to variables. Needed on MacOS X 10.4/PowerPC.
18303 Reported by Simon Josefsson.
18305 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
18306 and Eric Blake <ebb9@byu.net>
18308 assert: honor --enable-assert
18309 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18310 order to honor --enable-assert, rather than treating it as a
18311 synonym for --disable-assert.
18313 2008-12-08 Jim Meyering <meyering@redhat.com>
18315 * lib/posixtm.c: Remove now-useless declaration of mktime.
18317 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18319 2008-12-07 Bruno Haible <bruno@clisp.org>
18321 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18322 test_once): Mark functions as static.
18323 * tests/test-tls.c (test_tls): Likewise.
18325 2008-12-07 Bruno Haible <bruno@clisp.org>
18327 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18328 iconv_register_autodetect.
18330 2008-12-07 Jim Meyering <meyering@redhat.com>
18332 posixtm.c: avoid a warning
18333 * lib/posixtm.c (posixtime): Don't initialize tm0.
18334 It's no longer needed to placate gcc4's -Wuninitialized,
18335 and the attempt to placate would elicit a new warning.
18337 unicodeio.c: mark unused parameters
18338 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18339 (fallback_failure_callback): Likewise.
18341 2008-12-07 Bruno Haible <bruno@clisp.org>
18343 * gnulib-tool (func_create_testdir): When building the tests
18344 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18345 Reported by Simon Josefsson.
18347 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18349 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18351 2008-12-06 Bruno Haible <bruno@clisp.org>
18353 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18354 Suggested by Eric Blake.
18356 2008-12-06 Bruno Haible <bruno@clisp.org>
18358 Fix a c-stack test failure on MacOS X.
18359 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18360 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18361 handler for SIGBUS as well.
18362 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18363 install a signal handler for SIGBUS as well.
18364 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18366 2008-12-06 Bruno Haible <bruno@clisp.org>
18368 Advocacy documentation.
18369 * doc/gnulib-intro.texi (Benefits): New section.
18370 * doc/gnulib.texi: Update.
18372 2008-12-06 Bruno Haible <bruno@clisp.org>
18374 Document the 'manywarnings' module.
18375 * doc/manywarnings.texi: New file.
18376 * doc/gnulib.texi: Include it.
18378 2008-12-05 Eric Blake <ebb9@byu.net>
18380 tests: silence some gcc warnings
18381 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18382 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18385 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18386 Bruno Haible <bruno@clisp.org>
18388 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18390 2008-11-29 Jim Meyering <meyering@redhat.com>
18392 unicodeio.c: mark unused parameters
18393 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18394 (fallback_failure_callback): Likewise.
18397 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18398 (set_stat_type): Return S_IF*-valued "type" directly.
18399 Prompted by James Youngman's spotting a related bug.
18400 Confirmed by further testing through find.
18402 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18403 * lib/fts.c (D_TYPE): Define.
18404 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18405 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18406 (s_ifmt_shift_bits): New function.
18407 (set_stat_type): New function.
18408 (fts_build): When not calling fts_stat, call set_stat_type
18409 to propagate dirent.d_type info to fts_read caller.
18410 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18411 fts_statp->st_mode type information may be valid.
18413 2008-11-28 Simon Josefsson <simon@josefsson.org>
18415 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18416 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18419 2008-11-20 Bruno Haible <bruno@clisp.org>
18421 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18422 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18424 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18425 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18426 * modules/math (Makefile.am): Substitute
18427 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18428 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18430 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18431 Bruno Haible <bruno@clisp.org>
18433 * lib/stdint.in.h: Define all type macros so that their expansion is
18434 a single typedef'ed token. Fixes a compilation failure in Boost which
18435 does "using ::int8_t;".
18437 2008-11-18 Simon Josefsson <simon@josefsson.org>
18439 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18440 gl_MANYWARN_ALL_GCC.
18441 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18442 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18443 * modules/manywarnings: New file.
18444 * MODULES.html.sh: Mention manywarnings module.
18446 2008-11-18 Bruno Haible <bruno@clisp.org>
18448 * doc/gnulib-tool.texi (Unit tests): New section.
18450 2008-11-18 Simon Josefsson <simon@josefsson.org>
18452 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18453 paths like 'lib/po/foo.po'.
18455 2008-11-17 Simon Josefsson <simon@josefsson.org>
18457 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18458 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18460 2008-11-17 Simon Josefsson <simon@josefsson.org>
18462 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18465 2008-11-17 Simon Josefsson <simon@josefsson.org>
18467 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18469 2008-11-17 Bruce Korb <bkorb@gnu.org>
18471 * modules/parse-duration-tests: New file.
18472 * tests/test-parse-duration.sh: New file.
18473 * tests/test-parse-duration.c: New file.
18475 New module 'parse-duration'.
18476 * lib/parse-duration.h: New file.
18477 * lib/parse-duration.c: New file.
18478 * modules/parse-duration: New file.
18480 2008-11-17 Bruno Haible <bruno@clisp.org>
18482 * tests/test-select-out.sh: Comment out the first pipe test.
18483 Reported by Simon Josefsson.
18485 2008-11-17 Bruno Haible <bruno@clisp.org>
18487 * modules/getaddrinfo (Depends-on): Add servent, hostent.
18488 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18491 2008-11-17 Bruno Haible <bruno@clisp.org>
18493 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18494 -lnetwork and -lnet. Needed for Haiku and BeOS.
18496 2008-11-16 Bruno Haible <bruno@clisp.org>
18498 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18500 2008-11-16 Bruno Haible <bruno@clisp.org>
18502 Avoid test failure on Haiku.
18503 * tests/test-fsync.c: Include <errno.h>.
18504 (main): Don't require that fsync (0) fails.
18506 2008-11-15 Bruno Haible <bruno@clisp.org>
18508 New module 'hostent'.
18509 * modules/hostent: New file.
18510 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18512 2008-11-15 Bruno Haible <bruno@clisp.org>
18514 New module 'servent'.
18515 * modules/servent: New file.
18516 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18518 2008-11-15 Bruno Haible <bruno@clisp.org>
18520 Avoid generating same test program with two different rules.
18521 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18522 test-frexp to test-frexp-nolibm.
18523 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18524 test-frexpl to test-frexpl-nolibm.
18526 2008-11-15 Bruno Haible <bruno@clisp.org>
18528 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18531 2008-11-15 Bruno Haible <bruno@clisp.org>
18533 * lib/netdb.in.h: Activate the definitions also when the system's
18534 <netdb.h> has 'struct addrinfo'.
18535 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18536 EAI_OVERFLOW or AI_NUMERICSERV.
18537 * doc/posix-headers/netdb.texi: Document the problem.
18539 2008-11-15 Bruno Haible <bruno@clisp.org>
18541 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18543 Make the 'sched' module work on platforms where <sched.h> exists but
18544 is incomplete (such as Haiku).
18545 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18546 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18547 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18548 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18549 HAVE_STRUCT_SCHED_PARAM.
18550 * modules/sched (Depends-on): Add include_next.
18551 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18552 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18553 * doc/posix-headers/sched.texi: Document the issue.
18555 2008-11-13 Jim Meyering <meyering@redhat.com>
18557 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18558 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18559 test would fail due to the difference in the Report bugs to ...
18560 line. The expected address is empty, "<>", while the actual
18561 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18563 2008-11-12 Bruno Haible <bruno@clisp.org>
18565 lstat: don't compile lstat.c on systems lacking lstat
18566 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18567 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18568 Reported by Daniel P. Berrange via Jim Meyering.
18570 2008-11-12 Jim Meyering <meyering@redhat.com>
18572 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18574 2008-11-12 Simon Josefsson <simon@josefsson.org>
18576 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18579 2008-11-12 Bruno Haible <bruno@clisp.org>
18581 * lib/unicodeio.c: Include unistr.h.
18582 (utf8_wctomb): Remove function.
18583 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18585 2008-11-12 Simon Josefsson <simon@josefsson.org>
18587 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18588 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18590 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18592 2008-11-12 Simon Josefsson <simon@josefsson.org>
18594 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18595 * doc/gnulib.texi: Add section for warnings.
18597 2008-11-11 Bruno Haible <bruno@clisp.org>
18599 * lib/sockets.h: Add a comment.
18601 2008-11-11 Karl Berry <karl@gnu.org>
18603 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18605 2008-11-11 Eric Blake <ebb9@byu.net>
18607 fdl.texi: avoid git symlinks
18608 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18610 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18612 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18614 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18616 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18617 (gl_WARN_ADD): Substitute $2 if literal.
18619 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18621 * m4/warning.m4: Remove.
18623 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18625 * m4/warnings.m4: Almost complete rewrite. :-)
18627 2008-11-10 Simon Josefsson <simon@josefsson.org>
18629 * modules/warnings: New module.
18630 * m4/warnings.m4: New file.
18631 * MODULES.html.sh: Mention warnings module.
18632 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18633 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18635 2008-11-10 Eric Blake <ebb9@byu.net>
18637 fdl.texi: make a symlink to the latest version
18638 * doc/standards.texi: Revert today's earlier change.
18639 * doc/fdl-1.2.texi: Rename from old fdl.texi...
18640 * doc/fdl.texi: ...and replace this with a symlink to the newer
18643 2008-11-10 Bruno Haible <bruno@clisp.org>
18645 * tests/test-select-fd.c (main): Accept the result file name as fourth
18647 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18648 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18650 2008-11-10 Bruno Haible <bruno@clisp.org>
18652 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18653 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18654 as autoconf-substituted macros.
18655 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18656 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18657 gl_NETDB_H_DEFAULTS. Set these variables.
18658 * modules/netdb (Makefile.am): Substitute these variables.
18660 2008-11-10 Eric Blake <ebb9@byu.net>
18662 standards.texi: include correct file for FDL 1.3
18663 * doc/standards.texi (GNU Free Documentation License): Change
18664 include file to pull in FDL 1.3, not 1.2.
18666 fdl.texi: revert accidental change to license
18667 * doc/fdl.texi: This is FDL 1.2, not 1.3.
18669 2008-11-10 Bruno Haible <bruno@clisp.org>
18671 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18672 cross-compiling guesses also when the native compile gives no result.
18674 2008-11-10 Bruno Haible <bruno@clisp.org>
18676 * lib/spawni.c (__spawni): Force variable into the stack.
18678 2008-11-10 Bruno Haible <bruno@clisp.org>
18680 Add support for Haiku.
18681 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18682 glibc and BeOS, but also on Haiku.
18683 * lib/fpurge.c (fpurge): Likewise.
18684 * lib/freadable.c (freadable): Likewise.
18685 * lib/freadahead.c (freadahead): Likewise.
18686 * lib/freading.c (freading): Likewise.
18687 * lib/freadptr.c (freadptr): Likewise.
18688 * lib/freadseek.c (freadptrinc): Likewise.
18689 * lib/fseeko.c (rpl_fseeko): Likewise.
18690 * lib/fseterr.c (fseterr): Likewise.
18691 * lib/fwritable.c (fwritable): Likewise.
18692 * lib/fwriting.c (fwriting): Likewise.
18693 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18695 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18697 * lib/config.charset: Treat Haiku like BeOS.
18699 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18701 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18702 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18704 2008-11-08 Bruno Haible <bruno@clisp.org>
18706 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18709 2008-11-08 Bruno Haible <bruno@clisp.org>
18711 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18713 2008-11-08 Bruno Haible <bruno@clisp.org>
18715 * tests/test-select-fd.c: New file.
18716 * tests/test-select-in.sh: New file.
18717 * tests/test-select-out.sh: New file.
18718 * tests/test-select-stdin.c: New file.
18719 * modules/select-tests (Files): Add the new files.
18720 (Depends-on): Add gettimeofday.
18721 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18722 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18723 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18725 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
18726 Bruno Haible <bruno@clisp.org>
18728 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18730 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
18732 * build-aux/pmccabe2html: Added support for C++ source files.
18734 2008-11-05 Ben Pfaff <blp@gnu.org>
18736 Fix lib/close.c build on Windows.
18737 * modules/close (Files): Add lib/w32sock.h.
18739 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
18741 Accept Bison's NEWS format.
18742 * build-aux/announce-gen (print_news_deltas): Tweak
18745 2008-11-04 Bruno Haible <bruno@clisp.org>
18747 * modules/random_r (Maintainer): Add glibc.
18749 2008-11-04 Simon Josefsson <simon@josefsson.org>
18751 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18752 by karl@freefriends.org (Karl Berry).
18753 * doc/alloca.texi: Likewise.
18754 * doc/c-ctype.texi: Likewise.
18755 * doc/c-strcase.texi: Likewise.
18756 * doc/c-strcaseeq.texi: Likewise.
18757 * doc/c-strcasestr.texi: Likewise.
18758 * doc/c-strstr.texi: Likewise.
18759 * doc/c-strtod.texi: Likewise.
18760 * doc/c-strtold.texi: Likewise.
18761 * doc/ctime.texi: Likewise.
18762 * doc/error.texi: Likewise.
18763 * doc/fdl.texi: Likewise.
18764 * doc/gcd.texi: Likewise.
18765 * doc/getdate.texi: Likewise.
18766 * doc/gnulib-intro.texi: Likewise.
18767 * doc/gnulib-tool.texi: Likewise.
18768 * doc/gnulib.texi: Likewise.
18769 * doc/inet_ntoa.texi: Likewise.
18770 * doc/maintain.texi: Likewise.
18771 * doc/make-stds.texi: Likewise.
18772 * doc/quote.texi: Likewise.
18773 * doc/regexprops-generic.texi: Likewise.
18774 * doc/standards.texi: Likewise.
18775 * doc/verify.texi: Likewise.
18776 * doc/visibility.texi: Likewise.
18777 * doc/gnulib.texi (GNU Free Documentation License): Include
18778 fdl-1.3.texi instead of fdl.texi.
18780 2008-11-04 Simon Josefsson <simon@josefsson.org>
18782 * doc/fdl-1.3.texi: New file, from
18783 <http://www.gnu.org/licenses/fdl-1.3.texi>.
18784 * modules/fdl-1.3: Add.
18785 * MODULES.html.sh: Add fdl-1.3.
18787 2008-11-03 Bruno Haible <bruno@clisp.org>
18789 Make determination of absolute name of header file work with AIX xlc.
18790 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18791 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18793 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18794 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18796 2008-11-03 Simon Josefsson <simon@josefsson.org>
18798 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18799 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
18802 2008-11-02 Bruno Haible <bruno@clisp.org>
18804 Mark 'strpbrk' obsolete.
18805 * modules/strpbrk (Status, Notice): New sections.
18806 * modules/strtok_r (Depends-on): Add strpbrk.
18808 2008-11-02 Bruno Haible <bruno@clisp.org>
18810 Mark 'strdup' obsolete.
18811 * modules/strdup (Status, Notice): New sections.
18812 * modules/findprog (Depends-on): Add strdup.
18813 * modules/getaddrinfo (Depends-on): Likewise.
18814 * modules/localename (Depends-on): Likewise.
18815 * modules/relocatable-lib (Depends-on): Likewise.
18816 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18817 * modules/relocatable-prog (Depends-on): Likewise.
18818 * modules/trim (Depends-on): Likewise.
18819 * modules/unictype/gen-ctype (Depends-on): Likewise.
18820 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18822 2008-11-02 Bruno Haible <bruno@clisp.org>
18824 Mark 'strcspn' obsolete.
18825 * modules/strcspn (Status, Notice): New sections.
18827 2008-11-02 Bruno Haible <bruno@clisp.org>
18829 Mark 'rmdir' obsolete.
18830 * modules/rmdir (Status, Notice): New sections.
18831 * modules/clean-temp (Depends-on): Add rmdir.
18832 * modules/openat (Depends-on): Likewise.
18834 2008-11-02 Bruno Haible <bruno@clisp.org>
18836 Mark 'raise' obsolete.
18837 * modules/raise (Status, Notice): New sections.
18838 (Include): Specify <signal.h>.
18839 * modules/stdio (Depends-on): Add raise.
18840 * modules/write (Depends-on): Likewise.
18842 2008-11-02 Bruno Haible <bruno@clisp.org>
18844 Mark 'memset' obsolete.
18845 * modules/memset (Status, Notice): New sections.
18847 2008-11-02 Bruno Haible <bruno@clisp.org>
18849 Mark 'memmove' obsolete.
18850 * modules/memmove (Status, Notice): New sections.
18851 * modules/argp (Depends-on): Add memmove.
18852 * modules/argz (Depends-on): Likewise.
18853 * modules/canonicalize (Depends-on): Likewise.
18854 * modules/canonicalize-lgpl (Depends-on): Likewise.
18855 * modules/fts (Depends-on): Likewise.
18856 * modules/getcwd (Depends-on): Likewise.
18857 * modules/human (Depends-on): Likewise.
18858 * modules/regex (Depends-on): Likewise.
18859 * modules/striconveh (Depends-on): Likewise.
18860 * modules/trim (Depends-on): Likewise.
18861 * modules/unistr/u8-move (Depends-on): Likewise.
18862 * modules/unistr/u16-move (Depends-on): Likewise.
18863 * modules/unistr/u32-move (Depends-on): Likewise.
18865 2008-11-02 Bruno Haible <bruno@clisp.org>
18867 Mark 'memcpy' obsolete.
18868 * modules/memcpy (Status, Notice): New sections.
18870 2008-11-02 Bruno Haible <bruno@clisp.org>
18872 Mark 'memcmp' obsolete.
18873 * modules/memcmp (Status, Notice): New sections.
18874 * modules/argmatch (Depends-on): Add memchr.
18875 * modules/backupfile (Depends-on): Likewise.
18876 * modules/c-strcasestr (Depends-on): Likewise.
18877 * modules/crypto/des (Depends-on): Likewise.
18878 * modules/csharpcomp (Depends-on): Likewise.
18879 * modules/fnmatch (Depends-on): Likewise.
18880 * modules/git-merge-changelog (Depends-on): Likewise.
18881 * modules/isnand (Depends-on): Likewise.
18882 * modules/isnand-nolibm (Depends-on): Likewise.
18883 * modules/isnanf (Depends-on): Likewise.
18884 * modules/isnanf-nolibm (Depends-on): Likewise.
18885 * modules/isnanl (Depends-on): Likewise.
18886 * modules/isnanl-nolibm (Depends-on): Likewise.
18887 * modules/mbchar (Depends-on): Likewise.
18888 * modules/memcoll (Depends-on): Likewise.
18889 * modules/quotearg (Depends-on): Likewise.
18890 * modules/regex (Depends-on): Likewise.
18891 * modules/relocatable-prog (Depends-on): Likewise.
18892 * modules/same (Depends-on): Likewise.
18893 * modules/signbit (Depends-on): Likewise.
18894 * modules/strcasestr-simple (Depends-on): Likewise.
18895 * modules/unictype/gen-ctype (Depends-on): Likewise.
18896 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18897 * modules/uniname/uniname (Depends-on): Likewise.
18898 * modules/unistr/u8-cmp (Depends-on): Likewise.
18900 2008-11-02 Bruno Haible <bruno@clisp.org>
18902 Mark 'memchr' obsolete.
18903 * modules/memchr (Status, Notice): New sections.
18904 * modules/argp (Depends-on): Add memchr.
18905 * modules/base64 (Depends-on): Likewise.
18906 * modules/c-strcasestr (Depends-on): Likewise.
18907 * modules/chdir-long (Depends-on): Likewise.
18908 * modules/fnmatch (Depends-on): Likewise.
18909 * modules/getsubopt (Depends-on): Likewise.
18910 * modules/git-merge-changelog (Depends-on): Likewise.
18911 * modules/glob (Depends-on): Likewise.
18912 * modules/strcasestr-simple (Depends-on): Likewise.
18913 * modules/strnlen (Depends-on): Likewise.
18915 2008-11-02 Bruno Haible <bruno@clisp.org>
18917 Mark 'atexit' obsolete.
18918 * modules/atexit (Status, Notice): New sections.
18919 * modules/chdir-long (Depends-on): Add atexit.
18920 * modules/wait-process (Depends-on): Likewise.
18922 2008-11-02 Bruno Haible <bruno@clisp.org>
18924 * gnulib-tool: New option --with-obsolete.
18925 (func_usage): Document it.
18926 (func_modules_transitive_closure): Drop obsolete dependencies if
18927 incobsolete is not true.
18928 (func_import): Read and save the incobsolete variable to the cache.
18930 2008-11-02 Bruno Haible <bruno@clisp.org>
18932 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18933 * gnulib-tool: New option --extract-status.
18934 (func_usage): Document it.
18935 (sed_extract_prog): Recognize it.
18936 (func_get_status): New function.
18938 2008-10-30 Simon Josefsson <simon@josefsson.org>
18940 * modules/sockets (License): Change from LGPL to LGPLv2+.
18942 2008-10-28 Simon Josefsson <simon@josefsson.org>
18944 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18946 2008-10-28 Simon Josefsson <simon@josefsson.org>
18948 * MODULES.html.sh (Support for systems lacking POSIX:2001):
18949 Mention times and sys_times.
18950 * modules/sys_times, modules/sys_times-tests: New modules.
18951 * modules/times, modules/times-tests: Likewise
18952 * m4/sys_times_h.m4: New file.
18953 * lib/sys_times.in.h: Likewise
18954 * lib/times.c: Likewise.
18955 * tests/test-sys_times.c: Likewise.
18956 * tests/test-times.c: Likewise.
18957 * doc/posix-headers/sys_times.texi: Update.
18958 * doc/posix-functions/times.texi: Update.
18960 2008-10-28 Jim Meyering <meyering@redhat.com>
18962 * modules/tempname (Depends-on): Add lstat.
18964 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18966 2008-10-28 Simon Josefsson <simon@josefsson.org>
18968 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18969 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18970 using idiom used elsewhere in gnulib.
18972 2008-10-27 Jim Meyering <meyering@redhat.com>
18974 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18976 2008-10-27 Simon Josefsson <simon@josefsson.org>
18978 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18979 TESTS_ENVIRONMENT, for shell scripts that needs to call built
18981 * tests/test-argp-2.sh: Use $EXEEXT when needed.
18983 2008-10-27 Simon Josefsson <simon@josefsson.org>
18985 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18987 2008-10-27 Bruno Haible <bruno@clisp.org>
18989 * tests/test-lstat.c: Include <stdio.h>.
18991 2008-10-27 Simon Josefsson <simon@josefsson.org>
18993 * modules/lstat-tests: New module.
18994 * tests/test-lstat.c: New file.
18996 2008-10-26 Jim Meyering <meyering@redhat.com>
18998 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19000 2008-10-26 Simon Josefsson <simon@josefsson.org>
19001 Bruno Haible <bruno@clisp.org>
19003 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19004 * modules/configmake (Include): Add a note that the include must come
19005 after all system headers.
19006 * lib/javaversion.c: Include configmake.h after all other includes.
19008 2008-10-26 Bruno Haible <bruno@clisp.org>
19010 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19011 HAVE_STRUCT_RANDOM_DATA to 1.
19012 (gl_STDLIB_H): Simplify.
19014 2008-10-26 Simon Josefsson <simon@josefsson.org>
19016 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
19017 substitute HAVE_STRUCT_RANDOM_DATA.
19018 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19020 * modules/stdlib (Makefile.am): Substitute
19021 HAVE_STRUCT_RANDOM_DATA.
19023 2008-10-26 Simon Josefsson <simon@josefsson.org>
19025 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19026 * doc/gnulib-intro.texi (Copyright): Likewise.
19028 2008-10-26 Simon Josefsson <simon@josefsson.org>
19030 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19033 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
19034 Bruno Haible <bruno@clisp.org>
19036 * lib/unistd.in.h: Include <winsock2.h>.
19037 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19038 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19039 Provide dummy declarations.
19040 (gethostname): Override.
19041 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19042 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19043 gl_PREREQ_SYS_H_WINSOCK2.
19044 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19045 * doc/posix-functions/gethostname.texi: More details.
19047 2008-10-25 Bruno Haible <bruno@clisp.org>
19049 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19050 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19051 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19053 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19055 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19056 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19057 gl_UNISTD_H_DEFAULTS.
19059 2008-10-25 Eric Blake <ebb9@byu.net>
19061 signbit: avoid spurious compiler failure
19062 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19063 declarations inside function.
19065 2008-10-24 Simon Josefsson <simon@josefsson.org>
19066 Bruno Haible <bruno@clisp.org>
19068 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19069 * modules/random_r (Depends-on): Add stdint.
19071 2008-10-24 Bruno Haible <bruno@clisp.org>
19073 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19075 * modules/strerror (License): Likewise.
19077 2008-10-24 Jim Meyering <meyering@redhat.com>
19079 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19080 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19082 2008-10-24 Eric Blake <ebb9@byu.net>
19084 getgroups: fix compilation when getgroups is available
19085 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19086 but with <config.h> override of getgroups disabled.
19088 2008-10-24 Simon Josefsson <simon@josefsson.org>
19090 * doc/gnulib.texi (Header files): Add note about C++ problems.
19091 Explained by Bruno Haible <bruno@clisp.org>.
19093 2008-10-23 Bruno Haible <bruno@clisp.org>
19095 Define a dummy SA_NODEFER macro on Interix.
19096 * lib/signal.in.h (SA_NODEFER): Define fallback.
19097 Reported by Aleksey Cheusov <cheusov@tut.by> via
19098 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19100 2008-10-23 Bruno Haible <bruno@clisp.org>
19102 * modules/freadahead (License): Change to LGPLv2+.
19103 Suggested by Simon Josefsson.
19105 2008-10-23 Jim Meyering <meyering@redhat.com>
19107 random_r: new module
19108 * modules/random_r: New file.
19109 * m4/random_r.m4: New file.
19110 * lib/random_r.c: New file, from glibc.
19111 * modules/random_r-tests: New file.
19112 * tests/test-random_r.c: New file.
19113 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19115 (RAND_MAX): Define.
19116 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19117 * modules/stdlib: Substitute them, too.
19118 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19119 * doc/glibc-functions/initstate_r.texi: Mention the new module.
19120 * doc/glibc-functions/random_r.texi: Likewise.
19121 * doc/glibc-functions/setstate_r.texi: Likewise.
19122 * doc/glibc-functions/srandom_r.texi: Likewise.
19123 * config/srclist.txt: Mention it.
19125 2008-10-23 David Lutterkort <lutter@redhat.com>
19127 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19130 2008-10-23 Jim Meyering <meyering@redhat.com>
19132 selinux-h: mark parameters of stub functions as intentionally unused
19133 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19134 * lib/se-context.in.h: Likewise.
19136 2008-10-22 Simon Josefsson <simon@josefsson.org>
19138 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19140 2008-10-22 Simon Josefsson <simon@josefsson.org>
19142 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19144 2008-10-22 Eric Blake <ebb9@byu.net>
19146 glthread/thread: avoid compiler warning
19147 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19148 Add unreachable abort to silence compiler.
19150 2008-10-22 Eric Blake <ebb9@byu.net>
19152 netdb: also supply struct addrinfo for cygwin 1.5.x
19153 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19155 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19157 * doc/posix-headers/netdb.texi (netdb.h): Document this.
19159 2008-10-22 Bruno Haible <bruno@clisp.org>
19161 * users.txt: Update entry about pspp.
19163 2008-10-21 Bruno Haible <bruno@clisp.org>
19166 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19167 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19170 * lib/ioctl.c (ioctl): Don't undefine.
19171 * lib/socket.c (socket): Don't undefine.
19173 Remove unused module indicator macros.
19174 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19175 GNULIB_$1 as a C macro.
19177 * doc/posix-functions/close.texi: Undo last change.
19178 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19181 2008-10-21 Bruno Haible <bruno@clisp.org>
19183 Add gethostname() declaration to <unistd.h>.
19184 * lib/unistd.in.h (gethostname): New declaration.
19185 * lib/gethostname.c: Include <unistd.h>.
19186 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19187 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19188 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19189 and HAVE_GETHOSTNAME.
19190 * modules/gethostname (Depends-on): Add unistd.
19191 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19192 (Include): Specify <unistd.h>.
19193 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19195 * tests/test-gethostname.c: Include <unistd.h> first.
19197 2008-10-21 Bruno Haible <bruno@clisp.org>
19199 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19200 * modules/select-tests (Depends-on): Likewise.
19201 Reported by Simon Josefsson.
19203 2008-10-21 Simon Josefsson <simon@josefsson.org>
19205 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19206 * lib/accept.c: New file, based on winsock.c.
19207 * lib/bind.c: New file, based on winsock.c.
19208 * lib/connect.c: New file, based on winsock.c.
19209 * lib/getpeername.c: New file, based on winsock.c.
19210 * lib/getsockname.c: New file, based on winsock.c.
19211 * lib/getsockopt.c: New file, based on winsock.c.
19212 * lib/ioctl.c: New file, based on winsock.c.
19213 * lib/listen.c: New file, based on winsock.c.
19214 * lib/recv.c: New file, based on winsock.c.
19215 * lib/recvfrom.c: New file, based on winsock.c.
19216 * lib/send.c: New file, based on winsock.c.
19217 * lib/sendto.c: New file, based on winsock.c.
19218 * lib/setsockopt.c: New file, based on winsock.c.
19219 * lib/shutdown.c: New file, based on winsock.c.
19220 * lib/socket.c: New file, based on winsock.c.
19221 * lib/w32sock.h: New file, based on winsock.c.
19222 * lib/winsock.c: Remove file.
19223 * modules/accept: Likewise.
19224 * modules/bind: Likewise.
19225 * modules/connect: Likewise.
19226 * modules/getpeername: Likewise.
19227 * modules/getsockname: Likewise.
19228 * modules/getsockopt: Likewise.
19229 * modules/ioctl: Likewise.
19230 * modules/listen: Likewise.
19231 * modules/recv: Likewise.
19232 * modules/recvfrom: Likewise.
19233 * modules/send: Likewise.
19234 * modules/sendto: Likewise.
19235 * modules/setsockopt: Likewise.
19236 * modules/shutdown: Likewise.
19237 * modules/socket: Use socket.c instead of winsock.c.
19238 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19239 * doc/posix-functions/accept.texi: Doc fix.
19240 * doc/posix-functions/bind.texi: Doc fix.
19241 * doc/posix-functions/close.texi: Doc fix.
19242 * doc/posix-functions/connect.texi: Doc fix.
19243 * doc/posix-functions/getpeername.texi: Doc fix.
19244 * doc/posix-functions/getsockname.texi: Doc fix.
19245 * doc/posix-functions/getsockopt.texi: Doc fix.
19246 * doc/posix-functions/ioctl.texi: Doc fix.
19247 * doc/posix-functions/listen.texi: Doc fix.
19248 * doc/posix-functions/recv.texi: Doc fix.
19249 * doc/posix-functions/recvfrom.texi: Doc fix.
19250 * doc/posix-functions/send.texi: Doc fix.
19251 * doc/posix-functions/sendto.texi: Doc fix.
19252 * doc/posix-functions/setsockopt.texi: Doc fix.
19253 * doc/posix-functions/shutdown.texi: Doc fix.
19254 * doc/posix-functions/socket.texi: Doc fix.
19256 2008-10-20 Bruno Haible <bruno@clisp.org>
19258 Take into account the role of SIGABRT_COMPAT on Windows 2008.
19259 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19260 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19261 as an alias for SIGABRT.
19262 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19263 (sigaction): Map it to SIGABRT.
19264 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19266 2008-10-20 Bruno Haible <bruno@clisp.org>
19268 * lib/fts.c: Don't include lstat.h.
19269 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19271 Move the lstat() declaration to <sys/stat.h>.
19272 * lib/lstat.h: Remove file.
19273 * lib/sys_stat.in.h: Add special invocation convention.
19274 (lstat): New declaration.
19275 * lib/lstat.c (orig_lstat): New function.
19276 (rpl_lstat): Use orig_lstat instead of lstat.
19277 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19278 AC_C_INLINE. Set REPLACE_LSTAT.
19279 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19281 * modules/lstat (Files): Remove lib/lstat.h.
19282 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19283 (Include): Specify <sys/stat.h> instead of lstat.h.
19284 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19286 * NEWS: Mention the change.
19288 2008-10-20 Bruno Haible <bruno@clisp.org>
19290 * modules/posix_spawn-tests: New file.
19291 * tests/test-posix_spawn3.c: New file.
19293 2008-10-20 Bruno Haible <bruno@clisp.org>
19295 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19296 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19297 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19298 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19299 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19301 2008-10-20 Bruno Haible <bruno@clisp.org>
19303 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19304 of posix_spawn on AIX 5.3.
19306 2008-10-20 Bruno Haible <bruno@clisp.org>
19308 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19310 2008-10-20 Bruno Haible <bruno@clisp.org>
19312 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19313 of AC_LANG_PROGRAM.
19315 2008-10-20 Simon Josefsson <simon@josefsson.org>
19317 * lib/netdb.in.h: Don't define GNU specific constants until they
19318 are supported or needed. Reported by Bruno Haible
19321 2008-10-20 Simon Josefsson <simon@josefsson.org>
19323 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19325 2008-10-20 Simon Josefsson <simon@josefsson.org>
19327 * lib/getaddrinfo.h: Remove file.
19328 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19329 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
19330 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19331 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19332 * modules/netdb: Substitute GNULIB_GETADDRINFO.
19333 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19334 * tests/test-getaddrinfo.c: Likewise.
19335 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
19336 * NEWS: Mention change.
19338 2008-10-19 Bruno Haible <bruno@clisp.org>
19340 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19342 2008-10-19 Bruno Haible <bruno@clisp.org>
19344 * lib/wait-process.c: Include simply <sys/wait.h>.
19345 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19346 WIFSTOPPED): Remove fallback definitions.
19347 * modules/wait-process (Depends-on): Add sys_wait.
19349 New module 'sys_wait'.
19350 * modules/sys_wait: New file.
19351 * lib/sys_wait.in.h: New file, partially copied from
19352 lib/wait-process.c.
19353 * m4/sys_wait_h.m4: New file.
19354 * doc/posix-headers/sys_wait.texi: Mention the new module.
19356 2008-10-19 Bruno Haible <bruno@clisp.org>
19358 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19360 2008-10-19 Bruno Haible <bruno@clisp.org>
19362 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19363 * lib/wait-process.c (WAIT_T): Remove type.
19364 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19365 (wait_subprocess): Update.
19367 2008-10-19 Bruno Haible <bruno@clisp.org>
19369 New module 'atoll'.
19370 * modules/atoll: New file.
19371 * lib/stdlib.in.h (atoll): New declaration.
19372 * lib/atoll.c: New file, from glibc with modifications.
19373 * m4/atoll.m4: New file.
19374 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19376 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19377 * doc/posix-functions/atoll.texi: Mention the new module.
19379 2008-10-19 Bruno Haible <bruno@clisp.org>
19381 Add strtoull() declaration to <stdlib.h>.
19382 * lib/stdlib.in.h (strtoull): New declaration.
19383 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19385 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19387 * modules/strtoull (Depends-on): Add stdlib.
19388 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19389 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19392 2008-10-19 Bruno Haible <bruno@clisp.org>
19394 Add strtoll() declaration to <stdlib.h>.
19395 * lib/stdlib.in.h (strtoll): New declaration.
19396 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19398 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19400 * modules/strtoll (Depends-on): Add stdlib.
19401 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19402 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19404 2008-10-19 Bruno Haible <bruno@clisp.org>
19406 * modules/bcopy (Depends-on): Add strings.
19407 (Include): Specify <strings.h>.
19409 2008-10-19 Bruno Haible <bruno@clisp.org>
19411 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19413 2008-10-19 Bruno Haible <bruno@clisp.org>
19415 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19416 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19419 2008-10-19 Bruno Haible <bruno@clisp.org>
19421 * lib/atanl.c: Don't include isnanl.h.
19422 * lib/cosl.c: Likewise.
19423 * lib/ldexpl.c: Likewise.
19424 * lib/logl.c: Likewise.
19425 * lib/sinl.c: Likewise.
19426 * lib/sqrtl.c: Likewise.
19427 * lib/tanl.c: Likewise.
19429 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19430 * lib/isnanf.h: Remove file.
19431 * lib/isnand.h: Remove file.
19432 * lib/isnanl.h: Remove file.
19433 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19434 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19436 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19437 HAVE_ISNANF, don't define it as a C macro.
19438 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19439 HAVE_ISNAND, don't define it as a C macro.
19440 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19441 HAVE_ISNANL, don't define it as a C macro.
19442 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19444 * modules/isnanf (Files): Remove lib/isnanf.h.
19445 (Depends-on): Add math.
19446 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19447 (Include): Specify <math.h> instead of isnanf.h.
19448 * modules/isnand (Files): Remove lib/isnand.h.
19449 (Depends-on): Add math.
19450 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19451 (Include): Specify <math.h> instead of isnand.h.
19452 * modules/isnanl (Files): Remove lib/isnanl.h.
19453 (Depends-on): Add math.
19454 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19455 (Include): Specify <math.h> instead of isnanl.h.
19456 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19458 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19459 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19460 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19461 * NEWS: Mention the change.
19463 2008-10-18 Bruno Haible <bruno@clisp.org>
19465 Add getusershell(), setusershell(), endusershell() declarations to
19467 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19469 * lib/getusershell.c: Include unistd.h.
19470 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19471 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19473 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19474 and HAVE_GETUSERSHELL.
19475 * modules/getusershell (Depends-on): Add unistd, extensions.
19476 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19477 (Include): Specify <unistd.h>.
19478 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19481 2008-10-18 Bruno Haible <bruno@clisp.org>
19483 Add a getloadavg() declaration to <stdlib.h>.
19484 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19485 getloadavg declaration.
19486 (getloadavg): New declaration.
19487 * lib/getloadavg.c: Include <stdlib.h> first.
19488 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19489 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19490 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19491 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19492 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19493 * modules/getloadavg (Depends-on): Add stdlib, extensions.
19494 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19495 (Include): Specify <stdlib.h>.
19496 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19497 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19499 2008-10-18 Bruno Haible <bruno@clisp.org>
19501 * lib/dirchownmod.c: Don't include lchmod.h.
19503 Move the lchmod() declaration to <sys/stat.h>.
19504 * lib/lchmod.h: Remove file.
19505 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19506 (lchmod): New declaration, moved here from lib/lchown.h.
19507 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19508 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19509 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19511 * modules/lchmod (Files): Remove lib/lchmod.h.
19512 (Depends-on): Add sys_stat, extensions.
19513 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19514 (Include): Specify <sys/stat.h> instead of lchmod.h.
19515 * modules/sys_stat (Depends-on): Add link-warning.
19516 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19517 definition of GL_LINK_WARNING.
19518 * NEWS: Mention the change.
19520 2008-10-18 Bruno Haible <bruno@clisp.org>
19522 * lib/fchdir.c: Don't include dirfd.h.
19523 * lib/fts.c: Likewise.
19524 * lib/getcwd.c: Likewise.
19525 * lib/glob.c: Likewise.
19527 Move the dirfd() declaration to <dirent.h>.
19528 * lib/dirfd.h: Remove file.
19529 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19530 (dirfd): New declaration.
19531 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19532 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19533 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19535 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19537 * modules/dirfd (Files): Remove lib/dirfd.h.
19538 (Depends-on): Add dirent, extensions.
19539 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19540 (Include): Specify <dirent.h> instead of dirfd.h.
19541 * modules/dirent (Depends-on): Add link-warning.
19542 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19543 definition of GL_LINK_WARNING.
19544 * NEWS: Mention the change.
19546 2008-10-18 Bruno Haible <bruno@clisp.org>
19548 Move the euidaccess() declaration to <unistd.h>.
19549 * lib/euidaccess.h: Remove file.
19550 * lib/unistd.in.h (euidaccess): New declaration.
19551 * lib/euidaccess.c: Don't include euidaccess.h.
19552 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19553 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19554 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19555 and HAVE_EUIDACCESS.
19556 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19557 (Depends-on): Add unistd.
19558 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19559 (Include): Specify <unistd.h> instead of euidaccess.h.
19560 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19562 * NEWS: Mention the change.
19564 2008-10-18 Bruno Haible <bruno@clisp.org>
19566 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19568 Move the getdomainname() declaration to <unistd.h>.
19569 * lib/getdomainname.h: Remove file.
19570 * lib/unistd.in.h (getdomainname): New declaration.
19571 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19572 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19573 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19574 HAVE_GETDOMAINNAME.
19575 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19576 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19577 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19578 (Depends-on): Add unistd, extensions.
19579 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19580 (Includes): Specify <unistd.h> instead of getdomainname.h.
19581 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19582 HAVE_GETDOMAINNAME.
19583 * NEWS: Mention the change.
19585 2008-10-18 Bruno Haible <bruno@clisp.org>
19587 * modules/dirent: New file.
19588 * m4/dirent_h.m4: New file.
19589 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19590 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19591 * modules/fchdir (Files): Remove lib/dirent.in.h.
19592 (Depends-on): Add dirent.
19593 (Makefile.am): Move rules to modules/dirent.
19594 * doc/posix-headers/dirent.texi: Mention the new module.
19596 2008-10-18 Bruno Haible <bruno@clisp.org>
19598 Avoid -Wunused-parameter warnings in public gnulib header files.
19599 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19601 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19603 2008-10-18 Bruno Haible <bruno@clisp.org>
19605 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19606 * doc/glibc-functions/error.texi: Mention the module 'error'.
19607 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19608 * doc/glibc-functions/getdomainname.texi: Mention the module
19610 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19611 * doc/glibc-functions/getpagesize.texi: Mention the module
19613 * doc/glibc-functions/getusershell.texi: Mention the module
19615 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19616 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19617 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19618 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19619 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19620 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19621 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19622 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19623 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19624 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19625 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19626 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19627 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19628 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19630 2008-10-17 Bruno Haible <bruno@clisp.org>
19632 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19633 HP-UX and IRIX, use -0.0L.
19634 * tests/test-ceill.c (minus_zero): Likewise.
19635 * tests/test-floorl.c (minus_zero): Likewise.
19636 * tests/test-frexpl.c (minus_zero): Likewise.
19637 * tests/test-isnan.c (minus_zerol): Likewise.
19638 * tests/test-isnanl.h (minus_zero): Likewise.
19639 * tests/test-ldexpl.c (minus_zero): Likewise.
19640 * tests/test-roundl.c (minus_zero): Likewise.
19641 * tests/test-signbit.c (minus_zerol): Likewise.
19642 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19643 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19644 * tests/test-truncl.c (minus_zero): Likewise.
19645 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19646 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19647 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19648 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19650 2008-10-17 Bruno Haible <bruno@clisp.org>
19652 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19653 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19654 that it gets activated only for gcc >= 3.0.
19655 * lib/dirent.in.h: Likewise.
19656 * lib/errno.in.h: Likewise.
19657 * lib/fcntl.in.h: Likewise.
19658 * lib/float.in.h: Likewise.
19659 * lib/iconv.in.h: Likewise.
19660 * lib/inttypes.in.h: Likewise.
19661 * lib/locale.in.h: Likewise.
19662 * lib/math.in.h: Likewise.
19663 * lib/netdb.in.h: Likewise.
19664 * lib/netinet_in.in.h: Likewise.
19665 * lib/search.in.h: Likewise.
19666 * lib/signal.in.h: Likewise.
19667 * lib/spawn.in.h: Likewise.
19668 * lib/stdarg.in.h: Likewise.
19669 * lib/stdint.in.h: Likewise.
19670 * lib/stdio.in.h: Likewise.
19671 * lib/stdlib.in.h: Likewise.
19672 * lib/string.in.h: Likewise.
19673 * lib/strings.in.h: Likewise.
19674 * lib/sys_file.in.h: Likewise.
19675 * lib/sys_ioctl.in.h: Likewise.
19676 * lib/sys_select.in.h: Likewise.
19677 * lib/sys_socket.in.h: Likewise.
19678 * lib/sys_stat.in.h: Likewise.
19679 * lib/sys_time.in.h: Likewise.
19680 * lib/sysexits.in.h: Likewise.
19681 * lib/time.in.h: Likewise.
19682 * lib/unistd.in.h: Likewise.
19683 * lib/wchar.in.h: Likewise.
19684 * lib/wctype.in.h: Likewise.
19685 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19687 2008-10-17 Jim Meyering <meyering@redhat.com>
19689 ignore-value: don't depend on inline module
19690 * modules/ignore-value (Depends-on): Remove 'inline'.
19691 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19692 Suggestion from Bruno Haible.
19694 2008-10-17 Bruno Haible <bruno@clisp.org>
19696 New implementation of condition variables for Win32.
19697 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19698 (gl_linked_waitqueue_t): New type.
19699 (gl_cond_t): Use it.
19700 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19701 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19702 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19703 (glthread_cond_init_func, glthread_cond_wait_func,
19704 glthread_cond_timedwait_func, glthread_cond_signal_func,
19705 glthread_cond_broadcast_func, glthread_cond_destroy_func):
19706 Reimplemented on the basis of gl_linked_waitqueue_t.
19707 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19709 (gl_rwlock_t): Update.
19710 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19712 2008-10-17 Simon Josefsson <simon@josefsson.org>
19714 * modules/recvfrom (Depends-on): Add dependency on getpeername.
19715 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19717 2008-10-17 Jim Meyering <meyering@redhat.com>
19719 ignore-value: new module
19720 * modules/ignore-value: New file.
19721 * lib/ignore-value.h: New file.
19722 * MODULES.html.sh (Compiler warning management): New section,
19723 just for this module. More to come.
19725 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
19727 open-safer.c: avoid 'signed and unsigned in conditional...' warning
19728 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19729 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
19731 2008-10-16 Jim Meyering <meyering@redhat.com>
19733 openat-die.c: avoid 'no previous prototype' warning
19734 * lib/openat-die.c: Include "openat.h".
19735 Reported by Reuben Thomas <rrt@sc3d.org>.
19737 2008-10-16 Simon Josefsson <simon@josefsson.org>
19739 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19740 * lib/netdb.in.h: Fix typo.
19741 Reported by Bruno Haible <bruno@clisp.org>
19743 * lib/netdb.in.h: Include sys/socket.h for platforms without
19744 netdb.h, to get structures like hostent on MinGW.
19745 * modules/netdb (Depends-on): Add sys_socket.
19747 2008-10-15 Simon Josefsson <simon@josefsson.org>
19749 * modules/netdb, modules/netdb-tests: New file.
19750 * m4/netdb_h.m4: New file.
19751 * lib/netdb.in.h: Add, currently just an empty file pending
19753 * tests/test-netdb.c: New file.
19754 * doc/posix-headers/netdb.texi: Mention that we replace it if
19756 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19759 2008-10-15 Simon Josefsson <simon@josefsson.org>
19761 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19764 2008-10-13 Bruno Haible <bruno@clisp.org>
19766 * lib/glthread/cond.c (glthread_cond_wait_func,
19767 glthread_cond_timedwait_func): Add a comment.
19769 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
19771 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19772 * tests/test-select.c: Likewise,
19774 2008-10-13 Bruno Haible <bruno@clisp.org>
19776 * lib/glthread/cond.c (glthread_cond_wait_func,
19777 glthread_cond_timedwait_func): Fix variable name.
19778 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19780 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
19782 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19783 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19784 struct sockaddr.sa_len.
19785 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19787 2008-10-13 Simon Josefsson <simon@josefsson.org>
19789 * build-aux/pmccabe2html: Add css and css_url parameters.
19791 2008-10-12 Bruno Haible <bruno@clisp.org>
19793 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19795 Reported by Rainer Tammer <tammer@tammer.net>.
19797 2008-10-12 Bruno Haible <bruno@clisp.org>
19799 Use msvcrt aware primitives for creation/termination of Win32 threads.
19800 * lib/glthread/thread.c: Include <process.h>.
19801 (glthread_create_func): Use _beginthreadex instead of CreateThread.
19802 (wrapper_func): Update signature.
19803 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19805 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19806 Bruno Haible <bruno@clisp.org>
19808 Provide a Win32 implementation of the 'cond' module.
19809 * lib/glthread/cond.h [USE_WIN32]: New implementation.
19810 * lib/glthread/cond.c (glthread_cond_init_func,
19811 glthread_cond_wait_func, glthread_cond_timedwait_func,
19812 glthread_cond_signal_func, glthread_cond_broadcast_func,
19813 glthread_cond_destroy_func) [USE_WIN32]: New functions.
19814 * modules/cond (Dependencies): Add gettimeofday.
19816 2008-10-11 Bruno Haible <bruno@clisp.org>
19818 Make sleep work on older versions of mingw.
19819 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19820 only whether it exists.
19821 * doc/posix-functions/sleep.texi: Mention the problem with older
19824 2008-10-11 Bruno Haible <bruno@clisp.org>
19826 New module 'shutdown'.
19827 * modules/shutdown: New file.
19828 * lib/sys_socket.in.h (shutdown): New declaration.
19829 * lib/winsock.c (shutdown): New function.
19830 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19832 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19833 * doc/posix-functions/shutdown.texi: Document the new module.
19835 2008-10-11 Jim Meyering <meyering@redhat.com>
19837 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19839 2008-10-11 Bruno Haible <bruno@clisp.org>
19841 New module 'fclose'.
19842 * modules/fclose: New file.
19843 * lib/stdio.in.h (fclose): New declaration.
19844 * lib/fclose.c: New file.
19845 * m4/fclose.m4: New file.
19846 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19848 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19849 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19851 * modules/close (Depends-on): fclose.
19852 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19854 2008-10-11 Bruno Haible <bruno@clisp.org>
19856 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19857 set errno and don't call _close.
19859 2008-10-10 Bruno Haible <bruno@clisp.org>
19861 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19862 ACL, not afterwards. Fixes test failure on Cygwin.
19864 2008-10-09 Ben Pfaff <blp@gnu.org>
19866 * build-aux/announce-gen: Fix gnulib version related part of usage
19867 message. Die with a useful error message if no tarballs are
19870 2008-10-10 Jim Meyering <meyering@redhat.com>
19872 bootstrap: use git's --depth=N option only if it's supported
19873 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19874 recognize the --depth option. Reported by Pádraig Brady.
19876 2008-10-09 Bruno Haible <bruno@clisp.org>
19878 New module 'ioctl'.
19879 * modules/ioctl: New file.
19880 * lib/sys_socket.in.h (ioctl): Remove declaration.
19881 * lib/winsock.c: Include <sys/ioctl.h>.
19882 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19883 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19884 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19885 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19886 * doc/posix-functions/ioctl.texi: Mention the new module.
19888 2008-10-09 Bruno Haible <bruno@clisp.org>
19890 New module 'sys_ioctl'.
19891 * lib/sys_ioctl.in.h: New file.
19892 * m4/sys_ioctl_h.m4: New file.
19893 * modules/sys_ioctl: New file.
19894 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19896 2008-10-09 Bruno Haible <bruno@clisp.org>
19898 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19899 * lib/winsock.c: Include <stdarg.h>.
19900 (rpl_ioctl): Change to second argument 'int' and then varargs.
19902 2008-10-09 Bruno Haible <bruno@clisp.org>
19904 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19905 when the sys_socket module is present and the system has <winsock2.h>.
19907 2008-10-09 Bruno Haible <bruno@clisp.org>
19909 * doc/posix-functions/close.texi: Mention module 'close' instead of
19910 module 'sys_socket'.
19912 2008-10-09 Bruno Haible <bruno@clisp.org>
19914 * doc/glibc-headers/sys_ioctl.texi: New file.
19915 * doc/gnulib.texi: Include it.
19917 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19918 Bruno Haible <bruno@clisp.org>
19920 Combine the two replacements of 'close'.
19921 * lib/sys_socket.in.h (close): Define to a reminder to include
19923 (_gl_close_fd_maybe_socket): New declaration.
19924 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19925 * lib/winsock.c (close): Remove undefinition.
19926 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19927 needed for the gnulib module 'close'.
19928 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19929 define to an error symbol or to a warning, if suitable.
19930 * lib/close.c: Include <sys/socket.h>.
19931 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19932 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19933 UNISTD_H_HAVE_WINSOCK2_H.
19934 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19935 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19936 UNISTD_H_HAVE_WINSOCK2_H.
19937 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19938 (configure.ac): Set a module indicator.
19939 (Makefile.am): Substitute GNULIB_CLOSE.
19940 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19941 * modules/poll-tests (Depends-on): Add close.
19942 * modules/select-tests (Depends-on): Likewise.
19944 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19945 Bruno Haible <bruno@clisp.org>
19947 New module 'close'.
19948 * modules/close: New file.
19949 * lib/unistd.in.h (close): Move declaration out of the
19950 FCHDIR_REPLACEMENT scope.
19951 (_gl_unregister_fd): New declaration.
19952 * lib/close.c: New file.
19953 * lib/fchdir.c (rpl_close): Remove function.
19954 * m4/close.m4: New file.
19955 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19957 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19959 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19961 * modules/fchdir (Depends-on): Add close.
19963 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19964 Bruno Haible <bruno@clisp.org>
19966 * lib/fcntl.in.h (open): Simplify conditionals.
19967 (_gl_register_fd): New declaration.
19968 * lib/fchdir.c (rpl_open): Remove function.
19969 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19971 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19972 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19975 2008-10-09 Jim Meyering <meyering@redhat.com>
19977 GNUmakefile: use the more name-space-friendly "_version"
19978 * top/GNUmakefile (_dummy): Update.
19979 (_version): Rename from "version".
19981 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19982 Bruno Haible <bruno@clisp.org>
19984 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19986 (_gl_register_fd): New function, extracted from rpl_open.
19987 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19988 (rpl_open, rpl_opendir): Use _gl_register_fd.
19990 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19992 Fix organization of 'open' replacement.
19993 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19994 (gl_FUNC_OPEN): Use it.
19995 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19997 2008-10-08 Bruno Haible <bruno@clisp.org>
19999 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20001 2008-10-08 Simon Josefsson <simon@josefsson.org>
20003 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
20004 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20007 2008-10-08 Eric Blake <ebb9@byu.net>
20009 GNUmakefile: add 'make version' target
20010 * top/GNUmakefile (_curr-ver): Split version update rules...
20011 (version): ...into a target.
20013 2008-10-07 Bruno Haible <bruno@clisp.org>
20015 Use a more portable replacement expression for -0.0L.
20016 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20017 instead of -0.0L. Fix m4 quotation.
20019 * tests/test-signbit.c: Include <float.h>.
20020 (minus_zero): New variable.
20021 (test_signbitl): Use minus_zero instead of -zero.
20022 * modules/signbit-tests (Depends-on): Add float.
20024 * tests/test-ceill.c: Include <float.h>.
20025 (zero): Remove variable.
20026 (minus_zero): New variable.
20027 (main): Use minus_zero instead of -zero.
20028 * modules/ceill-tests (Depends-on): Add float.
20030 * tests/test-floorl.c: Include <float.h>.
20031 (zero): Remove variable.
20032 (minus_zero): New variable.
20033 (main): Use minus_zero instead of -zero.
20034 * modules/floorl-tests (Depends-on): Add float.
20036 * tests/test-roundl.c: Include <float.h>.
20037 (zero): Remove variable.
20038 (minus_zero): New variable.
20039 (main): Use minus_zero instead of -zero.
20040 * modules/roundl-tests (Depends-on): Add float.
20042 * tests/test-truncl.c: Include <float.h>.
20043 (zero): Remove variable.
20044 (minus_zero): New variable.
20045 (main): Use minus_zero instead of -zero.
20046 * modules/truncl-tests (Depends-on): Add float.
20048 * tests/test-frexpl.c (zero): Remove variable.
20049 (minus_zero): New variable.
20050 (main): Use minus_zero instead of -zero.
20051 * modules/frexpl-tests (Depends-on): Add float.
20053 * tests/test-isnan.c (zerol): Remove variable.
20054 (minus_zerol): New variable.
20055 (test_long_double): Use minus_zerol instead of -zerol.
20056 * modules/isnan-tests (Depends-on): Add float.
20058 * tests/test-isnanl.h (zero): Remove variable.
20059 (minus_zero): New variable.
20060 (main): Use minus_zero instead of -zero.
20061 * modules/isnanl-nolibm-tests (Depends-on): Add float.
20062 * modules/isnanl-tests (Depends-on): Add float.
20064 * tests/test-ldexpl.c (zero): Remove variable.
20065 (minus_zero): New variable.
20066 (main): Use minus_zero instead of -zero.
20067 * modules/ldexpl-tests (Depends-on): Add float.
20069 * tests/test-snprintf-posix.h (zerol): Remove variable.
20070 (minus_zerol): New variable.
20071 (test_function): Use minus_zerol instead of -zerol.
20072 * modules/snprintf-posix-tests (Depends-on): Add float.
20073 * modules/vsnprintf-posix-tests (Depends-on): Add float.
20075 * tests/test-sprintf-posix.h (zerol): Remove variable.
20076 (minus_zerol): New variable.
20077 (test_function): Use minus_zerol instead of -zerol.
20078 * modules/sprintf-posix-tests (Depends-on): Add float.
20079 * modules/vsprintf-posix-tests (Depends-on): Add float.
20081 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20082 (minus_zerol): New variable.
20083 (test_function): Use minus_zerol instead of -zerol.
20084 * modules/vasnprintf-posix-tests (Depends-on): Add float.
20086 * tests/test-vasprintf-posix.c (zerol): Remove variable.
20087 (minus_zerol): New variable.
20088 (test_function): Use minus_zerol instead of -zerol.
20089 * modules/vasprintf-posix-tests (Depends-on): Add float.
20091 2008-10-07 Simon Josefsson <simon@josefsson.org>
20093 * MODULES.html.sh (Support for building documentation): Mention
20094 pmccabe2html. Sort entries.
20096 Add pmccabe2html module, from gnupdf.
20097 * build-aux/pmccabe.css: New file.
20098 * build-aux/pmccabe2html: New file.
20099 * m4/pmccabe2html.m4: New file.
20100 * modules/pmccabe2html: New file.
20102 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
20105 * MODULES.html.sh: Add to list of modules.
20106 * lib/flock.c: flock implementation for Windows and Unix systems
20108 * doc/glibc-functions/flock.texi: Update documentation.
20109 * lib/sys_file.in.h: <sys/file.h> header file.
20110 * m4/flock.m4: M4 macros.
20111 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20112 * modules/flock: flock module.
20113 * modules/flock-tests: flock tests module.
20114 * modules/sys_file: sys/file.h module.
20115 * tests/test-flock.c: test suite for flock.
20117 2008-10-06 Jim Meyering <meyering@redhat.com>
20119 bootstrap: check for LT_INIT more portably still ;-)
20120 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20121 Spotted by Bruno Haible.
20123 2008-10-06 Eric Blake <ebb9@byu.net>
20125 test-signbit: avoid tripping Irix cc bug on -0.0L
20126 * tests/test-signbit.c (minus_zerol): Delete, and replace with
20127 '-zerol'. This may break on HP-UX/hppa, but at least makes the
20128 entire testsuite consistent and avoids an Irix 6.2 bug.
20130 2008-10-05 Bruno Haible <bruno@clisp.org>
20131 Jim Meyering <jim@meyering.net>
20133 Add an option for ignoring EPIPE during close_stdout.
20134 * lib/closeout.h: Include <stdbool.h>.
20135 (close_stdout_set_ignore_EPIPE): New declaration.
20136 * lib/closeout.c: Include <stdbool.h>.
20137 (ignore_EPIPE): New variable.
20138 (close_stdout_set_ignore_EPIPE): New function.
20139 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20140 * lib/close-stream.c (close_stream): Mention the possible EPIPE
20142 * modules/closeout (Depends-on): Add stdbool.
20144 2008-10-05 Bruno Haible <bruno@clisp.org>
20146 * modules/accept: New file.
20147 * modules/bind: New file.
20148 * modules/connect: New file.
20149 * modules/getpeername: New file.
20150 * modules/getsockname: New file.
20151 * modules/getsockopt: New file.
20152 * modules/listen: New file.
20153 * modules/recv: New file.
20154 * modules/recvfrom: New file.
20155 * modules/send: New file.
20156 * modules/sendto: New file.
20157 * modules/setsockopt: New file.
20158 * modules/socket: New file.
20159 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20160 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20161 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20162 the particular module is requested. Add a link warning when the
20163 particular module is not requested.
20164 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20165 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20166 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20167 the particular module is requested.
20168 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20169 gl_SYS_SOCKET_H_DEFAULTS): New macros.
20170 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20171 * modules/sys_socket (Depends-on): Add link-warning.
20172 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20173 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20174 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20175 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20177 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20178 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20179 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20180 * doc/posix-functions/getpeername.texi: Mention the new module
20182 * doc/posix-functions/getsockname.texi: Mention the new module
20184 * doc/posix-functions/getsockopt.texi: Mention the new module
20186 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20187 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20188 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20189 * doc/posix-functions/send.texi: Mention the new module 'send'.
20190 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20191 * doc/posix-functions/setsockopt.texi: Mention the new module
20193 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20194 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20195 listen, connect, accept.
20196 * modules/select-tests (Depends-on): Likewise.
20198 2008-10-05 Bruno Haible <bruno@clisp.org>
20200 * lib/winsock.c (strerror): Remove unused #undef.
20201 (rpl_close): Remove unused local variable.
20203 * modules/sys_socket (Depends-on); Add errno.
20205 2008-10-05 Bruno Haible <bruno@clisp.org>
20207 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20208 (select): Add a link warning when the 'select' module is not used.
20209 * modules/sys_select (Depends-on): Add link-warning.
20210 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20211 Suggested by Paolo Bonzini.
20213 2008-10-05 Jim Meyering <meyering@redhat.com>
20215 bootstrap: check for LT_INIT more portably
20216 * build-aux/bootstrap: Avoid using grep -E, since it's not
20217 portable enough. Suggestion from Bruno Haible.
20219 2008-10-05 Bruno Haible <bruno@clisp.org>
20221 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20222 as being fixed by gnulib.
20224 2008-10-05 Bruno Haible <bruno@clisp.org>
20226 * modules/select-tests: New file, mostly copied from
20227 modules/sys_select-tests.
20228 * tests/test-select.c: New file, mostly copied from
20229 tests/test-sys_select.c.
20230 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20231 * modules/sys_select-tests (Depends-on): Remove all dependencies.
20232 (Makefile.am): Remove test_sys_select_LDADD.
20234 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20235 to an undefined symbol, for an error message.
20236 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20237 (gl_SYS_SELECT_H_DEFAULTS): New macro.
20238 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20239 winsock-select.c here.
20240 * modules/sys_select (Files): Remove lib/winsock-select.c.
20241 (Depends-on): Remove alloca.
20242 (Makefile.am): Substitute GNULIB_SELECT.
20243 * modules/select: New file.
20244 * doc/posix-functions/select.texi: Update.
20246 2008-10-05 Bruno Haible <bruno@clisp.org>
20248 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20249 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20250 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20251 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20253 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20254 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20256 2008-10-05 Bruno Haible <bruno@clisp.org>
20258 * modules/getdtablesize-tests: New file.
20259 * tests/test-getdtablesize.c: New file.
20261 New module 'getdtablesize'.
20262 * lib/unistd.in.h (getdtablesize): New declaration.
20263 * lib/getdtablesize.c: New file.
20264 * m4/getdtablesize.m4: New file.
20265 * modules/getdtablesize: New file.
20266 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20267 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20268 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20269 HAVE_GETDTABLESIZE.
20270 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20272 2008-10-05 Bruno Haible <bruno@clisp.org>
20274 * modules/sched (Makefile.am): Fix typo.
20275 Reported by Simon Josefsson.
20277 2008-10-05 Jim Meyering <meyering@redhat.com>
20279 bootstrap: check for LT_INIT, too
20280 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20281 are deprecated. Suggestion from Ralf Wildenhues.
20283 2008-10-05 Bruno Haible <bruno@clisp.org>
20285 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20286 overriding them by ours.
20287 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20289 2008-10-05 Jim Meyering <meyering@redhat.com>
20291 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20292 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20293 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
20295 2008-10-04 Bruno Haible <bruno@clisp.org>
20297 * modules/dup2 (License): Change to LGPLv2+.
20298 * modules/sleep (License): Likewise.
20299 * modules/perror (License): Likewise.
20300 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20302 * modules/signal (License): Likewise.
20303 * modules/sigprocmask (License): Likewise.
20304 * modules/raise (License): Change to LGPLv2+, with approval by Jim
20307 2008-10-04 Bruno Haible <bruno@clisp.org>
20309 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20310 Reported by Rainer Tammer <tammer@tammer.net>.
20312 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
20313 Bruno Haible <bruno@clisp.org>
20315 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20316 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20317 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20319 2008-10-03 Kamil Dudka <kdudka@redhat.com>
20321 filevercmp: new module
20322 * lib/filevercmp.h: New function filevercmp comparing version strings.
20323 * lib/filevercmp.c: Implementation of filevercmp function.
20324 * modules/filevercmp: Module metadata.
20325 * tests/test-filevercmp.c: Unit test for new module.
20326 * modules/filevercmp-tests: Unit test metadata.
20327 * MODULES.html.sh: Add filevercmp module.
20329 2008-10-03 Bruno Haible <bruno@clisp.org>
20331 * lib/c-ctype.h: Add comment.
20332 Reported by Jim Meyering.
20334 2008-10-02 Bruno Haible <bruno@clisp.org>
20336 * modules/posix_spawn-internal (Depends-on): Add 'open'.
20338 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20340 * build-aux/bootstrap: Allow renaming bootstrap, and change the
20341 name of bootstrap.conf accordingly.
20343 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20345 * build-aux/bootstrap: Install git-merge-changelog configuration
20346 items into .gitconfig if needed.
20348 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20350 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20351 git repository, and initialize/update it accordingly.
20353 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
20355 * modules/fsync-tests: New file.
20356 * tests/test-fsync.c: New file.
20358 New module 'fsync'.
20359 * lib/fsync.c: New file.
20360 * m4/fsync.m4: New file.
20361 * modules/fsync: New file.
20362 * lib/unistd.in.h (fsync): New declaration.
20363 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20364 GNULIB_FSYNC and HAVE_FSYNC.
20365 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20366 * MODULES.html.sh (posix_functions): Add fsync.
20367 * doc/posix-functions/fsync.texi: Mention the new module.
20369 2008-10-02 Jim Meyering <meyering@redhat.com>
20371 fts.c: sync with similar code from coreutils' remove.c
20372 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20373 Guard also with "#if defined __linux__", since for now at least,
20374 this code is Linux-kernel-specific.
20376 2008-10-02 Jim Meyering <meyering@redhat.com>
20379 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20380 Include <sys/vfs.h>, not <sys/statfs.h>.
20382 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20383 Include <sys/vfs.h>, not <sys/statfs.h>.
20385 2008-10-01 Bruno Haible <bruno@clisp.org>
20387 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20388 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20389 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20390 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20391 * doc/posix-functions/posix_spawnp.texi: Likewise.
20392 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20393 whether posix_spawn actually works.
20394 * m4/pipe.m4 (gl_PIPE): Likewise.
20395 * modules/execute (Files): Add m4/posix_spawn.m4.
20396 * modules/pipe (Files): Add m4/posix_spawn.m4.
20397 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20399 2008-10-01 Jim Meyering <meyering@redhat.com>
20401 remove trailing spaces
20403 * lib/poll.c (poll): Likewise.
20404 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20405 * lib/winsock.c (rpl_close): Likewise.
20406 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20407 * modules/yield: Likewise.
20408 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20409 * tests/test-sys_select.c (connect_to_socket): Likewise.
20411 fts.c: adjust a new interface to be more generally useful
20412 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20413 (fts_build): Adjust caller.
20415 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20417 * modules/cond-tests: New file.
20418 * tests/test-cond.c: New file.
20420 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20421 Bruno Haible <bruno@clisp.org>
20423 * modules/cond (Dependencies): Add errno, time.
20424 * lib/glthread/cond.h: Include <time.h>.
20425 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20428 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20429 Bruno Haible <bruno@clisp.org>
20431 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20433 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20434 Bruno Haible <bruno@clisp.org>
20436 * modules/tls-tests (Depends-on): Add thread, yield.
20437 (configure.ac): Remove all checks.
20438 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20439 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20440 gl_thread_self): Remove definitions. Include glthread/thread.h and
20441 glthread/yield.h instead.
20442 (test_tls): Pass an additional NULL argument to gl_thread_join.
20444 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20445 Bruno Haible <bruno@clisp.org>
20447 * modules/lock-tests (Depends-on): Add thread, yield.
20448 (configure.ac): Remove all checks.
20449 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20450 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20451 gl_thread_self): Remove definitions. Include glthread/thread.h and
20452 glthread/yield.h instead.
20453 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20454 additional NULL argument to gl_thread_join.
20456 2008-09-30 Bruno Haible <bruno@clisp.org>
20458 Fix the Win32 implementation of the 'thread' module.
20459 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20461 (gl_thread_self): Invoke gl_thread_self_func.
20462 (gl_thread_self_func): New declaration.
20463 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20464 (do_init_self_key, init_self_key): New functions.
20465 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20466 Remove some fields.
20467 (running_threads, running_lock): Remove variables.
20468 (get_current_thread_handle): New function.
20469 (gl_thread_self_func, wrapper_func, glthread_create_func,
20470 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20473 2008-09-30 Bruno Haible <bruno@clisp.org>
20475 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20478 2008-09-30 Jim Meyering <meyering@redhat.com>
20480 fts.m4: correct the test for statfs.f_type
20481 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20482 when checking for statfs.f_type.
20484 2008-09-15 Simon Josefsson <simon@josefsson.org>
20486 tests: avoid some compiler warnings
20487 * tests/test-memchr.c (main): Pass NULL indirectly.
20488 * tests/test-getdate.c (main): Remove unused variable 'ret'.
20490 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20492 getdate.y: disallow countable dayshifts like "4 yesterday ago"
20493 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20494 exactly specified dayshifts.
20495 (dayshift): New rule.
20496 (rel): Add dayshift.
20497 (relative_time_table) [tomorrow, yesterday, today, now]:
20498 Use tDAY_SHIFT in place of tDAY_UNIT.
20499 * tests/test-getdate.c: Add tests for now-disallowed countable
20500 dayshifts, e.g., "4 yesterday ago".
20502 2008-09-29 Bruno Haible <bruno@clisp.org>
20504 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20505 * tests/test-posix_spawn1.in.sh: Renamed from
20506 tests/test-posix_spawn.in.sh.
20507 * tests/test-posix_spawn2.c: New file.
20508 * tests/test-posix_spawn2.in.sh: New file.
20509 * modules/posix_spawnp-tests (Files): Update.
20510 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20512 2008-09-29 Bruno Haible <bruno@clisp.org>
20514 Propagate effects of putenv/setenv/unsetenv to child processes.
20515 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20516 * lib/pipe.c (create_pipe): Likewise.
20518 2008-09-29 Bruno Haible <bruno@clisp.org>
20520 Enable use of shell scripts as executables in mingw.
20521 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20522 run the program as a shell script.
20523 * lib/pipe.c (create_pipe): Likewise.
20524 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20527 2008-09-29 Eric Blake <ebb9@byu.net>
20529 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20531 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20533 * doc/posix-functions/accept.texi: Update mingw problems.
20534 * doc/posix-functions/bind.texi: Update mingw problems.
20535 * doc/posix-functions/close.texi: Update mingw problems.
20536 * doc/posix-functions/connect.texi: Update mingw problems.
20537 * doc/posix-functions/getpeername.texi: Update mingw problems.
20538 * doc/posix-functions/getsockname.texi: Update mingw problems.
20539 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20540 * doc/posix-functions/ioctl.texi: Update mingw problems.
20541 * doc/posix-functions/listen.texi: Update mingw problems.
20542 * doc/posix-functions/recv.texi: Update mingw problems.
20543 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20544 * doc/posix-functions/select.texi: Update mingw problems.
20545 * doc/posix-functions/send.texi: Update mingw problems.
20546 * doc/posix-functions/sendto.texi: Update mingw problems.
20547 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20548 * doc/posix-functions/socket.texi: Update mingw problems.
20550 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20551 Bruno Haible <bruno@clisp.org>
20553 * lib/sys_select.in.h: Include sys/time.h.
20554 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20555 * modules/sys_select: Depend on sys_time.
20556 * tests/test-sys_select.c: Test that sys/select.h defines struct
20559 2008-09-29 Bruno Haible <bruno@clisp.org>
20561 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20562 * lib/sys_select.in.h: Likewise.
20564 2008-09-29 Bruno Haible <bruno@clisp.org>
20566 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20568 2008-09-29 Bruno Haible <bruno@clisp.org>
20570 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20571 Set LIBSOCKET instead of augmenting LIBS.
20572 * modules/sockets (Link): New section.
20573 * modules/sockets-tests (test_sockets_LDADD): New variable.
20574 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20575 * modules/poll-tests (test_poll_LDADD): New variable.
20576 * NEWS: Document the change.
20578 2008-09-29 Bruno Haible <bruno@clisp.org>
20580 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20581 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20582 ARPA_INET_H directly.
20583 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20585 2008-09-28 Bruno Haible <bruno@clisp.org>
20587 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20588 from gl_HEADER_SYS_SOCKET.
20589 (gl_HEADER_SYS_SOCKET): Invoke it.
20590 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20592 2008-09-28 Bruno Haible <bruno@clisp.org>
20594 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20595 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20596 Needed on OSF/1 4.0.
20598 2008-09-28 Bruno Haible <bruno@clisp.org>
20600 Override open more carefully.
20601 * lib/open.c (orig_open): New function.
20602 (rpl_open): Use orig_open instead of open.
20603 * lib/fcntl.in.h: Add special invocation convention.
20604 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20605 (gl_FUNC_OPEN): Invoke it.
20607 Override freopen more carefully.
20608 * lib/freopen.c (orig_freopen): New function.
20609 (rpl_freopen): Use orig_freopen instead of freopen.
20610 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20611 (gl_FUNC_FREOPEN): Invoke it.
20613 Override fopen more carefully.
20614 * lib/fopen.c (orig_fopen): New function.
20615 (rpl_fopen): Use orig_fopen instead of fopen.
20616 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20617 (gl_FUNC_FOPEN): Invoke it.
20618 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20620 2008-09-28 Bruno Haible <bruno@clisp.org>
20622 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20625 2008-09-28 Bruno Haible <bruno@clisp.org>
20627 * tests/test-sigaction.c (handler, main): Disable the check whether
20628 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20629 glibc systems with LinuxThreads.
20631 2008-09-28 Bruno Haible <bruno@clisp.org>
20633 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20635 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20637 * lib/fcntl.in.h (open): Likewise.
20638 Reported by Rainer Tammer <tammer@tammer.net>.
20640 2008-09-28 Bruno Haible <bruno@clisp.org>
20642 * modules/posix_spawnp-tests: New file.
20643 * tests/test-posix_spawn.c: New file.
20644 * tests/test-posix_spawn.in.sh: New file.
20646 New module 'posix_spawnp'.
20647 * modules/posix_spawnp: New file.
20648 * lib/spawnp.c: New file, from GNU libc with modifications.
20649 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20651 New module 'posix_spawn'.
20652 * modules/posix_spawn: New file.
20653 * lib/spawn.c: New file, from GNU libc with modifications.
20654 * doc/posix-functions/posix_spawn.texi: Mention the new module.
20656 New module 'posix_spawnattr_destroy'.
20657 * modules/posix_spawnattr_destroy: New file.
20658 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20659 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20662 New module 'posix_spawnattr_setsigmask'.
20663 * modules/posix_spawnattr_setsigmask: New file.
20664 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20666 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20669 New module 'posix_spawnattr_getsigmask'.
20670 * modules/posix_spawnattr_getsigmask: New file.
20671 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20673 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20676 New module 'posix_spawnattr_setsigdefault'.
20677 * modules/posix_spawnattr_setsigdefault: New file.
20678 * lib/spawnattr_setdefault.c: New file, from GNU libc with
20680 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20683 New module 'posix_spawnattr_getsigdefault'.
20684 * modules/posix_spawnattr_getsigdefault: New file.
20685 * lib/spawnattr_getdefault.c: New file, from GNU libc with
20687 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20690 New module 'posix_spawnattr_setschedpolicy'.
20691 * modules/posix_spawnattr_setschedpolicy: New file.
20692 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20694 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20697 New module 'posix_spawnattr_getschedpolicy'.
20698 * modules/posix_spawnattr_getschedpolicy: New file.
20699 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20701 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20704 New module 'posix_spawnattr_setschedparam'.
20705 * modules/posix_spawnattr_setschedparam: New file.
20706 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20708 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20711 New module 'posix_spawnattr_getschedparam'.
20712 * modules/posix_spawnattr_getschedparam: New file.
20713 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20715 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20718 New module 'posix_spawnattr_setpgroup'.
20719 * modules/posix_spawnattr_setpgroup: New file.
20720 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20722 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20725 New module 'posix_spawnattr_getpgroup'.
20726 * modules/posix_spawnattr_getpgroup: New file.
20727 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20729 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20732 New module 'posix_spawnattr_setflags'.
20733 * modules/posix_spawnattr_setflags: New file.
20734 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20735 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20738 New module 'posix_spawnattr_getflags'.
20739 * modules/posix_spawnattr_getflags: New file.
20740 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20741 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20744 New module 'posix_spawnattr_init'.
20745 * modules/posix_spawnattr_init: New file.
20746 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20747 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20750 New module 'posix_spawn_file_actions_destroy'.
20751 * modules/posix_spawn_file_actions_destroy: New file.
20752 * lib/spawn_faction_destroy.c: New file, from GNU libc with
20754 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20757 New module 'posix_spawn_file_actions_addopen'.
20758 * modules/posix_spawn_file_actions_addopen: New file.
20759 * lib/spawn_faction_addopen.c: New file, from GNU libc with
20761 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20764 New module 'posix_spawn_file_actions_adddup2'.
20765 * modules/posix_spawn_file_actions_adddup2: New file.
20766 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20768 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20771 New module 'posix_spawn_file_actions_addclose'.
20772 * modules/posix_spawn_file_actions_addclose: New file.
20773 * lib/spawn_faction_addclose.c: New file, from GNU libc with
20775 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20778 New module 'posix_spawn_file_actions_init'.
20779 * modules/posix_spawn_file_actions_init: New file.
20780 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20781 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20784 New module 'posix_spawn-internal'.
20785 * modules/posix_spawn-internal: New file.
20786 * lib/spawn_int.h: New file, from GNU libc with modifications.
20787 * lib/spawni.c: New file, from GNU libc with modifications.
20788 * m4/posix_spawn.m4: New file.
20790 New module 'spawn'.
20791 * modules/spawn: New file.
20792 * lib/spawn.in.h: New file, from GNU libc with modifications.
20793 * m4/spawn_h.m4: New file.
20794 * doc/posix-headers/spawn.texi: Mention the new module.
20796 2008-09-28 Bruno Haible <bruno@clisp.org>
20798 * modules/sched-tests: New file.
20799 * tests/test-sched.c: New file.
20801 New module 'sched'.
20802 * modules/sched: New file.
20803 * lib/sched.in.h: New file.
20804 * m4/sched_h.m4: New file.
20805 * doc/posix-headers/sched.texi: Mention the new module.
20807 2008-09-27 Eric Blake <ebb9@byu.net>
20809 Fix previous patch, and tweak references to $0.
20810 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20811 (func_version, func_gnulib_dir): Don't call this program
20813 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20814 with using $0 in function.
20815 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20816 (func_fatal_error): Reuse the name the user invoked us with.
20818 2008-09-27 Bruno Haible <bruno@clisp.org>
20820 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20821 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20822 (gl_ICONV_H): Not here.
20823 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20824 instead of assigning ICONV_H directly.
20826 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20827 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20830 2008-09-27 Bruno Haible <bruno@clisp.org>
20832 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20833 * modules/arpa_inet (Depends-on): Add link-warning.
20834 (Makefile.am): Insert the definition of GL_LINK-WARNING.
20835 * modules/unistd (Makefile.am): Likewise.
20837 2008-09-26 Bruno Haible <bruno@clisp.org>
20839 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20841 (func_version): Essentially copied from gnulib-tool.
20842 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20843 func_readlink): Copied from gnulib-tool.
20845 2008-09-26 Bruno Haible <bruno@clisp.org>
20847 * gnulib-tool (func_version): Change directory to $gnulib_dir before
20848 invoking git-version-gen.
20850 2008-09-26 Bruno Haible <bruno@clisp.org>
20852 * posix-modules: Update to directory names changed on 2008-01-19.
20853 Remove commas in output before splitting into words. No more need to
20854 avoid 'ftruncate' since 2007-02-19.
20856 2008-09-26 Bruno Haible <bruno@clisp.org>
20858 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20860 2008-09-26 Bruno Haible <bruno@clisp.org>
20862 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20863 * modules/fwriteerror (Depends-on): Add errno.
20865 2008-09-26 Bruno Haible <bruno@clisp.org>
20867 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20868 * tests/test-vc-list-files-cvs.sh: Likewise.
20870 2008-09-26 Bruno Haible <bruno@clisp.org>
20872 * doc/posix-headers/sys_resource.texi: Reorder items.
20874 2008-09-26 Jim Meyering <meyering@redhat.com>
20876 fts: tweak inode comparison function
20877 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20878 inode numbers, as documented.
20880 fts: sort dirent entries on inode number before traversing
20881 This avoids a quadratic, seek-related performance penalty when
20882 operating on a directory containing many entries (measurable at 10k;
20883 3.5 hours at 2 million entries with a cold cache) on certain types
20884 of file systems, including ext3 and ext4, but not tmpfs.
20885 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20886 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20887 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20888 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20889 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20890 (fts_build): Set the stat.st_ino member from D_INO.
20891 If it is likely to be useful, sort dirent entries on inode number.
20893 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20894 and the struct statfs.f_type member.
20895 * modules/fts (Depends-on): Add d-ino.
20897 2008-09-26 Bruno Haible <bruno@clisp.org>
20899 * modules/sigpipe-die (Depends-on): Add sigpipe.
20901 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20902 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20903 and GNULIB_STDIO_H_SIGPIPE are set.
20904 * lib/stdio-write.c: New file.
20905 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20906 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20907 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20908 REPLACE_STDIO_WRITE_FUNCS.
20909 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20910 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20911 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20912 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20913 * modules/stdio (Files): Add lib/stdio-write.c.
20914 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20915 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20916 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20917 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20918 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20919 REPLACE_FPRINTF_POSIX.
20920 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20921 REPLACE_PRINTF_POSIX.
20922 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20923 REPLACE_VFPRINTF_POSIX.
20924 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20925 REPLACE_VPRINTF_POSIX.
20926 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20928 * doc/posix-functions/fputc.texi: Likewise.
20929 * doc/posix-functions/fputs.texi: Likewise.
20930 * doc/posix-functions/fwrite.texi: Likewise.
20931 * doc/posix-functions/printf.texi: Likewise.
20932 * doc/posix-functions/putc.texi: Likewise.
20933 * doc/posix-functions/putchar.texi: Likewise.
20934 * doc/posix-functions/puts.texi: Likewise.
20935 * doc/posix-functions/vfprintf.texi: Likewise.
20936 * doc/posix-functions/vprintf.texi: Likewise.
20938 * modules/safe-write (Depends-on): Add write.
20940 * modules/sigpipe-tests: New file.
20941 * tests/test-sigpipe.c: New file.
20942 * tests/test-sigpipe.sh: New file.
20944 * modules/write: New file.
20945 * lib/unistd.in.h: Include <sys/types.h>.
20946 (write): New declaration.
20947 * lib/write.c: New file.
20948 * m4/write.m4: New file.
20949 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20950 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20951 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20952 GNULIB_WRITE, REPLACE_WRITE.
20953 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20954 and the SIGPIPE issue.
20956 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20957 (raise): New declaration.
20958 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20959 (ext_signal): New function.
20960 (rpl_raise): New function.
20961 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20962 GNULIB_SIGNAL_H_SIGPIPE.
20963 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20964 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20966 * modules/sigpipe: New file.
20967 * m4/sigpipe.m4: New file.
20969 2008-09-25 Derek Price <derek@ximbiot.com>
20970 Bruno Haible <bruno@clisp.org>
20972 * gnulib-tool (func_import): Report all license incompatibilities, not
20973 just the first one.
20975 2008-09-25 Bruno Haible <bruno@clisp.org>
20977 * gnulib-tool (func_import): When computing the edits, consider not
20978 only the Makefile.ams that exist but also those that will be generated.
20980 2008-09-25 Simon Josefsson <simon@josefsson.org>
20982 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20983 fixes gnulib-tool --test warning about duplicate dependency.
20985 2008-09-25 Bruno Haible <bruno@clisp.org>
20987 * gnulib-tool: Don't ask the user to perform edits in the generated
20989 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20990 apply to the Makefile.am being generated.
20991 (func_emit_tests_Makefile_am): Execute edits that apply to the
20992 Makefile.am being generated.
20993 (func_import): Setup list of Makefile.am edits before emitting the
20994 Makefile.ams, not at the end.
20995 (func_create_testdir): Update.
20996 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20998 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21000 * gnulib-tool (func_import): Store the --tests-base option in the
21001 comment in gnulib-cache.m4.
21003 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
21005 * NEWS: Document increased portability that sys_select now provides.
21007 * lib/sys_select.in.h: Install select wrapper.
21008 * lib/sys_socket.in.h: Use more descriptive name when there is no
21010 * lib/winsock-select.c: New.
21011 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21012 Require gl_HEADER_SYS_SOCKET.
21013 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21014 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21015 * tests/test-sys_select.c: Add functional tests.
21017 2008-09-24 Eric Blake <ebb9@byu.net>
21019 open, fopen: close fd leak in last patch
21020 * lib/open.c (rpl_open): Close fd before returning error.
21021 * lib/fopen.c (rpl_fopen): Close fd before returning error.
21022 * doc/posix-functions/open.texi (open): Document that Irix also
21024 * doc/posix-functions/fopen.texi (fopen): Likewise.
21025 Reported by Paolo Bonzini.
21027 2008-09-24 Bruno Haible <bruno@clisp.org>
21029 Ensure that a filename ending in a slash cannot be used to access a
21031 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21032 to check whether it's really a directory.
21033 * lib/fopen.c: Include fcntl.h, unistd.h.
21034 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21036 * modules/fopen (Depends-on): Add unistd.
21037 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21038 * tests/test-fopen.c (main): Likewise.
21039 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21040 * doc/posix-functions/fopen.texi: Likewise.
21041 Reported by Eric Blake.
21043 2008-09-23 Eric Blake <ebb9@byu.net>
21045 c-stack: avoid compiler optimizations when provoking overflow
21046 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21047 recursion harder to optimize, to ensure a stack overflow occurs.
21048 * tests/test-c-stack.c (recurse): Likewise.
21049 Borrowed from libsigsegv.
21051 c-stack: work around Irix sigaltstack bug
21052 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21053 whether sigaltstack uses wrong end of stack_t (copied in part from
21055 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21056 Irix bug, without requiring an over-allocation.
21057 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21060 fopen: document mingw bug on directories
21061 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21062 not allowing a stream visiting a directory, even though reading
21063 from such a stream is not portable.
21065 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21067 * lib/poll.c: Rewrite.
21068 * modules/poll: Depend on alloca.
21070 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21072 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21073 instead define prototypes for a full set of wrappers. Ensure
21074 that Cygwin does not use the compatibility code, which is only
21076 * lib/winsock.c: New.
21077 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21078 * modules/sys_socket: Add lib/winsock.c.
21080 * modules/poll-tests: Add errno and perror.
21081 * tests/test-poll.c: Use ioctl, not ioctlsocket.
21083 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21085 * tests/test-poll.c: Downgrade minimum needed Winsock version.
21087 2008-09-23 Bruno Haible <bruno@clisp.org>
21089 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21090 * doc/glibc-functions/*: Likewise.
21092 2008-09-23 Simon Josefsson <simon@josefsson.org>
21094 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21097 2008-09-22 Eric Blake <ebb9@byu.net>
21098 Bruno Haible <bruno@clisp.org>
21100 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21101 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21102 supply %A but mishandle pseudo-NaN.
21103 Reported by Simon Josefsson.
21105 2008-09-21 Bruno Haible <bruno@clisp.org>
21107 * tests/test-lock.c (main): Tweak skip message.
21108 * tests/test-tls.c (main): Likewise.
21110 2008-09-21 Bruno Haible <bruno@clisp.org>
21112 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21113 whether 'struct sigaction' has sa_sigaction here...
21114 (gl_PREREQ_SIG_HANDLER_H): ... not here.
21115 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21117 2008-09-21 Bruno Haible <bruno@clisp.org>
21119 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21121 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21122 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21124 (Support for obsolete systems lacking POSIX:2001): New section.
21125 (String handling <string.h>): Move strdup to the new section.
21126 Suggested by Simon Josefsson and Paolo Bonzini.
21128 2008-09-21 Bruno Haible <bruno@clisp.org>
21130 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21131 exponents in %e and %g results on 'long double'. Needed for mingw's
21132 improved *printf functions.
21133 * tests/test-vasprintf-posix.c (test_function): Likewise.
21134 * tests/test-snprintf-posix.h (test_function): Likewise.
21135 * tests/test-sprintf-posix.h (test_function): Likewise.
21136 Reported by Eric Blake.
21138 2008-09-21 Bruno Haible <bruno@clisp.org>
21140 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21141 * tests/test-sprintf-posix.h (test_function): Likewise.
21143 2008-09-21 Bruno Haible <bruno@clisp.org>
21145 * modules/getpass (Depends-on): Add strdup-posix.
21147 New module 'strdup-posix'.
21148 * modules/strdup-posix: New file.
21149 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21150 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21151 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21153 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21154 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21155 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21158 * modules/strdup (Depends-on): Remove malloc-posix.
21160 2008-09-20 Bruno Haible <bruno@clisp.org>
21162 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21165 2008-09-20 Bruno Haible <bruno@clisp.org>
21167 Ensure that wint_t gets defined on IRIX 5.3.
21168 * lib/wchar.in.h (wint_t): Define if not defined by the system.
21169 * lib/wctype.in.h (wint_t): Likewise.
21170 (__wctype_wint_t): Remove type.
21171 (isw*): Use wint_t instead of __wctype_wint_t.
21172 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21173 * modules/wchar (Files): Add m4/wint_t.m4.
21174 (Makefile.am): Substitute HAVE_WINT_T.
21175 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21176 * tests/test-wctype.c: Check that wint_t is defined.
21177 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21178 * doc/posix-headers/wctype.texi: Likewise.
21179 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21181 2008-09-18 Bruno Haible <bruno@clisp.org>
21183 * gnulib-tool (func_exit): Update comment.
21185 2008-09-18 Simon Josefsson <simon@josefsson.org>
21187 * modules/getaddrinfo (Depends-on): Remove strdup, this module
21188 assumes strdup exists and does not depend on strdup to return
21189 ENOMEM on out of memory conditions.
21191 2008-09-18 Bruno Haible <bruno@clisp.org>
21193 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21194 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21195 digits for the exponent.
21197 2008-09-18 Jim Meyering <meyering@redhat.com>
21198 Bruno Haible <bruno@clisp.org>
21200 * lib/vasnprintf.c (decimal_point_char): Define also if
21201 NEED_PRINTF_INFINITE_LONG_DOUBLE.
21203 2008-09-16 Bruno Haible <bruno@clisp.org>
21204 and Eric Blake <ebb9@byu.net>
21206 vasnprintf: support Irix 5.3
21207 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21208 that mishandle long double infinity.
21209 Reported by Tom G. Christensen.
21211 2008-09-16 Bruno Haible <bruno@clisp.org>
21213 * doc/glibc-functions/scandir.texi: Mention the function is missing on
21215 * doc/glibc-functions/alphasort.texi: Likewise.
21216 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21218 2008-09-16 Jim Meyering <meyering@redhat.com>
21220 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21221 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21222 a umask modification leak out of a subshell. Otherwise, the
21223 opensolaris /bin/sh would be accepted and thus cause unwarranted
21224 failures in the coreutils test suite.
21226 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
21228 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21231 2008-09-16 Jim Meyering <meyering@redhat.com>
21233 avoid spurious test failure when library is built without ACL support
21234 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21235 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21236 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21237 * tests/test-copy-acl.sh: Likewise.
21239 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21241 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21242 based on character occurrence counts.
21244 2008-09-15 Eric Blake <ebb9@byu.net>
21246 tests: avoid some compiler warnings
21247 * tests/test-memchr.c (main): Pass NULL indirectly.
21248 * tests/test-closein.c (main): Avoid unused variable.
21250 2008-09-15 Bruno Haible <bruno@clisp.org>
21252 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21253 are missing on OpenBSD 4.0 individually.
21254 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21256 2008-09-15 Bruno Haible <bruno@clisp.org>
21258 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21259 * doc/posix-functions/strerror.texi: Mention also Cygwin.
21260 * doc/posix-functions/perror.texi: Likewise.
21261 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21263 Reported by Eric Blake.
21265 * lib/errno.in.h: Use replacement values >= 2000.
21266 Reported by Eric Blake.
21268 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21270 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21271 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21273 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21274 compareseq was aborted.
21276 2008-09-14 Bruno Haible <bruno@clisp.org>
21278 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21280 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21281 (fstrcmp_bounded): Simplify result computation accordingly.
21283 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21285 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21286 (fstrcmp): Define in terms of fstrcmp_bounded.
21287 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21288 lower_bound argument.
21289 Return quickly if the result is certainly < lower_bound.
21290 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21292 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21294 * lib/diffseq.h (EARLY_ABORT): New macro.
21295 (compareseq): Change return type to bool. Return true when EARLY_ABORT
21298 2008-09-14 Bruno Haible <bruno@clisp.org>
21300 * modules/perror-tests: New file.
21301 * tests/test-perror.sh: New file.
21302 * tests/test-perror.c: New file.
21304 New module 'perror'.
21305 * lib/stdio.in.h (perror): New declaration.
21306 * lib/perror.c: New file.
21307 * m4/perror.m4: New file.
21308 * modules/perror: New file.
21309 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21310 * doc/posix-functions/perror.texi: Mention the perror module.
21311 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21313 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21316 2008-09-14 Bruno Haible <bruno@clisp.org>
21318 * modules/stdio (Makefile.am): Reorder to match the order in
21320 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21322 2008-09-13 Bruno Haible <bruno@clisp.org>
21324 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21326 2008-09-13 Bruno Haible <bruno@clisp.org>
21328 Extend strerror to cover the added errno values.
21329 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21330 (rpl_strerror): Provide error messages for the added errno values and
21331 for the WSA* values.
21332 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21333 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21335 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21336 * modules/strerror (Depends-on): Add errno.
21337 * doc/posix-functions/strerror.texi: Document the change.
21338 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21341 2008-09-13 Bruno Haible <bruno@clisp.org>
21343 * modules/EOVERFLOW: Remove file.
21344 * m4/eoverflow.m4: Remove file.
21345 * modules/EOVERFLOW-tests: Remove file.
21346 * tests/test-EOVERFLOW.c: Remove file.
21347 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21348 * modules/ftell (Depends-on): Likewise.
21349 * modules/getdelim (Depends-on): Likewise.
21350 * modules/getugroups (Depends-on): Likewise.
21351 * modules/poll (Depends-on): Likewise.
21352 * modules/snprintf (Depends-on): Likewise.
21353 * modules/sprintf-posix (Depends-on): Likewise.
21354 * modules/vasnprintf (Depends-on): Likewise.
21355 * modules/vasprintf (Depends-on): Likewise.
21356 * modules/vfprintf-posix (Depends-on): Likewise.
21357 * modules/vsnprintf (Depends-on): Likewise.
21358 * modules/vsprintf-posix (Depends-on): Likewise.
21359 * modules/xvasprintf (Depends-on): Likewise.
21360 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21361 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21362 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21363 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21364 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21365 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21366 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21367 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21368 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21369 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21370 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21371 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21372 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21373 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21374 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21375 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21376 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21377 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21378 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21379 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21380 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21381 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21382 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21383 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21384 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21385 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21386 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21387 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21388 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21389 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21390 * MODULES.html.sh: Remove EOVERFLOW.
21391 * NEWS: Mention the change.
21393 2008-09-13 Bruno Haible <bruno@clisp.org>
21395 * modules/errno-tests: New file.
21396 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21398 * lib/errno.in.h: New file.
21399 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21400 * modules/errno: New file.
21401 * doc/posix-headers/errno.texi: Update documentation.
21402 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21404 2008-09-13 Bruno Haible <bruno@clisp.org>
21406 * tests/test-poll.c: Use #if for native Windows, rather than testing
21409 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21410 Bruno Haible <bruno@clisp.org>
21412 * lib/glob.c: Don't include <pwd.h> on native Windows.
21413 (WINDOWS32): New macro.
21414 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21416 2008-09-13 Bruno Haible <bruno@clisp.org>
21418 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21419 (ETIMEDOUT): Remove macro.
21420 (glthread_cond_timedwait_multithreaded): New declaration.
21421 (glthread_cond_timedwait): Use it.
21422 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21423 (glthread_cond_timedwait_multithreaded): New function.
21425 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21427 * modules/poll-tests: Do not check for io.h.
21428 * tests/test-poll.c: Check for __MSVCRT__ instead.
21430 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21432 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21433 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21434 * tests/test-poll.c: Use them. Use _pipe on Windows.
21436 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21438 * modules/poll-tests: New.
21439 * tests/test-poll.c: New.
21441 2008-09-12 Eric Blake <ebb9@byu.net>
21443 frexp: test for NetBSD failure on -0.0
21444 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21445 not all, bugs from NetBSD 3.0 have been fixed.
21446 * doc/posix-functions/frexp.texi (frexp): Document bug.
21447 Reported by Thomas Klausner.
21449 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21450 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21452 Reported by Jonathan C. Patschke <jp@centtech.com>.
21454 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21456 * lib/glthread/cond.h: Use dummy implementation also if
21459 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21461 * modules/fnmatch-posix (License): Change to LGPLv2+.
21462 * modules/fnmatch-gnu (License): Likewise.
21464 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21466 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21468 2008-09-11 Jim Meyering <meyering@redhat.com>
21470 * users.txt: Add gtk-vnc.
21472 2008-09-08 Simon Josefsson <simon@josefsson.org>
21474 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21477 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21478 required for 16-bit and 8-bit rotates.
21479 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21480 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21481 UINT8_MAX instead of hard-coded constants.
21482 Suggested by Paul Eggert.
21484 2008-09-07 Bruno Haible <bruno@clisp.org>
21486 * tests/test-striconveh.c (main): Check behaviour when converting from
21489 Make striconveh work better with stateful encodings.
21490 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21491 that iconv does not increment the inptr when returning -1/EINVAL.
21493 2008-09-07 Bruno Haible <bruno@clisp.org>
21495 * build-aux/config.rpath: Update according to libtool-2.2.6.
21496 * build-aux/config.libpath: Likewise.
21498 2008-09-06 Bruno Haible <bruno@clisp.org>
21500 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21501 * lib/freadptr.c (freadptr): Likewise.
21502 * lib/freadseek.c (freadptrinc): Likewise.
21503 Reported by Simon Josefsson.
21505 2008-09-06 Bruno Haible <bruno@clisp.org>
21507 * modules/freadptr (License): Change to LGPLv2+.
21508 * modules/freadseek (License): Likewise.
21509 Suggested by Eric Blake.
21511 * modules/memchr2 (License): Change to LGPLv2+.
21512 Approved by Eric Blake.
21514 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21515 Bruno Haible <bruno@clisp.org>
21517 Make gnulib-tool work with native 'sed' on AIX.
21518 * gnulib-tool (sed_noop): New variable.
21519 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21520 func_add_or_update, func_create_testdir): Use it to initialize sed
21522 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21524 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21525 Bruno Haible <bruno@clisp.org>
21527 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21528 also works after #include directives.
21530 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21532 getdate.y: reject an out-of-range timezone value
21533 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21534 the range [-24...+24]. When specified with only one or two digits,
21535 * tests/test-getdate.c: Tests for the fix.
21536 * doc/getdate.texi: Document this change.
21538 2008-09-03 Bruno Haible <bruno@clisp.org>
21540 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21542 2008-09-02 Simon Josefsson <simon@josefsson.org>
21544 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21545 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21546 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21547 Blake <ebb9@byu.net>.
21549 * tests/test-bitrotate.c: Add more test vectors.
21551 2008-09-02 Eric Blake <ebb9@byu.net>
21553 vasnprintf-posix: handle large precision via %.*d
21554 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21555 when handling it ourselves.
21556 * tests/test-vasnprintf-posix.c (test_function): Add test.
21557 * tests/test-snprintf-posix.h (test_function): Likewise.
21558 * tests/test-sprintf-posix.h (test_function): Likewise.
21559 * tests/test-vasprintf-posix.c (test_function): Likewise.
21560 Reported by Alain Guibert.
21562 2008-09-01 Eric Blake <ebb9@byu.net>
21564 c-stack: make configure-time check more robust
21565 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21566 successful sigaction call.
21567 Reported by Tom G. Christensen.
21569 2008-09-01 Bruno Haible <bruno@clisp.org>
21571 New module 'findprog-lgpl'.
21572 * modules/findprog-lgpl: New file.
21573 * lib/findprog-lgpl.c: New file.
21574 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21575 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21576 to decide whether to use strdup or xstrdup, concatenated_filename or
21577 xconcatenated_filename.
21579 2008-09-01 Bruno Haible <bruno@clisp.org>
21581 Split module 'concat-filename' into 'concat-filename' (LGPL) and
21582 'xconcat-filename' (GPL).
21583 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21584 (License): Change to LGPLv2+.
21585 * modules/xconcat-filename: New file.
21586 * lib/concat-filename.h (concatenated_filename): Change specification.
21587 (xconcatenated_filename): New declaration.
21588 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21589 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21591 * lib/xconcat-filename.c: New file.
21592 * NEWS: Mention the change.
21593 * lib/findprog.c: Include concat-filename.h, not filename.h.
21594 (find_in_path): Use xconcatenated_filename instead of
21595 concatenated_filename.
21596 * lib/javacomp.c: Include concat-filename.h, not filename.h.
21597 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21598 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21599 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21600 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21601 instead of concatenated_filename.
21602 * lib/javaexec.c: Include concat-filename.h, not filename.h.
21603 (execute_java_class): Use xconcatenated_filename instead of
21604 concatenated_filename.
21605 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21606 * modules/javacomp (Depends-on): Likewise.
21607 * modules/javaexec (Depends-on): Likewise.
21609 2008-09-01 Bruno Haible <bruno@clisp.org>
21611 Split module 'filename' into 'filename' and 'concat-filename'.
21612 * modules/filename: Keep only lib/filename.h.
21613 (License): Change to LGPLv2+.
21614 * modules/concat-filename: New file, extracted from modules/filename.
21615 * lib/filename.h (concatenated_filename): Remove declaration.
21616 * lib/concat-filename.h: New file, extracted from lib/filename.h.
21617 * lib/concat-filename.c: Include concat-filename.h.
21618 * NEWS: Mention the change.
21620 2008-09-01 Simon Josefsson <simon@josefsson.org>
21622 * lib/bitrotate.h (rotl8, rotr8): Add.
21624 * modules/bitrotate (configure.ac): Need
21625 AC_REQUIRE([AC_C_INLINE]).
21626 (Description): Mention stdint.h. Reported by Bruno Haible
21629 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
21630 Paolo Bonzini <bonzini@gnu.org>.
21632 2008-08-31 Bruno Haible <bruno@clisp.org>
21634 Assume Solaris specific bi-arch conventions on Solaris systems.
21635 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21636 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21637 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21638 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21639 like acl_libdirstem.
21640 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21642 * NEWS: Mention the change.
21643 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21645 2008-08-31 Jim Meyering <meyering@redhat.com>
21647 * lib/strftime.h: Add comments describing the two added arguments.
21649 remove duplicate #include directives
21650 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21651 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21653 2008-08-31 Bruno Haible <bruno@clisp.org>
21655 New module 'sigpipe-die'.
21656 * modules/sigpipe-die: New file.
21657 * lib/sigpipe-die.h: New file.
21658 * lib/sigpipe-die.c: New file.
21659 * MODULES.html.sh (Signal handling): Add sigpipe-die.
21661 2008-08-31 Bruno Haible <bruno@clisp.org>
21663 Don't override previously installed signal handlers.
21664 * lib/fatal-signal.c (saved_sigactions): New variable.
21665 (uninstall_handlers): Reset the signal to the saved handler, not
21666 to SIG_DFL (except when ignored).
21667 (install_handlers): Save the previous handlers.
21669 2008-08-30 Bruno Haible <bruno@clisp.org>
21671 * gnulib-tool (func_reset_sigpipe): New function.
21672 (func_get_automake_snippet, func_modules_transitive_closure,
21673 func_import): Invoke it before a join command that reads from stdin,
21674 to avoid "echo: write error: Broken pipe" error messages on stderr.
21675 Reported by Sam Steingold <sds@gnu.org>.
21677 2008-08-30 Bruno Haible <bruno@clisp.org>
21679 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21680 Code copied from m4/open.m4.
21681 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21682 access and the filename ends in a slash. Code copied from lib/open.c.
21683 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21684 * tests/test-fopen.c (main): Check against bug with trailing slash.
21686 2008-08-29 Bruno Haible <bruno@clisp.org>
21688 Avoid some "gcc -pedantic" warnings.
21689 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21690 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21691 * lib/dirent.in.h: Likewise.
21692 * lib/fcntl.in.h: Likewise.
21693 * lib/float.in.h: Likewise.
21694 * lib/iconv.in.h: Likewise.
21695 * lib/inttypes.in.h: Likewise.
21696 * lib/locale.in.h: Likewise.
21697 * lib/math.in.h: Likewise.
21698 * lib/netinet_in.in.h: Likewise.
21699 * lib/search.in.h: Likewise.
21700 * lib/signal.in.h: Likewise.
21701 * lib/stdarg.in.h: Likewise.
21702 * lib/stdint.in.h: Likewise.
21703 * lib/stdio.in.h: Likewise.
21704 * lib/stdlib.in.h: Likewise.
21705 * lib/string.in.h: Likewise.
21706 * lib/strings.in.h: Likewise.
21707 * lib/sys_select.in.h: Likewise.
21708 * lib/sys_socket.in.h: Likewise.
21709 * lib/sys_stat.in.h: Likewise.
21710 * lib/sys_time.in.h: Likewise.
21711 * lib/sysexits.in.h: Likewise.
21712 * lib/time.in.h: Likewise.
21713 * lib/unistd.in.h: Likewise.
21714 * lib/wchar.in.h: Likewise.
21715 * lib/wctype.in.h: Likewise.
21716 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21717 * modules/fchdir (Makefile.am): Likewise.
21718 * modules/fcntl (Makefile.am): Likewise.
21719 * modules/float (Makefile.am): Likewise.
21720 * modules/iconv_open (Makefile.am): Likewise.
21721 * modules/inttypes (Makefile.am): Likewise.
21722 * modules/locale (Makefile.am): Likewise.
21723 * modules/math (Makefile.am): Likewise.
21724 * modules/netinet_in (Makefile.am): Likewise.
21725 * modules/search (Makefile.am): Likewise.
21726 * modules/signal (Makefile.am): Likewise.
21727 * modules/stdarg (Makefile.am): Likewise.
21728 * modules/stdint (Makefile.am): Likewise.
21729 * modules/stdio (Makefile.am): Likewise.
21730 * modules/stdlib (Makefile.am): Likewise.
21731 * modules/string (Makefile.am): Likewise.
21732 * modules/strings (Makefile.am): Likewise.
21733 * modules/sys_select (Makefile.am): Likewise.
21734 * modules/sys_socket (Makefile.am): Likewise.
21735 * modules/sys_stat (Makefile.am): Likewise.
21736 * modules/sys_time (Makefile.am): Likewise.
21737 * modules/sysexits (Makefile.am): Likewise.
21738 * modules/time (Makefile.am): Likewise.
21739 * modules/unistd (Makefile.am): Likewise.
21740 * modules/wchar (Makefile.am): Likewise.
21741 * modules/wctype (Makefile.am): Likewise.
21742 Reported by Reuben Thomas <rrt@sc3d.org>.
21744 2008-08-29 Bruno Haible <bruno@clisp.org>
21746 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21749 2008-08-29 Simon Josefsson <simon@josefsson.org>
21751 * MODULES.html.sh (Misc): Add bitrotate.
21753 * modules/bitrotate: New file.
21755 * lib/bitrotate.h: New file.
21757 * modules/bitrotate-tests: New file.
21759 * tests/test-bitrotate.c: New file.
21761 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21762 on the bitrotate module.
21764 * lib/arctwo.c: Use new bitrotate module.
21766 2008-08-29 Jim Meyering <meyering@redhat.com>
21768 bootstrap: merge changes from coreutils
21769 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21770 of copied files. Remove a kludge, now that this is fixed.
21771 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21772 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21773 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21775 2008-08-29 Bruno Haible <bruno@clisp.org>
21777 * MODULES.html.sh: Remove --cvs-urls option.
21779 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
21781 maint.mk: adjust to file name change
21782 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21784 2008-08-28 Jim Meyering <meyering@redhat.com>
21786 * modules/getndelim2 (License): Relicense to LGPLv2+.
21787 Approved by Richard Stallman for the version of 1995, and by
21788 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21790 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
21792 * lib/getdelim.c (flockfile, funlockfile): Make all of them
21793 dummy if one is not available. Do not touch them if
21794 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21795 (getc_maybe_unlocked): New.
21796 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21798 2008-08-26 Eric Blake <ebb9@byu.net>
21800 doc/INSTALL: resync from autoconf
21801 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21802 (INSTALL_PRELUDE): Delete; this is done more efficiently by
21804 * install.texi [!autoconf]: ...here. Resync from autoconf.
21805 * INSTALL: Regenerate.
21806 * INSTALL.ISO: New file.
21807 * INSTALL.UTF-8: Likewise.
21809 2008-08-26 Jim Meyering <meyering@redhat.com>
21811 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21812 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21813 these definitions conditional, so that they may be overridden, too.
21815 2008-08-26 Bruno Haible <bruno@clisp.org>
21817 Generate INSTALL file variants with prettier quotes.
21818 * doc/Makefile (INSTALL_PRELUDE): New macro.
21820 (INSTALL.ISO, INSTALL.UTF-8): New rules.
21822 2008-08-26 Bruno Haible <bruno@clisp.org>
21824 Run makeinfo in an English locale.
21825 * doc/Makefile (MAKEINFO): New variable.
21827 2008-08-26 Bruno Haible <bruno@clisp.org>
21829 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21830 Suggested by Eric Blake.
21832 2008-08-25 Bruno Haible <bruno@clisp.org>
21834 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21836 2008-08-25 Eric Blake <ebb9@byu.net>
21838 c-stack: test that stack overflow can be caught
21839 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21840 that platform allows handling stack overflow; at least OS/2 EMX
21841 has sigaltstack, but crashes before transferring control to
21842 handler on stack overflow.
21843 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21844 check for HAVE_STACK_OVERFLOW_HANDLING.
21845 Reported by Elbert Pol.
21847 2008-08-25 Bruno Haible <bruno@clisp.org>
21849 * doc/posix-functions/strftime.texi: Fix description of strftime
21852 2008-08-24 Bruno Haible <bruno@clisp.org>
21854 * tests/uniwidth/test-uc_width2.c: New file.
21855 * tests/uniwidth/test-uc_width2.sh: New file.
21856 * modules/uniwidth/width-tests (Files): Add the new files.
21857 (TESTS): Add uniwidth/test-uc_width2.sh.
21858 (TESTS_ENVIRONMENT): New variable.
21859 (check_PROGRAMS): Add test-uc_width2.
21860 (test_uc_width2_SOURCES): New variable.
21862 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21863 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21865 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21867 2008-08-22 Eric Blake <ebb9@byu.net>
21869 test-lock, test-tls: mention why a test is skipped
21870 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21872 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21874 count-one-bits: relax license
21875 * modules/count-one-bits (License): Relicense to LGPLv2+.
21876 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21878 2008-08-22 Andreas Schwab <schwab@suse.de>
21880 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21881 Remove spurious space in assignment.
21883 2008-08-21 Simon Josefsson <simon@josefsson.org>
21885 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21886 Paul Eggert <eggert@CS.UCLA.EDU>.
21888 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21890 * modules/gettext: Add m4/threadlib.m4.
21892 2008-08-19 Eric Blake <ebb9@byu.net>
21894 test-c-stack: fix compilation failure on FreeBSD 5.0
21895 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21896 headers before <sys/resource.h>.
21897 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21899 Reported by Nelson H. F. Beebe.
21901 strverscmp: migrate from "strverscmp.h" to <string.h>
21902 * modules/string (Makefile.am): Add new hooks.
21903 * modules/strverscmp (Files): Remove strverscmp.h.
21904 (Depends-on): Add string.
21905 (configure.ac): Add indicator.
21906 (Include): Mention new header.
21907 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21909 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21911 * lib/strverscmp.h: Delete.
21912 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21913 * tests/test-strverscmp.c (includes): Adjust client.
21914 * lib/check-version.c (includes): Likewise.
21915 * NEWS: Document the change.
21917 strverscmp: add unit test
21918 * modules/strverscmp-tests: New file.
21919 * tests/test-strverscmp.c: Likewise.
21921 2008-08-19 Simon Josefsson <simon@josefsson.org>
21923 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21924 regarding Windows crypto stuff, from Mono.
21926 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21928 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21929 if present, for intel RND. Return error on failures.
21931 2008-08-18 Ben Pfaff <blp@gnu.org>
21933 gitlog-to-changelog: give better diagnostic for failed pipe-open
21934 * build-aux/gitlog-to-changelog: Improve error message: suggest
21935 that the version of Git may be too old.
21937 2008-08-18 Simon Josefsson <simon@josefsson.org>
21939 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
21940 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
21942 2008-08-18 Bruno Haible <bruno@clisp.org>
21944 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21947 2008-08-18 Bruno Haible <bruno@clisp.org>
21949 * lib/glthread/threadlib.c: Include <pthread.h>.
21951 2008-08-18 Bruno Haible <bruno@clisp.org>
21953 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21954 glthread_recursive_lock_* macros.
21955 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21958 2008-08-18 Bruno Haible <bruno@clisp.org>
21960 * lib/glthread/thread.c: Avoid forcing a context switch right after
21963 2008-08-17 Bruno Haible <bruno@clisp.org>
21965 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21966 * lib/glthread/thread.h: Provide Win32 specific implementation.
21967 * modules/thread (Files): Add lib/glthread/thread.c.
21968 (Depends-on): Add lock.
21969 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21971 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21973 New module 'yield'.
21974 * modules/yield: New file.
21975 * lib/glthread/yield.h: New file.
21976 * m4/yield.m4: New file.
21977 * MODULES.html.sh (Multithreading): Add yield.
21979 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21981 New module 'thread'.
21982 * modules/thread: New file.
21983 * lib/glthread/thread.h: New file.
21984 * m4/thread.m4: New file.
21985 * MODULES.html.sh (Multithreading): Add thread.
21987 2008-08-17 Bruno Haible <bruno@clisp.org>
21989 * lib/glthread/lock.h: Include <stdlib.h> always.
21990 * lib/glthread/tls.h: Likewise.
21991 * lib/glthread/cond.h: Likewise.
21993 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21996 * modules/cond: New file.
21997 * lib/glthread/cond.h: New file.
21998 * lib/glthread/cond.c: New file.
21999 * m4/cond.m4: New file.
22000 * MODULES.html.sh (Multithreading): Add cond.
22002 2008-08-16 Eric Blake <ebb9@byu.net>
22004 c-stack: fix regression on Irix 5.3 from 2008-06-21
22005 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22007 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22008 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22009 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22010 * modules/signal (Makefile.am): Use the value.
22011 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22012 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22013 * doc/posix-headers/signal.texi (signal.h): Document this
22015 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22016 Reported by Tom G. Christensen.
22018 2008-08-17 Bruno Haible <bruno@clisp.org>
22020 New module 'threadlib'.
22021 * modules/threadlib: New file.
22022 * lib/glthread/threadlib.c: New file, extracted from
22023 lib/glthread/lock.c.
22024 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22026 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22027 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22028 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22030 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22031 (gl_DISABLE_THREADS): Remove macro.
22032 * modules/lock (Files): Remove build-aux/config.rpath.
22033 (Depends-on): Remove havelib. Add threadlib.
22034 (configure.ac-early): Remove section.
22035 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22036 * modules/tls (Depends-on): Remove lock. Add threadlib.
22037 (Link): New section, copied from threadlib.
22038 * MODULES.html.sh (Multithreading): Add threadlib.
22040 2008-08-14 Bruno Haible <bruno@clisp.org>
22042 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22043 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22044 glthread_rwlock_unlock, glthread_rwlock_destroy,
22045 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22046 glthread_recursive_lock_destroy): Define as macros always.
22047 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22048 glthread_lock_lock.
22049 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22050 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22051 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22052 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22053 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22054 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22055 (glthread_recursive_lock_lock_func): Renamed from
22056 glthread_recursive_lock_lock.
22057 (glthread_recursive_lock_unlock_func): Renamed from
22058 glthread_recursive_lock_unlock.
22059 (glthread_recursive_lock_destroy_func): Renamed from
22060 glthread_recursive_lock_destroy.
22062 2008-08-14 Bruno Haible <bruno@clisp.org>
22064 * lib/glthread/lock.h: Renamed from lib/lock.h.
22065 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22066 * lib/glthread/tls.h: Renamed from lib/tls.h.
22067 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22068 * lib/fstrcmp.c: Update includes.
22069 * lib/strsignal.c: Update includes.
22070 * modules/lock (Files, Makefile.am): Update.
22071 (Include): Change to "glthread/lock.h".
22072 * modules/tls (Files, Makefile.am): Update.
22073 (Include): Change to "glthread/tls.h".
22074 * tests/test-lock.c: Update includes.
22075 * tests/test-tls.c: Update includes.
22076 * NEWS: Mention the renamed header files.
22078 2008-08-11 Jim Meyering <meyering@redhat.com>
22080 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22082 2008-08-11 Eric Blake <ebb9@byu.net>
22084 test-c-stack: avoid C99-ism
22085 * tests/test-c-stack.c (main): Fix whitespace, move declaration
22087 Reported by Alain Guibert.
22089 2008-08-10 Jim Meyering <meyering@redhat.com>
22091 ensure that return value of uinttostr et al are not ignored
22092 * lib/inttostr.h (__GNUC_PREREQ): Define.
22093 (__attribute_warn_unused_result__): Define.
22094 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22096 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
22098 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22099 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22101 2008-08-07 Jim Meyering <meyering@redhat.com>
22103 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22105 * modules/mkstemp (License): Relicense under LGPLv2+.
22106 * modules/tempname (License): Likewise.
22108 2008-08-06 Bruno Haible <bruno@clisp.org>
22110 * lib/poll.c (poll): Further micro-optimization.
22112 2008-08-06 Jim Meyering <meyering@redhat.com>
22114 inet_pton.c: use locale-independent tolower
22115 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22116 (inet_pton6): Use c_tolower rather than tolower.
22117 * modules/inet_pton (Depends-on): Add c-ctype.
22119 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
22121 * lib/poll.c (poll): Avoid division when timeout is 0, cache
22122 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
22124 2008-08-06 Jim Meyering <meyering@redhat.com>
22126 * modules/inet_pton (License): Relicense under LGPLv2+.
22128 2008-08-03 Bruno Haible <bruno@clisp.org>
22130 Additional non-aborting API for lock and tls.
22131 * lib/lock.h: Include <errno.h>.
22132 (glthread_lock_init): New macro/function.
22133 (gl_lock_init): Define as wrapper around glthread_lock_init.
22134 (glthread_lock_lock): New macro/function.
22135 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22136 (glthread_lock_unlock): New macro/function.
22137 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22138 (glthread_lock_destroy): New macro/function.
22139 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22140 (glthread_rwlock_init): New macro/function.
22141 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22142 (glthread_rwlock_rdlock): New macro/function.
22143 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22144 (glthread_rwlock_wrlock): New macro/function.
22145 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22146 (glthread_rwlock_unlock): New macro/function.
22147 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22148 (glthread_rwlock_destroy): New macro/function.
22149 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22150 (glthread_recursive_lock_init): New macro/function.
22151 (gl_recursive_lock_init): Define as wrapper around
22152 glthread_recursive_lock_init.
22153 (glthread_recursive_lock_lock): New macro/function.
22154 (gl_recursive_lock_lock): Define as wrapper around
22155 glthread_recursive_lock_lock.
22156 (glthread_recursive_lock_unlock): New macro/function.
22157 (gl_recursive_lock_unlock): Define as wrapper around
22158 glthread_recursive_lock_unlock.
22159 (glthread_recursive_lock_destroy): New macro/function.
22160 (gl_recursive_lock_destroy): Define as wrapper around
22161 glthread_recursive_lock_destroy.
22162 (glthread_once): New macro/function.
22163 (gl_once): Define as wrapper around glthread_once.
22164 Update function declarations.
22165 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22166 glthread_rwlock_init. Return error code.
22167 (glthread_rwlock_rdlock_multithreaded): Renamed from
22168 glthread_rwlock_rdlock. Return error code.
22169 (glthread_rwlock_wrlock_multithreaded): Renamed from
22170 glthread_rwlock_wrlock. Return error code.
22171 (glthread_rwlock_unlock_multithreaded): Renamed from
22172 glthread_rwlock_unlock. Return error code.
22173 (glthread_rwlock_destroy_multithreaded): Renamed from
22174 glthread_rwlock_destroy. Return error code.
22175 (glthread_recursive_lock_init_multithreaded): Renamed from
22176 glthread_recursive_lock_init. Return error code.
22177 (glthread_recursive_lock_lock_multithreaded): Renamed from
22178 glthread_recursive_lock_lock. Return error code.
22179 (glthread_recursive_lock_unlock_multithreaded): Renamed from
22180 glthread_recursive_lock_unlock. Return error code.
22181 (glthread_recursive_lock_destroy_multithreaded): Renamed from
22182 glthread_recursive_lock_destroy. Return error code.
22183 (glthread_once_call): Make static.
22184 (glthread_once_multithreaded): Renamed from glthread_once.
22185 * lib/tls.h: Include <errno.h>.
22186 (glthread_tls_key_init): New macro/function.
22187 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22188 (glthread_tls_set): New macro/function.
22189 (gl_tls_set): Define as wrapper around glthread_tls_set.
22190 (glthread_tls_key_destroy): New macro/function.
22191 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22192 Update function declarations.
22193 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22195 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22197 2008-08-04 Eric Blake <ebb9@byu.net>
22199 gnumakefile: use space, not TAB, outside of targets
22200 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22202 2008-08-02 Jim Meyering <meyering@redhat.com>
22204 getdate.y: avoid locale-dependent date parsing failure
22205 In Turkish locales, getdate would fail to recognize keywords
22206 containing a lowercase "i". The solution is not to rely on
22207 locale-sensitive case-conversion.
22208 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22209 (lookup_word): Use c_toupper in place of toupper.
22210 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22211 Reported by Vefa Bicakci <bicave@superonline.com> in
22212 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22213 * modules/getdate (Depends-on): Add c-ctype.
22215 2008-08-02 Bruno Haible <bruno@clisp.org>
22217 * gnulib-tool (func_import): When updating or creating a .gitignore
22218 file, prepend each added line with a slash, and ignore leading slashes
22219 from the existing lines.
22220 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22222 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22224 Portability fix for GNU make 3.79.1.
22225 * top/GNUmakefile: Avoid 'else COND', which older GNU make
22226 versions do not understand.
22228 2008-08-01 Bruno Haible <bruno@clisp.org>
22230 Work around bug of HP-UX 10.20 cc with -0.0 literal.
22231 * tests/test-isnanf.h (zero): New variable.
22232 (main): Avoid literal -0.0f.
22233 * tests/test-isnand.h (zero): New variable.
22234 (main): Avoid literal -0.0.
22235 * tests/test-isnanl.h (zero): New variable.
22236 (main): Avoid literal -0.0L.
22237 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22238 (test_float, test_double, test_long_double): Avoid literals -0.0f,
22240 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22241 (test_signbitd): Avoid literal -0.0.
22242 (test_signbitl): Avoid literal -0.0L.
22243 * tests/test-ceilf1.c (zero): New variable.
22244 (main): Avoid literal -0.0f.
22245 * tests/test-ceill.c (zero): New variable.
22246 (main): Avoid literal -0.0L.
22247 * tests/test-floorf1.c (zero): New variable.
22248 (main): Avoid literal -0.0f.
22249 * tests/test-floorl.c (zero): New variable.
22250 (main): Avoid literal -0.0L.
22251 * tests/test-roundf1.c (zero): New variable.
22252 (main): Avoid literal -0.0f.
22253 * tests/test-round1.c (zero): New variable.
22254 (main): Avoid literal -0.0.
22255 * tests/test-roundl.c (zero): New variable.
22256 (main): Avoid literal -0.0L.
22257 * tests/test-truncf1.c (zero): New variable.
22258 (main): Avoid literal -0.0f.
22259 * tests/test-trunc1.c (zero): New variable.
22260 (main): Avoid literal -0.0.
22261 * tests/test-truncl.c (zero): New variable.
22262 (main): Avoid literal -0.0L.
22263 * tests/test-frexp.c (zero): New variable.
22264 (main): Avoid literal -0.0.
22265 * tests/test-frexpl.c (zero): New variable.
22266 (main): Avoid literal -0.0L.
22267 * tests/test-ldexpl.c (zero): New variable.
22268 (main): Avoid literal -0.0L.
22269 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22270 (zerod, zerol): New variables.
22271 (test_function): Avoid literals -0.0, -0.0L.
22272 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22273 (zerod, zerol): New variables.
22274 (test_function): Avoid literals -0.0, -0.0L.
22275 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22276 (zerod, zerol): New variables.
22277 (test_function): Avoid literals -0.0, -0.0L.
22278 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22279 (zerod, zerol): New variables.
22280 (test_function): Avoid literals -0.0, -0.0L.
22281 * tests/test-strtod.c (zero): New variable.
22282 (main): Avoid literal -0.0.
22283 Reported by Jonathan C. Patschke <jp@centtech.com>.
22285 2008-07-31 Jim Meyering <meyering@redhat.com>
22287 sha256.h: correct definition of SHA224_DIGEST_SIZE
22288 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22289 Reported by Paulie Pena IV <paulie4@gmail.com>.
22290 Define as 224 / 8, rather than as a literal.
22291 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22292 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22293 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22295 2008-07-31 Bruno Haible <bruno@clisp.org>
22297 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22298 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22299 Reported by Jonathan Patschke <jp@centtech.com>.
22301 2008-07-31 Bruno Haible <bruno@clisp.org>
22303 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22304 Reported by Paolo Bonzini <bonzini@gnu.org>.
22306 2008-07-30 Eric Blake <ebb9@byu.net>
22308 test-strtod: allow compilation without -lm
22309 * tests/test-strtod.c (main): Avoid link dependence on fabs.
22310 Reported by Dennis Clarke <blastwave@gmail.com>.
22312 2008-07-28 Jim Meyering <meyering@redhat.com>
22314 bootstrap: work also when there are no .po files in po/
22315 * build-aux/bootstrap (update_po_files): Complete the change
22316 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22318 2008-07-27 Jim Meyering <meyering@redhat.com>
22320 * users.txt: Add zile.
22322 2008-07-26 Ben Pfaff <blp@gnu.org>
22324 Add missing dependencies on new m4/exponent[fdl].m4 files.
22325 * modules/isnanf-nolibm: Add m4/exponentf.m4.
22326 * modules/isnand-nolibm: Add m4/exponentd.m4.
22327 * modules/isnanl-nolibm: Add m4/exponentl.m4.
22328 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22329 m4/isnan[fdl].m4, because the macros actually used moved.
22330 Reported by Jim Meyering.
22332 2008-07-14 Ben Pfaff <blp@gnu.org>
22335 * lib/isinf.c: New file.
22336 * lib/math.in.h: Define isinf macro if we have decided to replace
22338 * m4/isinf.m4: New file.
22339 * m4/math_h.m4: Initialize and substitute variables for isinf
22341 * modules/isinf: New file.
22342 * modules/isinf-tests: New file.
22343 * modules/math: Add substitutions for new module.
22344 * tests/test-isinf.c: New file.
22345 * doc/posix-functions/isinf.texi: Mention new module.
22346 * MODULES.html.sh: Mention new module.
22348 2008-07-14 Ben Pfaff <blp@gnu.org>
22350 Factor out some macros for use by additional modules.
22351 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22353 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22355 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22357 * m4/exponentf.m4: New file.
22358 * m4/exponentd.m4: New file.
22359 * m4/exponentl.m4: New file.
22360 * modules/isnanf: Use new file m4/exponentf.m4.
22361 * modules/isnand: Use new file m4/exponentd.m4.
22362 * modules/isnanl: Use new file m4/exponentl.m4.
22364 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22366 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22367 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22368 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22369 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22371 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22372 readlink on platforms without PATH_MAX.
22374 2008-07-21 Eric Blake <ebb9@byu.net>
22376 Warn, not fail, on stale version.
22377 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22379 Don't allow installation with stale devel version number.
22380 * top/GNUmakefile (_is-install-target): New macro.
22381 (_curr-ver): Forbid installation with stale version number.
22383 2008-07-20 Bruno Haible <bruno@clisp.org>
22385 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22387 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22389 2008-07-20 Bruno Haible <bruno@clisp.org>
22391 * lib/c-stack.h (c_stack_action): Add documentation.
22392 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22394 2008-07-20 Bruno Haible <bruno@clisp.org>
22396 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22397 * modules/readlink (License): Likewise.
22399 2008-07-17 Eric Blake <ebb9@byu.net>
22401 * modules/c-stack (Link): Fix typo.
22403 Make c-stack use libsigsegv, when available.
22404 * modules/c-stack (Depends-on): Add libsigsegv.
22405 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22407 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22408 (segv_handler, overflow_handler, c_stack_action)
22409 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22410 implementation when libsigsegv is available, but only when using
22411 the library is necessary.
22412 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22413 comment, explaining why XSI check fails on Linux.
22414 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22415 * tests/test-c-stack2.sh: Tweak skip message.
22416 * NEWS: Document new link-time requirements.
22418 2008-07-16 Eric Blake <ebb9@byu.net>
22420 c-stack: Expose false positives when not using libsigsegv.
22421 * modules/c-stack-tests (Files): Expand test.
22422 * tests/test-c-stack.c (main): Add means to conditionally trigger
22423 non-overflow SIGSEGV.
22424 * tests/test-c-stack2.sh: New file.
22426 2008-07-14 Bruno Haible <bruno@clisp.org>
22428 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22429 Reported by Eric Blake.
22431 2008-07-14 Sam Steingold <sds@gnu.org>
22432 Bruno Haible <bruno@clisp.org>
22434 New module libsigsegv.
22435 * modules/libsigsegv: New file.
22436 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22438 * MODULES.html.sh (Signal handling): New section.
22440 2008-07-14 Bruno Haible <bruno@clisp.org>
22442 * modules/unictype/ctype-* (Description): Add the word "function".
22443 Improves the resulting doc in MODULES.html.
22445 2008-07-12 Ben Pfaff <blp@gnu.org>
22447 Add longlong module.
22448 * modules/longlong: New file.
22450 2008-07-12 Bruno Haible <bruno@clisp.org>
22452 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22455 2008-07-10 Ben Pfaff <blp@gnu.org>
22458 * doc/posix-functions/isnan.texi: Mention new module.
22459 * lib/math.in.h: Define isnan macro if we have decided to replace
22461 * m4/isnan.m4: New file.
22462 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22463 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22465 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22467 * m4/math_h.m4: Initialize and substitute variables for isnan
22469 * modules/isnan: New file.
22470 * modules/isnan-tests: New file.
22471 * modules/math: Add substitutions for new module.
22472 * tests/test-isnan.c: New file.
22473 * MODULES.html.sh: Mention new module.
22475 2008-07-10 Ben Pfaff <blp@gnu.org>
22478 * lib/isnanf.m4: New file.
22479 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22480 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22481 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22482 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22483 * modules/isnanf: New file.
22484 * modules/isnanf-tests: New file.
22485 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22487 * tests/test-isnanf-nolibm.c: factored most of its contents into
22488 new file tests/test-isnanf.h.
22489 * tests/test-isnanf.h: New file.
22490 * tests/test-isnanf.c: New file.
22491 * MODULES.html.sh: Mention new module.
22492 * doc/glibc-functions/isnanf.texi: Mention new module.
22494 2008-07-10 Ben Pfaff <blp@gnu.org>
22497 * lib/isnand.h: New file.
22498 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22499 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22500 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22501 functionality also.
22502 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22503 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22504 (gl_HAVE_ISNAND_IN_LIBM): New macro.
22505 * modules/isnand: New file.
22506 * modules/isnand-tests: New file.
22507 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22509 * tests/test-isnand-nolibm.c: factored most of its contents into
22510 new file tests/test-isnand.h.
22511 * tests/test-isnand.h: New file.
22512 * tests/test-isnand.c: New file.
22513 * MODULES.html.sh: Mention new module.
22515 2008-07-10 Ben Pfaff <blp@gnu.org>
22517 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22518 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22519 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22520 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22521 * modules/isnanf-nolibm: Update references to renamed files.
22522 * modules/isnand-nolibm: Likewise.
22523 * modules/isnanf-nolibm-tests: Likewise.
22524 * modules/isnand-nolibm-tests: Likewise.
22525 * lib/frexp.c: Likewise.
22526 * lib/isfinite.c: Likewise.
22527 * lib/signbitd.c: Likewise.
22528 * lib/signbitf.c: Likewise.
22529 * lib/vasnprintf.c: Likewise.
22530 * tests/test-ceilf1.c: Likewise.
22531 * tests/test-ceilf2.c: Likewise.
22532 * tests/test-floorf1.c: Likewise.
22533 * tests/test-floorf2.c: Likewise.
22534 * tests/test-frexp.c: Likewise.
22535 * tests/test-round1.c: Likewise.
22536 * tests/test-round2.c: Likewise.
22537 * tests/test-roundf1.c: Likewise.
22538 * tests/test-strtod.c: Likewise.
22539 * tests/test-trunc1.c: Likewise.
22540 * tests/test-trunc2.c: Likewise.
22541 * tests/test-truncf1.c: Likewise.
22542 * tests/test-truncf2.c: Likewise.
22543 * NEWS: Mention the renamed header files.
22545 2008-07-11 Jim Meyering <meyering@redhat.com>
22547 vc-list-files: make the last-resort awk code more portable
22548 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22549 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22550 does not support it.
22552 2008-07-10 Eric Blake <ebb9@byu.net>
22554 Work with tar's bootstrap.
22555 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22556 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22559 2008-07-09 Jim Meyering <meyering@redhat.com>
22561 posix-shell.m4: fix typo that made this test malfunction
22562 * m4/posix-shell.m4: Remove capitalization in variable name.
22564 2008-07-08 Bruno Haible <bruno@clisp.org>
22566 * m4/onceonly.m4: Update comments.
22567 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22569 2008-07-04 Jim Meyering <meyering@redhat.com>
22571 * users.txt: Add vc-dwim.
22572 (bison, coreutils): Use the gitweb URL.
22574 2008-07-03 Jim Meyering <meyering@redhat.com>
22576 * users.txt: Add libffcall. From Sam Steingold.
22578 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22580 getdate.y: do not ignore TZ with relative day, month or year offset
22581 * lib/getdate.y (get_date): Move the tz-handling block to follow the
22582 relative-date-handling, since otherwise, the latter would clobber the
22583 sole output (an updated Start value) of the tz-handling block.
22584 * tests/test-getdate.c: Tests for the fix
22586 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22588 Recognize 'foo_LIBRARIES += libgnu.a'.
22589 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22590 makefile snippet has already specified an installation location,
22593 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22595 getdate.y: factor out common actions
22596 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22597 Use them in place of open-coded actions.
22599 2008-07-01 Simon Josefsson <simon@josefsson.org>
22601 Add self-test for getdate module.
22602 * modules/getdate-tests: New file.
22603 * tests/test-getdate.c: New file.
22605 2008-06-29 Bruno Haible <bruno@clisp.org>
22607 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22609 Reported by Sylvain Beucler <beuc@beuc.net>.
22611 2008-06-29 Bruno Haible <bruno@clisp.org>
22613 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22614 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22616 2008-06-29 Bruno Haible <bruno@clisp.org>
22618 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22620 Reported by Sylvain Beucler <beuc@beuc.net>.
22622 2008-06-26 Jim Meyering <meyering@redhat.com>
22624 make several modules depend on the "open" module
22625 This provides slightly increased consistency when opening-for-write
22626 the name of a non-directory spelled with a trailing slash.
22627 * modules/chdir-safer: Likewise.
22628 * modules/chown: Likewise.
22629 * modules/clean-temp: Likewise.
22630 * modules/copy-file: Likewise.
22631 * modules/fchdir: Likewise.
22632 * modules/fcntl-safer: Likewise.
22633 * modules/pipe: Likewise.
22634 * modules/utime: Likewise.
22635 Prompted by Eric Blake and Bruno Haible.
22637 2008-06-24 Andreas Schwab <schwab@suse.de>
22639 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22640 literals can be used as initializers for global variables.
22642 2008-06-23 Eric Blake <ebb9@byu.net>
22644 Make gnulib-cache.m4 easier to diff.
22645 * gnulib-tool (func_import): Allow newlines when reading cached
22646 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22648 2008-06-23 Bruno Haible <bruno@clisp.org>
22650 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22651 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22652 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22653 m4/signalblocking.m4.
22654 (gl_PREREQ_SIGACTION): Don't invoke it.
22655 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22656 gl_PREREQ_SIG_HANDLER_H.
22657 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22658 Don't check for sigaction here.
22660 2008-06-23 Bruno Haible <bruno@clisp.org>
22662 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22663 (install_handlers): Don't set the SA_RESETHAND flag.
22665 2008-06-23 Bruno Haible <bruno@clisp.org>
22667 * m4/sigaction.m4: Comment fixes.
22668 * lib/signal.in.h: Likewise.
22670 2008-06-23 Eric Blake <ebb9@byu.net>
22673 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22675 Avoid SA_ namespace.
22676 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22677 Reported by Ralf Wildenhues.
22679 Avoid test failure due to SA_RESTORER.
22680 * tests/test-sigaction.c (SA_MASK): New macro.
22681 (main): Avoid failing due to extension flags being set.
22682 Reported by Jim Meyering.
22684 Revert use of sig-handler.h in sigprocmask.c.
22685 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22686 it requires the existence of struct sigaction.
22687 * lib/sigprocmask.c (handler_t): Restore typedef.
22688 (rpl_signal, old_handlers): Use local type.
22690 2008-06-22 Bruno Haible <bruno@clisp.org>
22692 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22694 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22696 2008-06-22 Bruno Haible <bruno@clisp.org>
22698 * doc/posix-functions/siginterrupt.texi: Move note.
22700 * lib/signal.in.h (SA_RESTART): New macro.
22701 * lib/sigaction.c: Update comment.
22703 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22705 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22706 (gl_PREREQ_SIGPROCMASK): Invoke it.
22707 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22709 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22711 * lib/sigprocmask.c: Update a comment.
22713 2008-06-21 Eric Blake <ebb9@byu.net>
22715 Use sigaction module rather than signal().
22716 * modules/c-stack (Depends-on): Add sigaction.
22717 * modules/fatal-signal (Depends-on): Likewise.
22718 * modules/nanosleep (Depends-on): Likewise.
22719 * modules/sigprocmask (Files): Add sig-handler.h.
22720 * modules/sigaction (Files): Likewise.
22721 * lib/sig-handler.h (get_handler): New file, suggested by Paul
22723 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22724 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22725 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22726 (init_fatal_signals): Likewise.
22727 * lib/nanosleep.c (rpl_nanosleep): Likewise.
22728 (siginterrupt): Delete fallback.
22729 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22731 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22734 New module sigaction, for mingw.
22735 * modules/sigaction: New module...
22736 * modules/sigaction-tests: ...and its test.
22737 * m4/sigaction.m4: New file.
22738 * lib/sigaction.c: Likewise.
22739 * tests/test-sigaction.c: Likewise.
22740 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22741 * modules/signal (Makefile.am): Likewise.
22742 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22744 * doc/posix-headers/signal.texi (signal.h): Mention provided
22746 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22747 that sigaction is preferable.
22748 * doc/posix-functions/sigaction.texi (sigaction): Mention new
22750 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22753 Improve robustness of sigprocmask by overriding signal.
22754 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22756 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22757 (SIGKILL, SIGSTOP): Provide fallbacks.
22758 (rpl_signal): Implement.
22759 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22760 signal can be called inside handlers.
22762 Fix nanosleep module on mingw.
22763 * modules/nanosleep (Depends-on): Add sys_select.
22764 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22766 Fix licensing of sigprocmask.
22767 * modules/raise (License): Relicense as LGPL.
22769 2008-06-21 Bruno Haible <bruno@clisp.org>
22771 * lib/propername.c (proper_name_utf8): Don't use the transliterated
22772 result if it contains question marks.
22773 Reported by Michael Geng <linux@michaelgeng.de>.
22775 2008-06-19 Bruno Haible <bruno@clisp.org>
22778 * doc/gnulib.texi: Include updated-stamp.texi.
22779 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22780 (updated-stamp.texi): New rule.
22781 (gnulib.info): Depend on it.
22782 * doc/.gitignore: Add updated-stamp.texi.
22783 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22785 2008-06-19 Bruno Haible <bruno@clisp.org>
22787 * doc/Makefile (gnulib.info): Update and simplify dependencies.
22788 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22790 2008-06-19 Eric Blake <ebb9@byu.net>
22792 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22793 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22794 Reported by Stepan Kasal.
22796 2008-06-18 Bruno Haible <bruno@clisp.org>
22798 * lib/fatal-signal.c (init_fatal_signals): Add comment.
22799 Reported by Eric Blake.
22801 2008-06-18 Eric Blake <ebb9@byu.net>
22803 Work around cygwin 1.5.25 strsignal bug.
22804 * tests/test-strsignal.c: Allow for const char *.
22805 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22807 2008-06-18 Simon Josefsson <simon@josefsson.org>
22809 * users.txt: Update URL to article and add author/date
22812 2008-06-17 Bruno Haible <bruno@clisp.org>
22814 New macro gl_DISABLE_THREADS.
22815 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22816 if the user did not pass --enable-threads or --disable-threads option.
22817 (gl_DISABLE_THREADS): New macro.
22818 Reported by Eric Blake <ebb9@byu.net>.
22820 2008-06-17 Bruno Haible <bruno@clisp.org>
22822 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22823 when the macro ignores it.
22824 Based on a patch by Eric Blake <ebb9@byu.net>.
22826 2008-06-17 Bruno Haible <bruno@clisp.org>
22828 * modules/tls (License): Change to LGPLv2+.
22829 Reported by Eric Blake.
22831 2008-06-17 Eric Blake <ebb9@byu.net>
22833 Simplify c-stack prerequisites.
22834 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22835 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22836 no longer requires <ucontext.h> to exist. Optimize setrlimit
22838 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22841 Move c-stack test into testsuite.
22842 * modules/c-stack-tests: New file.
22843 * lib/c-stack.c [DEBUG]: Move test program...
22844 * tests/test-c-stack.c: ...into this new file. Skip rather than
22845 fail test if sigaltstack is lacking.
22846 * tests/test-c-stack.sh: New driver file.
22848 2008-06-16 Eric Blake <ebb9@byu.net>
22850 Use raise module consistently.
22851 * modules/fatal-signal (Depends-on): Add raise.
22852 * modules/sigprocmask (Depends-on): Likewise.
22853 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22854 * lib/sigprocmask.c (sigprocmask): Likewise.
22855 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22856 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22858 Fix compliance bug in sigpending.
22859 * lib/sigprocmask.c (sigpending): Return pending array via
22860 parameter, not return value.
22862 2008-06-14 Eric Blake <ebb9@byu.net>
22864 Improve obstack-printf test code.
22865 * tests/test-obstack-printf.c (test_function): Fix comment, and
22866 simplify usage of obstack_* in macros. Add a test for coverage.
22867 Reported by Bruno Haible.
22869 2008-06-14 Bruno Haible <bruno@clisp.org>
22871 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22872 array size as a constant, not as a const variable.
22873 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22874 AC_USE_SYSTEM_EXTENSIONS.
22875 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22876 Test whether the obstack_printf function actually exists.
22877 * modules/obstack-printf (Depends-on): Add extensions.
22878 (Include): Remove obstack.h.
22879 * modules/obstack-printf-posix (Depends-on): Add extensions.
22880 (Include): Remove obstack.h.
22882 2008-06-13 Eric Blake <ebb9@byu.net>
22884 Add obstack-printf and obstack-printf-posix modules.
22885 * modules/obstack-printf: New file.
22886 * modules/obstack-printf-posix: Likewise.
22887 * MODULES.html.sh (Misc): Mention them.
22888 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22890 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22892 * modules/stdio (Makefile.am): Accomodate new modules.
22893 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22894 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22896 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22898 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22899 (gl_REPLACE_OBSTACK_PRINTF): New macros
22900 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22901 * tests/test-obstack-printf.c: New file.
22902 * modules/obstack-printf-tests: Likewise.
22903 * modules/obstack-printf-posix-tests: Likewise.
22905 2008-06-11 Bruno Haible <bruno@clisp.org>
22907 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22908 * lib/open.c: Include errno.h.
22909 (open): Fail when attempting to write to a file that has a trailing
22911 * tests/test-open.c (main): Test against trailing slash bug.
22912 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22914 2008-06-10 Bruno Haible <bruno@clisp.org>
22916 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22917 for $? to work inside the trap command, with various /bin/sh-s.
22918 * tests/test-vc-list-files-cvs.sh: Likewise.
22920 2008-06-10 Bruno Haible <bruno@clisp.org>
22922 * lib/acl-internal.h: Don't include gettext.h here.
22923 * lib/set-mode-acl.c: Include gettext.h here.
22924 * lib/copy-acl.c: Likewise.
22926 2008-06-10 Bruno Haible <bruno@clisp.org>
22928 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22929 * lib/wait-process.c (wait_subprocess): Likewise.
22930 * lib/execute.h (execute): Add termsigp argument.
22931 * lib/execute.c (execute): Likewise.
22932 * lib/csharpcomp.c (compile_csharp_using_pnet,
22933 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22934 * lib/csharpexec.c (execute_csharp_using_pnet,
22935 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22936 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22937 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22938 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22939 is_jikes_present): Update.
22940 * lib/javaexec.c (execute_java_class): Update.
22941 * lib/javaversion.c (execute_and_read_line): Update.
22942 * NEWS: Document the changes.
22943 Reported by Eric Blake.
22945 2008-06-10 Eric Blake <ebb9@byu.net>
22947 Add missing include.
22948 * tests/test-strstr.c (includes): Add <signal.h>.
22949 * tests/test-strcasestr.c (includes): Likewise.
22950 * tests/test-memmem.c (includes): Likewise.
22952 2008-06-10 Bruno Haible <bruno@clisp.org>
22954 * lib/wait-process.c (wait_subprocess): Add an assertion.
22956 2008-06-10 Bruno Haible <bruno@clisp.org>
22958 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22960 2008-06-10 Bruno Haible <bruno@clisp.org>
22962 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22964 * tests/test-strcasestr.c (main): Likewise.
22965 * tests/test-strstr.c (main): Likewise.
22967 2008-06-09 Bruno Haible <bruno@clisp.org>
22969 Work around the Solaris 10 ACE ACLs ABI change.
22970 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22971 declare if ACL_NO_TRIVIAL is present.
22972 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22973 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22974 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22975 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22976 define if ACL_NO_TRIVIAL is present.
22977 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22978 and use the current ABI.
22979 (file_has_acl): Use same #if condition as elsewhere.
22980 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22981 in use, and use the current ABI.
22982 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22983 Reported by Jim Meyering.
22985 2008-06-09 Eric Blake <ebb9@byu.net>
22987 Work around environments that (stupidly) ignore SIGALRM.
22988 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22989 before using alarm().
22990 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22991 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22992 Reported by Ian Beckwith <ianb@erislabs.net>.
22994 Produce autobuild blurb earlier in log.
22995 * modules/autobuild (configure.ac-early): Move AB_INIT here.
22997 2008-06-09 Jim Meyering <meyering@redhat.com>
22998 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
23000 utimens.c: correct kernel bug work-around
23001 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
23002 failure, not success, and the kernel bug we're trying to work
23003 around affects not just the utimensat call, but also the fallback
23005 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23007 [HAVE_FUTIMENS]: Use the same work-around, here.
23009 2008-06-09 Jim Meyering <meyering@redhat.com>
23011 add more guards around definition of ACE_-related code
23012 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23013 ALLOW and ACE_OWNER are also defined.
23015 2008-06-08 Bruno Haible <bruno@clisp.org>
23017 * lib/acl-internal.h: Add me as co-author.
23018 * lib/file-has-acl.c: Likewise.
23019 * lib/set-mode-acl.c: Likewise.
23020 * lib/copy-acl.c: Likewise.
23022 2008-06-08 Bruno Haible <bruno@clisp.org>
23024 Add support for AIX ACLs.
23025 * lib/acl-internal.h (acl_nontrivial): New declaration.
23026 * lib/file-has-acl.c (acl_nontrivial): New function.
23027 (file_has_acl): Add implementation using AIX 4 ACL API.
23028 * lib/set-mode-acl.c (qset_acl): Likewise.
23029 * lib/copy-acl.c (qcopy_acl): Likewise.
23031 2008-06-08 Bruno Haible <bruno@clisp.org>
23033 Add support for HP-UX ACLs.
23034 * lib/acl-internal.h (acl_nontrivial): New declaration.
23035 * lib/file-has-acl.c (acl_nontrivial): New function.
23036 (file_has_acl): Add implementation using HP-UX 11 ACL API.
23037 * lib/set-mode-acl.c (qset_acl): Likewise.
23038 * lib/copy-acl.c (qcopy_acl): Likewise.
23040 2008-06-08 Bruno Haible <bruno@clisp.org>
23042 Add support for Cygwin ACLs.
23043 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23044 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23045 the chmod_or_fchmod call.
23046 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23048 2008-06-08 Bruno Haible <bruno@clisp.org>
23050 Fix bug with setuid modes in Solaris 10+ code.
23051 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23052 succeeded, when the mode contains some special bits.
23054 2008-06-08 Bruno Haible <bruno@clisp.org>
23056 Add support for Solaris 7..10 ACLs.
23057 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23059 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23061 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23062 * lib/set-mode-acl.c (qset_acl): Likewise.
23063 * lib/copy-acl.c (qcopy_acl): Likewise.
23065 2008-06-08 Bruno Haible <bruno@clisp.org>
23067 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23069 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23070 (acl_access_nontrivial): Remove MacOS X case.
23071 (file_has_acl): Use acl_extended_nontrivial.
23072 * lib/copy-acl.c (qcopy_acl): Likewise.
23074 2008-06-08 Bruno Haible <bruno@clisp.org>
23076 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23078 2008-06-08 Jim Meyering <meyering@redhat.com>
23080 * modules/acl (Maintainer): Add Bruno Haible.
23082 2008-06-07 Bruno Haible <bruno@clisp.org>
23084 Improve support for Tru64 ACLs.
23085 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23088 2008-06-07 Bruno Haible <bruno@clisp.org>
23090 Add support for MacOS X ACLs.
23091 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23092 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23093 * lib/set-mode-acl.c (qset_acl): Likewise.
23094 * lib/copy-acl.c (qcopy_acl): Likewise.
23096 2008-06-07 Bruno Haible <bruno@clisp.org>
23098 Fix memory leak introduced on 2008-05-22.
23099 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23102 2008-06-07 Bruno Haible <bruno@clisp.org>
23104 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23105 to construct an empty ACL.
23107 2008-06-07 Bruno Haible <bruno@clisp.org>
23109 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23111 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23113 2008-06-07 Bruno Haible <bruno@clisp.org>
23115 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23116 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23118 2008-06-07 Bruno Haible <bruno@clisp.org>
23120 * doc/posix-functions/_setjmp.texi: Explain the use of this function
23121 regardless of POSIX.
23122 * doc/posix-functions/_longjmp.texi: Likewise.
23123 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23124 SystemV platform in this case.
23126 2008-06-06 Eric Blake <ebb9@byu.net>
23128 Document abort() bugs.
23129 * doc/posix-functions/abort.texi (abort): Mention anomalies.
23131 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23132 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23134 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23135 siglongjmp, but only as a macro.
23136 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23138 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23140 Tweak documentation to cover cygwin argz bugs.
23141 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23142 argz bug fix; no code change needed since no cygwin releases
23143 occurred between the last fix and the bug being tested.
23144 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23145 module and recently fixed cygwin bugs.
23146 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23147 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23148 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23149 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23150 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23152 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23153 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23154 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23155 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23156 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23157 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23160 Avoid gcc warning on cygwin.
23161 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23162 !ACL_NO_TRIVIAL]: Avoid unused variable.
23164 2008-06-05 Eric Blake <ebb9@byu.net>
23166 Be tolerant of UNKNOWN version in gnulib-tool test dir.
23167 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23168 git-version-gen fails to come up with a version.
23169 Reported by Simon Josefsson.
23171 2008-06-05 Jim Meyering <meyering@redhat.com>
23172 Paul Eggert <eggert@cs.ucla.edu>
23174 utimens.c: work around a probable Linux kernel bug
23175 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23176 appears to be a kernel bug that causes utimensat to return 280
23177 instead of 0, indicating success.
23179 2008-06-04 Bruno Haible <bruno@clisp.org>
23181 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23184 2008-06-04 Bruno Haible <bruno@clisp.org>
23186 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23187 * lib/file-has-acl.c (acl_access_nontrivial): New function.
23188 (file_has_acl): Use it. Save errno afterwards.
23189 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23191 2008-06-03 Bruno Haible <bruno@clisp.org>
23193 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23194 draft code. Simplify #ifs.
23195 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23196 Put Solaris code after POSIX-draft code. Fix comments regarding
23197 Solaris 10, HP-UX. Mention Cygwin.
23198 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23200 2008-06-03 Eric Blake <ebb9@byu.net>
23202 Provide fallback for older kernels.
23203 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23204 Provide runtime fallback if kernel lacks support.
23205 Reported by Mike Frysinger.
23207 2008-06-02 Bruno Haible <bruno@clisp.org>
23209 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23212 2008-06-02 Bruno Haible <bruno@clisp.org>
23214 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23215 * lib/copy-acl.c (qcopy_acl): Update comment.
23217 2008-06-02 Bruno Haible <bruno@clisp.org>
23219 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23222 2008-06-02 Bruno Haible <bruno@clisp.org>
23224 * tests/test-file-has-acl.sh: Use different code for Cygwin.
23225 * tests/test-set-mode-acl.sh: Likewise.
23226 * tests/test-copy-acl.sh: Likewise.
23227 * tests/test-copy-file.sh: Likewise.
23229 2008-06-02 Bruno Haible <bruno@clisp.org>
23231 * tests/test-file-has-acl.sh: Remove unused code.
23233 2008-06-01 Bruno Haible <bruno@clisp.org>
23235 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23236 (copy_acl): Just a wrapper around qcopy_acl that emits the error
23238 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23240 2008-06-01 Bruno Haible <bruno@clisp.org>
23242 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23243 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23244 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23246 * modules/acl-tests (configure.ac): Remove tests now contained in
23249 2008-06-02 Jim Meyering <meyering@redhat.com>
23251 announce-gen: use a better key-server host name
23252 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23253 it may be more consistently reliable. Suggested by Werner Koch
23254 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23256 2008-06-01 Bruno Haible <bruno@clisp.org>
23258 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23259 Reported by Voroskoi Andras <voroskoi@gmail.com>.
23261 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
23263 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23265 2008-06-01 Bruno Haible <bruno@clisp.org>
23268 * tests/test-file-has-acl.sh: New file.
23269 * tests/test-file-has-acl.c: New file.
23270 * tests/test-set-mode-acl.sh: New file.
23271 * tests/test-set-mode-acl.c: New file.
23272 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23273 * tests/test-copy-acl.c: New file.
23274 * modules/acl-tests: New file, based on modules/copy-file-tests.
23275 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23276 (Depends-on): Add acl-tests.
23277 (configure.ac): Remove checks.
23278 (Makefile.am): Don't create test-sameacls program here any more.
23280 2008-06-01 Bruno Haible <bruno@clisp.org>
23282 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23283 * tests/test-sameacls.c: Include progname.h.
23284 (main): Invoke set_program_name. Portability fixes for MacOS X,
23287 2008-06-01 Bruno Haible <bruno@clisp.org>
23289 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23291 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23293 2008-06-01 Bruno Haible <bruno@clisp.org>
23295 * modules/rpmatch (Depends-on): Add strdup.
23297 2008-06-01 Bruno Haible <bruno@clisp.org>
23299 * lib/pipe.c: Include unistd-safer.h.
23300 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23301 * modules/pipe (Depends-on): Add unistd-safer.
23303 2008-05-30 Simon Josefsson <simon@josefsson.org>
23305 * modules/autobuild (configure.ac): Call AB_INIT.
23307 2008-05-30 Simon Josefsson <simon@josefsson.org>
23309 * tests/test-getaddrinfo.c: Don't print debug messages by default.
23310 Suggested by Bruno Haible <bruno@clisp.org>.
23312 2008-05-30 Simon Josefsson <simon@josefsson.org>
23314 * tests/test-base64.c: Cast size_t to unsigned long when invoking
23315 printf. Use %lu instead of %d. Reported by Bruno Haible
23318 2008-05-29 Eric Blake <ebb9@byu.net>
23320 Prefer new POSIX 200x interfaces over futimesat.
23321 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23322 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23324 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23326 2008-05-28 Bruno Haible <bruno@clisp.org>
23328 * modules/stpcpy (License): Change to LGPLv2+.
23329 Requested by David Lutterkort <dlutter@redhat.com>.
23331 2008-05-27 Bruno Haible <bruno@clisp.org>
23333 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23335 Reported by Jose E. Marchesi <jemarch@gnu.org>.
23337 2008-05-27 Bruno Haible <bruno@clisp.org>
23339 * modules/iconv_open (Link): New section, from module 'iconv'.
23340 * modules/striconv (Link): Likewise.
23341 * modules/striconveh (Link): Likewise.
23342 * modules/xstriconv (Link): Likewise.
23343 * modules/unicodeio (Link): Likewise.
23344 * modules/propername (Link): Likewise.
23345 Reported by Jim Meyering.
23347 2008-05-26 Jim Meyering <meyering@redhat.com>
23349 sha256: do not artificially restrict buffer length to be < 2^32
23350 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23351 uint32_t to size_t.
23352 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23355 avoid unaligned access errors, e.g., on sparc
23356 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23357 direct access through a possibly-unaligned uint64* pointer.
23358 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23359 direct access through a possibly-unaligned uint32* pointer.
23360 Prompted by this patch from Tom "spot" Callaway:
23361 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23363 sha512.c: fix typo in comment
23364 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23366 2008-05-25 Bruno Haible <bruno@clisp.org>
23368 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23369 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23370 (Makefile.am): Update lib_SOURCES.
23372 2008-05-25 Bruno Haible <bruno@clisp.org>
23374 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23376 2008-05-25 Jim Meyering <meyering@redhat.com>
23378 useless-if-before-free: freed expr may have white-space differences
23379 * build-aux/useless-if-before-free: Recognize cases in which the
23380 freed expression differs from the tested one in embedded white
23381 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23382 $1 was used, so we can't make any regexp shy. Improved tests now
23385 useless-if-before-free: accept white space in the expression.
23386 * build-aux/useless-if-before-free: For now, any white space
23387 in the expression must be identical in the free argument.
23389 useless-if-before-free: efficiency tweak
23390 * build-aux/useless-if-before-free: Make the expression-matching
23392 Make the *outer* regexp shy, not the expr-matching one.
23394 update code-in-comment to accept cast of free arg
23395 * build-aux/useless-if-before-free: Update regexp.
23397 2008-05-25 Bruno Haible <bruno@clisp.org>
23399 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23400 * modules/copy-file-tests (Files, Makefile.am): Update.
23401 * tests/test-copy-file.c (func_test_copy): Update.
23403 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23405 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23407 2008-05-23 Bruno Haible <bruno@clisp.org>
23409 Improve support for ACLs on OSF/1.
23410 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23411 Remove fallback for unknown flavors of ACLs.
23413 2008-05-22 Bruno Haible <bruno@clisp.org>
23415 Add support for ACLs on OSF/1.
23416 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23418 (acl_free_text): New macro fallback.
23419 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23421 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23422 acl_free_text function. Require AC_C_INLINE.
23424 2008-05-22 Bruno Haible <bruno@clisp.org>
23426 Make copy_acl work on MacOS X 10.5.
23427 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23428 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23429 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23430 If MODE_INSIDE_ACL, don't assume that every system has the same text
23431 representation for ACLs as FreeBSD.
23432 * lib/copy-acl.c (copy_acl): Add support for platforms with
23434 * lib/file-has-acl.c (file_has_acl): Likewise.
23435 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23436 FreeBSD, MacOS X, or IRIX, respectively.
23438 2008-05-22 Bruno Haible <bruno@clisp.org>
23440 * lib/acl.h: Don't include <sys/acl.h>.
23441 (GETACLCNT): Move fallback to lib/acl-internal.h.
23442 * lib/acl-internal.h: Include <sys/acl.h> here.
23443 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23445 2008-05-22 Bruno Haible <bruno@clisp.org>
23447 Split off copy_acl function to separate file.
23448 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23449 * lib/acl.c (copy_acl): Moved function to separate file.
23450 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23451 * modules/acl (Files): Add lib/copy-acl.c.
23452 (Makefiles.am): Augment lib_SOURCES.
23454 2008-05-22 Bruno Haible <bruno@clisp.org>
23456 * modules/copy-file-tests: New file.
23457 * tests/test-copy-file.sh: New file.
23458 * tests/test-copy-file.c: New file.
23459 * tests/test-copy-file-sameacls.c: New file.
23461 2008-05-22 Eric Blake <ebb9@byu.net>
23464 * tests/test-memcmp.c (main): Pass NULL indirectly.
23466 2008-05-21 Bruno Haible <bruno@clisp.org>
23468 Add reference doc about ACLs.
23469 * doc/acl-resources.txt: New file.
23470 * doc/acl-cygwin.txt: New file.
23472 2008-05-21 Bruno Haible <bruno@clisp.org>
23474 Avoid one more warning from gcc.
23475 * lib/vasnprintf.c (IF_LINT): Update comments.
23476 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23478 2008-05-21 Jim Meyering <meyering@redhat.com>
23480 avoid a warning from gcc
23481 * lib/vasnprintf.c (IF_LINT): Define.
23482 (scale10_round_decimal_long_double):
23483 Use it to avoid a "may be used uninitialized" warning.
23484 (scale10_round_decimal_double): Likewise.
23486 2008-05-21 Simon Josefsson <simon@josefsson.org>
23488 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23491 2008-05-20 Bruno Haible <bruno@clisp.org>
23493 * tests/test-memcmp.c (main): Test also the sign of the result. Test
23494 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23496 2008-05-20 Simon Josefsson <simon@josefsson.org>
23498 * modules/memcmp-tests: New file.
23499 * tests/test-memcmp.c: New file.
23501 2008-05-19 Bruno Haible <bruno@clisp.org>
23503 * modules/propername (Notice, configure.ac): Put quoted "..." into
23505 * lib/propername.h: Update comments accordingly.
23506 Reported by Eric Blake.
23508 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23510 * modules/getpass-gnu (Depends-on): Add fseeko.
23512 2008-05-19 Simon Josefsson <simon@josefsson.org>
23514 * modules/base64-tests: New file.
23516 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23518 * lib/base64.c (base64_decode_ctx): If a decode context structure
23519 was passed in use it to ignore newlines. If a context structure
23520 was _not_ passed in, continue to treat newlines as garbage (this
23521 is the historical behavior). Formerly base64_decode.
23522 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23523 takes a decode context structure.
23524 * lib/base64.h (base64_decode): Macro for four-argument calls.
23525 (base64_decode_alloc): Likewise.
23526 * lib/base64.c (base64_decode_ctx): If a decode context structure
23527 was passed in use it to ignore newlines. If a context structure
23528 was _not_ passed in, continue to treat newlines as garbage (this
23529 is the historical behavior). Formerly base64_decode.
23530 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23531 takes a decode context structure.
23532 * lib/base64.h (base64_decode): Macro for four-argument calls.
23533 (base64_decode_alloc): Likewise.
23535 2008-05-19 Jim Meyering <meyering@redhat.com>
23537 avoid a warning from gcc
23538 * lib/trim.c (IF_LINT): Define.
23539 (trim2): Use it to avoid a "may be used uninitialized" warning.
23542 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23544 2008-05-19 Bruno Haible <bruno@clisp.org>
23546 * doc/glibc-functions/getpass.texi: Document limits of other
23549 2008-05-19 Simon Josefsson <simon@josefsson.org>
23550 Bruno Haible <bruno@clisp.org>
23552 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23554 2008-05-18 Bruno Haible <bruno@clisp.org>
23556 * modules/propername: New file, from GNU gettext.
23557 * lib/propername.h: New file, from GNU gettext.
23558 * lib/propername.c: New file, from GNU gettext.
23559 * MODULES.html.sh (Internationalization functions): Add propername.
23561 2008-05-16 Jim Meyering <meyering@redhat.com>
23562 Bruno Haible <bruno@clisp.org>
23564 Avoid some warnings from "gcc -Wshadow".
23565 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23567 2008-05-15 Eric Blake <ebb9@byu.net>
23569 Extend previous patch to cygwin 1.7.0.
23570 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23571 fast implementation in cygwin >= 1.7.0.
23572 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23573 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23575 2008-05-15 Bruno Haible <bruno@clisp.org>
23577 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23578 implementation in glibc >= 2.9.
23579 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23580 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23582 2008-05-15 Bruno Haible <bruno@clisp.org>
23584 * MODULES.html.sh (Internationalization functions): Remove linebreak.
23585 (Unicode string functions): Add unilbrk/*.
23586 Reported by Karl Berry.
23588 2008-05-15 Eric Blake <ebb9@byu.net>
23590 Fix violation of <stdbool.h> replacement in regex.
23591 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23592 * lib/regexec.c (re_search_internal): Likewise.
23593 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23595 2008-05-15 Jim Meyering <meyering@redhat.com>
23597 avoid distracting test output when git or cvs is not found
23598 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23599 * tests/test-vc-list-files-git.sh: Likewise.
23601 2008-05-15 Eric Blake <ebb9@byu.net>
23603 Glibc finally accepted the memmem speedup code, bugzilla #5514.
23604 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23606 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23607 * doc/posix-functions/strstr.texi (strstr): Likewise.
23608 * lib/str-two-way.h (MAX): Sychronize with glibc.
23610 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
23612 * lib/regcomp.c (optimize_utf8): Add a note on why we test
23614 (calc_first): Initialize constraint field.
23615 (duplicate_node_closure): Use it instead of special casing ANCHORS.
23617 (duplicate_node): Merge constraint field for all node types.
23618 (calc_eclosure_iter): Look at constraint field for all node types.
23619 * lib/regex_internal.c (create_cd_newstate): Don't look at
23622 2008-05-14 Bruno Haible <bruno@clisp.org>
23624 Help GCC to do better code generation.
23625 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23626 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23627 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23628 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23629 Declare with attribute 'malloc' if supported.
23631 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
23633 use "echo STR|wc -c" rather than unportable "expr length STR"
23634 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23635 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23637 2008-05-14 Jim Meyering <meyering@redhat.com>
23639 use dd ibs=$n count=1 ... rather than less-portable head -c$n
23640 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23641 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23642 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23645 2008-05-14 Eric Blake <ebb9@byu.net>
23647 Avoid quadratic growth in gl_LIBSOURCES.
23648 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23649 Suggested by Bruno Haible.
23652 * modules/xmemdup0-tests: New file.
23653 * tests/test-xmemdup0.c: Likewise.
23655 2008-05-13 Eric Blake <ebb9@byu.net>
23657 Split xmemdup0 into its own module.
23658 * modules/xmemdup0: New file.
23659 * lib/xmemdup0.h: Likewise.
23660 * lib/xmemdup0.c: Likewise.
23661 * MODULES.html.sh (Memory management functions): Add xmemdup0.
23662 * lib/xalloc.h (xmemdup0): Remove.
23663 * lib/xmalloc.c (xmemdup0): Likewise.
23665 2008-05-13 Eric Blake <ebb9@byu.net>
23666 Bruno Haible <bruno@clisp.org>
23668 Reduce number of forks required during autoconf.
23669 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23670 and gl_LIBSOURCES_DIR.
23671 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23672 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23673 m4_syscmd per file.
23674 <m4_foreach_w>: Move...
23675 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23677 2008-05-13 Eric Blake <ebb9@byu.net>
23679 * gnulib-tool: Fix various comment typos.
23681 2008-05-12 Bruno Haible <bruno@clisp.org>
23683 Tailor the linebreaking algorithm.
23684 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23686 2008-05-12 Bruno Haible <bruno@clisp.org>
23688 Update to Unicode 5.0.0.
23689 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23690 LBP_JV, LBP_JT. Redistribute values.
23691 (unilbrk_table): Change size.
23692 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23693 Unicode TR#14 rev. 22.
23694 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23695 LBP_JV, LBP_JT. Redistribute values.
23696 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23697 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23699 * lib/unilbrk/lbrkprop1.h: Regenerated.
23700 * lib/unilbrk/lbrkprop2.h: Regenerated.
23701 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23702 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23703 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23705 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23707 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23709 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23710 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23711 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23712 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23713 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23714 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23716 2008-05-11 Bruno Haible <bruno@clisp.org>
23718 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23720 2008-05-11 Bruno Haible <bruno@clisp.org>
23722 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23723 * modules/unilbrk/gen-lbrk: New file.
23725 2008-05-11 Bruno Haible <bruno@clisp.org>
23727 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23728 * m4/sha512.m4 (gl_SHA512): Likewise.
23730 2008-05-11 Jim Meyering <meyering@redhat.com>
23732 New modules: crypto/sha256, crypto/sha512 (from coreutils)
23733 * modules/crypto/sha256: New file.
23734 * modules/crypto/sha512: Likewise.
23735 * lib/sha256.c: Likewise.
23736 * lib/sha256.h: Likewise.
23737 * lib/sha512.c: Likewise.
23738 * lib/sha512.h: Likewise.
23739 * lib/u64.h: Likewise.
23740 * m4/sha256.m4: Likewise.
23741 * m4/sha512.m4: Likewise.
23742 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23744 2008-05-10 Bruno Haible <bruno@clisp.org>
23746 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23747 (Input/Output <stdio.h>): Add xprintf.
23748 (Signal handling <signal.h>): Add strsignal.
23749 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23750 (Core language properties): Add func.
23751 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23752 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23754 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23755 (Input/output): New section.
23756 (File system functions): Add openat-die, stat-macros.
23757 (Networking functions): Add sockets.
23758 (Unicode string functions): Add unictype/*.
23759 (Support for building libraries and executables): Add gperf.
23760 (Support for building documentation): Add agpl-3.0.
23761 (Misc): Add nocrash.
23763 2008-05-10 Bruno Haible <bruno@clisp.org>
23765 * modules/unictype/gen-ctype: New file.
23767 2008-05-10 Jim Meyering <meyering@redhat.com>
23769 Make chdir-safer.c more efficient on a system with no symlinks.
23770 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23771 also if ELOOP is zero. Suggested by Bruno Haible.
23773 Make chdir-safer.c slightly safer.
23774 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23775 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23777 Avoid compile failure on systems without ELOOP (like mingw).
23778 * lib/chdir-safer.c (ELOOP): Define if not already defined.
23779 Reported by Bruno Haible.
23781 2008-05-10 Bruno Haible <bruno@clisp.org>
23783 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23784 (is_utf8_encoding): Use a case-insensitive comparison.
23785 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23788 2008-05-10 Bruno Haible <bruno@clisp.org>
23790 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23791 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23792 * lib/unilbrk/ulc-common.h (iconv_string_length,
23793 iconv_string_keeping_offsets): Remove declarations.
23794 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23795 Don't include <iconv.h>, streq.h, xsize.h.
23796 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23798 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23799 <iconv.h>, streq.h, xsize.h.
23800 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23802 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23803 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23804 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23805 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23807 2008-05-10 Bruno Haible <bruno@clisp.org>
23809 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23810 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23812 * modules/unilbrk/u32-width-linebreaks-tests: New file.
23813 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23815 * modules/unilbrk/u16-width-linebreaks-tests: New file.
23816 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23818 * modules/unilbrk/u8-width-linebreaks-tests: New file.
23819 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23821 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23822 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23824 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23825 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23827 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23828 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23830 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23831 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23833 2008-05-10 Bruno Haible <bruno@clisp.org>
23835 Split up 'linebreak' module.
23836 * lib/unilbrk.h: New file, based on lib/linebreak.h.
23837 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23838 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23840 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23841 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23842 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23844 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23846 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23848 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23849 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23850 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23852 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23854 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23856 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23858 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23860 * modules/unilbrk/base: New file.
23861 * modules/unilbrk/tables: New file.
23862 * modules/unilbrk/u8-possible-linebreaks: New file.
23863 * modules/unilbrk/u16-possible-linebreaks: New file.
23864 * modules/unilbrk/u32-possible-linebreaks: New file.
23865 * modules/unilbrk/ulc-common: New file.
23866 * modules/unilbrk/ulc-possible-linebreaks: New file.
23867 * modules/unilbrk/u8-width-linebreaks: New file.
23868 * modules/unilbrk/u16-width-linebreaks: New file.
23869 * modules/unilbrk/u32-width-linebreaks: New file.
23870 * modules/unilbrk/ulc-width-linebreaks: New file.
23871 * lib/linebreak.h: Remove file.
23872 * lib/linebreak.c: Remove file.
23873 * m4/linebreak.m4: Remove file.
23874 * modules/linebreak: Remove file.
23875 * NEWS: Mention the changes.
23877 2008-05-09 Eric Blake <ebb9@byu.net>
23880 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23882 * lib/xmalloc.c (xmemdup0): New C implementation.
23884 2008-05-08 Bruno Haible <bruno@clisp.org>
23886 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23888 2008-05-07 Eric Blake <ebb9@byu.net>
23890 Support cross-compilation of <wctype.h>.
23891 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23894 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23896 * build-aux/vc-list-files: Add support for bzr.
23898 2008-05-03 Jim Meyering <meyering@redhat.com>
23900 avoid failed assertion with tight malloc
23901 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23903 2008-05-03 Simon Josefsson <simon@josefsson.org>
23905 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23906 are needed from arpa/inet.h.
23907 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23908 Reported by Bruno Haible.
23910 2008-05-02 Jim Meyering <meyering@redhat.com>
23912 avoid compilation error on FreeBSD 6
23913 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23915 2008-05-01 Jim Meyering <meyering@redhat.com>
23917 useless-if-before-free: correct --help's exit status description
23918 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23919 for one or more matches, etc. Reported by Bruno Haible.
23921 vc-list-files: make the stand-alone gnulib test work
23922 * modules/vc-list-files-tests (configure.ac):
23923 Define and AC_SUBST abs_aux_dir.
23924 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23925 $(abs_top_srcdir) to each script and having each of them
23926 duplicate the work of setting PATH, set PATH here, using
23927 the new variable, abs_aux_dir instead.
23928 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23929 * tests/test-vc-list-files-git.sh: Likewise.
23930 Reported by Bruno Haible.
23932 2008-05-01 Bruno Haible <bruno@clisp.org>
23934 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23935 reallocation. Rename 'done' to 'found_delimiter'.
23937 2008-05-01 Jim Meyering <meyering@redhat.com>
23939 vc-list-files: accommodate /bin/sh like the one from Solaris 10
23940 * build-aux/vc-list-files: Use `...`, not $(...).
23942 2008-04-30 Jim Meyering <meyering@redhat.com>
23944 add tests for vc-list-files
23945 * modules/vc-list-files-tests: New module.
23946 * tests/test-vc-list-files-cvs.sh: New file.
23947 * tests/test-vc-list-files-git.sh: New file.
23949 avoid a warning from gcc
23950 * lib/getndelim2.c (IF_LINT): Define.
23951 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23953 vc-list-files: work properly with build-aux/cvsu, too
23954 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23955 to all cvs-based clauses.
23957 vc-list-files: work properly in the CVS+awk case, too
23958 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23960 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23961 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23962 take more than one file argument, so . Add quotes, just in case $dir
23963 ever contains a shell meta-character. Prompted by Soren Hansen in
23964 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23966 2008-04-29 Eric Blake <ebb9@byu.net>
23968 Optimize getndelim2 to use block operations when possible.
23969 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23970 freadseek, and memchr2.
23971 * lib/getndelim2.c (getndelim2): Use them for block reads.
23973 2008-04-29 Bruno Haible <bruno@clisp.org>
23975 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23976 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23977 * modules/inet_ntop (Depends-on): Add extensions.
23978 * modules/inet_pton (Depends-on): Likewise.
23979 Reported by Simon Josefsson.
23981 2008-04-29 Jim Meyering <meyering@redhat.com>
23983 When the is more than one match in a block, match all of them.
23984 * build-aux/useless-if-before-free: Iterate through each block
23985 until there are no more matches.
23987 Fix broken useless-if-before-free script.
23988 * build-aux/useless-if-before-free: Fix typo: missing "?" after
23989 the expression to match cast of argument to free-like function.
23991 2008-04-29 Eric Blake <ebb9@byu.net>
23994 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23996 2008-04-29 Jim Meyering <meyering@redhat.com>
23998 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23999 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24000 by gnulib to exist and to declare e.g., inet_ntop.
24001 Don't include "inet_ntop.h", now removed.
24003 * m4/arpa_inet_h.m4: Remove trailing blanks.
24005 2008-04-29 Eric Blake <ebb9@byu.net>
24007 Silence valgrind on safe reads beyond potential array bounds.
24008 * lib/rawmemchr.valgrind: New file.
24009 * lib/strchrnul.valgrind: Likewise.
24010 * modules/rawmemchr (Files): Distribute new file.
24011 * modules/strchrnul (Files): Likewise.
24012 Suggested by Bruno Haible.
24014 2008-04-29 Bruno Haible <bruno@clisp.org>
24016 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24017 (inet_ntop, inet_pton): Change portability warning's wording.
24018 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24019 Invoke gl_CHECK_NEXT_HEADERS.
24020 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24021 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24023 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24024 * modules/arpa_inet (Description): No longer only for systems that
24026 (Depends-on): Add include_next.
24027 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24030 2008-04-29 Jim Meyering <meyering@redhat.com>
24032 * modules/mkdir (License): Re-license as LGPLv2+.
24034 2008-04-29 Bruno Haible <bruno@clisp.org>
24036 * modules/rawmemchr (Maintainer): Set to Eric.
24037 * modules/strchrnul (Maintainer): Likewise.
24039 2008-04-29 Simon Josefsson <simon@josefsson.org>
24041 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24042 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24044 * modules/arpa_inet (arpa/inet.h): Use them.
24046 2008-04-28 Eric Blake <ebb9@byu.net>
24049 * modules/getndelim2-tests: New file.
24050 * tests/test-getndelim2.c: Likewise.
24051 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
24053 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24055 * MODULES.html.sh: Document new module.
24057 2008-04-20 Bruno Haible <bruno@clisp.org>
24059 * lib/c-stack.c (die): Use raise.
24060 * modules/c-stack (Depends-on): Add raise.
24062 2008-04-28 Bruno Haible <bruno@clisp.org>
24064 Expect rpmatch to be declared.
24065 * lib/yesno.c (rpmatch): Remove declaration.
24068 * lib/stdlib.in.h (rpmatch): New declaration.
24069 * lib/rpmatch.c: Include <stdlib.h> first.
24070 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24071 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24072 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24074 * modules/rpmatch (Depends-on): Add stdlib, extensions.
24075 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24076 (Include): Set to <stdlib.h>.
24077 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24079 * NEWS: Document the change.
24081 2008-04-28 Bruno Haible <bruno@clisp.org>
24083 Change rpmatch to use nl_langinfo when appropriate.
24084 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24086 (localized_pattern): New function/macro.
24087 (try): Remove match, nomatch arguments. Copy the pattern into safe
24088 memory before caching it.
24089 (rpmatch): Use localized_pattern. Add translator comments.
24090 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24091 Suggested by Eric Blake.
24092 * modules/rpmatch (Depends-on): Add stdbool.
24094 2008-04-28 Eric Blake <ebb9@byu.net>
24096 Add rawmemchr module, matching glibc.
24097 * modules/string (Makefile.am): New indicator.
24098 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24099 * lib/string.in.h (rawmemchr): Declare when appropriate.
24100 * modules/rawmemchr: New file.
24101 * m4/rawmemchr.m4: Likewise.
24102 * lib/rawmemchr.c: Likewise.
24103 * modules/rawmemchr-tests: Likewise.
24104 * tests/test-rawmemchr.c: Likewise.
24105 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24107 * modules/strchrnul (Depends-on): Add rawmemchr.
24108 * lib/strchrnul.c (strchrnul): Optimize a corner case.
24110 Whitespace cleanup.
24111 * tests/test-strchrnul.c: Reindent.
24112 * lib/strchrnul.c: Likewise.
24114 Optimize and test strchrnul.
24115 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24116 * modules/strchrnul-tests: New file.
24117 * tests/test-strchrnul.c: Likewise.
24119 Remove intprops dependency.
24120 * modules/memchr (Depends-on): Remove intprops.
24121 * modules/memrchr (Depends-on): Likewise.
24122 * modules/memchr2 (Depends-on): Likewise.
24123 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24124 * lib/memrchr.c (__memrchr): Likewise.
24125 * lib/memrchr2.c (memchr2): Likewise.
24126 Reported by Simon Josefsson.
24128 2008-04-28 Simon Josefsson <simon@josefsson.org>
24130 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24131 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24133 2008-04-28 Simon Josefsson <simon@josefsson.org>
24135 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24137 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24139 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24141 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24143 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24145 * m4/inet_pton.m4: Don't check for header files.
24147 * m4/inet_ntop.m4: Don't check for header files.
24149 2008-04-28 Simon Josefsson <simon@josefsson.org>
24151 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24152 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24153 trigger for cygwin).
24154 Reported by Bruno Haible <bruno@clisp.org>.
24156 2008-04-28 Bruno Haible <bruno@clisp.org>
24158 * doc/posix-functions/strdup.texi: Mention mingw problem.
24160 2008-04-27 Bruno Haible <bruno@clisp.org>
24162 * modules/stat-time-tests (Depends-on): Add sleep.
24163 * tests/test-stat-time.c (force_unlink): New function.
24165 (test_mtime): Remove the ctime related tests.
24166 (test_ctime): New function, containing the ctime related tests.
24167 (main): Call test_ctime, except on native Windows platforms.
24169 2008-04-27 Bruno Haible <bruno@clisp.org>
24171 * lib/rpmatch.c (rpmatch): Add some comments.
24172 Reported by James Youngman <jay@gnu.org>.
24174 2008-04-27 Bruno Haible <bruno@clisp.org>
24176 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24179 2008-04-27 Bruno Haible <bruno@clisp.org>
24181 Make test-yesno.sh work on mingw.
24182 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24183 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24184 (main): Set stdin to binary mode.
24185 * modules/yesno-tests (Depends-on): Add binary-io.
24187 2008-04-27 Bruno Haible <bruno@clisp.org>
24189 Fix 'isfinite' on x86, x86_64, ia64 platforms.
24190 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24191 argument that lie outside the IEEE 854 domain.
24192 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24193 (gl_ISFINITE): Use it.
24194 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24196 2008-04-27 Bruno Haible <bruno@clisp.org>
24198 Allow local renaming in config.h.
24199 * lib/memrchr.c (memrchr): Don't undefine outside libc.
24201 2008-04-27 Bruno Haible <bruno@clisp.org>
24203 * lib/memchr.c (__memchr): Change type of 'i'.
24204 * lib/memchr2.c (memchr2): Likewise.
24206 2008-04-26 Eric Blake <ebb9@byu.net>
24207 and Bruno Haible <bruno@clisp.org>
24209 Optimize and test memrchr.
24210 * modules/memrchr (Depends-on): Add intprops.
24211 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24212 * modules/memrchr-tests: New file.
24213 * tests/test-memrchr.c: New file.
24215 2008-04-26 Bruno Haible <bruno@clisp.org>
24217 Add tentative support for DragonFly BSD.
24218 * lib/stdio-impl.h: Add macros for DragonFly BSD.
24219 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24221 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24222 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24223 * lib/fpurge.c (fpurge): Likewise.
24224 * lib/freadable.c (freaadable): Likewise.
24225 * lib/freadahead.c (freadahead): Likewise.
24226 * lib/freading.c (freading): Likewise.
24227 * lib/freadptr.c (freadptr): Likewise.
24228 * lib/freadseek.c (freadptrinc): Likewise.
24229 * lib/fseeko.c (fseeko): Likewise.
24230 * lib/fseterr.c (fseterr): Likewise.
24231 * lib/fwritable.c (fwritable): Likewise.
24232 * lib/fwriting.c (fwriting): Likewise.
24234 2008-04-26 Bruno Haible <bruno@clisp.org>
24236 * lib/stdio-impl.h: New file.
24237 * lib/fbufmode.c: Include stdio-impl.h.
24238 (fbufmode): Use fp_, remove redundant #defines.
24239 * lib/fflush.c: Include stdio-impl.h.
24240 (clear_ungetc_buffer): Remove redundant #defines.
24241 * lib/fpurge.c: Include stdio-impl.h.
24242 (fpurge): Remove redundant #defines.
24243 * lib/freadable.c: Include stdio-impl.h.
24244 (freadable): Remove redundant #defines.
24245 * lib/freadahead.c: Include stdio-impl.h.
24246 (freadahead): Remove redundant #defines.
24247 * lib/freading.c: Include stdio-impl.h.
24248 (freading): Remove redundant #defines.
24249 * lib/freadptr.c: Include stdio-impl.h.
24250 (freadptr): Remove redundant #defines.
24251 * lib/freadseek.c: Include stdio-impl.h.
24252 (freadptrinc): Remove redundant #defines.
24253 * lib/fseeko.c: Include stdio-impl.h.
24254 (rpl_fseeko): Remove redundant #defines.
24255 * lib/fseterr.c: Include stdio-impl.h.
24256 (fseterr): Remove redundant #defines.
24257 * lib/fwritable.c: Include stdio-impl.h.
24258 (fwritable: Remove redundant #defines.
24259 * lib/fwriting.c: Include stdio-impl.h.
24260 (fwriting): Remove redundant #defines.
24261 * modules/fbufmode (Files): Add lib/stdio-impl.h.
24262 * modules/fflush (Files): Likewise.
24263 * modules/fpurge (Files): Likewise.
24264 * modules/freadable (Files): Likewise.
24265 * modules/freadahead (Files): Likewise.
24266 * modules/freading (Files): Likewise.
24267 * modules/freadptr (Files): Likewise.
24268 * modules/freadseek (Files): Likewise.
24269 * modules/fseeko (Files): Likewise.
24270 * modules/fseterr (Files): Likewise.
24271 * modules/fwritable (Files): Likewise.
24272 * modules/fwriting (Files): Likewise.
24274 2008-04-26 Bruno Haible <bruno@clisp.org>
24276 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24277 restore_seek_optimization, update_fpos_cache): New functions, extracted
24279 (rpl_fflush): Use them.
24280 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24281 (gl_REPLACE_FFLUSH): Use it.
24283 2008-04-26 Bruno Haible <bruno@clisp.org>
24285 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24287 * tests/test-xstrtoimax.sh: Likewise.
24288 * tests/test-xstrtoumax.sh: Likewise.
24289 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24291 2008-04-26 Bruno Haible <bruno@clisp.org>
24293 * modules/memchr-tests: New file.
24294 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24296 2008-04-26 Eric Blake <ebb9@byu.net>
24297 Bruno Haible <bruno@clisp.org>
24299 * lib/memchr.c: Include intprops.h.
24300 (__memchr): Optimize parallel detection of matching bytes. Rename local
24301 variables. Add explanatory comments.
24303 2008-04-26 Bruno Haible <bruno@clisp.org>
24305 Fix module 'memchr', broken since 2000-10-28.
24306 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24308 2008-04-26 Bruno Haible <bruno@clisp.org>
24310 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24313 2008-04-25 Eric Blake <ebb9@byu.net>
24315 Use native fstatat on cygwin 1.7.0.
24316 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24319 2008-04-23 Eric Blake <ebb9@byu.net>
24321 Improve memchr2 performance.
24322 * lib/memchr2.c (memchr2): Further optimize parallel detection of
24324 * modules/memchr2 (Depends-on): Use intprops.h.
24326 2008-04-23 Simon Josefsson <simon@josefsson.org>
24328 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24329 an inline function instead of a CPP macro. Patch by Ben Pfaff
24330 <blp@cs.stanford.edu>.
24332 2008-04-23 Simon Josefsson <simon@josefsson.org>
24334 * lib/arpa_inet.in.h: New file.
24336 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24337 (Makefile.am): Sed in substitute header file.
24339 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24340 gl_ARPA_INET_MODULE_INDICATOR. Use them.
24342 * modules/inet_ntop (configure.ac): Use
24343 gl_ARPA_INET_MODULE_INDICATOR.
24345 * modules/inet_pton (configure.ac): Use
24346 gl_ARPA_INET_MODULE_INDICATOR.
24348 2008-04-22 Jim Meyering <meyering@redhat.com>
24350 * modules/verify (License): Re-license as LGPLv2+.
24352 2008-04-22 Simon Josefsson <simon@josefsson.org>
24354 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24355 parameter to void* as per POSIX standard (MinGW uses char*).
24357 2008-04-21 Bruno Haible <bruno@clisp.org>
24359 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24360 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24361 Define to replacements if REPLACE_ISWCNTRL is 1.
24362 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24363 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24364 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24365 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24367 * doc/posix-functions/iswalpha.texi: Likewise.
24368 * doc/posix-functions/iswblank.texi: Likewise.
24369 * doc/posix-functions/iswcntrl.texi: Likewise.
24370 * doc/posix-functions/iswdigit.texi: Likewise.
24371 * doc/posix-functions/iswgraph.texi: Likewise.
24372 * doc/posix-functions/iswlower.texi: Likewise.
24373 * doc/posix-functions/iswprint.texi: Likewise.
24374 * doc/posix-functions/iswpunct.texi: Likewise.
24375 * doc/posix-functions/iswspace.texi: Likewise.
24376 * doc/posix-functions/iswupper.texi: Likewise.
24377 * doc/posix-functions/iswxdigit.texi: Likewise.
24378 Reported by Alain Guibert.
24380 2008-04-21 Bruno Haible <bruno@clisp.org>
24382 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24383 Patch by Alain Guibert.
24385 2008-04-21 Bruno Haible <bruno@clisp.org>
24387 Fix test failures on mingw.
24388 * tests/test-xstrtol.c (print_no_progname): New function.
24389 (main): Install it in error_print_progname hook.
24390 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24391 * tests/test-xstrtoimax.sh: Likewise.
24392 * tests/test-xstrtoumax.sh: Likewise.
24394 2008-04-21 Bruno Haible <bruno@clisp.org>
24396 Fix test failure on mingw.
24397 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24399 2008-04-21 Bruno Haible <bruno@clisp.org>
24401 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24402 Actually assign a value.
24404 2008-04-20 Bruno Haible <bruno@clisp.org>
24406 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24408 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24409 'canonicalize-lgpl' module is also used.
24410 * lib/canonicalize-lgpl.c: Undo last change.
24411 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24413 2008-04-20 Bruno Haible <bruno@clisp.org>
24415 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24416 config.h. Provide _mkdir based fallback for mingw.
24417 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24418 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24419 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24420 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24421 rather than defining mkdir in config.h.
24422 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24423 (gl_SYS_STAT_H_DEFAULTS): New macro.
24424 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24425 HAVE_IO_H any more.
24426 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24427 HAVE_DECL_MKDIR and HAVE_IO_H.
24429 2008-04-20 Bruno Haible <bruno@clisp.org>
24431 * lib/isapipe.c: Port to native Windows platforms.
24433 2008-04-20 Bruno Haible <bruno@clisp.org>
24435 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24437 2008-04-21 Eric Blake <ebb9@byu.net>
24439 Work around preprocessors that don't handle UINTMAX_MAX.
24440 * lib/memchr2.c (memchr2): Avoid embedded #if.
24441 Reported by Alain Guibert, fix suggested by Bruno Haible.
24443 2008-04-21 Simon Josefsson <simon@josefsson.org>
24445 * doc/posix-functions/strftime.texi (strftime): Explain better
24446 Windows incompatibility. Suggested by Micah Cowan
24447 <micah@cowan.name>.
24449 2008-04-20 Bruno Haible <bruno@clisp.org>
24451 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24454 2008-04-20 Bruno Haible <bruno@clisp.org>
24456 Fix test failure on platforms with non-GNU iconv.
24457 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24458 (U_TO_U8): Use it, rather than u16_to_u8.
24459 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24460 units at the end of the input string.
24461 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24463 2008-04-20 Bruno Haible <bruno@clisp.org>
24465 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24466 when the resulting length is 0.
24467 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24469 2008-04-20 Bruno Haible <bruno@clisp.org>
24471 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24473 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24475 2008-04-20 Bruno Haible <bruno@clisp.org>
24477 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24478 * modules/tsearch-tests (configure.ac): Test for initstate function.
24480 2008-04-20 Bruno Haible <bruno@clisp.org>
24482 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24483 for nlink_t if missing.
24484 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24486 2008-04-19 Bruno Haible <bruno@clisp.org>
24488 Work around snprintf bug on Linux libc5.
24489 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24490 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24492 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24493 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24495 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24496 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24497 * modules/snprintf (Files): Add m4/printf.m4.
24498 * modules/vsnprintf (Files): Likewise.
24499 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24500 * doc/posix-functions/vsnprintf.texi: Likewise.
24502 2008-04-19 Bruno Haible <bruno@clisp.org>
24504 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24505 from 0.0058 to less than 10^-7.
24507 2008-04-19 Bruno Haible <bruno@clisp.org>
24509 Fix rounding when a precision is given.
24510 * lib/vasnprintf.c (is_borderline): New function.
24511 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24513 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24515 * tests/test-vasprintf-posix.c (test_function): Likewise.
24516 * tests/test-snprintf-posix.h (test_function): Likewise.
24517 * tests/test-sprintf-posix.h (test_function): Likewise.
24518 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24519 * tests/test-printf-posix.h (test_function): Likewise.
24520 * tests/test-printf-posix.output: Update.
24521 Reported by John Darrington <john@darrington.wattle.id.au> via
24522 Ben Pfaff <blp@cs.stanford.edu>.
24524 2008-04-18 Simon Josefsson <simon@josefsson.org>
24526 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24527 Suggested by Bruno Haible <bruno@clisp.org>.
24529 2008-04-17 Bruno Haible <bruno@clisp.org>
24531 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24532 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24534 Patch by Bruce Merry <bmerry@gmail.com>.
24536 2008-04-17 Simon Josefsson <simon@josefsson.org>
24538 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24539 doesn't work under Windows.
24541 2008-04-16 Bruno Haible <bruno@clisp.org>
24543 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24545 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24546 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24547 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24548 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24549 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24550 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24551 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24553 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24554 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24555 Northern Sotho, Uighur.
24557 2008-04-16 Bruno Haible <bruno@clisp.org>
24559 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24560 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24561 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24562 Reported by Daniel Bergström <daniel@octocode.com>.
24564 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24565 Bruno Haible <bruno@clisp.org>
24567 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24569 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24570 New functions, mostly extracted from gl_locale_name_default.
24571 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24573 2008-04-16 Eric Blake <ebb9@byu.net>
24575 Adjust strtod detection to catch glibc 2.7 bug.
24576 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24577 Reported by John Gatewood Ham.
24579 2008-04-16 Bruno Haible <bruno@clisp.org>
24581 Add tentative support for Linux libc5.
24582 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24583 * lib/fpurge.c (fpurge): Likewise.
24584 * lib/freadable.c (freadable): Likewise.
24585 * lib/freadahead.c (freadahead): Likewise.
24586 * lib/freading.c (freading): Likewise.
24587 * lib/freadptr.c (freadptr): Likewise.
24588 * lib/freadseek.c (freadptrinc): Likewise.
24589 * lib/fseeko.c (rpl_fseeko): Likewise.
24590 * lib/fseterr.c (fseterr): Likewise.
24591 * lib/fwritable.c (fwritable): Likewise.
24592 * lib/fwriting.c (fwriting): Likewise.
24593 Reported by Alain Guibert <alguibert+bts@free.fr>.
24595 2008-04-15 Bruno Haible <bruno@clisp.org>
24597 * modules/mathl (configure.ac): Define module indicator.
24599 2008-04-15 Bruno Haible <bruno@clisp.org>
24601 * lib/logl.c (logl): Remove unused variables.
24603 2008-04-15 Bruno Haible <bruno@clisp.org>
24605 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24608 2008-04-15 Bruno Haible <bruno@clisp.org>
24610 * lib/trim.c (trim2): Fix argument of isspace() macro.
24612 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
24614 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24616 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24618 2008-04-14 Bruno Haible <bruno@clisp.org>
24620 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24621 AC_LANG_PROGRAM argument.
24622 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24623 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24624 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24625 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24626 * m4/math_h.m4 (gl_MATH_H): Likewise.
24627 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24628 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24629 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24630 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24631 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24632 * m4/regex.m4 (gl_REGEX): Likewise.
24633 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24634 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24635 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24636 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24637 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24638 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24639 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24640 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24642 2008-04-14 Jim Meyering <meyering@redhat.com>
24644 test-strtod: fix typos: s/abs/fabs/
24645 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24647 2008-04-13 Bruno Haible <bruno@clisp.org>
24649 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24650 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24651 module is also used and while not building the reloc-wrapper.
24653 2008-04-13 Bruno Haible <bruno@clisp.org>
24655 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24657 2008-04-13 Bruno Haible <bruno@clisp.org>
24659 Fix AIX compilation failure introduced on 2008-04-02.
24660 * tests/test-frexp.c (exp): Undefine before redefining.
24661 * tests/test-frexpl.c (exp): Likewise.
24663 2008-04-13 Bruno Haible <bruno@clisp.org>
24665 Work around a HP-UX stdio bug.
24666 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24667 * tests/test-ftello.c (main): Likewise.
24668 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24669 * doc/posix-functions/ftello.texi: Likewise.
24671 2008-04-13 Bruno Haible <bruno@clisp.org>
24673 Make test-signbit pass on HP-UX/hppa.
24674 * tests/test-signbit.c (minus_zerol): New variable.
24675 (test_signbitl): Use it.
24677 2008-04-13 Bruno Haible <bruno@clisp.org>
24679 Make truncl work on OSF/1 4.0.
24680 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24681 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24682 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24683 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24685 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24687 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24689 2008-04-13 Bruno Haible <bruno@clisp.org>
24691 * lib/unictype.h: Remove trailing comma from enumeration definitions.
24693 2008-04-13 Bruno Haible <bruno@clisp.org>
24695 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24696 expression, so as to avoid HP-UX 11 cc compiler bug.
24698 2008-04-13 Bruno Haible <bruno@clisp.org>
24700 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24702 2008-04-13 Bruno Haible <bruno@clisp.org>
24704 * lib/git-merge-changelog.c: Remove empty declaration outside of
24707 2008-04-13 Bruno Haible <bruno@clisp.org>
24709 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24711 2008-04-13 Bruno Haible <bruno@clisp.org>
24713 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24714 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24715 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24716 also if it exists but lacks definitions of the SHUT_* macros.
24717 * modules/sys_socket (Description): Update.
24718 Reported by Elbert Pol <e.pol@chello.nl>.
24720 2008-04-13 Bruno Haible <bruno@clisp.org>
24722 * lib/localcharset.c (OS2): Don't redefine if already defined.
24723 Reported by Elbert Pol <e.pol@chello.nl>.
24725 2008-04-13 Bruno Haible <bruno@clisp.org>
24727 * lib/binary-io.h [__EMX__]: Include <io.h>.
24728 Reported by Elbert Pol <e.pol@chello.nl>.
24730 2008-04-12 Bruno Haible <bruno@clisp.org>
24732 * lib/fpucw.h: Enable the definitions also for x86_64.
24733 Needed for NetBSD/x86_64.
24734 Reported by Thomas Klausner <tk@giga.or.at>.
24736 2008-04-12 Bruno Haible <bruno@clisp.org>
24738 * tests/test-strtod.c: Include isnand.h.
24739 (main): Use isnand instead of isnan.
24740 Reported by Jim Meyering.
24742 2008-04-12 Bruno Haible <bruno@clisp.org>
24744 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24745 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24747 2008-04-12 Jim Meyering <meyering@redhat.com>
24749 * m4/math_h.m4 (gl_MATH_H): Fix typos.
24751 2008-04-12 Bruno Haible <bruno@clisp.org>
24753 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24754 Reported by Elbert Pol <e.pol@chello.nl>.
24756 2008-04-12 Eric Blake <ebb9@byu.net>
24758 Work around Solaris 10 math.h bug.
24759 * m4/math_h.m4 (gl_MATH_H): Check for bug.
24760 (gl_MATH_H_DEFAULTS): Set up default.
24761 * modules/math (Makefile.am): Replace new indicators.
24762 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24763 * tests/test-math.c (main): Test this.
24764 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24765 * doc/posix-headers/math.texi (math.h): Mention bug.
24766 Reported by Nelson H. F. Beebe and Jim Meyering.
24768 2008-04-11 Bruno Haible <bruno@clisp.org>
24770 Adapt to future versions of Apple GCC.
24771 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24772 Reported by Peter O'Gorman <peter@pogma.com>.
24774 2008-04-11 Bruno Haible <bruno@clisp.org>
24776 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24778 2008-04-11 Bruno Haible <bruno@clisp.org>
24780 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24782 * modules/getaddrinfo-tests (Makefile.am): Define
24783 test_getaddrinfo_LDADD.
24785 2008-04-11 Bruno Haible <bruno@clisp.org>
24787 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24788 (init): Fix syntax error.
24789 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24792 2008-04-11 Bruno Haible <bruno@clisp.org>
24794 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24795 * modules/glob (Depends-on): Add stdbool.
24797 2008-04-11 Bruno Haible <bruno@clisp.org>
24799 * lib/trim.c: Include <string.h>.
24801 2008-04-11 Eric Blake <ebb9@byu.net>
24803 Avoid compile failure on OS/2.
24804 * lib/regex_internal.h (internal_function): Disable optimization
24805 on OS/2 (__EMX__), where it caused compiler error.
24806 Reported by Elbert Pol.
24808 2008-04-11 Bruno Haible <bruno@clisp.org>
24810 Flush the standard error stream before aborting. Needed on mingw.
24811 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24812 * tests/test-array_list.c (ASSERT): Likewise.
24813 * tests/test-array_oset.c (ASSERT): Likewise.
24814 * tests/test-avltree_list.c (ASSERT): Likewise.
24815 * tests/test-avltree_oset.c (ASSERT): Likewise.
24816 * tests/test-avltreehash_list.c (ASSERT): Likewise.
24817 * tests/test-binary-io.c (ASSERT): Likewise.
24818 * tests/test-byteswap.c (ASSERT): Likewise.
24819 * tests/test-c-ctype.c (ASSERT): Likewise.
24820 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24821 * tests/test-c-strcasestr.c (ASSERT): Likewise.
24822 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24823 * tests/test-c-strstr.c (ASSERT): Likewise.
24824 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24825 * tests/test-canonicalize.c (ASSERT): Likewise.
24826 * tests/test-carray_list.c (ASSERT): Likewise.
24827 * tests/test-ceilf1.c (ASSERT): Likewise.
24828 * tests/test-ceilf2.c (ASSERT): Likewise.
24829 * tests/test-ceill.c (ASSERT): Likewise.
24830 * tests/test-count-one-bits.c (ASSERT): Likewise.
24831 * tests/test-fbufmode.c (ASSERT): Likewise.
24832 * tests/test-fflush2.c (ASSERT): Likewise.
24833 * tests/test-floorf1.c (ASSERT): Likewise.
24834 * tests/test-floorf2.c (ASSERT): Likewise.
24835 * tests/test-floorl.c (ASSERT): Likewise.
24836 * tests/test-fopen.c (ASSERT): Likewise.
24837 * tests/test-fpending.c (ASSERT): Likewise.
24838 * tests/test-fprintf-posix.c (ASSERT): Likewise.
24839 * tests/test-fpurge.c (ASSERT): Likewise.
24840 * tests/test-freadable.c (ASSERT): Likewise.
24841 * tests/test-freadahead.c (ASSERT): Likewise.
24842 * tests/test-freading.c (ASSERT): Likewise.
24843 * tests/test-freadptr.c (ASSERT): Likewise.
24844 * tests/test-freadptr2.c (ASSERT): Likewise.
24845 * tests/test-freadseek.c (ASSERT): Likewise.
24846 * tests/test-freopen.c (ASSERT): Likewise.
24847 * tests/test-frexp.c (ASSERT): Likewise.
24848 * tests/test-frexpl.c (ASSERT): Likewise.
24849 * tests/test-fseek.c (ASSERT): Likewise.
24850 * tests/test-fseeko.c (ASSERT): Likewise.
24851 * tests/test-fstrcmp.c (ASSERT): Likewise.
24852 * tests/test-ftell.c (ASSERT): Likewise.
24853 * tests/test-ftello.c (ASSERT): Likewise.
24854 * tests/test-func.c (ASSERT): Likewise.
24855 * tests/test-fwritable.c (ASSERT): Likewise.
24856 * tests/test-fwriting.c (ASSERT): Likewise.
24857 * tests/test-getdelim.c (ASSERT): Likewise.
24858 * tests/test-getline.c (ASSERT): Likewise.
24859 * tests/test-i-ring.c (ASSERT): Likewise.
24860 * tests/test-iconv-utf.c (ASSERT): Likewise.
24861 * tests/test-iconv.c (ASSERT): Likewise.
24862 * tests/test-isfinite.c (ASSERT): Likewise.
24863 * tests/test-isnand.c (ASSERT): Likewise.
24864 * tests/test-isnanf.c (ASSERT): Likewise.
24865 * tests/test-isnanl.h (ASSERT): Likewise.
24866 * tests/test-ldexpl.c (ASSERT): Likewise.
24867 * tests/test-linked_list.c (ASSERT): Likewise.
24868 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24869 * tests/test-localename.c (ASSERT): Likewise.
24870 * tests/test-lseek.c (ASSERT): Likewise.
24871 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24872 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24873 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24874 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24875 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24876 * tests/test-mbschr.c (ASSERT): Likewise.
24877 * tests/test-mbscspn.c (ASSERT): Likewise.
24878 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24879 * tests/test-mbspbrk.c (ASSERT): Likewise.
24880 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24881 * tests/test-mbsrchr.c (ASSERT): Likewise.
24882 * tests/test-mbsspn.c (ASSERT): Likewise.
24883 * tests/test-mbsstr1.c (ASSERT): Likewise.
24884 * tests/test-mbsstr2.c (ASSERT): Likewise.
24885 * tests/test-mbsstr3.c (ASSERT): Likewise.
24886 * tests/test-memchr2.c (ASSERT): Likewise.
24887 * tests/test-memmem.c (ASSERT): Likewise.
24888 * tests/test-open.c (ASSERT): Likewise.
24889 * tests/test-printf-frexp.c (ASSERT): Likewise.
24890 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24891 * tests/test-printf-posix.c (ASSERT): Likewise.
24892 * tests/test-quotearg.c (ASSERT): Likewise.
24893 * tests/test-rbtree_list.c (ASSERT): Likewise.
24894 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24895 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24896 * tests/test-round1.c (ASSERT): Likewise.
24897 * tests/test-roundf1.c (ASSERT): Likewise.
24898 * tests/test-roundl.c (ASSERT): Likewise.
24899 * tests/test-signbit.c (ASSERT): Likewise.
24900 * tests/test-sleep.c (ASSERT): Likewise.
24901 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24902 * tests/test-snprintf.c (ASSERT): Likewise.
24903 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24904 * tests/test-stat-time.c (ASSERT): Likewise.
24905 * tests/test-strcasestr.c (ASSERT): Likewise.
24906 * tests/test-strerror.c (ASSERT): Likewise.
24907 * tests/test-striconv.c (ASSERT): Likewise.
24908 * tests/test-striconveh.c (ASSERT): Likewise.
24909 * tests/test-striconveha.c (ASSERT): Likewise.
24910 * tests/test-strsignal.c (ASSERT): Likewise.
24911 * tests/test-strstr.c (ASSERT): Likewise.
24912 * tests/test-strtod.c (ASSERT): Likewise.
24913 * tests/test-trunc1.c (ASSERT): Likewise.
24914 * tests/test-trunc2.c (ASSERT): Likewise.
24915 * tests/test-truncf1.c (ASSERT): Likewise.
24916 * tests/test-truncf2.c (ASSERT): Likewise.
24917 * tests/test-truncl.c (ASSERT): Likewise.
24918 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24919 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24920 * tests/test-vasnprintf.c (ASSERT): Likewise.
24921 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24922 * tests/test-vasprintf.c (ASSERT): Likewise.
24923 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24924 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24925 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24926 * tests/test-vsnprintf.c (ASSERT): Likewise.
24927 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24928 * tests/test-wcwidth.c (ASSERT): Likewise.
24929 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24930 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24931 * tests/test-xvasprintf.c (ASSERT): Likewise.
24932 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24933 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24934 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24935 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24936 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24937 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24938 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24939 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24940 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24941 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24942 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24943 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24944 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24945 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24946 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24947 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24948 * tests/unictype/test-block_list.c (ASSERT): Likewise.
24949 * tests/unictype/test-block_of.c (ASSERT): Likewise.
24950 * tests/unictype/test-block_test.c (ASSERT): Likewise.
24951 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24952 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24953 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24954 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24955 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24956 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24957 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24958 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24959 * tests/unictype/test-combining.c (ASSERT): Likewise.
24960 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24961 * tests/unictype/test-digit.c (ASSERT): Likewise.
24962 * tests/unictype/test-mirror.c (ASSERT): Likewise.
24963 * tests/unictype/test-numeric.c (ASSERT): Likewise.
24964 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24965 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24966 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24967 * tests/unictype/test-scripts.c (ASSERT): Likewise.
24968 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24969 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24970 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24971 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24972 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24973 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24974 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24975 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24976 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24977 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24978 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24979 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24980 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24981 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24982 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24983 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24984 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24985 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24986 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24987 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24988 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24989 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24990 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24991 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24992 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24993 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24994 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24995 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24996 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24997 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24998 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24999 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25000 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25001 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25002 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25003 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25004 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25005 Reported by Eric Blake.
25007 2008-04-11 Bruno Haible <bruno@clisp.org>
25009 * lib/wchar.in.h: Tweak comment.
25011 2008-04-11 Bruno Haible <bruno@clisp.org>
25013 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25014 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25016 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25018 2008-04-11 Bruno Haible <bruno@clisp.org>
25020 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25022 2008-04-11 Simon Josefsson <simon@josefsson.org>
25024 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25025 of attempting to use non-existing /dev/*random. Based on patch
25026 from Adam Strzelecki <ono@java.pl> in
25027 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25029 2008-04-08 Bruno Haible <bruno@clisp.org>
25031 Add tentative support for emx+gcc.
25032 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25033 * lib/fpurge.c (fpurge): Likewise.
25034 * lib/freadable.c (freadable): Likewise.
25035 * lib/freadahead.c (freadahead): Likewise.
25036 * lib/freading.c (freading): Likewise.
25037 * lib/freadptr.c (freadptr): Likewise.
25038 * lib/freadseek.c (freadptrinc): Likewise.
25039 * lib/fseeko.c (rpl_fseeko): Likewise.
25040 * lib/fseterr.c (fseterr): Likewise.
25041 * lib/fwritable.c (fwritable): Likewise.
25042 * lib/fwriting.c (fwriting): Likewise.
25043 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25045 2008-04-09 Eric Blake <ebb9@byu.net>
25047 Avoid some autoconf warnings.
25048 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25049 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25050 * m4/afs.m4 (gl_AFS): Likewise.
25051 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25052 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25053 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25054 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25055 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25056 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25057 (AC_CHECK_DECLS_ONCE): Likewise.
25059 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25060 gnulib-tool requires autoconf 2.59 or better.
25061 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25063 2008-04-08 Eric Blake <ebb9@byu.net>
25065 Use 'git describe --match' if present (added in git 1.5.5).
25066 * build-aux/git-version-gen: Limit result to tags that match 'v*'
25069 2008-04-08 Bruno Haible <bruno@clisp.org>
25071 Add tentative support for OpenServer.
25072 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25074 * lib/fpurge.c (fpurge): Likewise.
25075 * lib/freadable.c (freadable): Likewise.
25076 * lib/freadahead.c (freadahead): Likewise.
25077 * lib/freading.c (freading): Likewise.
25078 * lib/freadptr.c (freadptr): Likewise.
25079 * lib/freadseek.c (freadptrinc): Likewise.
25080 * lib/fseeko.c (rpl_fseeko): Likewise.
25081 * lib/fseterr.c (fseterr): Likewise.
25082 * lib/fwritable.c (fwritable): Likewise.
25083 * lib/fwriting.c (fwriting): Likewise.
25084 Reported by Roger Cornelius <rac@tenzing.org> and
25085 Brian K. White <brian@aljex.com>.
25087 2008-04-06 Jim Meyering <meyering@redhat.com>
25089 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25091 2008-04-06 Bruno Haible <bruno@clisp.org>
25093 Avoid possible error with non-ASCII bytes in UTF-8 locales.
25094 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25095 * tests/test-printf-posix.sh: Likewise.
25096 * tests/test-vfprintf-posix.sh: Likewise.
25097 * tests/test-vprintf-posix.sh: Likewise.
25098 * tests/test-xprintf-posix.sh: Likewise.
25100 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25102 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25103 hide error from 'ls', needed on OS/2.
25104 Report by Elbert Pol <elbert.pol@gmail.com>.
25106 2008-04-04 Eric Blake <ebb9@byu.net>
25108 Make test-fseeko.c failures meaningful.
25109 * tests/test-fseeko.c: Print line number on failure.
25110 * tests/test-fseek.c: Likewise.
25111 Reported by Nelson H. F. Beebe.
25113 Improve strtod bug detection check.
25114 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25115 required for Solaris 10.
25116 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25118 2008-04-04 Bruno Haible <bruno@clisp.org>
25120 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25123 2008-04-03 Eric Blake <ebb9@byu.net>
25125 Ensure sane .version contents.
25126 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25128 * build-aux/git-version-gen: Improve documentation.
25130 Make GNU make output nicer.
25131 * top/GNUmakefile [!_have-Makefile]: Add dependency on
25132 MAKECMDGOALS to enforce message for all command line targets. Set
25133 srcdir for use in maint.mk.
25135 Another maintainer tweak.
25136 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25137 a target that regenerates version.
25139 2008-04-03 Jim Meyering <meyering@redhat.com>
25141 vc-list-files: don't cause coreutils "make po-check" failure
25142 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25144 2008-04-03 Eric Blake <ebb9@byu.net>
25146 Allow VPATH usage of vc-list-files.
25147 * build-aux/vc-list-files (scriptversion): Add timestamp.
25148 (options): Add --help, --version, -C.
25149 (CVS): Support installed cvsu.
25151 2008-04-02 Bruno Haible <bruno@clisp.org>
25153 Avoid some "statement with no effect" warnings from gcc.
25154 * tests/test-wctype.c (main): Explicitly ignore unused values.
25155 Reported by Jim Meyering.
25157 2008-04-02 Jim Meyering <meyering@redhat.com>
25159 Avoid some warnings from "gcc -Wshadow".
25160 * tests/test-frexp.c (exp): Define to a different identifier.
25161 * tests/test-frexpl.c (exp): Likewise.
25163 2008-04-03 Jim Meyering <meyering@redhat.com>
25165 bootstrap: remove dangling *.[ch] symlinks from lib
25166 * build-aux/bootstrap [dangling symlink removal]: Move find's
25167 -depth option to precede all others, to avoid a warning.
25168 Remove *.[ch] files too, and from "$source_base" (usually lib/).
25170 2008-04-02 Bruno Haible <bruno@clisp.org>
25172 Avoid some warnings from "gcc -Wshadow".
25173 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25174 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25175 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25176 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25177 Reported by Jim Meyering.
25179 2008-04-01 Bruno Haible <bruno@clisp.org>
25181 Fix test to work on IRIX 6.5 with cc.
25182 * tests/test-math.c (numeric_equal): New function.
25185 2008-04-01 Bruno Haible <bruno@clisp.org>
25187 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25189 2008-04-01 Bruno Haible <bruno@clisp.org>
25191 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25192 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25193 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25194 (Depends-on): Remove math.
25196 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25197 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25198 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25199 (Depends-on): Remove math.
25201 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25202 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25203 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25204 (Depends-on): Remove math.
25205 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25206 (Depends-on): Remove math.
25208 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25209 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25210 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25211 (Depends-on): Remove math.
25212 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25213 (Depends-on): Remove math.
25215 * tests/test-round1.c: Include nan.h.
25216 (main): Use NaNd instead of NAN.
25217 * modules/round-tests (Files): Add tests/nan.h.
25219 * tests/test-trunc1.c: Include nan.h.
25220 (main): Use NaNd instead of NAN.
25221 * modules/trunc-tests (Files): Add tests/nan.h.
25223 * tests/test-roundf1.c: Include nan.h.
25224 (main): Use NaNf instead of NAN.
25225 * modules/roundf-tests (Files): Add tests/nan.h.
25227 * tests/test-truncf1.c: Include nan.h.
25228 (main): Use NaNf instead of NAN.
25229 * modules/truncf-tests (Files): Add tests/nan.h.
25231 * tests/test-ceilf1.c: Include nan.h.
25232 (main): Use NaNf instead of NAN.
25233 * modules/ceilf-tests (Files): Add tests/nan.h.
25235 * tests/test-floorf1.c: Include nan.h.
25236 (main): Use NaNf instead of NAN.
25237 * modules/floorf-tests (Files): Add tests/nan.h.
25239 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25240 (main): Use NaNf instead of NAN.
25241 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25243 * tests/test-isnand.c: Include nan.h instead of <math.h>.
25244 (main): Use NaNd instead of NAN.
25245 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25247 * tests/test-frexp.c: Include nan.h.
25248 (main): Use NaNd instead of NAN.
25249 * modules/frexp-tests (Files): Add tests/nan.h.
25251 * lib/isnan.c: Don't include <math.h>.
25252 (FUNC): Don't use NAN macro.
25253 * modules/isnand-nolibm (Depends-on): Remove math.
25254 * modules/isnanf-nolibm (Depends-on): Remove math.
25255 * modules/isnanl (Depends-on): Remove math.
25256 * modules/isnanl-nolibm (Depends-on): Remove math.
25258 * tests/nan.h: New file.
25260 2008-04-01 Eric Blake <ebb9@byu.net>
25263 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25264 values to be the right type.
25266 For now, cater to gnulib strtod inaccuracies.
25267 * tests/test-strtod.c (main): Allow 1-ulp error on expected
25268 fractional results. While not as nice from a QoI perspective, it
25269 is a quicker patch than correctly implementing decimal to binary
25272 2008-03-31 Eric Blake <ebb9@byu.net>
25274 Guarantee a definition of NAN.
25275 * lib/math.in.h (NAN): Define if missing.
25276 * tests/test-math.c (main): Test it.
25277 * doc/posix-headers/math.texi (math.h): Document this.
25278 * lib/isnan.c (rpl_isnand): Use it.
25279 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25280 * tests/test-floorf1.c (NaN): Likewise.
25281 * tests/test-frexp.c (NaN): Likewise.
25282 * tests/test-isnand.c (NaN): Likewise.
25283 * tests/test-isnanf.c (NaN): Likewise.
25284 * tests/test-round1.c (NaN): Likewise.
25285 * tests/test-roundf1.c (NaN): Likewise.
25286 * tests/test-snprintf-posix.h (NaN): Likewise.
25287 * tests/test-sprintf-posix.h (NaN): Likewise.
25288 * tests/test-trunc1.c (NaN): Likewise.
25289 * tests/test-truncf1.c (NaN): Likewise.
25290 * tests/test-vasnprintf-posix.c (NaN): Likewise.
25291 * tests/test-vasprintf-posix.c (NaN): Likewise.
25292 * modules/isnand-nolibm (Depends-on): Add math.
25293 * modules/isnanf-nolibm (Depends-on): Likewise.
25294 * modules/isnanl (Depends-on): Likewise.
25295 * modules/isnanl-nolibm (Depends-on): Likewise.
25296 * modules/snprintf-posix-tests (Depends-on): Likewise.
25297 * modules/sprintf-posix-tests (Depends-on): Likewise.
25298 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25299 * modules/vsprintf-posix-tests (Depends-on): Likewise.
25300 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25301 * modules/vasprintf-posix-tests (Depends-on): Likewise.
25303 2008-03-31 Bruno Haible <bruno@clisp.org>
25305 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25306 * doc/posix-functions/strtod.texi: Likewise.
25308 2008-03-31 Bruno Haible <bruno@clisp.org>
25310 * tests/test-strtod.c (main): Don't use C99 syntax.
25312 2008-03-31 Bruno Haible <bruno@clisp.org>
25314 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25315 Reported by Eric Blake.
25317 2008-03-31 Jim Meyering <meyering@redhat.com>
25319 Don't compare actual signbit return values.
25320 * tests/test-strtod.c (main): Rather, compare only their
25321 zero/non-zero nature.
25323 2008-03-31 Eric Blake <ebb9@byu.net>
25325 More strtod documentation.
25326 * doc/posix-functions/strtod.texi (strtod): Interpret more test
25327 failures as distinct bugs.
25329 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
25331 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25332 Problem reported by Erik Benada in
25333 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25335 2008-03-30 Bruno Haible <bruno@clisp.org>
25337 * tests/test-strtod.c: Add comments about which assertion fails on which
25339 * doc/posix-functions/strtod.texi: Add info about many more platforms.
25341 2008-03-30 Eric Blake <ebb9@byu.net>
25343 Test signbit behavior on zeros.
25344 * tests/test-signbit.c (test_signbitf): Add tests for zero.
25345 (test_signbitd, test_signbitl): Likewise.
25347 More strtod touchups.
25348 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25349 sign of negative underflow, for now. Use .5, not .1.
25350 * doc/posix-functions/strtod.texi (strtod): Mention these
25352 Reported by Jim Meyering.
25354 2008-03-30 Bruno Haible <bruno@clisp.org>
25356 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25357 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25359 2008-03-30 Bruno Haible <bruno@clisp.org>
25361 Avoid failure when attempting to return empty iconv results on some
25363 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25364 allocation, don't report ENOMEM when the resulting string is empty.
25366 2008-03-30 Bruno Haible <bruno@clisp.org>
25368 Fix buffer overrun.
25369 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25370 Don't consider the width for tmp_length. Check count against tmp_length
25371 before doing the padding. Ensure enough allocation during padding.
25373 2008-03-30 Eric Blake <ebb9@byu.net>
25376 * lib/strtod.c (strtod): Avoid compiler warnings.
25377 Reported by Jim Meyering.
25379 2008-03-30 Bruno Haible <bruno@clisp.org>
25381 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25382 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25383 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25384 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25385 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25386 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25387 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25388 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25390 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25391 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25392 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25393 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25394 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25395 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25396 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25397 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25399 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25400 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25401 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25402 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25403 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25404 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25405 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25406 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25408 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25409 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25411 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25412 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25414 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25415 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25417 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25418 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25419 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25421 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25422 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25423 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25425 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25426 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25427 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25429 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25430 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25431 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25433 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25434 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25435 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25436 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25437 (Depends-on): Add EOVERFLOW.
25438 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25439 (Depends-on): Add EOVERFLOW.
25440 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25441 (Depends-on): Add EOVERFLOW.
25442 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25443 (Depends-on): Add EOVERFLOW.
25444 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25445 (Depends-on): Add EOVERFLOW.
25446 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25447 (Depends-on): Add EOVERFLOW.
25448 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25449 (Depends-on): Add EOVERFLOW.
25450 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25451 (Depends-on): Add EOVERFLOW.
25453 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25454 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25455 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25457 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25458 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25459 * modules/snprintf (Depends-on): Add EOVERFLOW.
25461 * lib/poll.c (EOVERFLOW): Remove fallback.
25462 * modules/poll (Depends-on): Add EOVERFLOW.
25464 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25465 * modules/getugroups (Depends-on): Add EOVERFLOW.
25467 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25468 * modules/getdelim (Depends-on): Add EOVERFLOW.
25470 * lib/ftell.c (EOVERFLOW): Remove fallback.
25471 * modules/ftell (Depends-on): Add EOVERFLOW.
25473 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25474 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25475 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25477 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25479 * modules/EOVERFLOW-tests: New file.
25480 * tests/test-EOVERFLOW.c: New file.
25482 * modules/EOVERFLOW: New file.
25483 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25485 2008-03-30 Bruno Haible <bruno@clisp.org>
25487 Fix bug introduced on 2007-06-10.
25488 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25489 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25491 2008-03-30 Bruno Haible <bruno@clisp.org>
25493 Improve freadseek's efficiency after ungetc.
25494 * lib/freadseek.c: Include freadahead.h.
25495 (freadptrinc): New function, extracted from freadseek.
25496 (freadseek): Use it in a loop. Use freadahead to determine the number
25497 of loop iterations.
25498 * modules/freadseek (Depends-on): Add freadahead.
25499 (configure.ac): Require AC_C_INLINE.
25501 2008-03-30 Bruno Haible <bruno@clisp.org>
25503 * lib/freadseek.c (freadseek): Don't ignore the return value of
25506 2008-03-29 Eric Blake <ebb9@byu.net>
25508 Add hex float support.
25509 * modules/strtod (Depends-on): Add c-ctype.
25510 (Link): Mention POW_LIB.
25511 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25512 whitespace between 'e' and exponent.
25513 * tests/test-strtod.c (main): Enable hex float tests.
25514 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25517 Document various strtod bugs, with some fixes.
25518 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25519 "-0x", "inf", "nan", and hex constants.
25520 * doc/posix-functions/atof.texi (atof): Likewise.
25521 * modules/stdlib (Makefile.am): Support strtod.
25522 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25523 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25524 detect additional strtod bugs.
25525 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25526 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25527 bool where appropriate. Parse 'inf' and 'nan'.
25528 * tests/test-strtod.c: New file.
25529 * modules/strtod (Depends-on): Add stdbool, stdlib.
25530 (configure.ac): Turn on module indicator.
25531 * modules/strtod-tests: New module.
25533 2008-03-29 Eric Blake <ebb9@byu.net>
25535 Fix ftell on mingw.
25536 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25537 * modules/ftell-tests (Depends-on): Add binary-io.
25538 * modules/ftello-tests (Depends-on): Likewise.
25539 * tests/test-ftell.c (main): Enhance test to cover behavior after
25540 ungetc. Enforce binary mode.
25541 * tests/test-ftello.c (main): Likewise.
25543 Pass test-freadseek on cygwin.
25544 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25545 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25548 * tests/test-fflush2.c (main): Fix typo.
25550 2008-03-29 Bruno Haible <bruno@clisp.org>
25552 * tests/test-fflush2.c (main): Temporarily disable the contents of
25554 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25555 Reported by Eric Blake.
25557 2008-03-28 Simon Josefsson <simon@josefsson.org>
25559 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25560 (GC_SHA224_DIGEST_SIZE): Add.
25562 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25563 (gc_hash_digest_length): Likewise.
25564 (gc_hash_buffer): Likewise.
25566 2008-03-25 Bruno Haible <bruno@clisp.org>
25568 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25569 detail which gettext release to use.
25570 Reported by Simon Josefsson.
25572 2008-03-26 Jim Meyering <meyering@redhat.com>
25574 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25575 * modules/gnumakefile (clean-GNUmakefile): Also, use
25576 test ... && ... || : syntax rather than if-then ... fi.
25578 gnumakefile: Don't double-quote-expand $(VPATH) value.
25579 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25581 2008-03-24 Eric Blake <ebb9@byu.net>
25583 Alter GNUmakefile to install into top directory.
25584 * modules/maintainer-makefile: Split, and add dependency...
25585 * modules/gnumakefile: to this new module.
25586 * build-aux/GNUmakefile: Move...
25587 * top/GNUmakefile: ...here.
25588 * build-aux/maint.mk: Move...
25589 * top/maint.mk: ...here.
25590 * MODULES.html.sh (Support for maintaining...): Document new
25593 2008-03-23 Bruno Haible <bruno@clisp.org>
25595 * gnulib-tool: New options --vc-files, --no-vc-files.
25596 (func_usage): Document them.
25597 (vc_files): New variable.
25598 (func_import): Consider vc_files.
25599 (func_create_testdir): Set vc_files to empty.
25600 Suggested by Jim Meyering and Karl Berry.
25602 2008-03-23 Bruno Haible <bruno@clisp.org>
25604 Fix regex compilation error on HP-UX 11.
25605 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25606 * modules/regex (Files): Add m4/mbstate_t.m4.
25607 Reported by Ton Voon <ton.voon@altinity.com>.
25609 2008-03-23 Bruno Haible <bruno@clisp.org>
25611 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25613 2008-03-23 Eric Blake <ebb9@byu.net>
25614 Bruno Haible <bruno@clisp.org>
25616 Install files from top/ in the destination directory.
25617 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25618 augmentation also for the files from top/.
25619 (func_import, func_create_testdir): Rewrite file names:
25620 top/filename -> filename.
25622 2008-03-23 Bruno Haible <bruno@clisp.org>
25624 Tweak "gnulib --version" output.
25625 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25627 2008-03-23 Bruno Haible <bruno@clisp.org>
25629 Tweak "gnulib --version" output.
25630 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25631 rather than contents of ChangeLog, when possible.
25633 2008-03-21 Eric Blake <ebb9@byu.net>
25635 More --version tweaks.
25636 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
25637 date of last ChangeLog entry.
25639 2008-03-21 Jim Meyering <meyering@redhat.com>
25641 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25643 2008-03-20 Eric Blake <ebb9@byu.net>
25646 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25648 2008-03-20 Simon Josefsson <simon@josefsson.org>
25650 * build-aux/GNUmakefile: Make git-version-gen optional. Add
25651 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
25653 2008-03-20 Eric Blake <ebb9@byu.net>
25655 Sync GNUmakefile with coreutils.
25656 * build-aux/GNUmakefile (have-Makefile): Rename...
25657 (_have-Makefile): ...to this, for namespace consideration.
25658 (GNUmakefile.cfg): Include, if present.
25659 (_autoreconf): Define a default.
25660 (_is-dist-target): New rule for rebuilds to pick up intra-release
25662 (maint-cfg.mk): Rename...
25663 (cfg.mk): ...to this.
25665 2008-03-18 Jim Meyering <meyering@redhat.com>
25667 New script and module: mktempd
25668 * MODULES.html.sh (maint+release support): Add mktempd.
25669 * build-aux/mktempd: New file.
25670 * modules/mktempd: New file.
25672 2008-03-15 Jim Meyering <meyering@redhat.com>
25675 * lib/sha1.c, lib/md5.c: 63 != ~63.
25676 Reported by Andreas Schwab.
25678 sha1.c, md5.c: Hoist a redundant expression.
25679 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25680 "ctx->buflen" only once, before calling *_process_block.
25681 * lib/md5.c (md5_process_bytes): Likewise.
25683 2008-03-14 Eric Blake <ebb9@byu.net>
25685 Bump copyright year in files generated by gnulib-tool.
25686 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25687 gnulib-tool, rather than hard-coding it.
25689 Fix 'gnulib-tool --version' output to work with git.
25690 * gnulib-tool (func_gnulib_dir): New function, extracted from...
25691 (startup): ...here.
25692 (func_version): Use it to invoke git-version-gen, rather than
25693 relying on CVS keyword expansion. Modernize wording.
25694 (cvsdatestamp, last_checkin_date, version): Kill unused
25697 2008-03-12 Jim Meyering <meyering@redhat.com>
25699 Recognize optional cast of the argument to free.
25700 * build-aux/useless-if-before-free: Update regexps.
25702 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25704 2008-03-11 Bruno Haible <bruno@clisp.org>
25706 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25707 by a single package.
25708 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25709 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25710 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25711 Reported by Sam Steingold <sds@gnu.org>.
25713 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
25715 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25718 2008-03-11 Bruno Haible <bruno@clisp.org>
25720 Avoid conflicts between local macro definitions.
25721 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25722 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25724 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
25725 Bruno Haible <bruno@clisp.org>
25727 Make va_copy work with some version of xlc on AIX 5.1.
25728 * lib/stdarg.in.h: New file.
25729 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25730 On AIX, use a <stdarg.h> file substitute.
25731 * modules/stdarg (Files): Add lib/stdarg.in.h.
25732 (Depends-on): Add include_next.
25733 (Makefile.am): Build a stdarg.h substitute if requested.
25734 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25736 2008-03-10 Bruno Haible <bruno@clisp.org>
25738 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25739 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25740 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25742 2008-03-10 Bruno Haible <bruno@clisp.org>
25744 * modules/stdlib (Depends-on): Add include_next, remove
25747 2008-03-09 Bruno Haible <bruno@clisp.org>
25749 * lib/freadahead.h (freadahead): Document more precisely.
25750 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25751 the sum of both buffer sizes.
25752 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25753 * NEWS: Document the change.
25755 2008-03-09 Bruno Haible <bruno@clisp.org>
25757 Extend freadptr to return also the buffer size.
25758 * lib/freadptr.h (freadptr): Add sizep argument.
25759 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25760 (freadptr): Add sizep argument. Determine buffer size like freadahead
25762 * tests/test-freadptr.c: Don't include freadahead.h.
25763 (main): Adapt for new calling convention of freadptr.
25764 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25765 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25766 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25767 tests/test-freadptr2.sh.
25768 (Depends): Remove freadahead.
25769 (TESTS): Add test-freadptr2.sh.
25770 (check_PROGRAMS): Add test-freadptr2.
25772 2008-03-09 Bruno Haible <bruno@clisp.org>
25774 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25775 Report and solution by Simon Josefsson.
25777 2008-03-06 Bruno Haible <bruno@clisp.org>
25779 Make fflush after ungetc work on BSD platforms.
25780 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25781 * tests/test-fflush2.c: New file.
25782 * tests/test-fflush2.sh: New file.
25783 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25784 tests/test-fflush2.c.
25785 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25786 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25788 2008-03-06 Eric Blake <ebb9@byu.net>
25790 Likewise for ftello.
25791 * modules/ftello (Dependencies): Add extensions.
25792 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25794 2008-03-06 Bruno Haible <bruno@clisp.org>
25796 * modules/fseeko (Dependencies): Add extensions.
25797 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25798 Needed on glibc systems.
25800 2008-03-06 Bruno Haible <bruno@clisp.org>
25802 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25804 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25806 2008-03-06 Bruno Haible <bruno@clisp.org>
25808 * users.txt: Add libgnupdf.
25810 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25812 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25813 (Header File Substitutes, Function Substitutes,
25814 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25815 (Build robot for gnulib): Fix typo.
25817 2008-03-06 Bruno Haible <bruno@clisp.org>
25819 * doc/gnulib-tool.texi (VCS Issues): Small updates.
25820 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25822 2008-03-06 Bruno Haible <bruno@clisp.org>
25824 * doc/func.texi: New file, extracted from doc/gnulib.texi.
25825 * doc/gnulib.texi: Include it.
25827 2008-03-06 Simon Josefsson <simon@josefsson.org>
25829 * modules/func (License): Change license to unlimited; there was
25830 no LGPL parts in the module anyway.
25832 2008-03-06 Simon Josefsson <simon@josefsson.org>
25834 * modules/__func__: Renamed to modules/func.
25835 * modules/__func__-tests: Renamed to modules/func-tests.
25836 * tests/test-__func__.c: Renamed to tests/test-func.c.
25837 * m4/__func__.m4: Renamed to m4/func.m4.
25838 * doc/gnulib.texi (__func__): Section renamed to func.
25839 Suggested by Eric Blake <ebb9@byu.net>.
25841 2008-03-06 Simon Josefsson <simon@josefsson.org>
25843 * doc/gnulib.texi (__func__): Use C99 terminology when talking
25844 about __func__. Make example self-contained. Suggested by Eric
25845 Blake <ebb9@byu.net>.
25847 * tests/test-__func__.c (main): Avoid extraneous () around __func.
25848 Suggested by Eric Blake <ebb9@byu.net>.
25850 2008-03-06 Simon Josefsson <simon@josefsson.org>
25852 * modules/__func__: New file.
25853 * modules/__func__-tests: New file.
25854 * tests/test-__func__.c: New file.
25855 * m4/__func__.m4: New file.
25856 * doc/gnulib.texi (__func__): Document __func__ module.
25858 2008-03-05 Simon Josefsson <simon@josefsson.org>
25860 * modules/byteswap (License): Re-license as LGPLv2+.
25862 2008-03-05 Simon Josefsson <simon@josefsson.org>
25864 * doc/Makefile: Add pdf target.
25866 2008-03-05 Simon Josefsson <simon@josefsson.org>
25868 * modules/inline (License): Use 'unlimited', since there are only
25869 *.m4 files in this module.
25871 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25872 Bruno Haible <bruno@clisp.org>
25874 Add support for HP C 7.1 on OpenVMS 8.3.
25875 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25877 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25879 Update VMS specifics.
25880 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25882 2008-03-02 Jim Meyering <meyering@redhat.com>
25884 Remove the last dependency on the "free" module.
25885 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25886 Reported by Bob Proulx.
25888 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25890 Remove useless "if" tests before free. Deprecate "free" module.
25891 * doc/posix-functions/free.texi: Mention that this
25892 module is no longer useful.
25893 * modules/free (Notice): Say this module is obsolete.
25894 * modules/readutmp (Depends-on): Remove free.
25895 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25896 * lib/putenv.c (putenv): Likewise.
25897 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25898 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25899 * tests/test-c-strcasestr.c (main): Likewise.
25900 * tests/test-c-strstr.c (main): Likewise.
25901 * tests/test-mbscasestr1.c (main): Likewise.
25902 * tests/test-mbscasestr2.c (main): Likewise.
25903 * tests/test-mbsstr1.c (main): Likewise.
25904 * tests/test-mbsstr2.c (main): Likewise.
25905 * tests/test-memmem.c (main): Likewise.
25906 * tests/test-strcasestr.c (main): Likewise.
25907 * tests/test-striconv.c (main): Likewise.
25908 * tests/test-striconveh.c (main): Likewise.
25909 * tests/test-striconveha.c (main): Likewise.
25910 * tests/test-strstr.c (main): Likewise.
25912 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25914 bootstrap: sync from coreutils again
25915 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25917 2008-03-01 Jim Meyering <meyering@redhat.com>
25919 bootstrap: sync from coreutils
25920 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25921 also when the target doesn't exist.
25923 2008-03-01 Eric Blake <ebb9@byu.net>
25925 Fix bugs in last patch.
25926 * lib/memchr2.c (memchr2): Fix typo.
25927 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25929 Reported by Bruce Korb.
25931 New module 'memchr2'.
25932 * modules/memchr2: New file.
25933 * modules/memchr2-tests: Likewise.
25934 * lib/memchr2.h: Likewise.
25935 * lib/memchr2.c: Likewise, based on memchr.c.
25936 * tests/test-memchr2.c: New test.
25937 * MODULES.html.sh (String handling): Add memchr2.
25939 2008-02-29 Bruno Haible <bruno@clisp.org>
25941 * modules/freadseek-tests: New file.
25942 * tests/test-freadseek.sh: New file.
25943 * tests/test-freadseek.c: New file.
25945 New module 'freadseek'.
25946 * modules/freadseek: New file.
25947 * lib/freadseek.h: New file.
25948 * lib/freadseek.c: New file.
25949 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25951 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
25953 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25956 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25957 program_invocation_name and program_invocation_short_name are
25960 2008-02-28 Bruno Haible <bruno@clisp.org>
25962 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25963 * tests/test-freadptr.sh: Also test non-seekable stdin.
25965 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
25967 * build-aux/bootstrap (source_base, m4_base)
25968 (doc_base, tests_base): New variables.
25969 (gnulib_tool_options): Do not hardcode base directories, use
25970 the above variables instead.
25972 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
25974 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25976 2008-02-28 Bruno Haible <bruno@clisp.org>
25978 * modules/freadptr-tests: New file.
25979 * tests/test-freadptr.sh: New file.
25980 * tests/test-freadptr.c: New file.
25982 New module 'freadptr'.
25983 * modules/freadptr: New file.
25984 * lib/freadptr.h: New file.
25985 * lib/freadptr.c: New file.
25986 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25988 2008-02-26 Karl Berry <karl@freefriends.org>
25991 * libltdl/argz.c (argz_add, argz_count): New functions.
25992 * libltdl/argz.in.h: Declare them.
25993 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25995 2008-02-22 Bruno Haible <bruno@clisp.org>
25997 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25998 is a pointer type. Needed for HP-UX 10.
25999 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26000 * doc/posix-functions/gmtime_r.texi: Likewise.
26001 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26003 2008-02-24 Bruno Haible <bruno@clisp.org>
26005 * modules/environ-tests: New file.
26006 * tests/test-environ.c: New file.
26008 New module 'environ'.
26009 * modules/environ: New file.
26010 * lib/unistd.in.h (environ): New declaration.
26011 * m4/environ.m4: New file.
26012 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26014 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26016 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26018 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26019 wrong claim that 'environ' is missing on some systems.
26020 * modules/execute (Depends-on): Add environ.
26021 * lib/execute.c (environ): Remove fallback declaration.
26022 * modules/pipe (Depends-on): Add environ.
26023 * lib/pipe.c (environ): Remove fallback declaration.
26024 * modules/setenv (Depends-on): Add environ.
26025 * lib/setenv.c (environ): Remove fallback declaration.
26026 * modules/unsetenv (Depends-on): Add environ.
26027 * lib/unsetenv.c (environ): Remove fallback declaration.
26028 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26030 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26031 (gl_PREREQ_UNSETENV): Likewise.
26033 2008-02-24 Bruno Haible <bruno@clisp.org>
26035 * doc/posix-functions/environ.texi: Document the MacOS X problem.
26037 2008-02-20 Bob Proulx <bob@proulx.com>
26039 Enable use of older two part flavor 'git describe'.
26040 * build-aux/git-version-gen: If using the older two part flavor of
26041 git version then recreate the third part now present in the
26042 newer three part flavor of git describe.
26044 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
26046 * lib/fts.c (fts_build): Typo correction to comment.
26048 2008-02-17 Bruno Haible <bruno@clisp.org>
26050 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26051 generating no-op conflicts.
26053 2008-02-17 Bruno Haible <bruno@clisp.org>
26056 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26057 result_entries, rather than an index-based loop.
26059 2008-02-17 Bruno Haible <bruno@clisp.org>
26062 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26064 (entry_create): New function.
26065 (entry_hashcode): Use the cached hashcode if possible.
26066 (read_changelog_file, try_split_merged_entry): Use entry_create.
26068 2008-02-17 Bruno Haible <bruno@clisp.org>
26070 Speed up from O(n^2) to O(n) for long ChangeLog files.
26071 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26072 (read_changelog_file): Change implementation of entries_reversed list
26074 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26076 2008-02-17 Bruno Haible <bruno@clisp.org>
26078 New option --split-merged-entry.
26079 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26080 (find_paragraph_end, try_split_merged_entry): New functions.
26081 (long_options): Add option --split-merged-entry.
26082 (usage): Document option --split-merged-entry.
26083 (main): Implement option --split-merged-entry.
26084 Reported by Eric Blake.
26086 2008-02-17 Bruno Haible <bruno@clisp.org>
26088 * lib/git-merge-changelog.c: Include c-strstr.h.
26089 (main): Support the "git pull --rebase" situation.
26090 * modules/git-merge-changelog (Depends-on): Add c-strstr.
26091 Reported by Eric Blake.
26093 2008-02-16 Eric Blake <ebb9@byu.net>
26095 Avoid doubling \ in common case of "c-maybe" quoting style.
26096 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26097 eliding outer quotes.
26098 * lib/quotearg.h: Document this.
26099 * tests/test-quotearg.c (result_strings, inputs, results_g)
26100 (flag_results, locale_results): Test it by adding a new string to
26102 (compare_strings): Test new string.
26104 2008-02-13 Eric Blake <ebb9@byu.net>
26106 Avoid trigraph quoting in default output.
26107 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26108 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26109 unless explicitly requested.
26110 * tests/test-quotearg.c (flag_results, main): Add additional tests.
26112 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
26114 Don't rely on signed integer overflowing to negative value.
26115 * lib/getugroups.c (getugroups): Include <limits.h>.
26116 Instead, compare against INT_MAX, and increment only if the test passes.
26118 2008-02-13 Jim Meyering <meyering@redhat.com>
26119 and Eric Blake <ebb9@byu.net>
26121 Avoid shadowing warning and compile errors on Linux.
26122 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26123 forwarding macros on Linux.
26124 (dcgettext): Define a stub, for Linux.
26125 (results_g, main): Avoid warnings.
26127 2008-02-12 Eric Blake <ebb9@byu.net>
26129 Silence warning in last patch.
26130 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26132 Quotearg part 4: add tests, fix c-maybe colon quoting.
26133 * lib/quotearg.h: Improve documentation.
26134 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26135 escapes when adding outer quotes. When quoting trigraphs, use
26136 valid C notation. When quoting NUL, omit extra characters if next
26137 character is not digit. Alter prototype.
26138 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26140 * modules/quotearg-tests: New module.
26141 * tests/test-quotearg.c: New test.
26143 2008-02-07 Eric Blake <ebb9@byu.net>
26145 Quotearg part 3: add flag to control outer quote elision.
26146 * lib/quotearg.h (c_maybe_quoting_style): New style.
26147 (enum quoting_flags): Better documentation of flags.
26148 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26150 (quotearg_buffer_restyled): Handle new flag to elide outer
26153 Quotearg part 2: add flag that can control NUL elision.
26154 * lib/quotearg.h (set_quoting_flags): New prototype.
26155 * lib/quotearg.c (struct quoting_options): Add flag field.
26156 (set_quoting_flags): New function.
26157 (quotearg_buffer_restyled): Add flags parameter.
26158 (quotearg_alloc_mem): Set the flag if length cannot be returned.
26159 (quotearg_n_options): Set the flag, since length cannot be
26161 (quoting_options_from_style): Default flags correctly.
26163 Quotearg part 1: more wrappers, restore quotearg_char state.
26164 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26165 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26166 (quotearg_colon_mem): New wrappers.
26167 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26168 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26170 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26171 (quotearg_colon_mem): New functions.
26173 2008-02-11 Bruno Haible <bruno@clisp.org>
26175 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26176 library in the current directory: it does not work with parallel make.
26177 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26179 2008-02-11 Bruno Haible <bruno@clisp.org>
26181 * .gitattributes: New file.
26183 2008-02-11 Jim Meyering <meyering@redhat.com>
26185 useless-if-before-free: Fix reversed exit values.
26186 * build-aux/useless-if-before-free: Use correct values
26187 for EXIT_MATCH and EXIT_NO_MATCH.
26189 * build-aux/useless-if-before-free: Close stdout carefully.
26191 2008-02-10 Bruno Haible <bruno@clisp.org>
26193 New module 'git-merge-changelog'.
26194 * modules/git-merge-changelog: New file.
26195 * lib/git-merge-changelog.c: New file.
26197 2008-02-10 Jim Meyering <meyering@redhat.com>
26199 useless-if-before-free: New option: --list (-l).
26201 useless-if-before-free: Don't exit immediately upon open failure.
26202 * build-aux/useless-if-before-free: Exit 2 for errors.
26203 Upon failure to open a file, don't exit immediately.
26204 Rather, just warn and continue with any remaining files.
26206 2008-02-10 Bruno Haible <bruno@clisp.org>
26208 New abstract list operation 'node_set_value'.
26209 * lib/gl_list.h (gl_list_node_set_value): New function.
26210 (struct gl_list_implementation): New field node_set_value.
26211 * lib/gl_list.c (gl_list_node_set_value): New function.
26212 * lib/gl_array_list.c (gl_array_node_set_value): New function.
26213 (gl_array_list_implementation): Update.
26214 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26215 (gl_carray_list_implementation): Update.
26216 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26217 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26218 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26219 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26220 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26221 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26222 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26224 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26225 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26226 (gl_sublist_list_implementation): Update.
26228 2008-02-10 Bruno Haible <bruno@clisp.org>
26230 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26231 Needed when ELEMENT is #defined to 'some_type *'.
26233 2008-02-10 Jim Meyering <meyering@redhat.com>
26235 New script and module: useless-if-before-free
26236 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26237 * build-aux/useless-if-before-free: New file.
26238 * modules/useless-if-before-free: New file.
26240 * build-aux/gitlog-to-changelog: Use committer date, not author date.
26242 xstrtol_error: Fix typo.
26243 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26244 s/exit_failure/exit_status/.
26246 2008-02-09 Jim Meyering <meyering@redhat.com>
26248 New script and module: gitlog-to-changelog
26249 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26250 * modules/gitlog-to-changelog: New file.
26251 * build-aux/gitlog-to-changelog: New file.
26253 2008-02-08 Jim Meyering <meyering@redhat.com>
26255 Avoid two "parameter unused" warnings.
26256 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26259 Use "git COMMAND", not "git-COMMAND".
26260 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26261 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26262 * build-aux/git-version-gen: Use "git status", not "git-status".
26264 2008-02-07 Bruno Haible <bruno@clisp.org>
26266 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26267 Avoids a crash on Windows Vista.
26268 Reported by Adam Strzelecki <ono@java.pl> via
26269 Simon Josefsson <simon@josefsson.org>.
26271 2008-02-06 Bruno Haible <bruno@clisp.org>
26273 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26274 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26275 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26276 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26277 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26278 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26279 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26280 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26281 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26282 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26283 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26284 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26285 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26286 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26287 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26288 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26290 * tests/test-snprintf-posix.h (test_function): Likewise.
26291 * tests/test-sprintf-posix.h (test_function): Likewise.
26292 * tests/test-vasprintf-posix.c (test_function): Likewise.
26293 * doc/posix-functions/fprintf.texi: Update.
26294 * doc/posix-functions/printf.texi: Update.
26295 * doc/posix-functions/snprintf.texi: Update.
26296 * doc/posix-functions/sprintf.texi: Update.
26297 * doc/posix-functions/vfprintf.texi: Update.
26298 * doc/posix-functions/vprintf.texi: Update.
26299 * doc/posix-functions/vsnprintf.texi: Update.
26300 * doc/posix-functions/vsprintf.texi: Update.
26301 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26303 2008-02-06 Bruno Haible <bruno@clisp.org>
26305 Fix bug introduced on 2008-01-26.
26306 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26308 2008-02-06 Bruno Haible <bruno@clisp.org>
26310 Fix bug introduced on 2007-06-10.
26311 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26312 !NEED_PRINTF_FLAG_ZERO.
26314 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
26316 getloadavg: use libperfstat on AIX5
26317 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26319 2008-02-03 Bruno Haible <bruno@clisp.org>
26321 * lib/diffseq.h: Add comments about required #includes.
26322 Reported by Michael Biggs <gnulib@doubleplum.net>.
26324 2008-02-01 Bruno Haible <bruno@clisp.org>
26326 * users.txt: Add gnuit.
26328 2008-01-31 Bruno Haible <bruno@clisp.org>
26330 * lib/md4.c (set_uint32): Mark as inline.
26331 * lib/md5.c (set_uint32): Likewise.
26332 * lib/sha1.c (set_uint32): Likewise.
26333 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26334 * m4/md5.m4 (gl_MD5): Likewise.
26335 * m4/sha1.m4 (gl_SHA1): Likewise.
26337 2008-01-31 Jim Meyering <meyering@redhat.com>
26339 Use "sizeof VAR", rather than a literal "4".
26340 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26341 * lib/md4.c (md4_read_ctx): Likewise.
26342 * lib/sha1.c (sha1_read_ctx): Likewise.
26344 2008-01-31 Simon Josefsson <simon@josefsson.org>
26346 * tests/test-sha1.c: New file, based on test-md5.c.
26348 * modules/crypto/sha1-tests: New file.
26350 2008-01-31 Simon Josefsson <simon@josefsson.org>
26352 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26354 2008-01-31 Jim Meyering <meyering@redhat.com>
26356 Prefer "sizeof v" over the equivalent "4".
26357 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26358 * lib/md5.c (set_uint32): Likewise.
26359 * lib/sha1.c (set_uint32): Likewise.
26361 2008-01-31 Simon Josefsson <simon@josefsson.org>
26363 * lib/sha1.c (set_uint32): Mark function as static.
26365 2008-01-31 Simon Josefsson <simon@josefsson.org>
26367 md2: clarify comments to say that alignment is not required.
26368 * lib/md2.h: Remove warning about alignment in comment.
26369 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26370 never been required.
26372 2008-01-31 Simon Josefsson <simon@josefsson.org>
26374 md4: adapt alignment constraint fix from sha1.
26375 * lib/md4.c (set_uint32): New function, from sha1.c
26376 (md4_read_ctx): Use it.
26377 (md4_finish_ctx): Doc fix.
26378 * lib/md4.h: Doc fix.
26380 2008-01-31 Simon Josefsson <simon@josefsson.org>
26382 md5: adapt alignment constraint fix from sha1.
26383 * lib/md5.c (set_uint32): New function, from sha1.c
26384 (md5_read_ctx): Use it.
26385 (md5_finish_ctx): Doc fix.
26386 * lib/md5.h: Doc fix.
26388 2008-01-30 Peter Palfrader <weasel@debian.org>
26390 sha1: remove the result buffer alignment constraint
26391 * lib/sha1.c (set_uint32): New function.
26392 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26394 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26395 * lib/sha1.h: Likewise.
26397 2008-01-30 Andreas Schwab <schwab@suse.de>
26398 Bruno Haible <bruno@clisp.org>
26400 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26401 correct definition of LDBL_MIN_EXP.
26403 2008-01-30 Karl Berry <karl@gnu.org>
26405 * config/srclist-update: try to preserve x bit on updates.
26406 * config/srclistvars.sh: update for karl.
26408 2008-01-29 Jim Meyering <meyering@redhat.com>
26410 vasnprintf.c: Avoid warning about unused label
26411 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26412 "overflow" label definition and associated code with the
26413 same cpp condition that guards the sole use of that label.
26415 2008-01-26 Bruno Haible <bruno@clisp.org>
26417 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26418 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26419 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26420 * lib/isnanl-nolibm.h (isnanl): Likewise.
26421 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26423 2008-01-26 Bruno Haible <bruno@clisp.org>
26425 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26426 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26428 2008-01-26 Bruno Haible <bruno@clisp.org>
26430 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26431 GCC >= 4.0 built-in.
26432 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26434 2008-01-26 Bruno Haible <bruno@clisp.org>
26436 Rename isnan, applicable to 'double' only, to isnand.
26437 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26438 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26439 (configure.ac): Update.
26440 (Include): Replace "isnan.h" with "isnand.h".
26441 * m4/isnand.m4: Renamed from m4/isnan.m4.
26442 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26443 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26444 instead of isnan.c.
26445 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26446 instead of HAVE_ISNAN_IN_LIBC.
26447 (isnand): Renamed from isnan.
26448 * lib/isnand.c: New file.
26449 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26450 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26451 (Makefile.am): Update.
26452 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26453 Include isnand.h instead of isnan.h.
26454 (main): Test isnand instead of isnan.
26455 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26457 * modules/frexp (Depends-on): Likewise.
26458 * modules/frexp-tests (Depends-on): Likewise.
26459 * modules/frexp-nolibm (Depends-on): Likewise.
26460 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26461 * modules/isfinite (Depends-on): Likewise.
26462 * modules/round-tests (Depends-on): Likewise.
26463 * modules/signbit (Depends-on): Likewise.
26464 * modules/signbit-tests (Depends-on): Likewise.
26465 * modules/snprintf-posix (Depends-on): Likewise.
26466 * modules/sprintf-posix (Depends-on): Likewise.
26467 * modules/trunc-tests (Depends-on): Likewise.
26468 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26469 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26470 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26471 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26472 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26473 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26474 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26475 * modules/vasnprintf-posix (Depends-on): Likewise.
26476 * modules/vasprintf-posix (Depends-on): Likewise.
26477 * modules/vfprintf-posix (Depends-on): Likewise.
26478 * modules/vsnprintf-posix (Depends-on): Likewise.
26479 * modules/vsprintf-posix (Depends-on): Likewise.
26480 * lib/frexp.c: Include isnand.h instead of isnan.h.
26481 (ISNAN): Set to isnand instead of isnan.
26482 * lib/isfinite.c: Include isnand.h instead of isnan.h.
26483 (gl_isfinited): Use isnand instead of isnan.
26484 * lib/signbitd.c: Include isnand.h instead of isnan.h.
26485 (gl_signbitd): Use isnand instead of isnan.
26486 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26487 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26488 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26489 (main): Use isnand instead of isnan.
26490 * tests/test-round1.c: Include isnand.h.
26491 (main): Use isnand instead of isnan.
26492 * tests/test-round2.c: Include isnand.h instead of isnan.h.
26493 (ISNAN): Set to isnand instead of isnan.
26494 * tests/test-trunc1.c: Include isnand.h.
26495 (main): Use isnand instead of isnan.
26496 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26497 (equal): Use isnand instead of isnan.
26498 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26500 * NEWS: Mention the change.
26502 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
26503 Bruno Haible <bruno@clisp.org>
26505 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26506 the GCC builtins for signbits are present and set
26507 REPLACE_SIGNBIT_USING_GCC if so.
26508 * lib/math.in.h (signbit): Define using GCC builtins if
26509 REPLACE_SIGNBIT_USING_GCC is set.
26510 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26511 REPLACE_SIGNBIT_USING_GCC.
26512 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26514 2008-01-25 Jim Meyering <meyering@redhat.com>
26516 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26517 * lib/poll.c: Include <config.h>, not "config.h".
26518 * tests/test-getaddrinfo.c: Likewise.
26520 2008-01-25 Simon Josefsson <simon@josefsson.org>
26522 * modules/sockets-tests: New file.
26524 2008-01-24 Simon Josefsson <simon@josefsson.org>
26526 * modules/sockets: New module, can be used to call WSA_Startup and
26527 WSA_Cleanup when needed.
26529 * lib/sockets.h, lib/sockets.c: New files.
26531 * m4/sockets.m4: New file.
26533 * tests/test-sockets.c: New file.
26535 2008-01-19 Bruno Haible <bruno@clisp.org>
26537 * doc/posix-headers: Renamed from doc/headers.
26538 * doc/posix-functions: Renamed from doc/functions.
26539 * doc/gnulib.texi: Update.
26541 2008-01-19 Bruno Haible <bruno@clisp.org>
26543 * doc/glibc-functions/strcasestr.texi: Include contents of
26544 doc/functions/strcasestr.texi, fixing the list of platforms.
26545 * doc/functions/strcasestr.texi: Remove file.
26547 2008-01-19 Bruno Haible <bruno@clisp.org>
26549 * doc/glibc-functions/memmem.texi: Include contents of
26550 doc/functions/memmem.texi.
26551 * doc/functions/memmem.texi: Remove file.
26553 2008-01-18 Bruno Haible <bruno@clisp.org>
26555 * doc/glibc-functions/*.texi: New files.
26556 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26557 to use the new files.
26559 2008-01-17 Bruno Haible <bruno@clisp.org>
26561 * tests/test-gethostname.c (main): Fix printf statement.
26563 2008-01-17 Simon Josefsson <simon@josefsson.org>
26565 * modules/gethostname-tests: New file.
26567 * tests/test-gethostname.c: New file.
26569 2008-01-17 Simon Josefsson <simon@josefsson.org>
26571 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26572 used by the UNAME case. Reported by Bruno Haible
26575 2008-01-17 Eric Blake <ebb9@byu.net>
26577 Convert c-strcasestr to be more efficient.
26578 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26579 (Depends-on): Add c-strcase, remove malloca, strnlen.
26580 * tests/test-c-strcasestr.c (main): Enhance test.
26581 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26583 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
26585 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26586 Use it in creating po/Makevars.
26588 2008-01-15 Simon Josefsson <simon@josefsson.org>
26590 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26591 Applications that requires it should initialize libgcrypt
26594 2008-01-16 Simon Josefsson <simon@josefsson.org>
26596 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26598 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
26600 Fix problem with getdate on mingw32 reported by Simon Josefsson
26601 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26602 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26603 tzname", when deciding whether to declare tzname.
26604 * lib/strftime.c (tzname): Likewise.
26606 2008-01-15 Bruno Haible <bruno@clisp.org>
26608 Work around a MacOS X 10.5 bug in frexpl().
26609 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26610 * doc/functions/frexpl.texi: Document the bug.
26611 Reported by Elias Pipping <pipping@gentoo.org>.
26613 2008-01-14 Eric Blake <ebb9@byu.net>
26615 Touch up previous patch.
26616 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26617 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26619 Convert strcasestr module to use Two-Way algorithm.
26620 * modules/strcasestr-simple: New module, based on the old
26621 strcasestr, but with Two-Way rather than KMP.
26622 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26623 * lib/string.in.h (rpl_strcasestr): Declare.
26624 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26626 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26627 * modules/string (Makefile.am): Support strcasestr.
26628 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26629 * modules/strcasestr-tests (Depends-on): Check for alarm.
26630 * tests/test-strcasestr.c: Augment test.
26631 * lib/str-two-way.h: Clean up stray macro.
26632 * NEWS: Document new module.
26633 * MODULES.html.sh (string handling): Likewise.
26634 * doc/functions/strcasestr.texi: New file.
26635 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
26636 here, since it is not a POSIX function.
26638 2008-01-14 Colin Watson <cjwatson@debian.org>
26639 Bruno Haible <bruno@clisp.org>
26641 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26642 works fine; if not, set REPLACE_STRSIGNAL.
26643 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26644 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26646 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26647 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26648 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26650 2008-01-14 Bruno Haible <bruno@clisp.org>
26652 * modules/strsignal (Include): Change to <string.h>.
26654 2008-01-14 Colin Watson <cjwatson@debian.org>
26656 * modules/argp (Notice): Add a notice recommending to change
26658 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26660 2008-01-13 Colin Watson <cjwatson@debian.org>
26662 * modules/strsignal-tests: New file.
26663 * tests/test-strsignal.c: New file.
26665 * lib/strsignal.c: New file, from glibc with modifications.
26666 * lib/siglist.h: New file, from glibc with modifications.
26667 * lib/string.in.h (strsignal): New declaration.
26668 * m4/strsignal.m4: New file.
26669 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26670 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26671 * modules/strsignal: New file.
26672 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26673 HAVE_DECL_STRSIGNAL.
26675 2008-01-13 Bruno Haible <bruno@clisp.org>
26677 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26678 locale encoding is not ASCII. Needed for OpenBSD 4.0.
26679 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26680 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26682 2008-01-13 Bruno Haible <bruno@clisp.org>
26684 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26685 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26686 * lib/argp.h (__attribute__): Likewise.
26687 * lib/c-stack.c (__attribute__): Likewise.
26688 * lib/error.h (__attribute__): Likewise.
26689 * lib/fts.c (__attribute__): Likewise.
26690 * lib/openat.h (__attribute__): Likewise.
26691 * lib/stdio.in.h (__attribute__): Likewise.
26692 * lib/string.in.h (__attribute__): Likewise.
26693 * lib/utimens.c (__attribute__): Likewise.
26694 * lib/vasnprintf.h (__attribute__): Likewise.
26695 * lib/xalloc.h (__attribute__): Likewise.
26696 * lib/xprintf.h (__attribute__): Likewise.
26697 * lib/xstrtol.h (__attribute__): Likewise.
26698 * lib/xvasprintf.h (__attribute__): Likewise.
26700 2008-01-12 Bruno Haible <bruno@clisp.org>
26702 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26703 * doc/glibc-headers/a.out.texi: New file.
26704 * doc/glibc-headers/aliases.texi: New file.
26705 * doc/glibc-headers/alloca.texi: New file.
26706 * doc/glibc-headers/ar.texi: New file.
26707 * doc/glibc-headers/argp.texi: New file.
26708 * doc/glibc-headers/argz.texi: New file.
26709 * doc/glibc-headers/byteswap.texi: New file.
26710 * doc/glibc-headers/crypt.texi: New file.
26711 * doc/glibc-headers/endian.texi: New file.
26712 * doc/glibc-headers/envz.texi: New file.
26713 * doc/glibc-headers/err.texi: New file.
26714 * doc/glibc-headers/error.texi: New file.
26715 * doc/glibc-headers/execinfo.texi: New file.
26716 * doc/glibc-headers/fpu_control.texi: New file.
26717 * doc/glibc-headers/fstab.texi: New file.
26718 * doc/glibc-headers/fts.texi: New file.
26719 * doc/glibc-headers/getopt.texi: New file.
26720 * doc/glibc-headers/ieee754.texi: New file.
26721 * doc/glibc-headers/ifaddrs.texi: New file.
26722 * doc/glibc-headers/libintl.texi: New file.
26723 * doc/glibc-headers/mcheck.texi: New file.
26724 * doc/glibc-headers/mntent.texi: New file.
26725 * doc/glibc-headers/obstack.texi: New file.
26726 * doc/glibc-headers/paths.texi: New file.
26727 * doc/glibc-headers/printf.texi: New file.
26728 * doc/glibc-headers/pty.texi: New file.
26729 * doc/glibc-headers/resolv.texi: New file.
26730 * doc/glibc-headers/shadow.texi: New file.
26731 * doc/glibc-headers/sysexits.texi: New file.
26732 * doc/glibc-headers/ttyent.texi: New file.
26734 2008-01-12 Jim Meyering <meyering@redhat.com>
26736 announce-gen: emit Gnulib's git-based version string.
26737 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26738 New option --gnulib-version=V, where V is expected to be
26739 the output of running git describe in the gnulib directory.
26740 (get_tool_versions): Request feedback on xdelta. I suspect it's
26741 not useful, and plan to stop publishing an xdelta file with each
26744 * build-aux/announce-gen: Also check for lzma-compressed files.
26746 2008-01-11 Bruno Haible <bruno@clisp.org>
26748 * tests/test-memmem.c (main): Increase maximum allowed time.
26749 * tests/test-strstr.c (main): Likewise.
26751 2008-01-11 Bruno Haible <bruno@clisp.org>
26753 * doc/functions/memmem.texi: Add more precisions about platforms.
26754 * doc/functions/strstr.texi: Likewise.
26756 2008-01-10 Eric Blake <ebb9@byu.net>
26758 * m4/strstr.m4: Delete cruft from copy-n-paste.
26759 Reported by Bruno Haible.
26761 2008-01-10 Bruno Haible <bruno@clisp.org>
26763 Make c-strstr rely on strstr.
26764 * lib/c-strstr.c: Don't include str-kmp.h.
26765 (c_strstr): Define in terms of strstr.
26766 * modules/c-strstr (Files): Remove lib/str-kmp.h.
26767 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26769 2008-01-10 Bruno Haible <bruno@clisp.org>
26771 * doc/gnulib.texi (String Functions in C Locale): New section.
26772 * doc/c-ctype.texi: New file.
26773 * doc/c-strcase.texi: New file.
26774 * doc/c-strcaseeq.texi: New file.
26775 * doc/c-strcasestr.texi: New file.
26776 * doc/c-strstr.texi: New file.
26777 * doc/c-strtod.texi: New file.
26778 * doc/c-strtold.texi: New file.
26780 2008-01-10 Eric Blake <ebb9@byu.net>
26782 * lib/relocatable.h: Fix a comment.
26784 2008-01-10 Eric Blake <ebb9@byu.net>
26786 Share two-way algorithm.
26787 * lib/str-two-way.h: New file, merged from...
26788 * lib/memmem.c: ...here...
26789 * lib/strstr.c: ...and here.
26790 * modules/memmem (Files): Use it.
26791 * modules/strstr (Files): Likewise.
26793 Avoid quadratic strstr implementations.
26794 * lib/strstr.c: New file.
26795 * m4/strstr.m4: Likewise.
26796 * modules/strstr: Likewise.
26797 * modules/strstr-tests: Likewise.
26798 * tests/test-strstr.c: Likewise.
26799 * lib/string.in.h (rpl_strstr): Declare.
26800 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26801 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26802 * modules/string (Makefile.am): Likewise.
26803 * MODULES.html.sh (string handling): Mention new module.
26804 * doc/functions/strstr.texi (strstr): Document the bug.
26806 2008-01-10 Bruno Haible <bruno@clisp.org>
26808 * lib/relocatable.h (relocate): State whether result is freshly
26810 * lib/relocatable.c (relocate): Return a freshly allocated string
26811 instead of a pointer to a privately held string.
26812 Reported by Sylvain Beucler <beuc@gnu.org>.
26814 2008-01-10 Colin Watson <cjwatson@debian.org>
26816 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26817 s/S_ISNLK/S_ISLNK/.
26819 2008-01-09 Bruno Haible <bruno@clisp.org>
26821 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26823 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26824 if it's only a guess.
26825 * modules/memmem: Simplify by depending on memmem-simple.
26827 2008-01-09 Bruno Haible <bruno@clisp.org>
26829 Work around OpenBSD 4.0 tdelete() bug.
26830 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26831 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26832 macros and don't redefine the enum values.
26833 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26834 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26835 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26837 2008-01-09 Bruno Haible <bruno@clisp.org>
26839 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26840 (main): Don't perform the tests if setlocale did not install a UTF-8
26841 locale. Needed on OpenBSD 4.0.
26842 * modules/wcwidth-tests (Depends-on): Add localcharset.
26844 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
26846 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26847 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26848 * NEWS: announce this.
26849 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26851 2008-01-09 Simon Josefsson <simon@josefsson.org>
26852 and Eric Blake <ebb9@byu.net>
26854 Add memmem-simple module.
26855 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26856 (gl_FUNC_MEMMEM): Separate performance from presence checks.
26857 * modules/memmem-simple: New file.
26858 * modules/memmem (Description): Tweak.
26859 * MODULES.html.sh (string handling): Mention new module.
26860 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26861 addressed by memmem-simple.
26862 * NEWS: Document the difference.
26864 2008-01-09 Eric Blake <ebb9@byu.net>
26866 Give gcc some memmem optimization hints.
26867 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26868 (strcasestr): Declare as pure.
26869 * modules/memmem (Maintainer): Claim my implementation.
26871 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26873 Support AIX 6.1 and higher.
26874 * build-aux/config.libpath: Likewise.
26875 * build-aux/config.rpath: Likewise.
26877 2008-01-08 Jim Meyering <meyering@redhat.com>
26878 Bruno Haible <bruno@clisp.org>
26880 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26881 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26882 Reported by Peter Fales in
26883 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26885 2008-01-08 Bruno Haible <bruno@clisp.org>
26887 * modules/unictype/category-of (Depends-on): Add
26888 unictype/category-none.
26889 * modules/unictype/category-and-tests (Depends-on): Add
26890 unictype/category-{L,N,Lu,Nd}.
26891 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26892 * modules/unictype/category-or-tests (Depends-on): Add
26893 unictype/category-{L,N}.
26894 * modules/unictype/category-name-tests (Depends-on): Add
26895 unictype/category-{Z,Nl}.
26896 Reported by Simon Josefsson.
26898 2008-01-08 Bruno Haible <bruno@clisp.org>
26900 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26902 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26903 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26904 Reported by Peter Miller <millerp@canb.auug.org.au>.
26906 2008-01-08 Eric Blake <ebb9@byu.net>
26908 Rewrite memmem to guarantee linear complexity without malloc.
26909 * lib/memmem.c (memmem): Use Two-Way rather than
26910 Knuth-Morris-Pratt, to allow O(1) space usage.
26911 (critical_factorization, two_way_short_needle)
26912 (two_way_long_needle): New functions.
26913 (knuth_morris_pratt): Delete.
26914 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26916 * tests/test-memmem.c (main): Add tests for periodic needle and
26917 sublinear performance.
26918 * doc/functions/memmem.texi (memmem): Document other deficiencies
26919 in cygwin and older glibc.
26921 2008-01-08 Bruno Haible <bruno@clisp.org>
26923 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26926 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26928 Add a configure time option: --disable-acl.
26929 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26930 AC_ARG_ENABLE(acl).
26932 2008-01-06 Simon Josefsson <simon@josefsson.org>
26934 * tests/test-localename.c: Don't include obsolete "setenv.h".
26936 * modules/localename-tests (Depends-on): Need unsetenv.
26938 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26940 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26942 2008-01-06 Colin Watson <cjwatson@debian.org>
26944 * users.txt: Add man-db.
26946 2008-01-07 Bruno Haible <bruno@clisp.org>
26948 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26949 previous section name.
26951 2008-01-07 Bruno Haible <bruno@clisp.org>
26953 * lib/progname.c (set_program_name): Don't strip off a leading
26954 "lt-" prefix outside a .libs directory.
26955 Suggested by Paul Eggert.
26957 2008-01-01 Sylvain Beucler <beuc@gnu.org>
26958 Bruno Haible <bruno@clisp.org>
26960 Improve memory cleanup in 'relocatable' module.
26961 * lib/relocatable.h (compute_curr_prefix): Change return type to
26963 * lib/relocatable.c (compute_curr_prefix): Change return type to
26964 'char *'. Free curr_installdir after use.
26965 (relocate): Free curr_prefix_better after use.
26966 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26968 2008-01-01 Bruno Haible <bruno@clisp.org>
26970 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26971 failure on older glibc systems.
26972 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26974 2008-01-05 Eric Blake <ebb9@byu.net>
26976 Avoid quadratic system memmem.
26977 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26978 Reported by Ralf Wildenhues.
26980 Fix memmem test for mingw.
26981 * modules/memmem-tests (configure.ac): Check for alarm.
26982 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26984 * doc/functions/memmem.texi: New file.
26985 * doc/gnulib.texi (Function Substitutes): Add memmem.
26986 Reported by Bruno Haible.
26988 2008-01-04 Bruno Haible <bruno@clisp.org>
26990 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26991 Require gl_HEADER_STRINGS_H_DEFAULTS, not
26992 gl_HEADER_STRING_H_DEFAULTS.
26994 2008-01-04 Eric Blake <ebb9@byu.net>
26996 Shorten duration of memmem test.
26997 * tests/test-memmem.c (main): Use alarm to declare failure if test
26998 is taking too long.
26999 Reported by Ralf Wildenhues.
27001 2007-12-21 Simon Josefsson <simon@josefsson.org>
27003 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27004 string, needed by strerror.
27006 2008-01-03 Colin Watson <cjwatson@debian.org>
27007 Bruno Haible <bruno@clisp.org>
27009 * doc/gnulib-tool.texi (Localization): New section.
27011 2008-01-02 Bruno Haible <bruno@clisp.org>
27013 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27014 variables to 'unsigned char *' type.
27015 Reported by Paul Eggert.
27017 2008-01-02 Jim Meyering <jim@meyering.net>
27019 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27021 2007-12-31 Jim Meyering <jim@meyering.net>
27023 Avoid use of private FTS type name.
27024 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27026 2007-12-30 Karl Berry <karl@gnu.org>
27028 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27029 work around defect in Texinfo and/or the standalone Info browser.
27031 2007-12-30 Bruno Haible <bruno@clisp.org>
27033 Unify 5 copies of the KMP code.
27034 * lib/str-kmp.h: New file.
27035 * lib/c-strcasestr.c: Include str-kmp.h.
27036 (knuth_morris_pratt): Remove function.
27037 (c_strcasestr): Update.
27038 * lib/c-strstr.c: Include str-kmp.h.
27039 (knuth_morris_pratt): Remove function.
27040 (c_strcasestr): Update.
27041 * lib/mbscasestr.c: Include str-kmp.h.
27042 (knuth_morris_pratt_unibyte): Remove function.
27043 * lib/mbsstr.c: Include str-kmp.h.
27044 (knuth_morris_pratt_unibyte): Remove function.
27045 * lib/strcasestr.c: Include str-kmp.h.
27046 (knuth_morris_pratt): Remove function.
27047 (strcasestr): Update.
27048 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27049 * modules/c-strstr (Files): Likewise.
27050 * modules/mbscasestr (Files): Likewise.
27051 * modules/mbsstr (Files): Likewise.
27052 * modules/strcasestr (Files): Likewise.
27053 Suggested by Paul Eggert.
27055 2007-12-30 Bruno Haible <bruno@clisp.org>
27057 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27060 2007-12-30 Bruno Haible <bruno@clisp.org>
27062 * lib/xmalloca.h: Include xalloc.h.
27063 (xnmalloca): New macro.
27065 2007-12-30 Bruno Haible <bruno@clisp.org>
27067 * lib/malloca.h (nmalloca): New macro.
27068 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27069 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27070 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27071 knuth_morris_pratt_multibyte): Likewise.
27072 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27073 knuth_morris_pratt_multibyte): Likewise.
27074 * lib/memmem.c (knuth_morris_pratt): Likewise.
27075 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27077 2007-12-25 Bruno Haible <bruno@clisp.org>
27079 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27080 * lib/glob.c: Don't include openat.h.
27081 (link_exists2_p): Add back the code that deals with the
27082 !GLOB_ALTDIRFUNC case.
27083 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27084 let it do the filename concatenation.
27085 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27086 * modules/glob (Depends-on): Remove openat.
27088 2007-12-31 Bruno Haible <bruno@clisp.org>
27090 * modules/dirfd (License): Change to LGPLv2+.
27091 Approved by Jim Meyering.
27093 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
27095 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27096 when multiplying M by sizeof (size_t).
27098 2007-12-10 Martin Lambers <marlam@marlam.de>
27100 Override getpagesize on mingw.
27101 * lib/getpagesize.c: New file.
27102 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27103 * modules/getpagesize (Files): Add lib/getpagesize.c.
27104 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27105 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27106 REPLACE_GETPAGESIZE.
27107 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27109 2007-12-25 Bruno Haible <bruno@clisp.org>
27111 * modules/localcharset (Notice): New field.
27112 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27113 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27115 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
27116 Bruno Haible <bruno@clisp.org>
27118 Avoid using the syntax symbol() in formatted documentation.
27119 * MODULES.html.sh (func_module): When replacing symbol() with a
27120 hyperlink, remove the parentheses. Show an error if some remain.
27121 Recognize and render the '...' syntax.
27122 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27123 Rework. Add paragraph about GCC's inlining.
27124 * doc/alloca.texi: Likewise.
27125 * doc/error.texi: Remove parentheses from symbol reference.
27126 * doc/gnulib-intro.texi: Likewise.
27127 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27128 * modules/fnmatch (Description): Reword to say "the ... function".
27129 * modules/full-read (Description): Likewise.
27130 * modules/full-write (Description): Likewise.
27131 * modules/safe-read (Description): Likewise.
27132 * modules/safe-write (Description): Likewise.
27133 * modules/strchrnul (Description): Likewise.
27134 * modules/trim (Description): Likewise.
27135 * modules/error (Description): Remove parentheses from symbol
27137 * modules/verror (Description): Likewise.
27138 Reported by Karl Berry.
27140 2007-12-25 Bruno Haible <bruno@clisp.org>
27142 Fixup after 2007-10-16 commit.
27143 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27145 2007-12-24 Bruno Haible <bruno@clisp.org>
27147 Make --enable-relocatable work with DESTDIR.
27148 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27149 to compute installdir from destprog.
27150 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27151 also set the RELOC_DESTDIR variable.
27152 Reported by Левашев Иван <octagram@bluebottle.com>.
27154 2007-12-24 Bruno Haible <bruno@clisp.org>
27156 Fix link error due to xalloc_die().
27157 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27159 * lib/relocwrapper.c: Update comments.
27160 * build-aux/install-reloc: Remove xreadlink.c from file list.
27161 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27163 Reported by Левашев Иван <octagram@bluebottle.com>.
27165 2007-12-24 Bruno Haible <bruno@clisp.org>
27167 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27168 * lib/setenv.h: Remove file.
27169 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27171 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27172 (Depends-on): Add stdlib.
27173 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27175 (Include): Replace setenv.h with <stdlib.h>.
27176 * modules/unsetenv: New file.
27177 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27178 * lib/unsetenv.c: Include <stdlib.h> first.
27179 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27180 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27181 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27182 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27183 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27184 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27185 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27186 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27187 * doc/functions/unsetenv.texi: Update.
27188 * modules/xsetenv (Depends-on): Add unsetenv.
27189 * modules/getdate (Depends-on): Likewise.
27190 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27191 * lib/xsetenv.c: Don't include setenv.h.
27192 * lib/getdate.y: Likewise.
27193 * lib/relocwrapper.c: Likewise.
27194 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27195 (Depends-on): Add stdlib.
27196 * NEWS: Mention the changes.
27197 Reported by Левашев Иван <octagram@bluebottle.com>.
27199 2007-12-23 Bruno Haible <bruno@clisp.org>
27201 * lib/memmem.c (memmem): Use lowercase variable names. Tab
27204 2007-12-23 Bruno Haible <bruno@clisp.org>
27206 * lib/c-strcasestr.c: Add more comments.
27207 * lib/c-strstr.c: Likewise.
27208 * lib/mbscasestr.c: Likewise.
27209 * lib/mbsstr.c: Likewise.
27210 * lib/strcasestr.c: Likewise.
27211 * lib/memmem.c: Likewise.
27213 2007-12-23 Bruno Haible <bruno@clisp.org>
27215 * tests/test-memmem.c: Include <string.h> first.
27217 2007-12-22 Bruno Haible <bruno@clisp.org>
27219 * gnulib-tool (func_create_testdir): Change $auxdir while generating
27220 the contents of $testsbase.
27221 Reported by Ralf Wildenhues.
27223 2007-12-22 Bruno Haible <bruno@clisp.org>
27225 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27226 two variables local_ldadd_before, local_ldadd_last.
27228 2007-12-20 Eric Blake <ebb9@byu.net>
27230 Work around circular library issue when cross-compiling.
27231 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27232 that progname.o does not need to pull in rpl_memcmp.
27234 2007-12-19 Eric Blake <ebb9@byu.net>
27236 Fix memmem to avoid O(n^2) worst-case complexity.
27237 * lib/memmem.c (knuth_morris_pratt): New function.
27238 (memmem): Use it if first few naive iterations fail.
27239 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27240 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27241 * modules/memchr (License): Likewise.
27242 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27244 * tests/test-memmem.c: Rewrite, borrowing ideas from
27245 test-mbsstr1.c; the old version wouldn't even compile!
27246 * modules/memmem-tests: New file.
27247 * lib/string.in.h (rpl_memmem): Add declaration.
27248 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27249 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27252 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
27254 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27255 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27256 before any system include files, and undef after them all. This
27257 should fix a problem on VMS reported by John E. Malmberg in
27258 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27260 2007-12-17 Eric Blake <ebb9@byu.net>
27262 Revert addition of verify, for BSD/OS.
27263 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27264 can't handle large files, for the sake of obsolete platforms.
27265 * modules/fseeko (Depends-on): Remove verify.
27266 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27267 * doc/functions/ftello.texi (ftello): Likewise.
27268 * doc/functions/fgetpos.texi (fgetpos): Likewise.
27269 Reported by Larry Jones.
27271 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
27273 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27274 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27276 2007-12-17 Jim Meyering <meyering@redhat.com>
27278 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27279 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27280 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27281 * modules/getcwd (Depends-on): Add openat.
27282 Reported by Petr Salinger.
27284 2007-12-17 Bruno Haible <bruno@clisp.org>
27286 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27287 avoid a segmentation fault of the configure test on x86_64 systems.
27289 2007-12-15 Jim Meyering <meyering@redhat.com>
27291 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27293 2007-12-13 Eric Blake <ebb9@byu.net>
27295 Another fseek test.
27296 * tests/test-fseek.c (main): Also test ungetc handling.
27297 * tests/test-fseeko.c (main): Likewise.
27298 * modules/fseeko (Depends-on): Add verify.
27299 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27301 Reported by Larry Jones.
27303 Fix fseeko on mingw.
27304 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27307 Beef up fseek tests.
27308 * tests/test-fseek.c (main): Also test eof handling.
27309 * tests/test-fseeko.c (main): Likewise.
27310 Reported by Larry Jones.
27312 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
27314 Fix fseeko on BSD-based platforms.
27315 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27318 2007-12-12 Eric Blake <ebb9@byu.net>
27320 Allow circular dependency of separate libtests.a
27321 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27324 2007-12-11 Eric Blake <ebb9@byu.net>
27326 Fix bug with -0.0L in previous patch.
27327 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27328 * tests/test-isnan.c (main): Also test on zeroes.
27329 * tests/test-isnanf.c (main): Likewise.
27330 * tests/test-isnanl.h (main): Likewise.
27332 Detect pseudo-denormals on x86 even when cross-compiling.
27333 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27334 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27335 invalid bit patterns that happen to satisfy ==.
27337 Avoid link failures with separate libtests.a.
27338 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27339 last, to satisfy circular dependencies.
27341 2007-12-11 Eric Blake <ebb9@byu.net>
27342 and Bruno Haible <bruno@clisp.org>
27344 Fix OpenBSD 4.0 <float.h> handling of long double.
27345 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27346 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27347 * doc/headers/float.texi (float.h): Document OpenBSD bug.
27349 2007-12-11 Jim Meyering <meyering@redhat.com>
27351 * users.txt: Add libvirt.
27353 Support versions of autoconf prior to 2.59c.
27354 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27355 if it is not already defined.
27357 2007-12-09 Bruno Haible <bruno@clisp.org>
27359 Let 'gnulib-tool --import' collect sources needed for the tests in
27360 tests/ rather than in lib/.
27361 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27362 argument. If true, add rules to generate libtests.a, and put libtests.a
27363 into $(LDADD). Consider source files in subdirectories and set
27365 (func_emit_initmacro_start, func_emit_initmacro_end,
27366 func_emit_initmacro_done): Pass all arguments explicitly.
27367 (func_import): Determine two module lists main_modules,
27368 testsrelated_modules. Determine use_libtests. Determine two variables
27369 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27370 instead of just sed_transform_lib_file. Determine two variables
27371 main_files and testsrelated_files. Compute 'files' as the union of
27372 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27373 func_add_or_update. In the generated gnulib-comp.m4, collect the
27374 object files for tests/ in different variables than those for lib/.
27375 Substitute LIBTESTS_LIBDEPS.
27376 (func_create_testdir): Combine the uses_subdirs results from
27377 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27379 2007-12-09 Bruno Haible <bruno@clisp.org>
27381 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27382 the build-aux directory.
27384 2007-12-09 Bruno Haible <bruno@clisp.org>
27386 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27387 introduced on 2006-09-09.
27389 2007-12-07 Jim Meyering <meyering@redhat.com>
27391 Let these macros work also with autoconf-2.59.
27392 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27393 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27394 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27396 2007-12-06 Jim Meyering <meyering@redhat.com>
27398 Avoid a configure-time syntax error in gl_FUNC_ACL.
27399 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27400 function in each branch, before testing the cache variable.
27402 2007-12-04 Eric Blake <ebb9@byu.net>
27404 Make scripts executable.
27405 * build-aux/config.guess: Add execute permissions.
27406 * build-aux/config.sub: Likewise.
27407 * build-aux/gendocs.sh: Likewise.
27409 Fix frexp on mingw.
27410 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27412 * doc/functions/frexp.texi (frexp): Document the bug.
27414 Make cygwin fseeko check more reliable.
27415 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27416 version numbers, rather than unrelated feature check.
27417 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27418 * doc/functions/ftello.texi (ftello): Likewise.
27419 Reported by Bruno Haible.
27421 * m4/strerror.m4: Bump version number.
27423 2007-12-03 Bruno Haible <bruno@clisp.org>
27425 * doc/functions/mprotect.texi: Mention the mingw problem.
27427 2007-12-03 Eric Blake <ebb9@byu.net>
27429 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27430 REPLACE_STRERROR is initialized before this macro.
27432 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27434 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27435 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27436 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27437 put -lsec in even for programs other than 'ls'. This fixes a problem
27438 for gettext reported by Bruno Haible in
27439 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27440 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27441 Add support for Solaris 10. This isn't efficient, but should get the
27444 2007-12-03 James Youngman <jay@gnu.org>
27446 * doc/regexprops-generic.texi: change "an close-group" to "a
27447 close-group" and "illegal" to "not allowed".
27449 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27451 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27452 pr_byname.h. Needed for the rare case when the maintainer has done
27453 "make maintainer-clean" in the source directory and then attempts a
27454 build outside the source directory.
27455 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27458 2007-12-02 Martin Lambers <marlam@marlam.de>
27459 Bruno Haible <bruno@clisp.org>
27461 * lib/getpagesize.h: Remove file.
27462 * lib/unistd.in.h: Include declaration of getpagesize here.
27463 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27464 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27466 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27467 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27468 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27469 (Depends-on): Add unistd.
27470 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27471 (Include): Use <unistd.h> instead of getpagesize.h.
27472 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27473 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27474 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27475 gl_GETPAGESIZE invocation, already handled by module dependency.
27476 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27478 2007-12-02 Bruno Haible <bruno@clisp.org>
27480 * modules/strings-tests: New file.
27481 * tests/test-strings.c: New file.
27483 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27484 * lib/strings.in.h: New file.
27485 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27486 * m4/strings_h.m4: New file.
27487 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27488 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27489 * modules/strings: New file.
27490 * modules/string (Makefile.am): Update.
27491 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27492 Reported by Karl Berry.
27494 2007-12-01 Eric Blake <ebb9@byu.net>
27496 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27497 accomodate fix in cygwin 1.5.25.
27499 2007-12-01 Jim Meyering <meyering@redhat.com>
27501 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27502 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27503 that would inhibit utf8-optimization of a regexp containing line-
27504 or buffer-anchors, e.g., `^', `$'.
27506 2007-11-30 Bruno Haible <bruno@clisp.org>
27508 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27509 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27510 glthread_recursive_lock_init.
27511 * lib/lock.c (glthread_recursive_lock_init)
27512 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27513 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27515 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27517 New function qset_acl, like set_acl but with syscall semantics.
27518 * lib/acl.h (qset_acl): New decl.
27519 * lib/acl.c (qset_acl): New function.
27520 (set_acl): Use new function. Use more-consistent diagnostics.
27522 2007-11-28 Jim Meyering <meyering@redhat.com>
27524 * modules/physmem (License): Change from GPL to LGPLv2+.
27526 2007-11-26 Bruno Haible <bruno@clisp.org>
27528 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27529 'long double' type has excess precision.
27530 Reported by Jim Meyering in
27531 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27533 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27535 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27536 Sync from <http://gnu.org/licenses>.
27537 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27538 with license text from same location.
27539 * doc/maintain.texi, doc/standards.texi: Sync from
27540 <http://savannah.gnu.org/projects/gnustandards>.
27542 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
27543 and Jim Meyering <meyering@redhat.com>
27545 Adjust getdate' grammar to accept a slightly more regular language.
27546 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27547 Before, the former was rejected.
27548 * lib/getdate.y (digits_to_date_time): New function, factored
27550 (number): ...here. Just call digits_to_date_time.
27551 (hybrid): New non-terminal to handle an <unsigned number,
27552 signed relative offset> sequence consistently.
27554 2007-11-18 Jim Meyering <meyering@redhat.com>
27556 Pull my changes from coreutils:
27557 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27558 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27559 use of $gnulib_tool_option_extras, so that it's separated from the
27560 preceding argument.
27562 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27563 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27564 parent destination directories before copying a file into place.
27566 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27568 bootstrap: work also with 4-argument variant of AC_INIT
27569 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27571 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27573 Port test-getaddrinfo to Solaris.
27574 Problem reported by Bruno Haible in
27575 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27576 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27577 explanation of setting 'hints'.
27578 Don't reject an implementation merely because it returns EAI_SERVICE.
27579 (EAI_SERVICE): Define to 0 if not defined.
27581 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
27583 The license of gnu-make and posix-shell is now "GPLed build tool".
27584 * modules/gnu-make (License): Likewise.
27585 * modules/posix-shell (License): Likewise.
27587 New module posix-shell, for determining a POSIX shell
27588 or perhaps something that is close enough to a POSIX shell.
27589 * m4/posix-shell.m4: New file.
27590 * modules/posix-shell: New file.
27592 * MODULES.html.sh: Mention new module.
27594 New module gnu-make, for determining whether we're using GNU Make.
27595 * m4/gnu-make.m4: New file.
27596 * modules/gnu-make: New file.
27597 * MODULES.html.sh: Mention new module.
27599 2007-11-14 Jim Meyering <meyering@redhat.com>
27601 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27602 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27603 use this macro to create a function _definition_.
27604 Remove useless "#undef ARGMATCH_DIE".
27606 2007-11-14 Bruno Haible <bruno@clisp.org>
27608 * lib/config.charset: Update for OpenBSD 4.1.
27609 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27611 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
27613 Document 64-bit #if problems in stdint.texi.
27614 * doc/headers/stdint.texi (stdint.h): Mention problems with
27615 64-bit-#if, and how to work around them.
27617 Don't insist on 'long long int' support in the preprocessor. It
27618 breaks too many things. For example, PRIdMAX still uses a 'long
27619 long int' format with the latest Sun compiler, even though
27620 HAVE_LONG_LONG_INT isn't defined due to that compiler's
27621 preprocessor problem. This causes the latest coreutils to dump
27622 core on Solaris 10 sparc with the Sun C compiler.
27623 Instead, fix the 2007-10-16 problem in a different way, by evaluating
27624 the troublesome expressions at configure-time, not at #if-time.
27625 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27627 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27628 compile-time C checks, done at 'configure'-time.
27629 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27630 * modules/inttypes (Makefile): Substitute the new symbols that
27631 gl_INTTYPES_H now generates.
27632 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27634 2007-11-12 Bruno Haible <bruno@clisp.org>
27636 Tests for Unicode character classification functions.
27638 * modules/unictype/bidicategory-byname-tests: New file.
27639 * modules/unictype/bidicategory-name-tests: New file.
27640 * modules/unictype/bidicategory-of-tests: New file.
27641 * modules/unictype/bidicategory-test-tests: New file.
27642 * modules/unictype/block-list-tests: New file.
27643 * modules/unictype/block-of-tests: New file.
27644 * modules/unictype/block-test-tests: New file.
27645 * modules/unictype/category-C-tests: New file.
27646 * modules/unictype/category-Cc-tests: New file.
27647 * modules/unictype/category-Cf-tests: New file.
27648 * modules/unictype/category-Cn-tests: New file.
27649 * modules/unictype/category-Co-tests: New file.
27650 * modules/unictype/category-Cs-tests: New file.
27651 * modules/unictype/category-L-tests: New file.
27652 * modules/unictype/category-Ll-tests: New file.
27653 * modules/unictype/category-Lm-tests: New file.
27654 * modules/unictype/category-Lo-tests: New file.
27655 * modules/unictype/category-Lt-tests: New file.
27656 * modules/unictype/category-Lu-tests: New file.
27657 * modules/unictype/category-M-tests: New file.
27658 * modules/unictype/category-Mc-tests: New file.
27659 * modules/unictype/category-Me-tests: New file.
27660 * modules/unictype/category-Mn-tests: New file.
27661 * modules/unictype/category-N-tests: New file.
27662 * modules/unictype/category-Nd-tests: New file.
27663 * modules/unictype/category-Nl-tests: New file.
27664 * modules/unictype/category-No-tests: New file.
27665 * modules/unictype/category-P-tests: New file.
27666 * modules/unictype/category-Pc-tests: New file.
27667 * modules/unictype/category-Pd-tests: New file.
27668 * modules/unictype/category-Pe-tests: New file.
27669 * modules/unictype/category-Pf-tests: New file.
27670 * modules/unictype/category-Pi-tests: New file.
27671 * modules/unictype/category-Po-tests: New file.
27672 * modules/unictype/category-Ps-tests: New file.
27673 * modules/unictype/category-S-tests: New file.
27674 * modules/unictype/category-Sc-tests: New file.
27675 * modules/unictype/category-Sk-tests: New file.
27676 * modules/unictype/category-Sm-tests: New file.
27677 * modules/unictype/category-So-tests: New file.
27678 * modules/unictype/category-Z-tests: New file.
27679 * modules/unictype/category-Zl-tests: New file.
27680 * modules/unictype/category-Zp-tests: New file.
27681 * modules/unictype/category-Zs-tests: New file.
27682 * modules/unictype/category-and-not-tests: New file.
27683 * modules/unictype/category-and-tests: New file.
27684 * modules/unictype/category-byname-tests: New file.
27685 * modules/unictype/category-name-tests: New file.
27686 * modules/unictype/category-none-tests: New file.
27687 * modules/unictype/category-of-tests: New file.
27688 * modules/unictype/category-or-tests: New file.
27689 * modules/unictype/category-test-withtable-tests: New file.
27690 * modules/unictype/combining-class-tests: New file.
27691 * modules/unictype/ctype-alnum-tests: New file.
27692 * modules/unictype/ctype-alpha-tests: New file.
27693 * modules/unictype/ctype-blank-tests: New file.
27694 * modules/unictype/ctype-cntrl-tests: New file.
27695 * modules/unictype/ctype-digit-tests: New file.
27696 * modules/unictype/ctype-graph-tests: New file.
27697 * modules/unictype/ctype-lower-tests: New file.
27698 * modules/unictype/ctype-print-tests: New file.
27699 * modules/unictype/ctype-punct-tests: New file.
27700 * modules/unictype/ctype-space-tests: New file.
27701 * modules/unictype/ctype-upper-tests: New file.
27702 * modules/unictype/ctype-xdigit-tests: New file.
27703 * modules/unictype/decimal-digit-tests: New file.
27704 * modules/unictype/digit-tests: New file.
27705 * modules/unictype/mirror-tests: New file.
27706 * modules/unictype/numeric-tests: New file.
27707 * modules/unictype/property-alphabetic-tests: New file.
27708 * modules/unictype/property-ascii-hex-digit-tests: New file.
27709 * modules/unictype/property-bidi-arabic-digit-tests: New file.
27710 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27711 * modules/unictype/property-bidi-block-separator-tests: New file.
27712 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27713 * modules/unictype/property-bidi-common-separator-tests: New file.
27714 * modules/unictype/property-bidi-control-tests: New file.
27715 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27716 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27717 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27718 * modules/unictype/property-bidi-european-digit-tests: New file.
27719 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27720 * modules/unictype/property-bidi-left-to-right-tests: New file.
27721 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27722 * modules/unictype/property-bidi-other-neutral-tests: New file.
27723 * modules/unictype/property-bidi-pdf-tests: New file.
27724 * modules/unictype/property-bidi-segment-separator-tests: New file.
27725 * modules/unictype/property-bidi-whitespace-tests: New file.
27726 * modules/unictype/property-byname-tests: New file.
27727 * modules/unictype/property-combining-tests: New file.
27728 * modules/unictype/property-composite-tests: New file.
27729 * modules/unictype/property-currency-symbol-tests: New file.
27730 * modules/unictype/property-dash-tests: New file.
27731 * modules/unictype/property-decimal-digit-tests: New file.
27732 * modules/unictype/property-default-ignorable-code-point-tests: New file.
27733 * modules/unictype/property-deprecated-tests: New file.
27734 * modules/unictype/property-diacritic-tests: New file.
27735 * modules/unictype/property-extender-tests: New file.
27736 * modules/unictype/property-format-control-tests: New file.
27737 * modules/unictype/property-grapheme-base-tests: New file.
27738 * modules/unictype/property-grapheme-extend-tests: New file.
27739 * modules/unictype/property-grapheme-link-tests: New file.
27740 * modules/unictype/property-hex-digit-tests: New file.
27741 * modules/unictype/property-hyphen-tests: New file.
27742 * modules/unictype/property-id-continue-tests: New file.
27743 * modules/unictype/property-id-start-tests: New file.
27744 * modules/unictype/property-ideographic-tests: New file.
27745 * modules/unictype/property-ids-binary-operator-tests: New file.
27746 * modules/unictype/property-ids-trinary-operator-tests: New file.
27747 * modules/unictype/property-ignorable-control-tests: New file.
27748 * modules/unictype/property-iso-control-tests: New file.
27749 * modules/unictype/property-join-control-tests: New file.
27750 * modules/unictype/property-left-of-pair-tests: New file.
27751 * modules/unictype/property-line-separator-tests: New file.
27752 * modules/unictype/property-logical-order-exception-tests: New file.
27753 * modules/unictype/property-lowercase-tests: New file.
27754 * modules/unictype/property-math-tests: New file.
27755 * modules/unictype/property-non-break-tests: New file.
27756 * modules/unictype/property-not-a-character-tests: New file.
27757 * modules/unictype/property-numeric-tests: New file.
27758 * modules/unictype/property-other-alphabetic-tests: New file.
27759 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27760 * modules/unictype/property-other-grapheme-extend-tests: New file.
27761 * modules/unictype/property-other-id-continue-tests: New file.
27762 * modules/unictype/property-other-id-start-tests: New file.
27763 * modules/unictype/property-other-lowercase-tests: New file.
27764 * modules/unictype/property-other-math-tests: New file.
27765 * modules/unictype/property-other-uppercase-tests: New file.
27766 * modules/unictype/property-paired-punctuation-tests: New file.
27767 * modules/unictype/property-paragraph-separator-tests: New file.
27768 * modules/unictype/property-pattern-syntax-tests: New file.
27769 * modules/unictype/property-pattern-white-space-tests: New file.
27770 * modules/unictype/property-private-use-tests: New file.
27771 * modules/unictype/property-punctuation-tests: New file.
27772 * modules/unictype/property-quotation-mark-tests: New file.
27773 * modules/unictype/property-radical-tests: New file.
27774 * modules/unictype/property-sentence-terminal-tests: New file.
27775 * modules/unictype/property-soft-dotted-tests: New file.
27776 * modules/unictype/property-space-tests: New file.
27777 * modules/unictype/property-terminal-punctuation-tests: New file.
27778 * modules/unictype/property-test-tests: New file.
27779 * modules/unictype/property-titlecase-tests: New file.
27780 * modules/unictype/property-unassigned-code-value-tests: New file.
27781 * modules/unictype/property-unified-ideograph-tests: New file.
27782 * modules/unictype/property-uppercase-tests: New file.
27783 * modules/unictype/property-variation-selector-tests: New file.
27784 * modules/unictype/property-white-space-tests: New file.
27785 * modules/unictype/property-xid-continue-tests: New file.
27786 * modules/unictype/property-xid-start-tests: New file.
27787 * modules/unictype/property-zero-width-tests: New file.
27788 * modules/unictype/scripts-tests: New file.
27789 * modules/unictype/syntax-c-ident-tests: New file.
27790 * modules/unictype/syntax-c-whitespace-tests: New file.
27791 * modules/unictype/syntax-java-ident-tests: New file.
27792 * modules/unictype/syntax-java-whitespace-tests: New file.
27793 * tests/unictype/test-bidi_byname.c: New file.
27794 * tests/unictype/test-bidi_name.c: New file.
27795 * tests/unictype/test-bidi_of.c: New file.
27796 * tests/unictype/test-bidi_test.c: New file.
27797 * tests/unictype/test-block_list.c: New file.
27798 * tests/unictype/test-block_of.c: New file.
27799 * tests/unictype/test-block_test.c: New file.
27800 * tests/unictype/test-categ_and.c: New file.
27801 * tests/unictype/test-categ_and_not.c: New file.
27802 * tests/unictype/test-categ_byname.c: New file.
27803 * tests/unictype/test-categ_name.c: New file.
27804 * tests/unictype/test-categ_none.c: New file.
27805 * tests/unictype/test-categ_of.c: New file.
27806 * tests/unictype/test-categ_or.c: New file.
27807 * tests/unictype/test-categ_test_withtable.c: New file.
27808 * tests/unictype/test-combining.c: New file.
27809 * tests/unictype/test-decdigit.c: New file.
27810 * tests/unictype/test-digit.c: New file.
27811 * tests/unictype/test-mirror.c: New file.
27812 * tests/unictype/test-numeric.c: New file.
27813 * tests/unictype/test-pr_byname.c: New file.
27814 * tests/unictype/test-pr_test.c: New file.
27815 * tests/unictype/test-predicate-part1.h: New file.
27816 * tests/unictype/test-predicate-part2.h: New file.
27817 * tests/unictype/test-scripts.c: New file.
27818 * tests/unictype/test-sy_c_ident.c: New file.
27819 * tests/unictype/test-sy_java_ident.c: New file.
27821 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27823 * tests/unictype/test-categ_Cc.c: Likewise.
27824 * tests/unictype/test-categ_Cf.c: Likewise.
27825 * tests/unictype/test-categ_Cn.c: Likewise.
27826 * tests/unictype/test-categ_Co.c: Likewise.
27827 * tests/unictype/test-categ_Cs.c: Likewise.
27828 * tests/unictype/test-categ_L.c: Likewise.
27829 * tests/unictype/test-categ_Ll.c: Likewise.
27830 * tests/unictype/test-categ_Lm.c: Likewise.
27831 * tests/unictype/test-categ_Lo.c: Likewise.
27832 * tests/unictype/test-categ_Lt.c: Likewise.
27833 * tests/unictype/test-categ_Lu.c: Likewise.
27834 * tests/unictype/test-categ_M.c: Likewise.
27835 * tests/unictype/test-categ_Mc.c: Likewise.
27836 * tests/unictype/test-categ_Me.c: Likewise.
27837 * tests/unictype/test-categ_Mn.c: Likewise.
27838 * tests/unictype/test-categ_N.c: Likewise.
27839 * tests/unictype/test-categ_Nd.c: Likewise.
27840 * tests/unictype/test-categ_Nl.c: Likewise.
27841 * tests/unictype/test-categ_No.c: Likewise.
27842 * tests/unictype/test-categ_P.c: Likewise.
27843 * tests/unictype/test-categ_Pc.c: Likewise.
27844 * tests/unictype/test-categ_Pd.c: Likewise.
27845 * tests/unictype/test-categ_Pe.c: Likewise.
27846 * tests/unictype/test-categ_Pf.c: Likewise.
27847 * tests/unictype/test-categ_Pi.c: Likewise.
27848 * tests/unictype/test-categ_Po.c: Likewise.
27849 * tests/unictype/test-categ_Ps.c: Likewise.
27850 * tests/unictype/test-categ_S.c: Likewise.
27851 * tests/unictype/test-categ_Sc.c: Likewise.
27852 * tests/unictype/test-categ_Sk.c: Likewise.
27853 * tests/unictype/test-categ_Sm.c: Likewise.
27854 * tests/unictype/test-categ_So.c: Likewise.
27855 * tests/unictype/test-categ_Z.c: Likewise.
27856 * tests/unictype/test-categ_Zl.c: Likewise.
27857 * tests/unictype/test-categ_Zp.c: Likewise.
27858 * tests/unictype/test-categ_Zs.c: Likewise.
27859 * tests/unictype/test-ctype_alnum.c: Likewise.
27860 * tests/unictype/test-ctype_alpha.c: Likewise.
27861 * tests/unictype/test-ctype_blank.c: Likewise.
27862 * tests/unictype/test-ctype_cntrl.c: Likewise.
27863 * tests/unictype/test-ctype_digit.c: Likewise.
27864 * tests/unictype/test-ctype_graph.c: Likewise.
27865 * tests/unictype/test-ctype_lower.c: Likewise.
27866 * tests/unictype/test-ctype_print.c: Likewise.
27867 * tests/unictype/test-ctype_punct.c: Likewise.
27868 * tests/unictype/test-ctype_space.c: Likewise.
27869 * tests/unictype/test-ctype_upper.c: Likewise.
27870 * tests/unictype/test-ctype_xdigit.c: Likewise.
27871 * tests/unictype/test-decdigit.h: Likewise.
27872 * tests/unictype/test-digit.h: Likewise.
27873 * tests/unictype/test-numeric.h: Likewise.
27874 * tests/unictype/test-pr_alphabetic.c: Likewise.
27875 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27876 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27877 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27878 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27879 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27880 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27881 * tests/unictype/test-pr_bidi_control.c: Likewise.
27882 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27883 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27884 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27885 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27886 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27887 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27888 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27889 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27890 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27891 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27892 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27893 * tests/unictype/test-pr_combining.c: Likewise.
27894 * tests/unictype/test-pr_composite.c: Likewise.
27895 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27896 * tests/unictype/test-pr_dash.c: Likewise.
27897 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27898 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27899 * tests/unictype/test-pr_deprecated.c: Likewise.
27900 * tests/unictype/test-pr_diacritic.c: Likewise.
27901 * tests/unictype/test-pr_extender.c: Likewise.
27902 * tests/unictype/test-pr_format_control.c: Likewise.
27903 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27904 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27905 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27906 * tests/unictype/test-pr_hex_digit.c: Likewise.
27907 * tests/unictype/test-pr_hyphen.c: Likewise.
27908 * tests/unictype/test-pr_id_continue.c: Likewise.
27909 * tests/unictype/test-pr_id_start.c: Likewise.
27910 * tests/unictype/test-pr_ideographic.c: Likewise.
27911 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27912 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27913 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27914 * tests/unictype/test-pr_iso_control.c: Likewise.
27915 * tests/unictype/test-pr_join_control.c: Likewise.
27916 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27917 * tests/unictype/test-pr_line_separator.c: Likewise.
27918 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27919 * tests/unictype/test-pr_lowercase.c: Likewise.
27920 * tests/unictype/test-pr_math.c: Likewise.
27921 * tests/unictype/test-pr_non_break.c: Likewise.
27922 * tests/unictype/test-pr_not_a_character.c: Likewise.
27923 * tests/unictype/test-pr_numeric.c: Likewise.
27924 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27925 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27926 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27927 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27928 * tests/unictype/test-pr_other_id_start.c: Likewise.
27929 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27930 * tests/unictype/test-pr_other_math.c: Likewise.
27931 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27932 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27933 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27934 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27935 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27936 * tests/unictype/test-pr_private_use.c: Likewise.
27937 * tests/unictype/test-pr_punctuation.c: Likewise.
27938 * tests/unictype/test-pr_quotation_mark.c: Likewise.
27939 * tests/unictype/test-pr_radical.c: Likewise.
27940 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27941 * tests/unictype/test-pr_soft_dotted.c: Likewise.
27942 * tests/unictype/test-pr_space.c: Likewise.
27943 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27944 * tests/unictype/test-pr_titlecase.c: Likewise.
27945 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27946 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27947 * tests/unictype/test-pr_uppercase.c: Likewise.
27948 * tests/unictype/test-pr_variation_selector.c: Likewise.
27949 * tests/unictype/test-pr_white_space.c: Likewise.
27950 * tests/unictype/test-pr_xid_continue.c: Likewise.
27951 * tests/unictype/test-pr_xid_start.c: Likewise.
27952 * tests/unictype/test-pr_zero_width.c: Likewise.
27953 * tests/unictype/test-sy_c_whitespace.c: Likewise.
27954 * tests/unictype/test-sy_java_whitespace.c: Likewise.
27956 2007-11-12 Bruno Haible <bruno@clisp.org>
27958 Unicode character classification functions.
27959 * lib/unictype.h: New file.
27960 * modules/unictype/base: New file.
27961 * modules/unictype/category-L: New file.
27962 * modules/unictype/category-Lu: New file.
27963 * modules/unictype/category-Ll: New file.
27964 * modules/unictype/category-Lt: New file.
27965 * modules/unictype/category-Lm: New file.
27966 * modules/unictype/category-Lo: New file.
27967 * modules/unictype/category-M: New file.
27968 * modules/unictype/category-Mn: New file.
27969 * modules/unictype/category-Mc: New file.
27970 * modules/unictype/category-Me: New file.
27971 * modules/unictype/category-N: New file.
27972 * modules/unictype/category-Nd: New file.
27973 * modules/unictype/category-Nl: New file.
27974 * modules/unictype/category-No: New file.
27975 * modules/unictype/category-P: New file.
27976 * modules/unictype/category-Pc: New file.
27977 * modules/unictype/category-Pd: New file.
27978 * modules/unictype/category-Ps: New file.
27979 * modules/unictype/category-Pe: New file.
27980 * modules/unictype/category-Pi: New file.
27981 * modules/unictype/category-Pf: New file.
27982 * modules/unictype/category-Po: New file.
27983 * modules/unictype/category-S: New file.
27984 * modules/unictype/category-Sm: New file.
27985 * modules/unictype/category-Sc: New file.
27986 * modules/unictype/category-Sk: New file.
27987 * modules/unictype/category-So: New file.
27988 * modules/unictype/category-Z: New file.
27989 * modules/unictype/category-Zs: New file.
27990 * modules/unictype/category-Zl: New file.
27991 * modules/unictype/category-Zp: New file.
27992 * modules/unictype/category-C: New file.
27993 * modules/unictype/category-Cc: New file.
27994 * modules/unictype/category-Cf: New file.
27995 * modules/unictype/category-Cs: New file.
27996 * modules/unictype/category-Co: New file.
27997 * modules/unictype/category-Cn: New file.
27998 * modules/unictype/category-or: New file.
27999 * modules/unictype/category-of: New file.
28000 * modules/unictype/category-test: New file.
28001 * modules/unictype/category-test-withtable: New file.
28002 * modules/unictype/category-byname: New file.
28003 * modules/unictype/category-none: New file.
28004 * modules/unictype/category-and: New file.
28005 * modules/unictype/category-and-not: New file.
28006 * modules/unictype/category-name: New file.
28007 * modules/unictype/combining-class: New file.
28008 * modules/unictype/category-all: New file.
28009 * modules/unictype/bidicategory-all: New file.
28010 * modules/unictype/bidicategory-byname: New file.
28011 * modules/unictype/bidicategory-name: New file.
28012 * modules/unictype/bidicategory-of: New file.
28013 * modules/unictype/bidicategory-test: New file.
28014 * modules/unictype/decimal-digit: New file.
28015 * modules/unictype/digit: New file.
28016 * modules/unictype/numeric: New file.
28017 * modules/unictype/mirror: New file.
28018 * modules/unictype/property-white-space: New file.
28019 * modules/unictype/property-alphabetic: New file.
28020 * modules/unictype/property-other-alphabetic: New file.
28021 * modules/unictype/property-not-a-character: New file.
28022 * modules/unictype/property-default-ignorable-code-point: New file.
28023 * modules/unictype/property-other-default-ignorable-code-point: New
28025 * modules/unictype/property-deprecated: New file.
28026 * modules/unictype/property-logical-order-exception: New file.
28027 * modules/unictype/property-variation-selector: New file.
28028 * modules/unictype/property-private-use: New file.
28029 * modules/unictype/property-unassigned-code-value: New file.
28030 * modules/unictype/property-uppercase: New file.
28031 * modules/unictype/property-other-uppercase: New file.
28032 * modules/unictype/property-lowercase: New file.
28033 * modules/unictype/property-other-lowercase: New file.
28034 * modules/unictype/property-titlecase: New file.
28035 * modules/unictype/property-soft-dotted: New file.
28036 * modules/unictype/property-id-start: New file.
28037 * modules/unictype/property-other-id-start: New file.
28038 * modules/unictype/property-id-continue: New file.
28039 * modules/unictype/property-other-id-continue: New file.
28040 * modules/unictype/property-xid-start: New file.
28041 * modules/unictype/property-xid-continue: New file.
28042 * modules/unictype/property-pattern-white-space: New file.
28043 * modules/unictype/property-pattern-syntax: New file.
28044 * modules/unictype/property-join-control: New file.
28045 * modules/unictype/property-grapheme-base: New file.
28046 * modules/unictype/property-grapheme-extend: New file.
28047 * modules/unictype/property-other-grapheme-extend: New file.
28048 * modules/unictype/property-grapheme-link: New file.
28049 * modules/unictype/property-bidi-control: New file.
28050 * modules/unictype/property-bidi-left-to-right: New file.
28051 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28052 * modules/unictype/property-bidi-arabic-right-to-left: New file.
28053 * modules/unictype/property-bidi-european-digit: New file.
28054 * modules/unictype/property-bidi-eur-num-separator: New file.
28055 * modules/unictype/property-bidi-eur-num-terminator: New file.
28056 * modules/unictype/property-bidi-arabic-digit: New file.
28057 * modules/unictype/property-bidi-common-separator: New file.
28058 * modules/unictype/property-bidi-block-separator: New file.
28059 * modules/unictype/property-bidi-segment-separator: New file.
28060 * modules/unictype/property-bidi-whitespace: New file.
28061 * modules/unictype/property-bidi-non-spacing-mark: New file.
28062 * modules/unictype/property-bidi-boundary-neutral: New file.
28063 * modules/unictype/property-bidi-pdf: New file.
28064 * modules/unictype/property-bidi-embedding-or-override: New file.
28065 * modules/unictype/property-bidi-other-neutral: New file.
28066 * modules/unictype/property-hex-digit: New file.
28067 * modules/unictype/property-ascii-hex-digit: New file.
28068 * modules/unictype/property-ideographic: New file.
28069 * modules/unictype/property-unified-ideograph: New file.
28070 * modules/unictype/property-radical: New file.
28071 * modules/unictype/property-ids-binary-operator: New file.
28072 * modules/unictype/property-ids-trinary-operator: New file.
28073 * modules/unictype/property-zero-width: New file.
28074 * modules/unictype/property-space: New file.
28075 * modules/unictype/property-non-break: New file.
28076 * modules/unictype/property-iso-control: New file.
28077 * modules/unictype/property-format-control: New file.
28078 * modules/unictype/property-dash: New file.
28079 * modules/unictype/property-hyphen: New file.
28080 * modules/unictype/property-punctuation: New file.
28081 * modules/unictype/property-line-separator: New file.
28082 * modules/unictype/property-paragraph-separator: New file.
28083 * modules/unictype/property-quotation-mark: New file.
28084 * modules/unictype/property-sentence-terminal: New file.
28085 * modules/unictype/property-terminal-punctuation: New file.
28086 * modules/unictype/property-currency-symbol: New file.
28087 * modules/unictype/property-math: New file.
28088 * modules/unictype/property-other-math: New file.
28089 * modules/unictype/property-paired-punctuation: New file.
28090 * modules/unictype/property-left-of-pair: New file.
28091 * modules/unictype/property-combining: New file.
28092 * modules/unictype/property-composite: New file.
28093 * modules/unictype/property-decimal-digit: New file.
28094 * modules/unictype/property-numeric: New file.
28095 * modules/unictype/property-diacritic: New file.
28096 * modules/unictype/property-extender: New file.
28097 * modules/unictype/property-ignorable-control: New file.
28098 * modules/unictype/property-test: New file.
28099 * modules/unictype/property-byname: New file.
28100 * modules/unictype/property-all: New file.
28101 * modules/unictype/scripts: New file.
28102 * modules/unictype/scripts-all: New file.
28103 * modules/unictype/block-of: New file.
28104 * modules/unictype/block-test: New file.
28105 * modules/unictype/block-list: New file.
28106 * modules/unictype/block-all: New file.
28107 * modules/unictype/syntax-c-whitespace: New file.
28108 * modules/unictype/syntax-java-whitespace: New file.
28109 * modules/unictype/syntax-c-ident: New file.
28110 * modules/unictype/syntax-java-ident: New file.
28111 * modules/unictype/ctype-alnum: New file.
28112 * modules/unictype/ctype-alpha: New file.
28113 * modules/unictype/ctype-cntrl: New file.
28114 * modules/unictype/ctype-digit: New file.
28115 * modules/unictype/ctype-graph: New file.
28116 * modules/unictype/ctype-lower: New file.
28117 * modules/unictype/ctype-print: New file.
28118 * modules/unictype/ctype-punct: New file.
28119 * modules/unictype/ctype-space: New file.
28120 * modules/unictype/ctype-upper: New file.
28121 * modules/unictype/ctype-xdigit: New file.
28122 * modules/unictype/ctype-blank: New file.
28123 * lib/unictype/bidi_byname.c: New file.
28124 * lib/unictype/bidi_name.c: New file.
28125 * lib/unictype/bidi_of.c: New file.
28126 * lib/unictype/bidi_test.c: New file.
28127 * lib/unictype/bitmap.h: New file.
28128 * lib/unictype/block_test.c: New file.
28129 * lib/unictype/blocks.c: New file.
28130 * lib/unictype/categ_C.c: New file.
28131 * lib/unictype/categ_Cc.c: New file.
28132 * lib/unictype/categ_Cf.c: New file.
28133 * lib/unictype/categ_Cn.c: New file.
28134 * lib/unictype/categ_Co.c: New file.
28135 * lib/unictype/categ_Cs.c: New file.
28136 * lib/unictype/categ_L.c: New file.
28137 * lib/unictype/categ_Ll.c: New file.
28138 * lib/unictype/categ_Lm.c: New file.
28139 * lib/unictype/categ_Lo.c: New file.
28140 * lib/unictype/categ_Lt.c: New file.
28141 * lib/unictype/categ_Lu.c: New file.
28142 * lib/unictype/categ_M.c: New file.
28143 * lib/unictype/categ_Mc.c: New file.
28144 * lib/unictype/categ_Me.c: New file.
28145 * lib/unictype/categ_Mn.c: New file.
28146 * lib/unictype/categ_N.c: New file.
28147 * lib/unictype/categ_Nd.c: New file.
28148 * lib/unictype/categ_Nl.c: New file.
28149 * lib/unictype/categ_No.c: New file.
28150 * lib/unictype/categ_P.c: New file.
28151 * lib/unictype/categ_Pc.c: New file.
28152 * lib/unictype/categ_Pd.c: New file.
28153 * lib/unictype/categ_Pe.c: New file.
28154 * lib/unictype/categ_Pf.c: New file.
28155 * lib/unictype/categ_Pi.c: New file.
28156 * lib/unictype/categ_Po.c: New file.
28157 * lib/unictype/categ_Ps.c: New file.
28158 * lib/unictype/categ_S.c: New file.
28159 * lib/unictype/categ_Sc.c: New file.
28160 * lib/unictype/categ_Sk.c: New file.
28161 * lib/unictype/categ_Sm.c: New file.
28162 * lib/unictype/categ_So.c: New file.
28163 * lib/unictype/categ_Z.c: New file.
28164 * lib/unictype/categ_Zl.c: New file.
28165 * lib/unictype/categ_Zp.c: New file.
28166 * lib/unictype/categ_Zs.c: New file.
28167 * lib/unictype/categ_and.c: New file.
28168 * lib/unictype/categ_and_not.c: New file.
28169 * lib/unictype/categ_byname.c: New file.
28170 * lib/unictype/categ_name.c: New file.
28171 * lib/unictype/categ_none.c: New file.
28172 * lib/unictype/categ_of.c: New file.
28173 * lib/unictype/categ_or.c: New file.
28174 * lib/unictype/categ_test.c: New file.
28175 * lib/unictype/combining.c: New file.
28176 * lib/unictype/ctype_alnum.c: New file.
28177 * lib/unictype/ctype_alpha.c: New file.
28178 * lib/unictype/ctype_blank.c: New file.
28179 * lib/unictype/ctype_cntrl.c: New file.
28180 * lib/unictype/ctype_digit.c: New file.
28181 * lib/unictype/ctype_graph.c: New file.
28182 * lib/unictype/ctype_lower.c: New file.
28183 * lib/unictype/ctype_print.c: New file.
28184 * lib/unictype/ctype_punct.c: New file.
28185 * lib/unictype/ctype_space.c: New file.
28186 * lib/unictype/ctype_upper.c: New file.
28187 * lib/unictype/ctype_xdigit.c: New file.
28188 * lib/unictype/decdigit.c: New file.
28189 * lib/unictype/digit.c: New file.
28190 * lib/unictype/identsyntaxmap.h: New file.
28191 * lib/unictype/mirror.c: New file.
28192 * lib/unictype/numeric.c: New file.
28193 * lib/unictype/pr_alphabetic.c: New file.
28194 * lib/unictype/pr_ascii_hex_digit.c: New file.
28195 * lib/unictype/pr_bidi_arabic_digit.c: New file.
28196 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28197 * lib/unictype/pr_bidi_block_separator.c: New file.
28198 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28199 * lib/unictype/pr_bidi_common_separator.c: New file.
28200 * lib/unictype/pr_bidi_control.c: New file.
28201 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28202 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28203 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28204 * lib/unictype/pr_bidi_european_digit.c: New file.
28205 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28206 * lib/unictype/pr_bidi_left_to_right.c: New file.
28207 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28208 * lib/unictype/pr_bidi_other_neutral.c: New file.
28209 * lib/unictype/pr_bidi_pdf.c: New file.
28210 * lib/unictype/pr_bidi_segment_separator.c: New file.
28211 * lib/unictype/pr_bidi_whitespace.c: New file.
28212 * lib/unictype/pr_byname.c: New file.
28213 * lib/unictype/pr_byname.gperf: New file.
28214 * lib/unictype/pr_combining.c: New file.
28215 * lib/unictype/pr_composite.c: New file.
28216 * lib/unictype/pr_currency_symbol.c: New file.
28217 * lib/unictype/pr_dash.c: New file.
28218 * lib/unictype/pr_decimal_digit.c: New file.
28219 * lib/unictype/pr_default_ignorable_code_point.c: New file.
28220 * lib/unictype/pr_deprecated.c: New file.
28221 * lib/unictype/pr_diacritic.c: New file.
28222 * lib/unictype/pr_extender.c: New file.
28223 * lib/unictype/pr_format_control.c: New file.
28224 * lib/unictype/pr_grapheme_base.c: New file.
28225 * lib/unictype/pr_grapheme_extend.c: New file.
28226 * lib/unictype/pr_grapheme_link.c: New file.
28227 * lib/unictype/pr_hex_digit.c: New file.
28228 * lib/unictype/pr_hyphen.c: New file.
28229 * lib/unictype/pr_id_continue.c: New file.
28230 * lib/unictype/pr_id_start.c: New file.
28231 * lib/unictype/pr_ideographic.c: New file.
28232 * lib/unictype/pr_ids_binary_operator.c: New file.
28233 * lib/unictype/pr_ids_trinary_operator.c: New file.
28234 * lib/unictype/pr_ignorable_control.c: New file.
28235 * lib/unictype/pr_iso_control.c: New file.
28236 * lib/unictype/pr_join_control.c: New file.
28237 * lib/unictype/pr_left_of_pair.c: New file.
28238 * lib/unictype/pr_line_separator.c: New file.
28239 * lib/unictype/pr_logical_order_exception.c: New file.
28240 * lib/unictype/pr_lowercase.c: New file.
28241 * lib/unictype/pr_math.c: New file.
28242 * lib/unictype/pr_non_break.c: New file.
28243 * lib/unictype/pr_not_a_character.c: New file.
28244 * lib/unictype/pr_numeric.c: New file.
28245 * lib/unictype/pr_other_alphabetic.c: New file.
28246 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28247 * lib/unictype/pr_other_grapheme_extend.c: New file.
28248 * lib/unictype/pr_other_id_continue.c: New file.
28249 * lib/unictype/pr_other_id_start.c: New file.
28250 * lib/unictype/pr_other_lowercase.c: New file.
28251 * lib/unictype/pr_other_math.c: New file.
28252 * lib/unictype/pr_other_uppercase.c: New file.
28253 * lib/unictype/pr_paired_punctuation.c: New file.
28254 * lib/unictype/pr_paragraph_separator.c: New file.
28255 * lib/unictype/pr_pattern_syntax.c: New file.
28256 * lib/unictype/pr_pattern_white_space.c: New file.
28257 * lib/unictype/pr_private_use.c: New file.
28258 * lib/unictype/pr_punctuation.c: New file.
28259 * lib/unictype/pr_quotation_mark.c: New file.
28260 * lib/unictype/pr_radical.c: New file.
28261 * lib/unictype/pr_sentence_terminal.c: New file.
28262 * lib/unictype/pr_soft_dotted.c: New file.
28263 * lib/unictype/pr_space.c: New file.
28264 * lib/unictype/pr_terminal_punctuation.c: New file.
28265 * lib/unictype/pr_test.c: New file.
28266 * lib/unictype/pr_titlecase.c: New file.
28267 * lib/unictype/pr_unassigned_code_value.c: New file.
28268 * lib/unictype/pr_unified_ideograph.c: New file.
28269 * lib/unictype/pr_uppercase.c: New file.
28270 * lib/unictype/pr_variation_selector.c: New file.
28271 * lib/unictype/pr_white_space.c: New file.
28272 * lib/unictype/pr_xid_continue.c: New file.
28273 * lib/unictype/pr_xid_start.c: New file.
28274 * lib/unictype/pr_zero_width.c: New file.
28275 * lib/unictype/scripts.c: New file.
28276 * lib/unictype/sy_c_ident.c: New file.
28277 * lib/unictype/sy_c_whitespace.c: New file.
28278 * lib/unictype/sy_java_ident.c: New file.
28279 * lib/unictype/sy_java_whitespace.c: New file.
28281 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28283 * lib/unictype/blocks.h: Likewise.
28284 * lib/unictype/categ_C.h: Likewise.
28285 * lib/unictype/categ_Cc.h: Likewise.
28286 * lib/unictype/categ_Cf.h: Likewise.
28287 * lib/unictype/categ_Cn.h: Likewise.
28288 * lib/unictype/categ_Co.h: Likewise.
28289 * lib/unictype/categ_Cs.h: Likewise.
28290 * lib/unictype/categ_L.h: Likewise.
28291 * lib/unictype/categ_Ll.h: Likewise.
28292 * lib/unictype/categ_Lm.h: Likewise.
28293 * lib/unictype/categ_Lo.h: Likewise.
28294 * lib/unictype/categ_Lt.h: Likewise.
28295 * lib/unictype/categ_Lu.h: Likewise.
28296 * lib/unictype/categ_M.h: Likewise.
28297 * lib/unictype/categ_Mc.h: Likewise.
28298 * lib/unictype/categ_Me.h: Likewise.
28299 * lib/unictype/categ_Mn.h: Likewise.
28300 * lib/unictype/categ_N.h: Likewise.
28301 * lib/unictype/categ_Nd.h: Likewise.
28302 * lib/unictype/categ_Nl.h: Likewise.
28303 * lib/unictype/categ_No.h: Likewise.
28304 * lib/unictype/categ_P.h: Likewise.
28305 * lib/unictype/categ_Pc.h: Likewise.
28306 * lib/unictype/categ_Pd.h: Likewise.
28307 * lib/unictype/categ_Pe.h: Likewise.
28308 * lib/unictype/categ_Pf.h: Likewise.
28309 * lib/unictype/categ_Pi.h: Likewise.
28310 * lib/unictype/categ_Po.h: Likewise.
28311 * lib/unictype/categ_Ps.h: Likewise.
28312 * lib/unictype/categ_S.h: Likewise.
28313 * lib/unictype/categ_Sc.h: Likewise.
28314 * lib/unictype/categ_Sk.h: Likewise.
28315 * lib/unictype/categ_Sm.h: Likewise.
28316 * lib/unictype/categ_So.h: Likewise.
28317 * lib/unictype/categ_Z.h: Likewise.
28318 * lib/unictype/categ_Zl.h: Likewise.
28319 * lib/unictype/categ_Zp.h: Likewise.
28320 * lib/unictype/categ_Zs.h: Likewise.
28321 * lib/unictype/categ_of.h: Likewise.
28322 * lib/unictype/combining.h: Likewise.
28323 * lib/unictype/ctype_alnum.h: Likewise.
28324 * lib/unictype/ctype_alpha.h: Likewise.
28325 * lib/unictype/ctype_blank.h: Likewise.
28326 * lib/unictype/ctype_cntrl.h: Likewise.
28327 * lib/unictype/ctype_digit.h: Likewise.
28328 * lib/unictype/ctype_graph.h: Likewise.
28329 * lib/unictype/ctype_lower.h: Likewise.
28330 * lib/unictype/ctype_print.h: Likewise.
28331 * lib/unictype/ctype_punct.h: Likewise.
28332 * lib/unictype/ctype_space.h: Likewise.
28333 * lib/unictype/ctype_upper.h: Likewise.
28334 * lib/unictype/ctype_xdigit.h: Likewise.
28335 * lib/unictype/decdigit.h: Likewise.
28336 * lib/unictype/digit.h: Likewise.
28337 * lib/unictype/mirror.h: Likewise.
28338 * lib/unictype/numeric.h: Likewise.
28339 * lib/unictype/pr_alphabetic.h: Likewise.
28340 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28341 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28342 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28343 * lib/unictype/pr_bidi_block_separator.h: Likewise.
28344 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28345 * lib/unictype/pr_bidi_common_separator.h: Likewise.
28346 * lib/unictype/pr_bidi_control.h: Likewise.
28347 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28348 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28349 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28350 * lib/unictype/pr_bidi_european_digit.h: Likewise.
28351 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28352 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28353 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28354 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28355 * lib/unictype/pr_bidi_pdf.h: Likewise.
28356 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28357 * lib/unictype/pr_bidi_whitespace.h: Likewise.
28358 * lib/unictype/pr_combining.h: Likewise.
28359 * lib/unictype/pr_composite.h: Likewise.
28360 * lib/unictype/pr_currency_symbol.h: Likewise.
28361 * lib/unictype/pr_dash.h: Likewise.
28362 * lib/unictype/pr_decimal_digit.h: Likewise.
28363 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28364 * lib/unictype/pr_deprecated.h: Likewise.
28365 * lib/unictype/pr_diacritic.h: Likewise.
28366 * lib/unictype/pr_extender.h: Likewise.
28367 * lib/unictype/pr_format_control.h: Likewise.
28368 * lib/unictype/pr_grapheme_base.h: Likewise.
28369 * lib/unictype/pr_grapheme_extend.h: Likewise.
28370 * lib/unictype/pr_grapheme_link.h: Likewise.
28371 * lib/unictype/pr_hex_digit.h: Likewise.
28372 * lib/unictype/pr_hyphen.h: Likewise.
28373 * lib/unictype/pr_id_continue.h: Likewise.
28374 * lib/unictype/pr_id_start.h: Likewise.
28375 * lib/unictype/pr_ideographic.h: Likewise.
28376 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28377 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28378 * lib/unictype/pr_ignorable_control.h: Likewise.
28379 * lib/unictype/pr_iso_control.h: Likewise.
28380 * lib/unictype/pr_join_control.h: Likewise.
28381 * lib/unictype/pr_left_of_pair.h: Likewise.
28382 * lib/unictype/pr_line_separator.h: Likewise.
28383 * lib/unictype/pr_logical_order_exception.h: Likewise.
28384 * lib/unictype/pr_lowercase.h: Likewise.
28385 * lib/unictype/pr_math.h: Likewise.
28386 * lib/unictype/pr_non_break.h: Likewise.
28387 * lib/unictype/pr_not_a_character.h: Likewise.
28388 * lib/unictype/pr_numeric.h: Likewise.
28389 * lib/unictype/pr_other_alphabetic.h: Likewise.
28390 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28391 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28392 * lib/unictype/pr_other_id_continue.h: Likewise.
28393 * lib/unictype/pr_other_id_start.h: Likewise.
28394 * lib/unictype/pr_other_lowercase.h: Likewise.
28395 * lib/unictype/pr_other_math.h: Likewise.
28396 * lib/unictype/pr_other_uppercase.h: Likewise.
28397 * lib/unictype/pr_paired_punctuation.h: Likewise.
28398 * lib/unictype/pr_paragraph_separator.h: Likewise.
28399 * lib/unictype/pr_pattern_syntax.h: Likewise.
28400 * lib/unictype/pr_pattern_white_space.h: Likewise.
28401 * lib/unictype/pr_private_use.h: Likewise.
28402 * lib/unictype/pr_punctuation.h: Likewise.
28403 * lib/unictype/pr_quotation_mark.h: Likewise.
28404 * lib/unictype/pr_radical.h: Likewise.
28405 * lib/unictype/pr_sentence_terminal.h: Likewise.
28406 * lib/unictype/pr_soft_dotted.h: Likewise.
28407 * lib/unictype/pr_space.h: Likewise.
28408 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28409 * lib/unictype/pr_titlecase.h: Likewise.
28410 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28411 * lib/unictype/pr_unified_ideograph.h: Likewise.
28412 * lib/unictype/pr_uppercase.h: Likewise.
28413 * lib/unictype/pr_variation_selector.h: Likewise.
28414 * lib/unictype/pr_white_space.h: Likewise.
28415 * lib/unictype/pr_xid_continue.h: Likewise.
28416 * lib/unictype/pr_xid_start.h: Likewise.
28417 * lib/unictype/pr_zero_width.h: Likewise.
28418 * lib/unictype/scripts.h: Likewise.
28419 * lib/unictype/scripts_byname.gperf: Likewise.
28420 * lib/unictype/sy_c_ident.h: Likewise.
28421 * lib/unictype/sy_c_whitespace.h: Likewise.
28422 * lib/unictype/sy_java_ident.h: Likewise.
28423 * lib/unictype/sy_java_whitespace.h: Likewise.
28425 * lib/unictype/Makefile: New file.
28426 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28428 * lib/unictype/3level.h: New file, copied from glibc.
28429 * lib/unictype/3levelbit.h: New file.
28431 2007-11-11 Bruno Haible <bruno@clisp.org>
28433 * modules/gperf: New file.
28434 * modules/iconv_open (Depends-on): Add it.
28435 (Makefile.am): Remove the GPERF definition.
28437 2007-11-11 Bruno Haible <bruno@clisp.org>
28439 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28440 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28442 2007-11-11 Bruno Haible <bruno@clisp.org>
28444 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28445 (usage): Remove function.
28447 2007-11-11 Bruno Haible <bruno@clisp.org>
28449 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28450 gl_FUNC_CEILF_LIBS.
28451 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28453 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28454 gl_FUNC_CEILL_LIBS.
28455 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28456 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28457 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28459 2007-11-11 Bruno Haible <bruno@clisp.org>
28461 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28462 roundf were declared but do not exist on functions.
28463 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28464 roundl were declared but do not exist on functions.
28465 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28466 HAVE_FLOORL_AND_CEILL, respectively.
28467 Needed for Sun C on Solaris 10.
28469 2007-11-11 Bruno Haible <bruno@clisp.org>
28471 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28472 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28473 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28474 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28475 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28476 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28477 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28479 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28480 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28481 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28482 of HAVE_DECL_ROUND*.
28483 * modules/math (Makefile.am): Update.
28485 2007-11-10 Bruno Haible <bruno@clisp.org>
28487 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28488 ptrdiff_t as m4/intl.m4.
28490 2007-11-10 Jim Meyering <meyering@redhat.com>
28492 Avoid link failure for the argmatch test.
28493 * tests/test-argmatch.c (usage): Define function to avoid a link
28494 failure: argmatch_die requires a usage function.
28496 2007-11-09 Bruno Haible <bruno@clisp.org>
28498 * doc/functions/snprintf.texi: Mention BeOS deficiency.
28499 * doc/functions/vsnprintf.texi: Likewise.
28500 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28501 with a size argument < 2.
28503 2007-11-09 Bruno Haible <bruno@clisp.org>
28505 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28506 buffer. Fixes an inefficiency introduced on 2007-11-03.
28508 2007-11-09 Bruno Haible <bruno@clisp.org>
28510 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28511 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28513 2007-11-08 Jim Meyering <meyering@redhat.com>
28515 Change cache variable name prefix "jm_" to "gl_" everywhere.
28516 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28517 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28518 * m4/uptime.m4: s/gl_/jm_/
28520 2007-11-07 Bruno Haible <bruno@clisp.org>
28522 Update to GNU gettext 0.17.
28523 * m4/intl.m4: Update to GNU gettext 0.17.
28524 * m4/po.m4: Likewise.
28525 * modules/gettext (Files): Remove m4/ulonglong.m4.
28526 (configure.ac): Require gettext infrastructure from version 0.17.
28528 2007-11-06 Bruno Haible <bruno@clisp.org>
28530 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28531 symbolic values are not defined in a public header.
28532 * lib/freadable.c (freadable) [QNX]: Likewise.
28533 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28534 * lib/freading.c (freading) [QNX]: Likewise.
28535 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28536 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28537 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28538 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28539 Reported by Alain Magloire.
28541 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28543 2007-11-05 Bruno Haible <bruno@clisp.org>
28545 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28546 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28547 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28548 Reported by Eric Blake.
28550 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28551 Bruno Haible <bruno@clisp.org>
28553 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28554 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28555 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28556 (malloc): Undefine also before including <stdlib.h>.
28557 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28558 Needed on OSF/1 4.0.
28560 2007-11-05 Jim Meyering <meyering@redhat.com>
28562 git-version-gen: sync from coreutils.
28563 * build-aux/git-version-gen: Add comments.
28564 Change the first '-' to '.' in the snapshot version string,
28565 e.g., 6.9-377-08144 -> 6.9.377-08144
28566 Remove first parameter.
28567 Don't declare a version "-dirty" merely because a time
28570 2007-11-04 Bruno Haible <bruno@clisp.org>
28572 * lib/lock.h: Protect all macro definitions containing an 'if'
28573 statement through a "do { ... } while (0)".
28574 * lib/tls.h: Likewise.
28576 2007-11-04 Bruno Haible <bruno@clisp.org>
28578 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28580 2007-11-04 Bruno Haible <bruno@clisp.org>
28582 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28583 * modules/fprintf-posix (Depends-on): Add nocrash.
28584 * modules/snprintf-posix (Depends-on): Likewise.
28585 * modules/sprintf-posix (Depends-on): Likewise.
28586 * modules/vasnprintf-posix (Depends-on): Likewise.
28587 * modules/vasprintf-posix (Depends-on): Likewise.
28588 * modules/vfprintf-posix (Depends-on): Likewise.
28589 * modules/vsnprintf-posix (Depends-on): Likewise.
28590 * modules/vsprintf-posix (Depends-on): Likewise.
28591 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28592 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28593 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28594 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28595 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28596 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28597 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28599 2007-11-04 Bruno Haible <bruno@clisp.org>
28601 * modules/nocrash: New file.
28602 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28603 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28605 2007-11-04 Bruno Haible <bruno@clisp.org>
28607 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28608 precision handling.
28609 * tests/test-vasprintf-posix.c (test_function): Likewise.
28610 * tests/test-snprintf-posix.h (test_function): Likewise.
28611 * tests/test-sprintf-posix.h (test_function): Likewise.
28613 Fix *printf behaviour for large precisions on mingw and BeOS.
28614 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28615 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28616 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28617 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28618 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28619 gl_PRINTF_PRECISION and test its result. Invoke
28620 gl_PREREQ_VASNPRINTF_PRECISION.
28621 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28622 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28623 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28624 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28625 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28626 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28627 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28628 * doc/functions/fprintf.texi: Update.
28629 * doc/functions/printf.texi: Update.
28630 * doc/functions/snprintf.texi: Update.
28631 * doc/functions/sprintf.texi: Update.
28632 * doc/functions/vfprintf.texi: Update.
28633 * doc/functions/vprintf.texi: Update.
28634 * doc/functions/vsnprintf.texi: Update.
28635 * doc/functions/vsprintf.texi: Update.
28637 2007-11-04 Bruno Haible <bruno@clisp.org>
28639 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28641 2007-11-04 Bruno Haible <bruno@clisp.org>
28643 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28644 Reported by Sylvain Beucler <beuc@gnu.org>.
28646 2007-11-03 Bruno Haible <bruno@clisp.org>
28648 * tests/test-fprintf-posix2.sh: New file.
28649 * tests/test-fprintf-posix2.c: New file.
28650 * modules/fprintf-posix-tests (Files): Add them.
28651 (TESTS): Add test-fprintf-posix2.sh.
28652 (configure.ac): Check for getrlimit and setrlimit.
28653 (check_PROGRAMS): Add test-fprintf-posix2.
28655 * tests/test-printf-posix2.sh: New file.
28656 * tests/test-printf-posix2.c: New file.
28657 * modules/printf-posix-tests (Files): Add them.
28658 (TESTS): Add test-printf-posix2.sh.
28659 (configure.ac): Check for getrlimit and setrlimit.
28660 (check_PROGRAMS): Add test-printf-posix2.
28662 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28663 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28664 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28665 (decode_double): New function, copied from decode_long_double.
28666 (scale10_round_decimal_decoded): New function, extracted from
28667 scale10_round_decimal_long_double.
28668 (scale10_round_decimal_long_double): Use it.
28669 (scale10_round_decimal_double): New function.
28670 (floorlog10): New function.
28671 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28672 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28673 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28674 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28675 gl_PRINTF_ENOMEM and test its result. Invoke
28676 gl_PREREQ_VASNPRINTF_ENOMEM.
28677 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28678 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28679 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28680 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28681 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28682 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28683 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28684 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28685 * modules/snprintf-posix (Depends-on): Likewise.
28686 * modules/sprintf-posix (Depends-on): Likewise.
28687 * modules/vasnprintf-posix (Depends-on): Likewise.
28688 * modules/vasprintf-posix (Depends-on): Likewise.
28689 * modules/vfprintf-posix (Depends-on): Likewise.
28690 * modules/vsnprintf-posix (Depends-on): Likewise.
28691 * modules/vsprintf-posix (Depends-on): Likewise.
28692 * doc/functions/fprintf.texi: Update.
28693 * doc/functions/printf.texi: Update.
28694 * doc/functions/snprintf.texi: Update.
28695 * doc/functions/sprintf.texi: Update.
28696 * doc/functions/vfprintf.texi: Update.
28697 * doc/functions/vprintf.texi: Update.
28698 * doc/functions/vsnprintf.texi: Update.
28699 * doc/functions/vsprintf.texi: Update.
28701 2007-11-03 Bruno Haible <bruno@clisp.org>
28703 * modules/frexp-nolibm-tests: New file.
28705 * modules/frexp-nolibm: New file.
28706 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28708 2007-11-03 Bruno Haible <bruno@clisp.org>
28710 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28711 value is C99 compliant.
28712 Needed for OSF/1 5.1.
28714 2007-11-03 Bruno Haible <bruno@clisp.org>
28716 Fix out-of-memory handling of vasnprintf.
28717 * lib/printf-parse.c: Include <errno.h>.
28718 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28719 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28722 2007-11-02 Eric Blake <ebb9@byu.net>
28724 Fix tests on cygwin.
28725 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28727 2007-11-01 Bruno Haible <bruno@clisp.org>
28729 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28731 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28732 needed for POSIX compatibility.
28734 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
28736 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28737 for compatibility with GNU.
28739 2007-11-01 Bruno Haible <bruno@clisp.org>
28741 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28742 (putenv): Renamed from rpl_putenv. Change argument type from
28743 'const char *' to 'char *'.
28744 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28745 of defining putenv in config.h, just set REPLACE_PUTENV.
28746 * modules/putenv (Depends-on): Add stdlib.
28747 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28748 (Include): Use <stdlib.h>.
28749 * lib/stdlib.in.h (putenv): New declaration.
28750 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28752 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28754 Needed for MacOS X 10.5.0.
28755 Reported by Peter O'Gorman <peter@pogma.com>.
28757 2007-11-01 Jim Meyering <meyering@redhat.com>
28759 Treat an empty date string exactly like "0".
28760 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28761 if the remaining date string (to be parsed) is empty, use "0".
28762 Reported by Mischa Molhoek and discussed in this thread:
28763 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28765 2007-10-31 Bruno Haible <bruno@clisp.org>
28767 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28768 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28769 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28770 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28771 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28772 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28774 2007-10-31 Bruno Haible <bruno@clisp.org>
28776 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28777 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28778 (AC_TYPE_LONG_LONG_INT): Use it.
28779 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28781 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28783 * modules/stdint (Files): Remove m4/ulonglong.m4.
28784 * modules/strtoull (Files): Use m4/longlong.m4 instead of
28786 * modules/strtoumax (Files): Likewise.
28788 2007-10-30 Bruno Haible <bruno@clisp.org>
28790 * modules/xvasprintf-posix: New file.
28791 Suggested by Eric Blake.
28793 2007-10-30 Bruno Haible <bruno@clisp.org>
28795 * modules/xprintf-posix-tests: New file.
28796 * tests/test-xprintf-posix.sh: New file.
28797 * tests/test-xprintf-posix.c: New file.
28798 * tests/test-xfprintf-posix.c: New file.
28800 * modules/xprintf-posix: New file.
28802 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28804 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28805 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28806 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28808 2007-10-29 Bruno Haible <bruno@clisp.org>
28810 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28811 contain the special marker '_cv_'.
28812 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28813 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28814 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28815 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28816 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28817 Reported by Ralf Wildenhues.
28819 2007-10-29 Bruno Haible <bruno@clisp.org>
28821 * gnulib-tool (func_import): When --lgpl is not specified, set
28822 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28824 Reported by Simon Josefsson.
28826 2007-10-28 Bruno Haible <bruno@clisp.org>
28828 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28829 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28830 HAVE_DECL_ISFINITE.
28831 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28832 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28833 HAVE_DECL_ISFINITE.
28835 2007-10-28 Bruno Haible <bruno@clisp.org>
28837 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28838 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28840 2007-10-28 Bruno Haible <bruno@clisp.org>
28842 Fix link errors with Sun C 5.0 on Solaris 10.
28843 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28844 function is declared but not present in the compiler's libm.
28845 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28846 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28847 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28848 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28849 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28850 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28851 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28852 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28853 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28854 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28855 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28858 2007-10-28 Bruno Haible <bruno@clisp.org>
28860 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28861 gl_FUNC_FLOORL. Cache the result.
28862 (gl_FUNC_FLOORL): Use it.
28863 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28864 gl_FUNC_CEILL. Cache the result.
28865 (gl_FUNC_CEILL): Use it.
28867 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28868 gl_FUNC_FLOOR. Cache the result.
28869 (gl_FUNC_FLOOR): Use it.
28870 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28871 gl_FUNC_CEIL. Cache the result.
28872 (gl_FUNC_CEIL): Use it.
28874 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28875 gl_FUNC_FLOORF. Cache the result.
28876 (gl_FUNC_FLOORF): Use it.
28877 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28878 gl_FUNC_CEILF. Cache the result.
28879 (gl_FUNC_CEILF): Use it.
28881 2007-10-28 Bruno Haible <bruno@clisp.org>
28883 * gnulib-tool: Allow specifying the LGPL version number through
28884 --lgpl=2 or --lgpl=3.
28885 (func_usage): Document --lgpl with argument.
28886 Handle --lgpl=... arguments.
28887 (func_import): Recognize also gl_LGPL calls with an argument. When
28888 --lgpl=2 is used and the module's license is just LGPL, report an
28889 error. Set sed_transform_lib_file according to the lgpl variable. In
28890 the generated files, use --lgpl or gl_LGPL invocations with argument,
28892 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28894 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28897 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28898 Bruno Haible <bruno@clisp.org>
28900 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28901 (u16_uctomb_aux): Likewise.
28902 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28904 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28906 2007-10-28 Bruno Haible <bruno@clisp.org>
28908 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28909 Invoke AM_GETTEXT_OPTION if it exists.
28910 * modules/vasprintf: Likewise.
28911 * modules/verror: Likewise.
28912 * modules/xprintf: Likewise.
28913 * modules/xvasprintf: Likewise.
28915 2007-10-27 Ben Pfaff <blp@gnu.org>
28917 * lib/math.in.h: Define isfinite macro and prototypes for
28918 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28920 * m4/math_h.m4: New substitutions for isfinite module.
28921 * lib/isfinite.c: New file.
28922 * m4/isfinite.m4: New file.
28923 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28924 * modules/isfinite: New file.
28925 * modules/isfinite-tests: New file.
28926 * tests/tests-isfinite.c: New file.
28927 * doc/functions/isfinite.texi: Mention isfinite module.
28928 * MODULES.html.sh: Mention new module.
28930 2007-10-27 Ben Pfaff <blp@gnu.org>
28932 Ralf Wildenhues reported that Tru64 4.0D declares the round
28933 functions but does not have definitions.
28934 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28935 cannot be found in any library, set the output variable to
28936 "missing" instead of "".
28937 * m4/round.m4: Also use our substitute if we cannot find round in
28938 any library, even if it is declared.
28939 * m4/roundf.m4: Likewise for roundf.
28940 * m4/roundl.m4: Likewise for roundl.
28941 * lib/math.in.h: Undefine roundf, round, roundl before defining
28942 their replacements, to allow for hypothetical systems where these
28943 may be defined as macros but not available in libraries.
28945 2007-10-27 Bruno Haible <bruno@clisp.org>
28947 * doc/gnulib.texi: Invoke @firstparagraphindent.
28948 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28950 (Source changes): New section.
28952 2007-10-26 Bruno Haible <bruno@clisp.org>
28954 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28955 borrowed from autoconf.
28957 2007-10-26 Bruno Haible <bruno@clisp.org>
28959 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28960 strerror returned the empty string. Needed on HP-UX 11.00.
28962 2007-10-24 Micah Cowan <micah@cowan.name>
28964 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
28965 * build-aux/bootstrap: Remove support for now-unnecessary option,
28966 --cvs-user, and envvars CVS_USER, CVS_RSH.
28968 2007-10-24 Jim Meyering <meyering@redhat.com>
28970 Avoid diagnostics from sha1sum when there is no cached checksum.
28971 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28972 if the po.s1 file hasn't been created yet.
28974 * build-aux/bootstrap: Sync from coreutils:
28975 2007-10-24 Jim Meyering <meyering@redhat.com>
28976 Get gnulib from the git repository, not from an obsolete cvs one.
28977 * build-aux/bootstrap: Suggestion from Micah Cowan.
28978 2007-10-04 Jim Meyering <jim@meyering.net>
28979 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28980 (update_po_files): Work also when there are no .po files in po/.
28982 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
28984 * README: Append ".git" to git and cg examples.
28985 Problem reported by Benoit Sigoure.
28987 2007-10-23 Micah Cowan <micah@cowan.name>
28989 * users.txt: Add wget.
28991 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28993 Fix linking of some unistdio tests on FreeBSD.
28994 * modules/unistdio/u16-vsnprintf-tests
28995 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28996 * modules/unistdio/u16-vsprintf-tests
28997 (test_u16_vsnprintf1_LDADD): Likewise.
28998 * modules/unistdio/u32-vsnprintf-tests
28999 (test_u32_vsnprintf1_LDADD): Likewise.
29000 * modules/unistdio/u32-vsprintf-tests
29001 (test_u32_vsprintf1_LDADD): Likewise.
29002 * modules/unistdio/u8-vsnprintf-tests
29003 (test_u8_vsnprintf1_LDADD): Likewise.
29004 * modules/unistdio/u8-vsprintf-tests
29005 (test_u8_vsprintf1_LDADD): Likewise.
29006 * modules/unistdio/ulc-vsnprintf-tests
29007 (test_ulc_vsnprintf1_LDADD): Likewise.
29008 * modules/unistdio/ulc-vsprintf-tests
29009 (test_ulc_vsprintf1_LDADD): Likewise.
29011 Fix linking of some uniconv tests on FreeBSD.
29012 * modules/uniconv/u16-conv-from-enc-tests
29013 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29014 * modules/uniconv/u16-conv-to-enc-tests
29015 (test_u16_conv_to_enc_LDADD): Likewise.
29016 * modules/uniconv/u16-strconv-from-enc-tests
29017 (test_u16_strconv_from_enc_LDADD): Likewise.
29018 * modules/uniconv/u16-strconv-to-enc-tests
29019 (test_u16_strconv_to_enc_LDADD): Likewise.
29020 * modules/uniconv/u32-conv-from-enc-tests
29021 (test_u32_conv_from_enc_LDADD): Likewise.
29022 * modules/uniconv/u32-conv-to-enc-tests
29023 (test_u32_conv_to_enc_LDADD): Likewise.
29024 * modules/uniconv/u32-strconv-from-enc-tests
29025 (test_u32_strconv_from_enc_LDADD): Likewise.
29026 * modules/uniconv/u32-strconv-to-enc-tests
29027 (test_u32_strconv_to_enc_LDADD): Likewise.
29028 * modules/uniconv/u8-conv-from-enc-tests
29029 (test_u8_conv_from_enc_LDADD): Likewise.
29030 * modules/uniconv/u8-conv-to-enc-tests
29031 (test_u8_conv_to_enc_LDADD): Likewise.
29032 * modules/uniconv/u8-strconv-from-enc-tests
29033 (test_u8_strconv_from_enc_LDADD): Likewise.
29034 * modules/uniconv/u8-strconv-to-enc-tests
29035 (test_u8_strconv_to_enc_LDADD): Likewise.
29037 2007-10-22 Bruno Haible <bruno@clisp.org>
29039 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29042 2007-10-22 Eric Blake <ebb9@byu.net>
29044 Tweak x*printf documentation.
29045 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29046 variable name and comments.
29047 Suggested by Bruno Haible.
29049 2007-10-22 Bruno Haible <bruno@clisp.org>
29051 * lib/acl.c (copy_acl): Fix file name in comment.
29053 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29055 Fix Tru64 problem with stdbool.h.
29056 * lib/stdbool.in.h (false, true):
29057 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29058 Don't declare as an enum in this situation; it runs afoul of Tru64.
29059 Problem reported by Steven M. Schweda in
29060 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29062 2007-10-22 Eric Blake <ebb9@byu.net>
29064 Also wrap vf?printf.
29065 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29066 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29067 (xvprintf, xvfprintf): New functions.
29069 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29071 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29072 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29074 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29075 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29077 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29079 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
29082 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29085 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29086 Undef `sys' after including sys/table.h, for Tru64 4.0D.
29088 * tests/test-i-ring.c: Work for C89.
29090 2007-10-22 Bruno Haible <bruno@clisp.org>
29092 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29093 -1u, in preprocessor expression, so that we don't test for the bug
29094 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
29095 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29097 2007-10-22 Eric Blake <ebb9@byu.net>
29099 * tests/test-yesno.sh: Silence stderr during test.
29101 2007-10-22 Simon Josefsson <simon@josefsson.org>
29103 * modules/crypto/gc-camellia: New file.
29105 * m4/gc-camellia.m4: New file.
29107 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29109 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29111 2007-10-22 Simon Josefsson <simon@josefsson.org>
29113 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29114 --help to stdout. Reported by sms@antinode.org (Steven
29117 2007-10-22 Simon Josefsson <simon@josefsson.org>
29119 * users.txt: Fix link to libksba.
29121 2007-10-21 Ben Pfaff <blp@gnu.org>
29123 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29124 round.c roundf implementation that depends on floorf and ceilf to
29125 be tested unconditionally.
29127 2007-10-21 Ben Pfaff <blp@gnu.org>
29129 * m4/check-libm-func.m4: Removed.
29130 * m4/check-math-lib.m4: New file.
29131 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29132 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29133 definition and lack of AC_LIBOBJ([roundf]).
29134 * m4/roundl.m4: Ditto, and similarly for roundl.
29135 * modules/round: Reference new m4 file.
29136 * modules/roundf: Ditto.
29137 * modules/roundl: Ditto.
29138 * tests/test-round2.c (main): Use ROUND instead of round.
29139 Bug report from Bruno Haible.
29141 2007-10-21 Bruno Haible <bruno@clisp.org>
29143 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29146 2007-10-21 Bruno Haible <bruno@clisp.org>
29148 * tests/test-wcwidth.c (main): Allow negative result for some control
29151 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29152 Needed on OSF/1 5.1.
29154 2007-10-21 Bruno Haible <bruno@clisp.org>
29156 * tests/test-floorf1.c: Include isnanf.h.
29157 (main): Use isnanf() instead of isnan().
29158 * tests/test-ceilf1.c: Include isnanf.h.
29159 (main): Use isnanf() instead of isnan().
29160 * tests/test-truncf1.c: Include isnanf.h.
29161 (main): Use isnanf() instead of isnan().
29162 * tests/test-roundf1.c: Include isnanf.h.
29163 (main): Use isnanf() instead of isnan().
29165 2007-10-21 Eric Blake <ebb9@byu.net>
29167 * users.txt: Update URL for m4.
29169 2007-10-21 Bruno Haible <bruno@clisp.org>
29171 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29173 2007-10-21 Bruno Haible <bruno@clisp.org>
29175 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29176 Git's management files if the CVS files are not present.
29178 2007-10-20 Bruno Haible <bruno@clisp.org>
29180 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29183 2007-10-20 Ben Pfaff <blp@gnu.org>
29185 * lib/math.in.h: Declare round, roundf, roundl if we are providing
29187 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29188 * lib/round.c: New file.
29189 * lib/roundf.c: New file.
29190 * lib/roundl.c: New file.
29191 * m4/round.m4: New file.
29192 * m4/roundf.m4: New file.
29193 * m4/roundl.m4: New file.
29194 * m4/check-libm-func-m4: New file.
29195 * modules/math: Replace round, roundf, roundl related @VARS@ in
29197 * modules/round: New file.
29198 * modules/round-tests: New file.
29199 * modules/roundf: New file.
29200 * modules/roundf-tests: New file.
29201 * modules/roundl: New file.
29202 * modules/roundl-tests: New file.
29203 * tests/test-round1.c: New file.
29204 * tests/test-round2.c: New file.
29205 * tests/test-roundf1.c: New file.
29206 * tests/test-roundf2.c: New file.
29207 * tests/test-roundl.c: New file.
29208 * doc/functions/round.texi: Mention round module.
29209 * doc/functions/roundf.texi: Mention roundf module.
29210 * doc/functions/roundl.texi: Mention roundl module.
29211 * MODULES.html.sh: Mention new modules.
29212 Thanks to Bruno Haible for suggestions.
29214 2007-10-20 Jim Meyering <meyering@redhat.com>
29216 * lib/xprintf.c: Include <config.h> unconditionally.
29218 Change xprintf's license to GPL.
29219 * modules/xprintf (License): s/LGPL/GPL/, since this module
29220 depends on modules (exit and exitfail) which are GPL.
29221 Suggestion from Bruno Haible.
29224 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29225 Use a clearer diagnostic.
29226 Patch from Bruno Haible.
29228 2007-10-20 Bruno Haible <bruno@clisp.org>
29230 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29231 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29232 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29234 2007-10-20 Bruno Haible <bruno@clisp.org>
29236 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29237 precision in the comparison result > x - 1 or similar.
29238 * tests/test-ceilf2.c (correct_result_p): Likewise.
29239 * tests/test-truncf2.c (correct_result_p): Likewise.
29240 * tests/test-trunc2.c (correct_result_p): Likewise.
29241 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29243 2007-10-20 Bruno Haible <bruno@clisp.org>
29245 * modules/ceil: New file.
29246 * m4/ceil.m4: New file.
29247 * doc/functions/ceil.texi: Mention the 'ceil' module.
29249 2007-10-20 Bruno Haible <bruno@clisp.org>
29251 * modules/floor: New file.
29252 * m4/floor.m4: New file.
29253 * doc/functions/floor.texi: Mention the 'floor' module.
29255 2007-10-20 Bruno Haible <bruno@clisp.org>
29257 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29259 * modules/floorf-tests (Depends-on): Likewise.
29260 * modules/truncf-tests (Depends-on): Likewise.
29261 * modules/trunc-tests (Depends-on): Likewise.
29262 Reported by Ben Pfaff.
29264 2007-10-19 Jim Meyering <meyering@redhat.com>
29266 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29267 Don't bother testing specific errno values. Just test ferror.
29269 New module: xprintf
29270 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29272 2007-10-19 Bruno Haible <bruno@clisp.org>
29274 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29276 * modules/javaexec (Makefile.am): Likewise.
29277 * modules/relocatable-prog (Makefile.am): Likewise.
29278 Suggested by Jim Meyering.
29280 2007-10-18 Bruno Haible <bruno@clisp.org>
29282 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29283 Reported by Jim Meyering.
29285 2007-10-18 Eric Blake <ebb9@byu.net>
29287 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29289 2007-10-18 Bruno Haible <bruno@clisp.org>
29291 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29292 the format string into writable memory. Needed in Fortify conditions.
29294 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
29295 Bruno Haible <bruno@clisp.org>
29297 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29298 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29299 * modules/trim (Depends-on): Add mbchar.
29300 (configure.ac): Add gl_FUNC_MBRTOWC.
29301 (Makefile.am): Augment lib_SOURCES.
29303 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
29305 Modify glob.c to use fstatat and dirfd, to simplify it.
29306 Suggested by Eric Blake.
29307 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29308 Don't include <stdbool.h>; not used.
29309 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29310 (link_exists_p): Simplify implementation, since we can now assume
29312 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
29314 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29316 * gnulib-tool (func_get_dependencies): Fix sed script to
29319 2007-10-17 Bruno Haible <bruno@clisp.org>
29321 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29322 allow locale names without encoding suffix.
29323 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29324 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29326 2007-10-16 Bruno Haible <bruno@clisp.org>
29328 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29329 * lib/getgroups.c (getgroups): Likewise.
29330 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29332 2007-10-16 Bruno Haible <bruno@clisp.org>
29334 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29335 * modules/malloc-posix (License): Likewise.
29336 * modules/realloc-posix (License): Likewise.
29337 * modules/calloc-posix (License): Likewise.
29338 * modules/intprops (License): Change from GPL to LGPL, with
29339 Paul Eggert's approval.
29341 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29343 Merge glibc changes into lib/glob.c.
29345 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29346 2007-10-15 04:59:03 UTC. Here are the changes:
29348 2007-10-14 Ulrich Drepper <drepper@redhat.com>
29350 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29352 * lib/glob.c: Add some branch prediction throughout.
29354 2007-10-07 Ulrich Drepper <drepper@redhat.com>
29357 * lib/glob.c (glob): Recognize patterns starting \/.
29359 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29362 * lib/glob.c (attribute_hidden): Define if not defined.
29363 (glob): Unescape dirname, filename or username when needed and not
29364 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29365 is NULL. Handle unescaped [ in pattern without closing ].
29366 Don't pass GLOB_CHECK down to recursive glob for directories.
29367 (__glob_pattern_type): New function.
29368 (__glob_pattern_p): Implement using __glob_pattern_type.
29369 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29370 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29371 Remove unreachable code.
29373 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29375 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29376 explain why there are no leaks.
29378 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29381 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29382 time, rather allocate increasingly bigger arrays of pointers, if
29383 possible with alloca, if too large with malloc.
29385 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29387 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29388 Problem reported by H.Merijn Brand in
29389 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29390 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29391 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29393 2007-10-15 Bruno Haible <bruno@clisp.org>
29395 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29396 with explicit rpl_ prefix.
29397 * lib/fopen.c (fopen): Likewise.
29398 * lib/freopen.c (freopen): Likewise.
29399 * lib/iconv.c (iconv): Likewise.
29400 * lib/iconv_close.c (iconv_close): Likewise.
29402 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29404 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29406 2007-10-15 Bruno Haible <bruno@clisp.org>
29408 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29409 <stddef.h> instead of <stdlib.h> since we only need NULL.
29410 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29412 2007-10-15 Bruno Haible <bruno@clisp.org>
29414 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29415 Replace paragraph talking about LIBOBJS.
29416 Reported by Colin Watson <cjwatson@debian.org>.
29418 2007-10-15 Bruno Haible <bruno@clisp.org>
29420 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29421 <stdlib.h> before using NULL.
29423 2007-10-15 Simon Josefsson <simon@josefsson.org>
29425 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29426 Reported by Albert Chin <china@thewrittenword.com>.
29428 2007-10-14 Bruno Haible <bruno@clisp.org>
29430 * modules/iconv_open-utf-tests: New file.
29431 * tests/test-iconv-utf.c: New file.
29433 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29434 * modules/iconv_open-utf: New file.
29435 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29436 (iconv, iconv_close): New declarations.
29437 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29439 (iconv_open): Add special handling of conversion between UTF-8 and
29440 UTF-{16,32}{BE,LE}.
29441 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29442 * lib/iconv_close.c: New file.
29443 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29444 gl_FUNC_ICONV_OPEN.
29445 (gl_FUNC_ICONV_OPEN): Use it.
29446 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29447 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29448 and REPLACE_ICONV_UTF.
29449 * modules/iconv_open (Depends-on): Add c-strcase.
29450 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29452 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29454 2007-10-13 Albert Chin <china@thewrittenword.com>
29455 Bruno Haible <bruno@clisp.org>
29457 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29458 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29460 2007-10-13 Bruno Haible <bruno@clisp.org>
29462 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29463 defined, use the ISO C99 inline semantics.
29464 * lib/argp.h (ARGP_EI): Likewise.
29466 2007-10-13 Bruno Haible <bruno@clisp.org>
29468 Handle 'inline' change in gcc 4.3.0.
29469 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29470 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29471 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29472 argp_fmtstream_point): Disable 'extern' declaration if the function
29473 definition is going to be provided inline.
29474 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29475 semantics, not the ISO C99 inline semantics.
29476 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29477 'extern' declaration if the function definition is going to be provided
29479 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29480 the GNU C inline semantics, not the ISO C99 inline semantics. With
29481 GCC 4.2, avoid a warning.
29483 2007-10-13 Bruno Haible <bruno@clisp.org>
29485 * lib/freading.h (freading): Enable the use of __freading for
29487 * lib/freading.c (freading): Likewise.
29489 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
29491 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29492 "warning: C99 inline functions are not supported; using GNU89".
29494 2007-10-12 Bruno Haible <bruno@clisp.org>
29496 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29498 * tests/test-ceilf2.c: New file.
29499 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29501 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29502 * modules/ceilf-tests: Update.
29504 2007-10-12 Bruno Haible <bruno@clisp.org>
29506 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29508 * tests/test-floorf2.c: New file.
29509 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29511 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29512 * modules/floorf-tests: Update.
29514 2007-10-12 Bruno Haible <bruno@clisp.org>
29516 * tests/test-trunc2.c: New file.
29517 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29519 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29520 * modules/trunc-tests: Update.
29522 2007-10-12 Bruno Haible <bruno@clisp.org>
29524 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29526 * tests/test-truncf2.c: New file.
29527 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29529 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29530 * modules/truncf-tests: Update.
29532 2007-10-11 Eric Blake <ebb9@byu.net>
29534 Don't claim strerror is broken on Interix.
29535 * doc/functions/strerror.texi (strerror): Known broken systems are
29536 now Solaris 8, and not Interix.
29537 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29538 Interix on cross-compile.
29539 Reported by Martin Koeppe in
29540 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29542 2007-10-11 Bruno Haible <bruno@clisp.org>
29544 * modules/i-ring-tests: New file.
29545 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29548 2007-10-11 Bruno Haible <bruno@clisp.org>
29550 * modules/filenamecat-tests: New file.
29551 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29552 * lib/filenamecat.c: Remove test code.
29554 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29556 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29558 * lib/strerror.c: Include <string.h> always, to test interface,
29559 and to remove the need for the dummy.
29560 Include intprops.h to compute width instead of doing it ourselves
29561 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29562 (strerror): Define it to return NULL if there's no system strerror.
29563 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29564 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29565 ancient pre-strerror Unix systems well any more. Saying "unknown
29566 system error" is enough.
29567 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29568 simpler strerror.c implementation.
29569 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29570 Simplify the tests to reflect the simpler strerror implementation.
29571 * modules/strerror (Depends-on): Add intprops.
29573 2007-10-09 Eric Blake <ebb9@byu.net>
29575 Silence test-fpending.
29576 * modules/fpending-tests (Files): Add wrapper script.
29577 * tests/test-fpending.sh: New file.
29579 2007-10-09 Bruno Haible <bruno@clisp.org>
29581 * MODULES.html.sh (func_module): Don't create a hyperlink for
29582 function names like 'printf_frexp'.
29583 (Misc): Add crc, memxor.
29584 (Characteristics of floating types): New section.
29585 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29586 isnanf-nolibm, signbit, trunc, truncf, truncl.
29587 (Enhancements for ISO C 99 functions): New subsection Input/output.
29588 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29589 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29590 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29591 (Compatibility checks for POSIX:2001 functions): Add clock-time.
29592 (Enhancements for POSIX:2001 functions): Add chdir-long.
29593 (File system functions): Add areadlink, chdir-safer, read-file.
29594 Remove cycle-check.
29595 (File system as inode set): New section.
29596 (Date and time): Add gethrxtime.
29597 (Multithreading): Add openmp.
29598 (Internationalization functions): Add localename.
29599 (Unicode string functions): Add unistr/u*-mbsnlen.
29600 (Support for maintaining and releasing projects): Add git-version-gen.
29601 (Lone files): Remove directories.
29603 2007-10-08 Ben Pfaff <blp@gnu.org>
29605 * lib/xmalloca.h: Fix typo in comment.
29607 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
29609 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29610 when avoiding problems with integer overflow. Use a portable test
29613 2007-10-08 Simon Josefsson <simon@josefsson.org>
29615 * modules/dummy (License): Change to LGPLv2+.
29616 * modules/float (License): Likewise
29617 * modules/realloc (License): Likewise
29618 * modules/stdlib (License): Likewise
29620 2007-10-07 Bruno Haible <bruno@clisp.org>
29622 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29623 * floor.c (TWO_MANT_DIG): Likewise.
29624 * ceil.c (TWO_MANT_DIG): Likewise.
29625 Reported by Ben Pfaff.
29627 2007-10-07 Bruno Haible <bruno@clisp.org>
29629 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29630 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29631 * lib/frexp.c (FUNC): Likewise.
29632 * lib/printf-frexp.h (printf_frexp): Likewise.
29633 * lib/printf-frexpl.h (printf_frexpl): Likewise.
29634 * lib/printf-frexp.c (FUNC): Likewise.
29635 Suggested by Jim Meyering.
29637 2007-10-07 Jim Meyering <meyering@redhat.com>
29639 Make xnanosleep's integer overflow test more robust.
29640 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29641 so that gcc-4.3.0 doesn't optimize away this test for overflow.
29643 2007-10-07 Bruno Haible <bruno@clisp.org>
29645 * NEWS: Mention the license change.
29647 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29648 abbreviations in the modules files.
29650 Change copyright notice from GPLv2+ to GPLv3+.
29651 * README: Change copyright notice.
29652 * MODULES.html.sh: Likewise.
29653 * build-aux/bootstrap.conf: Likewise.
29654 * build-aux/config.libpath: Likewise.
29655 * build-aux/csharpcomp.sh.in: Likewise.
29656 * build-aux/csharpexec.sh.in: Likewise.
29657 * build-aux/install-reloc: Likewise.
29658 * build-aux/javacomp.sh.in: Likewise.
29659 * build-aux/javaexec.sh.in: Likewise.
29660 * build-aux/ldd.sh.in: Likewise.
29661 * build-aux/reloc-ldflags: Likewise.
29662 * build-aux/relocatable.sh.in: Likewise.
29663 * build-aux/x-to-1.in: Likewise.
29664 * check-module: Likewise.
29665 * config/srclistvars.sh: Likewise.
29666 * gnulib-tool: Likewise.
29667 * lib/acl-internal.h: Likewise.
29668 * lib/acl.c: Likewise.
29669 * lib/acl.h: Likewise.
29670 * lib/acl_entries.c: Likewise.
29671 * lib/areadlink-with-size.c: Likewise.
29672 * lib/areadlink.c: Likewise.
29673 * lib/areadlink.h: Likewise.
29674 * lib/argmatch.c: Likewise.
29675 * lib/argmatch.h: Likewise.
29676 * lib/argp-ba.c: Likewise.
29677 * lib/argp-eexst.c: Likewise.
29678 * lib/argp-fmtstream.c: Likewise.
29679 * lib/argp-fmtstream.h: Likewise.
29680 * lib/argp-fs-xinl.c: Likewise.
29681 * lib/argp-help.c: Likewise.
29682 * lib/argp-namefrob.h: Likewise.
29683 * lib/argp-parse.c: Likewise.
29684 * lib/argp-pin.c: Likewise.
29685 * lib/argp-pv.c: Likewise.
29686 * lib/argp-pvh.c: Likewise.
29687 * lib/argp-xinl.c: Likewise.
29688 * lib/argp.h: Likewise.
29689 * lib/at-func.c: Likewise.
29690 * lib/atanl.c: Likewise.
29691 * lib/backupfile.c: Likewise.
29692 * lib/backupfile.h: Likewise.
29693 * lib/basename.c: Likewise.
29694 * lib/binary-io.h: Likewise.
29695 * lib/byteswap.in.h: Likewise.
29696 * lib/c-stack.c: Likewise.
29697 * lib/c-stack.h: Likewise.
29698 * lib/c-strcasestr.c: Likewise.
29699 * lib/c-strcasestr.h: Likewise.
29700 * lib/c-strstr.c: Likewise.
29701 * lib/c-strstr.h: Likewise.
29702 * lib/c-strtod.c: Likewise.
29703 * lib/calloc.c: Likewise.
29704 * lib/canon-host.c: Likewise.
29705 * lib/canon-host.h: Likewise.
29706 * lib/canonicalize-lgpl.c: Likewise.
29707 * lib/canonicalize.c: Likewise.
29708 * lib/canonicalize.h: Likewise.
29709 * lib/ceil.c: Likewise.
29710 * lib/ceilf.c: Likewise.
29711 * lib/ceill.c: Likewise.
29712 * lib/chdir-long.c: Likewise.
29713 * lib/chdir-long.h: Likewise.
29714 * lib/chdir-safer.c: Likewise.
29715 * lib/chdir-safer.h: Likewise.
29716 * lib/chown.c: Likewise.
29717 * lib/classpath.c: Likewise.
29718 * lib/classpath.h: Likewise.
29719 * lib/clean-temp.c: Likewise.
29720 * lib/clean-temp.h: Likewise.
29721 * lib/cloexec.c: Likewise.
29722 * lib/close-stream.c: Likewise.
29723 * lib/closein.c: Likewise.
29724 * lib/closein.h: Likewise.
29725 * lib/closeout.c: Likewise.
29726 * lib/closeout.h: Likewise.
29727 * lib/concat-filename.c: Likewise.
29728 * lib/copy-file.c: Likewise.
29729 * lib/copy-file.h: Likewise.
29730 * lib/count-one-bits.h: Likewise.
29731 * lib/crc.c: Likewise.
29732 * lib/crc.h: Likewise.
29733 * lib/creat-safer.c: Likewise.
29734 * lib/csharpcomp.c: Likewise.
29735 * lib/csharpcomp.h: Likewise.
29736 * lib/csharpexec.c: Likewise.
29737 * lib/csharpexec.h: Likewise.
29738 * lib/cycle-check.c: Likewise.
29739 * lib/cycle-check.h: Likewise.
29740 * lib/diacrit.c: Likewise.
29741 * lib/diacrit.h: Likewise.
29742 * lib/diffseq.h: Likewise.
29743 * lib/dirchownmod.c: Likewise.
29744 * lib/dirent.in.h: Likewise.
29745 * lib/dirfd.c: Likewise.
29746 * lib/dirfd.h: Likewise.
29747 * lib/dirname.c: Likewise.
29748 * lib/dirname.h: Likewise.
29749 * lib/dummy.c: Likewise.
29750 * lib/dup-safer.c: Likewise.
29751 * lib/dup2.c: Likewise.
29752 * lib/eealloc.h: Likewise.
29753 * lib/error.c: Likewise.
29754 * lib/error.h: Likewise.
29755 * lib/euidaccess.c: Likewise.
29756 * lib/exclude.c: Likewise.
29757 * lib/exclude.h: Likewise.
29758 * lib/execute.c: Likewise.
29759 * lib/execute.h: Likewise.
29760 * lib/exitfail.c: Likewise.
29761 * lib/exitfail.h: Likewise.
29762 * lib/expl.c: Likewise.
29763 * lib/fatal-signal.c: Likewise.
29764 * lib/fatal-signal.h: Likewise.
29765 * lib/fbufmode.c: Likewise.
29766 * lib/fbufmode.h: Likewise.
29767 * lib/fchdir.c: Likewise.
29768 * lib/fchmodat.c: Likewise.
29769 * lib/fchownat.c: Likewise.
29770 * lib/fcntl--.h: Likewise.
29771 * lib/fcntl-safer.h: Likewise.
29772 * lib/fcntl.in.h: Likewise.
29773 * lib/fd-safer.c: Likewise.
29774 * lib/fflush.c: Likewise.
29775 * lib/file-has-acl.c: Likewise.
29776 * lib/file-set.c: Likewise.
29777 * lib/file-type.c: Likewise.
29778 * lib/file-type.h: Likewise.
29779 * lib/fileblocks.c: Likewise.
29780 * lib/filemode.c: Likewise.
29781 * lib/filemode.h: Likewise.
29782 * lib/filename.h: Likewise.
29783 * lib/filenamecat.c: Likewise.
29784 * lib/filenamecat.h: Likewise.
29785 * lib/findprog.c: Likewise.
29786 * lib/findprog.h: Likewise.
29787 * lib/float.in.h: Likewise.
29788 * lib/floor.c: Likewise.
29789 * lib/floorf.c: Likewise.
29790 * lib/floorl.c: Likewise.
29791 * lib/fopen-safer.c: Likewise.
29792 * lib/fopen.c: Likewise.
29793 * lib/fpending.c: Likewise.
29794 * lib/fpending.h: Likewise.
29795 * lib/fprintf.c: Likewise.
29796 * lib/fprintftime.h: Likewise.
29797 * lib/fpucw.h: Likewise.
29798 * lib/fpurge.c: Likewise.
29799 * lib/fpurge.h: Likewise.
29800 * lib/freadable.c: Likewise.
29801 * lib/freadable.h: Likewise.
29802 * lib/freadahead.c: Likewise.
29803 * lib/freadahead.h: Likewise.
29804 * lib/freading.c: Likewise.
29805 * lib/freading.h: Likewise.
29806 * lib/free.c: Likewise.
29807 * lib/freopen.c: Likewise.
29808 * lib/frexp.c: Likewise.
29809 * lib/frexpl.c: Likewise.
29810 * lib/fseek.c: Likewise.
29811 * lib/fseterr.c: Likewise.
29812 * lib/fseterr.h: Likewise.
29813 * lib/fstatat.c: Likewise.
29814 * lib/fstrcmp.c: Likewise.
29815 * lib/fstrcmp.h: Likewise.
29816 * lib/fsusage.c: Likewise.
29817 * lib/fsusage.h: Likewise.
29818 * lib/ftell.c: Likewise.
29819 * lib/ftello.c: Likewise.
29820 * lib/fts-cycle.c: Likewise.
29821 * lib/fts.c: Likewise.
29822 * lib/fts_.h: Likewise.
29823 * lib/full-read.c: Likewise.
29824 * lib/full-read.h: Likewise.
29825 * lib/full-write.c: Likewise.
29826 * lib/full-write.h: Likewise.
29827 * lib/fwritable.c: Likewise.
29828 * lib/fwritable.h: Likewise.
29829 * lib/fwriteerror.c: Likewise.
29830 * lib/fwriteerror.h: Likewise.
29831 * lib/fwriting.c: Likewise.
29832 * lib/fwriting.h: Likewise.
29833 * lib/gcd.c: Likewise.
29834 * lib/gcd.h: Likewise.
29835 * lib/getcwd.c: Likewise.
29836 * lib/getdate.h: Likewise.
29837 * lib/getdate.y: Likewise.
29838 * lib/getdomainname.c: Likewise.
29839 * lib/getdomainname.h: Likewise.
29840 * lib/getgroups.c: Likewise.
29841 * lib/gethostname.c: Likewise.
29842 * lib/gethrxtime.c: Likewise.
29843 * lib/gethrxtime.h: Likewise.
29844 * lib/getloadavg.c: Likewise.
29845 * lib/getndelim2.c: Likewise.
29846 * lib/getndelim2.h: Likewise.
29847 * lib/getnline.c: Likewise.
29848 * lib/getnline.h: Likewise.
29849 * lib/getopt.c: Likewise.
29850 * lib/getopt.in.h: Likewise.
29851 * lib/getopt1.c: Likewise.
29852 * lib/getopt_int.h: Likewise.
29853 * lib/getpagesize.h: Likewise.
29854 * lib/getsubopt.c: Likewise.
29855 * lib/gettime.c: Likewise.
29856 * lib/getugroups.c: Likewise.
29857 * lib/getugroups.h: Likewise.
29858 * lib/getusershell.c: Likewise.
29859 * lib/gl_anyavltree_list1.h: Likewise.
29860 * lib/gl_anyavltree_list2.h: Likewise.
29861 * lib/gl_anyhash_list1.h: Likewise.
29862 * lib/gl_anyhash_list2.h: Likewise.
29863 * lib/gl_anylinked_list1.h: Likewise.
29864 * lib/gl_anylinked_list2.h: Likewise.
29865 * lib/gl_anyrbtree_list1.h: Likewise.
29866 * lib/gl_anyrbtree_list2.h: Likewise.
29867 * lib/gl_anytree_list1.h: Likewise.
29868 * lib/gl_anytree_list2.h: Likewise.
29869 * lib/gl_anytree_oset.h: Likewise.
29870 * lib/gl_anytreehash_list1.h: Likewise.
29871 * lib/gl_anytreehash_list2.h: Likewise.
29872 * lib/gl_array_list.c: Likewise.
29873 * lib/gl_array_list.h: Likewise.
29874 * lib/gl_array_oset.c: Likewise.
29875 * lib/gl_array_oset.h: Likewise.
29876 * lib/gl_avltree_list.c: Likewise.
29877 * lib/gl_avltree_list.h: Likewise.
29878 * lib/gl_avltree_oset.c: Likewise.
29879 * lib/gl_avltree_oset.h: Likewise.
29880 * lib/gl_avltreehash_list.c: Likewise.
29881 * lib/gl_avltreehash_list.h: Likewise.
29882 * lib/gl_carray_list.c: Likewise.
29883 * lib/gl_carray_list.h: Likewise.
29884 * lib/gl_linked_list.c: Likewise.
29885 * lib/gl_linked_list.h: Likewise.
29886 * lib/gl_linkedhash_list.c: Likewise.
29887 * lib/gl_linkedhash_list.h: Likewise.
29888 * lib/gl_list.c: Likewise.
29889 * lib/gl_list.h: Likewise.
29890 * lib/gl_oset.c: Likewise.
29891 * lib/gl_oset.h: Likewise.
29892 * lib/gl_rbtree_list.c: Likewise.
29893 * lib/gl_rbtree_list.h: Likewise.
29894 * lib/gl_rbtree_oset.c: Likewise.
29895 * lib/gl_rbtree_oset.h: Likewise.
29896 * lib/gl_rbtreehash_list.c: Likewise.
29897 * lib/gl_rbtreehash_list.h: Likewise.
29898 * lib/gl_sublist.c: Likewise.
29899 * lib/gl_sublist.h: Likewise.
29900 * lib/group-member.c: Likewise.
29901 * lib/group-member.h: Likewise.
29902 * lib/hard-locale.c: Likewise.
29903 * lib/hard-locale.h: Likewise.
29904 * lib/hash-pjw.c: Likewise.
29905 * lib/hash-pjw.h: Likewise.
29906 * lib/hash-triple.c: Likewise.
29907 * lib/hash.c: Likewise.
29908 * lib/hash.h: Likewise.
29909 * lib/human.c: Likewise.
29910 * lib/human.h: Likewise.
29911 * lib/i-ring.c: Likewise.
29912 * lib/i-ring.h: Likewise.
29913 * lib/idcache.c: Likewise.
29914 * lib/imaxabs.c: Likewise.
29915 * lib/imaxdiv.c: Likewise.
29916 * lib/inet_pton.c: Likewise.
29917 * lib/inet_pton.h: Likewise.
29918 * lib/intprops.h: Likewise.
29919 * lib/inttostr.c: Likewise.
29920 * lib/inttostr.h: Likewise.
29921 * lib/inttypes.in.h: Likewise.
29922 * lib/isapipe.c: Likewise.
29923 * lib/isdir.c: Likewise.
29924 * lib/isnan.c: Likewise.
29925 * lib/isnan.h: Likewise.
29926 * lib/isnanf.c: Likewise.
29927 * lib/isnanf.h: Likewise.
29928 * lib/isnanl-nolibm.h: Likewise.
29929 * lib/isnanl.c: Likewise.
29930 * lib/isnanl.h: Likewise.
29931 * lib/javacomp.c: Likewise.
29932 * lib/javacomp.h: Likewise.
29933 * lib/javaexec.c: Likewise.
29934 * lib/javaexec.h: Likewise.
29935 * lib/javaversion.c: Likewise.
29936 * lib/javaversion.h: Likewise.
29937 * lib/javaversion.java: Likewise.
29938 * lib/lbrkprop.h: Likewise.
29939 * lib/lchmod.h: Likewise.
29940 * lib/lchown.c: Likewise.
29941 * lib/ldexpl.c: Likewise.
29942 * lib/linebreak.c: Likewise.
29943 * lib/linebreak.h: Likewise.
29944 * lib/linebuffer.c: Likewise.
29945 * lib/linebuffer.h: Likewise.
29946 * lib/locale.in.h: Likewise.
29947 * lib/logl.c: Likewise.
29948 * lib/long-options.c: Likewise.
29949 * lib/long-options.h: Likewise.
29950 * lib/lstat.c: Likewise.
29951 * lib/lstat.h: Likewise.
29952 * lib/math.in.h: Likewise.
29953 * lib/mbchar.c: Likewise.
29954 * lib/mbchar.h: Likewise.
29955 * lib/mbfile.h: Likewise.
29956 * lib/mbiter.h: Likewise.
29957 * lib/mbscasecmp.c: Likewise.
29958 * lib/mbscasestr.c: Likewise.
29959 * lib/mbschr.c: Likewise.
29960 * lib/mbscspn.c: Likewise.
29961 * lib/mbslen.c: Likewise.
29962 * lib/mbsncasecmp.c: Likewise.
29963 * lib/mbsnlen.c: Likewise.
29964 * lib/mbspbrk.c: Likewise.
29965 * lib/mbspcasecmp.c: Likewise.
29966 * lib/mbsrchr.c: Likewise.
29967 * lib/mbssep.c: Likewise.
29968 * lib/mbsspn.c: Likewise.
29969 * lib/mbsstr.c: Likewise.
29970 * lib/mbstok_r.c: Likewise.
29971 * lib/mbswidth.c: Likewise.
29972 * lib/mbswidth.h: Likewise.
29973 * lib/mbuiter.h: Likewise.
29974 * lib/memcasecmp.c: Likewise.
29975 * lib/memcasecmp.h: Likewise.
29976 * lib/memchr.c: Likewise.
29977 * lib/memcmp.c: Likewise.
29978 * lib/memcoll.c: Likewise.
29979 * lib/memcoll.h: Likewise.
29980 * lib/memcpy.c: Likewise.
29981 * lib/memrchr.c: Likewise.
29982 * lib/mkancesdirs.c: Likewise.
29983 * lib/mkdir-p.c: Likewise.
29984 * lib/mkdir-p.h: Likewise.
29985 * lib/mkdir.c: Likewise.
29986 * lib/mkdirat.c: Likewise.
29987 * lib/mkdtemp.c: Likewise.
29988 * lib/mkstemp-safer.c: Likewise.
29989 * lib/mkstemp.c: Likewise.
29990 * lib/modechange.c: Likewise.
29991 * lib/modechange.h: Likewise.
29992 * lib/mountlist.c: Likewise.
29993 * lib/mountlist.h: Likewise.
29994 * lib/mpsort.c: Likewise.
29995 * lib/nanosleep.c: Likewise.
29996 * lib/obstack.c: Likewise.
29997 * lib/obstack.h: Likewise.
29998 * lib/open-safer.c: Likewise.
29999 * lib/open.c: Likewise.
30000 * lib/openat-die.c: Likewise.
30001 * lib/openat-priv.h: Likewise.
30002 * lib/openat-proc.c: Likewise.
30003 * lib/openat.c: Likewise.
30004 * lib/openat.h: Likewise.
30005 * lib/pagealign_alloc.c: Likewise.
30006 * lib/pagealign_alloc.h: Likewise.
30007 * lib/physmem.c: Likewise.
30008 * lib/physmem.h: Likewise.
30009 * lib/pipe-safer.c: Likewise.
30010 * lib/pipe.c: Likewise.
30011 * lib/pipe.h: Likewise.
30012 * lib/posixtm.c: Likewise.
30013 * lib/posixtm.h: Likewise.
30014 * lib/posixver.c: Likewise.
30015 * lib/printf-frexp.c: Likewise.
30016 * lib/printf-frexp.h: Likewise.
30017 * lib/printf-frexpl.c: Likewise.
30018 * lib/printf-frexpl.h: Likewise.
30019 * lib/printf.c: Likewise.
30020 * lib/progname.c: Likewise.
30021 * lib/progname.h: Likewise.
30022 * lib/progreloc.c: Likewise.
30023 * lib/putenv.c: Likewise.
30024 * lib/quote.c: Likewise.
30025 * lib/quote.h: Likewise.
30026 * lib/quotearg.c: Likewise.
30027 * lib/quotearg.h: Likewise.
30028 * lib/raise.c: Likewise.
30029 * lib/readline.c: Likewise.
30030 * lib/readline.h: Likewise.
30031 * lib/readlink.c: Likewise.
30032 * lib/readtokens.c: Likewise.
30033 * lib/readtokens.h: Likewise.
30034 * lib/readtokens0.c: Likewise.
30035 * lib/readtokens0.h: Likewise.
30036 * lib/readutmp.c: Likewise.
30037 * lib/readutmp.h: Likewise.
30038 * lib/realloc.c: Likewise.
30039 * lib/relocwrapper.c: Likewise.
30040 * lib/rename-dest-slash.c: Likewise.
30041 * lib/rename.c: Likewise.
30042 * lib/rmdir.c: Likewise.
30043 * lib/rpmatch.c: Likewise.
30044 * lib/safe-read.c: Likewise.
30045 * lib/safe-read.h: Likewise.
30046 * lib/safe-write.c: Likewise.
30047 * lib/safe-write.h: Likewise.
30048 * lib/same-inode.h: Likewise.
30049 * lib/same.c: Likewise.
30050 * lib/same.h: Likewise.
30051 * lib/save-cwd.c: Likewise.
30052 * lib/save-cwd.h: Likewise.
30053 * lib/savedir.c: Likewise.
30054 * lib/savedir.h: Likewise.
30055 * lib/savewd.c: Likewise.
30056 * lib/savewd.h: Likewise.
30057 * lib/search.in.h: Likewise.
30058 * lib/setenv.c: Likewise.
30059 * lib/setenv.h: Likewise.
30060 * lib/settime.c: Likewise.
30061 * lib/sh-quote.c: Likewise.
30062 * lib/sh-quote.h: Likewise.
30063 * lib/sig2str.c: Likewise.
30064 * lib/sig2str.h: Likewise.
30065 * lib/signal.in.h: Likewise.
30066 * lib/signbitd.c: Likewise.
30067 * lib/signbitf.c: Likewise.
30068 * lib/signbitl.c: Likewise.
30069 * lib/sigprocmask.c: Likewise.
30070 * lib/sincosl.c: Likewise.
30071 * lib/sleep.c: Likewise.
30072 * lib/sprintf.c: Likewise.
30073 * lib/sqrtl.c: Likewise.
30074 * lib/stat-time.h: Likewise.
30075 * lib/stdio--.h: Likewise.
30076 * lib/stdio-safer.h: Likewise.
30077 * lib/stdlib--.h: Likewise.
30078 * lib/stdlib-safer.h: Likewise.
30079 * lib/stdlib.in.h: Likewise.
30080 * lib/stpcpy.c: Likewise.
30081 * lib/stpncpy.c: Likewise.
30082 * lib/strchrnul.c: Likewise.
30083 * lib/strcspn.c: Likewise.
30084 * lib/strerror.c: Likewise.
30085 * lib/strftime.c: Likewise.
30086 * lib/strftime.h: Likewise.
30087 * lib/striconveh.c: Likewise.
30088 * lib/striconveh.h: Likewise.
30089 * lib/striconveha.c: Likewise.
30090 * lib/striconveha.h: Likewise.
30091 * lib/stripslash.c: Likewise.
30092 * lib/strnlen1.c: Likewise.
30093 * lib/strnlen1.h: Likewise.
30094 * lib/strtod.c: Likewise.
30095 * lib/strtoimax.c: Likewise.
30096 * lib/strtok_r.c: Likewise.
30097 * lib/strtol.c: Likewise.
30098 * lib/strtoll.c: Likewise.
30099 * lib/strtoul.c: Likewise.
30100 * lib/strtoull.c: Likewise.
30101 * lib/sysexits.in.h: Likewise.
30102 * lib/tempname.c: Likewise.
30103 * lib/tempname.h: Likewise.
30104 * lib/timespec.h: Likewise.
30105 * lib/tls.c: Likewise.
30106 * lib/tls.h: Likewise.
30107 * lib/tmpdir.c: Likewise.
30108 * lib/tmpdir.h: Likewise.
30109 * lib/tmpfile-safer.c: Likewise.
30110 * lib/tmpfile.c: Likewise.
30111 * lib/trigl.c: Likewise.
30112 * lib/trigl.h: Likewise.
30113 * lib/trim.c: Likewise.
30114 * lib/trim.h: Likewise.
30115 * lib/trunc.c: Likewise.
30116 * lib/truncf.c: Likewise.
30117 * lib/truncl.c: Likewise.
30118 * lib/tsearch.c: Likewise.
30119 * lib/unicodeio.c: Likewise.
30120 * lib/unicodeio.h: Likewise.
30121 * lib/unistd--.h: Likewise.
30122 * lib/unistd-safer.h: Likewise.
30123 * lib/unistdio/ulc-fprintf.c: Likewise.
30124 * lib/unistdio/ulc-vfprintf.c: Likewise.
30125 * lib/unlinkdir.c: Likewise.
30126 * lib/unlinkdir.h: Likewise.
30127 * lib/unlocked-io.h: Likewise.
30128 * lib/unsetenv.c: Likewise.
30129 * lib/userspec.c: Likewise.
30130 * lib/utime.c: Likewise.
30131 * lib/utimecmp.c: Likewise.
30132 * lib/utimecmp.h: Likewise.
30133 * lib/utimens.c: Likewise.
30134 * lib/verify.h: Likewise.
30135 * lib/verror.c: Likewise.
30136 * lib/verror.h: Likewise.
30137 * lib/version-etc-fsf.c: Likewise.
30138 * lib/version-etc.c: Likewise.
30139 * lib/version-etc.h: Likewise.
30140 * lib/vfprintf.c: Likewise.
30141 * lib/vprintf.c: Likewise.
30142 * lib/vsprintf.c: Likewise.
30143 * lib/w32spawn.h: Likewise.
30144 * lib/wait-process.c: Likewise.
30145 * lib/wait-process.h: Likewise.
30146 * lib/wcwidth.c: Likewise.
30147 * lib/write-any-file.c: Likewise.
30148 * lib/xalloc-die.c: Likewise.
30149 * lib/xalloc.h: Likewise.
30150 * lib/xasprintf.c: Likewise.
30151 * lib/xgetcwd.c: Likewise.
30152 * lib/xgetcwd.h: Likewise.
30153 * lib/xgetdomainname.c: Likewise.
30154 * lib/xgetdomainname.h: Likewise.
30155 * lib/xgethostname.c: Likewise.
30156 * lib/xmalloc.c: Likewise.
30157 * lib/xmalloca.c: Likewise.
30158 * lib/xmalloca.h: Likewise.
30159 * lib/xmemcoll.c: Likewise.
30160 * lib/xnanosleep.c: Likewise.
30161 * lib/xreadlink.c: Likewise.
30162 * lib/xreadlink.h: Likewise.
30163 * lib/xsetenv.c: Likewise.
30164 * lib/xsetenv.h: Likewise.
30165 * lib/xstriconv.c: Likewise.
30166 * lib/xstriconv.h: Likewise.
30167 * lib/xstrndup.c: Likewise.
30168 * lib/xstrndup.h: Likewise.
30169 * lib/xstrtod.c: Likewise.
30170 * lib/xstrtod.h: Likewise.
30171 * lib/xstrtol-error.c: Likewise.
30172 * lib/xstrtol.c: Likewise.
30173 * lib/xstrtol.h: Likewise.
30174 * lib/xtime.h: Likewise.
30175 * lib/xvasprintf.c: Likewise.
30176 * lib/xvasprintf.h: Likewise.
30177 * lib/yesno.c: Likewise.
30178 * lib/yesno.h: Likewise.
30179 * posix-modules: Likewise.
30180 * tests/test-alloca-opt.c: Likewise.
30181 * tests/test-arcfour.c: Likewise.
30182 * tests/test-arctwo.c: Likewise.
30183 * tests/test-argmatch.c: Likewise.
30184 * tests/test-argp-2.sh: Likewise.
30185 * tests/test-argp.c: Likewise.
30186 * tests/test-arpa_inet.c: Likewise.
30187 * tests/test-array_list.c: Likewise.
30188 * tests/test-array_oset.c: Likewise.
30189 * tests/test-atexit.c: Likewise.
30190 * tests/test-avltree_list.c: Likewise.
30191 * tests/test-avltree_oset.c: Likewise.
30192 * tests/test-avltreehash_list.c: Likewise.
30193 * tests/test-base64.c: Likewise.
30194 * tests/test-binary-io.c: Likewise.
30195 * tests/test-byteswap.c: Likewise.
30196 * tests/test-c-ctype.c: Likewise.
30197 * tests/test-c-strcasecmp.c: Likewise.
30198 * tests/test-c-strcasestr.c: Likewise.
30199 * tests/test-c-strncasecmp.c: Likewise.
30200 * tests/test-c-strstr.c: Likewise.
30201 * tests/test-canonicalize-lgpl.c: Likewise.
30202 * tests/test-canonicalize.c: Likewise.
30203 * tests/test-carray_list.c: Likewise.
30204 * tests/test-ceilf.c: Likewise.
30205 * tests/test-ceill.c: Likewise.
30206 * tests/test-count-one-bits.c: Likewise.
30207 * tests/test-crc.c: Likewise.
30208 * tests/test-dirname.c: Likewise.
30209 * tests/test-fbufmode.c: Likewise.
30210 * tests/test-fcntl.c: Likewise.
30211 * tests/test-fflush.c: Likewise.
30212 * tests/test-floorf.c: Likewise.
30213 * tests/test-floorl.c: Likewise.
30214 * tests/test-fopen.c: Likewise.
30215 * tests/test-fprintf-posix.c: Likewise.
30216 * tests/test-fprintf-posix.h: Likewise.
30217 * tests/test-fpurge.c: Likewise.
30218 * tests/test-freadable.c: Likewise.
30219 * tests/test-freadahead.c: Likewise.
30220 * tests/test-freading.c: Likewise.
30221 * tests/test-freopen.c: Likewise.
30222 * tests/test-frexp.c: Likewise.
30223 * tests/test-frexpl.c: Likewise.
30224 * tests/test-fseek.c: Likewise.
30225 * tests/test-fseeko.c: Likewise.
30226 * tests/test-fseterr.c: Likewise.
30227 * tests/test-fstrcmp.c: Likewise.
30228 * tests/test-ftell.c: Likewise.
30229 * tests/test-ftello.c: Likewise.
30230 * tests/test-fwritable.c: Likewise.
30231 * tests/test-fwriting.c: Likewise.
30232 * tests/test-getaddrinfo.c: Likewise.
30233 * tests/test-getpass.c: Likewise.
30234 * tests/test-gettimeofday.c: Likewise.
30235 * tests/test-hmac-md5.c: Likewise.
30236 * tests/test-hmac-sha1.c: Likewise.
30237 * tests/test-iconv.c: Likewise.
30238 * tests/test-iconvme.c: Likewise.
30239 * tests/test-inttypes.c: Likewise.
30240 * tests/test-isnan.c: Likewise.
30241 * tests/test-isnanf.c: Likewise.
30242 * tests/test-isnanl-nolibm.c: Likewise.
30243 * tests/test-isnanl.c: Likewise.
30244 * tests/test-isnanl.h: Likewise.
30245 * tests/test-ldexpl.c: Likewise.
30246 * tests/test-linked_list.c: Likewise.
30247 * tests/test-linkedhash_list.c: Likewise.
30248 * tests/test-locale.c: Likewise.
30249 * tests/test-localename.c: Likewise.
30250 * tests/test-lock.c: Likewise.
30251 * tests/test-lseek.c: Likewise.
30252 * tests/test-malloca.c: Likewise.
30253 * tests/test-math.c: Likewise.
30254 * tests/test-mbscasecmp.c: Likewise.
30255 * tests/test-mbscasestr1.c: Likewise.
30256 * tests/test-mbscasestr2.c: Likewise.
30257 * tests/test-mbscasestr3.c: Likewise.
30258 * tests/test-mbscasestr4.c: Likewise.
30259 * tests/test-mbschr.c: Likewise.
30260 * tests/test-mbscspn.c: Likewise.
30261 * tests/test-mbsncasecmp.c: Likewise.
30262 * tests/test-mbspbrk.c: Likewise.
30263 * tests/test-mbspcasecmp.c: Likewise.
30264 * tests/test-mbsrchr.c: Likewise.
30265 * tests/test-mbsspn.c: Likewise.
30266 * tests/test-mbsstr1.c: Likewise.
30267 * tests/test-mbsstr2.c: Likewise.
30268 * tests/test-mbsstr3.c: Likewise.
30269 * tests/test-md5.c: Likewise.
30270 * tests/test-memmem.c: Likewise.
30271 * tests/test-netinet_in.c: Likewise.
30272 * tests/test-open.c: Likewise.
30273 * tests/test-printf-frexp.c: Likewise.
30274 * tests/test-printf-frexpl.c: Likewise.
30275 * tests/test-printf-posix.c: Likewise.
30276 * tests/test-printf-posix.h: Likewise.
30277 * tests/test-rbtree_list.c: Likewise.
30278 * tests/test-rbtree_oset.c: Likewise.
30279 * tests/test-rbtreehash_list.c: Likewise.
30280 * tests/test-read-file.c: Likewise.
30281 * tests/test-rijndael.c: Likewise.
30282 * tests/test-search.c: Likewise.
30283 * tests/test-signbit.c: Likewise.
30284 * tests/test-sleep.c: Likewise.
30285 * tests/test-snprintf-posix.c: Likewise.
30286 * tests/test-snprintf-posix.h: Likewise.
30287 * tests/test-snprintf.c: Likewise.
30288 * tests/test-sprintf-posix.c: Likewise.
30289 * tests/test-sprintf-posix.h: Likewise.
30290 * tests/test-stat-time.c: Likewise.
30291 * tests/test-stdbool.c: Likewise.
30292 * tests/test-stdint.c: Likewise.
30293 * tests/test-stdio.c: Likewise.
30294 * tests/test-stdlib.c: Likewise.
30295 * tests/test-stpncpy.c: Likewise.
30296 * tests/test-strcasestr.c: Likewise.
30297 * tests/test-striconv.c: Likewise.
30298 * tests/test-striconveh.c: Likewise.
30299 * tests/test-striconveha.c: Likewise.
30300 * tests/test-string.c: Likewise.
30301 * tests/test-sys_select.c: Likewise.
30302 * tests/test-sys_socket.c: Likewise.
30303 * tests/test-sys_stat.c: Likewise.
30304 * tests/test-sys_time.c: Likewise.
30305 * tests/test-sysexits.c: Likewise.
30306 * tests/test-time.c: Likewise.
30307 * tests/test-tls.c: Likewise.
30308 * tests/test-trunc.c: Likewise.
30309 * tests/test-truncf.c: Likewise.
30310 * tests/test-truncl.c: Likewise.
30311 * tests/test-unistd.c: Likewise.
30312 * tests/test-vasnprintf-posix.c: Likewise.
30313 * tests/test-vasnprintf-posix2.c: Likewise.
30314 * tests/test-vasnprintf.c: Likewise.
30315 * tests/test-vasprintf-posix.c: Likewise.
30316 * tests/test-vasprintf.c: Likewise.
30317 * tests/test-verify.c: Likewise.
30318 * tests/test-vfprintf-posix.c: Likewise.
30319 * tests/test-vprintf-posix.c: Likewise.
30320 * tests/test-vsnprintf-posix.c: Likewise.
30321 * tests/test-vsnprintf.c: Likewise.
30322 * tests/test-vsprintf-posix.c: Likewise.
30323 * tests/test-wchar.c: Likewise.
30324 * tests/test-wctype.c: Likewise.
30325 * tests/test-wcwidth.c: Likewise.
30326 * tests/test-xstrtol.c: Likewise.
30327 * tests/test-xvasprintf.c: Likewise.
30328 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30329 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30330 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30331 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30332 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30333 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30334 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30335 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30336 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30337 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30338 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30339 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30340 * tests/uniname/test-uninames.c: Likewise.
30341 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30342 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30343 * tests/unistdio/test-u16-printf1.h: Likewise.
30344 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30345 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30346 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30347 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30348 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30349 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30350 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30351 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30352 * tests/unistdio/test-u32-printf1.h: Likewise.
30353 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30354 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30355 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30356 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30357 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30358 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30359 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30360 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30361 * tests/unistdio/test-u8-printf1.h: Likewise.
30362 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30363 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30364 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30365 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30366 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30367 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30368 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30369 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30370 * tests/unistdio/test-ulc-printf1.h: Likewise.
30371 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30372 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30373 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30374 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30375 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30376 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30377 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30378 * tests/uniwidth/test-u16-width.c: Likewise.
30379 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30380 * tests/uniwidth/test-u32-width.c: Likewise.
30381 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30382 * tests/uniwidth/test-u8-width.c: Likewise.
30383 * tests/uniwidth/test-uc_width.c: Likewise.
30384 * config/srclist-update: Likewise.
30385 (fixlicense): Update to GPLv3+.
30387 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30388 * tests/test-tsearch.c: Change copyright notice.
30390 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30391 * lib/c-strcaseeq.h: Change copyright notice.
30392 * lib/streq.h: Likewise.
30393 * lib/uniconv.h: Likewise.
30394 * lib/uniconv/u-conv-from-enc.h: Likewise.
30395 * lib/uniconv/u-conv-to-enc.h: Likewise.
30396 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30397 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30398 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30399 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30400 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30401 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30402 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30403 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30404 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30405 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30406 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30407 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30408 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30409 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30410 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30411 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30412 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30413 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30414 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30415 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30416 * lib/uniname.h: Likewise.
30417 * lib/uniname/uniname.c: Likewise.
30418 * lib/unistdio.h: Likewise.
30419 * lib/unistdio/u-asnprintf.h: Likewise.
30420 * lib/unistdio/u-asprintf.h: Likewise.
30421 * lib/unistdio/u-printf-args.c: Likewise.
30422 * lib/unistdio/u-printf-args.h: Likewise.
30423 * lib/unistdio/u-printf-parse.h: Likewise.
30424 * lib/unistdio/u-snprintf.h: Likewise.
30425 * lib/unistdio/u-sprintf.h: Likewise.
30426 * lib/unistdio/u-vasprintf.h: Likewise.
30427 * lib/unistdio/u-vsnprintf.h: Likewise.
30428 * lib/unistdio/u-vsprintf.h: Likewise.
30429 * lib/unistdio/u16-asnprintf.c: Likewise.
30430 * lib/unistdio/u16-asprintf.c: Likewise.
30431 * lib/unistdio/u16-printf-parse.c: Likewise.
30432 * lib/unistdio/u16-snprintf.c: Likewise.
30433 * lib/unistdio/u16-sprintf.c: Likewise.
30434 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30435 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30436 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30437 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30438 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30439 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30440 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30441 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30442 * lib/unistdio/u16-vasnprintf.c: Likewise.
30443 * lib/unistdio/u16-vasprintf.c: Likewise.
30444 * lib/unistdio/u16-vsnprintf.c: Likewise.
30445 * lib/unistdio/u16-vsprintf.c: Likewise.
30446 * lib/unistdio/u32-asnprintf.c: Likewise.
30447 * lib/unistdio/u32-asprintf.c: Likewise.
30448 * lib/unistdio/u32-printf-parse.c: Likewise.
30449 * lib/unistdio/u32-snprintf.c: Likewise.
30450 * lib/unistdio/u32-sprintf.c: Likewise.
30451 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30452 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30453 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30454 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30455 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30456 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30457 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30458 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30459 * lib/unistdio/u32-vasnprintf.c: Likewise.
30460 * lib/unistdio/u32-vasprintf.c: Likewise.
30461 * lib/unistdio/u32-vsnprintf.c: Likewise.
30462 * lib/unistdio/u32-vsprintf.c: Likewise.
30463 * lib/unistdio/u8-asnprintf.c: Likewise.
30464 * lib/unistdio/u8-asprintf.c: Likewise.
30465 * lib/unistdio/u8-printf-parse.c: Likewise.
30466 * lib/unistdio/u8-snprintf.c: Likewise.
30467 * lib/unistdio/u8-sprintf.c: Likewise.
30468 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30469 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30470 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30471 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30472 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30473 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30474 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30475 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30476 * lib/unistdio/u8-vasnprintf.c: Likewise.
30477 * lib/unistdio/u8-vasprintf.c: Likewise.
30478 * lib/unistdio/u8-vsnprintf.c: Likewise.
30479 * lib/unistdio/u8-vsprintf.c: Likewise.
30480 * lib/unistdio/ulc-asnprintf.c: Likewise.
30481 * lib/unistdio/ulc-asprintf.c: Likewise.
30482 * lib/unistdio/ulc-printf-parse.c: Likewise.
30483 * lib/unistdio/ulc-snprintf.c: Likewise.
30484 * lib/unistdio/ulc-sprintf.c: Likewise.
30485 * lib/unistdio/ulc-vasnprintf.c: Likewise.
30486 * lib/unistdio/ulc-vasprintf.c: Likewise.
30487 * lib/unistdio/ulc-vsnprintf.c: Likewise.
30488 * lib/unistdio/ulc-vsprintf.c: Likewise.
30489 * lib/unistr.h: Likewise.
30490 * lib/unistr/u-cpy-alloc.h: Likewise.
30491 * lib/unistr/u-cpy.h: Likewise.
30492 * lib/unistr/u-endswith.h: Likewise.
30493 * lib/unistr/u-move.h: Likewise.
30494 * lib/unistr/u-set.h: Likewise.
30495 * lib/unistr/u-startswith.h: Likewise.
30496 * lib/unistr/u-stpcpy.h: Likewise.
30497 * lib/unistr/u-stpncpy.h: Likewise.
30498 * lib/unistr/u-strcat.h: Likewise.
30499 * lib/unistr/u-strcpy.h: Likewise.
30500 * lib/unistr/u-strcspn.h: Likewise.
30501 * lib/unistr/u-strdup.h: Likewise.
30502 * lib/unistr/u-strlen.h: Likewise.
30503 * lib/unistr/u-strncat.h: Likewise.
30504 * lib/unistr/u-strncpy.h: Likewise.
30505 * lib/unistr/u-strnlen.h: Likewise.
30506 * lib/unistr/u-strpbrk.h: Likewise.
30507 * lib/unistr/u-strspn.h: Likewise.
30508 * lib/unistr/u-strstr.h: Likewise.
30509 * lib/unistr/u-strtok.h: Likewise.
30510 * lib/unistr/u16-check.c: Likewise.
30511 * lib/unistr/u16-chr.c: Likewise.
30512 * lib/unistr/u16-cmp.c: Likewise.
30513 * lib/unistr/u16-cpy-alloc.c: Likewise.
30514 * lib/unistr/u16-cpy.c: Likewise.
30515 * lib/unistr/u16-endswith.c: Likewise.
30516 * lib/unistr/u16-mblen.c: Likewise.
30517 * lib/unistr/u16-mbsnlen.c: Likewise.
30518 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30519 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30520 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30521 * lib/unistr/u16-mbtouc.c: Likewise.
30522 * lib/unistr/u16-mbtoucr.c: Likewise.
30523 * lib/unistr/u16-move.c: Likewise.
30524 * lib/unistr/u16-next.c: Likewise.
30525 * lib/unistr/u16-prev.c: Likewise.
30526 * lib/unistr/u16-set.c: Likewise.
30527 * lib/unistr/u16-startswith.c: Likewise.
30528 * lib/unistr/u16-stpcpy.c: Likewise.
30529 * lib/unistr/u16-stpncpy.c: Likewise.
30530 * lib/unistr/u16-strcat.c: Likewise.
30531 * lib/unistr/u16-strchr.c: Likewise.
30532 * lib/unistr/u16-strcmp.c: Likewise.
30533 * lib/unistr/u16-strcpy.c: Likewise.
30534 * lib/unistr/u16-strcspn.c: Likewise.
30535 * lib/unistr/u16-strdup.c: Likewise.
30536 * lib/unistr/u16-strlen.c: Likewise.
30537 * lib/unistr/u16-strmblen.c: Likewise.
30538 * lib/unistr/u16-strmbtouc.c: Likewise.
30539 * lib/unistr/u16-strncat.c: Likewise.
30540 * lib/unistr/u16-strncmp.c: Likewise.
30541 * lib/unistr/u16-strncpy.c: Likewise.
30542 * lib/unistr/u16-strnlen.c: Likewise.
30543 * lib/unistr/u16-strpbrk.c: Likewise.
30544 * lib/unistr/u16-strrchr.c: Likewise.
30545 * lib/unistr/u16-strspn.c: Likewise.
30546 * lib/unistr/u16-strstr.c: Likewise.
30547 * lib/unistr/u16-strtok.c: Likewise.
30548 * lib/unistr/u16-to-u32.c: Likewise.
30549 * lib/unistr/u16-to-u8.c: Likewise.
30550 * lib/unistr/u16-uctomb-aux.c: Likewise.
30551 * lib/unistr/u16-uctomb.c: Likewise.
30552 * lib/unistr/u32-check.c: Likewise.
30553 * lib/unistr/u32-chr.c: Likewise.
30554 * lib/unistr/u32-cmp.c: Likewise.
30555 * lib/unistr/u32-cpy-alloc.c: Likewise.
30556 * lib/unistr/u32-cpy.c: Likewise.
30557 * lib/unistr/u32-endswith.c: Likewise.
30558 * lib/unistr/u32-mblen.c: Likewise.
30559 * lib/unistr/u32-mbsnlen.c: Likewise.
30560 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30561 * lib/unistr/u32-mbtouc.c: Likewise.
30562 * lib/unistr/u32-mbtoucr.c: Likewise.
30563 * lib/unistr/u32-move.c: Likewise.
30564 * lib/unistr/u32-next.c: Likewise.
30565 * lib/unistr/u32-prev.c: Likewise.
30566 * lib/unistr/u32-set.c: Likewise.
30567 * lib/unistr/u32-startswith.c: Likewise.
30568 * lib/unistr/u32-stpcpy.c: Likewise.
30569 * lib/unistr/u32-stpncpy.c: Likewise.
30570 * lib/unistr/u32-strcat.c: Likewise.
30571 * lib/unistr/u32-strchr.c: Likewise.
30572 * lib/unistr/u32-strcmp.c: Likewise.
30573 * lib/unistr/u32-strcpy.c: Likewise.
30574 * lib/unistr/u32-strcspn.c: Likewise.
30575 * lib/unistr/u32-strdup.c: Likewise.
30576 * lib/unistr/u32-strlen.c: Likewise.
30577 * lib/unistr/u32-strmblen.c: Likewise.
30578 * lib/unistr/u32-strmbtouc.c: Likewise.
30579 * lib/unistr/u32-strncat.c: Likewise.
30580 * lib/unistr/u32-strncmp.c: Likewise.
30581 * lib/unistr/u32-strncpy.c: Likewise.
30582 * lib/unistr/u32-strnlen.c: Likewise.
30583 * lib/unistr/u32-strpbrk.c: Likewise.
30584 * lib/unistr/u32-strrchr.c: Likewise.
30585 * lib/unistr/u32-strspn.c: Likewise.
30586 * lib/unistr/u32-strstr.c: Likewise.
30587 * lib/unistr/u32-strtok.c: Likewise.
30588 * lib/unistr/u32-to-u16.c: Likewise.
30589 * lib/unistr/u32-to-u8.c: Likewise.
30590 * lib/unistr/u32-uctomb.c: Likewise.
30591 * lib/unistr/u8-check.c: Likewise.
30592 * lib/unistr/u8-chr.c: Likewise.
30593 * lib/unistr/u8-cmp.c: Likewise.
30594 * lib/unistr/u8-cpy-alloc.c: Likewise.
30595 * lib/unistr/u8-cpy.c: Likewise.
30596 * lib/unistr/u8-endswith.c: Likewise.
30597 * lib/unistr/u8-mblen.c: Likewise.
30598 * lib/unistr/u8-mbsnlen.c: Likewise.
30599 * lib/unistr/u8-mbtouc-aux.c: Likewise.
30600 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30601 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30602 * lib/unistr/u8-mbtouc.c: Likewise.
30603 * lib/unistr/u8-mbtoucr.c: Likewise.
30604 * lib/unistr/u8-move.c: Likewise.
30605 * lib/unistr/u8-next.c: Likewise.
30606 * lib/unistr/u8-prev.c: Likewise.
30607 * lib/unistr/u8-set.c: Likewise.
30608 * lib/unistr/u8-startswith.c: Likewise.
30609 * lib/unistr/u8-stpcpy.c: Likewise.
30610 * lib/unistr/u8-stpncpy.c: Likewise.
30611 * lib/unistr/u8-strcat.c: Likewise.
30612 * lib/unistr/u8-strchr.c: Likewise.
30613 * lib/unistr/u8-strcmp.c: Likewise.
30614 * lib/unistr/u8-strcpy.c: Likewise.
30615 * lib/unistr/u8-strcspn.c: Likewise.
30616 * lib/unistr/u8-strdup.c: Likewise.
30617 * lib/unistr/u8-strlen.c: Likewise.
30618 * lib/unistr/u8-strmblen.c: Likewise.
30619 * lib/unistr/u8-strmbtouc.c: Likewise.
30620 * lib/unistr/u8-strncat.c: Likewise.
30621 * lib/unistr/u8-strncmp.c: Likewise.
30622 * lib/unistr/u8-strncpy.c: Likewise.
30623 * lib/unistr/u8-strnlen.c: Likewise.
30624 * lib/unistr/u8-strpbrk.c: Likewise.
30625 * lib/unistr/u8-strrchr.c: Likewise.
30626 * lib/unistr/u8-strspn.c: Likewise.
30627 * lib/unistr/u8-strstr.c: Likewise.
30628 * lib/unistr/u8-strtok.c: Likewise.
30629 * lib/unistr/u8-to-u16.c: Likewise.
30630 * lib/unistr/u8-to-u32.c: Likewise.
30631 * lib/unistr/u8-uctomb-aux.c: Likewise.
30632 * lib/unistr/u8-uctomb.c: Likewise.
30633 * lib/unitypes.h: Likewise.
30634 * lib/uniwidth.h: Likewise.
30635 * lib/uniwidth/cjk.h: Likewise.
30636 * lib/uniwidth/u16-strwidth.c: Likewise.
30637 * lib/uniwidth/u16-width.c: Likewise.
30638 * lib/uniwidth/u32-strwidth.c: Likewise.
30639 * lib/uniwidth/u32-width.c: Likewise.
30640 * lib/uniwidth/u8-strwidth.c: Likewise.
30641 * lib/uniwidth/u8-width.c: Likewise.
30642 * lib/uniwidth/width.c: Likewise.
30644 2007-10-07 Bruno Haible <bruno@clisp.org>
30646 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30647 The file is still under LGPL (see modules/inttypes).
30649 2007-10-06 Bruno Haible <bruno@clisp.org>
30651 * modules/trunc (Dependencies): Add 'extensions'.
30652 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30653 Reported by Ben Pfaff <blp@gnu.org>.
30655 2007-10-06 Bruno Haible <bruno@clisp.org>
30657 * modules/freopen-tests: New file.
30658 * tests/test-freopen.c: New file.
30660 * modules/fopen-tests: New file.
30661 * tests/test-fopen.c: New file.
30663 * modules/fopen: New file.
30664 * lib/fopen.c: New file.
30665 * m4/fopen.m4: New file.
30666 * modules/freopen: New file.
30667 * lib/freopen.c: New file.
30668 * m4/freopen.m4: New file.
30669 * lib/stdio.in.h (fopen, freopen): New declarations.
30670 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30671 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30672 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30673 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30674 * doc/functions/fopen.texi: Mention the 'fopen' module.
30675 * doc/functions/freopen.texi: Mention the 'freopen' module.
30677 2007-10-06 Bruno Haible <bruno@clisp.org>
30679 * modules/open-tests: New file.
30680 * tests/test-open.c: New file.
30682 * modules/open: New file.
30683 * lib/open.c: New file.
30684 * m4/open.m4: New file.
30685 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30687 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30688 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30690 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30691 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30693 * doc/functions/open.texi: Mention the 'open' module.
30695 2007-10-04 Bruno Haible <bruno@clisp.org>
30697 * modules/ceill-tests: New file.
30698 * tests/test-ceill.c: New file.
30700 * modules/ceill: New file.
30701 * lib/ceill.c: Replace entire file.
30702 * m4/ceill.m4: New file.
30703 * lib/math.in.h (ceill): Replace declaration.
30704 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30705 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30706 * doc/functions/ceill.texi: Mention the 'ceill' module.
30707 * modules/mathl (Files): Remove lib/ceill.c.
30708 (Depends-on): Add ceill.
30710 2007-10-04 Bruno Haible <bruno@clisp.org>
30712 * modules/ceilf-tests: New file.
30713 * tests/test-ceilf.c: New file.
30715 * modules/ceilf: New file.
30716 * lib/ceil.c: New file.
30717 * lib/ceilf.c: New file.
30718 * m4/ceilf.m4: New file.
30719 * lib/math.in.h (ceilf): New declaration.
30720 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30722 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30724 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30726 2007-10-04 Bruno Haible <bruno@clisp.org>
30728 * modules/floorl-tests: New file.
30729 * tests/test-floorl.c: New file.
30731 * modules/floorl: New file.
30732 * lib/floorl.c: Replace entire file.
30733 * m4/floorl.m4: New file.
30734 * lib/math.in.h (floorl): Replace declaration.
30735 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30736 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30737 * doc/functions/floorl.texi: Mention the 'floorl' module.
30738 * modules/mathl (Files): Remove lib/floorl.c.
30739 (Depends-on): Add floorl.
30741 2007-10-04 Bruno Haible <bruno@clisp.org>
30743 * modules/floorf-tests: New file.
30744 * tests/test-floorf.c: New file.
30746 * modules/floorf: New file.
30747 * lib/floor.c: New file.
30748 * lib/floorf.c: New file.
30749 * m4/floorf.m4: New file.
30750 * lib/math.in.h (floorf): New declaration.
30751 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30753 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30755 * doc/functions/floorf.texi: Mention the 'floorf' module.
30757 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
30758 Bruno Haible <bruno@clisp.org>
30760 Advertise for the Git server instead of the CVS server.
30761 * doc/gnulib-intro.texi (Steady Development): Mention the Git
30762 repository instead of the CVS one.
30763 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30764 about all VCS systems generically.
30765 * doc/gnulib.texi (Introduction): Capitalize `Git'.
30767 2007-10-04 Bruno Haible <bruno@clisp.org>
30769 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30771 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30773 2007-10-04 Bruno Haible <bruno@clisp.org>
30775 * modules/truncl-tests: New file.
30776 * tests/test-truncl.c: New file.
30778 * modules/truncl: New file.
30779 * lib/truncl.c: New file.
30780 * m4/truncl.m4: New file.
30781 * lib/math.in.h (truncl): New declaration.
30782 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30784 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30786 * doc/functions/truncl.texi: Mention the 'truncl' module.
30788 2007-10-04 Bruno Haible <bruno@clisp.org>
30790 * modules/truncf-tests: New file.
30791 * tests/test-truncf.c: New file.
30793 * modules/truncf: New file.
30794 * lib/trunc.c: Make paramerizable through USE_* macros.
30795 * lib/truncf.c: New file.
30796 * m4/truncf.m4: New file.
30797 * lib/math.in.h (truncf): New declaration.
30798 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30800 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30802 * doc/functions/truncf.texi: Mention the 'truncf' module.
30804 2007-10-03 Bruno Haible <bruno@clisp.org>
30806 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30807 augmentation also for tests modules.
30808 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30809 * modules/atexit-tests (Makefile.am): Likewise.
30810 * modules/binary-io-tests (Makefile.am): Likewise.
30811 * modules/c-strcase-tests (Makefile.am): Likewise.
30812 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30813 * modules/canonicalize-tests (Makefile.am): Likewise.
30814 * modules/closein-tests (Makefile.am): Likewise.
30815 * modules/fprintf-posix-tests (Makefile.am): Likewise.
30816 * modules/freadahead-tests (Makefile.am): Likewise.
30817 * modules/fseek-tests (Makefile.am): Likewise.
30818 * modules/fseeko-tests (Makefile.am): Likewise.
30819 * modules/ftell-tests (Makefile.am): Likewise.
30820 * modules/ftello-tests (Makefile.am): Likewise.
30821 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30822 * modules/isnanl-tests (Makefile.am): Likewise.
30823 * modules/lseek-tests (Makefile.am): Likewise.
30824 * modules/mbscasecmp-tests (Makefile.am): Likewise.
30825 * modules/mbscasestr-tests (Makefile.am): Likewise.
30826 * modules/mbschr-tests (Makefile.am): Likewise.
30827 * modules/mbscspn-tests (Makefile.am): Likewise.
30828 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30829 * modules/mbspbrk-tests (Makefile.am): Likewise.
30830 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30831 * modules/mbsrchr-tests (Makefile.am): Likewise.
30832 * modules/mbsspn-tests (Makefile.am): Likewise.
30833 * modules/mbsstr-tests (Makefile.am): Likewise.
30834 * modules/printf-posix-tests (Makefile.am): Likewise.
30835 * modules/snprintf-posix-tests (Makefile.am): Likewise.
30836 * modules/sprintf-posix-tests (Makefile.am): Likewise.
30837 * modules/tsearch-tests (Makefile.am): Likewise.
30838 * modules/uniname/uniname-tests (Makefile.am): Likewise.
30839 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30840 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30841 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30842 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30843 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30844 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30845 * modules/vprintf-posix-tests (Makefile.am): Likewise.
30846 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30847 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30848 * modules/xstrtoimax-tests (Makefile.am): Likewise.
30849 * modules/xstrtol-tests (Makefile.am): Likewise.
30850 * modules/xstrtoumax-tests (Makefile.am): Likewise.
30851 * modules/yesno-tests (Makefile.am): Likewise.
30853 2007-10-03 Bruno Haible <bruno@clisp.org>
30855 * modules/trunc-tests: New file.
30856 * tests/test-trunc.c: New file.
30858 * modules/trunc: New file.
30859 * lib/trunc.c: New file.
30860 * m4/trunc.m4: New file.
30861 * lib/math.in.h (trunc): New declaration.
30862 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30864 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30866 * doc/functions/trunc.texi: Mention the 'trunc' module.
30868 2007-10-03 Bruno Haible <bruno@clisp.org>
30870 * tests/test-fpending.c: New file, mostly copied
30871 from coreutils/lib/t-fpending.c.
30872 * modules/fpending-tests: New file.
30874 2007-10-03 Bruno Haible <bruno@clisp.org>
30876 Port the stdio extensions to QNX (untested).
30877 * lib/fseterr.c (fseterr): Add support for QNX.
30878 * lib/fbufmode.c (fbufmode): Likewise.
30879 * lib/freadable.c (freadable): Likewise.
30880 * lib/fwritable.c (fwritable): Likewise.
30881 * lib/freading.c (freading): Likewise.
30882 * lib/fwriting.c (fwriting): Likewise.
30883 * lib/freadahead.c (freadahed): Likewise.
30884 * lib/fpurge.c (fpurge): Likewise.
30885 * lib/fseeko.c (rpl_fseeko): Likewise.
30887 2007-10-03 Bruno Haible <bruno@clisp.org>
30888 Jim Meyering <jim@meyering.net>
30889 Eric Blake <ebb9@byu.net>
30891 * doc/relocatable.texi: Use @command instead of @program.
30893 2007-10-02 Jim Meyering <jim@meyering.net>
30895 Perform one more "_.h" -> ".in.h" substitution.
30896 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30897 instead of unistd_.h here, too.
30899 2007-10-01 Bruno Haible <bruno@clisp.org>
30901 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30902 Needed for the alloca-opt module.
30904 2007-09-30 Bruno Haible <bruno@clisp.org>
30906 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30907 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30909 * lib/argz.in.h: Renamed from lib/argz_.h.
30910 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30911 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30912 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30914 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30915 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30917 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30918 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30920 * lib/float.in.h: Renamed from lib/float_.h.
30921 * modules/float (Files, Makefile.am): Use float.in.h instead of
30923 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30924 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30926 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30927 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30929 * lib/glob.in.h: Renamed from lib/glob_.h.
30930 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30931 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30932 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30934 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30935 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30937 * lib/locale.in.h: Renamed from lib/locale_.h.
30938 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30940 * lib/math.in.h: Renamed from lib/math_.h.
30941 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30942 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30943 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30944 of netinet_in_.h. Add dependency.
30945 * lib/poll.in.h: Renamed from lib/poll_.h.
30946 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30947 * lib/search.in.h: Renamed from lib/search_.h.
30948 * modules/search (Files, Makefile.am): Use search.in.h instead of
30950 * lib/signal.in.h: Renamed from lib/signal_.h.
30951 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30953 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30954 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30956 * lib/stdint.in.h: Renamed from lib/stdint_.h.
30957 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30959 * lib/stdio.in.h: Renamed from lib/stdio_.h.
30960 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30962 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30963 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30965 * lib/string.in.h: Renamed from lib/string_.h.
30966 * modules/string (Files, Makefile.am): Use string.in.h instead of
30968 * doc/gnulib-tool.texi (Initial import): Update.
30969 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30970 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30971 of sys_select_.h. Add dependency.
30972 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30973 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30975 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30976 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30978 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30979 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30981 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30982 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30984 * lib/time.in.h: Renamed from lib/time_.h.
30985 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30986 * lib/unistd.in.h: Renamed from lib/unistd_.h.
30987 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30989 * lib/wchar.in.h: Renamed from lib/wchar_.h.
30990 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30992 * lib/wctype.in.h: Renamed from lib/wctype_.h.
30993 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30995 * build-aux/bootstrap (slurp): Update.
30996 * lib/.cppi-disable: Update.
30998 2007-09-30 Bruno Haible <bruno@clisp.org>
31000 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31003 2007-09-30 Bruno Haible <bruno@clisp.org>
31005 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31007 2007-09-29 Bruno Haible <bruno@clisp.org>
31009 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31011 2007-09-29 Bruno Haible <bruno@clisp.org>
31013 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31014 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31015 * build-aux/install-reloc: Compile also areadlink.c.
31016 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31018 2007-09-29 Bruno Haible <bruno@clisp.org>
31020 * gnulib-tool (func_emit_initmacro_done): Indentation.
31022 2007-09-29 Bruno Haible <bruno@clisp.org>
31024 * README: Add CVS checkout update instructions.
31025 Info from Bob Proulx <bob@proulx.com>.
31027 2007-09-28 Eric Blake <ebb9@byu.net>
31029 Provide move-if-change.
31030 * build-aux/move-if-change: New file, based on best practice
31031 rather than any canonical upstream location.
31033 2007-09-28 Jim Meyering <jim@meyering.net>
31035 Fix canonicalize loop-detection corner case.
31036 Do not attempt to stat the symlink values stored via seen_triple.
31037 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31038 on linux-2.6.18, (but not 2.6.22).
31039 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31040 triple_compare. The former compares dev,ino,filename, while the latter
31041 would actually stat dirname(filename) when dev and ino were equal.
31042 * lib/hash-triple.c: Install <string.h>.
31044 (triple_compare_ino_str): New function.
31045 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31047 2007-09-28 Eric Blake <ebb9@byu.net>
31049 Enforce that AC_REPLACE_FUNCS files exist.
31050 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31051 override check for typos.
31053 Fix test-closein on Solaris 10.
31054 * tests/test-closein.c (main): Don't assume stdin can be inherited
31055 closed on all systems.
31056 * tests/test-closein.sh: Likewise.
31057 Reported by Piotr Tarnowski.
31059 2007-09-28 Jim Meyering <jim@meyering.net>
31061 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31063 2007-09-27 Jim Meyering <jim@meyering.net>
31065 canonicalize: Avoid a false-positive cycle failure.
31066 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31067 Sort. Remove cycle-check.
31068 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31070 (seen_triple): New function.
31071 (canonicalize_filename_mode): Use it instead of cycle-check.
31072 * tests/test-canonicalize.c: Add a test for this bug.
31073 * tests/test-canonicalize.sh: Set up and run the test.
31075 New module, file-set, from coreutils.
31076 * modules/file-set: Define it.
31077 * lib/file-set.c, lib/file-set.h: Implement.
31079 New module, hash-triple, from coreutils.
31080 * modules/hash-triple: Define it.
31081 * lib/hash-triple.c, lib/hash-triple.h: Implement.
31083 2007-09-25 Eric Blake <ebb9@byu.net>
31085 Fix strerror on Interix.
31086 * lib/string_.h (strerror): Declare replacement.
31087 * doc/functions/strerror.texi (strerror): Document the Interix
31089 * modules/string (Makefile.am): Support new hooks.
31090 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31091 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31092 gl_FUNC_STRERROR_SEPARATE.
31093 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31094 * lib/strerror.c (rpl_strerror): Provide replacement.
31095 * modules/strerror (Depends-on): Add string.
31096 (configure.ac): Detect use of module.
31097 * tests/test-strerror.c: New file.
31098 * modules/strerror-tests: New test module.
31099 * modules/argp (Depends-on): Add strerror.
31100 * modules/error (Depends-on): Likewise.
31101 Reported by Martin Koeppe.
31103 2007-09-24 Bruno Haible <bruno@clisp.org>
31105 * README: Update git instructions.
31107 2007-09-24 Eric Blake <ebb9@byu.net>
31109 Revert fpending breakage from 2007-09-08.
31110 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31113 2007-09-24 Jim Meyering <jim@meyering.net>
31115 filenamecat.c: Add a test.
31116 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31117 showing how the function works when DIR is the empty string.
31119 2007-09-21 Simon Josefsson <simon@josefsson.org>
31121 * tests/test-canonicalize.sh: Turn on executable bit.
31123 2007-09-19 Eric Blake <ebb9@byu.net>
31125 * README: Update CVS instructions.
31127 2007-09-18 Bruno Haible <bruno@clisp.org>
31129 * modules/areadlink: New file.
31130 * lib/areadlink.h (areadlink): New declaration.
31131 * lib/areadlink.c: New file, based on lib/xreadlink.c.
31133 2007-09-17 Jim Meyering <jim@meyering.net>
31135 * lib/savewd.c (ESTALE) [!defined]: Define.
31136 Reported to be required on Interix by Martin Koeppe.
31138 2007-09-17 Bruno Haible <bruno@clisp.org>
31140 * gnulib-tool (func_version): Use $version.
31142 2007-09-16 Bruno Haible <bruno@clisp.org>
31144 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31145 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31146 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31147 Reported by Greg Schafer <gschafer@zip.com.au>.
31149 2007-09-15 Bruno Haible <bruno@clisp.org>
31151 * gnulib-tool (sed): Try a little harder to make bash understand the
31153 Reported by Bruce Korb <bruce.korb@gmail.com>.
31155 2007-09-13 Eric Blake <ebb9@byu.net>
31157 * ChangeLog: Remove conflict markers.
31159 2007-09-13 Simon Josefsson <simon@josefsson.org>
31161 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31162 Reported by Bruno Haible <bruno@clisp.org>.
31164 2007-09-12 Bruno Haible <bruno@clisp.org>
31166 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31167 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31170 2007-09-12 Eric Blake <ebb9@byu.net>
31172 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31173 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31174 Autoconf definition.
31175 * modules/euidaccess (Depends-on): Add extensions, for
31176 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31177 * modules/fnmatch (Depends-on): Likewise.
31178 * modules/getaddrinfo (Depends-on): Likewise.
31179 * modules/getdelim (Depends-on): Likewise.
31180 * modules/getline (Depends-on): Likewise.
31181 * modules/getsubopt (Depends-on): Likewise.
31182 * modules/gettext (Depends-on): Likewise.
31183 * modules/group-member (Depends-on): Likewise.
31184 * modules/mbchar (Depends-on): Likewise.
31185 * modules/memmem (Depends-on): Likewise.
31186 * modules/mempcpy (Depends-on): Likewise.
31187 * modules/memrchr (Depends-on): Likewise.
31188 * modules/pagealign_alloc (Depends-on): Likewise.
31189 * modules/readutmp (Depends-on): Likewise.
31190 * modules/stpcpy (Depends-on): Likewise.
31191 * modules/stpncpy (Depends-on): Likewise.
31192 * modules/strchrnul (Depends-on): Likewise.
31193 * modules/strndup (Depends-on): Likewise.
31194 * modules/strsep (Depends-on): Likewise.
31195 * modules/strverscmp (Depends-on): Likewise.
31196 * modules/vasprintf (Depends-on): Likewise.
31197 * modules/wcwidth (Depends-on): Likewise.
31198 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31199 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31200 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31201 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31202 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31203 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31204 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31205 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31206 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31207 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31208 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31209 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31210 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31211 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31212 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31213 * m4/readutmp.m4 (gl_READUTMP): Likewise.
31214 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31215 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31216 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31217 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31218 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31219 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31220 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31221 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31222 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31223 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31224 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31225 so that lock.m4 can be used in gettext without extensions module.
31227 2007-09-11 Bruno Haible <bruno@clisp.org>
31229 * m4/isc-posix.m4: Remove file.
31230 Suggested by Eric Blake.
31232 2007-09-11 Eric Blake <ebb9@byu.net>
31234 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31236 2007-09-10 Bruno Haible <bruno@clisp.org>
31238 * posix-modules: Fix typo in error message.
31239 Reported by Matt <mkraai@beckman.com>.
31241 2007-09-09 Bruno Haible <bruno@clisp.org>
31243 * doc/functions/getdelim.texi: Update list of platforms lacking the
31245 * doc/functions/getline.texi: Likewise.
31247 2007-09-09 Jim Meyering <jim@meyering.net>
31249 * lib/hash.c (hash_initialize): Detect calloc failure.
31250 Reported by Bruno Haible.
31252 2007-09-09 Bruno Haible <bruno@clisp.org>
31254 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31255 malloc or realloc fails.
31257 2007-09-09 Bruno Haible <bruno@clisp.org>
31259 * modules/getcwd (Depends-on): Add malloc-posix.
31260 * modules/glob (Depends-on): Likewise.
31261 * modules/putenv (Depends-on): Likewise.
31262 * modules/strdup (Depends-on): Likewise.
31263 * modules/getdelim (Depends-on): Add realloc-posix.
31264 * modules/read-file (Depends-on): Likewise.
31266 2007-09-09 Bruno Haible <bruno@clisp.org>
31268 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31269 (gl_FUNC_MALLOC_POSIX): Require it.
31270 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31271 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31272 * modules/realloc (Files): Add m4/malloc.m4.
31273 * modules/calloc (Files): Likewise.
31275 2007-09-09 Bruno Haible <bruno@clisp.org>
31277 * modules/malloc-posix: New file.
31278 * modules/malloc (Depends-on): Add malloc-posix.
31279 * lib/malloc.c: Include errno.h.
31280 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31281 and a POSIX-compatible malloc into a single function. Set ENOMEM
31282 when returning NULL.
31283 * m4/malloc.m4: New file.
31284 * doc/functions/malloc.texi: Mention the malloc-posix module.
31285 * lib/stdlib_.h (malloc): New declaration.
31286 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31287 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31288 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31289 and HAVE_MALLOC_POSIX.
31291 2007-09-09 Bruno Haible <bruno@clisp.org>
31293 * modules/realloc-posix: New file.
31294 * modules/realloc (Depends-on): Add realloc-posix.
31295 * lib/realloc.c: Include errno.h.
31296 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31297 and a POSIX-compatible realloc into a single function. Set ENOMEM
31298 when returning NULL.
31299 * m4/realloc.m4: New file.
31300 * doc/functions/realloc.texi: Mention the realloc-posix module.
31301 * lib/stdlib_.h (realloc): New declaration.
31302 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31303 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31304 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31305 and HAVE_REALLOC_POSIX.
31307 2007-09-09 Bruno Haible <bruno@clisp.org>
31309 * modules/calloc-posix: New file.
31310 * modules/calloc (Depends-on): Add calloc-posix.
31311 * lib/calloc.c: Include errno.h.
31312 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31313 and a POSIX-compatible calloc into a single function. Set ENOMEM
31314 when returning NULL.
31315 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31316 * doc/functions/calloc.texi: Mention the calloc-posix module.
31317 * lib/stdlib_.h (calloc): New declaration.
31318 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31319 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31320 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31321 and HAVE_CALLOC_POSIX.
31323 2007-09-09 Bruno Haible <bruno@clisp.org>
31325 Allow for modules to show an arbitrary notice.
31326 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31327 * gnulib-tool: New option --extract-notice.
31328 (func_usage): Document it.
31329 (sed_extract_prog): Update.
31330 (func_get_notice): New function.
31331 (func_modules_notice): New function.
31332 (func_import, func_create_testdir): Invoke it.
31333 Suggested by Jim Meyering.
31335 2007-09-09 Bruno Haible <bruno@clisp.org>
31337 * gnulib-tool: New options --verbose, --quiet.
31338 (func_usage): Document them.
31339 (verbose): New variable.
31340 (func_execute_command): New function.
31341 (func_import): Don't show the module list and the file list if
31343 (func_create_testdir): Likewise. Use func_execute_command.
31344 (func_create_megatestdir): Use func_execute_command.
31346 2007-09-08 Bruno Haible <bruno@clisp.org>
31348 * gnulib-tool (func_import): Prefer rsync over wget when available,
31349 for fetching the PO files.
31351 2007-09-08 Bruno Haible <bruno@clisp.org>
31353 * posix-modules: New file. Portions copied from gnulib-tool.
31354 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31356 2007-09-08 Jim Meyering <jim@meyering.net>
31358 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31359 * lib/fpending.h: Rename from __fpending.h.
31360 * lib/fpending.c: Rename from __fpending.c.
31361 Include "fpending.h", not "__fpending.h".
31362 * lib/__fpending.h, lib/__fpending.c: Remove files.
31363 * modules/fpending (Files): Reflect new file names.
31364 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31366 2007-09-08 Bruno Haible <bruno@clisp.org>
31368 * m4/inttypes-h.m4: Remove stub file.
31370 2007-09-07 Simon Josefsson <simon@josefsson.org>
31372 * doc/headers/stdint.texi: Discuss #include_next issue.
31374 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31376 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31378 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31380 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31383 2007-09-03 Jim Meyering <jim@meyering.net>
31385 New module: git-version-gen.
31386 * modules/git-version-gen: New file.
31388 Import changes from coreutils for bootstrap script.
31390 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31392 bootstrap: uses rsync to download the .po files
31393 * build-aux/bootstrap (po_download_command_format): New global.
31394 (download_po_files): Use rsync.
31395 (update_po_files): Don't remove .po files after download,
31396 so future rsync runs can take advantage of the copies.
31398 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31400 Solve the unnecessary-.po-file-regeneration problem once and for all.
31401 * build-aux/bootstrap (download_po_files): New function, renamed from
31402 get_translations. Now, downloads, but doesn't update LINGUAS.
31403 (update_po_files): New function.
31405 bootstrap: Ignore more.
31406 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31407 uniwidth to e.g., lib/.gitignore.
31408 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31410 * build-aux/bootstrap: New setting: vc_ignore.
31411 (insert_sorted_if_absent): Create $file if absent.
31412 Adapt to new, possibly empty, list: $vc_ignore.
31414 bootstrap: generate more ignorable names
31415 * build-aux/bootstrap (slurp): When generating ignorable names,
31416 also map .sin to .sed, .gperf to .c, and .y to .c.
31418 2007-09-03 Jim Meyering <jim@meyering.net>
31420 * build-aux/git-version-gen: New file, from coreutils. For details, see
31421 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31423 2007-09-02 Bruno Haible <bruno@clisp.org>
31425 Fix mis-recognition of 'mcs' on QNX 6.
31426 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31427 output contains the string "Mono".
31428 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31429 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31431 2007-09-01 Bruno Haible <bruno@clisp.org>
31433 Fix collision between uniwidth/* and linebreak modules.
31434 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31435 u32_width): Remove declarations.
31436 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31437 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31438 streq3, streq2, streq1, streq0): Remove functions.
31439 (STREQ): Remove macro.
31440 (is_cjk_encoding): Remove function.
31441 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31442 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31443 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31444 * NEWS: Document the change.
31446 2007-09-01 Bruno Haible <bruno@clisp.org>
31448 * lib/streq.h: Add double-inclusion guard.
31450 2007-09-01 Karl Berry <karl@gnu.org>
31452 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31454 2007-08-28 Jim Meyering <jim@meyering.net>
31456 Rename mreadlink_with_size to areadlink_with_size.
31457 * NEWS: Document the change.
31458 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31459 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31460 * lib/mreadlink.h: Rename this to...
31461 * lib/areadlink.h: ...this.
31462 * modules/mreadlink-with-size: Rename this to...
31463 * modules/areadlink-with-size: ...this.
31464 * lib/canonicalize.c: Reflect the renaming.
31465 * modules/canonicalize: Likewise.
31467 2007-08-26 Bruno Haible <bruno@clisp.org>
31469 * gnulib-tool (func_import): When deciding which files to remove,
31470 consider also dangling symbolic links.
31471 Reported by Eric Blake.
31473 2007-08-26 Bruno Haible <bruno@clisp.org>
31475 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31477 2007-08-23 Simon Josefsson <simon@josefsson.org>
31479 * lib/readline.c: Don't include getline.h, the prototype is now
31482 2007-08-23 Jim Meyering <jim@meyering.net>
31485 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31486 around the funlockfile call, since funlockfile never sets errno.
31487 Don't set errno upon failed realloc.
31489 2007-08-22 Eric Blake <ebb9@byu.net>
31492 * lib/getdelim.c (getdelim): Revert regression that required *n to
31493 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
31494 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31495 getdelim, rather than whether implementation is missing.
31496 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31497 * lib/stdio_.h (getline): Also declare if replacement is
31499 * doc/functions/getdelim.texi: New file.
31500 * doc/functions/getline.texi: Likewise.
31501 * doc/gnulib.texi (Function Substitutes): Add new files.
31502 Reported by Bruno Haible.
31504 2007-08-22 Ludovic Courtès <ludo@gnu.org>
31506 * users.txt: Add Guile.
31508 2007-08-22 Eric Blake <ebb9@byu.net>
31510 * tests/test-getdelim.c (main): Use remove, not unlink.
31511 * tests/test-getline.c (main): Likewise.
31513 Move getline and getdelim into stdio.h, per POSIX 200x.
31514 * modules/getline (Files): Remove getline.h.
31515 (Depends-on): Add stdio.
31516 (configure.ac): Add module indicator.
31517 * modules/getdelim (Files): Remove getdelim.h.
31518 (Depends-on): Add stdio.
31519 (configure.ac): Add module indicator.
31520 * modules/stdio (Makefile.am): Work with new indicators.
31521 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31522 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31523 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31524 * lib/getdelim.h: Delete.
31525 * lib/getline.h: Delete.
31526 * lib/stdio_.h (getdelim, getline): Declare.
31527 * modules/getdelim-tests: New module.
31528 * modules/getline-tests: Likewise.
31529 * tests/test-getdelim.c: New file.
31530 * tests/test-getline.c: Likewise.
31531 * NEWS: Document the change.
31532 * lib/getline.c: Update choice of header.
31533 * lib/csharpcomp.c: Likewise.
31534 * lib/getpass.c: Likewise.
31535 * lib/javacomp.c: Likewise.
31536 * lib/javaversion.c: Likewise.
31537 * lib/yesno.c: Likewise.
31538 * lib/getdelim.c: Likewise.
31539 (getdelim): Set errno on failure, and avoid memory leak.
31541 2007-08-19 Bruno Haible <bruno@clisp.org>
31543 * modules/closein (Depends-on): Add freadahead.
31544 * lib/closein.c: Include freadahead.h.
31545 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31548 2007-08-19 Bruno Haible <bruno@clisp.org>
31550 * modules/freadahead-tests: New file.
31551 * tests/test-freadahead.sh: New file.
31552 * tests/test-freadahead.c: New file.
31554 * modules/freadahead: New file.
31555 * lib/freadahead.h: New file.
31556 * lib/freadahead.c: New file.
31557 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31558 fbufmode, fpurge, freadable, fwritable.
31560 2007-08-19 Eric Blake <ebb9@byu.net>
31562 Test yesno in combination with closein.
31563 * lib/yesno.c (yesno): Document use of stdin.
31564 * modules/yesno-tests (Files): New module.
31565 * tests/test-yesno.c (main): New file.
31566 * tests/test-yesno.sh: Likewise.
31568 2007-08-19 Bruno Haible <bruno@clisp.org>
31570 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31571 * lib/fseeko.c (rpl_fseeko): Likewise.
31572 * lib/fseterr.c (fseterr): Likewise.
31574 2007-08-19 Bruno Haible <bruno@clisp.org>
31576 * tests/test-lseek.c (main): Disable a test for BeOS.
31577 * doc/functions/lseek.texi: Document the BeOS bug.
31579 2007-08-19 Bruno Haible <bruno@clisp.org>
31580 Eric Blake <ebb9@byu.net>
31582 * lib/lseek.c: Include <sys/stat.h>.
31583 (rpl_lseek): Add workaround code also for Unix platforms.
31585 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31586 * doc/functions/lseek.texi: Document BeOS definiency.
31588 2007-08-18 Bruno Haible <bruno@clisp.org>
31590 * modules/fstrcmp-tests: New file.
31591 * tests/test-fstrcmp.c: New file.
31593 2007-08-18 Bruno Haible <bruno@clisp.org>
31595 * modules/fstrcmp: New file, from GNU gettext with modifications.
31596 * lib/fstrcmp.h: New file, from GNU gettext.
31597 * lib/fstrcmp.c: New file, from GNU gettext.
31598 * MODULES.html.sh (String handling): Add fstrcmp.
31600 2007-08-18 Bruno Haible <bruno@clisp.org>
31602 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31604 (diag, compareseq): Remove const from the ctxt argument.
31605 (USE_HEURISTIC): Undefine at the end.
31607 2007-08-18 Jim Meyering <jim@meyering.net>
31609 New file: lib/idcache.h
31610 * NEWS: Mention the addition.
31611 * modules/idcache (Files): Add lib/idcache.h
31612 * lib/idcache.c: Include "idcache.h".
31613 Don't include <sys/types.h>.
31614 Add a FIXME comment.
31615 Move file-scoped "static" declarations to the top.
31616 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
31618 2007-08-17 Bruno Haible <bruno@clisp.org>
31619 and Paul Eggert <eggert@cs.ucla.edu>
31621 * MODULES.html.sh: Add diffseq.
31622 * modules/diffseq: New file.
31623 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31624 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31626 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
31628 Import changes from coreutils for bootstrap script.
31630 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
31632 * build-aux/bootstrap (slurp): Work even in environments where
31633 "ls" defaults to "ls -A". Put in a FIXME, though, since the
31634 current code does not slurp files whose names start with ".", and
31635 this looks like it might be a troublesome area.
31637 2007-07-11 Jim Meyering <jim@meyering.net>
31639 If there's a GPL vN copyright comment, require that N == 3.
31641 2007-07-08 Jim Meyering <jim@meyering.net>
31643 Run the coreutils-specific code only if tests/Makefile.am.in exists.
31644 * build-aux/bootstrap (mam_template): Move definition out of loop.
31646 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31648 * build-aux/bootstrap (symlink_to_dir): Rename function from
31649 symlink_to_gnulib. Add a directory parameter. Update all
31651 (cp_mark_as_generated): Also check for -- and link to -- files in
31654 2007-07-08 Jim Meyering <jim@meyering.net>
31656 Adapt to deeper hierarchy in gnulib.
31657 * build-aux/bootstrap (symlink_to_dir): If the destination
31658 directory doesn't exist, create it. This is required at least for
31659 "lib/uniwidth/cjk.h".
31661 2007-05-15 Jim Meyering <jim@meyering.net>
31663 * build-aux/bootstrap: Now that generated Makefile.am files
31664 are no longer under version control, they must be created at
31667 2007-08-14 Ben Pfaff <blp@gnu.org>
31669 * lib/count-one-bits.h: Add comments. From Bruno Haible.
31671 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
31673 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31674 given the changes below.
31675 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
31676 even on hosts that have padding bits beyond the supported 64.
31678 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
31680 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31681 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31682 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
31684 (xstrtol_error): Remove.
31685 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31686 but with a different signature.
31687 (ATTRIBUTE_NORETURN, __attribute__): New macros.
31688 * lib/xstrtol-error.c: Include exitfail.h.
31689 (xstrtol_fatal): New function, with a different signature from the
31690 old xstrtol_error, so that the caller need not worry about passing
31691 in an exit status, or about storage management of the option argument.
31692 (xstrtol_error): Now a static function. Redo signature to
31693 implement xstrtol_fatal. Output the correct number of hyphens in
31694 front of the option so that the caller need not worry about
31695 storage management.
31697 (_): Remove; not used now.
31698 * modules/xstrtol: Depend on getopt.
31699 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31700 of old STRTOL_FATAL_ERROR macro.
31701 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31703 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31704 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31706 2007-08-08 Eric Blake <ebb9@byu.net>
31708 * lib/xstrtol-error.c: Add missing include.
31710 Move xstrtol messages into gnulib domain, when --pobase is used.
31711 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31712 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31713 * modules/xstrtol (Files): Distribute new file.
31714 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31715 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31716 * tests/test-xstrtol.c: ...into new file.
31717 * tests/test-xstrtoul.c: Also test xstrtoul.
31718 * tests/test-xstrtoimax.c: Also test xstrtoimax.
31719 * tests/test-xstrtoumax.c: Also test xstrtoumax.
31720 * tests/test-xstrtol.sh: Drive the tests.
31721 * tests/test-xstrtoimax.sh: Likewise.
31722 * tests/test-xstrtoumax.sh: Likewise.
31723 * modules/xstrtol-tests: New module.
31724 * modules/xstrtoimax-tests: Likewise.
31725 * modules/xstrtoumax-tests: Likewise.
31727 2007-08-08 Jim Meyering <jim@meyering.net>
31729 New function: mfile_name_concat.
31730 * lib/filenamecat.c (mfile_name_concat): New function, just like
31731 file_name_concat, but return NULL upon failure rather than exiting
31733 * lib/filenamecat.h: Declare it.
31735 2007-08-07 Bruno Haible <bruno@clisp.org>
31737 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31738 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31740 Reported by Eric Blake.
31742 2007-08-07 Simon Josefsson <simon@josefsson.org>
31744 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31745 * modules/crypto/arcfour (License): Likewise.
31746 * modules/crypto/des-tests (License): Likewise.
31747 * modules/crypto/gc-arctwo-tests (License): Likewise.
31748 * modules/crypto/gc-des-tests (License): Likewise.
31749 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31750 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31751 * modules/crypto/gc-md2-tests (License): Likewise.
31752 * modules/crypto/gc-md4-tests (License): Likewise.
31753 * modules/crypto/gc-md5-tests (License): Likewise.
31754 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31755 * modules/crypto/gc-rijndael-tests (License): Likewise.
31756 * modules/crypto/gc-sha1-tests (License): Likewise.
31757 * modules/crypto/gc-tests (License): Likewise.
31758 * modules/crypto/hmac-md5 (License): Likewise.
31759 * modules/crypto/hmac-sha1 (License): Likewise.
31760 * modules/crypto/md2-tests (License): Likewise.
31761 * modules/crypto/md4-tests (License): Likewise.
31762 * modules/crypto/md5 (License): Likewise.
31763 * modules/crypto/rijndael (License): Likewise.
31764 * modules/crypto/sha1 (License): Likewise.
31765 * modules/memxor (License): Likewise.
31767 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
31768 and Bruno Haible <bruno@clisp.org>
31770 * NEWS: Describe interface changes to human, xstrtol.
31771 * lib/human.h: Include <xstrtol.h>.
31772 (human_options): Return enum strtol_error, not int. Remove
31773 bool arg; take int * instead.
31774 * lib/human.c: Don't include "gettext.h".
31775 (_): Remove; no longer used.
31776 Don't include <xstrtol.h>, since human.h does it.
31777 (human_options): Adjust to abovementioned interface changes.
31778 Do not report error to stderr; that's now the caller's
31780 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31782 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31783 Str, Argument_type_string. All uses changed. Put " argument"
31784 in diagnostics to make them clearer. Change wording of suffix
31785 message for clarity.
31786 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31787 Argument_type_string.
31788 (STRTOL_FATAL_WARN): Remove; no longer used.
31789 * modules/human (Depends-on): Remove gettext-h.
31791 2007-08-06 Simon Josefsson <simon@josefsson.org>
31793 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31795 2007-07-31 Bruno Haible <bruno@clisp.org>
31797 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31798 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31799 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31801 2007-07-31 Bruno Haible <bruno@clisp.org>
31803 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31804 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31806 2007-07-30 Bruno Haible <bruno@clisp.org>
31808 * modules/base64 (License): Use the synonymous term "LGPLv2+".
31809 * modules/c-ctype (License): Likewise.
31810 * modules/c-strcase (License): Likewise.
31811 * modules/check-version (License): Likewise.
31812 * modules/iconv (License): Likewise.
31813 * modules/iconv_open (License): Likewise.
31814 * modules/read-file (License): Likewise.
31815 * modules/striconv (License): Likewise.
31816 * modules/strverscmp (License): Likewise.
31817 * modules/vasprintf (License): Likewise.
31818 * modules/crypto/des (License): Likewise.
31819 * modules/crypto/gc (License): Likewise.
31820 * modules/crypto/gc-arcfour (License): Likewise.
31821 * modules/crypto/gc-arctwo (License): Likewise.
31822 * modules/crypto/gc-des (License): Likewise.
31823 * modules/crypto/gc-hmac-md5 (License): Likewise.
31824 * modules/crypto/gc-hmac-sha1 (License): Likewise.
31825 * modules/crypto/gc-md2 (License): Likewise.
31826 * modules/crypto/gc-md4 (License): Likewise.
31827 * modules/crypto/gc-md5 (License): Likewise.
31828 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31829 * modules/crypto/gc-random (License): Likewise.
31830 * modules/crypto/gc-rijndael (License): Likewise.
31831 * modules/crypto/gc-sha1 (License): Likewise.
31832 * modules/crypto/md2 (License): Likewise.
31833 * modules/crypto/md4 (License): Likewise.
31835 2007-07-30 Jim Meyering <jim@meyering.net>
31837 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31838 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31839 it has valid stat data. This bug would cause du not to count the
31840 sizes of inaccessible directories.
31841 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31842 in <http://bugzilla.redhat.com/250077>.
31844 2007-07-25 Peter O'Gorman <peter@pogma.com>
31845 Bruno Haible <bruno@clisp.org>
31847 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31848 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31849 #include_next, gives a diagnostic about it, but reports no error in
31851 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31853 2007-07-24 Ben Pfaff <blp@gnu.org>
31855 Improve name: "count-one-bits" is better than "popcount".
31856 * MODULES.html.sh: Update name.
31857 * lib/popcount.h: Renamed lib/count-one-bits.h.
31858 (popcount): Renamed count_one_bits.
31859 (popcountl): Renamed count_one_bits_l.
31860 (popcountll): Renamed count_one_bits_ll.
31861 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31862 * modules/popcount: Renamed module/count-one-bits.
31863 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31864 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31866 2007-07-23 Ben Pfaff <blp@gnu.org>
31868 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31869 better code generation, and add U to large constants to avoid
31870 warnings, in non-GCC case.
31871 Suggested by Bruno Haible.
31873 2007-07-23 Ben Pfaff <blp@gnu.org>
31875 * lib/popcount.h: Use verify_true instead of if...abort.
31876 * modules/popcount: Depend on verify module.
31877 Suggested by Jim Meyering.
31879 2007-07-23 Bruno Haible <bruno@clisp.org>
31881 * gnulib-tool (func_import): Create a .cvsignore file also when the
31882 directory is not yet in CVS but the toplevel directory is. When
31883 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31884 Reported by Karl Berry.
31886 2007-07-22 Ben Pfaff <blp@gnu.org>
31888 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31890 Suggested by Eric Blake.
31892 2007-07-22 Ben Pfaff <blp@gnu.org>
31894 New module: popcount.
31895 * MODULES.html.sh: Add popcount.
31896 * modules/popcount: New file.
31897 * modules/popcount-tests: New file.
31898 * tests/test-popcount.c: New file.
31899 * lib/popcount.h: New file.
31900 * m4/popcount.m4: New file.
31902 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31904 * build-aux/announce-gen: Update to GPLv3.
31906 * build-aux/config.guess: Update from config.
31908 2007-07-21 Bruno Haible <bruno@clisp.org>
31910 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31911 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31913 2007-07-20 Jim Meyering <jim@meyering.net>
31915 * check-module: Diagnose a self-dependency.
31917 2007-07-19 Bruno Haible <bruno@clisp.org>
31919 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31921 Reported by Eric Blake.
31923 2007-07-18 Bruno Haible <bruno@clisp.org>
31925 * gnulib-tool: New options --po-base, --po-domain.
31926 (func_usage): Document them.
31927 (pobase, po_domain): New variables.
31928 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31929 DEFAULT_TEXT_DOMAIN.
31930 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31931 (func_import): Consider pobase and po_domain. Create a po/ directory.
31932 (func_create_testdir): Set pobase and po_domain to empty.
31933 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31934 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31936 2007-07-18 Bruno Haible <bruno@clisp.org>
31938 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31939 EXTRA_DIST augmentation for files in build-aux/.
31941 2007-07-16 Bruno Haible <bruno@clisp.org>
31943 * modules/lseek (License): Use the synonymous term "LGPLv2+".
31944 * modules/getdelim (License): Likewise.
31946 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31948 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31949 * modules/d-type (License): Likewise.
31950 * modules/extensions (License): Likewise.
31951 * modules/fnmatch (License): Likewise.
31952 * modules/fseeko (License): Likewise.
31953 * modules/getaddrinfo (License): Likewise.
31954 * modules/getline (License): Likewise.
31955 * modules/getlogin_r (License): Likewise.
31956 * modules/getpass (License): Likewise.
31957 * modules/gettimeofday (License): Likewise.
31958 * modules/glob (License): Likewise.
31959 * modules/inet_ntop (License): Likewise.
31960 * modules/malloc (License): Likewise.
31961 * modules/malloca (License): Likewise.
31962 * modules/memmem (License): Likewise.
31963 * modules/mempcpy (License): Likewise.
31964 * modules/memset (License): Likewise.
31965 * modules/minmax (License): Likewise.
31966 * modules/mktime (License): Likewise.
31967 * modules/netinet_in (License): Likewise.
31968 * modules/pathmax (License): Likewise.
31969 * modules/poll (License): Likewise.
31970 * modules/regex (License): Likewise.
31971 * modules/snprintf (License): Likewise.
31972 * modules/stdbool (License): Likewise.
31973 * modules/stdint (License): Likewise.
31974 * modules/stdio (License): Likewise.
31975 * modules/strcase (License): Likewise.
31976 * modules/strcasestr (License): Likewise.
31977 * modules/strdup (License): Likewise.
31978 * modules/string (License): Likewise.
31979 * modules/strndup (License): Likewise.
31980 * modules/strnlen (License): Likewise.
31981 * modules/strpbrk (License): Likewise.
31982 * modules/strptime (License): Likewise.
31983 * modules/strsep (License): Likewise.
31984 * modules/sys_select (License): Likewise.
31985 * modules/sys_socket (License): Likewise.
31986 * modules/sys_stat (License): Likewise.
31987 * modules/sys_time (License): Likewise.
31988 * modules/time (License): Likewise.
31989 * modules/time_r (License): Likewise.
31990 * modules/timegm (License): Likewise.
31991 * modules/unistd (License): Likewise.
31992 * modules/vsnprintf (License): Likewise.
31993 * modules/wctype (License): Likewise.
31995 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31997 * modules/argz (License): LGPLv2+.
31999 2007-07-15 Karl Berry <karl@gnu.org>
32001 * doc/gnulib.texi: revise node structure per new fdl.texi.
32003 2007-07-14 Bruno Haible <bruno@clisp.org>
32005 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32007 * lib/uniname/uninames.h: Regenerated.
32009 2007-07-14 Karl Berry <karl@gnu.org>
32011 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32012 omitting sectioning and index commands.
32014 2007-07-13 Bruno Haible <bruno@clisp.org>
32016 New gnulib-tool option --more-symlinks.
32017 * gnulib-tool (func_usage): Document --more-symlinks.
32018 (do_copyrights): New variable.
32019 Recognize option --more-symlinks.
32020 (func_import): Don't add a copyright notice transform to
32021 sed_transform_lib_file if do_copyrights is empty.
32023 2007-07-13 Bruno Haible <bruno@clisp.org>
32025 * lib/vasnprintf.c (decimal_point_char): Define also if
32026 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32027 && !NEED_PRINTF_DIRECTIVE_A.
32028 Reported by Clemens Koller <clemens.koller@anagramm.de> via
32029 Gary V. Vaughan <gary@gnu.org>.
32031 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
32033 * lib/inttypes_.h: Undo previous change, since it was fixed
32034 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32036 2007-07-13 Bruno Haible <bruno@clisp.org>
32038 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32039 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32041 2007-07-13 Jim Meyering <jim@meyering.net>
32043 df: Don't fail for Tru64's "file-on-file mount".
32044 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32045 so we fall through and use statfs instead. Details here:
32046 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32047 Reported by Albert Chin.
32049 2007-07-13 Bruno Haible <bruno@clisp.org>
32051 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32052 * modules/configmake (License): Likewise.
32053 * modules/gettext (License): Likewise.
32054 * modules/gettext-h (License): Likewise.
32055 * modules/include_next (License): Likewise.
32056 * modules/link-warning (License): Likewise.
32057 * modules/localcharset (License): Likewise.
32058 * modules/localename (License): Likewise.
32059 * modules/lock (License): Likewise.
32060 * modules/relocatable-lib-lgpl (License): Likewise.
32061 * modules/size_max (License): Likewise.
32062 * modules/vasnprintf (License): Likewise.
32063 * modules/wchar (License): Likewise.
32064 * modules/xsize (License): Likewise.
32066 2007-07-13 Bruno Haible <bruno@clisp.org>
32068 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32069 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32071 2007-07-12 Bruno Haible <bruno@clisp.org>
32073 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32074 in the modules files.
32076 2007-07-11 Karl Berry <karl@gnu.org>
32078 * MODULES.html.sh (func_module): use
32079 sed -e '\|^'"${includefile}"'$|d'
32080 instead of /.../d, to avoid errors on $includefile's containing /.
32082 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
32084 * gnulib-tool (func_import): Avoid duplication of --avoid
32086 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32087 names to `_' in variable names.
32089 2007-07-10 Eric Blake <ebb9@byu.net>
32091 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32092 * NEWS: Document this change.
32094 2007-07-08 Bruno Haible <bruno@clisp.org>
32096 Update to Unicode 5.0.
32097 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32098 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32099 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32100 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32101 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32102 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32103 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32104 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32105 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32106 U+10A3F, U+1D242..U+1D244.
32107 (nonspacing_table_ind): Update.
32108 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32109 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32111 2007-07-08 Bruno Haible <bruno@clisp.org>
32113 Update to Unicode 5.0.
32114 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32115 code transform. Extend the name index field of unicode_name_to_code and
32116 unicode_code_to_name from 16 to 24 bits.
32117 * lib/uniname/uniname.c (unicode_character_name,
32118 unicode_name_character): Add the range 0x12xxx to the code transform.
32119 * lib/uniname/uninames.h: Regenerated.
32120 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32122 2007-07-07 Bruno Haible <bruno@clisp.org>
32124 * modules/wcwidth-tests: New file.
32125 * tests/test-wcwidth.c: New file.
32127 Work around MacOS X wcwidth() bug.
32128 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32129 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32130 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32131 original wcwidth in non-UTF-8 locales.
32132 * modules/wcwidth (Depends-on): Add localcharset, streq,
32134 * doc/functions/wcwidth.texi: Update.
32136 2007-07-07 Bruno Haible <bruno@clisp.org>
32138 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32139 (wcwidth): New declaration.
32140 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32142 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32143 here. Prepare for creating <wchar.h> unconditionally.
32144 * modules/wchar (Depends-on): Add link-warning.
32145 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32146 REPLACE_WCWIDTH, and GL_LINK_WARNING.
32147 * lib/wcwidth.h: Remove file.
32148 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32149 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32150 * modules/wcwidth (Files): Remove lib/wcwidth.h.
32151 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32152 (Include): Replace wcwidth.h with <wchar.h>.
32153 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32154 * lib/mbchar.h: Don't include wcwidth.h.
32155 * lib/mbswidth.c: Likewise.
32156 * NEWS: Mention the change.
32158 2007-07-07 Bruno Haible <bruno@clisp.org>
32160 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32161 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32162 definition with an external declaration.
32163 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32164 defined as a function. Remove AC_C_INLINE requirement.
32165 * modules/wcwidth (Files): Add lib/wcwidth.c.
32166 (Makefile.am): Remove redundant statement.
32168 2007-07-07 Bruno Haible <bruno@clisp.org>
32170 * MODULES.html.sh (Unicode string functions): Add the new modules.
32172 * tests/uniwidth/test-u32-strwidth.c: New file.
32173 * modules/uniwidth/u32-strwidth-tests: New file.
32175 * lib/uniwidth/u32-strwidth.c: New file.
32176 * modules/uniwidth/u32-strwidth: New file.
32178 * tests/uniwidth/test-u16-strwidth.c: New file.
32179 * modules/uniwidth/u16-strwidth-tests: New file.
32181 * lib/uniwidth/u16-strwidth.c: New file.
32182 * modules/uniwidth/u16-strwidth: New file.
32184 * tests/uniwidth/test-u8-strwidth.c: New file.
32185 * modules/uniwidth/u8-strwidth-tests: New file.
32187 * lib/uniwidth/u8-strwidth.c: New file.
32188 * modules/uniwidth/u8-strwidth: New file.
32190 * tests/uniwidth/test-u32-width.c: New file.
32191 * modules/uniwidth/u32-width-tests: New file.
32193 * lib/uniwidth/u32-width.c: New file.
32194 * modules/uniwidth/u32-width: New file.
32196 * tests/uniwidth/test-u16-width.c: New file.
32197 * modules/uniwidth/u16-width-tests: New file.
32199 * lib/uniwidth/u16-width.c: New file.
32200 * modules/uniwidth/u16-width: New file.
32202 * tests/uniwidth/test-u8-width.c: New file.
32203 * modules/uniwidth/u8-width-tests: New file.
32205 * lib/uniwidth/u8-width.c: New file.
32206 * modules/uniwidth/u8-width: New file.
32208 * tests/uniwidth/test-uc_width.c: New file.
32209 * modules/uniwidth/width-tests: New file.
32211 * lib/uniwidth/width.c: New file, from GNU libiconv.
32212 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32213 * modules/uniwidth/width: New file.
32215 * lib/uniwidth.h: New file, from GNU libiconv.
32216 * modules/uniwidth/base: New file.
32218 2007-07-07 Bruno Haible <bruno@clisp.org>
32220 * lib/uniname.h: New file, from GNU gettext.
32221 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32222 * lib/uniname/uninames.h: New file, from GNU gettext.
32223 * lib/uniname/uniname.c: New file, from GNU gettext.
32224 * tests/uniname/test-uninames.sh: New file.
32225 * tests/uniname/test-uninames.c: New file, from GNU gettext.
32226 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32227 * modules/uniname/base: New file.
32228 * modules/uniname/uniname: New file.
32229 * modules/uniname/uniname-tests: New file.
32230 * MODULES.html.sh (Unicode string functions): Add the new modules.
32232 2007-07-06 Bruno Haible <bruno@clisp.org>
32234 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32236 2007-07-06 Bruno Haible <bruno@clisp.org>
32238 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32239 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32240 includes <cygwin/sys_time.h> which includes <sys/select.h> which
32241 include <sys/time.h>.
32242 Reported by Eric Blake.
32244 2007-07-06 Eric Blake <ebb9@byu.net>
32246 Fix testing canonicalize on cygwin.
32247 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32248 Revert patch from 2007-06-19.
32249 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32250 canonicalize module is also in use.
32251 * tests/test-canonicalize.c: New file.
32252 * tests/test-canonicalize.sh: Likewise.
32253 * modules/canonicalize-tests: Likewise.
32255 2007-07-06 Jim Meyering <jim@meyering.net>
32257 * lib/getugroups.c (getugroups): Detect getgrent failure.
32258 Adjust comment to reflect reality: this function may return -1.
32260 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
32262 * build-aux/bootstrap (TP_URL,get_translations): Update to use
32263 the new TP address.
32265 (gnulib_mk): New variable.
32267 2007-07-05 Jim Meyering <jim@meyering.net>
32269 Don't let endgrent clobber errno, no matter how improbable.
32270 * lib/getugroups.c (getugroups): Save and restore errno around
32273 Close the group DB even when failing with 2^31 or more members.
32274 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32276 2007-07-04 Jim Meyering <jim@meyering.net>
32278 * lib/getugroups.h: New file.
32279 * lib/getugroups.c: Include "getugroups.h".
32280 Remove uses of "register" keyword.
32281 Move local variable, "cp", down into scope where used.
32282 Give "username" parameter the "const" attribute.
32283 * modules/getugroups (Files): Add lib/getugroups.h
32285 2007-07-04 Karl Berry <karl@gnu.org>
32287 * MODULES.html.sh (func_all_modules): Complete rename of
32288 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32290 2007-07-02 Bruno Haible <bruno@clisp.org>
32292 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32293 mode, when inttypes.h comes from gnulib.
32294 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32296 2007-07-02 Simon Josefsson <simon@josefsson.org>
32298 * NEWS: Mention lgpl module name change.
32300 * modules/lgpl-2.1: Renamed from lgpl.
32302 * NEWS: Mention gpl module name change.
32304 * modules/gpl-3.0: New file, based on gpl-2.0.
32306 * modules/gpl-2.0: Renamed from gpl.
32308 * modules/gpl: Fix filename, doc/gpl.texi is now found at
32311 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
32313 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32314 #define __STDC_LIMIT_MACROS temporarily while including
32315 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32316 Problem reported by Joel E. Denny in
32317 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32319 2007-07-01 Bruno Haible <bruno@clisp.org>
32321 * lib/unistdio.h: New file.
32322 * lib/unistdio/u-asnprintf.h: New file.
32323 * lib/unistdio/u-asprintf.h: New file.
32324 * lib/unistdio/u-printf-args.c: New file.
32325 * lib/unistdio/u-printf-args.h: New file.
32326 * lib/unistdio/u-printf-parse.h: New file.
32327 * lib/unistdio/u-snprintf.h: New file.
32328 * lib/unistdio/u-sprintf.h: New file.
32329 * lib/unistdio/u-vasprintf.h: New file.
32330 * lib/unistdio/u-vsnprintf.h: New file.
32331 * lib/unistdio/u-vsprintf.h: New file.
32332 * lib/unistdio/ulc-asnprintf.c: New file.
32333 * lib/unistdio/ulc-asprintf.c: New file.
32334 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32335 * lib/unistdio/ulc-printf-parse.c: New file.
32336 * lib/unistdio/ulc-snprintf.c: New file.
32337 * lib/unistdio/ulc-sprintf.c: New file.
32338 * lib/unistdio/ulc-vasnprintf.c: New file.
32339 * lib/unistdio/ulc-vasprintf.c: New file.
32340 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32341 * lib/unistdio/ulc-vsnprintf.c: New file.
32342 * lib/unistdio/ulc-vsprintf.c: New file.
32343 * lib/unistdio/u8-asnprintf.c: New file.
32344 * lib/unistdio/u8-asprintf.c: New file.
32345 * lib/unistdio/u8-printf-parse.c: New file.
32346 * lib/unistdio/u8-snprintf.c: New file.
32347 * lib/unistdio/u8-sprintf.c: New file.
32348 * lib/unistdio/u8-vasnprintf.c: New file.
32349 * lib/unistdio/u8-vasprintf.c: New file.
32350 * lib/unistdio/u8-vsnprintf.c: New file.
32351 * lib/unistdio/u8-vsprintf.c: New file.
32352 * lib/unistdio/u8-u8-asnprintf.c: New file.
32353 * lib/unistdio/u8-u8-asprintf.c: New file.
32354 * lib/unistdio/u8-u8-snprintf.c: New file.
32355 * lib/unistdio/u8-u8-sprintf.c: New file.
32356 * lib/unistdio/u8-u8-vasnprintf.c: New file.
32357 * lib/unistdio/u8-u8-vasprintf.c: New file.
32358 * lib/unistdio/u8-u8-vsnprintf.c: New file.
32359 * lib/unistdio/u8-u8-vsprintf.c: New file.
32360 * lib/unistdio/u16-asnprintf.c: New file.
32361 * lib/unistdio/u16-asprintf.c: New file.
32362 * lib/unistdio/u16-printf-parse.c: New file.
32363 * lib/unistdio/u16-snprintf.c: New file.
32364 * lib/unistdio/u16-sprintf.c: New file.
32365 * lib/unistdio/u16-vasnprintf.c: New file.
32366 * lib/unistdio/u16-vasprintf.c: New file.
32367 * lib/unistdio/u16-vsnprintf.c: New file.
32368 * lib/unistdio/u16-vsprintf.c: New file.
32369 * lib/unistdio/u16-u16-asnprintf.c: New file.
32370 * lib/unistdio/u16-u16-asprintf.c: New file.
32371 * lib/unistdio/u16-u16-snprintf.c: New file.
32372 * lib/unistdio/u16-u16-sprintf.c: New file.
32373 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32374 * lib/unistdio/u16-u16-vasprintf.c: New file.
32375 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32376 * lib/unistdio/u16-u16-vsprintf.c: New file.
32377 * lib/unistdio/u32-asnprintf.c: New file.
32378 * lib/unistdio/u32-asprintf.c: New file.
32379 * lib/unistdio/u32-printf-parse.c: New file.
32380 * lib/unistdio/u32-snprintf.c: New file.
32381 * lib/unistdio/u32-sprintf.c: New file.
32382 * lib/unistdio/u32-vasnprintf.c: New file.
32383 * lib/unistdio/u32-vasprintf.c: New file.
32384 * lib/unistdio/u32-vsnprintf.c: New file.
32385 * lib/unistdio/u32-vsprintf.c: New file.
32386 * lib/unistdio/u32-u32-asnprintf.c: New file.
32387 * lib/unistdio/u32-u32-asprintf.c: New file.
32388 * lib/unistdio/u32-u32-snprintf.c: New file.
32389 * lib/unistdio/u32-u32-sprintf.c: New file.
32390 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32391 * lib/unistdio/u32-u32-vasprintf.c: New file.
32392 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32393 * lib/unistdio/u32-u32-vsprintf.c: New file.
32394 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32395 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32396 * tests/unistdio/test-ulc-printf1.h: New file.
32397 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32398 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32399 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32400 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32401 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32402 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32403 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32404 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32405 * tests/unistdio/test-u8-asnprintf1.c: New file.
32406 * tests/unistdio/test-u8-asnprintf1.h: New file.
32407 * tests/unistdio/test-u8-printf1.h: New file.
32408 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32409 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32410 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32411 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32412 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32413 * tests/unistdio/test-u8-vasprintf1.c: New file.
32414 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32415 * tests/unistdio/test-u8-vsprintf1.c: New file.
32416 * tests/unistdio/test-u16-asnprintf1.c: New file.
32417 * tests/unistdio/test-u16-asnprintf1.h: New file.
32418 * tests/unistdio/test-u16-printf1.h: New file.
32419 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32420 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32421 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32422 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32423 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32424 * tests/unistdio/test-u16-vasprintf1.c: New file.
32425 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32426 * tests/unistdio/test-u16-vsprintf1.c: New file.
32427 * tests/unistdio/test-u32-asnprintf1.c: New file.
32428 * tests/unistdio/test-u32-asnprintf1.h: New file.
32429 * tests/unistdio/test-u32-printf1.h: New file.
32430 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32431 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32432 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32433 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32434 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32435 * tests/unistdio/test-u32-vasprintf1.c: New file.
32436 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32437 * tests/unistdio/test-u32-vsprintf1.c: New file.
32438 * modules/unistdio/base: New file.
32439 * modules/unistdio/u-printf-args: New file.
32440 * modules/unistdio/ulc-asnprintf: New file.
32441 * modules/unistdio/ulc-asprintf: New file.
32442 * modules/unistdio/ulc-fprintf: New file.
32443 * modules/unistdio/ulc-printf-parse: New file.
32444 * modules/unistdio/ulc-snprintf: New file.
32445 * modules/unistdio/ulc-sprintf: New file.
32446 * modules/unistdio/ulc-vasnprintf: New file.
32447 * modules/unistdio/ulc-vasprintf: New file.
32448 * modules/unistdio/ulc-vfprintf: New file.
32449 * modules/unistdio/ulc-vsnprintf: New file.
32450 * modules/unistdio/ulc-vsprintf: New file.
32451 * modules/unistdio/u8-asnprintf: New file.
32452 * modules/unistdio/u8-asprintf: New file.
32453 * modules/unistdio/u8-printf-parse: New file.
32454 * modules/unistdio/u8-snprintf: New file.
32455 * modules/unistdio/u8-sprintf: New file.
32456 * modules/unistdio/u8-vasnprintf: New file.
32457 * modules/unistdio/u8-vasprintf: New file.
32458 * modules/unistdio/u8-vsnprintf: New file.
32459 * modules/unistdio/u8-vsprintf: New file.
32460 * modules/unistdio/u8-u8-asnprintf: New file.
32461 * modules/unistdio/u8-u8-asprintf: New file.
32462 * modules/unistdio/u8-u8-snprintf: New file.
32463 * modules/unistdio/u8-u8-sprintf: New file.
32464 * modules/unistdio/u8-u8-vasnprintf: New file.
32465 * modules/unistdio/u8-u8-vasprintf: New file.
32466 * modules/unistdio/u8-u8-vsnprintf: New file.
32467 * modules/unistdio/u8-u8-vsprintf: New file.
32468 * modules/unistdio/u16-asnprintf: New file.
32469 * modules/unistdio/u16-asprintf: New file.
32470 * modules/unistdio/u16-printf-parse: New file.
32471 * modules/unistdio/u16-snprintf: New file.
32472 * modules/unistdio/u16-sprintf: New file.
32473 * modules/unistdio/u16-vasnprintf: New file.
32474 * modules/unistdio/u16-vasprintf: New file.
32475 * modules/unistdio/u16-vsnprintf: New file.
32476 * modules/unistdio/u16-vsprintf: New file.
32477 * modules/unistdio/u16-u16-asnprintf: New file.
32478 * modules/unistdio/u16-u16-asprintf: New file.
32479 * modules/unistdio/u16-u16-snprintf: New file.
32480 * modules/unistdio/u16-u16-sprintf: New file.
32481 * modules/unistdio/u16-u16-vasnprintf: New file.
32482 * modules/unistdio/u16-u16-vasprintf: New file.
32483 * modules/unistdio/u16-u16-vsnprintf: New file.
32484 * modules/unistdio/u16-u16-vsprintf: New file.
32485 * modules/unistdio/u32-asnprintf: New file.
32486 * modules/unistdio/u32-asprintf: New file.
32487 * modules/unistdio/u32-printf-parse: New file.
32488 * modules/unistdio/u32-snprintf: New file.
32489 * modules/unistdio/u32-sprintf: New file.
32490 * modules/unistdio/u32-vasnprintf: New file.
32491 * modules/unistdio/u32-vasprintf: New file.
32492 * modules/unistdio/u32-vsnprintf: New file.
32493 * modules/unistdio/u32-vsprintf: New file.
32494 * modules/unistdio/u32-u32-asnprintf: New file.
32495 * modules/unistdio/u32-u32-asprintf: New file.
32496 * modules/unistdio/u32-u32-snprintf: New file.
32497 * modules/unistdio/u32-u32-sprintf: New file.
32498 * modules/unistdio/u32-u32-vasnprintf: New file.
32499 * modules/unistdio/u32-u32-vasprintf: New file.
32500 * modules/unistdio/u32-u32-vsnprintf: New file.
32501 * modules/unistdio/u32-u32-vsprintf: New file.
32502 * modules/unistdio/ulc-asnprintf-tests: New file.
32503 * modules/unistdio/ulc-vasnprintf-tests: New file.
32504 * modules/unistdio/ulc-vasprintf-tests: New file.
32505 * modules/unistdio/ulc-vsnprintf-tests: New file.
32506 * modules/unistdio/ulc-vsprintf-tests: New file.
32507 * modules/unistdio/u8-asnprintf-tests: New file.
32508 * modules/unistdio/u8-vasnprintf-tests: New file.
32509 * modules/unistdio/u8-vasprintf-tests: New file.
32510 * modules/unistdio/u8-vsnprintf-tests: New file.
32511 * modules/unistdio/u8-vsprintf-tests: New file.
32512 * modules/unistdio/u16-asnprintf-tests: New file.
32513 * modules/unistdio/u16-vasnprintf-tests: New file.
32514 * modules/unistdio/u16-vasprintf-tests: New file.
32515 * modules/unistdio/u16-vsnprintf-tests: New file.
32516 * modules/unistdio/u16-vsprintf-tests: New file.
32517 * modules/unistdio/u32-asnprintf-tests: New file.
32518 * modules/unistdio/u32-vasnprintf-tests: New file.
32519 * modules/unistdio/u32-vasprintf-tests: New file.
32520 * modules/unistdio/u32-vsnprintf-tests: New file.
32521 * modules/unistdio/u32-vsprintf-tests: New file.
32522 * MODULES.html.sh (Unicode string functions): Add the new modules.
32524 2007-07-01 Bruno Haible <bruno@clisp.org>
32526 * lib/sprintf.c (sprintf): Limit the available length estimation,
32527 to avoid address wraparound.
32528 * lib/vsprintf.c (vsprintf): Likewise.
32529 * modules/sprintf-posix (Dependencies): Add stdint.
32530 * modules/vsprintf-posix (Dependencies): Likewise.
32532 2007-07-01 Bruno Haible <bruno@clisp.org>
32534 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32535 Windows PATH as well. Conservative double-quoting. Comments.
32537 2007-07-01 Bruno Haible <bruno@clisp.org>
32538 Eric Blake <ebb9@byu.net>
32539 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32541 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32542 empty components in $PATH, denoting '.'.
32544 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32546 * gnulib-tool: Fix indentation.
32547 (func_create_megatestdir): Likewise.
32548 Report by Bruno Haible.
32550 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32552 Sync from Automake.
32553 * build-aux/gnupload: Fix shell portability issues with for loops.
32554 Report by Karl Berry.
32556 2007-06-29 Simon Josefsson <simon@josefsson.org>
32558 * build-aux/maint.mk (POURL): Use translationproject.org.
32560 2007-06-27 Simon Josefsson <simon@josefsson.org>
32561 Bruno Haible <bruno@clisp.org>
32563 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32564 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32565 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32566 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32567 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32569 2007-06-27 Bruno Haible <bruno@clisp.org>
32571 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32572 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32574 2007-06-26 Karl Berry <karl@gnu.org>
32576 * MODULES.html.sh: remove xreadlink-with-size.
32578 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32580 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32581 method that I hope also handles the double-include problem noted
32583 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32585 2007-06-23 Bruno Haible <bruno@clisp.org>
32587 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32588 Don't let the 'mostlyclean' target fail if the last subdirectory could
32590 Reported by Karl Berry.
32592 2007-06-23 Bruno Haible <bruno@clisp.org>
32594 * gnulib-tool (echo): Add a speedier workaround for ksh.
32595 * tests/test-echo.sh: Likewise.
32597 2007-06-23 Bruno Haible <bruno@clisp.org>
32599 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32600 * tests/test-echo.sh: Likewise.
32602 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32604 * gnulib-tool (IFS): Initialize early, so we don't set it to
32606 (self_abspathname): Rewrite algorithm to set it, reindent.
32607 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32608 (func_create_megatestdir): Merge some sed scripts.
32610 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32612 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32613 exposed by Sun Studio 11 cc on Solaris 8.
32615 2007-06-22 Bruno Haible <bruno@clisp.org>
32617 * gnulib-tool (echo): Ensure the echo primitive does not interpret
32619 * tests/test-echo.sh: New file.
32621 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32623 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32624 simplify `sed_replace_build_aux' scripts, they are portable but
32625 echoing them with `echo' is not.
32626 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32628 2007-06-21 Karl Berry <karl@gnu.org>
32630 * config/srclist.txt: guess we can't handle the licenses via
32631 srclist at the moment.
32633 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
32635 * MODULES.html.sh: Add include_next.
32636 * modules/include_next: New file.
32638 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
32640 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32642 (gl_CHECK_NEXT_HEADERS): New macro.
32643 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32644 the obsolescent gl_ABSOLUTE_HEADER.
32645 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32646 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32647 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32648 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32649 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32650 * m4/math_h.m4 (gl_MATH_H): Likewise.
32651 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32652 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32653 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32654 * m4/stdint.m4 (gl_STDINT_H): Likewise.
32655 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32656 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32657 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32658 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32659 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32660 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32661 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32662 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32663 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32664 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32665 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32666 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32667 * m4/inttypes.m4 (gl_INTTYPES_H): Define
32668 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32669 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32670 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32671 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32672 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32673 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32674 * lib/float_.h: Likewise.
32675 * lib/inttypes_.h: Likewise.
32676 * lib/math_.h: Likewise.
32677 * lib/search_.h: Likewise.
32678 * lib/signal_.h: Likewise.
32679 * lib/stdint_.h: Likewise.
32680 * lib/stdio_.h: Likewise.
32681 * lib/stdlib_.h: Likewise.
32682 * lib/string_.h: Likewise.
32683 * lib/sys_stat_.h: Likewise.
32684 * lib/sys_time_.h: Likewise.
32685 * lib/time_.h: Likewise.
32686 * lib/unistd_.h: Likewise.
32687 * lib/wchar_.h: Likewise.
32688 * lib/wctype_.h: Likewise.
32689 * lib/dirent_.h: Likewise.
32690 * lib/iconv_.h: Likewise.
32691 * lib/locale_.h: Likewise.
32692 * lib/netinet_in_.h: Likewise.
32693 * lib/sys_select_.h: Likewise.
32694 * lib/sys_socket_.h: Likewise.
32695 * lib/sysexits_.h: Likewise.
32696 * modules/fcntl (Depends-on): Depend on include_next, not
32698 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32699 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32700 * modules/fchdir: Likewise.
32701 * modules/float: Likewise.
32702 * modules/iconv_open: Likewise.
32703 * modules/inttypes: Likewise.
32704 * modules/locale: Likewise.
32705 * modules/math: Likewise.
32706 * modules/netinet_in: Likewise.
32707 * modules/search: Likewise.
32708 * modules/signal: Likewise.
32709 * modules/stdint: Likewise.
32710 * modules/stdio: Likewise.
32711 * modules/stdlib: Likewise.
32712 * modules/string: Likewise.
32713 * modules/sys_select: Likewise.
32714 * modules/sys_socket: Likewise.
32715 * modules/sys_stat: Likewise.
32716 * modules/sys_time: Likewise.
32717 * modules/sysexits: Likewise.
32718 * modules/time: Likewise.
32719 * modules/unistd: Likewise.
32720 * modules/wchar: Likewise.
32721 * modules/wctype: Likewise.
32722 * modules/sys_stat: Change maintainer to "all".
32723 * modules/unistd: Likewise.
32725 2007-06-20 Karl Berry <karl@gnu.org>
32727 * config/srclist.txt: track www changes in license files.
32729 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
32731 * build-aux/bootstrap: Remove stray dot.
32732 Make sure build_aux settings are honored when linking
32733 gnulib_extra_files.
32735 2007-06-19 Eric Blake <ebb9@byu.net>
32737 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32738 Allow compilation on cygwin.
32740 2007-06-19 Jim Meyering <jim@meyering.net>
32742 xreadlink-with-size: Remove module. No longer used.
32743 Ex-callers now use xreadlink or mreadlink-with-size.
32744 * modules/xreadlink-with-size: Remove module.
32745 * lib/xreadlink-with-size.c: Remove file.
32746 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32747 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
32748 just before the function definition *is* accurate.
32750 Eliminate one way canonicalize_filename_mode could exit.
32751 * lib/canonicalize.c (canonicalize_filename_mode):
32752 Use mreadlink_with_size, not xreadlink_with_size.
32754 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
32756 Detect porting problems to FreeBSD/arm, which has time_t wider than
32757 long int. Original problem reported for GNU diff by Xin Li in
32758 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32759 * modules/getdate (Depends-on): Add intprops, verify.
32760 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
32761 is an integer type no wider than long int.
32763 2007-06-18 Jim Meyering <jim@meyering.net>
32765 New module: mreadlink-with-size.
32766 * MODULES.html.sh: Add mreadlink-with-size.
32767 * modules/mreadlink-with-size: New module
32768 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32769 not xreadlink-with-size.
32770 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32772 2007-06-16 Bruno Haible <bruno@clisp.org>
32774 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32775 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32776 Reported by Gary V. Vaughan <gary@gnu.org>.
32778 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
32780 Revamp lchown so that it lives in unistd.h where it belongs.
32781 * lib/lchown.h: Remove.
32782 * lib/dirchownmod.c: Don't include lib/lchown.h.
32783 * lib/fchownat.c: Likewise.
32784 * lib/openat.c: Likewise.
32785 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32786 does not follow symlinks.
32787 (EOPNOTSUPP): Define if not defined.
32788 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32790 (lchown): New decl.
32791 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32792 Do not check for lchown decl.
32793 Set REPLACE_LCHOWN.
32794 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32796 * modules/chown: Make it clear it follows symlinks.
32797 * modules/lchown: Make it clear it doesn't follow symlinks.
32798 (Files): Remove lib/lchown.h
32799 (Depends-on): Add unistd.
32800 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32801 (Include): Include <unistd.h>, not "lchown.h".
32802 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32805 2007-06-15 Jim Meyering <jim@meyering.net>
32807 Change license (GPL to LGPL) of fsusage and dependents.
32808 * modules/fsusage (License): Change to LGPL.
32809 * modules/full-read (License): Likewise.
32810 * modules/full-write (License): Likewise.
32811 * modules/safe-read (License): Likewise.
32812 * modules/safe-write (License): Likewise.
32814 2007-06-14 Ben Pfaff <blp@gnu.org>
32816 Missing part of allocsa -> malloca transition.
32817 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32820 2007-06-12 Bruno Haible <bruno@clisp.org>
32822 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32823 to ia64, x86_64, i386.
32824 Reported by Eric Blake.
32826 2007-06-12 Bruno Haible <bruno@clisp.org>
32828 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32829 cross-compiling to x86_64.
32831 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
32833 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32834 glitch reported by Ralf Wildenhues in
32835 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32837 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32840 2007-06-11 Bruno Haible <bruno@clisp.org>
32842 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32843 replacement string.
32844 Reported by Eric Blake.
32846 2007-06-10 Bruno Haible <bruno@clisp.org>
32848 Prepare vasnprintf code for use with Unicode strings.
32849 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32850 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32852 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32853 a_u32_string variants.
32854 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32855 * lib/printf-args.c: Don't include config.h and the specification
32856 header if PRINTF_FETCHARGS is already defined.
32857 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32858 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32859 TYPE_U16_STRING, TYPE_U32_STRING.
32860 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32861 u16_directive, u16_directives, u32_directive, u32_directives): New
32863 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32865 * lib/printf-parse.c: Don't include config.h and the specification
32866 header if PRINTF_PARSE is already defined. Eliminate the set of
32867 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32868 them now. Include c-ctype.h.
32869 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32870 directive and CHAR_T_ONLY_ASCII.
32871 * lib/vasnprintf.c: Don't include config.h and the specification header
32872 if VASNPRINTF is already defined.
32873 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32874 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32875 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32876 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32877 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32878 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32880 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32881 pad_ourselves also in this case, with the 'c' and 's' directives, and
32882 with a different notion of "width".
32883 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32885 2007-06-10 Bruno Haible <bruno@clisp.org>
32887 * modules/unistr/u32-mbsnlen: New file.
32888 * lib/unistr/u32-mbsnlen.c: New file.
32890 * modules/unistr/u16-mbsnlen: New file.
32891 * lib/unistr/u16-mbsnlen.c: New file.
32893 * modules/unistr/u8-mbsnlen: New file.
32894 * lib/unistr/u8-mbsnlen.c: New file.
32896 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32899 2007-06-10 Bruno Haible <bruno@clisp.org>
32901 * lib/string_.h (mbsnlen): New declaration.
32902 * lib/mbsnlen.c: New file.
32903 * m4/mbsnlen.m4: New file.
32904 * modules/mbsnlen: New file.
32905 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32906 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32907 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32909 2007-06-10 Bruno Haible <bruno@clisp.org>
32911 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32913 2007-06-10 Bruno Haible <bruno@clisp.org>
32915 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32916 * lib/mbuiter.h: Likewise.
32918 2007-06-10 Bruno Haible <bruno@clisp.org>
32920 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32923 2007-06-10 Karl Berry <karl@gnu.org>
32925 * config/srclist.txt: remove gettext entries, Bruno prefers
32926 to update individually.
32928 2007-06-10 Bruno Haible <bruno@clisp.org>
32930 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32931 'maxlen'. Ensure only length + width bytes are allocated, not
32932 length + 1 + width.
32934 2007-06-09 Bruno Haible <bruno@clisp.org>
32936 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32937 (CHAR_T): Remove macro.
32938 (VASNPRINTF): Update.
32940 2007-06-09 Bruno Haible <bruno@clisp.org>
32942 * MODULES.html.sh (Unicode string functions): Add the new modules.
32944 * modules/uniconv/u32-conv-to-enc: New file.
32945 * lib/uniconv/u32-conv-to-enc.c: New file.
32946 * modules/uniconv/u32-conv-to-enc-tests: New file.
32947 * tests/uniconv/test-u32-conv-to-enc.c: New file.
32949 * modules/uniconv/u16-conv-to-enc: New file.
32950 * lib/uniconv/u16-conv-to-enc.c: New file.
32951 * lib/uniconv/u-conv-to-enc.h: New file.
32952 * modules/uniconv/u16-conv-to-enc-tests: New file.
32953 * tests/uniconv/test-u16-conv-to-enc.c: New file.
32955 * modules/uniconv/u8-conv-to-enc: New file.
32956 * lib/uniconv/u8-conv-to-enc.c: New file.
32957 * modules/uniconv/u8-conv-to-enc-tests: New file.
32958 * tests/uniconv/test-u8-conv-to-enc.c: New file.
32960 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32961 u32_conv_to_encoding): New declarations.
32963 2007-06-09 Bruno Haible <bruno@clisp.org>
32965 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32967 2007-06-09 Bruno Haible <bruno@clisp.org>
32969 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32970 * modules/malloca: Renamed from modules/allocsa, updated.
32971 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32972 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32973 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32974 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32975 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32976 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32977 * modules/xmalloca: Renamed from modules/xallocsa, updated.
32978 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32979 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32980 * modules/c-strcasestr (Depends-on): Update.
32981 * lib/c-strcasestr.c: Update.
32982 * modules/c-strstr (Depends-on): Update.
32983 * lib/c-strstr.c: Update.
32984 * modules/canonicalize-lgpl (Depends-on): Update.
32985 * lib/canonicalize-lgpl.c: Update.
32986 * modules/clean-temp (Depends-on): Update.
32987 * lib/clean-temp.c: Update.
32988 * modules/csharpcomp (Depends-on): Update.
32989 * lib/csharpcomp.c: Update.
32990 * modules/csharpexec (Depends-on): Update.
32991 * lib/csharpexec.c: Update.
32992 * modules/javacomp (Depends-on): Update.
32993 * lib/javacomp.c: Update.
32994 * modules/javaexec (Depends-on): Update.
32995 * lib/javaexec.c: Update.
32996 * modules/mbscasestr (Depends-on): Update.
32997 * lib/mbscasestr.c: Update.
32998 * modules/mbsstr (Depends-on): Update.
32999 * lib/mbsstr.c: Update.
33000 * modules/setenv (Depends-on): Update.
33001 * lib/setenv.c: Update.
33002 * modules/strcasestr (Depends-on): Update.
33003 * lib/strcasestr.c: Update.
33004 * modules/striconveha (Depends-on): Update.
33005 * lib/striconveha.c: Update.
33006 * modules/relocatable-prog-wrapper (Files): Update.
33007 * lib/relocwrapper.c: Update.
33008 * build-aux/install-reloc: Update.
33009 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33011 2007-06-08 Bruno Haible <bruno@clisp.org>
33014 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33015 * lib/fpurge.c (fpurge): Likewise.
33016 * lib/freading.c (freading): Likewise.
33017 * lib/fseeko.c (rpl_fseeko): Likewise.
33018 * lib/fseterr.c (fseterr): Likewise.
33019 * lib/fwriting.c (fwriting): Likewise.
33020 * tests/test-fflush.c (main): Avoid a failure on uClibc.
33022 2007-06-08 Bruno Haible <bruno@clisp.org>
33024 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33025 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33026 * modules/gettext (Files): Add m4/intlmacosx.m4.
33028 2007-06-07 Bruno Haible <bruno@clisp.org>
33030 * modules/localename-tests: New file.
33031 * tests/test-localename.c: New file.
33033 New module 'localename'.
33034 * lib/localename.h: New file.
33035 * lib/localename.c: New file, from GNU gettext.
33036 * m4/localename.m4: New file.
33037 * modules/localename: New file.
33039 2007-06-07 Bruno Haible <bruno@clisp.org>
33041 Work around the lack of <wchar.h> on some builds of uClibc.
33042 * doc/headers/wchar.texi: Update.
33043 * lib/wchar_.h: Include <wchar.h> only if it exists.
33044 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33045 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33046 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33048 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33049 * modules/mbfile (Depends-on): Add wchar.
33050 * modules/mbiter (Depends-on): Likewise.
33051 * modules/mbuiter (Depends-on): Likewise.
33052 Reported by Simon Josefsson.
33054 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
33056 Work around problem reported by Steven M. Schweda in
33057 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33058 Tru64 5.1B with the Compaq compiler environment installed declares
33059 an 'isblank' function but does not define it in the C library.
33060 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33061 * lib/regex_internal.h (isblank): Likewise.
33062 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33063 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33065 2007-06-05 Bruno Haible <bruno@clisp.org>
33067 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33069 * modules/printf-safe: New file.
33070 * modules/fprintf-posix (Depends-on): Add printf-safe.
33071 * modules/printf-posix (Depends-on): Likewise.
33072 * modules/snprintf-posix (Depends-on): Likewise.
33073 * modules/sprintf-posix (Depends-on): Likewise.
33074 * modules/vasnprintf-posix (Depends-on): Likewise.
33075 * modules/vasprintf-posix (Depends-on): Likewise.
33076 * modules/vfprintf-posix (Depends-on): Likewise.
33077 * modules/vprintf-posix (Depends-on): Likewise.
33078 * modules/vsnprintf-posix (Depends-on): Likewise.
33079 * modules/vsprintf-posix (Depends-on): Likewise.
33080 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33081 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33082 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33083 "no" on i386, x86_64, ia64.
33084 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33085 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33086 on i386, x86_64, ia64.
33087 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33088 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33089 on i386, x86_64, ia64.
33090 * tests/test-vasnprintf-posix.c: Include float.h.
33091 (LDBL80_WORDS): New macro.
33092 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33093 on i386, x86_64, ia64.
33094 * tests/test-vasprintf-posix.c: Include float.h.
33095 (LDBL80_WORDS): New macro.
33096 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33097 on i386, x86_64, ia64.
33098 * tests/test-snprintf-posix.c: Include float.h.
33099 * tests/test-sprintf-posix.c: Likewise.
33100 * tests/test-vsnprintf-posix.c: Likewise.
33101 * tests/test-vsprintf-posix.c: Likewise.
33103 2007-06-05 Bruno Haible <bruno@clisp.org>
33105 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33106 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33107 non-IEEE numbers on i386, x86_64, ia64.
33108 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33109 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33110 * tests/test-isnanl.h: Include float.h.
33111 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33113 2007-06-05 Bruno Haible <bruno@clisp.org>
33115 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33116 also the %a / %A. Handle the %a / %A code before this extra handling.
33118 2007-06-05 Bruno Haible <bruno@clisp.org>
33120 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33121 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33123 2007-06-05 Bruno Haible <bruno@clisp.org>
33125 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33126 typo in variable name.
33128 2007-06-05 Eric Blake <ebb9@byu.net>
33130 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33131 Reported by Simon Josefsson.
33133 2007-06-04 Bruno Haible <bruno@clisp.org>
33135 Avoid test failures on some PowerPC platforms.
33136 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33137 Define differently for PowerPC.
33138 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33139 Reported by Gary V. Vaughan <gary@gnu.org>.
33141 2007-06-02 Bruno Haible <bruno@clisp.org>
33143 Fix test-stdint failure on FreeBSD/ia64.
33144 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33145 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33146 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33147 * doc/headers/stdint.texi: Update.
33149 2007-06-01 Bruno Haible <bruno@clisp.org>
33151 * tests/test-binary-io.c (main): Pass a third argument to open().
33152 Reported by Gary V. Vaughan <gary@gnu.org>.
33154 2007-06-01 Bruno Haible <bruno@clisp.org>
33156 * doc/functions/frexpl.texi: Update for mingw.
33158 2007-06-01 Bruno Haible <bruno@clisp.org>
33160 * tests/test-lseek.c (main): Disable test of errno for invalid third
33162 * doc/functions/lseek.texi: Update.
33163 Reported by Gary V. Vaughan <gary@gnu.org>.
33165 2007-05-28 Bruno Haible <bruno@clisp.org>
33167 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33169 2007-05-31 Eric Blake <ebb9@byu.net>
33171 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33174 2007-05-30 Eric Blake <ebb9@byu.net>
33175 and Bruno Haible <bruno@clisp.org>
33177 Work around mingw test failures exposed by m4-1.4.9b.
33178 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33179 * tests/test-unistd.c: Disable uid_t and git_t tests for the
33182 2007-05-30 Bruno Haible <bruno@clisp.org>
33184 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33185 assuming that they are closed. Needed on HP-UX 11.
33187 2007-05-29 Bruno Haible <bruno@clisp.org>
33189 Fix a problem with #include_next.
33190 * lib/dirent_.h: Split the double-inclusion guard.
33191 * lib/fcntl_.h: Likewise.
33192 * lib/float_.h: Likewise.
33193 * lib/iconv_.h: Likewise.
33194 * lib/inttypes_.h: Likewise.
33195 * lib/locale_.h: Likewise.
33196 * lib/math_.h: Likewise.
33197 * lib/netinet_in_.h: Likewise.
33198 * lib/search_.h: Likewise.
33199 * lib/signal_.h: Likewise.
33200 * lib/stdint_.h: Likewise.
33201 * lib/stdio_.h: Likewise.
33202 * lib/stdlib_.h: Likewise.
33203 * lib/string_.h: Likewise.
33204 * lib/sys_select_.h: Likewise.
33205 * lib/sys_socket_.h: Likewise.
33206 * lib/sys_stat_.h: Likewise.
33207 * lib/sys_time_.h: Likewise.
33208 * lib/sysexits_.h: Likewise.
33209 * lib/time_.h: Likewise.
33210 * lib/unistd_.h: Likewise.
33211 * lib/wchar_.h: Likewise.
33212 * lib/wctype_.h: Likewise.
33214 2007-05-29 Bruno Haible <bruno@clisp.org>
33216 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33219 2007-05-29 Bruno Haible <bruno@clisp.org>
33221 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33223 Reported by Eric Blake.
33225 2007-05-29 Bruno Haible <bruno@clisp.org>
33227 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33230 2007-05-29 Eric Blake <ebb9@byu.net>
33231 Bruno Haible <bruno@clisp.org>
33233 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33236 2007-05-28 Eric Blake <ebb9@byu.net>
33238 * modules/closein-tests (test_closein_LDADD): Support test on
33239 cygwin with libtool.
33241 2007-05-28 Bruno Haible <bruno@clisp.org>
33243 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33244 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33245 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33246 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33247 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33248 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33249 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33250 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33251 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33253 2007-05-28 Eric Blake <ebb9@byu.net>
33255 Unconditionally include <config.h> in unit tests.
33256 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33257 * tests/test-allocsa.c, tests/test-arcfour.c,
33258 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33259 tests/test-array_list.c, tests/test-array_oset.c,
33260 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33261 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33262 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33263 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33264 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33265 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33266 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33267 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33268 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33269 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33270 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33271 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33272 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33273 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33274 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33275 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33276 test-md5.c, test-memmem.c, test-printf-posix.c,
33277 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33278 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33279 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33280 test-strcasestr.c, test-striconv.c, test-striconveh.c,
33281 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33282 test-vasnprintf-posix2.c, test-vasnprintf.c,
33283 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33284 test-vfprintf-posix.c, test-vprintf-posix.c,
33285 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33286 test-xvasprintf.c: Likewise.
33288 2007-05-28 Bruno Haible <bruno@clisp.org>
33290 * gnulib-tool (func_import): Remember the --with-tests command-line
33291 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33292 Reported by Eric Blake.
33294 2007-05-28 Bruno Haible <bruno@clisp.org>
33296 * modules/ftell-tests: New file.
33297 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33298 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33300 * lib/ftell.c: New file.
33301 * modules/ftell: New file.
33302 * m4/ftell.m4: New file.
33303 * doc/functions/ftell.texi: Update.
33304 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33306 * lib/stdio_.h (rpl_ftell): New declaration.
33307 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33310 2007-05-28 Eric Blake <ebb9@byu.net>
33312 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33314 2007-05-28 Bruno Haible <bruno@clisp.org>
33316 * modules/fseek-tests: New file.
33317 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33318 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33320 * lib/fseek.c: New file.
33321 * modules/fseek: New file.
33322 * m4/fseek.m4: New file.
33323 * doc/functions/fseek.texi: Update.
33324 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33326 * lib/stdio_.h (rpl_fseek): New declaration.
33327 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33330 2007-05-28 Bruno Haible <bruno@clisp.org>
33332 * lib/stdio_.h (fflush): More comments.
33334 2007-05-28 Bruno Haible <bruno@clisp.org>
33336 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33339 2007-05-28 Eric Blake <ebb9@byu.net>
33341 Improve lseek module.
33342 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33343 * lib/unistd_.h (lseek): Scale back link warning message.
33344 * tests/test-lseek.c: Beef up test.
33345 * tests/test-lseek.sh: Exercise more facets of lseek.
33346 Reported by Bruno Haible.
33348 2007-05-28 Bruno Haible <bruno@clisp.org>
33350 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33353 2007-05-27 Bruno Haible <bruno@clisp.org>
33355 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33357 2007-05-27 Bruno Haible <bruno@clisp.org>
33359 * modules/openmp: New file.
33360 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33363 2007-05-26 Bruno Haible <bruno@clisp.org>
33365 * modules/chdir-long (Depends-on): Add fchdir.
33366 * modules/chdir-safer (Depends-on): Likewise.
33367 * modules/fts (Depends-on): Likewise.
33368 * modules/fts-lgpl (Depends-on): Likewise.
33369 * modules/openat (Depends-on): Likewise.
33370 * modules/savewd (Depends-on): Likewise.
33372 2007-05-24 Eric Blake <ebb9@byu.net>
33374 Fix lseek on mingw.
33375 * modules/lseek: New module.
33376 * m4/lseek.m4: New file.
33377 * lib/lseek.c: New file.
33378 * modules/lseek-tests: New file.
33379 * tests/test-lseek.c: New file.
33380 * tests/test-lseek.sh: New file.
33381 * MODULES.html.sh: Document lseek module.
33382 * modules/fflush (Depends-on): Add lseek, fseeko.
33383 * modules/fseeko (Depends-on): Likewise.
33384 * modules/ftello (Depends-on): Likewise.
33385 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33387 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33389 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33390 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33391 * lib/ftello.c (rpl_ftello): Likewise.
33392 * tests/test-fseeko.c (main): Test this.
33393 * tests/test-fseeko.sh: Likewise.
33394 * tests/test-ftello.c (main): Likewise.
33395 * tests/test-ftello.sh: Likewise.
33396 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33397 implies replacing fseek.
33398 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33400 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33401 * modules/unistd (Makefile.am): Likewise.
33402 * lib/unistd_.h (lseek): Declare a replacement.
33403 * doc/functions/lseek.texi (lseek): Document this fix.
33404 * doc/functions/fseek.texi (fseek): Likewise.
33405 * doc/functions/ftell.texi (ftell): Likewise.
33407 2007-05-24 Bruno Haible <bruno@clisp.org>
33409 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33410 in the printed representation of a NaN.
33411 * tests/test-vasprintf-posix.c (test_function): Likewise.
33412 * tests/test-snprintf-posix.h (test_function): Likewise.
33413 * tests/test-sprintf-posix.h (test_function): Likewise.
33414 Reported by Eric Blake.
33416 2007-05-23 Eric Blake <ebb9@byu.net>
33418 Fix fseeko/ftello on cygwin 1.5.24.
33419 * doc/functions/fseeko.texi (fseeko): Document the fix.
33420 * doc/functions/ftello.texi (ftello): Document the fix.
33421 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33422 * doc/functions/stdout.text (stdout): New file.
33423 * doc/functions/stderr.text (stderr): New file.
33424 * doc/gnulib.texi (Function Substitutes): Use new files.
33425 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33427 * tests/test-ftello.c (main): Likewise for ftello.
33428 * tests/test-fseeko.sh: New file.
33429 * tests/test-ftello.sh: New file.
33430 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33431 with seekable stdin.
33432 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33433 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33434 (gl_REPLACE_FSEEKO): New macro.
33435 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33436 * modules/fseeko (Files): Distribute fseeko.c.
33437 * modules/ftello (Files): Distribute ftello.c.
33438 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33440 * lib/ftello.c (rpl_ftello): New file.
33441 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33443 (gl_STDIN_LARGE_OFFSET): New macro.
33444 * modules/stdio (Makefile.am): Perform the replacement.
33445 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33447 2007-05-23 Bruno Haible <bruno@clisp.org>
33449 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33450 GNULIB_POSIXCHECK is defined.
33452 2007-05-21 Bruno Haible <bruno@clisp.org>
33454 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33455 Check also the output for NaN arguments. When cross-compiling, guess
33457 * lib/vasnprintf.c: Update comments.
33458 * tests/test-vasnprintf-posix.c (strisnan): New function.
33459 (test_function): Use it.
33460 * tests/test-vasprintf-posix.c (strisnan): New function.
33461 (test_function): Use it.
33462 * tests/test-snprintf-posix.h (strisnan): New function.
33463 (test_function): Use it.
33464 * tests/test-sprintf-posix.h (strisnan): New function.
33465 (test_function): Use it.
33466 Reported by Eric Blake.
33468 2007-05-20 Bruno Haible <bruno@clisp.org>
33470 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33471 numbers that fails on BeOS.
33472 * doc/functions/frexpl.texi: Update.
33474 2007-05-20 Jim Meyering <jim@meyering.net>
33476 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33477 forced upon us by glibc-2.6.
33479 2007-05-20 Bruno Haible <bruno@clisp.org>
33481 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33482 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33483 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33484 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33485 NEED_PRINTF_INFINITE.
33486 (is_infinitel): New function.
33487 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33488 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33489 gl_PREREQ_VASNPRINTF_INFINITE.
33490 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33491 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33492 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33493 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33494 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33495 gl_PREREQ_VASNPRINTF_INFINITE.
33496 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33497 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33498 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33499 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33500 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33501 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33502 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33503 * doc/functions/fprintf.texi: Update.
33504 * doc/functions/printf.texi: Update.
33505 * doc/functions/snprintf.texi: Update.
33506 * doc/functions/sprintf.texi: Update.
33507 * doc/functions/vfprintf.texi: Update.
33508 * doc/functions/vprintf.texi: Update.
33509 * doc/functions/vsnprintf.texi: Update.
33510 * doc/functions/vsprintf.texi: Update.
33512 2007-05-20 Bruno Haible <bruno@clisp.org>
33514 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33515 was not found in libc.
33516 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33518 2007-05-20 Bruno Haible <bruno@clisp.org>
33520 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33521 printed as "-nan" instead of "nan".
33522 * tests/test-vasprintf-posix.c (test_function): Likewise.
33523 * tests/test-snprintf-posix.h (test_function): Likewise.
33524 * tests/test-sprintf-posix.h (test_function): Likewise.
33525 Needed for HP-UX 11.
33527 2007-05-20 Jim Meyering <jim@meyering.net>
33529 Fix buggy test for the fchownat-deref bug.
33530 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33531 symlink required for the run-test. Without it, this test would
33532 always declare that fchownat doesn't work, and client code would
33533 unnecessarily use the replacement function with fixed libc.
33534 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33535 Reported by Greg Schafer.
33537 2007-05-19 Bruno Haible <bruno@clisp.org>
33539 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33540 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33541 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33542 Needed for IRIX 6.5 and Solaris 2.5.1.
33544 2007-05-19 Bruno Haible <bruno@clisp.org>
33546 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33547 (test_function): Skip tests involving -0.0 on platforms where
33549 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33550 (test_function): Skip tests involving -0.0 on platforms where
33552 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33553 (test_function): Skip tests involving -0.0 on platforms where
33555 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33556 (test_function): Skip tests involving -0.0 on platforms where
33558 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33560 * tests/test-printf-posix.h (test_function): Likewise.
33561 * tests/test-printf-posix.output: Remove all -0.0 related results.
33562 Needed for IRIX 6.5.
33564 2007-05-19 Bruno Haible <bruno@clisp.org>
33566 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33567 printed as "nan0x7fffffff" instead of "nan".
33568 * tests/test-vasprintf-posix.c (test_function): Likewise.
33569 * tests/test-snprintf-posix.h (test_function): Likewise.
33570 * tests/test-sprintf-posix.h (test_function): Likewise.
33571 * tests/test-fprintf-posix.h (NaN): Remove macro.
33572 (test_function): Remove all NaN related tests.
33573 * tests/test-printf-posix.h (NaN): Remove macro.
33574 (test_function): Remove all NaN related tests.
33575 * tests/test-printf-posix.output: Remove all NaN related results.
33576 Needed for IRIX 6.5.
33578 2007-05-19 Bruno Haible <bruno@clisp.org>
33580 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33581 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33583 2007-05-19 Bruno Haible <bruno@clisp.org>
33585 * lib/float_.h: New file.
33586 * m4/float_h.m4: New file.
33587 * modules/float: New file.
33588 * modules/isnanl (Dependencies): Add float.
33589 * modules/isnanl-nolibm (Dependencies): Likewise.
33590 * modules/mathl (Dependencies): Likewise.
33591 * modules/printf-frexpl (Dependencies): Likewise.
33592 * modules/signbit (Dependencies): Likewise.
33593 * modules/vasnprintf (Dependencies): Likewise.
33594 * doc/headers/float.texi: Update.
33596 2007-05-19 Jim Meyering <jim@meyering.net>
33598 * lib/utimens.c (gl_futimens): Rename from futimens,
33599 now that glibc-2.6 declares futimens.
33600 * lib/utimens.h: Likewise.
33602 2007-05-19 Bruno Haible <bruno@clisp.org>
33604 Avoid test failures on mingw.
33605 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33606 * tests/test-printf-posix.sh: Likewise.
33607 * tests/test-vfprintf-posix.sh: Likewise.
33608 * tests/test-vprintf-posix.sh: Likewise.
33610 2007-05-19 Bruno Haible <bruno@clisp.org>
33612 Fix *printf result for NaN, Inf, -0.0 on mingw.
33613 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33614 * lib/vasnprintf.c: Include math.h and isnan.h.
33615 (is_infinite_or_zero): New function.
33616 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33617 values in the %f, %F, %e, %E, %g, %G directives.
33618 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33619 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33620 gl_PRINTF_INFINITE and test its result. Invoke
33621 gl_PREREQ_VASNPRINTF_INFINITE.
33622 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33623 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33624 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33625 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33626 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33627 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33628 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33629 * doc/functions/fprintf.texi: Update.
33630 * doc/functions/printf.texi: Update.
33631 * doc/functions/snprintf.texi: Update.
33632 * doc/functions/sprintf.texi: Update.
33633 * doc/functions/vfprintf.texi: Update.
33634 * doc/functions/vprintf.texi: Update.
33635 * doc/functions/vsnprintf.texi: Update.
33636 * doc/functions/vsprintf.texi: Update.
33638 2007-05-19 Bruno Haible <bruno@clisp.org>
33640 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33641 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33642 Instead of multiplying with 10^k, set extra_zeroes to k.
33643 (scale10_round_long_double): Remove function.
33645 2007-05-18 Bruno Haible <bruno@clisp.org>
33647 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33648 introduced on 2007-05-06.
33650 2007-05-18 Bruno Haible <bruno@clisp.org>
33652 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33654 * tests/test-vasprintf-posix.c (test_function): Likewise.
33655 * tests/test-snprintf-posix.h (test_function): Likewise.
33656 * tests/test-sprintf-posix.h (test_function): Likewise.
33658 2007-05-18 Bruno Haible <bruno@clisp.org>
33660 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33661 (strmatch): New function.
33662 (test_function): Test the %f directive on numbers of various exponents.
33663 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33664 (strmatch): New function.
33665 (test_function): Test the %f directive on numbers of various exponents.
33666 * tests/test-snprintf-posix.h (strmatch): New function.
33667 (test_function): Test the %f directive on numbers of various exponents.
33668 * tests/test-sprintf-posix.h (strmatch): New function.
33669 (test_function): Test the %f directive on numbers of various exponents.
33670 * tests/test-snprintf-posix.c (SIZEOF): New macro.
33671 * tests/test-sprintf-posix.c (SIZEOF): New macro.
33672 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33673 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33675 2007-05-18 Bruno Haible <bruno@clisp.org>
33677 Add support for 'long double' number output.
33678 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33679 * lib/vasnprintf.c: Include math.h and float+.h.
33680 (mp_limb_t): New type.
33681 (GMP_LIMB_BITS): New macro.
33682 (mp_twolimb_t): New type.
33683 (GMP_TWOLIMB_BITS): New macro.
33685 (multiply, divide, convert_to_decimal, decode_long_double,
33686 scale10_round_long_double, scale10_round_decimal_long_double,
33687 floorlog10l): New functions.
33688 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33689 for the %f, %F, %e, %E, %g, %G directives.
33690 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33691 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33692 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33693 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33694 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33695 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33696 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33697 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33698 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33699 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33700 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33701 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33702 * modules/snprintf-posix (Depends-on): Likewise.
33703 * modules/sprintf-posix (Depends-on): Likewise.
33704 * modules/vasnprintf-posix (Depends-on): Likewise.
33705 * modules/vasprintf-posix (Depends-on): Likewise.
33706 * modules/vfprintf-posix (Depends-on): Likewise.
33707 * modules/vsnprintf-posix (Depends-on): Likewise.
33708 * modules/vsprintf-posix (Depends-on): Likewise.
33709 * modules/vasnprintf (Files): Add lib/float+.h.
33710 * doc/functions/fprintf.texi: Update.
33711 * doc/functions/printf.texi: Update.
33712 * doc/functions/snprintf.texi: Update.
33713 * doc/functions/sprintf.texi: Update.
33714 * doc/functions/vfprintf.texi: Update.
33715 * doc/functions/vprintf.texi: Update.
33716 * doc/functions/vsnprintf.texi: Update.
33717 * doc/functions/vsprintf.texi: Update.
33719 2007-05-18 Bruno Haible <bruno@clisp.org>
33721 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33723 2007-05-18 Bruno Haible <bruno@clisp.org>
33725 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33726 for printing 64-bit integers. Needed for mingw.
33728 2007-05-18 Bruno Haible <bruno@clisp.org>
33730 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33731 gl_FUNC_FREXPL_WORKS.
33732 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33734 2007-05-18 Bruno Haible <bruno@clisp.org>
33736 * modules/frexpl-nolibm-tests: New file.
33738 * modules/frexpl-nolibm: New file.
33739 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33741 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
33743 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33744 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33745 GCC 4.2, which otherwise issues a lot of warnings.
33746 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33747 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33749 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33750 * modules/iconv_open (iconv.h): Likewise.
33751 * modules/locale (locale.h): Likewise.
33752 * modules/netinet_in (netinet/in.h): Likewise.
33753 * modules/sys_select (sys_select.h): Likewise.
33754 * modules/sys_socket (sys/socket.h): Likewise.
33755 * modules/sys_stat (sys/stat.h): Likewise.
33756 * modules/sysexits (sysexits.h): Likewise.
33757 * modules/unistd (unistd.h): Likewise.
33759 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33761 * modules/closein-tests (Makefile.am): Distribute
33764 2007-05-17 Bruno Haible <bruno@clisp.org>
33766 * tests/test-printf-posix.output: Renamed from
33767 tests/test-fprintf-posix.out.
33768 * modules/fprintf-posix-tests: Update.
33769 * modules/printf-posix-tests: Update.
33770 * modules/vfprintf-posix-tests: Update.
33771 * modules/vprintf-posix-tests: Update.
33772 * tests/test-fprintf-posix.sh: Update.
33773 * tests/test-printf-posix.sh: Update.
33774 * tests/test-vfprintf-posix.sh: Update.
33775 * tests/test-vprintf-posix.sh: Update.
33776 Reported by Ralf Wildenhues.
33778 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
33780 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33781 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33782 GCC 4.2, which otherwise issues a lot of warnings.
33783 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33784 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33785 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33786 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33787 it should no longer be needed.
33788 * lib/string_.h: Likewise.
33789 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33790 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33791 * modules/inttypes (inttypes.h): Likewise.
33792 * modules/math (math.h): Likewise.
33793 * modules/search (search.h): Likewise.
33794 * modules/signal (signal.h): Likewise.
33795 * modules/stdint (stdint.h): Likewise.
33796 * modules/stdio (stdio.h): Likewise.
33797 * modules/stdlib (stdlib.h): Likewise.
33798 * modules/string (string.h): Likewise.
33799 * modules/sys_time (sys/time.h): Likewise.
33800 * modules/time (time.h): Likewise.
33801 * modules/wchar (wchar.h): Likewise.
33802 * modules/wctype (wtype.h): Likewise.
33804 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
33806 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33808 2007-05-13 Bruno Haible <bruno@clisp.org>
33810 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33811 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33812 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33813 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33814 (gl_PREREQ_STRTOK_R): Don't require it here.
33816 2007-05-13 Bruno Haible <bruno@clisp.org>
33818 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33819 when used in C++ mode.
33821 2007-05-12 Bruno Haible <bruno@clisp.org>
33823 * lib/linebuffer.h: Tweak doc.
33824 * lib/linebuffer.c: Likewise.
33826 2007-05-12 James Youngman <jay@gnu.org>
33828 * lib/linebuffer.c (readlinebuffer_delim): New function,
33829 like readlinebuffer, but use a caller-specified delimiter.
33830 (readlinebuffer): Just call readlinebuffer_delim with '\n'
33832 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33834 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
33836 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33837 * modules/openat (Files): Remove openat-die.c.
33838 (Depends-on): Add openat-die.
33839 * modules/openat-die: New module.
33841 2007-05-06 Bruno Haible <bruno@clisp.org>
33843 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33844 Update with info about Cygwin.
33845 * doc/functions/fprintf.texi: Update.
33846 * doc/functions/printf.texi: Update.
33847 * doc/functions/snprintf.texi: Update.
33848 * doc/functions/sprintf.texi: Update.
33849 * doc/functions/vfprintf.texi: Update.
33850 * doc/functions/vprintf.texi: Update.
33851 * doc/functions/vsnprintf.texi: Update.
33852 * doc/functions/vsprintf.texi: Update.
33853 Reported by Eric Blake.
33855 2007-05-06 Bruno Haible <bruno@clisp.org>
33857 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33858 padding ourselves for the floating-point directives.
33859 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33860 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33861 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33862 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33863 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33864 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33865 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33866 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33867 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33868 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33869 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33870 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33871 * tests/test-snprintf-posix.h (test_function): Also check the width
33872 and some flags in the %f directive.
33873 * tests/test-sprintf-posix.h (test_function): Likewise.
33874 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33875 * tests/test-vasprintf-posix.c (test_function): Likewise.
33876 * doc/functions/fprintf.texi: Update.
33877 * doc/functions/printf.texi: Update.
33878 * doc/functions/snprintf.texi: Update.
33879 * doc/functions/sprintf.texi: Update.
33880 * doc/functions/vfprintf.texi: Update.
33881 * doc/functions/vprintf.texi: Update.
33882 * doc/functions/vsnprintf.texi: Update.
33883 * doc/functions/vsprintf.texi: Update.
33885 2007-05-06 Bruno Haible <bruno@clisp.org>
33887 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33888 pass the ' flag character to sprintf or snprintf.
33889 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33890 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33891 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33892 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33893 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33894 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33895 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33896 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33897 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33898 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33899 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33900 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33901 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33903 * tests/test-sprintf-posix.h (test_function): Likewise.
33904 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33905 * tests/test-vasprintf-posix.c (test_function): Likewise.
33906 * doc/functions/fprintf.texi: Update.
33907 * doc/functions/printf.texi: Update.
33908 * doc/functions/snprintf.texi: Update.
33909 * doc/functions/sprintf.texi: Update.
33910 * doc/functions/vfprintf.texi: Update.
33911 * doc/functions/vprintf.texi: Update.
33912 * doc/functions/vsnprintf.texi: Update.
33913 * doc/functions/vsprintf.texi: Update.
33915 2007-05-01 Bruno Haible <bruno@clisp.org>
33917 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33919 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33921 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33922 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33924 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33926 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33927 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33928 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33930 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33932 * lib/argp-help.c (struct hol_entry): New member `ord'.
33933 (HOL_ENTRY_PTRCMP): Use ord for comparison
33934 (hol_sort): Initialize ord.
33936 2007-05-01 Bruno Haible <bruno@clisp.org>
33938 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33939 Reported by Eric Blake.
33940 * doc/gnulib.texi (Function Substitutes): Update.
33942 2007-05-01 Bruno Haible <bruno@clisp.org>
33944 * doc/functions.texi: Remove file, now redundant through
33945 doc/functions/*.texi.
33947 2007-05-01 Bruno Haible <bruno@clisp.org>
33949 * modules/argp (Depends-on): Add sleep.
33951 2007-05-01 Bruno Haible <bruno@clisp.org>
33953 * modules/sleep-tests: New file.
33954 * tests/test-sleep.c: New file.
33956 * modules/sleep: New file.
33957 * lib/sleep.c: New file.
33958 * m4/sleep.m4: New file.
33959 * lib/unistd_.h (sleep): New declaration.
33960 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33962 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33963 * doc/functions/sleep.texi: Document the sleep module.
33965 2007-05-01 Bruno Haible <bruno@clisp.org>
33967 * lib/sigprocmask.h: Remove file.
33968 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33969 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33970 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33971 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33972 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33973 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33974 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33975 HAVE_SIGSET_T as a shell variable.
33976 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33977 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33978 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33979 (Depends-on): Add signal. Remove verify.
33980 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33981 (Include): Mention <signal.h> instead of sigprocmask.h.
33982 * NEWS: Mention the change.
33983 * lib/fatal-signal.c: Don't include sigprocmask.h.
33985 2007-05-01 Bruno Haible <bruno@clisp.org>
33987 * modules/signal: New file.
33988 * lib/signal_.h: New file.
33989 * m4/signal_h.m4: New file.
33991 2007-05-01 Bruno Haible <bruno@clisp.org>
33993 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33994 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33995 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33996 HAVE_WCTYPE_CTMP_BUG into wctype.h.
33998 2007-05-01 Bruno Haible <bruno@clisp.org>
34000 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34002 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34003 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34004 * modules/sys_stat (Makefile.am): Substitute their values into
34007 2007-05-01 Bruno Haible <bruno@clisp.org>
34009 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34010 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34011 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34013 2007-05-01 Bruno Haible <bruno@clisp.org>
34015 * doc/header/assert.texi: Undo last change: don't mention the gnulib
34016 'assert' module here.
34018 2007-05-01 Bruno Haible <bruno@clisp.org>
34020 * doc/functions/*.texi: New files.
34021 * doc/functions/google-ranking.txt: New file.
34022 * doc/gnulib.texi (Function Substitutes): New chapter.
34023 (ctime, inet_ntoa): Remove sections.
34024 * doc/ctime.texi: Remove file.
34025 * doc/inet_ntoa.texi: Remove file.
34026 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34028 (%.info): New rule, specifying a --reference-limit.
34030 2007-05-01 Bruno Haible <bruno@clisp.org>
34032 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34034 2007-05-01 Bruno Haible <bruno@clisp.org>
34036 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34037 the portability of 'mkdir' to mingw systems.
34039 2007-05-01 Bruno Haible <bruno@clisp.org>
34041 * doc/headers/google-ranking.txt: New file.
34043 2007-04-30 Eric Blake <ebb9@byu.net>
34045 Prefer fseeko to fseek.
34046 * modules/getpass (Depends-on): Add fseeko.
34047 * lib/getpass.c (getpass): Use fseeko, not fseek.
34049 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
34051 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34052 assumes the sorting is stable, while most qsort implementations
34053 are not. Use argument addresses to ensure they never compare as
34056 * tests/test-argp-2.sh (usage-indent test): Fix output
34057 (func_compare): Restore diff options
34058 * tests/test-argp.c: Restore #include "progname.h"
34060 2007-04-29 Bruno Haible <bruno@clisp.org>
34062 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34063 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34064 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34065 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34066 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34067 (configure.ac): Define CHECK_SNPRINTF_POSIX.
34068 (TESTS, check_PROGRAMS): Add test-snprintf.
34069 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34070 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34071 (TESTS, check_PROGRAMS): Add test-vsnprintf.
34072 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34073 assertions that fail on HP-UX, OSF/1, or IRIX.
34074 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34076 2007-04-29 Bruno Haible <bruno@clisp.org>
34078 * MODULES.html.sh (posix_functions): Remove 'contents'.
34080 2007-04-29 Karl Berry <karl@gnu.org>
34082 * config/srclist.txt (gendocs_template_min): new entry.
34084 2007-04-29 Bruno Haible <bruno@clisp.org>
34086 Work around fpurge bug on BSD systems.
34087 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34088 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34089 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34090 fpurge to rpl_fpurge if the system already has this function.
34091 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34092 the case where the system already has this function. Correct invariants
34094 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34097 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
34099 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
34100 proposed by Sven Verdoolaege.
34102 * tests/test-argp.c: Fix option ordering. Test deeply clustered
34104 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34105 (usage and help tests): Update
34107 2007-04-29 Bruno Haible <bruno@clisp.org>
34109 * tests/test-fflush.c (main): Use a file of size 17, not 10.
34110 Print more information in case of failure. Disable a test on BeOS.
34112 2007-04-29 Bruno Haible <bruno@clisp.org>
34114 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34115 This helps debugging on systems on which no gdb is available.
34117 2007-04-29 Bruno Haible <bruno@clisp.org>
34119 * lib/freading.h: Improve comments.
34120 * lib/fwriting.h: Likewise.
34121 * tests/test-freading.c (main): Don't check freading immediately after
34122 repositioning. Needed for glibc.
34124 2007-04-29 Bruno Haible <bruno@clisp.org>
34126 * lib/freading.c (freading): Trivial simplification.
34128 2007-04-28 Bruno Haible <bruno@clisp.org>
34130 * tests/test-fwriting.c (main): Also test the interaction between
34131 fflush and fwriting.
34132 * modules/fwriting-tests (Depends-on): Add fflush.
34134 * tests/test-freading.c (main): Also test the interaction between
34135 fflush and freading.
34136 * modules/freading-tests (Depends-on): Add fflush.
34138 2007-04-28 Bruno Haible <bruno@clisp.org>
34140 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34142 Suggested by Eric Blake.
34144 2007-04-28 Jim Meyering <jim@meyering.net>
34146 Avoid false-negative in gl_STDINT_H's C99 conformance test.
34147 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34148 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34150 2007-04-27 Eric Blake <ebb9@byu.net>
34152 * doc/headers/assert.texi (assert.h): Document assert module use.
34154 2007-04-27 Bruno Haible <bruno@clisp.org>
34156 * doc/headers/*.texi: New files.
34157 * doc/gnulib.texi (Header File Substitutes): New chapter.
34158 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34160 (standards.info ,standards.html, standards.dvi): Update dependencies.
34161 (mostlyclean, clean): New targets.
34163 2007-04-27 Bruno Haible <bruno@clisp.org>
34165 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34166 * modules/sysexits (Files, Makefile.am): Update.
34168 * lib/sys_socket_.h: Renamed from lib/socket_.h.
34169 * modules/sys_socket (Files, Makefile.am): Update.
34171 * lib/sys_stat_.h: Renamed from lib/stat_.h.
34172 * modules/sys_stat (Files, Makefile.am): Update.
34174 2007-04-27 Eric Blake <ebb9@byu.net>
34176 * lib/freading.h: Improve comments.
34177 * lib/fwriting.h: Likewise.
34178 * lib/fflush.c: Likewise.
34180 Fix closein for mingw.
34181 * modules/closein-tests: Add tests for closein.
34182 * tests/test-closein.c: New file.
34183 * tests/test-closein.sh: Likewise.
34184 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34185 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34187 2007-04-27 Bruno Haible <bruno@clisp.org>
34189 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34191 * lib/math_.h [__DECC]: Likewise.
34192 * lib/stdio_.h [__DECC]: Likewise.
34193 * lib/stdlib_.h [__DECC]: Likewise.
34194 * lib/string_.h [__DECC]: Likewise.
34195 * lib/time_.h [__DECC]: Likewise.
34196 * lib/wchar_.h [__DECC]: Likewise.
34197 * lib/wctype_.h [__DECC]: Likewise.
34199 2007-04-27 Bruno Haible <bruno@clisp.org>
34201 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34203 2007-04-27 Bruno Haible <bruno@clisp.org>
34205 * lib/fflush.c: Add comments.
34206 * modules/fpurge-tests (Depends-on): Add fflush.
34207 * modules/freadable-tests (Depends-on): Likewise.
34208 * modules/fwritable-tests (Depends-on): Likewise.
34210 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
34212 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34213 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
34214 Report by Bruno Haible <bruno@clisp.org>.
34216 2007-04-26 Eric Blake <ebb9@byu.net>
34218 Fix fflush on mingw.
34219 * modules/fflush (Depends-on): Add freading.
34220 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34223 2007-04-26 Eric Blake <ebb9@byu.net>
34224 and Bruno Haible <bruno@clisp.org>
34226 Implement freading and fwriting.
34227 * lib/freading.c: New file.
34228 * lib/freading.h: Likewise.
34229 * m4/freading.m4: Likewise.
34230 * modules/freading: Likewise.
34231 * modules/freading-tests: Likewise.
34232 * tests/test-freading.c: Likewise.
34233 * lib/fwriting.c: New file.
34234 * lib/fwriting.h: Likewise.
34235 * m4/fwriting.m4: Likewise.
34236 * modules/fwriting: Likewise.
34237 * modules/fwriting-tests: Likewise.
34238 * tests/test-fwriting.c: Likewise.
34239 * MODULES.html.sh (File stream based Input/Output): Mention them.
34241 2007-04-26 Bruno Haible <bruno@clisp.org>
34243 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34244 'long' when we assume it.
34245 Suggested by Eric Blake.
34247 2007-04-26 Bruno Haible <bruno@clisp.org>
34249 Ensure fseeko, ftello are declared on glibc systems.
34250 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34251 * modules/fseeko (configure.ac-early): Likewise.
34252 * modules/ftello (configure.ac-early): Likewise.
34253 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34254 AC_FUNC_FSEEKO for this.
34255 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34256 (gl_CHECK_FSEEKO): Remove macro.
34258 2007-04-26 Bruno Haible <bruno@clisp.org>
34260 * tests/test-fflush.c (main): Also check the ftell result after
34261 fflush and fseek/fseeko.
34262 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34263 file descriptor position cache in the stream.
34264 * lib/fseeko.c (rpl_fseeko): Likewise.
34266 2007-04-26 Bruno Haible <bruno@clisp.org>
34268 * modules/fflush-tests (Depends-on): Add fseeko.
34270 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
34271 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34273 * lib/argz_.h: ensure error_t definition is obtained in same
34274 mechanism system argz.h would have.
34275 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34276 argz facilities are known bad. Err on the side of caution if
34279 2007-04-25 Eric Blake <ebb9@byu.net>
34281 * lib/fpurge.c (includes): Use stdlib.h for free.
34282 * tests/test-fflush.c (main): Also test fflush-fseeko.
34284 2007-04-25 Bruno Haible <bruno@clisp.org>
34286 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34287 * lib/fseeko.c: New file.
34288 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34289 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34290 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34292 (gl_FUNC_FSEEKO): Invoke it.
34293 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34294 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34295 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34297 2007-04-25 Bruno Haible <bruno@clisp.org>
34299 * modules/fflush (Depends-on): Add ftello.
34301 2007-04-25 Bruno Haible <bruno@clisp.org>
34303 * modules/ftello-tests: New file.
34304 * tests/test-ftello.c: New file.
34306 * modules/ftello: New file.
34307 * m4/ftello.m4: New file.
34308 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34310 * lib/stdio_.h (ftello): New declaration.
34311 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34314 2007-04-25 Bruno Haible <bruno@clisp.org>
34316 * modules/fseeko-tests: New file.
34317 * tests/test-fseeko.c: New file.
34319 * modules/fseeko: New file.
34320 * m4/fseeko.m4: New file.
34321 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34323 * lib/stdio_.h (fseeko): New declaration.
34324 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34327 2007-04-25 Bruno Haible <bruno@clisp.org>
34329 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34331 2007-04-25 Bruno Haible <bruno@clisp.org>
34333 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34334 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34335 * tests/test-unistd.c: Likewise.
34336 * tests/test-fcntl.c: Likewise.
34338 2007-04-23 Eric Blake <ebb9@byu.net>
34340 * lib/fflush.c: Fix missing include.
34341 Reported by Bruno Haible.
34343 2007-04-23 Bruno Haible <bruno@clisp.org>
34345 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34346 Reported by Eric Blake.
34348 2007-04-23 Bruno Haible <bruno@clisp.org>
34350 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34352 2007-04-23 Bruno Haible <bruno@clisp.org>
34354 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34356 2007-04-23 Bruno Haible <bruno@clisp.org>
34358 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34359 Needed on HP-UX 11.
34361 2007-04-16 Eric Blake <ebb9@byu.net>
34363 Make fflush rely on fpurge.
34364 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34365 open coding all variants.
34366 * modules/fflush (Depends-on): Add fpurge and unistd.
34367 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34368 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34370 Fix --with-tests compilation on cygwin.
34371 * modules/argmatch-tests (Makefile.am): List gnulib library first
34373 * modules/argp-tests (Makefile.am): Likewise.
34374 * modules/array-list-tests (Makefile.am): Likewise.
34375 * modules/array-oset-tests (Makefile.am): Likewise.
34376 * modules/avltree-list-tests (Makefile.am): Likewise.
34377 * modules/avltree-oset-tests (Makefile.am): Likewise.
34378 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34379 * modules/carray-list-tests (Makefile.am): Likewise.
34380 * modules/dirname-tests (Makefile.am): Likewise.
34381 * modules/frexp-tests (Makefile.am): Likewise.
34382 * modules/isnanl-tests (Makefile.am): Likewise.
34383 * modules/linked-list-tests (Makefile.am): Likewise.
34384 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34385 * modules/lock-tests (Makefile.am): Likewise.
34386 * modules/rbtree-list-tests (Makefile.am): Likewise.
34387 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34388 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34389 * modules/tls-tests (Makefile.am): Likewise.
34390 * modules/tsearch-tests (Makefile.am): Likewise.
34391 * modules/xvasprintf-tests (Makefile.am): Likewise.
34393 Fix fpurge for cygwin.
34394 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34396 * modules/fpurge-tests (Depends-on): Clean up trash.
34398 2007-04-16 Simon Josefsson <simon@josefsson.org>
34400 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34402 * m4/autobuild.m4: Re-indent.
34404 2007-04-13 Bruno Haible <bruno@clisp.org>
34406 * modules/fpurge-tests: New file.
34407 * tests/test-fpurge.c: New file.
34409 * modules/fpurge: New file.
34410 * lib/fpurge.h: New file.
34411 * lib/fpurge.c: New file.
34412 * m4/fpurge.m4: New file.
34414 2007-04-13 Bruno Haible <bruno@clisp.org>
34416 * modules/fbufmode-tests: New file.
34417 * tests/test-fbufmode.c: New file.
34419 * modules/fbufmode: New file.
34420 * lib/fbufmode.h: New file.
34421 * lib/fbufmode.c: New file.
34422 * m4/fbufmode.m4: New file.
34424 2007-04-13 Bruno Haible <bruno@clisp.org>
34426 * modules/fwritable-tests: New file.
34427 * tests/test-fwritable.c: New file.
34429 * modules/fwritable: New file.
34430 * lib/fwritable.h: New file.
34431 * lib/fwritable.c: New file.
34432 * m4/fwritable.m4: New file.
34434 2007-04-13 Bruno Haible <bruno@clisp.org>
34436 * modules/freadable-tests: New file.
34437 * tests/test-freadable.c: New file.
34439 * modules/freadable: New file.
34440 * lib/freadable.h: New file.
34441 * lib/freadable.c: New file.
34442 * m4/freadable.m4: New file.
34444 2007-04-13 Bruno Haible <bruno@clisp.org>
34446 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34449 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34451 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34452 gzip bootstrap.conf to avoid dragging in i18n machinery.
34453 (gnulib_tool_option): Use it.
34455 2007-04-13 Bruno Haible <bruno@clisp.org>
34457 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34459 * tests/test-vasprintf-posix.c (test_function): Likewise.
34460 * tests/test-snprintf-posix.h (test_function): Likewise.
34461 * tests/test-sprintf-posix.h (test_function): Likewise.
34462 * tests/test-fprintf-posix.h (test_function): Likewise.
34463 * tests/test-printf-posix.h (test_function): Likewise.
34464 * tests/test-fprintf-posix.out: Likewise.
34466 2007-04-13 Bruno Haible <bruno@clisp.org>
34468 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34469 * modules/tls-tests (configure.ac): Likewise.
34470 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34472 2007-04-13 Bruno Haible <bruno@clisp.org>
34474 * lib/tls.c (glthread_tls_get): Fix return type.
34475 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34477 2007-04-12 Eric Blake <ebb9@byu.net>
34479 * modules/gettime (Depends-on): Remove gettime.
34480 Reported by Dmitry V. Levin.
34482 2007-04-12 Bruno Haible <bruno@clisp.org>
34484 * modules/fflush (Include): Mention <stdio.h>.
34485 * modules/strtoimax (Include): Mention <inttypes.h>.
34486 * modules/strtoumax (Include): Likewise.
34488 2007-04-12 Eric Blake <ebb9@byu.net>
34490 * .cvsignore: New file.
34491 * .gitignore: Likewise.
34493 2007-04-12 Bruno Haible <bruno@clisp.org>
34495 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34496 not before, since $(LDADD) often contains libgnu.a.
34497 * modules/striconv-tests (test_striconv_LDADD): Likewise.
34498 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34499 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34502 2007-04-12 Eric Blake <ebb9@byu.net>
34504 Work around glibc's failure to flush stdin on fclose.
34505 * lib/closein.c (close_stdin): Flush stdin before closing.
34507 Work around glibc's failure to reset seekable stdin on exit.
34508 * modules/closein: New module.
34509 * lib/closein.c: New file.
34510 * lib/closein.h: Likewise.
34511 * m4/closein.m4: Likewise.
34512 * MODULES.html.sh (File stream based Input/Output): Document it.
34514 2007-04-12 Simon Josefsson <simon@josefsson.org>
34516 * gnulib-tool: Rename generated 'autobuild' script to
34517 'do-autobuild' in --create-megatestdir output.
34519 * doc/gnulib.texi (Build robot for gnulib): Fix.
34521 2007-04-12 Simon Josefsson <simon@josefsson.org>
34523 * modules/sysexits (Depends-on): Add absolute-header.
34525 2007-04-12 Eric Blake <ebb9@byu.net>
34527 No need to preserve errno on success.
34528 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34529 Reported by Bruno Haible.
34531 2007-04-12 Simon Josefsson <simon@josefsson.org>
34533 * MODULES.html.sh (Support for maintaining and releasing
34534 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34536 2007-04-12 Simon Josefsson <simon@josefsson.org>
34538 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34540 2007-04-12 Simon Josefsson <simon@josefsson.org>
34542 * modules/autobuild: New module.
34544 * m4/autobuild.m4: New file.
34546 2007-04-11 Bruno Haible <bruno@clisp.org>
34548 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34549 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34550 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34551 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34552 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34553 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34554 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34555 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34556 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34557 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34558 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34559 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34560 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34561 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34562 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34563 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34564 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34565 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34566 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34567 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34568 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34569 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34570 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34571 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34572 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34573 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34574 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34575 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34576 Reported by Eric Blake.
34578 2007-04-11 Bruno Haible <bruno@clisp.org>
34580 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34582 2007-04-10 Bruno Haible <bruno@clisp.org>
34584 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34585 for NaN and Infinity. Needed on FreeBSD 6.1.
34586 * tests/test-vasnprintf-posix.c (test_function): Undo last change
34587 regarding results for "%010a" of Infinity and NaN.
34588 * tests/test-vasprintf-posix.c (test_function): Likewise.
34589 * tests/test-snprintf-posix.h (test_function): Likewise.
34590 * tests/test-sprintf-posix.h (test_function): Likewise.
34591 * tests/test-fprintf-posix.h (test_function): Likewise.
34592 * tests/test-printf-posix.h (test_function): Likewise.
34593 * tests/test-fprintf-posix.out: Likewise.
34595 2007-04-10 Bruno Haible <bruno@clisp.org>
34597 * modules/locale-tests: New file.
34598 * tests/test-locale.c: New file.
34600 * modules/locale: New file.
34601 * lib/locale_.h: New file.
34602 * m4/locale_h.m4: New file.
34604 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
34605 Bruno Haible <bruno@clisp.org>
34607 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34608 be determined, test for availability of the copysignf, copysign,
34609 copysignl functions.
34610 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34611 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34612 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34614 2007-04-09 Eric Blake <ebb9@byu.net>
34616 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34617 * modules/stdio (Makefile.am): Support fflush.
34618 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34619 * modules/fflush: New file.
34620 * lib/fflush.c: Likewise.
34621 * m4/fflush.m4: Likewise.
34622 * modules/fflush-tests: New test.
34623 * tests/test-fflush.c: Likewise.
34624 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34626 2007-04-06 Bruno Haible <bruno@clisp.org>
34628 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34629 (VASNPRINTF): Use signbit for faster determination whether to print a
34631 * modules/vasnprintf (Files): Remove lib/float+.h.
34632 * modules/fprintf-posix (Depends-on): Add signbit.
34633 * modules/snprintf-posix (Depends-on): Likewise.
34634 * modules/sprintf-posix (Depends-on): Likewise.
34635 * modules/vasnprintf-posix (Depends-on): Likewise.
34636 * modules/vasprintf-posix (Depends-on): Likewise.
34637 * modules/vfprintf-posix (Depends-on): Likewise.
34638 * modules/vsnprintf-posix (Depends-on): Likewise.
34639 * modules/vsprintf-posix (Depends-on): Likewise.
34641 2007-04-06 Bruno Haible <bruno@clisp.org>
34643 * tests/test-frexp.c (main): Test also the sign bit of zero results.
34644 * tests/test-frexpl.c (main): Likewise.
34645 * tests/test-ldexpl.c (main): Likewise.
34646 * modules/frexp-tests (Depends-on): Add signbit.
34647 * modules/frexpl-tests (Depdends-on): Likewise.
34648 * modules/ldexpl-tests (Depdends-on): Likewise.
34650 2007-04-06 Bruno Haible <bruno@clisp.org>
34652 * modules/signbit-tests: New file.
34653 * tests/test-signbit.c: New file.
34655 * modules/signbit: New file.
34656 * lib/signbitf.c: New file.
34657 * lib/signbitd.c: New file.
34658 * lib/signbitl.c: New file.
34659 * m4/signbit.m4: New file.
34660 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34661 (signbit): New macro.
34662 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34664 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34665 REPLACE_FREXPL into math.h.
34667 2007-04-06 Bruno Haible <bruno@clisp.org>
34669 * modules/isnanf-nolibm-tests: New file.
34670 * tests/test-isnanf.c: New file.
34672 * modules/isnanf-nolibm: New file.
34673 * lib/isnanf.h: New file.
34674 * lib/isnanf.c: New file.
34675 * lib/isnan.c: Consider the USE_FLOAT macro.
34676 * m4/isnanf.m4: New file.
34678 2007-04-06 Bruno Haible <bruno@clisp.org>
34680 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34681 (Link): New section.
34683 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34685 2007-04-06 Bruno Haible <bruno@clisp.org>
34687 Assume the 'long double' type.
34688 * m4/longdouble.m4: Remove file.
34689 * config/srclist.txt: Don't mention longdouble.m4.
34690 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34691 * lib/float+.h: Likewise.
34692 * lib/frexp.c: Likewise.
34693 * lib/printf-args.h: Likewise.
34694 * lib/printf-args.c: Likewise.
34695 * lib/printf-frexp.c: Likewise.
34696 * lib/printf-parse.c: Likewise.
34697 * lib/vasnprintf.c: Likewise.
34698 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34699 * m4/intl.m4: Likewise.
34700 * m4/isnanl.m4: Likewise.
34701 * m4/printf.m4: Likewise.
34702 * m4/printf-frexpl.m4: Likewise.
34703 * m4/vasnprintf.m4: Likewise.
34704 * modules/allocsa (Files): Remove m4/longdouble.m4.
34705 * modules/gettext (Files): Likewise.
34706 * modules/relocatable-prog-wrapper (Files): Likewise.
34707 * modules/vasnprintf (Files): Likewise.
34708 * modules/isnanl (Files): Likewise.
34709 (Include): Simplify.
34710 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34711 (Include): Simplify.
34712 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34713 (Include): Simplify.
34714 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34715 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34716 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34717 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34718 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34719 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34720 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34721 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34722 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34723 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34724 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34725 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34726 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34727 * tests/test-isnanl.c: Likewise.
34728 * tests/test-snprintf-posix.h: Likewise.
34729 * tests/test-sprintf-posix.h: Likewise.
34730 * tests/test-vasnprintf-posix.c: Likewise.
34731 * tests/test-vasnprintf-posix2.c: Likewise.
34732 * tests/test-vasprintf-posix.c: Likewise.
34734 2007-04-06 Bruno Haible <bruno@clisp.org>
34736 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34737 * lib/math_.h [__DECC]: Include the overridden include file through
34738 #include_next, outside the double-inclusion guard.
34739 * lib/stdio_.h [__DECC]: Likewise.
34740 * lib/stdlib_.h [__DECC]: Likewise.
34741 * lib/string_.h [__DECC]: Likewise.
34742 * lib/time_.h [__DECC]: Likewise.
34743 * lib/wchar_.h [__DECC]: Likewise.
34744 * lib/wctype_.h [__DECC]: Likewise.
34745 * lib/inttypes_.h [__DECC]: Likewise.
34746 Reported by Albert Chin <china@thewrittenword.com> in
34747 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34749 2007-04-04 Eric Blake <ebb9@byu.net>
34751 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34754 2007-04-04 Bruno Haible <bruno@clisp.org>
34756 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34757 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34759 2007-04-04 Bruno Haible <bruno@clisp.org>
34761 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34762 results for "%010a" of Infinity and NaN.
34763 * tests/test-vasprintf-posix.c (test_function): Likewise.
34764 * tests/test-snprintf-posix.h (test_function): Likewise.
34765 * tests/test-sprintf-posix.h (test_function): Likewise.
34766 * tests/test-fprintf-posix.h (test_function): Remove these tests.
34767 * tests/test-printf-posix.h (test_function): Likewise.
34768 * tests/test-fprintf-posix.out: Update.
34769 Needed for FreeBSD 6.1.
34771 2007-04-04 Bruno Haible <bruno@clisp.org>
34773 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34774 directly used by the gnulib modules nor by gnulib-tool.
34776 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
34778 * DEPENDENCIES: Give overall description of version dependency
34779 desirability. Use more-typical names for apps.
34780 Add shell, coreutils, diffutils, grep, tar, gzip.
34782 2007-04-04 Simon Josefsson <simon@josefsson.org>
34784 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
34786 2007-04-04 Karl Berry <karl@gnu.org>
34788 * MODULES.html.sh (func_module): missing '.
34790 2007-04-03 Bruno Haible <bruno@clisp.org>
34792 * modules/argmatch-tests (Makefile.am): New variable
34793 test_argmatch_LDADD.
34794 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34795 * modules/array-list-tests (Makefile.am): New variable
34796 test_array_list_LDADD.
34797 * modules/array-oset-tests (Makefile.am): New variable
34798 test_array_oset_LDADD.
34799 * modules/avltree-list-tests (Makefile.am): New variable
34800 test_avltree_list_LDADD.
34801 * modules/avltree-oset-tests (Makefile.am): New variable
34802 test_avltree_oset_LDADD.
34803 * modules/avltreehash-list-tests (Makefile.am): New variable
34804 test_avltreehash_list_LDADD.
34805 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34806 test_canonicalize_lgpl_LDADD.
34807 * modules/carray-list-tests (Makefile.am): New variable
34808 test_carray_list_LDADD.
34809 * modules/dirname-tests (Makefile.am): New variable
34810 test_dirname_LDADD.
34811 * modules/linked-list-tests (Makefile.am): New variable
34812 test_linked_list_LDADD.
34813 * modules/linkedhash-list-tests (Makefile.am): New variable
34814 test_linkedhash_list_LDADD.
34815 * modules/rbtree-list-tests (Makefile.am): New variable
34816 test_rbtree_list_LDADD.
34817 * modules/rbtree-oset-tests (Makefile.am): New variable
34818 test_rbtree_oset_LDADD.
34819 * modules/rbtreehash-list-tests (Makefile.am): New variable
34820 test_rbtreehash_list_LDADD.
34821 * modules/xvasprintf-tests (Makefile.am): New variable
34822 test_xvasprintf_LDADD.
34823 Reported by Eric Blake.
34825 2007-04-03 Eric Blake <ebb9@byu.net>
34827 * DEPENDENCIES: Weaken m4 requirements.
34829 2007-04-03 Bruno Haible <bruno@clisp.org>
34831 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34832 * modules/isnanl-tests (configure.ac): Likewise.
34834 2007-04-03 Ben Pfaff <blp@gnu.org>
34836 * modules/iconv_open: Add $(srcdir)/ to source directory
34837 references in Makefile fragments that call gperf, to fix VPATH
34840 2007-04-03 Bruno Haible <bruno@clisp.org>
34842 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34843 * lib/ldexpl.c: Undo last change.
34845 2007-04-03 Bruno Haible <bruno@clisp.org>
34847 * modules/printf-frexpl (Depends-on): Undo last change.
34848 (Files): Add m4/ldexpl.m4.
34850 2007-04-03 Bruno Haible <bruno@clisp.org>
34852 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34853 * modules/isnanl (Link): New section.
34855 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34856 * modules/frexp (Link): New section.
34858 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34859 * modules/frexpl (Link): New section.
34861 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34862 * modules/ldexpl (Link): New section.
34864 2007-04-03 Bruno Haible <bruno@clisp.org>
34866 * modules/TEMPLATE-EXTENDED: New file.
34867 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34869 2007-04-03 Bruno Haible <bruno@clisp.org>
34871 * DEPENDENCIES: New file.
34872 Suggested by Simon Josefsson.
34874 2007-04-03 Bruno Haible <bruno@clisp.org>
34876 * doc/gnulib.texi: Escape @.
34878 2007-04-03 James Youngman <jay@gnu.org>
34879 and Paul Eggert <eggert@cs.ucla.edu>
34881 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34882 birthtime on all systems that have birthtime, not just those which
34883 use st_birthtimensec rather than st_birthtim. Putting zero in
34884 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34885 that the birth time is not available for files on an NFS mount.
34887 2007-04-03 Simon Josefsson <simon@josefsson.org>
34889 * modules/memxor: Move back from crypto/, suggested by Bruno.
34890 * modules/crypto/hmac-sha1: Fix memxor dependency.
34892 * modules/crypto/gc: Moved from ../.
34894 2007-04-02 Eric Blake <ebb9@byu.net>
34896 * lib/ldexpl.c (includes): Avoid libm.
34898 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34900 2007-04-02 Bruno Haible <bruno@clisp.org>
34902 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34905 2007-04-02 Bruno Haible <bruno@clisp.org>
34907 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34908 x86 or x86_64 platforms running MacOS X.
34909 Reported by Ryan Schmidt <@ryandesign.com>.
34911 2007-04-02 Bruno Haible <bruno@clisp.org>
34913 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34916 2007-04-01 Simon Josefsson <simon@josefsson.org>
34918 * modules/crypto/arcfour: Moved from ../.
34919 * modules/crypto/arcfour-tests: Moved from ../.
34920 * modules/crypto/arctwo: Moved from ../.
34921 * modules/crypto/arctwo-tests: Moved from ../.
34922 * modules/crypto/des: Moved from ../.
34923 * modules/crypto/des-tests: Moved from ../.
34924 * modules/crypto/gc-arcfour: Moved from ../.
34925 * modules/crypto/gc-arcfour-tests: Moved from ../.
34926 * modules/crypto/gc-arctwo: Moved from ../.
34927 * modules/crypto/gc-arctwo-tests: Moved from ../.
34928 * modules/crypto/gc-des: Moved from ../.
34929 * modules/crypto/gc-des-tests: Moved from ../.
34930 * modules/crypto/gc-hmac-md5: Moved from ../.
34931 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34932 * modules/crypto/gc-hmac-sha1: Moved from ../.
34933 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34934 * modules/crypto/gc-md2: Moved from ../.
34935 * modules/crypto/gc-md2-tests: Moved from ../.
34936 * modules/crypto/gc-md4: Moved from ../.
34937 * modules/crypto/gc-md4-tests: Moved from ../.
34938 * modules/crypto/gc-md5: Moved from ../.
34939 * modules/crypto/gc-md5-tests: Moved from ../.
34940 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34941 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34942 * modules/crypto/gc-random: Moved from ../.
34943 * modules/crypto/gc-rijndael: Moved from ../.
34944 * modules/crypto/gc-rijndael-tests: Moved from ../.
34945 * modules/crypto/gc-sha1: Moved from ../.
34946 * modules/crypto/gc-sha1-tests: Moved from ../.
34947 * modules/crypto/gc-tests: Moved from ../.
34948 * modules/crypto/hmac-md5: Moved from ../.
34949 * modules/crypto/hmac-md5-tests: Moved from ../.
34950 * modules/crypto/hmac-sha1: Moved from ../.
34951 * modules/crypto/hmac-sha1-tests: Moved from ../.
34952 * modules/crypto/md2: Moved from ../.
34953 * modules/crypto/md2-tests: Moved from ../.
34954 * modules/crypto/md4: Moved from ../.
34955 * modules/crypto/md4-tests: Moved from ../.
34956 * modules/crypto/md5: Moved from ../.
34957 * modules/crypto/md5-tests: Moved from ../.
34958 * modules/crypto/memxor: Moved from ../.
34959 * modules/crypto/rijndael: Moved from ../.
34960 * modules/crypto/rijndael-tests: Moved from ../.
34961 * modules/crypto/sha1: Moved from ../.
34963 2007-03-30 James Youngman <jay@gnu.org>
34965 * tests/test-stat-time.c (prepare_test): use chmod() rather than
34966 rename() to change the ctime of a file (because ctime is unaffected
34967 by rename on jfs2 on AIX 5.1).
34968 (main): Start by doing cleanup, in case a previous run failed leaving
34971 2007-03-31 Bruno Haible <bruno@clisp.org>
34973 Support old proprietary implementations of iconv.
34974 * modules/iconv_open: New file.
34975 * lib/iconv_.h: New file.
34976 * m4/iconv_h.m4: New file.
34977 * lib/iconv_open.c: New file.
34978 * lib/iconv_open-aix.gperf: New file.
34979 * lib/iconv_open-hpux.gperf: New file.
34980 * lib/iconv_open-irix.gperf: New file.
34981 * lib/iconv_open-osf.gperf: New file.
34982 * m4/iconv_open.m4: New file.
34983 * modules/linebreak (Depends-on): Add iconv_open.
34984 * modules/striconv (Depends-on): Likewise.
34985 * modules/striconveh (Depends-on): Likewise.
34986 * modules/unicodeio (Depends-on): Likewise.
34987 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34989 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34990 conversion if cd is (iconv_t)(-1).
34991 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34994 2007-03-31 Bruno Haible <bruno@clisp.org>
34996 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34997 work on Solaris either. Protect also second use of "autodetect_jp".
34999 2007-03-31 Bruno Haible <bruno@clisp.org>
35001 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35002 the function is not present.
35004 2007-03-31 Bruno Haible <bruno@clisp.org>
35006 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35007 the function is not present.
35009 2007-03-31 Bruno Haible <bruno@clisp.org>
35011 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35012 a bug in HP-UX iconv_open().
35014 2007-03-31 Bruno Haible <bruno@clisp.org>
35016 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35017 (Mathematics <math.h>): New section, add fpieee.
35018 (Input/output <stdio.h>): Add fseterr.
35019 (Mathematics <math.h>): New section, add printf-frexp.
35020 (Container data structures): Add sublist.
35021 (Core language properties): Add fpucw, inline.
35022 (Functions for greatest-width integer types <inttypes.h>): Add
35023 imaxabs, imaxdiv, inttypes.
35024 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35025 isnanl-nolibm, ldexp.
35026 (Mathematics <math.h>): New section, add printf-frexpl.
35027 (Support for systems lacking POSIX:2001): Add fprintf-posix,
35028 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35029 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35030 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35031 (Unicode string functions): Add unistr/u*-mbtoucr.
35032 (Java): Add javacomp-script, javaexec-script.
35033 (C#): Add csharpcomp-script, csharpexec-script.
35034 (Support for building libraries and executables): Add havelib,
35036 (Support for maintaining and releasing projects): Renamed from
35037 'Support for maintaining and release projects'. Add announce-gen.
35039 2007-03-31 Bruno Haible <bruno@clisp.org>
35041 * README: Talk primarily about git.
35042 (git and CVS): Renamed from CVS.
35043 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35044 gnulib is available through git.
35045 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35047 2007-03-30 Bruno Haible <bruno@clisp.org>
35049 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35050 * lib/poll_.h: Likewise.
35051 * lib/stat_.h: Likewise.
35052 * lib/sys_time_.h: Likewise.
35053 * lib/sysexit_.h: Likewise.
35054 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35055 * lib/stdbool_.h: Likewise.
35056 * lib/byteswap_.h: Add double-inclusion guard.
35058 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
35060 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35062 2007-03-30 Karl Berry <karl@gnu.org>
35064 * config/srclist-update: double space after USA in the license
35065 substitution, since that's how it's usually (?) written.
35067 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
35069 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35070 reported by Bruno Haible.
35072 2007-03-29 Bruno Haible <bruno@clisp.org>
35074 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35075 a bug in AIX iconv().
35077 2007-03-29 Bruno Haible <bruno@clisp.org>
35079 * modules/ldexpl-tests: New file.
35080 * tests/test-ldexpl.c: New file.
35082 2007-03-29 Bruno Haible <bruno@clisp.org>
35084 * lib/ldexpl.c: Include fpucw.h.
35085 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35087 * modules/ldexpl (Depends-on): Add fpucw.
35089 2007-03-29 Bruno Haible <bruno@clisp.org>
35091 * modules/ldexpl: New file.
35092 * m4/ldexpl.m4: New file.
35093 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35095 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35097 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35099 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35100 gl_FUNC_LDEXPL_WORKS.
35101 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35102 * modules/mathl (Files): Remove lib/ldexpl.c.
35103 (Depends-on): Add ldexpl.
35105 2007-03-29 Bruno Haible <bruno@clisp.org>
35107 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35109 2007-03-29 Bruno Haible <bruno@clisp.org>
35111 * tests/test-striconveh.c (main): Don't assume that a direct conversion
35112 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35113 and possibly also HP-UX.
35114 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35115 work on AIX, IRIX, HP-UX, OSF/1.
35116 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35117 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35118 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35119 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35120 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35121 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35123 2007-03-29 Bruno Haible <bruno@clisp.org>
35125 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35127 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35129 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35130 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35132 2007-03-29 Eric Blake <ebb9@byu.net>
35134 * lib/acl-internal.h: Remove redundant include.
35135 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35136 Cygwin when a file is locked.
35138 2007-03-29 Bruno Haible <bruno@clisp.org>
35140 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35142 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35144 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35146 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35147 try to remove a parent directory if the child couldn't be removed
35148 (except for the first rmdir, which could fail because the child
35149 doesn't exist). Problem reported by Jeff Blaine in
35150 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35152 2007-03-28 Bruno Haible <bruno@clisp.org>
35154 * lib/striconveh.c (utf8conv_carefully): New function.
35155 (mem_cd_iconveh_internal): Invoke it.
35157 2007-03-28 Bruno Haible <bruno@clisp.org>
35159 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35160 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35162 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35163 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35166 2007-03-28 Bruno Haible <bruno@clisp.org>
35168 * modules/unistr/u8-mbtoucr: New file.
35169 * lib/unistr/u8-mbtoucr.c: New file.
35170 * modules/unistr/u16-mbtoucr: New file.
35171 * lib/unistr/u16-mbtoucr.c: New file.
35172 * modules/unistr/u16-mbtoucr: New file.
35173 * lib/unistr/u16-mbtoucr.c: New file.
35174 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35176 2007-03-27 Simon Josefsson <simon@josefsson.org>
35177 Bruno Haible <bruno@clisp.org>
35179 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35180 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
35181 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35183 * m4/stdio_h.m4: Add stubs for vasprintf too.
35185 * modules/stdio: Support vasprintf in sed command.
35187 * modules/vasprintf: Depend on stdio for prototypes. Remove
35188 vasprintf.h. Add stdio module indicator.
35190 * lib/stdio_.h: Declare asprintf and vasprintf, based on
35193 * lib/vasprintf.h: File removed.
35195 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35196 * lib/vasprintf.c: Ditto.
35197 * lib/xvasprintf.c: Ditto.
35198 * tests/test-vasprintf-posix.c: Ditto.
35199 * tests/test-vasprintf.c: Ditto.
35201 2007-03-27 Bruno Haible <bruno@clisp.org>
35203 Make vasnprintf multithread-safe.
35204 * lib/vasnprintf.c (decimal_point_char): New function.
35205 (VASNPRINTF): Use it.
35206 Suggested by Simon Josefsson.
35208 2007-03-27 Eric Blake <ebb9@byu.net>
35210 Support sub-second birthtime on cygwin.
35211 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35212 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35213 (get_stat_birthtime): Also work with st_birthtim.
35215 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
35217 * lib/stat-time.h (USE_BIRTHTIME): Remove.
35218 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35219 (get_stat_birthtime_ns): Do not try to use "spare" fields.
35220 (get_stat_birthtime_ns): Simplify compile-time tests.
35221 (get_stat_birthtime): Change the API to look like
35222 get_stat_mtime etc., except return a negative tv_nsec on error.
35223 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35224 Don't check for "spare" fields.
35225 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35226 or for struct stat.st_birthtime, as these tests aren't used.
35227 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35229 2007-03-27 Bruno Haible <bruno@clisp.org>
35231 * lib/stat-time.h: Include <sys/stat.h>.
35233 2007-03-27 James Youngman <jay@gnu.org>
35235 * lib/stat-time.h (get_stat_birthtime): New function for
35236 retrieving st_birthtime as provided by UFS2 (hence *BSD).
35237 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35239 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35240 * modules/stat-time-test: New file.
35241 * tests/test-stat-time.c: New test, devised by Bruno Haible.
35243 2007-03-26 Bruno Haible <bruno@clisp.org>
35245 Better support of signalling NaNs.
35246 * lib/atanl.c: Include isnanl.h.
35247 (atanl): Perform test for NaN at the beginning of the function and
35248 through a call to isnanl.
35249 * lib/cosl.c: Include isnanl.h.
35250 (cosl): Perform test for NaN at the beginning of the function and
35251 through a call to isnanl.
35252 * lib/ldexpl.c: Include isnanl.h.
35253 (ldexpl): Perform test for NaN through a call to isnanl.
35254 * lib/logl.c: Include isnanl.h.
35255 (logl): Perform test for NaN at the beginning of the function and
35256 through a call to isnanl.
35257 * lib/sinl.c: Include isnanl.h.
35258 (sinl): Perform test for NaN at the beginning of the function and
35259 through a call to isnanl.
35260 * lib/sqrtl.c: Include isnanl.h.
35261 (sqrtl): Perform test for NaN at the beginning of the function and
35262 through a call to isnanl.
35263 * lib/tanl.c: Include isnanl.h.
35264 (tanl): Perform test for NaN at the beginning of the function and
35265 through a call to isnanl.
35266 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35267 * modules/mathl (Depends-on): Add isnanl.
35269 2007-03-26 Eric Blake <ebb9@byu.net>
35271 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35272 regression in logic sense of previous patch.
35274 2007-03-26 Bruno Haible <bruno@clisp.org>
35276 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35277 unportable shell command "if ! ...".
35278 Reported by Ralf Wildenhues.
35280 2007-03-25 Bruno Haible <bruno@clisp.org>
35282 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35283 <sysexits.h> file, and only add EX_CONFIG.
35284 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35285 absolute file name and whether it is sufficient. Substitute also
35286 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35287 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35288 ABSOLUTE_SYSEXITS_H into sysexits.h.
35290 2007-03-25 Bruno Haible <bruno@clisp.org>
35292 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35295 2007-03-25 Bruno Haible <bruno@clisp.org>
35297 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35298 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35300 2007-03-25 Bruno Haible <bruno@clisp.org>
35302 * lib/vasnprintf.c: Include langinfo.h.
35303 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35305 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35306 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35307 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35308 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35309 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35310 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35311 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35312 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35313 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35314 Reported by Simon Josefsson.
35316 2007-03-25 Bruno Haible <bruno@clisp.org>
35318 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35319 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35320 * modules/vasnprintf (Depends-on): Add stdint.
35322 2007-03-25 Bruno Haible <bruno@clisp.org>
35324 * modules/fpieee: New file.
35325 * m4/fpieee.m4: New file.
35326 * modules/isnan-nolibm (Depends-on): Add fpieee.
35327 * modules/isnanl-nolibm (Depends-on): Add fpieee.
35328 * modules/isnanl (Depends-on): Add fpieee.
35330 2007-03-25 Bruno Haible <bruno@clisp.org>
35332 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35334 2007-03-25 Bruno Haible <bruno@clisp.org>
35336 Avoid test failures on IRIX 6.5.
35337 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35339 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35343 2007-03-25 Bruno Haible <bruno@clisp.org>
35345 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35346 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35347 exists but doesn't work.
35348 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35349 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35350 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35351 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35353 2007-03-25 Bruno Haible <bruno@clisp.org>
35355 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35356 returns inf. Needed on IRIX 6.5.
35358 2007-03-25 Bruno Haible <bruno@clisp.org>
35360 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35361 (main): Use isnanl instead of x != x idiom.
35362 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35364 * tests/test-frexp.c: Include isnan.h.
35365 (main): Use isnan instead of x != x idiom.
35366 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35368 2007-03-25 Bruno Haible <bruno@clisp.org>
35370 * tests/test-frexp.c (NaN): New function/macro.
35371 (main): Use it instead of 0.0 / 0.0.
35372 * tests/test-isnan.c (NaN): New function/macro.
35373 (main): Use it instead of 0.0 / 0.0.
35374 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35375 (test_function): Use it instead of 0.0 / 0.0.
35376 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35377 (test_function): Use it instead of 0.0 / 0.0.
35378 * tests/test-snprintf-posix.h (NaN): New function/macro.
35379 (test_function): Use it instead of 0.0 / 0.0.
35380 * tests/test-sprintf-posix.h (NaN): New function/macro.
35381 (test_function): Use it instead of 0.0 / 0.0.
35382 * tests/test-fprintf-posix.h (NaN): New function/macro.
35383 (test_function): Use it instead of 0.0 / 0.0.
35384 * tests/test-printf-posix.h (NaN): New function/macro.
35385 (test_function): Use it instead of 0.0 / 0.0.
35387 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35389 2007-03-25 Bruno Haible <bruno@clisp.org>
35391 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35393 2007-03-25 Bruno Haible <bruno@clisp.org>
35395 * lib/regexec.c (merge_state_with_log): Make static.
35397 2007-03-25 Bruno Haible <bruno@clisp.org>
35399 * lib/trigl.c (kernel_rem_pio2): Make static.
35401 2007-03-25 Bruno Haible <bruno@clisp.org>
35403 * lib/sincosl.c (sincosl_table): Make static.
35405 2007-03-25 Bruno Haible <bruno@clisp.org>
35407 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35408 if the compiler does not support C99.
35410 2007-03-25 Bruno Haible <bruno@clisp.org>
35412 * modules/time (Makefile.am): Ensure all rule action lines start with a
35415 2007-03-24 Bruno Haible <bruno@clisp.org>
35417 * modules/tsearch-tests: New file.
35418 * tests/test-tsearch.sh: New file.
35419 * tests/test-tsearch.c: New file, mostly copied from glibc.
35421 * modules/search-tests: New file.
35422 * tests/test-search.c: New file.
35424 * modules/search: New file.
35425 * lib/search_.h: New file, incorporating lib/tsearch.h.
35426 * m4/search_h.m4: New file.
35427 * lib/tsearch.h: Remove file.
35428 * lib/tsearch.c: Include search.h instead of tsearch.h.
35429 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35431 * modules/tsearch (Files): Remove lib/tsearch.h.
35432 (Depends-on): Add search.
35433 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35434 (Include): Change tsearch.h into search.h.
35436 2007-03-24 Bruno Haible <bruno@clisp.org>
35438 * modules/fpucw: New file.
35439 * lib/fpucw.h: New file.
35440 * lib/frexp.c: Include fpucw.h.
35441 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35443 * lib/printf-frexp.c: Include fpucw.h.
35444 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35446 * lib/vasnprintf.c: Include fpucw.h.
35447 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35448 'long double' calculations.
35449 * tests/test-frexpl.c: Include fpucw.h.
35450 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35451 * tests/test-printf-frexpl.c: Include fpucw.h.
35452 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35453 * modules/frexpl (Depends-on): Add fpucw.
35454 * modules/printf-frexpl (Depends-on): Likewise.
35455 * modules/fprintf-posix (Depends-on): Likewise.
35456 * modules/snprintf-posix (Depends-on): Likewise.
35457 * modules/sprintf-posix (Depends-on): Likewise.
35458 * modules/vasnprintf-posix (Depends-on): Likewise.
35459 * modules/vasprintf-posix (Depends-on): Likewise.
35460 * modules/vfprintf-posix (Depends-on): Likewise.
35461 * modules/vsnprintf-posix (Depends-on): Likewise.
35462 * modules/vsprintf-posix (Depends-on): Likewise.
35463 * modules/frexpl-tests (Depends-on): Likewise.
35464 * modules/printf-frexpl-tests (Depends-on): Likewise.
35466 2007-03-24 Bruno Haible <bruno@clisp.org>
35468 * lib/float+.h: New file.
35469 * lib/isnan.c: Include float+.h.
35471 (FUNC): Compare only SIZE bytes of the value.
35472 * lib/vasnprintf.c: Include float+.h.
35473 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35474 SIZEOF_LDBL or SIZEOF_DBL bytes.
35475 * modules/isnan-nolibm (Files): Add lib/float+.h.
35476 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35477 * modules/isnanl (Files): Add lib/float+.h.
35478 * modules/vasnprintf (Files): Add lib/float+.h.
35480 2007-03-24 Bruno Haible <bruno@clisp.org>
35482 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35483 include isnanl-nolibm.h.
35485 2007-03-24 Bruno Haible <bruno@clisp.org>
35487 * tests/test-read-file.c (main): Don't produce spurious output for
35488 expected situations. Make the test fail if it encountered unexpected
35491 2007-03-24 Bruno Haible <bruno@clisp.org>
35493 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35494 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35496 2007-03-24 Bruno Haible <bruno@clisp.org>
35498 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35500 2007-03-24 Bruno Haible <bruno@clisp.org>
35502 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35503 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35505 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35506 * modules/utf8-ucs4: Turn into a symbolic link to module
35509 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35511 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35512 unistr/u8-mbtouc-unsafe.
35514 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35515 * modules/utf16-ucs4: Turn into a symbolic link to module
35518 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35520 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35521 unistr/u16-mbtouc-unsafe.
35523 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35524 * modules/ucs4-utf8: Turn into a symbolic link to module
35527 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35528 * modules/ucs4-utf16: Turn into a symbolic link to module
35531 2007-03-24 Bruno Haible <bruno@clisp.org>
35533 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35534 Enable the function only if HAVE_INLINE.
35535 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35536 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35537 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35538 Enable the function only if HAVE_INLINE.
35539 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35540 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35541 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35542 Enable the function only if HAVE_INLINE.
35543 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35544 Enable the function only if HAVE_INLINE.
35545 * modules/utf8-ucs4: Update.
35546 * modules/utf8-ucs4-unsafe: Update.
35547 * modules/utf16-ucs4: Update.
35548 * modules/utf16-ucs4-unsafe: Update.
35549 * modules/ucs4-utf8: Update.
35550 * modules/ucs4-utf16: Update.
35552 2007-03-24 Bruno Haible <bruno@clisp.org>
35554 * lib/utf8-ucs4.h: Remove file.
35555 * lib/utf8-ucs4-unsafe.h: Remove file.
35556 * lib/utf16-ucs4.h: Remove file.
35557 * lib/utf16-ucs4-unsafe.h: Remove file.
35558 * lib/ucs4-utf8.h: Remove file.
35559 * lib/ucs4-utf16.h: Remove file.
35560 * lib/unistr.h: Include their previous contents.
35561 * m4/utf-ucs4.m4: Remove file.
35562 * m4/ucs4-utf.m4: Remove file.
35563 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35564 (Depends-on): Add unistr/base.
35565 (configure.ac): Remove gl_UTF_UCS4.
35566 (Makefile.am): Update.
35567 (Include): Change to unistr.h.
35568 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35569 (Depends-on): Add unistr/base.
35570 (configure.ac): Remove gl_UTF_UCS4.
35571 (Makefile.am): Update.
35572 (Include): Change to unistr.h.
35573 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35574 (Depends-on): Add unistr/base.
35575 (configure.ac): Remove gl_UTF_UCS4.
35576 (Makefile.am): Update.
35577 (Include): Change to unistr.h.
35578 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35579 (Depends-on): Add unistr/base.
35580 (configure.ac): Remove gl_UTF_UCS4.
35581 (Makefile.am): Update.
35582 (Include): Change to unistr.h.
35583 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35584 (Depends-on): Add unistr/base.
35585 (configure.ac): Remove gl_UCS4_UTF.
35586 (Makefile.am): Update.
35587 (Include): Change to unistr.h.
35588 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35589 (Depends-on): Add unistr/base.
35590 (configure.ac): Remove gl_UCS4_UTF.
35591 (Makefile.am): Update.
35592 (Include): Change to unistr.h.
35593 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35594 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35595 utf8-ucs4-unsafe.h.
35596 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35597 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35598 utf16-ucs4-unsafe.h.
35599 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35600 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35601 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35602 * lib/unistr/u8-strchr.c: Likewise.
35603 * lib/unistr/u8-strrchr.c: Likewise.
35604 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35605 * lib/unistr/u16-strchr.c: Likewise.
35606 * lib/unistr/u16-strrchr.c: Likewise.
35607 * lib/striconveh.c: Update.
35608 * lib/linebreak.c: Update.
35610 2007-03-24 Bruno Haible <bruno@clisp.org>
35612 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35613 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35615 2007-03-22 Bruno Haible <bruno@clisp.org>
35617 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35619 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
35621 * MODULES.html.sh (File system functions): New module write-any-file.
35622 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35623 * m4/write-any-file.m4: New files.
35625 2007-03-23 Eric Blake <ebb9@byu.net>
35627 * gnulib-tool: Rearrange space-tab sequences, since some editors
35630 2007-03-23 Eric Blake <ebb9@byu.net>
35632 * lib/version-etc.c (version_etc_va): Update license wording to
35633 be more concise. Recommended by Richard Stallman.
35635 2007-03-22 Bruno Haible <bruno@clisp.org>
35637 * lib/poll.c (MSG_PEEK): New fallback definition.
35639 2007-03-22 Bruno Haible <bruno@clisp.org>
35641 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35642 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35644 Fixes a compilation error on BeOS.
35646 2007-03-22 Bruno Haible <bruno@clisp.org>
35648 * modules/frexpl-tests: New file.
35649 * tests/test-frexpl.c: New file.
35651 * modules/frexpl: New file.
35652 * m4/frexpl.m4: New file.
35653 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35654 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35655 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35656 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35657 (Depends-on): Add frexpl. Remove isnanl-nolibm.
35658 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35660 2007-03-22 Bruno Haible <bruno@clisp.org>
35662 * lib/frexpl.c: Share code with lib/frexp.c.
35663 * modules/mathl (Files): Add lib/frexp.c.
35664 (Depends-on): Add isnanl-nolibm.
35666 2007-03-22 Bruno Haible <bruno@clisp.org>
35668 * modules/printf-frexp (Files): Add m4/frexp.m4.
35669 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35670 only if the found frexp function actually works.
35672 2007-03-22 Bruno Haible <bruno@clisp.org>
35674 * lib/frexp.c: Remove older implementation that uses divisions.
35676 2007-03-21 Bruno Haible <bruno@clisp.org>
35678 * modules/frexp-tests: New file.
35679 * tests/test-frexp.c: New file.
35681 * modules/frexp: New file.
35682 * lib/frexp.c: New file.
35683 * m4/frexp.m4: New file.
35684 * lib/math_.h (frexp): New declaration.
35685 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35687 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35689 2007-03-21 Bruno Haible <bruno@clisp.org>
35691 * modules/isnanl-tests: New file.
35692 * tests/test-isnanl.c: New file.
35694 * modules/isnanl: New file.
35695 * lib/isnanl.h: New file.
35696 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35697 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35698 gl_FUNC_ISNANL_WORKS.
35699 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35702 2007-03-21 Bruno Haible <bruno@clisp.org>
35704 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35707 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35708 * lib/vasnprintf.c: Update.
35709 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35710 tests/test-isnanl.h, remove tests/test-isnanl.c.
35711 (Makefile.am): Update.
35712 * tests/test-isnanl-nolibm.c: New file.
35713 * tests/test-isnanl.h: New file.
35714 * tests/test-isnanl.c: Remove file.
35716 2007-03-21 Jim Meyering <jim@meyering.net>
35718 When trying to open ".", treat ESTALE like EACCES.
35719 * lib/savewd.c (savewd_save): Resort to forking not just upon
35720 failure with EACCES, but also when errno is ESTALE.
35722 2007-03-20 Bruno Haible <bruno@clisp.org>
35724 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35725 Needed on AIX 5.1. Reported by Matthew Woehlke.
35727 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35729 Suggestions by Bruno Haible:
35730 * lib/acl-internal.h: Include "gettext.h" rather than rolling
35732 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35733 * modules/acl (Depends-on): Add gettext.
35735 2007-03-19 Bruno Haible <bruno@clisp.org>
35737 * modules/iconvme: Remove file.
35738 * lib/iconvme.h: Remove file.
35739 * lib/iconvme.c: Remove file.
35740 * m4/iconvme.m4: Remove file.
35742 2007-03-19 Bruno Haible <bruno@clisp.org>
35744 * doc/relocatable-maint.texi: Break long shell script line.
35745 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35747 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35749 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35750 handle file_has_acl.
35751 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35752 * lib/acl.c: Move header inclusions and related macro defns into
35753 lib/acl-internal.h.
35754 (S_ISLNK): Remove defn, since that's now done for us.
35755 (file_has_acl): Move to lib/file-has-acl.c.
35756 Call acl_trivial if available. This is the crucial part of the fix.
35757 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
35758 shared within the library. Rewrite a bit, partly to make it compatible
35759 with the GNU coding style.
35760 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35761 Remove unnecessary double-quotes.
35762 Don't test for acl_to_text; the build will catch that.
35763 Replace acl_entries if it doesn't exist and it is needed.
35764 Check for -lsec and acl_trivial (as used on Solaris 10).
35765 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35766 lib/file-has-acl.c.
35767 (Depends-on): Add sys_stat, for S_ISLNK.
35769 2007-03-19 Ben Pfaff <blp@gnu.org>
35771 * doc/gnulib.texi: Fix typos.
35772 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35774 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35776 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35777 If size is zero here, buf must be zero.
35779 2007-03-19 Simon Josefsson <simon@josefsson.org>
35781 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
35784 2007-03-18 Bruno Haible <bruno@clisp.org>
35786 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35787 Suggested by Eric Blake.
35789 2007-03-18 Ben Pfaff <blp@gnu.org>
35791 * doc/relocatable.texi: Recommend using as prefix a directory
35792 that does not exist and will never be created. Based on
35793 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35796 2007-03-17 Bruno Haible <bruno@clisp.org>
35798 * lib/fchownat.c: Include lchown.h.
35800 2007-03-17 Bruno Haible <bruno@clisp.org>
35802 Fix endless loop when the given allocated size was > INT_MAX.
35803 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35804 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35805 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35806 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35807 * lib/sprintf.c (sprintf): Likewise.
35809 2007-03-17 Bruno Haible <bruno@clisp.org>
35811 * tests/test-argp-2.sh (func_compare): Output a context diff.
35813 2007-03-17 Bruno Haible <bruno@clisp.org>
35815 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35816 locale's decimal-point character.
35818 2007-03-17 Bruno Haible <bruno@clisp.org>
35820 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35821 before comparing it. Needed because on some platforms (e.g. x86) a
35822 'long double' occupies less bytes than sizeof (long double).
35824 2007-03-17 Bruno Haible <bruno@clisp.org>
35826 * tests/test-crc.c (main): Make printf statements 64-bit clean.
35827 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35828 * tests/test-getaddrinfo.c (simple): Likewise.
35829 * tests/test-read-file.c (main): Likewise.
35831 2007-03-17 Bruno Haible <bruno@clisp.org>
35833 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35835 2007-03-17 Bruno Haible <bruno@clisp.org>
35837 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35840 2007-03-17 Bruno Haible <bruno@clisp.org>
35842 * tests/test-c-strcasecmp.c: Include c-strcase.h.
35843 * tests/test-c-strncasecmp.c: Likewise.
35845 2007-03-17 Bruno Haible <bruno@clisp.org>
35847 * modules/stdlib (Depends-on): Add unistd.
35848 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35849 Needed for MacOS X 10.3.
35851 2007-03-17 Bruno Haible <bruno@clisp.org>
35853 * lib/unistr/u-strdup.h: Include <stdlib.h>.
35855 2007-03-17 Bruno Haible <bruno@clisp.org>
35857 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35859 2007-03-17 Bruno Haible <bruno@clisp.org>
35861 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35862 to reflect files copied from gnulib (with or without modifications).
35863 Suggested by Jim Meyering.
35865 2007-03-17 Eric Blake <ebb9@byu.net>
35867 * NEWS: Document stdlib change from 2007-02-18.
35869 2007-03-17 Jim Meyering <jim@meyering.net>
35871 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35872 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35873 someone uses a name containing shell meta-characters.
35874 Reported by Alfred M. Szmidt.
35876 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35878 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35880 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35881 and copy gettext configuration files only if configure.ac contains
35882 a use of AM_GNU_GETTEXT_VERSION.
35884 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35886 * build-aux/bootstrap (gnulib_name): New variable.
35887 (gnulib_tool_options): Use it.
35889 2007-03-13 Simon Josefsson <simon@josefsson.org>
35891 * tests/test-des.c: Use new namespace.
35893 2007-03-15 Bruno Haible <bruno@clisp.org>
35895 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35896 Reported by James Youngman <jay@gnu.org>.
35898 2007-03-15 Bruno Haible <bruno@clisp.org>
35900 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35901 declared prototype. Needed with cc on OSF/1 5.1.
35903 2007-03-15 Bruno Haible <bruno@clisp.org>
35905 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35906 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35907 (struct gl_list_implementation): Add dispose_fn argument to the
35908 'create_empty', 'create' methods.
35909 (struct gl_list_impl_base): Add field 'dispose_fn'.
35910 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35912 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35913 dispose_fn argument.
35914 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35915 dispose_fn on the dropped values.
35916 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35917 dispose_fn argument.
35918 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35920 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35921 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35922 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35923 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35924 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35926 (gl_tree_list_free): Call dispose_fn on the dropped values.
35927 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35928 the dropped values.
35929 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35930 Add dispose_fn argument.
35931 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35932 Call dispose_fn on the dropped values.
35933 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35934 Add dispose_fn argument.
35935 (gl_sublist_create): Initialize the 'dispose_fn' field.
35936 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35937 * tests/test-array_list.c (main): Update.
35938 * tests/test-carray_list.c (main): Update.
35939 * tests/test-avltree_list.c (main): Update.
35940 * tests/test-rbtree_list.c (main): Update.
35941 * tests/test-avltreehash_list.c (main): Update.
35942 * tests/test-rbtreehash_list.c (main): Update.
35943 * tests/test-linked_list.c (main): Update.
35944 * tests/test-linkedhash_list.c (main): Update.
35945 * tests/test-array_oset.c (main): Update.
35947 2007-03-15 Bruno Haible <bruno@clisp.org>
35949 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35950 (gl_oset_create_empty): Add dispose_fn argument.
35951 (struct gl_oset_implementation): Add dispose_fn argument to
35952 'create_empty' method.
35953 (struct gl_oset_impl_base): Add dispose_fn field.
35954 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35955 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35956 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35958 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35959 (gl_tree_oset_free): Call dispose_fn on the dropped values.
35960 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35962 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35964 * tests/test-array_oset.c (main): Update.
35965 * tests/test-avltree_oset.c (main): Update.
35966 * tests/test-rbtree_oset.c (main): Update.
35967 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35969 2007-03-13 Bruno Haible <bruno@clisp.org>
35971 * tests/test-stdbool.c (i): Update after last patch.
35973 2007-03-12 Bruno Haible <bruno@clisp.org>
35975 * lib/quotearg.c: Include <wctype.h> early, before the definition of
35976 the iswprint macro. Needed on Solaris 2.5.1.
35978 2007-03-12 Bruno Haible <bruno@clisp.org>
35980 * tests/test-printf-frexp.c (main): Declare x as volatile.
35982 2007-03-12 Simon Josefsson <simon@josefsson.org>
35984 * doc/gnulib.texi (Build robot for gnulib): New section.
35986 2007-03-12 Jim Meyering <jim@meyering.net>
35988 * build-aux/bootstrap: New file.
35989 * build-aux/bootstrap.conf: New file, from coreutils.
35991 2007-03-11 Bruno Haible <bruno@clisp.org>
35993 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35995 2007-03-12 Simon Josefsson <simon@josefsson.org>
35997 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35998 avoid collisions with 'des_setkey'. Reported by Bruno Haible
35999 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
36001 2007-03-11 Bruno Haible <bruno@clisp.org>
36003 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36004 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36006 2007-03-11 Bruno Haible <bruno@clisp.org>
36008 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36009 formula. Needed for SunPRO C 5.0.
36011 2007-03-11 Bruno Haible <bruno@clisp.org>
36013 * modules/long-options (Depends-on): Add getopt.
36015 2007-03-11 Bruno Haible <bruno@clisp.org>
36017 * modules/modechange (Depends-on): Add stdbool.
36019 2007-03-11 Bruno Haible <bruno@clisp.org>
36021 * modules/i-ring (Depends-on): Add stdbool.
36023 2007-03-11 Bruno Haible <bruno@clisp.org>
36025 * modules/gc-des (Depends-on): Add stdbool.
36027 2007-03-11 Bruno Haible <bruno@clisp.org>
36029 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36031 2007-03-11 Bruno Haible <bruno@clisp.org>
36033 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36035 2007-03-11 Bruno Haible <bruno@clisp.org>
36037 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36039 2007-03-11 Bruno Haible <bruno@clisp.org>
36041 * lib/vasnprintf.c (sprintf): Undefine.
36043 2007-03-11 Bruno Haible <bruno@clisp.org>
36045 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36046 initializers in SunPRO C and Compaq C compilers.
36048 2007-03-11 Bruno Haible <bruno@clisp.org>
36050 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36051 decrementing code ANSI C compliant.
36053 2007-03-11 Bruno Haible <bruno@clisp.org>
36055 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36056 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36058 2007-03-11 Bruno Haible <bruno@clisp.org>
36060 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36061 <stdbool.h> substitute doesn't pass.
36063 2007-03-11 Bruno Haible <bruno@clisp.org>
36065 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36067 2007-03-11 Bruno Haible <bruno@clisp.org>
36069 * gnulib-tool (func_create_megatestdir): Create also an autobuild
36070 script, for submission to autobuild.josefsson.org.
36072 2007-03-10 Bruno Haible <bruno@clisp.org>
36074 * modules/canonicalize-lgpl-tests: New file.
36075 * tests/test-canonicalize-lgpl.sh: New file.
36076 * tests/test-canonicalize-lgpl.c: New file.
36078 * modules/c-strcase-tests: New file.
36079 * tests/test-c-strcase.sh: New file.
36080 * tests/test-c-strcasecmp.c: New file.
36081 * tests/test-c-strncasecmp.c: New file.
36083 * modules/atexit-tests: New file.
36084 * tests/test-atexit.sh: New file.
36085 * tests/test-atexit.c: New file.
36087 2007-03-10 Bruno Haible <bruno@clisp.org>
36089 * tests/test-binary-io.sh: Use temporary filenames that are not so
36090 likely to clash with those of other tests (in a parallel make).
36091 * tests/test-binary-io.c: Likewise.
36093 2007-03-10 Bruno Haible <bruno@clisp.org>
36095 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36096 fallback; use #error instead.
36097 Suggested by Simon Josefsson.
36099 2007-03-10 Bruno Haible <bruno@clisp.org>
36101 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36102 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36103 first and the last.
36105 2007-03-10 Bruno Haible <bruno@clisp.org>
36107 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36109 2007-03-10 Bruno Haible <bruno@clisp.org>
36111 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36113 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36114 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36115 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36117 2007-03-10 Bruno Haible <bruno@clisp.org>
36119 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36121 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36124 2007-03-09 Eric Blake <ebb9@byu.net>
36125 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
36127 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36128 types are not being provided by gnulib.
36129 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36130 types are supported.
36132 2007-03-10 Bruno Haible <bruno@clisp.org>
36134 * lib/stdio_.h (__attribute__): New macro.
36135 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36136 vsprintf): Specify __attribute__ __format__ for GCC.
36137 Suggested by Eric Blake.
36139 2007-03-09 Bruno Haible <bruno@clisp.org>
36141 * modules/printf-posix-tests: New file.
36142 * tests/test-printf-posix.sh: New file.
36143 * tests/test-printf-posix.c: New file.
36145 * modules/printf-posix: New file.
36146 * lib/printf.c: New file.
36147 * m4/printf-posix-rpl.m4: New file.
36148 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36150 * lib/stdio_.h (printf): New declaration.
36151 (format, __format__, ____printf____, ____scanf____, ____strftime____,
36152 ____strfmon____): New macros.
36153 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36156 2007-03-09 Bruno Haible <bruno@clisp.org>
36158 * tests/test-vasnprintf-posix2.sh: New file.
36159 * tests/test-vasnprintf-posix2.c: New file.
36160 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36161 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36162 (Makefile.am): Activate test-vasnprintf-posix2.sh.
36164 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36165 a locale dependent decimal point, rather than always '.'.
36167 2007-03-09 Eric Blake <ebb9@byu.net>
36169 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36170 spite of platforms like Tandem/NSK that define it to -1.
36172 2007-03-08 Bruno Haible <bruno@clisp.org>
36174 * modules/vprintf-posix-tests: New file.
36175 * tests/test-vprintf-posix.sh: New file.
36176 * tests/test-vprintf-posix.c: New file.
36177 * tests/test-printf-posix.h: New file.
36179 * modules/vprintf-posix: New file.
36180 * lib/vprintf.c: New file.
36181 * m4/vprintf-posix.m4: New file.
36182 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36184 * lib/stdio_.h (vprintf): New declaration.
36185 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36188 2007-03-08 Bruno Haible <bruno@clisp.org>
36190 * modules/fprintf-posix-tests: New file.
36191 * tests/test-fprintf-posix.sh: New file.
36192 * tests/test-fprintf-posix.c: New file.
36194 * modules/fprintf-posix: New file.
36195 * lib/fprintf.c: New file.
36196 * m4/fprintf-posix.m4: New file.
36197 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36199 * lib/stdio_.h (fprintf): New declaration.
36200 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36203 2007-03-08 Bruno Haible <bruno@clisp.org>
36205 * modules/vfprintf-posix-tests: New file.
36206 * tests/test-vfprintf-posix.sh: New file.
36207 * tests/test-vfprintf-posix.c: New file.
36208 * tests/test-fprintf-posix.h: New file.
36209 * tests/test-fprintf-posix.out: New file.
36211 * modules/vfprintf-posix: New file.
36212 * lib/vfprintf.c: New file.
36213 * m4/vfprintf-posix.m4: New file.
36214 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36216 * lib/stdio_.h (vfprintf): New declaration.
36217 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36220 2007-03-08 Bruno Haible <bruno@clisp.org>
36222 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36224 2007-03-08 Bruno Haible <bruno@clisp.org>
36226 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36227 instead of 'expr' invocations.
36228 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36229 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36230 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36231 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36232 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36233 Suggested by Paul Eggert.
36235 2007-03-08 Bruno Haible <bruno@clisp.org>
36237 * modules/fseterr-tests: New file.
36238 * tests/test-fseterr.c: New file.
36240 * modules/fseterr: New file.
36241 * lib/fseterr.h: New file.
36242 * lib/fseterr.c: New file.
36244 2007-03-08 Bruno Haible <bruno@clisp.org>
36246 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36247 * lib/getopt_.h: Likewise.
36248 * lib/mbswidth.h: Likewise.
36249 * lib/setenv.h: Likewise.
36250 * lib/vasnprintf.h: Likewise.
36251 * lib/vasprintf.h: Likewise.
36252 * lib/verror.h: Likewise.
36253 * lib/xsetenv.h: Likewise.
36254 * lib/xvasprintf.h: Likewise.
36256 2007-03-08 Jim Meyering <jim@meyering.net>
36258 * users.txt: Add parted.
36260 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36262 2007-03-07 Bruno Haible <bruno@clisp.org>
36264 * m4/printf.m4: Make the shell script snippets copy&pastable.
36266 2007-03-02 Bruno Haible <bruno@clisp.org>
36268 * lib/netinet_in_.h: New file.
36269 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36270 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36271 * modules/netinet_in (Files): Add lib/netinet_in_.h.
36272 (Depends-on): Add absolute-header.
36273 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36276 2007-03-03 Bruno Haible <bruno@clisp.org>
36278 * lib/sys_select_.h: New file.
36279 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36280 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36281 * modules/sys_select (Files): Add lib/sys_select_.h.
36282 (Depends-on): Add absolute-header.
36283 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36286 2007-03-02 Bruno Haible <bruno@clisp.org>
36288 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36289 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36291 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36292 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36293 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36294 * modules/sys_socket (Depends-on): Add absolute-header.
36295 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36296 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36297 (Include): Remove requirement of inclusion of <sys/types.h>.
36299 2007-03-02 Bruno Haible <bruno@clisp.org>
36301 * lib/byteswap_.h (bswap_32): Fix formula.
36303 2007-03-06 Bruno Haible <bruno@clisp.org>
36305 * modules/sprintf-posix-tests: New file.
36306 * tests/test-sprintf-posix.c: New file.
36308 * modules/sprintf-posix: New file.
36309 * lib/sprintf.c: New file.
36310 * m4/sprintf-posix.m4: New file.
36311 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36313 * lib/stdio_.h (sprintf): New declaration.
36314 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36317 2007-03-06 Bruno Haible <bruno@clisp.org>
36319 * modules/vsprintf-posix-tests: New file.
36320 * tests/test-vsprintf-posix.c: New file.
36321 * tests/test-sprintf-posix.h: New file.
36323 * modules/vsprintf-posix: New file.
36324 * lib/vsprintf.c: New file.
36325 * m4/vsprintf-posix.m4: New file.
36326 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36328 * lib/stdio_.h (vsprintf): New declaration.
36329 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36332 2007-03-06 Bruno Haible <bruno@clisp.org>
36334 * modules/vsnprintf (Depend-on): Remove minmax.
36336 2007-03-06 Bruno Haible <bruno@clisp.org>
36338 * modules/snprintf-posix-tests: New file.
36339 * tests/test-snprintf-posix.c: New file.
36341 * modules/snprintf-posix: New file.
36342 * m4/snprintf-posix.m4: New file.
36343 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36345 (gl_FUNC_SNPRINTF): Invoke it.
36346 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36347 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36349 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36351 2007-03-06 Bruno Haible <bruno@clisp.org>
36353 * modules/vsnprintf-posix-tests: New file.
36354 * tests/test-vsnprintf-posix.c: New file.
36355 * tests/test-snprintf-posix.h: New file.
36357 * modules/vsnprintf-posix: New file.
36358 * m4/vsnprintf-posix.m4: New file.
36359 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36361 (gl_FUNC_VSNPRINTF): Invoke it.
36362 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36363 * lib/stdio_.h (vsnprintf): Define as a replacement if
36364 REPLACE_VSNPRINTF is set.
36365 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36367 2007-03-06 Bruno Haible <bruno@clisp.org>
36369 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36370 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36372 2007-03-06 Bruno Haible <bruno@clisp.org>
36374 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36375 (asinl): Declare also if HAVE_DECL_ASINL is set.
36376 (atanl): Declare also if HAVE_DECL_ATANL is set.
36377 (ceill): Declare also if HAVE_DECL_CEILL is set.
36378 (cosl): Declare also if HAVE_DECL_COSL is set.
36379 (expl): Declare also if HAVE_DECL_EXPL is set.
36380 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36381 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36382 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36383 (logl): Declare also if HAVE_DECL_LOGL is set.
36384 (sinl): Declare also if HAVE_DECL_SINL is set.
36385 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36386 (tanl): Declare also if HAVE_DECL_TANL is set.
36387 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36388 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36389 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36390 declaration of frexpl, ldexpl.
36391 * modules/printf-frexpl (Depends-on): Add math.
36392 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36394 2007-03-05 Bruno Haible <bruno@clisp.org>
36396 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36397 frexpl and ldexpl are declared.
36398 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36400 2007-03-05 Bruno Haible <bruno@clisp.org>
36402 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36403 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36405 2007-03-05 Bruno Haible <bruno@clisp.org>
36407 * lib/stdio_.h: Include <stddef.h>.
36409 2007-03-05 Bruno Haible <bruno@clisp.org>
36411 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36413 2007-03-05 Bruno Haible <bruno@clisp.org>
36415 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36416 NetBSD 4, from Ralf Wildenhues.
36418 2007-03-04 Bruno Haible <bruno@clisp.org>
36420 * lib/vasprintf.h: Update #if logic for the case when the functions
36421 exist but are overridden.
36423 2007-03-04 Bruno Haible <bruno@clisp.org>
36425 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36426 implementations: glibc-2.4 and MacOS X 10.3.
36427 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36428 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36429 * tests/test-vasprintf-posix.c (test_function): Likewise.
36431 2007-03-04 Bruno Haible <bruno@clisp.org>
36433 * modules/vasprintf-posix-tests: New file.
36434 * tests/test-vasprintf-posix.c: New file.
36436 * modules/vasprintf-posix: New file.
36437 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36439 * m4/vasprintf-posix.m4: New file.
36440 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36442 (gl_FUNC_VASPRINTF): Invoke it.
36443 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36445 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36447 2007-03-04 Bruno Haible <bruno@clisp.org>
36449 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36450 REPLACE_GETTIMEOFDAY.
36451 * modules/sys_time (Makefile.am): Likewise.
36452 * m4/sys_time_h.m4: Likewise.
36453 * m4/gettimeofday.m4: Likewise.
36455 2007-03-04 Bruno Haible <bruno@clisp.org>
36457 * modules/vasnprintf-posix-tests: New file.
36458 * tests/test-vasnprintf-posix.c: New file.
36460 * modules/vasnprintf-posix: New file.
36461 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36463 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36464 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36465 REPLACE_VASNPRINTF is defined.
36466 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36467 gl_FUNC_VASNPRINTF.
36468 (gl_FUNC_VASNPRINTF): Invoke it.
36469 * m4/vasnprintf-posix.m4: New file.
36470 * m4/printf.m4: New file.
36472 2007-03-04 Bruno Haible <bruno@clisp.org>
36474 Compile progreloc.c only if --enable-relocatable is specified.
36475 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36476 if --enable-relocatable was specified.
36477 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36480 2007-03-04 Jim Meyering <jim@meyering.net>
36482 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36483 Use it consistently, rather than enumerating errno constants.
36485 2007-03-04 Bruno Haible <bruno@clisp.org>
36487 * modules/xvasprintf-tests: New file.
36488 * tests/test-xvasprintf.c: New file.
36490 * modules/vasprintf-tests: New file.
36491 * tests/test-vasprintf.c: New file.
36493 * modules/vasnprintf-tests: New file.
36494 * tests/test-vasnprintf.c: New file.
36496 * modules/vsnprintf-tests: New file.
36497 * tests/test-vsnprintf.c: New file.
36499 * modules/snprintf-tests: New file.
36500 * tests/test-snprintf.c: New file.
36502 2007-03-04 Bruno Haible <bruno@clisp.org>
36504 Compile relocatable.c only if --enable-relocatable is specified.
36505 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36506 gl_RELOCATABLE_LIBRARY.
36507 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36508 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36509 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36510 gl_RELOCATABLE_LIBRARY.
36511 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36512 (Makefile.am): Remove lib_SOURCES.
36513 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36514 gl_RELOCATABLE_LIBRARY.
36515 (Makefile.am): Remove lib_SOURCES.
36516 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36518 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36519 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36521 2007-03-04 Bruno Haible <bruno@clisp.org>
36523 * modules/argmatch-tests: New file.
36524 * tests/test-argmatch.c: New file.
36526 * tests/test-allocsa.c (main): Halve the number of loop runs.
36528 * modules/alloca-opt-tests: New file.
36529 * tests/test-alloca-opt.c: New file.
36531 2007-03-04 Jim Meyering <jim@meyering.net>
36533 Work around difference between Linux ACLs and Solaris 10 ZFS.
36534 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36537 2007-03-03 Bruno Haible <bruno@clisp.org>
36539 * modules/relocatable-prog (Depends-on): Add back progreloc's
36540 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36542 2007-03-03 Bruno Haible <bruno@clisp.org>
36544 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36545 * modules/relocatable-lib: New file.
36547 2007-03-03 Bruno Haible <bruno@clisp.org>
36549 * modules/relocatable-prog: Renamed from modules/relocatable.
36550 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36552 2007-03-03 Bruno Haible <bruno@clisp.org>
36554 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36555 m4/relocatable-lib.m4.
36556 (Depends-on): Remove 'relocatable'.
36557 (configure.ac): Add gl_RELOCATABLE_NOP.
36559 2007-03-03 Bruno Haible <bruno@clisp.org>
36561 * modules/relocatable-prog-wrapper: New file.
36562 * modules/relocatable (Depends-on): Add it. Remove all other
36563 dependencies except progname.
36564 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36566 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36567 (gl_FUNC_STRERROR): Nop.
36568 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36570 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36571 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36573 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36574 (gl_FUNC_READLINK): Update.
36576 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36578 2007-03-03 Bruno Haible <bruno@clisp.org>
36580 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36581 * modules/xreadlink (Depends-on): Add unistd.
36582 * modules/xreadlink-with-size (Depends-on): Likewise.
36584 2007-03-03 Bruno Haible <bruno@clisp.org>
36586 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36587 extracted from gt_FUNC_SETENV.
36588 (gt_FUNC_SETENV): Remove macro.
36589 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36590 remove gt_FUNC_SETENV.
36592 2007-03-03 Bruno Haible <bruno@clisp.org>
36594 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36595 ENABLE_RELOCATABLE here.
36596 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36598 2007-03-03 Bruno Haible <bruno@clisp.org>
36600 * modules/rbtreehash-list-tests (Depends-on): Add progname.
36601 * tests/test-rbtreehash_list.c: Include progname.h.
36602 (main): Call set_program_name.
36604 * modules/rbtree-oset-tests (Depends-on): Add progname.
36605 * tests/test-rbtree_oset.c: Include progname.h.
36606 (main): Call set_program_name.
36608 * modules/rbtree-list-tests (Depends-on): Add progname.
36609 * tests/test-rbtree_list.c: Include progname.h.
36610 (main): Call set_program_name.
36612 * modules/linked-list-tests (Depends-on): Add progname.
36613 * tests/test-linked_list.c: Include progname.h.
36614 (main): Call set_program_name.
36616 2007-03-03 Bruno Haible <bruno@clisp.org>
36618 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36619 All uses of __restrict changed to _Restrict_.
36620 * lib/glob_.h (__restrict): Remove macro.
36622 2007-03-02 Bruno Haible <bruno@clisp.org>
36624 * modules/gettext (configure.ac): Require gettext infrastructure
36625 from version 0.16.1.
36627 2007-03-02 Bruno Haible <bruno@clisp.org>
36629 * modules/linkedhash-list-tests (Depends-on): Add progname.
36630 * tests/test-linkedhash_list.c: Include progname.h.
36631 (main): Call set_program_name.
36633 * modules/carray-list-tests (Depends-on): Add progname.
36634 * tests/test-carray_list.c: Include progname.h.
36635 (main): Call set_program_name.
36637 * modules/avltreehash-list-tests (Depends-on): Add progname.
36638 * tests/test-avltreehash_list.c: Include progname.h.
36639 (main): Call set_program_name.
36641 * modules/avltree-oset-tests (Depends-on): Add progname.
36642 * tests/test-avltree_oset.c: Include progname.h.
36643 (main): Call set_program_name.
36645 * modules/avltree-list-tests (Depends-on): Add progname.
36646 * tests/test-avltree_list.c: Include progname.h.
36647 (main): Call set_program_name.
36649 * modules/array-oset-tests (Depends-on): Add progname.
36650 * tests/test-array_oset.c: Include progname.h.
36651 (main): Call set_program_name.
36653 * modules/array-list-tests (Depends-on): Add progname.
36654 * tests/test-array_list.c: Include progname.h.
36655 (main): Call set_program_name.
36657 * modules/argp-tests (Depends-on): Add progname.
36658 * tests/test-argp.c: Include argp.h first. Include progname.h.
36659 (main): Call set_program_name.
36661 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
36663 * doc/gnulib-tool.texi (Initial import): Reword description of
36664 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36665 limited effect even if defined after the first system include.
36667 2007-03-01 Bruno Haible <bruno@clisp.org>
36669 * build-aux/config.libpath: Update to libtool-1.5.22.
36670 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36672 2007-03-01 Bruno Haible <bruno@clisp.org>
36674 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36676 Reported by Ralf Wildenhues.
36678 2007-03-01 Bruno Haible <bruno@clisp.org>
36680 * build-aux/install-reloc: Remove object files left over by some
36682 Reported by Ralf Wildenhues.
36684 2007-03-01 Bruno Haible <bruno@clisp.org>
36686 * build-aux/install-reloc: Break long lines.
36688 2007-03-01 Bruno Haible <bruno@clisp.org>
36690 * doc/relocatable.texi: Document that it may not work on OpenBSD.
36691 Reported by Ralf Wildenhues.
36693 2007-03-01 Bruno Haible <bruno@clisp.org>
36695 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36696 include ordering constraints.
36698 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
36700 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36701 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36702 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36703 as another example.
36704 * lib/time_.h: Fix misspelling.
36705 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36706 Require gl_HEADER_TIME_H_DEFAULTS.
36707 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36708 * m4/time_r.m4 (gl_TIME_R): Likewise.
36709 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36711 2007-03-01 Bruno Haible <bruno@clisp.org>
36713 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36714 * m4/utimens.m4 (gl_UTIMENS): Likewise.
36716 2007-03-01 Jim Meyering <jim@meyering.net>
36718 * modules/xreadlink (Maintainer): Add my name.
36719 * modules/xreadlink-with-size (Depends-on): Alphabetize.
36721 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
36722 Bruno Haible <bruno@clisp.org>
36724 * build-aux/install-reloc: Compile also c-ctype.c.
36725 * build-aux/relocatable.sh.in: New file.
36726 * doc/relocatable.texi: New file.
36727 * doc/relocatable-maint.texi: New file.
36728 * doc/gnulib.texi: Include relocatable-maint.texi.
36729 * lib/progreloc.c: Include unistd.h unconditionally.
36730 * lib/relocwrapper.c: Include unistd.h unconditionally.
36732 (add_dotbin): Use c_tolower.
36733 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36734 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36735 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36736 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36737 to m4/relocatable-lib.m4.
36738 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36739 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36740 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36741 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36742 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36743 * modules/relocatable: New file.
36744 * modules/relocatable-lib: New file.
36745 * modules/relocatable-script: New file.
36747 2007-02-28 Bruno Haible <bruno@clisp.org>
36749 Import --enable-relocatable infrastructure.
36750 * build-aux/config.libpath: New file, from GNU gettext.
36751 * build-aux/install-reloc: New file, from GNU gettext.
36752 * build-aux/reloc-ldflags: New file, from GNU gettext.
36753 * lib/relocatable.h: New file, from GNU gettext.
36754 * lib/relocatable.c: New file, from GNU gettext.
36755 * lib/relocwrapper.c: New file, from GNU gettext.
36756 * m4/relocatable.m4: New file, from GNU gettext.
36758 2007-02-28 Bruno Haible <bruno@clisp.org>
36760 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36762 * modules/xreadlink: New file, from GNU gettext with modifications.
36763 * lib/xreadlink.c: New file, from GNU gettext.
36764 * lib/xreadlink.h: Add comments.
36765 (xreadlink): New declaration.
36767 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36768 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36769 lib/xreadlink-with-size.c.
36770 (configure.ac): Remove gl_XREADLINK invocation.
36771 (Makefile.am): Augment lib_SOURCES.
36772 * m4/xreadlink.m4: Remove file.
36773 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36774 (xreadlink_with_size): Renamed from xreadink.
36775 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36776 * modules/canonicalize (Depends-on): Replace xreadlink with
36777 xreadlink-with-size.
36778 * lib/canonicalize.c (canonicalize_filename_mode): Update.
36780 2007-02-25 Jim Meyering <jim@meyering.net>
36782 * build-aux/announce-gen: When complaining about excess arguments,
36785 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
36787 * README: Document signed integer overflow situation more
36790 2007-02-25 Bruno Haible <bruno@clisp.org>
36792 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36793 'a' or 'A' conversion.
36795 2007-02-25 Bruno Haible <bruno@clisp.org>
36797 * modules/filename: Renamed from modules/pathname.
36798 (Files): Replace lib/pathname.h with lib/filename.h. Replace
36799 lib/concatpath.c with lib/concat-filename.c.
36800 (Makefile.am): Update.
36801 (Include): Replace pathname.h with filename.h.
36802 * lib/filename.h: Renamed from lib/pathname.h.
36803 (concatenated_filename): Renamed from concatenated_pathname.
36804 * lib/concat-filename.c: Renamed from lib/concatpath.c.
36805 (concatenated_filename): Renamed from concatenated_pathname.
36806 * lib/findprog.c: Include filename.h instead of pathname.h.
36807 (find_in_path): Update.
36808 * lib/javacomp.c: Include filename.h instead of pathname.h.
36809 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36810 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36811 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36812 is_oldgcj_14_13_usable, is_javac_usable): Update.
36813 * lib/javaexec.c: Include filename.h instead of pathname.h.
36814 (execute_java_class): Update.
36815 * modules/findprog: Update.
36816 * modules/javacomp: Update.
36817 * modules/javaexec: Update.
36818 * MODULES.html.sh (File system functions): Add 'filename', remove
36821 2007-02-25 Bruno Haible <bruno@clisp.org>
36823 * modules/printf-frexpl-tests: New file.
36824 * tests/test-printf-frexpl.c: New file.
36826 * modules/printf-frexpl: New file.
36827 * lib/printf-frexpl.h: New file.
36828 * lib/printf-frexpl.c: New file.
36829 * m4/printf-frexpl.m4: New file.
36831 2007-02-25 Bruno Haible <bruno@clisp.org>
36833 * modules/printf-frexp-tests: New file.
36834 * tests/test-printf-frexp.c: New file.
36836 * modules/printf-frexp: New file.
36837 * lib/printf-frexp.h: New file.
36838 * lib/printf-frexp.c: New file.
36839 * m4/printf-frexp.m4: New file.
36841 2007-02-25 Bruno Haible <bruno@clisp.org>
36843 Assume automake >= 1.10 for the tests.
36844 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36845 * modules/arctwo-tests: Likewise.
36846 * modules/argp-tests: Likewise.
36847 * modules/avltree-list-tests: Likewise.
36848 * modules/avltree-oset-tests: Likewise.
36849 * modules/avltreehash-list-tests: Likewise.
36850 * modules/carray-list-tests: Likewise.
36851 * modules/crc-tests: Likewise.
36852 * modules/des-tests: Likewise.
36853 * modules/gc-arcfour-tests: Likewise.
36854 * modules/gc-arctwo-tests: Likewise.
36855 * modules/gc-des-tests: Likewise.
36856 * modules/gc-hmac-md5-tests: Likewise.
36857 * modules/gc-hmac-sha1-tests: Likewise.
36858 * modules/gc-md2-tests: Likewise.
36859 * modules/gc-md4-tests: Likewise.
36860 * modules/gc-md5-tests: Likewise.
36861 * modules/gc-pbkdf2-sha1-tests: Likewise.
36862 * modules/gc-rijndael-tests: Likewise.
36863 * modules/gc-sha1-tests: Likewise.
36864 * modules/gc-tests: Likewise.
36865 * modules/getaddrinfo-tests: Likewise.
36866 * modules/hmac-md5-tests: Likewise.
36867 * modules/hmac-sha1-tests: Likewise.
36868 * modules/linked-list-tests: Likewise.
36869 * modules/linkedhash-list-tests: Likewise.
36870 * modules/lock-tests: Likewise.
36871 * modules/md2-tests: Likewise.
36872 * modules/md4-tests: Likewise.
36873 * modules/md5-tests: Likewise.
36874 * modules/rbtree-list-tests: Likewise.
36875 * modules/rbtree-oset-tests: Likewise.
36876 * modules/rbtreehash-list-tests: Likewise.
36877 * modules/read-file-tests: Likewise.
36878 * modules/rijndael-tests: Likewise.
36879 * modules/stdint-tests: Likewise.
36880 * modules/tls-tests: Likewise.
36882 2007-02-24 Bruno Haible <bruno@clisp.org>
36884 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36885 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36886 function; instead check whether isnan with a double argument links.
36887 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36888 function; instead check whether isnan with a 'long double' argument
36890 Reported by Eric Blake <ebb9@byu.net>.
36892 2007-02-24 Bruno Haible <bruno@clisp.org>
36894 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36896 * lib/isnanl.c: Remove all code. Just include isnan.c.
36897 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36899 2007-02-25 Jim Meyering <jim@meyering.net>
36901 Avoid conflicting types for 'unsetenv' on FreeBSD.
36902 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36903 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36906 2007-02-24 Bruno Haible <bruno@clisp.org>
36908 * modules/isnanl-nolibm-tests: New file.
36909 * tests/test-isnanl.c: New file.
36911 * modules/isnanl-nolibm: New file.
36912 * lib/isnanl.h: New file.
36913 * lib/isnanl.c: New file.
36914 * m4/isnanl.m4: New file.
36916 2007-02-24 Bruno Haible <bruno@clisp.org>
36918 * modules/isnan-nolibm-tests: New file.
36919 * tests/test-isnan.c: New file.
36921 * modules/isnan-nolibm: New file.
36922 * lib/isnan.h: New file.
36923 * lib/isnan.c: New file.
36924 * m4/isnan.m4: New file.
36926 2007-02-24 Bruno Haible <bruno@clisp.org>
36928 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36929 assume that an exponent fits in 20 bits.
36931 2007-02-24 Jim Meyering <jim@meyering.net>
36933 * m4/regex.m4: Update the description of the configure-time option,
36934 --without-included-regex, to state accurately what the defaults are,
36935 and perhaps to give people an idea why using this option is risky.
36937 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
36939 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36940 loops on small arguments. This attempts to avoid the problem
36941 Bruno Haible reported for AIX 4.3.2 in
36942 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36944 2007-02-23 Bruno Haible <bruno@clisp.org>
36946 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36947 Needed for help2man.
36949 2007-02-23 Karl Berry <karl@gnu.org>
36951 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36952 exists, foo.h should be cvs-ignored, not committed.
36954 2007-02-23 Eric Blake <ebb9@byu.net>
36956 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
36957 * lib/stat-time.h (includes): Likewise.
36958 * lib/utimecmp.c (includes): Likewise.
36959 * lib/utimens.h (includes): Likewise.
36960 * lib/getdate.y (includes): Also include "timespec.h" for use
36961 internal to the module.
36962 * modules/utimens (Depends-on): Revert yesterday's patch.
36963 * modules/nanosleep (Depends-on): Add missing dependency.
36965 2007-02-22 Bruno Haible <bruno@clisp.org>
36967 * lib/glob.c: Don't include getlogin_r.h.
36969 2007-02-22 Jim Meyering <jim@meyering.net>
36971 * modules/utimens (Depends-on): Add timespec, required for
36972 utimens.h's inclusion of timespec.h.
36974 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
36976 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36977 long unreadable paths in GNU/Linux. Problem reported by Andreas
36979 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36980 I'll try to think of a better way to fix the Solaris problem.
36982 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36983 like glibc; on Solaris 10, it fails with errno == EINVAL.
36984 POSIX says the behavior is unspecified if the first argument is NULL,
36985 so play it safe and never pass NULL to the system getcwd.
36987 2007-02-21 Jim Meyering <jim@meyering.net>
36989 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36990 of gettimeofday. It would conflict with the one now always
36991 provided via sys_time_.h. Reported by Matthew Woehlke, as
36992 an IRIX 6.5 build failure.
36994 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
36996 Minor fixups to port to Solaris 10 with Sun C 5.8.
36997 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36998 * modules/getcwd (Depends-on): Add dirfd.
36999 * lib/putenv.c (putenv): #undef it.
37000 (rpl_putenv): New decl.
37001 (malloc, free): Include <stdlib.h> rather than prototyping separately.
37003 2007-02-20 Bruno Haible <bruno@clisp.org>
37005 * modules/stdio-tests: New file.
37006 * tests/test-stdio.c: New file.
37008 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37009 (Depends-on): Add stdio.
37010 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37011 (Include): Use <stdio.h> instead of vsnprintf.h.
37012 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37013 HAVE_DECL_VSNPRINTF.
37014 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37016 * modules/snprintf (Files): Remove lib/snprintf.h.
37017 (Depends-on): Add stdio.
37018 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37019 (Include): Use <stdio.h> instead of snprintf.h.
37020 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37021 HAVE_DECL_SNPRINTF.
37022 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37023 * lib/getaddrinfo.c: Likewise.
37025 * modules/stdio: New file.
37026 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37027 * lib/snprintf.h: Remove file.
37028 * lib/vsnprintf.h: Remove file.
37029 * lib/.cppi-disable: Remove snprintf.h.
37030 * m4/stdio_h.m4: New file.
37031 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37033 2007-02-20 Jim Meyering <jim@meyering.net>
37035 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37036 used by e.g., mingw. From Bruno Haible.
37038 2007-02-19 Bruno Haible <bruno@clisp.org>
37040 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37042 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37044 2007-02-19 Bruno Haible <bruno@clisp.org>
37046 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37049 2007-02-19 Bruno Haible <bruno@clisp.org>
37051 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37053 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37055 2007-02-19 Jim Meyering <jim@meyering.net>
37057 Don't use FD after a successful "fdopendir (fd)".
37058 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37059 Reset it by calling dirfd on the just-obtained DIR*.
37061 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37062 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37064 2007-02-18 Bruno Haible <bruno@clisp.org>
37066 * lib/readlink.c: Include <unistd.h>.
37067 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37069 * modules/readlink (Depends-on): Add unistd.
37070 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37071 (Include): Add <unistd.h>.
37073 * lib/getlogin_r.h: Remove file.
37074 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37075 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37076 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37077 HAVE_DECL_GETLOGIN_R.
37078 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37079 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37080 (Include): Use <unistd.h> instead of getlogin_r.h.
37082 * lib/getcwd.h: Remove file.
37083 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37084 * lib/xgetcwd.c: Likewise.
37085 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37086 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37087 * modules/getcwd (Files): Remove lib/getcwd.h.
37088 (Depends-on): Add unistd.
37089 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37090 (Include): Use <unistd.h> instad of getcwd.h.
37092 * lib/ftruncate.c: Include <unistd.h> first.
37093 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37094 Set HAVE_FTRUNCATE.
37095 * modules/ftruncate (Depends-on): Add unistd.
37096 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37098 * lib/fchdir.c: Include <unistd.h> first.
37099 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37100 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37101 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37102 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37103 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37105 * lib/dup2.c: Include <unistd.h> first.
37106 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37108 * modules/dup2 (Depends-on): Add unistd.
37109 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37111 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37112 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37113 REPLACE_CHOWN. Don't define chown as a macro here.
37114 * modules/chown (Depends-on): Add unistd.
37115 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37117 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37118 Add definition for GL_LINK_WARNING.
37119 (chown, dup2): New declarations.
37120 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37122 (ftruncate): New declaration.
37123 (getcwd): New declaration, taken from old getcwd.h.
37124 (getlogin_r): New declaration, taken from old getlogin_r.h.
37125 (readlink): New declaration.
37126 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37127 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37128 (gl_PREREQ_UNISTD): Remove macro.
37129 (gl_UNISTD_MODULE_INDICATOR): New macro.
37130 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37131 many new variables. Don't set UNISTD_H.
37132 * modules/unistd (Description): Change.
37133 (Depends-on): Add link-warning.
37134 (configure.ac): Update.
37135 (Makefile.am): Create unistd.h always. Substitute many new variables
37138 2007-02-18 Bruno Haible <bruno@clisp.org>
37140 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37141 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37143 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37144 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37145 * lib/getsubopt.h: Remove file.
37146 * modules/getsubopt (Files): Remove lib/getsubopt.h.
37147 (Depends-on): Add stdlib.
37148 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37149 (Includes): Use <stdlib.h> instead of getsubopt.h.
37150 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37151 Set HAVE_GETSUBOPT.
37152 * lib/getsubopt.c: Don't include getsubopt.h.
37154 2007-02-18 Bruno Haible <bruno@clisp.org>
37156 * modules/fchdir (Depends-on): Add dup2.
37158 2007-02-18 Bruno Haible <bruno@clisp.org>
37160 * lib/stdlib_.h: Handle glibc's special invocation convention
37163 2007-02-18 Bruno Haible <bruno@clisp.org>
37165 * modules/stdlib-tests: New file.
37166 * tests/test-stdlib.c: New file.
37168 * modules/mkstemp (Files): Remove lib/mkstemp.h.
37169 (Depends-on): Add stdlib.
37170 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37171 (Includes): Use <stdlib.h> instead of mkstemp.h.
37172 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37173 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37174 * lib/mkstemp.c: Don't include mkstemp.h.
37175 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37176 * lib/stdlib--.h: Don't include mkstemp.h.
37178 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37179 (Depends-on): Add stdlib.
37180 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37181 (Includes): Use <stdlib.h> instead of mkdtemp.h.
37182 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37184 * lib/mkdtemp.c: Don't include mkdtemp.h.
37185 * lib/clean-temp.c: Don't include mkdtemp.h.
37187 * modules/exit (Files): Remove lib/exit.h.
37188 (Depends-on): Add stdlib.
37189 (Makefile.am): Remove lib_SOURCES.
37190 (Include): Use <stdlib.h> instead of exit.h.
37191 * lib/argmatch.c: Don't include exit.h.
37192 * lib/execute.c: Likewise.
37193 * lib/pagealign_alloc.c: Likewise.
37194 * lib/pipe.c: Likewise.
37195 * lib/wait-process.c: Likewise.
37196 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37197 * lib/exitfail.c: Likewise.
37198 * lib/savewd.c: Likewise.
37199 * lib/xsetenv.c: Likewise.
37201 * modules/stdlib: New file.
37202 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37203 and extra comments about mkstemp().
37204 * lib/exit.h: Remove file.
37205 * lib/mkdtemp.h: Remove file.
37206 * lib/mkstemp.h: Remove file.
37207 * m4/stdlib_h.m4: New file.
37208 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37210 2007-02-18 Bruno Haible <bruno@clisp.org>
37212 * modules/math-tests: New file.
37213 * tests/test-math.c: New file.
37215 * modules/math: New file.
37216 * modules/mathl (Files): Remove lib/mathl.h.
37217 (Depends-on): Add math.
37218 (Makefile.am): Don't mention mathl.h.
37219 (Include): Use <math.h> instead of mathl.h.
37220 * lib/math_.h: New file.
37221 * lib/mathl.h: Remove file.
37222 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37224 * lib/asinl.c: Likewise.
37225 * lib/atanl.c: Likewise.
37226 * lib/ceill.c: Likewise.
37227 * lib/cosl.c: Likewise.
37228 * lib/expl.c: Likewise.
37229 * lib/floorl.c: Likewise.
37230 * lib/frexpl.c: Likewise.
37231 * lib/ldexpl.c: Likewise.
37232 * lib/logl.c: Likewise.
37233 * lib/sincosl.c: Likewise.
37234 * lib/sinl.c: Likewise.
37235 * lib/sqrtl.c: Likewise.
37236 * lib/tanl.c: Likewise.
37237 * lib/trigl.c: Likewise.
37238 * m4/math_h.m4: New file.
37239 * MODULES.html.sh (Mathematics): Add math.
37241 2007-02-17 Bruno Haible <bruno@clisp.org>
37243 * modules/wctype-tests: New file.
37244 * tests/test-wctype.c: New file.
37246 * modules/wchar-tests: New file.
37247 * tests/test-wchar.c: New file.
37249 * modules/unistd-tests: New file.
37250 * tests/test-unistd.c: New file.
37252 * modules/time-tests: New file.
37253 * tests/test-time.c: New file.
37255 * modules/sysexits-tests: New file.
37256 * tests/test-sysexits.c: New file.
37258 * modules/sys_time-tests: New file.
37259 * tests/test-sys_time.c: New file.
37261 * modules/sys_stat-tests: New file.
37262 * tests/test-sys_stat.c: New file.
37264 * modules/sys_socket-tests: New file.
37265 * tests/test-sys_socket.c: New file.
37267 * modules/sys_select-tests: New file.
37268 * tests/test-sys_select.c: New file.
37270 * modules/string-tests: New file.
37271 * tests/test-string.c: New file.
37273 * modules/stdbool-tests: New file.
37274 * tests/test-stdbool.c: New file.
37276 * modules/netinet_in-tests: New file.
37277 * tests/test-netinet_in.c: New file.
37279 * modules/inttypes-tests: New file.
37280 * tests/test-inttypes.c: New file.
37282 * modules/fcntl-tests: New file.
37283 * tests/test-fcntl.c: New file.
37285 * modules/byteswap-tests: New file.
37286 * tests/test-byteswap.c: New file.
37288 * modules/arpa_inet-tests: New file.
37289 * tests/test-arpa_inet.c: New file.
37291 2007-02-17 Bruno Haible <bruno@clisp.org>
37293 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37294 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37295 if the corresponding module is not enabled. Emit link warnings if
37296 the function is used nevertheless.
37297 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37298 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37299 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37300 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37301 * modules/inttypes (Depends-on): Add link-warning.
37302 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37303 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37304 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37305 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37306 * modules/imaxdiv (configure.ac): Likewise.
37307 * modules/strtoimax (configure.ac): Likewise.
37308 * modules/strtoumax (configure.ac): Likewise.
37310 2007-02-17 Bruno Haible <bruno@clisp.org>
37312 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37313 gl_STRING_MODULE_INDICATOR_DEFAULTS.
37314 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37315 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37317 2007-02-17 Bruno Haible <bruno@clisp.org>
37319 * modules/link-warning: New file.
37320 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37321 * lib/string_.h (GL_LINK_WARNING): Remove definition.
37322 * modules/string (Depends-on): Add link-warning.
37323 (Makefile.am): Copy the contents of build-aux/link-warning.h into
37325 * MODULES.html.sh (Support for building libraries and executables): Add
37328 2007-02-17 Bruno Haible <bruno@clisp.org>
37330 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37331 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37332 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37335 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
37336 Bruno Haible <bruno@clisp.org>
37338 * modules/tmpfile: New file.
37339 * lib/tmpfile.c: New file.
37340 * m4/tmpfile.m4: New file.
37341 * MODULES.html.sh (func_all_modules): New section "Input/output".
37343 2007-02-15 Bruno Haible <bruno@clisp.org>
37345 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37346 (supports_delete_on_close): New function.
37347 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37349 2007-02-14 Bruno Haible <bruno@clisp.org>
37351 * modules/mbspcasecmp-tests: New file.
37352 * tests/test-mbspcasecmp.sh: New file.
37353 * tests/test-mbspcasecmp.c: New file.
37355 New module mbspcasecmp.
37356 * modules/mbspcasecmp: New file.
37357 * lib/mbspcasecmp.c: New file.
37358 * lib/string_.h (strncasecmp): Change warning message.
37359 (mbspcasecmp): New declaration.
37360 * m4/mbspcasecmp.m4: New file.
37361 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37362 GNULIB_MBSPCASECMP.
37363 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37364 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37366 2007-02-14 Bruno Haible <bruno@clisp.org>
37368 * modules/mbsncasecmp-tests: New file.
37369 * tests/test-mbsncasecmp.sh: New file.
37370 * tests/test-mbsncasecmp.c: New file.
37372 New module mbsncasecmp.
37373 * modules/mbsncasecmp: New file.
37374 * lib/mbsncasecmp.c: New file.
37375 * lib/string_.h (mbsncasecmp): New declaration.
37376 * m4/mbsncasecmp.m4: New file.
37377 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37378 GNULIB_MBSNCASECMP.
37379 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37380 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37382 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37384 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37385 Verify that it doesn't overlap with our flags.
37386 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37387 do not have the desired effect in multibyte locales; instead, use
37389 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37390 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37391 we don't require GNU fnmatch ourselves (if our users require it, they
37392 should do so explicitly).
37394 Fix regex code so it doesn't rely on strcasecmp.
37395 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37396 Otherwise, include gnulib's langinfo.h.
37397 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37398 undesirable behavior in non-C locales. Instead, rely on localecharset.
37399 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37400 * modules/regex (FILES): Remove m4/codeset.m4.
37401 (Depends-on): Add localcharset. Remove strcase.
37403 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37405 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37406 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37408 2007-02-13 Bruno Haible <bruno@clisp.org>
37410 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37411 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37413 2007-02-12 Bruno Haible <bruno@clisp.org>
37415 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37416 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37417 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37418 time warning rather than a link error.
37420 2007-02-12 Bruno Haible <bruno@clisp.org>
37422 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37423 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37424 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37426 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37428 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37431 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37433 New module 'time', so that apps can include <time.h> as per
37434 POSIX and GNU instead of separate include files like time_r.h
37435 and timegm.h. This implementation tries out a simpler approach
37436 for replacing decls in standard include files (as compared to
37437 the string module), somewhat as an experiment.
37439 * config/srclist.txt: Comment out mktime.c for now.
37440 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37441 since it doesn't apply any more. Use generic wording instead.
37442 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37444 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37445 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37446 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37447 Don't include <sys/types.h>; no longer needed since we assume C89.
37448 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37449 * lib/strftime.c: Likewise.
37450 * lib/time_r.c: Likewise.
37451 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37452 * lib/nanosleep.c: Include <time.h> first, to check interface.
37453 * lib/strptime.c: Likewise.
37454 * lib/time_r.c: Likewise.
37455 * lib/timegm.c: Likewise.
37456 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37458 * lib/timegm.c: Don't include timegm.h; no longer needed.
37459 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37460 time.h now handles any problems in that area.
37461 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37462 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37463 that time.h defines struct timespec.
37464 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37465 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37467 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37468 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37469 needed. Set REPLACE_LOCALTIME.
37470 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37471 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37472 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37473 nanosleep; time_h.m4 now does that. Don't require
37474 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37475 module handles this now.
37476 * modules/getdate (Depends-on): Remove timespec. Add time.
37477 * modules/nanosleep (Depends-on): Likewise.
37478 * modules/stat-time (Depends-on): Likewise.
37479 * modules/nanosleep (Include): Include time.h, not timespec.h.
37480 * modules/strptime (Files): Remove lib/strptime.h.
37481 (Depends-on): Add extensions, time.
37482 (Include): Include time.h, not strptime.h.
37483 * modules/time_r (Files): Remove lib/time_r.h.
37484 (Depends-on): Add time.
37485 (Include): Include time.h, not time_r.h.
37486 * modules/timegm: Likewise.
37487 * modules/timespec (Description): Now does timespec-related decls
37488 of our own, instead of struct timespec itself.
37489 (Depends-on): Add time; remove extensions.
37490 (Maintainer): Add self.
37491 * modules/utimecmp (Depends-on): Add time; remove timespec.
37492 * modules/utimens (Depends-on): Likewise.
37493 * modules/xnanosleep (Depends-on): Likewise.
37495 2007-02-11 Bruno Haible <bruno@clisp.org>
37497 * lib/c-strstr.c: Include allocsa.h.
37498 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37499 * lib/c-strcasestr.c: Include allocsa.h.
37500 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37501 * lib/strcasestr.c: Include allocsa.h.
37502 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37503 * lib/mbsstr.c: Include allocsa.h.
37504 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37505 allocsa/freesa instead of malloc/free.
37506 * lib/mbscasestr.c: Include allocsa.h.
37507 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37508 allocsa/freesa instead of malloc/free.
37509 * modules/c-strstr (Depends-on): Add allocsa.
37510 * modules/c-strcasestr (Depends-on): Likewise.
37511 * modules/strcasestr (Depends-on): Likewise.
37512 * modules/mbsstr (Depends-on): Likewise.
37513 * modules/mbscasestr (Depends-on): Likewise.
37515 2007-02-11 Bruno Haible <bruno@clisp.org>
37517 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37519 * modules/mbsspn-tests: New file.
37520 * tests/test-mbsspn.sh: New file.
37521 * tests/test-mbsspn.c: New file.
37523 2007-02-11 Bruno Haible <bruno@clisp.org>
37525 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37527 * modules/mbspbrk-tests: New file.
37528 * tests/test-mbspbrk.sh: New file.
37529 * tests/test-mbspbrk.c: New file.
37531 2007-02-11 Bruno Haible <bruno@clisp.org>
37533 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37536 * modules/mbscspn-tests: New file.
37537 * tests/test-mbscspn.sh: New file.
37538 * tests/test-mbscspn.c: New file.
37540 2007-02-11 Bruno Haible <bruno@clisp.org>
37542 * modules/mbscasecmp-tests: New file.
37543 * tests/test-mbscasecmp.sh: New file.
37544 * tests/test-mbscasecmp.c: New file.
37546 2007-02-11 Bruno Haible <bruno@clisp.org>
37548 Ensure O(n) worst-case complexity of mbscasestr.
37549 * lib/mbscasestr.c: Include stdbool.h.
37550 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37552 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37553 the bookkeeping indicates that it's worth it.
37554 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37556 * modules/mbscasestr-tests: New file.
37557 * tests/test-mbscasestr1.c: New file.
37558 * tests/test-mbscasestr2.sh: New file.
37559 * tests/test-mbscasestr2.c: New file.
37560 * tests/test-mbscasestr3.sh: New file.
37561 * tests/test-mbscasestr3.c: New file.
37562 * tests/test-mbscasestr4.sh: New file.
37563 * tests/test-mbscasestr4.c: New file.
37564 * m4/locale-tr.m4: New file.
37566 2007-02-11 Bruno Haible <bruno@clisp.org>
37568 Ensure O(n) worst-case complexity of mbsstr.
37569 * lib/mbsstr.c: Include stdbool.h.
37570 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37572 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37573 bookkeeping indicates that it's worth it.
37574 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37576 * modules/mbsstr-tests: New file.
37577 * tests/test-mbsstr1.c: New file.
37578 * tests/test-mbsstr2.sh: New file.
37579 * tests/test-mbsstr2.c: New file.
37580 * tests/test-mbsstr3.sh: New file.
37581 * tests/test-mbsstr3.c: New file.
37582 * m4/locale-fr.m4: New file.
37584 2007-02-11 Bruno Haible <bruno@clisp.org>
37586 * lib/mbsrchr.c (mbsrchr): Fix bug.
37588 * modules/mbsrchr-tests: New file.
37589 * tests/test-mbsrchr.sh: New file.
37590 * tests/test-mbsrchr.c: New file.
37592 2007-02-11 Bruno Haible <bruno@clisp.org>
37594 * lib/mbschr.c (mbschr): Fix bug.
37596 * modules/mbschr-tests: New file.
37597 * tests/test-mbschr.sh: New file.
37598 * tests/test-mbschr.c: New file.
37599 * m4/locale-zh.m4: New file.
37601 2007-02-11 Bruno Haible <bruno@clisp.org>
37603 Support for copying multibyte string iterators.
37604 * lib/mbiter.h: Include <string.h>.
37605 (mbiter_multi_copy): New function.
37606 (mbi_copy): New macro.
37607 * lib/mbuiter.h: Include <string.h>.
37608 (mbuiter_multi_copy): New function.
37609 (mbui_copy): New macro.
37611 2007-02-11 Bruno Haible <bruno@clisp.org>
37614 * modules/mbslen: New file.
37615 * lib/mbslen.c: New file.
37616 * lib/string_.h (mbslen): New declaration.
37617 * m4/mbslen.m4: New file.
37618 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37620 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37621 * MODULES.html.sh (Internationalization functions): Add mbslen.
37623 2007-02-11 Bruno Haible <bruno@clisp.org>
37625 Ensure O(n) worst-case complexity of strcasestr substitute.
37626 * lib/strcasestr.c: Include stdbool.h.
37627 (knuth_morris_pratt): New function.
37628 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37629 bookkeeping indicates that it's worth it.
37630 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37632 * modules/strcasestr-tests: New file.
37633 * tests/test-strcasestr.c: New file.
37635 2007-02-11 Bruno Haible <bruno@clisp.org>
37637 Ensure O(n) worst-case complexity of c_strcasestr.
37638 * lib/c-strcasestr.c: Include stdbool.h, string.h.
37639 (knuth_morris_pratt): New function.
37640 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37641 the bookkeeping indicates that it's worth it.
37642 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37644 * modules/c-strcasestr-tests: New file.
37645 * tests/test-c-strcasestr.c: New file.
37647 2007-02-11 Bruno Haible <bruno@clisp.org>
37649 Ensure O(n) worst-case complexity of c_strstr.
37650 * lib/c-strstr.c: Include stdbool.h, string.h.
37651 (knuth_morris_pratt): New function.
37652 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37653 bookkeeping indicates that it's worth it.
37654 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37656 * lib/c-strstr.c: Complete rewrite for maintainability.
37658 * modules/c-strstr-tests: New file.
37659 * tests/test-c-strstr.c: New file.
37661 2007-02-11 Bruno Haible <bruno@clisp.org>
37663 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37664 5.2.1 and earlier, whereby \055 was treated just like the range
37666 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37668 2007-02-08 Bruno Haible <bruno@clisp.org>
37670 * modules/regex (Depends-on): Add stdbool.
37671 Reported by Dalibor Topic <robilad@kaffe.org>.
37673 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
37675 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37676 Prefer returning from main to exiting from it.
37677 Remove unnecessary parens after sizeof.
37679 2007-02-05 Bruno Haible <bruno@clisp.org>
37682 * modules/mbssep: New file.
37683 * lib/mbssep.c: New file.
37684 * lib/string_.h (strsep): Add a conditional link warning.
37685 (mbssep): New declaration.
37686 * m4/mbssep.m4: New file.
37687 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37689 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37690 * MODULES.html.sh (Internationalization functions): Add mbssep.
37692 2007-02-05 Bruno Haible <bruno@clisp.org>
37694 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37695 Optimize search in case of 1 delimiter.
37697 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37699 * lib/acl.h: Include sys/types.h before sys/acl.h.
37701 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37703 Merge upstream fix for glibc bugzilla #3957:
37705 2007-02-05 Jakub Jelinek <jakub@redhat.com>
37707 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37708 bit for RE_HAT_LISTS_NOT_NEWLINE.
37709 (build_charclass_op): Remove bogus comment.
37711 2007-02-05 Simon Josefsson <simon@josefsson.org>
37713 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37715 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37717 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37718 * lib/memmem.c [!defined _LIBC]: Include config.h.
37720 2007-02-04 Bruno Haible <bruno@clisp.org>
37722 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37725 2007-02-04 Bruno Haible <bruno@clisp.org>
37727 New module mbstok_r.
37728 * modules/mbstok_r: New file.
37729 * lib/mbstok_r.c: New file.
37730 * lib/string_.h (strtok_r): Change argument names to match the
37731 comments. Add a conditional link warning.
37732 (mbstok_r): New declaration.
37733 * m4/mbstok_r.m4: New file.
37734 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37736 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37737 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37739 2007-02-04 Bruno Haible <bruno@clisp.org>
37742 * modules/mbsspn: New file.
37743 * lib/mbsspn.c: New file.
37744 * lib/string_.h (strspn): Add a conditional link warning.
37745 (mbsspn): New declaration.
37746 * m4/mbsspn.m4: New file.
37747 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37749 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37750 * MODULES.html.sh (Internationalization functions): Add mbsspn.
37752 2007-02-04 Bruno Haible <bruno@clisp.org>
37754 New module mbspbrk.
37755 * modules/mbspbrk: New file.
37756 * lib/mbspbrk.c: New file.
37757 * lib/string_.h (strpbrk): Add a conditional link warning.
37758 (mbspbrk): New declaration.
37759 * m4/mbspbrk.m4: New file.
37760 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37762 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37763 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37765 2007-02-04 Bruno Haible <bruno@clisp.org>
37767 New module mbscspn.
37768 * modules/mbscspn: New file.
37769 * lib/mbscspn.c: New file.
37770 * lib/string_.h (strcspn): Add a conditional link warning.
37771 (mbscspn): New declaration.
37772 * m4/mbscspn.m4: New file.
37773 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37775 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37776 * MODULES.html.sh (Internationalization functions): Add mbscspn.
37778 2007-02-04 Bruno Haible <bruno@clisp.org>
37780 New module mbscasestr, reduced goal of strcasestr.
37781 * modules/mbscasestr: New file.
37782 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37783 (mbscasestr): Renamed from strcasestr.
37784 * lib/strcasestr.c: Don't include mbuiter.h.
37785 (strcasestr): Remove support for multibyte locales.
37786 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37787 Change the conditional link warning.
37788 (mbscasestr): New declaration.
37789 * m4/mbscasestr.m4: New file.
37790 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37791 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37792 REPLACE_STRCASESTR.
37793 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37794 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37795 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37796 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37797 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37798 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37799 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37800 (Depends-on): Remove mbuiter.
37801 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37803 2007-02-04 Bruno Haible <bruno@clisp.org>
37805 Simplify handling of strncasecmp.
37806 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37807 the conditional link warning.
37808 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37809 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37810 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37811 * modules/strcase (configure.ac): Don't invoke
37812 gl_STRING_MODULE_INDICATOR.
37813 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37815 2007-02-04 Bruno Haible <bruno@clisp.org>
37817 New module mbscasecmp, reduced goal of strcasecmp.
37818 * modules/mbscasecmp: New file.
37819 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37820 (mbscasecmp): Renamed from strcasecmp.
37821 * lib/strcasecmp.c: Don't include mbuiter.h.
37822 (strcasecmp): Remove support for multibyte locales.
37823 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37824 Change the conditional link warning.
37825 (mbscasecmp): New declaration.
37826 * m4/mbscasecmp.m4: New file.
37827 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37828 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37829 REPLACE_STRCASECMP.
37830 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37831 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37833 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37834 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37835 * modules/strcase (Files): Remove m4/mbrtowc.m4.
37836 (Depends-on): Remove mbuiter.
37837 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37839 2007-02-04 Bruno Haible <bruno@clisp.org>
37841 New module mbsstr. Remove module strstr.
37842 * modules/mbsstr: New file.
37843 * modules/strstr: Remove file.
37844 * lib/mbsstr.c: Renamed from lib/strstr.c.
37845 (mbsstr): Renamed from strstr.
37846 * lib/string_.h (strstr): Remove declaration. Change the conditional
37848 (mbsstr): New declaration.
37849 * m4/mbsstr.m4: New file.
37850 * m4/strstr.m4: Remove file.
37851 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37853 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37854 Don't initialize GNULIB_STRSTR.
37855 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37856 substitute GNULIB_STRSTR and REPLACE_STRSTR.
37857 * MODULES.html.sh (Internationalization functions): Add mbsstr.
37858 (Support for systems lacking ANSI C 89): Remove strstr.
37860 2007-02-04 Bruno Haible <bruno@clisp.org>
37862 New module mbsrchr.
37863 * modules/mbsrchr: New file.
37864 * lib/mbsrchr.c: New file.
37865 * lib/string_.h (strrchr): Add a conditional link warning.
37866 (mbsrchr): New declaration.
37867 * m4/mbsrchr.m4: New file.
37868 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37870 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37871 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37873 2007-02-04 Bruno Haible <bruno@clisp.org>
37876 * modules/mbschr: New file.
37877 * lib/mbschr.c: New file.
37878 * lib/string_.h (strchr): Add a conditional link warning.
37879 (mbschr): New declaration.
37880 * m4/mbschr.m4: New file.
37881 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37883 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37884 * MODULES.html.sh (Internationalization functions): Add mbschr.
37886 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37888 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37890 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37892 2007-02-04 Bruno Haible <bruno@clisp.org>
37894 New module description section 'configure.ac-early'.
37895 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37896 (func_get_autoconf_early_snippet): New function.
37897 (func_import, func_create_testdir): Use it. Remove special cases for
37898 modules 'extensions' and 'lock'.
37899 * modules/extensions (configure.ac-early): Require
37900 gl_USE_SYSTEM_EXTENSIONS.
37901 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37903 2007-02-04 Bruno Haible <bruno@clisp.org>
37905 Make use of gcj-4.3's -fsource and -ftarget option.
37906 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37907 and if so try the options -fsource and -ftarget.
37908 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37909 source_version, ftarget_option, target_version arguments.
37910 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37911 (is_envjavac_oldgcj_14_14_usable): Renamed from
37912 is_envjavac_gcj_14_14_usable.
37913 (is_envjavac_oldgcj_14_13_usable): Renamed from
37914 is_envjavac_gcj_14_13_usable.
37915 (is_gcj_present): Update.
37916 (is_gcj_43, is_gcj43_usable): New functions.
37917 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37918 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37919 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37920 try the options -fsource and -ftarget.
37922 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37924 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37925 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37928 2007-02-03 Jim Meyering <jim@meyering.net>
37930 Give tools a better chance to allocate space for very large buffers.
37931 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37933 Make pwd and readlink work also when run with an unreadable parent dir
37934 on systems with openat support.
37935 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37936 provided getcwd function, even when we have openat support.
37937 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37939 2007-02-02 Bruno Haible <bruno@clisp.org>
37941 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37942 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37943 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37944 portability problems if one of these functions is only used on specific
37946 Reported by Paul Eggert.
37948 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
37950 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37951 is causing more trouble than it's curing.
37952 * lib/regex_internal.h (__mempcpy): Remove.
37953 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37954 (and make the code a tad smaller to boot).
37955 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37957 2007-02-02 Jim Meyering <jim@meyering.net>
37959 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37960 section, not in the Makefile.am: one.
37962 2007-02-02 Eric Blake <ebb9@byu.net>
37964 * lib/strchrnul.c: Always include config.h first.
37966 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37967 gnulib strstr is not necessary here.
37969 2007-02-02 Simon Josefsson <simon@josefsson.org>
37971 * m4/socklen.m4: Fix typo.
37973 2007-02-02 Eric Blake <ebb9@byu.net>
37975 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37976 * modules/netinet_in (Makefile.am): Likewise.
37978 2007-02-01 Bruno Haible <bruno@clisp.org>
37980 * lib/string_.h (GL_LINK_WARNING): New macro.
37981 (strcasecmp, strstr, strcasestr): If provided by the system,
37982 conditionally define as a macro that leads to a warning instead of to
37984 (strncasecmp): Conditionally define as a macro that leads to a warning.
37986 2007-02-01 Karl Berry <karl@gnu.org>
37988 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37990 2007-02-01 Bruno Haible <bruno@clisp.org>
37992 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37995 2007-02-01 Eric Blake <ebb9@byu.net>
37997 * modules/regex (Depends-on): Revert dependence on mempcpy.
37998 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37999 module's definition of mempcpy.
38000 Reported by Paul Eggert.
38002 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
38004 * lib/string_.h: If the gnulib module XYZ is not present, undefine
38005 the symbol XYZ before redefining it. This fixes a problem with
38006 programs that don't use XYZ, when compiled on systems that define
38007 XYZ to something else.
38009 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
38011 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38012 occurs when "mkdir -m foo" creates a setgid directory that is (1)
38013 writeable to group or other and (2) is intended to have a special
38014 mode bit that is set or cleared. In such a case, the directory
38015 should be neither group- nor other-writeable until the special
38016 mode bits are right.
38018 2007-01-31 Eric Blake <ebb9@byu.net>
38020 * modules/mountlist (Depends-on): Add strstr.
38022 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38024 * modules/string (Makefile.am): Remove redundant replacement.
38025 * modules/regex (Depends-on): Add mempcpy.
38027 2007-01-31 Bruno Haible <bruno@clisp.org>
38029 New module description field 'Link'.
38030 * gnulib-tool (func_usage): Document --extract-link-directive.
38031 (sed_extract_prog): Recognize 'Link' directive.
38032 (func_get_link_directive): New function.
38033 (func_import): Show summary of link directives.
38034 Handle --extract-link-directive option.
38035 * modules/acl (Link): New section.
38036 * modules/clock-time (Link): New section.
38037 * modules/euidaccess (Link): New section.
38038 * modules/gettext (Link): New section.
38039 * modules/iconv (Link): New section.
38040 * modules/lock (Link): New section.
38041 * modules/nanosleep (Link): New section.
38042 * modules/readline (Link): New section.
38044 2007-01-27 Bruno Haible <bruno@clisp.org>
38046 Enforce the use of gnulib modules for unportable <string.h> functions.
38047 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38048 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38049 (gl_HEADER_STRING_H_BODY): Require it.
38050 * lib/string_.h: If the gnulib module XYZ is not present, redefine
38051 the symbol XYZ to one that gives a link error.
38052 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38053 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38054 * modules/mempcpy (configure.ac): Likewise.
38055 * modules/memrchr (configure.ac): Likewise.
38056 * modules/stpcpy (configure.ac): Likewise.
38057 * modules/stpncpy (configure.ac): Likewise.
38058 * modules/strcase (configure.ac): Likewise.
38059 * modules/strcasestr (configure.ac): Likewise.
38060 * modules/strchrnul (configure.ac): Likewise.
38061 * modules/strdup (configure.ac): Likewise.
38062 * modules/strndup (configure.ac): Likewise.
38063 * modules/strnlen (configure.ac): Likewise.
38064 * modules/strpbrk (configure.ac): Likewise.
38065 * modules/strsep (configure.ac): Likewise.
38066 * modules/strstr (configure.ac): Likewise.
38067 * modules/strtok_r (configure.ac): Likewise.
38069 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
38071 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38073 2007-01-30 Jim Meyering <jim@meyering.net>
38075 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38077 2007-01-29 Bruno Haible <bruno@clisp.org>
38079 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38080 * lib/execute.c: Likewise.
38081 * lib/pipe.c: Likewise.
38082 * lib/printf-args.h: Likewise.
38083 * lib/printf-args.c: Likewise.
38084 * lib/printf-parse.c: Likewise.
38085 * lib/vasnprintf.c: Likewise.
38087 2007-01-29 Eric Blake <ebb9@byu.net>
38089 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38092 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
38094 * lib/strptime.h (strptime): Use 'restrict' for args where
38095 POSIX requires this.
38096 * lib/strptime.c (strptime): Likewise.
38097 Change license notice from LGPL to GPL, since gnulib-tool will
38098 change this as needed.
38099 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38101 Include "strptime.h" first, to check interface.
38102 Do not #undef _LIBC and _NL_CURRENT.
38103 Do not include <stdlib.h>; no longer needed.
38104 Include "time_r.h" and declare ptime_locale_status
38105 only if _LIBC is not defined.
38106 (__P): Remove unused macro.
38107 (match_string): Bring back glibc version, but use it only if _LIBC
38109 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38110 Remove unnecessary assertion and abort() call.
38111 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38112 * m4/strptime.m4: Fix serial number comment.
38113 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38114 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38115 (Depends-on): Add time_r.
38117 2007-01-29 Bruno Haible <bruno@clisp.org>
38119 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38121 * modules/strptime (Depends-on): Add stdbool.
38122 * lib/strptime.h: Include <time.h> always. Add comments.
38124 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
38126 * modules/strptime: New file.
38127 * lib/strptime.h: New file.
38128 * lib/strptime.c: New file.
38129 * m4/strptime.m4: New file.
38131 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
38133 * MODULES.html.sh: New module mpsort.
38134 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38136 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38137 a circularity problem with HP-UX ia64 reported by Bob Proulx in
38138 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38140 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38142 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38144 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38145 the parameter matches the prototype.
38147 2007-01-28 Jim Meyering <jim@meyering.net>
38149 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38150 sys/time.h here, reverting that part of the previous patch:
38151 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38153 2007-01-28 Bruno Haible <bruno@clisp.org>
38155 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38156 value of $(SYS_TIME_H).
38157 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38158 remove it conditionally, too. [added by Jim Meyering]
38159 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38160 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38161 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38162 GETTIMEOFDAY_REPLACEMENT to 1.
38164 2007-01-28 Bruno Haible <bruno@clisp.org>
38166 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38167 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38168 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38169 Set UNISTD_H instead of UNISTD_H2.
38170 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38172 2007-01-28 Bruno Haible <bruno@clisp.org>
38174 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38175 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38177 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38179 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38180 (func_create_testdir): Ensure C locale for `grep' and `tr'
38182 (func_create_megatestdir): Avoid one `grep'. Fix bug in
38183 ACLOCAL_AMFLAGS parsing state machine.
38185 2007-01-27 Bruno Haible <bruno@clisp.org>
38187 * modules/unistr/base: Update.
38189 2007-01-27 Bruno Haible <bruno@clisp.org>
38191 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38192 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38193 * modules/unistr/u32-mbtouc-unsafe: Renamed from
38194 modules/unistr/u32-mbtouc.
38195 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38196 * lib/unistr.h: Update.
38197 * lib/linebreak.c: Update.
38198 * modules/unistr/u32-mbtouc: Renamed from
38199 modules/unistr/u32-mbtouc-safe.
38200 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38201 * lib/unistr.h: Update.
38202 * lib/unistr/u32-to-u8.c: Update.
38203 * lib/unistr/u32-to-u16.c: Update.
38205 2007-01-27 Bruno Haible <bruno@clisp.org>
38207 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38208 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38209 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38210 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38211 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38212 * modules/unistr/u16-mbtouc-unsafe: Renamed from
38213 modules/unistr/u16-mbtouc.
38214 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38215 * lib/unistr.h: Update.
38216 * lib/linebreak.c: Update.
38217 * modules/linebreak: Update.
38218 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38219 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38220 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38221 * modules/unistr/u16-mbtouc: Renamed from
38222 modules/unistr/u16-mbtouc-safe.
38223 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38224 * lib/unistr.h: Update.
38225 * lib/unistr/u16-to-u8.c: Update.
38226 * modules/unistr/u16-to-u8: Update.
38227 * lib/unistr/u16-to-u32.c: Update.
38228 * modules/unistr/u16-to-u32: Update.
38230 2007-01-27 Bruno Haible <bruno@clisp.org>
38232 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38233 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38234 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38235 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38236 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38237 * modules/unistr/u8-mbtouc-unsafe: Renamed from
38238 modules/unistr/u8-mbtouc.
38239 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38240 * lib/unistr.h: Update.
38241 * lib/striconveh.c: Update.
38242 * modules/striconveh: Update.
38243 * lib/linebreak.c: Update.
38244 * modules/linebreak: Update.
38245 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38246 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38247 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38248 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38249 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38250 * lib/unistr.h: Update.
38251 * lib/striconveh.c: Update.
38252 * modules/striconveh: Update.
38253 * lib/unistr/u8-to-u16.c: Update.
38254 * modules/unistr/u8-to-u16: Update.
38255 * lib/unistr/u8-to-u32.c: Update.
38256 * modules/unistr/u8-to-u32: Update.
38258 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38261 * lib/argz.c: Do not include strings.h nor memory.h, include
38262 string.h unconditionally. Patch by Simon Josefsson.
38264 2007-01-27 Bruno Haible <bruno@clisp.org>
38266 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38267 from gl_HEADER_STRING_H_BODY.
38268 (gl_HEADER_STRING_H_BODY): Require it.
38269 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38270 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38271 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38272 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38273 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38274 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38275 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38276 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38277 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38278 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38279 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38280 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38281 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38282 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38283 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38285 2007-01-27 Bruno Haible <bruno@clisp.org>
38287 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38288 check_PROGRAMS into noinst_PROGRAMS.
38289 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38290 check_PROGRAMS in this case.
38291 (func_import): Set for_test to false.
38292 (func_create_testdir): Set for_test to true.
38294 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38295 Bruno Haible <bruno@clisp.org>
38297 * modules/strcasestr (Files): Remove lib/strcasestr.h.
38298 (Depends-on): Add string.
38299 (Includes): Use <string.h> instead of strcasestr.h.
38300 * modules/string (Makefile.am): Also substitute the value of
38301 REPLACE_STRCASESTR.
38302 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38303 assume strcasestr is declared in <string.h> not <strings.h>. Also
38304 set REPLACE_STRCASESTR.
38305 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38306 REPLACE_STRCASESTR.
38307 * lib/strcasestr.h: Remove file.
38308 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38309 * lib/string_.h (strcasestr): New declaration.
38311 2007-01-27 Bruno Haible <bruno@clisp.org>
38313 * lib/string_.h: Use 'extern'.
38315 2007-01-27 Jim Meyering <jim@meyering.net>
38317 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38318 of set-but-not-used local, "q".
38320 * lib/mempcpy.c: Include <config.h> before <string.h>.
38321 This fixes a compilation error on HP-UX, due to the system's
38322 "restrict"-using mempcpy prototype.
38324 2007-01-26 Bruno Haible <bruno@clisp.org>
38326 Small optimization.
38327 * lib/javacomp.c: Include c-strstr.h.
38328 (is_envjavac_gcj): Use c_strstr instead of strstr.
38329 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38331 2007-01-26 Bruno Haible <bruno@clisp.org>
38333 * MODULES.html.sh (Unicode string functions): Add the new modules.
38335 * modules/uniconv/u32-strconv-to-locale: New file.
38336 * lib/uniconv/u32-strconv-to-locale.c: New file.
38338 * modules/uniconv/u16-strconv-to-locale: New file.
38339 * lib/uniconv/u16-strconv-to-locale.c: New file.
38341 * modules/uniconv/u8-strconv-to-locale: New file.
38342 * lib/uniconv/u8-strconv-to-locale.c: New file.
38344 * modules/uniconv/u32-strconv-from-locale: New file.
38345 * lib/uniconv/u32-strconv-from-locale.c: New file.
38347 * modules/uniconv/u16-strconv-from-locale: New file.
38348 * lib/uniconv/u16-strconv-from-locale.c: New file.
38350 * modules/uniconv/u8-strconv-from-locale: New file.
38351 * lib/uniconv/u8-strconv-from-locale.c: New file.
38353 * modules/uniconv/u32-strconv-to-enc: New file.
38354 * lib/uniconv/u32-strconv-to-enc.c: New file.
38355 * modules/uniconv/u32-strconv-to-enc-tests: New file.
38356 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38358 * modules/uniconv/u16-strconv-to-enc: New file.
38359 * lib/uniconv/u16-strconv-to-enc.c: New file.
38360 * lib/uniconv/u-strconv-to-enc.h: New file.
38361 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38362 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38364 * modules/uniconv/u8-strconv-to-enc: New file.
38365 * lib/uniconv/u8-strconv-to-enc.c: New file.
38366 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38367 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38369 * modules/uniconv/u32-strconv-from-enc: New file.
38370 * lib/uniconv/u32-strconv-from-enc.c: New file.
38371 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38372 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38374 * modules/uniconv/u16-strconv-from-enc: New file.
38375 * lib/uniconv/u16-strconv-from-enc.c: New file.
38376 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38377 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38379 * modules/uniconv/u8-strconv-from-enc: New file.
38380 * lib/uniconv/u8-strconv-from-enc.c: New file.
38381 * lib/uniconv/u-strconv-from-enc.h: New file.
38382 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38383 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38385 * modules/uniconv/u32-conv-from-enc: New file.
38386 * lib/uniconv/u32-conv-from-enc.c: New file.
38387 * modules/uniconv/u32-conv-from-enc-tests: New file.
38388 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38390 * modules/uniconv/u16-conv-from-enc: New file.
38391 * lib/uniconv/u16-conv-from-enc.c: New file.
38392 * lib/uniconv/u-conv-from-enc.h: New file.
38393 * modules/uniconv/u16-conv-from-enc-tests: New file.
38394 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38396 * modules/uniconv/u8-conv-from-enc: New file.
38397 * lib/uniconv/u8-conv-from-enc.c: New file.
38398 * modules/uniconv/u8-conv-from-enc-tests: New file.
38399 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38401 * modules/uniconv/base: New file.
38402 * lib/uniconv.h: New file.
38404 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38406 * doc/gnulib-tool.texi (Initial import): Update to match current
38407 behavior with strdup module.
38408 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38409 * lib/memmem.h: Remove; all uses removed. This is now done
38411 * lib/mempcpy.h: Likewise.
38412 * lib/memrchr.h: Likewise.
38413 * lib/stpcpy.h: Likewise.
38414 * lib/stpncpy.h: Likewise.
38415 * lib/strcase.h: Likewise.
38416 * lib/strchrnul.h: Likewise.
38417 * lib/strdup.h: Likewise.
38418 * lib/strndup.h: Likewise.
38419 * lib/strnlen.h: Likewise.
38420 * lib/strpbrk.h: Likewise.
38421 * lib/strsep.h: Likewise.
38422 * lib/strstr.h: Likewise.
38423 * lib/strtok_r.h: Likewise.
38424 * lib/string_.h: New file.
38425 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38426 Rely on <string.h> instead.
38427 * lib/canon-host.c: Likewise.
38428 * lib/chdir-long.c: Likewise.
38429 * lib/concatpath.c: Likewise.
38430 * lib/exclude.c: Likewise.
38431 * lib/fchdir.c: Likewise.
38432 * lib/getaddrinfo.c: Likewise.
38433 * lib/getcwd.c: Likewise.
38434 * lib/getsubopt.c: Likewise.
38435 * lib/glob.c: Likewise.
38436 * lib/hard-locale.c: Likewise.
38437 * lib/iconvme.c: Likewise.
38438 * lib/javacomp.c: Likewise.
38439 * lib/mempcpy.c: Likewise.
38440 * lib/memrchr.c: Likewise.
38441 * lib/regex_internal.h: Likewise.
38442 * lib/stpncpy.c: Likewise.
38443 * lib/strcasecmp.c: Likewise.
38444 * lib/strchrnul.c: Likewise.
38445 * lib/strdup.c: Likewise.
38446 * lib/striconv.c: Likewise.
38447 * lib/striconveh.c: Likewise.
38448 * lib/striconveha.c: Likewise.
38449 * lib/strncasecmp.c: Likewise.
38450 * lib/strndup.c: Likewise.
38451 * lib/strnlen.c: Likewise.
38452 * lib/strsep.c: Likewise.
38453 * lib/strstr.c: Likewise.
38454 * lib/strtok_r.c: Likewise.
38455 * lib/userspec.c: Likewise.
38456 * lib/w32spawn.h: Likewise.
38457 * lib/xstrndup.c: Likewise.
38458 * lib/mountlist.c (strstr): Remove decl.
38459 * m4/string_h.m4: New file.
38460 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38461 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38462 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38463 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38464 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38465 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38466 Set REPLACE_STRCASECMP if necessary.
38467 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38468 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38469 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38470 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38471 HAVE_DECL_STRDUP if necessary.
38472 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38473 since gl_FUNC_STRNDUP does that now.
38474 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38475 Check for decl here...
38476 (gl_PREREQ_STRNLEN): ... not here.
38477 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38478 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38479 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38480 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38482 * modules/string: New file.
38483 * modules/memmem (Files): Remove special-purpose include file.
38484 (Depends-on): Add string.
38485 (Include): Include <string.h>, not the removed file.
38486 * modules/mempcpy: Likewise.
38487 * modules/memrchr: Likewise.
38488 * modules/stpcpy: Likewise.
38489 * modules/stpncpy: Likewise.
38490 * modules/strcase: Likewise.
38491 * modules/strchrnul: Likewise.
38492 * modules/strdup: Likewise.
38493 * modules/strndup: Likewise.
38494 * modules/strnlen: Likewise.
38495 * modules/strpbrk: Likewise.
38496 * modules/strsep: Likewise.
38497 * modules/strstr: Likewise.
38498 * modules/strtok_r: Likewise.
38499 * tests/test-dirname.c: Don't include "strdup.h", since
38500 <string.h> now suffices.
38501 * tests/test-memmem.c: Don't include "memmem.h", since
38502 <string.h> now suffices.
38504 2007-01-25 Bruno Haible <bruno@clisp.org>
38506 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38509 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38510 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38511 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38512 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38514 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38515 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38516 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38517 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38518 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38519 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38521 2007-01-24 Bruno Haible <bruno@clisp.org>
38523 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38524 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38525 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38526 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38528 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38529 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38530 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38531 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38532 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38533 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38535 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38537 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38538 Reported by Ralf Wildenhues.
38540 2007-01-24 Bruno Haible <bruno@clisp.org>
38542 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38543 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38545 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38546 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38547 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38549 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38551 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38552 Don't use 'exit'; just return from 'main'.
38553 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38555 * lib/fnmatch_.h: Readjust white space and comments to match
38556 glibc, to avoid spurious diffs.
38558 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38560 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38561 2004-12-01 change by Jakub Jelinek, since this code won't compile
38562 if !LIBC. Problem reported by Bob Proulx.
38564 2007-01-23 Bruno Haible <bruno@clisp.org>
38566 * lib/striconveh.c: Include c-strcaseeq.h.
38567 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38568 * modules/striconveh (Depends-on): Add c-strcaseeq.
38570 2007-01-23 Bruno Haible <bruno@clisp.org>
38572 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38574 * modules/c-strcaseeq: New file.
38575 * lib/c-strcaseeq.h: New file.
38577 * modules/streq: New file.
38578 * lib/streq.h: New file.
38580 2007-01-23 Bruno Haible <bruno@clisp.org>
38582 * modules/striconveha-tests: New file.
38583 * tests/test-striconveha.c: New file.
38585 * lib/striconveha.h: Include <stdbool.h>.
38586 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38587 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38588 (mem_iconveha_notranslit): Renamed from mem_iconveha.
38589 (mem_iconveha): New function.
38590 (str_iconveha_notranslit): Renamed from str_iconveha.
38591 (str_iconveha): New function.
38592 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38595 2007-01-23 Bruno Haible <bruno@clisp.org>
38597 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38598 encodings without forgiving before trying any encoding with handler.
38599 (str_iconveha): Try all encodings without forgiving before trying any
38600 encoding with handler.
38602 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38604 Import the following changes from libc.
38606 2005-10-14 Ulrich Drepper <drepper@redhat.com>
38608 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38610 2004-12-01 Jakub Jelinek <jakub@redhat.com>
38612 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38613 normal_bracket label.
38615 2004-09-01 Jakub Jelinek <jakub@redhat.com>
38618 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38619 to normal_bracket after fetching the next character.
38621 2007-01-22 Bruno Haible <bruno@clisp.org>
38623 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38625 * lib/striconveh.c (iconv_carefully_1): New function.
38626 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38628 (str_cd_iconveh): Update.
38629 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38630 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38631 * tests/test-striconveh.c (MAGIC): New macro.
38632 (new_offsets): New function.
38633 (main): Test call with and without offsets.
38635 2007-01-22 Bruno Haible <bruno@clisp.org>
38637 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38638 * modules/sys_select (Makefile.am): Likewise.
38639 * modules/sys_socket (Makefile.am): Likewise.
38640 * modules/sys_time (Makefile.am): Likewise.
38642 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
38644 * modules/gettimeofday (License): Change from GPL to LGPL, since
38645 gettimeofday is a library function.
38647 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38649 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38651 2007-01-21 Bruno Haible <bruno@clisp.org>
38653 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38655 2007-01-21 Bruno Haible <bruno@clisp.org>
38657 * modules/striconveha: New file.
38658 * lib/striconveha.h: New file.
38659 * lib/striconveha.c: New file.
38660 * MODULES.html.sh (Internationalization functions): Add striconveha.
38661 * lib/striconv.c (str_iconv): Optimize the case of an empty input
38663 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38665 2007-01-21 Bruno Haible <bruno@clisp.org>
38667 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38668 * lib/striconveh.c (str_iconveh): Likewise.
38670 2007-01-21 Bruno Haible <bruno@clisp.org>
38672 * lib/striconveh.h (mem_iconveh): New declaration.
38673 * lib/striconveh.c (mem_iconveh): New function.
38674 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38676 2007-01-21 Bruno Haible <bruno@clisp.org>
38678 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38680 * lib/striconveh.h (mem_cd_iconveh): Change specification.
38681 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38682 original result buffer.
38683 (str_cd_iconveh): Update.
38684 * tests/test-striconveh.c (main): Update.
38686 * lib/striconv.h (mem_cd_iconv): Change specification.
38687 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38689 (str_cd_iconv): Update.
38690 * tests/test-striconv.c (main): Update.
38692 2007-01-21 Bruno Haible <bruno@clisp.org>
38694 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38696 2007-01-20 Jim Meyering <jim@meyering.net>
38698 * lib/userspec.c (parse_with_separator): If a user or group string
38699 starts with "+", skip the corresponding name-to-ID look-up, since
38700 such a look-up must fail: user and group names may not include "+".
38702 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
38704 * lib/poll.c: Include sys/time.h and time.h unconditionally,
38705 since we now assume the sys_time module.
38706 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38707 check for sys/time.h; no longer needed.
38708 * modules/poll (Depends-on): Depend on sys_time.
38710 2007-01-18 Bruno Haible <bruno@clisp.org>
38712 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38713 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38715 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38718 * tests/test-gettimeofday.c: Include <time.h>.
38719 (dummy): Remove variable.
38721 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38722 gl_HEADER_SYS_TIME_H.
38723 (gl_HEADER_SYS_TIME_H): New macro.
38725 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38726 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38727 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38728 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38729 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38730 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38731 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38732 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38733 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38734 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38735 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38737 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38738 last change; it caused a compilation error when cross-compiling to
38741 2007-01-18 Jim Meyering <jim@meyering.net>
38743 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38744 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38745 than the race-prone "test -d sys || mkdir sys".
38746 (configure.ac): Use AC_PROG_MKDIR_P.
38747 * modules/sys_select: Likewise.
38748 * modules/sys_socket: Likewise.
38749 * modules/sys_time: Likewise.
38751 2007-01-18 Eric Blake <ebb9@byu.net>
38753 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38754 replace gettimeofday.
38755 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38756 name, to avoid infinite recursion.
38758 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
38760 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38762 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38763 assume timespec.h defines struct timeval.
38764 * lib/settime.c: Likewise.
38765 * lib/utimens.c: Likewise.
38766 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38767 since we now assume the gettimeofday module.
38768 * lib/tempname.c (__gen_tempname): Likewise.
38769 * lib/gettimeofday.h: Remove.
38770 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38771 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38772 Include <time.h>, for 'time()'.
38773 (localtime_buffer_addr): Also use this workaround if
38774 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
38775 to simplify the uses. All uses changed.
38776 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38777 that #undef is inside {}, and 'const' follows type name consistently.
38778 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38779 (gettimeofday): Do not use the maximum possible value for
38780 tv->tv_usec, since that might break usages other than ls.c.
38781 Instead, we'll leave ls.c alone. This undoes today's patch
38782 by Bruno. Add a compile-time warning for 1s-clock resolution;
38783 we've never observed the problem but might as well keep the
38785 * lib/nanosleep.c: Include timespec.h first, for interface check.
38786 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38787 now assume the sys_time module.
38788 * lib/tempname.c: Likewise.
38789 * lib/timespec.h: Likewise.
38790 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38792 * lib/strftime.c: Likewise.
38793 * lib/timespec.h: Likewise.
38794 * lib/posixtm.c: Include posixtm.h first, for interface check.
38795 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38796 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38797 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38798 * lib/sys_time_.h: New file.
38799 * lib/timespec.h (struct timespec): Use long int, not long.
38800 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38801 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38802 Remove obsolescent call to AC_HEADER_TIME.
38803 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38804 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38805 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38806 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38808 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38809 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38810 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38811 into the sys_time module. Check for gettimeofday just once.
38812 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
38813 for gettimeofday signature to just check the signature. Merely
38814 compile it, since linking doesn't test signature. Improve test for
38815 whether gettimeofday.o is actually needed.
38816 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38817 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
38818 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
38819 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38820 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38821 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38822 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38823 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38824 than worrying about sys/time.h.
38825 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38826 Don't bother worrying about TIME_WITH_SYS_TIME.
38827 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38828 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38829 * m4/sys_time_h.m4: New file.
38830 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38831 Don't include sys/time.h. Return from main rather than exiting.
38832 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38834 * modules/gethrxtime (Depends-on): Add sys_time.
38835 * modules/gettime (Depends-on): Likewise.
38836 * modules/gettimeofday (Depends-on): Likewise.
38837 * modules/nanosleep (Depends-on): Likewise.
38838 * modules/settime (Depends-on): Likewise.
38839 * modules/tempname (Depends-on): Likewise.
38840 * modules/utimens (Depends-on): Likewise.
38841 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38842 (Include:) Change back to <sys/time.h>.
38843 (Maintainer:) Add self.
38844 * modules/sys_time: New file.
38845 * modules/tempname (Depends-on): Add gettimeofday.
38846 * tests/test-gettimeofday.c: Include <sys/time.h>
38847 rather than gettimeofday.h.
38849 2007-01-17 Bruno Haible <bruno@clisp.org>
38851 * gnulib-tool (func_get_license): Revert last patch. Instead, let
38852 the license default to GPL.
38853 (func_create_testdir): Don't complain if a module is LGPL and its
38854 tests module depends on GPLed modules.
38856 2007-01-17 Bruno Haible <bruno@clisp.org>
38858 * lib/gettimeofday.c (gettimeofday): Add code for the case
38859 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38860 maximum possible value for tv->tv_usec, rather than the minimum one.
38862 2005-10-08 Martin Lambers <marlam@marlam.de>
38863 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38864 2007-01-16 Bruno Haible <bruno@clisp.org>
38866 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38867 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38868 gl_FUNC_GETTIMEOFDAY.
38869 (Include): Add gettimeofday.h.
38870 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38871 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38872 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38873 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38874 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38875 * lib/gettimeofday.h: New file.
38876 * lib/gettimeofday.c: Include <sys/timeb.h>.
38877 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38878 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38879 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38880 fall back on time().
38882 * tests/test-gettimeofday.c: New file.
38883 * modules/gettimeofday-tests: New file.
38885 2007-01-16 Eric Blake <ebb9@byu.net>
38887 * modules/fnmatch (Depends-on): Depend on wchar.
38888 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38889 * m4/fnmatch.m4: Likewise.
38890 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38891 * m4/mbchar.m4: Likewise.
38892 * modules/mbswidth (Depends-on): Depend on wchar.
38893 * lib/mbswidth.c: Assume <wchar.h>.
38894 * m4/mbswidth.m4: Likewise.
38895 * modules/quotearg (Depends-on): Depend on wchar.
38896 * lib/quotearg.c: Assume <wchar.h>.
38897 * m4/quotearg.m4: Likewise.
38898 * modules/regex (Depends-on): Depend on wchar.
38899 * lib/regex_internal.h: Assume <wchar.h>.
38900 * m4/regex.m4: Likewise.
38901 * modules/stdint (Depends-on): Depend on wchar.
38902 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38903 * m4/stdint.m4: Likewise.
38904 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38905 * modules/strftime (Depends-on): Depend on wchar.
38906 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38907 * modules/strtol (Depends-on): Depend on wchar.
38908 * lib/strtol.c: Assume <wchar.h>.
38909 * modules/wcwidth (Depends-on): Depend on wchar.
38910 * lib/wcwidth.h: Assume <wchar.h>.
38911 * m4/wcwidth.m4: Likewise.
38913 2007-01-16 Bruno Haible <bruno@clisp.org>
38915 * modules/csharpexec-script: New, created from...
38916 * modules/csharpexec: ... this.
38918 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38920 * modules/javaexec-script: New, created from...
38921 * modules/javaexec: ... this.
38923 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38925 * modules/poll (Dependencies): Add sys_select.
38927 2007-01-15 Jim Meyering <jim@meyering.net>
38929 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38930 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38931 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38932 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38934 2007-01-15 Bruno Haible <bruno@clisp.org>
38936 * modules/striconveh: New file.
38937 * lib/striconveh.h: New file.
38938 * lib/striconveh.c: New file.
38939 * MODULES.html.sh (Internationalization functions): Add striconveh.
38941 * modules/striconveh-tests: New file.
38942 * tests/test-striconveh.c: New file.
38944 2007-01-15 Bruno Haible <bruno@clisp.org>
38946 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38947 not from GNU libiconv or GNU libc.
38949 2007-01-15 Bruno Haible <bruno@clisp.org>
38951 * doc/gnulib-intro.texi (Copyright): Explain the different license
38952 terms for module descriptions, autoconf macros, tests, documentation.
38954 2007-01-14 Bruno Haible <bruno@clisp.org>
38956 * modules/striconv-tests: New file.
38957 * tests/test-striconv.c: New file.
38959 2007-01-14 Bruno Haible <bruno@clisp.org>
38961 * modules/iconv-tests: New file.
38962 * tests/test-iconv.c: New file.
38964 2007-01-14 Bruno Haible <bruno@clisp.org>
38966 * gnulib-tool (func_get_license): For test modules, use the license of
38969 2007-01-14 Bruno Haible <bruno@clisp.org>
38971 * modules/iconv (Include): Clarify that <iconv.h> can only be included
38972 if iconv is found to exist.
38974 2007-01-14 Bruno Haible <bruno@clisp.org>
38976 * modules/c-ctype-tests: New file.
38977 * tests/test-c-ctype.c: New file.
38979 2007-01-14 Bruno Haible <bruno@clisp.org>
38981 * modules/binary-io-tests: New file.
38982 * tests/test-binary-io.sh: New file.
38983 * tests/test-binary-io.c: New file.
38985 2007-01-14 Bruno Haible <bruno@clisp.org>
38987 * modules/array-oset-tests: New file.
38988 * tests/test-array_oset.c: New file.
38990 2007-01-14 Bruno Haible <bruno@clisp.org>
38992 * modules/array-list-tests: New file.
38993 * tests/test-array_list.c: New file.
38995 2007-01-14 Bruno Haible <bruno@clisp.org>
38997 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38999 Reported by Simon Josefsson in
39000 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39002 2007-01-14 Bruno Haible <bruno@clisp.org>
39004 * modules/allocsa-tests: New file.
39005 * tests/test-allocsa.c: New file.
39007 2007-01-14 Bruno Haible <bruno@clisp.org>
39009 * modules/fchdir (Depends-on): Add absolute-header.
39010 * modules/unistd (Depends-on): Likewise.
39012 2006-12-30 Bruno Haible <bruno@clisp.org>
39014 * modules/fchdir: New file.
39015 * modules/unistd (Files): Add lib/unistd_.h.
39016 (Makefile.am): Generate unistd.h from unistd_.h.
39017 * lib/fchdir.c: New file.
39018 * lib/dirent_.h: New file.
39019 * lib/unistd_.h: New file.
39020 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39021 * m4/fchdir.m4: New file.
39022 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39023 (gl_HEADER_UNISTD): Invoke it.
39024 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39026 * lib/backupfile.c (opendir, closedir): Undefine.
39027 * lib/chown.c (open, close): Undefine.
39028 * lib/clean-temp.c (open, close): Undefine.
39029 * lib/copy-file.c (open, close): Undefine.
39030 * lib/execute.c (open, close): Undefine.
39031 * lib/fsusage.c (open, close): Undefine.
39032 * lib/gc-gnulib.c (open, close): Undefine.
39033 * lib/getcwd.c (opendir, closedir): Undefine.
39034 * lib/glob.c (opendir, closedir): Undefine.
39035 * lib/javacomp.c (open, close): Undefine.
39036 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39037 * lib/openat-proc.c (open, close): Undefine.
39038 * lib/pagealign_alloc.c (open, close): Undefine.
39039 * lib/pipe.c (open, close): Undefine.
39040 * lib/progreloc.c (open, close): Undefine.
39041 * lib/savedir.c (opendir, closedir): Undefine.
39042 * lib/utime.c (open, close): Undefine.
39043 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39045 2007-01-10 Bruno Haible <bruno@clisp.org>
39047 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39049 2007-01-12 Eric Blake <ebb9@byu.net>
39051 Provide a robust <wchar.h>. Further simplifications are now
39052 possible in other modules, but not included here.
39053 * modules/wchar: New module.
39054 * m4/wchar.m4: New file.
39055 * lib/wchar_.h: Likewise.
39056 * modules/mbchar (Depends-on): Depend on wchar, as the first use
39058 * MODULES.html.sh (Extended multibyte and wide character utilities):
39061 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
39063 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39064 to a reasonable default for memory allocation.
39065 (xreadlink): Don't allocate a huge buffer, to work around a buggy
39066 file system that reports garbage st_size values for symlinks.
39067 Problem reported by Liyang Hu.
39069 2007-01-11 Simon Josefsson <simon@josefsson.org>
39071 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39072 Emacs .#* auto-save files).
39074 2007-01-11 Bruno Haible <bruno@clisp.org>
39076 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39079 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
39081 Use @...@ consistently in lib/wctype_.h.
39082 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39083 on it being set to 1 or 0.
39084 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39085 go back to AC_SUBSTing it.
39086 * modules/wctype (Makefile.am): Undo previous change.
39088 2007-01-10 Eric Blake <ebb9@byu.net>
39090 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39091 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39092 * modules/wctype (Makefile.am): Likewise.
39093 Reported by Chris McGuire.
39095 2007-01-10 Jim Meyering <jim@meyering.net>
39097 fts.c: a small readability/maintainability improvement
39098 * lib/fts.c (fts_read): Make this code slightly more readable and
39099 maintainable by hoisting the "sp->fts_cur = p" assignments to
39100 immediately follow the statements that set P. Derived from
39101 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39103 2007-01-10 Eric Blake <ebb9@byu.net>
39105 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39106 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39107 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39108 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39109 Reported by Chris McGuire.
39111 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39113 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39116 2007-01-09 Bruno Haible <bruno@clisp.org>
39118 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39119 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39121 (func_module): Use them.
39123 2007-01-09 Bruno Haible <bruno@clisp.org>
39125 * modules/unistr/base: New file.
39126 * lib/unistr.h: New file.
39128 * modules/unistr/u8-to-u16: New file.
39129 * lib/unistr/u8-to-u16.c: New file.
39131 * modules/unistr/u8-to-u32: New file.
39132 * lib/unistr/u8-to-u32.c: New file.
39134 * modules/unistr/u16-to-u8: New file.
39135 * lib/unistr/u16-to-u8.c: New file.
39137 * modules/unistr/u16-to-u32: New file.
39138 * lib/unistr/u16-to-u32.c: New file.
39140 * modules/unistr/u32-to-u8: New file.
39141 * lib/unistr/u32-to-u8.c: New file.
39143 * modules/unistr/u32-to-u16: New file.
39144 * lib/unistr/u32-to-u16.c: New file.
39146 * modules/unistr/u8-check: New file.
39147 * modules/unistr/u16-check: New file.
39148 * modules/unistr/u32-check: New file.
39149 * lib/unistr/u8-check.c: New file.
39150 * lib/unistr/u16-check.c: New file.
39151 * lib/unistr/u32-check.c: New file.
39153 * modules/unistr/u8-chr: New file.
39154 * modules/unistr/u16-chr: New file.
39155 * modules/unistr/u32-chr: New file.
39156 * lib/unistr/u8-chr.c: New file.
39157 * lib/unistr/u16-chr.c: New file.
39158 * lib/unistr/u32-chr.c: New file.
39160 * modules/unistr/u8-cmp: New file.
39161 * modules/unistr/u16-cmp: New file.
39162 * modules/unistr/u32-cmp: New file.
39163 * lib/unistr/u8-cmp.c: New file.
39164 * lib/unistr/u16-cmp.c: New file.
39165 * lib/unistr/u32-cmp.c: New file.
39167 * modules/unistr/u8-cpy: New file.
39168 * modules/unistr/u16-cpy: New file.
39169 * modules/unistr/u32-cpy: New file.
39170 * lib/unistr/u8-cpy.c: New file.
39171 * lib/unistr/u16-cpy.c: New file.
39172 * lib/unistr/u32-cpy.c: New file.
39173 * lib/unistr/u-cpy.h: New file.
39175 * modules/unistr/u8-cpy-alloc: New file.
39176 * modules/unistr/u16-cpy-alloc: New file.
39177 * modules/unistr/u32-cpy-alloc: New file.
39178 * lib/unistr/u8-cpy-alloc.c: New file.
39179 * lib/unistr/u16-cpy-alloc.c: New file.
39180 * lib/unistr/u32-cpy-alloc.c: New file.
39181 * lib/unistr/u-cpy-alloc.h: New file.
39183 * modules/unistr/u8-endswith: New file.
39184 * modules/unistr/u16-endswith: New file.
39185 * modules/unistr/u32-endswith: New file.
39186 * lib/unistr/u8-endswith.c: New file.
39187 * lib/unistr/u16-endswith.c: New file.
39188 * lib/unistr/u32-endswith.c: New file.
39189 * lib/unistr/u-endswith.h: New file.
39191 * modules/unistr/u8-mblen: New file.
39192 * modules/unistr/u16-mblen: New file.
39193 * modules/unistr/u32-mblen: New file.
39194 * lib/unistr/u8-mblen.c: New file.
39195 * lib/unistr/u16-mblen.c: New file.
39196 * lib/unistr/u32-mblen.c: New file.
39198 * modules/unistr/u8-mbtouc: New file.
39199 * modules/unistr/u16-mbtouc: New file.
39200 * modules/unistr/u32-mbtouc: New file.
39201 * lib/unistr/u8-mbtouc.c: New file.
39202 * lib/unistr/u16-mbtouc.c: New file.
39203 * lib/unistr/u32-mbtouc.c: New file.
39205 * modules/unistr/u8-mbtouc-safe: New file.
39206 * modules/unistr/u16-mbtouc-safe: New file.
39207 * modules/unistr/u32-mbtouc-safe: New file.
39208 * lib/unistr/u8-mbtouc-safe.c: New file.
39209 * lib/unistr/u16-mbtouc-safe.c: New file.
39210 * lib/unistr/u32-mbtouc-safe.c: New file.
39212 * modules/unistr/u8-move: New file.
39213 * modules/unistr/u16-move: New file.
39214 * modules/unistr/u32-move: New file.
39215 * lib/unistr/u8-move.c: New file.
39216 * lib/unistr/u16-move.c: New file.
39217 * lib/unistr/u32-move.c: New file.
39218 * lib/unistr/u-move.h: New file.
39220 * modules/unistr/u8-next: New file.
39221 * modules/unistr/u16-next: New file.
39222 * modules/unistr/u32-next: New file.
39223 * lib/unistr/u8-next.c: New file.
39224 * lib/unistr/u16-next.c: New file.
39225 * lib/unistr/u32-next.c: New file.
39227 * modules/unistr/u8-prev: New file.
39228 * modules/unistr/u16-prev: New file.
39229 * modules/unistr/u32-prev: New file.
39230 * lib/unistr/u8-prev.c: New file.
39231 * lib/unistr/u16-prev.c: New file.
39232 * lib/unistr/u32-prev.c: New file.
39234 * modules/unistr/u8-set: New file.
39235 * modules/unistr/u16-set: New file.
39236 * modules/unistr/u32-set: New file.
39237 * lib/unistr/u8-set.c: New file.
39238 * lib/unistr/u16-set.c: New file.
39239 * lib/unistr/u32-set.c: New file.
39240 * lib/unistr/u-set.h: New file.
39242 * modules/unistr/u8-startswith: New file.
39243 * modules/unistr/u16-startswith: New file.
39244 * modules/unistr/u32-startswith: New file.
39245 * lib/unistr/u8-startswith.c: New file.
39246 * lib/unistr/u16-startswith.c: New file.
39247 * lib/unistr/u32-startswith.c: New file.
39248 * lib/unistr/u-startswith.h: New file.
39250 * modules/unistr/u8-stpcpy: New file.
39251 * modules/unistr/u16-stpcpy: New file.
39252 * modules/unistr/u32-stpcpy: New file.
39253 * lib/unistr/u8-stpcpy.c: New file.
39254 * lib/unistr/u16-stpcpy.c: New file.
39255 * lib/unistr/u32-stpcpy.c: New file.
39256 * lib/unistr/u-stpcpy.h: New file.
39258 * modules/unistr/u8-stpncpy: New file.
39259 * modules/unistr/u16-stpncpy: New file.
39260 * modules/unistr/u32-stpncpy: New file.
39261 * lib/unistr/u8-stpncpy.c: New file.
39262 * lib/unistr/u16-stpncpy.c: New file.
39263 * lib/unistr/u32-stpncpy.c: New file.
39264 * lib/unistr/u-stpncpy.h: New file.
39266 * modules/unistr/u8-strcat: New file.
39267 * modules/unistr/u16-strcat: New file.
39268 * modules/unistr/u32-strcat: New file.
39269 * lib/unistr/u8-strcat.c: New file.
39270 * lib/unistr/u16-strcat.c: New file.
39271 * lib/unistr/u32-strcat.c: New file.
39272 * lib/unistr/u-strcat.h: New file.
39274 * modules/unistr/u8-strchr: New file.
39275 * modules/unistr/u16-strchr: New file.
39276 * modules/unistr/u32-strchr: New file.
39277 * lib/unistr/u8-strchr.c: New file.
39278 * lib/unistr/u16-strchr.c: New file.
39279 * lib/unistr/u32-strchr.c: New file.
39281 * modules/unistr/u8-strcmp: New file.
39282 * modules/unistr/u16-strcmp: New file.
39283 * modules/unistr/u32-strcmp: New file.
39284 * lib/unistr/u8-strcmp.c: New file.
39285 * lib/unistr/u16-strcmp.c: New file.
39286 * lib/unistr/u32-strcmp.c: New file.
39288 * modules/unistr/u8-strcpy: New file.
39289 * modules/unistr/u16-strcpy: New file.
39290 * modules/unistr/u32-strcpy: New file.
39291 * lib/unistr/u8-strcpy.c: New file.
39292 * lib/unistr/u16-strcpy.c: New file.
39293 * lib/unistr/u32-strcpy.c: New file.
39294 * lib/unistr/u-strcpy.h: New file.
39296 * modules/unistr/u8-strcspn: New file.
39297 * modules/unistr/u16-strcspn: New file.
39298 * modules/unistr/u32-strcspn: New file.
39299 * lib/unistr/u8-strcspn.c: New file.
39300 * lib/unistr/u16-strcspn.c: New file.
39301 * lib/unistr/u32-strcspn.c: New file.
39302 * lib/unistr/u-strcspn.h: New file.
39304 * modules/unistr/u8-strdup: New file.
39305 * modules/unistr/u16-strdup: New file.
39306 * modules/unistr/u32-strdup: New file.
39307 * lib/unistr/u8-strdup.c: New file.
39308 * lib/unistr/u16-strdup.c: New file.
39309 * lib/unistr/u32-strdup.c: New file.
39310 * lib/unistr/u-strdup.h: New file.
39312 * modules/unistr/u8-strlen: New file.
39313 * modules/unistr/u16-strlen: New file.
39314 * modules/unistr/u32-strlen: New file.
39315 * lib/unistr/u8-strlen.c: New file.
39316 * lib/unistr/u16-strlen.c: New file.
39317 * lib/unistr/u32-strlen.c: New file.
39318 * lib/unistr/u-strlen.h: New file.
39320 * modules/unistr/u8-strmblen: New file.
39321 * modules/unistr/u16-strmblen: New file.
39322 * modules/unistr/u32-strmblen: New file.
39323 * lib/unistr/u8-strmblen.c: New file.
39324 * lib/unistr/u16-strmblen.c: New file.
39325 * lib/unistr/u32-strmblen.c: New file.
39327 * modules/unistr/u8-strmbtouc: New file.
39328 * modules/unistr/u16-strmbtouc: New file.
39329 * modules/unistr/u32-strmbtouc: New file.
39330 * lib/unistr/u8-strmbtouc.c: New file.
39331 * lib/unistr/u16-strmbtouc.c: New file.
39332 * lib/unistr/u32-strmbtouc.c: New file.
39334 * modules/unistr/u8-strncat: New file.
39335 * modules/unistr/u16-strncat: New file.
39336 * modules/unistr/u32-strncat: New file.
39337 * lib/unistr/u8-strncat.c: New file.
39338 * lib/unistr/u16-strncat.c: New file.
39339 * lib/unistr/u32-strncat.c: New file.
39340 * lib/unistr/u-strncat.h: New file.
39342 * modules/unistr/u8-strncmp: New file.
39343 * modules/unistr/u16-strncmp: New file.
39344 * modules/unistr/u32-strncmp: New file.
39345 * lib/unistr/u8-strncmp.c: New file.
39346 * lib/unistr/u16-strncmp.c: New file.
39347 * lib/unistr/u32-strncmp.c: New file.
39349 * modules/unistr/u8-strncpy: New file.
39350 * modules/unistr/u16-strncpy: New file.
39351 * modules/unistr/u32-strncpy: New file.
39352 * lib/unistr/u8-strncpy.c: New file.
39353 * lib/unistr/u16-strncpy.c: New file.
39354 * lib/unistr/u32-strncpy.c: New file.
39355 * lib/unistr/u-strncpy.h: New file.
39357 * modules/unistr/u8-strnlen: New file.
39358 * modules/unistr/u16-strnlen: New file.
39359 * modules/unistr/u32-strnlen: New file.
39360 * lib/unistr/u8-strnlen.c: New file.
39361 * lib/unistr/u16-strnlen.c: New file.
39362 * lib/unistr/u32-strnlen.c: New file.
39363 * lib/unistr/u-strnlen.h: New file.
39365 * modules/unistr/u8-strpbrk: New file.
39366 * modules/unistr/u16-strpbrk: New file.
39367 * modules/unistr/u32-strpbrk: New file.
39368 * lib/unistr/u8-strpbrk.c: New file.
39369 * lib/unistr/u16-strpbrk.c: New file.
39370 * lib/unistr/u32-strpbrk.c: New file.
39371 * lib/unistr/u-strpbrk.h: New file.
39373 * modules/unistr/u8-strrchr: New file.
39374 * modules/unistr/u16-strrchr: New file.
39375 * modules/unistr/u32-strrchr: New file.
39376 * lib/unistr/u8-strrchr.c: New file.
39377 * lib/unistr/u16-strrchr.c: New file.
39378 * lib/unistr/u32-strrchr.c: New file.
39380 * modules/unistr/u8-strspn: New file.
39381 * modules/unistr/u16-strspn: New file.
39382 * modules/unistr/u32-strspn: New file.
39383 * lib/unistr/u8-strspn.c: New file.
39384 * lib/unistr/u16-strspn.c: New file.
39385 * lib/unistr/u32-strspn.c: New file.
39386 * lib/unistr/u-strspn.h: New file.
39388 * modules/unistr/u8-strstr: New file.
39389 * modules/unistr/u16-strstr: New file.
39390 * modules/unistr/u32-strstr: New file.
39391 * lib/unistr/u8-strstr.c: New file.
39392 * lib/unistr/u16-strstr.c: New file.
39393 * lib/unistr/u32-strstr.c: New file.
39394 * lib/unistr/u-strstr.h: New file.
39396 * modules/unistr/u8-strtok: New file.
39397 * modules/unistr/u16-strtok: New file.
39398 * modules/unistr/u32-strtok: New file.
39399 * lib/unistr/u8-strtok.c: New file.
39400 * lib/unistr/u16-strtok.c: New file.
39401 * lib/unistr/u32-strtok.c: New file.
39402 * lib/unistr/u-strtok.h: New file.
39404 * modules/unistr/u8-uctomb: New file.
39405 * modules/unistr/u16-uctomb: New file.
39406 * modules/unistr/u32-uctomb: New file.
39407 * lib/unistr/u8-uctomb.c: New file.
39408 * lib/unistr/u16-uctomb.c: New file.
39409 * lib/unistr/u32-uctomb.c: New file.
39411 * MODULES.html.sh (Unicode string functions): Add the new modules.
39413 2007-01-08 Bruno Haible <bruno@clisp.org>
39415 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39416 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39419 2007-01-08 Karl Berry <karl@gnu.org>
39421 * doc/error.texi: mention that main() fns must set program_name
39422 when progname is used.
39424 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39426 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39427 WCTYPE_H is empty, for the benefit of builds from non-distclean
39428 directories. Problem reported by Eric Blake in
39429 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39431 2007-01-08 Bruno Haible <bruno@clisp.org>
39433 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39434 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39435 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39436 PROVIDE_CANONICALIZE_FILENAME_MODE.
39437 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39439 2007-01-08 Bruno Haible <bruno@clisp.org>
39441 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39442 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39443 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39444 * lib/fts.c: Likewise.
39445 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39447 2006-12-25 Bruno Haible <bruno@clisp.org>
39449 * modules/utf8-ucs4-safe: New file.
39450 * lib/utf8-ucs4-safe.h: New file.
39451 * lib/unistr/utf8-ucs4-safe.c: New file.
39453 * modules/utf16-ucs4-safe: New file.
39454 * lib/utf16-ucs4-safe.h: New file.
39455 * lib/unistr/utf16-ucs4-safe.c: New file.
39457 * MODULES.html.sh (Unicode string functions): Add the new modules.
39459 2007-01-08 Bruno Haible <bruno@clisp.org>
39461 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39462 (Depends-on): Add unitypes.
39463 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39464 (u8_mbtouc_aux): Move out to separate file.
39465 (u8_mbtouc): Use ucs4_t, uint8_t types.
39466 * lib/unistr/utf8-ucs4.c: New file.
39468 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39469 (Depends-on): Add unitypes.
39470 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39471 (u16_mbtouc_aux): Move out to separate file.
39472 (u16_mbtouc): Use ucs4_t, uint16_t types.
39473 * lib/unistr/utf16-ucs4.c: New file.
39475 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39476 (Depends-on): Add unitypes.
39477 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39478 (u8_uctomb_aux): Move out to separate file.
39479 (u8_uctomb): Use ucs4_t, uint8_t types.
39480 * lib/unistr/ucs4-utf8.c: New file.
39482 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39483 (Depends-on): Add unitypes.
39484 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39485 (u16_uctomb_aux): Move out to separate file.
39486 (u16_uctomb): Use ucs4_t, uint16_t types.
39487 * lib/unistr/ucs4-utf16.c: New file.
39489 2006-12-25 Bruno Haible <bruno@clisp.org>
39491 * modules/unitypes: New file.
39492 * lib/unitypes.h: New file.
39493 * MODULES.html.sh (func_all_modules): New section "Unicode string
39494 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39495 this section. Add unitypes.
39497 2007-01-08 Bruno Haible <bruno@clisp.org>
39499 Avoid variable names that conflict with those from libtool.
39500 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39501 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39502 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39503 library_names_spec to acl_library_names_spec, hardcode_* to
39505 Reported by Ralf Wildenhues.
39507 2007-01-08 Bruno Haible <bruno@clisp.org>
39509 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39511 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39513 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39514 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39516 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39518 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39519 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39520 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39521 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39523 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39525 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39526 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39527 GC_USE_<algorithm>.
39528 * lib/gc-libgcrypt.c: Likewise.
39529 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39530 * modules/gc-arctwo (configure.ac): Likewise.
39531 * modules/gc-des (configure.ac): Likewise.
39532 * modules/gc-hmac-md5 (configure.ac): Likewise.
39533 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39534 * modules/gc-md2 (configure.ac): Likewise.
39535 * modules/gc-md4 (configure.ac): Likewise.
39536 * modules/gc-md5 (configure.ac): Likewise.
39537 * modules/gc-random (configure.ac): Likewise.
39538 * modules/gc-rijndael (configure.ac): Likewise.
39539 * modules/gc-sha1 (configure.ac): Likewise.
39541 2007-01-08 Bruno Haible <bruno@clisp.org>
39543 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39545 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39547 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39549 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39550 * modules/fcntl-safer (configure.ac): Likewise.
39551 * modules/fopen-safer (configure.ac): Likewise.
39552 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39553 GNULIB_FWRITEERROR macro definition.
39555 2007-01-08 Bruno Haible <bruno@clisp.org>
39557 * m4/gnulib-common.m4: New file.
39558 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39559 (func_get_filelist): Add m4/gnulib-common.m4.
39561 2007-01-08 Bruno Haible <bruno@clisp.org>
39563 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39566 2007-01-08 Jim Meyering <jim@meyering.net>
39568 Use a more robust test for a "can't happen" condition.
39569 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39570 narrowed the st_size value. Presuming the "can't happen" condition
39571 is true, that narrowing could conceivably convert an invalid st_size
39572 value into a valid one. Instead, use a change based on Matthew
39573 Woehlke's original patch.
39575 Slight readability improvement: use an assert-like macro
39576 in place of literal "abort ()" uses.
39577 * lib/fts.c (fts_assert): Define.
39578 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39579 Use this macro instead of a bare 'abort'.
39581 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
39583 Don't worry about using IRIX 5.3's wctype.h broken definitions;
39584 simply work around them.
39585 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39586 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39587 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39589 Don't bother to define as macros, since the standard doesn't require it.
39590 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39591 longer worry about IRIX 5.3.
39592 (HAVE_WCTYPE_CTMP_BUG): Remove.
39594 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
39596 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39597 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
39598 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39599 Problems reported by Georg Schwarz for IRIX 5.3.
39601 * gnulib-tool (autoconf_minversion): Take the maximum version number
39602 found, not the minimum. Problem reported by James Youngman.
39604 2007-01-03 Karl Berry <karl@gnu.org>
39606 * doc/error.texi: new file, explaining interaction with progname.
39607 * doc/gnulib.texi: include it. Update copyright.
39609 2007-01-03 Simon Josefsson <simon@josefsson.org>
39611 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39612 AC_CANONICAL_HOST, to improve autobuild outputs.
39614 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
39615 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39617 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39618 sockets, server sockets, and other file descriptors. Count errors
39619 to compute the return value. Reorder the code a bit to be easier
39620 to follow. Don't set event bits that were not requested (except
39621 POLLERR and POLLHUP).
39623 2007-01-01 Bruno Haible <bruno@clisp.org>
39625 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39627 2007-01-03 Jim Meyering <jim@meyering.net>
39629 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
39631 2007-01-02 Bruno Haible <bruno@clisp.org>
39633 * modules/settime (Include): Require timespec.h.
39634 * modules/nanosleep (Include): Likewise.
39636 2007-01-01 Bruno Haible <bruno@clisp.org>
39638 * gnulib-tool (func_emit_copyright_notice): Bump year.
39639 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39641 2007-01-01 Bruno Haible <bruno@clisp.org>
39643 Improve support for OpenBSD.
39644 * build-aux/config.rpath (libname_spec): Export.
39645 (library_names_spec): New variable. Export.
39646 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39647 library_names_spec from the config.rpath output. Locate shared library
39648 through the name pattern in library_names_spec.
39650 2007-01-01 Eric Blake <ebb9@byu.net>
39652 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39654 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
39656 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39657 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
39658 assume the C locale, and avoid an "eval" that could cause trouble.
39659 Problem with SORT reported by Bob Proulx.
39661 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39662 Define. Trivial patch from Henning Nielsen Lund, originally
39663 sent to bug-grep@gnu.org today.
39665 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
39667 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39668 struct stat. Problem reported by Henning Nielsen Lund.
39669 * lib/acl.c: Include acl.h first, to check interface. Don't
39670 bother to include sys/types.h and sys/stat.h again.
39672 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
39674 Import the following change from libc; problem reported by
39677 2005-10-13 Ulrich Drepper <drepper@redhat.com>
39680 * lib/argp.h: Remove __NTH for __argp_usage inline function.
39682 2006-12-28 Jim Meyering <jim@meyering.net>
39684 * build-aux/announce-gen: Do not assume that the package
39685 builds any of tar.gz, tar.bz2, and .xdelta files.
39686 Suggestion from Simon Josefsson.
39688 2006-12-28 Simon Josefsson <simon@josefsson.org>
39690 * modules/announce-gen: New file.
39692 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
39694 * lib/mbchar.h: Just include <wctype.h>; the wctype module
39695 handles its gotchas now.
39696 * lib/mbswidth.c: Likewise.
39697 * lib/wcwidth.h: Likewise.
39698 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39699 and iswcntrl; the wctype module does this stuff now.
39700 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39701 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39702 * modules/mbchar (Depends-on): Add wctype.
39703 * modules/mbswidth (Depends-on): Likewise.
39704 * modules/wcwidth (Depends-on): Likewise.
39706 2006-12-27 Eric Blake <ebb9@byu.net>
39708 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39709 module uses more than what <wctype.h> is required to provide.
39711 2006-12-26 Eric Blake <ebb9@byu.net>
39713 * gnulib-tool (sed_extract_prog): Avoid space-tab.
39715 2006-12-26 Eric Blake <ebb9@byu.net>
39717 * modules/absolute-header: New module.
39718 * modules/fcntl (Depends-on): Depend on it.
39719 * modules/inttypes (Depends-on): Likewise.
39720 * modules/stdint (Depends-on): Likewise.
39721 * modules/sys_stat (Depends-on): Likewise.
39722 * modules/wctype (Depends-on): Likewise.
39723 * MODULES.html.sh (Support for building libraries and
39724 executables): Document it.
39726 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
39728 * gnulib-tool (SED): Remove, undoing previous change.
39729 The problem was that it broke coreutils on Solaris, because
39730 "sed --posix" leaked into a makefile.
39731 (sed): New alias, if 'alias' and GNU sed.
39733 2006-12-24 Jim Meyering <jim@meyering.net>
39735 Work around an fchownat bug in glibc-2.4:
39736 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39737 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39738 in spite of the -P option.
39739 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39741 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39742 * modules/openat (Files): Add lib/fchownat.c.
39743 * lib/openat.c (fchownat): Don't define here. Move to...
39744 * lib/fchownat.c: ...this new file.
39746 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
39748 Fix bug reported by Bruno Haible in
39749 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39750 where quotearg.c didn't compile on Mac OS X 10.2 because it
39751 lacks <wchar.h> and wint_t.
39752 * lib/wctype_.h (__wctype_wint_t): New type.
39753 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39754 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39755 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39756 Arg is now of type __wctype_wint_t, not wint_t.
39757 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39758 substitute HAVE_WINT_T.
39759 * modules/wctype (Files): Add m4/wint_t.m4.
39760 (wctype.h): Substitute HAVE_WINT_T.
39762 2006-12-23 Bruno Haible <bruno@clisp.org>
39764 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39766 2006-12-23 Bruno Haible <bruno@clisp.org>
39768 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39770 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39773 2006-12-22 Bruno Haible <bruno@clisp.org>
39775 * lib/copy-file.c: Include acl.h.
39776 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39777 Close the file descriptors only after being done with copy_acl.
39778 * modules/copy-file (Depends-on): Add acl.
39780 2006-12-22 Bruno Haible <bruno@clisp.org>
39782 * gnulib-tool (SED): New variable.
39783 Use $SED instead of sed everywhere.
39785 2006-12-22 Bruno Haible <bruno@clisp.org>
39787 * modules/no-c++: New file.
39788 * m4/no-c++.m4: New file.
39789 * MODULES.html.sh (Support for building libraries and executables):
39792 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
39794 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39795 Include <limits.h>, and use its INT_MAX to rewrite the
39796 j loop so that it does not overflow 'int'. Problem reported by
39798 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39799 Play it safe by shifting left by 1 rather than multiplying by 2,
39800 as GCC is less likely to optimize this away when the value
39801 is signed (when it assumes overflow leads to undefined behavior).
39802 Also, don't assume time_t uses two's complement.
39804 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
39806 * MODULES.html.sh: New module wctype.
39807 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39808 * lib/fnmatch.c: Don't bother to include <wchar.h> before
39809 <wctype.h>, since the new wctype module should fix this.
39810 * lib/quotearg.c: Include <wctype.h> unconditionally, since
39811 the wctype module should arrange for it.
39812 * lib/regex_internal.h: Likewise.
39813 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39814 since the wctype module should handle this now.
39815 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39816 * modules/fnmatch (Depends-on): Add wctype.
39817 * modules/quotearg (Depends-on): Likewise.
39818 * modules/regex (Depends-on): Likewise.
39820 2006-12-19 Bruno Haible <bruno@clisp.org>
39822 * lib/strdup.h [C++]: Wrap definitions in extern "C".
39823 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39825 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39827 * modules/savewd (Depends-on): Fix dependency on fcntl.
39829 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39831 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39832 conforms to C99, rather than relying on the user's environment
39833 setting of STDINT_H.
39835 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39836 and Eric Blake <ebb9@byu.net>
39838 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39839 This is more consistent with the other defines here.
39840 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39841 Port to z/OS. Problem reported by Paul Gilmartin.
39842 Change local vars to use gl_ prefix rather than ac_.
39843 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39844 with other defines.
39845 * modules/double-slash-root: New module.
39846 * modules/dirname (Files): Remove m4/double-slash-root.m4.
39847 (Depends-on): Add double-slash-root.
39848 * MODULES.html.sh (File system functions): Mention new module.
39850 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
39852 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39853 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39854 This is for the benefit of gzip, which doesn't do i18n.
39856 2006-12-12 Jim Meyering <jim@meyering.net>
39858 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39859 Reported by Andreas Schwab <schwab@suse.de>.
39861 2006-12-12 Bruno Haible <bruno@clisp.org>
39863 Merge these changes.
39864 2006-09-05 Bruno Haible <bruno@clisp.org>
39865 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39866 iconv_alloc succeeded.
39867 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39868 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39869 test for " && dest " at the end - dest is always != NULL there. Call
39870 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39871 with 2xNULL arguments, also to flush the state storage. Handle the
39872 IRIX iconv behaviour. Realloc the final result, to throw away unused
39875 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39877 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39878 and fchmodat unconditionally, since glibc 2.4 has them.
39879 Problem reported by Arkadiusz Miskiewicz.
39881 2006-12-10 Bruno Haible <bruno@clisp.org>
39883 * gnulib-tool (func_import): Show the include files only for those
39884 modules that are copied and specified.
39885 Reported by Karl Berry.
39887 2006-12-08 Jim Meyering <jim@meyering.net>
39889 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39890 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39892 * build-aux/announce-gen: Add two new options, both optional:
39893 --bootstrap-tools=TOOL_LIST
39894 a comma-separated list of tools, e.g.,
39895 autoconf,automake,bison,gnulib
39896 --gnulib-snapshot-date=DATE
39897 if gnulib is in the bootstrap tool list,
39898 then report this as the snapshot date.
39899 If not specified, use the current date/time.
39900 If you specify a date here, be sure it's UTC.
39902 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39904 * tests/test-argp-2.sh: Fix test to match actual output.
39905 (func_compare): Fix sed script to be portable.
39907 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39909 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39910 workaround for this case. It is not autoconfigured now; offhand
39911 it's hard to see how to autoconfigure it.
39913 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39915 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39916 a directory that is about to be chowned. Such a directory's
39917 initial file permissions should permit the owner only and this
39918 should not be changed until after the chown, since the group and
39919 other bits would be incorrect if they granted permission before
39922 Fix porting problem for iswctype reported by Georg Schwarz in:
39923 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39924 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39925 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39926 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39927 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39929 2006-12-03 Jim Meyering <jim@meyering.net>
39931 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39932 p->fts_statp may not yet be defined.
39933 (fts_read): Instead, set it in the caller, once p->fts_statp is
39934 sure to be defined, and corresponds to a top-level directory.
39935 This bug made du -x fail. Here's the coreutils test case:
39936 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39937 Reported by Mike Frysinger.
39939 2006-12-01 Jim Meyering <jim@meyering.net>
39941 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39942 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39943 Reported by Simon Josefsson.
39945 2006-11-30 Jim Meyering <jim@meyering.net>
39947 * m4/warning.m4: Use the all-permissive copyright notice
39948 recommended by RMS (rather than LGPL).
39949 * m4/vararrays.m4: Likewise.
39950 * m4/flexmember.m4: Likewise.
39952 2006-11-29 Bruno Haible <bruno@clisp.org>
39954 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39955 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39957 Reported by Simon Josefsson <simon@josefsson.org>.
39959 2006-11-28 James Youngman <jay@gnu.org>
39961 * README: Advise users that they might find the bug-gnulib@gnu.org
39962 and autotools-announce@gnu.org mailing lists useful.
39964 2006-11-28 Bruno Haible <bruno@clisp.org>
39966 * m4/ptrdiff_max.m4: Remove file.
39968 2006-11-21 Bruno Haible <bruno@clisp.org>
39970 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39972 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39973 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39975 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39976 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39978 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39980 2006-11-28 Jim Meyering <jim@meyering.net>
39982 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39983 warning from "gcc -Wshadow" about shadowing the builtin.
39985 2006-11-27 Bruno Haible <bruno@clisp.org>
39987 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39989 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39991 2006-11-27 Bruno Haible <bruno@clisp.org>
39992 Paul Eggert <eggert@cs.ucla.edu>
39994 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39996 2006-11-26 Bruno Haible <bruno@clisp.org>
39998 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39999 noinst_LTLIBRARIES.
40001 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
40002 Bruno Haible <bruno@clisp.org>
40004 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40005 if compiling with "gcc -ansi".
40007 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
40009 Fix some incompatibilities with gcc -ansi -pedantic.
40010 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40011 if compiling pedantically with GCC, unless it's C99 or later.
40012 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40013 it mishandles gcc -ansi -pedantic as well.
40014 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40016 * lib/regexec.c (check_node_accept_bytes): Don't use auto
40017 initializers for struct if -pedantic, unless it's C99 or later.
40019 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
40021 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40022 Don't close an fd more than once. Identical atimes indicate
40023 success, not failure.
40025 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
40027 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40029 2006-11-23 Jim Meyering <jim@meyering.net>
40031 * build-aux/announce-gen: New file. From coreutils.
40033 2006-11-22 Jim Meyering <jim@meyering.net>
40035 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40036 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40037 (fts_read): Use a temporary to narrow the overused st_size member
40038 before using it in a switch statement. Reported by Matthew Woehlke.
40040 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40041 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40043 2006-11-20 Bruno Haible <bruno@clisp.org>
40045 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40046 changequote instead of pairs of brackets.
40047 Reported by Andreas Schwab <schwab@suse.de>.
40049 2006-11-21 Jim Meyering <jim@meyering.net>
40051 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40052 so as to remain compatible with older compilers.
40053 Patch from Michael Deutschmann.
40055 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40057 * MODULES.html.sh (File system functions): Add openat.
40059 * lib/openat.h (rpl_fstatat): New macro, if
40060 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40061 (fstatat): Define to rpl_fstatat under the same conditions,
40062 unless COMPILING_FSTATAT.
40063 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40064 seems to have the bug.
40065 * lib/fstatat.c: New file.
40066 * modules/openat (Files): Add it.
40068 2006-11-20 Bruno Haible <bruno@clisp.org>
40070 * Makefile: New file.
40072 2006-11-20 Jim Meyering <jim@meyering.net>
40074 The beginnings of syntax-related checks for gnulib.
40075 * lib/Makefile: New file.
40076 * lib/t-idcache: New script. Ensure that the two halves of
40077 idcache.c stay in sync.
40079 * lib/idcache.c: Adjust comments in user- and group- portions to
40080 be more accurate, and to be consistent with one another.
40082 2006-11-20 Jim Meyering <jim@meyering.net>
40084 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40085 continue using the flexible array member (thus, this module performs
40086 half as many malloc calls), with the addition that...
40087 (getgroup, getuser): Consistently record a non-match via an empty
40088 "name" string, and map an empty string match to a NULL return value.
40089 * modules/idcache (Depends-on): Re-add flexmember.
40091 * lib/idcache.c (getuser): Remove all uses of the register keyword.
40092 (getuidbyname, getgroup, getgidbyname): Likewise.
40094 Use cleaner syntax: NULL rather than 0.
40095 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40097 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40099 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40100 It mishandled the case where the group was missing.
40101 Problem reported by Greg Schafer.
40102 * modules/idcache: Likewise.
40104 2006-11-18 Jim Meyering <jim@meyering.net>
40106 * check-module (%exempt_header): Add exception for some
40107 conditionally-included headers.
40109 * modules/i-ring (Depends-on): Add verify.
40110 (License): Change to LGPL.
40112 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
40114 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40115 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40116 and inttostr.h. Use snprintf rather than uinttostr, so that
40117 LGPLed code doesn't depend on GPLed.
40119 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
40121 * modules/inline (License): Change from GPL to LGPL.
40123 2006-11-17 Jim Meyering <jim@meyering.net>
40125 * modules/d-type (License): Switch to LGPL.
40127 2006-11-15 Bruno Haible <bruno@clisp.org>
40129 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40131 2006-11-15 Eric Blake <ebb9@byu.net>
40133 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40134 the module dependency.
40136 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40137 Bruno Haible <bruno@clisp.org>
40139 * gnulib-tool (func_create_testdir): Add license consistency check.
40141 2006-11-15 Eric Blake <ebb9@byu.net>
40143 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40144 random "(cached)" in configure output.
40146 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40148 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40149 test for conforming inttypes.h is both announced and cached.
40151 * MODULES.html.sh (seen_modules, seen_files): New variables.
40152 (func_module): Rewrite to use a few less gnulib-tool and sed
40153 invocations. Avoid a couple of quadratic algorithms for ...
40154 (missed_modules, missed_files): ... these, with ...
40155 (func_append, func_tmpdir): ... these new functions, from
40156 gnulib-tool. Analogously, install traps for cleanup.
40158 * tests/test-gc.c (main): Remove unused variables.
40159 * tests/test-read-file.c: Include stdlib.h, for 'free'.
40161 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
40163 * modules/inttostr (License): Change to LGPL.
40165 2006-11-14 Eric Blake <ebb9@byu.net>
40167 * modules/tempname (License): Change to LGPL.
40169 2006-11-14 Eric Blake <ebb9@byu.net>
40171 * doc/functions.texi (Function Portability): *printf functions on
40172 Cygwin now understand all POSIX size specifiers.
40174 2006-11-14 Bruno Haible <bruno@clisp.org>
40176 * modules/c-ctype (License): Change to LGPL.
40178 2006-11-12 Bruno Haible <bruno@clisp.org>
40180 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40181 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40182 for GNOME libraries, for which the include files are installed in
40183 subdirectories of $prefix/include.
40185 2006-11-12 Bruno Haible <bruno@clisp.org>
40187 * m4/lib-link.m4: Require at least autoconf-2.54.
40188 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40189 name to underscores for the --with option.
40191 2006-11-13 Bruno Haible <bruno@clisp.org>
40193 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40194 the tests directory.
40195 Reported by Ralf Wildenhues.
40197 2006-11-13 Bruno Haible <bruno@clisp.org>
40199 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40200 (func_emit_initmacro_end): Undo the override here.
40201 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40202 Works around the famous automake error in coreutils.
40204 2006-11-13 Eric Blake <ebb9@byu.net>
40206 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40207 element, not its node.
40209 2006-11-12 Bruno Haible <bruno@clisp.org>
40211 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40212 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40214 2006-11-12 Bruno Haible <bruno@clisp.org>
40216 * gnulib-tool: New option --local-symlink.
40217 (func_usage): Document it.
40218 (lsymbolic): New variable.
40219 (func_import, func_create_testdir): If --symlink was not specified,
40220 test whether --local-symlink was specified and the file comes from
40221 the local_gnulib_dir.
40223 2006-11-12 Bruno Haible <bruno@clisp.org>
40225 * gnulib-tool (func_ln): New function.
40226 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40228 2006-11-12 Bruno Haible <bruno@clisp.org>
40230 Finish support for source files in subdirectories.
40231 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40232 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40234 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40236 2006-11-12 Bruno Haible <bruno@clisp.org>
40238 * gnulib-tool (func_get_automake_snippet): Synthesize also an
40239 EXTRA_lib_SOURCES augmentation.
40240 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40242 2006-11-12 Jim Meyering <jim@meyering.net>
40244 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40245 file descriptors. This also averts a failure on systems with
40246 native openat support when a traversed directory lacks "x" access.
40247 * lib/fts_.h: Include "i-ring.h"
40248 (struct FTS) [fts_fd_ring]: New member.
40249 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40250 (FCHDIR): Add parentheses.
40251 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40252 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
40253 When descending, rather than simply closing the previous
40254 fts_cwd_fd value, push that file descriptor onto the ring.
40255 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40256 (fts_open): Initialize the new fd_ring member.
40257 (fts_close): Clear the ring.
40258 (fts_safe_changedir): When possible, use our new fd_ring to skip
40259 the diropen and fstat and dev/ino comparison that would normally
40260 accompany a virtual `chdir ("..")'.
40262 * modules/fts (Depends-on): Add i-ring.
40263 * modules/i-ring: New module.
40264 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40265 * m4/i-ring.m4: New file.
40267 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40269 * gnulib-tool (func_create_testdir): Fix replacement of
40270 `build-aux' in configure.ac. Run autotools in gltests
40272 (func_create_testdir, func_create_megatestdir, test): There is
40273 no need for '--force' in most autotool invocations in a new
40274 tree. Actually fail the whole test if any of the tools, or the
40275 configure or make stages fail.
40277 Sync from Automake.
40278 * build-aux/gnupload: Revert last change. Add pointer to upload
40279 instructions of the GNU Maintenance Instructions.
40280 Suggestion by Karl Berry.
40282 2006-11-10 Jim Meyering <jim@meyering.net>
40284 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40286 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40288 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40289 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40290 (bind_textdomain_codeset) [! ENABLE_NLS]:
40291 Evaluate all the arguments. That way, callers get compatible behavior
40292 if the arguments have side effects. Also, it avoids some GCC
40293 diagnostics in some cases; Joel E. Denny reported problems when Bison
40294 was configured with --enable-gcc-warnigs.
40296 2006-11-10 Jim Meyering <jim@meyering.net>
40298 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40299 relevant options in CFLAGS (like -O, -fno-inline) are taken into
40302 2006-11-10 Jim Meyering <jim@meyering.net>
40304 * modules/inline: New file/module.
40305 * modules/xalloc (Files): Remove m4/inline.m4.
40306 (Depends-on): Add inline, instead.
40307 * modules/oset: Likewise.
40308 * modules/list: Likewise.
40310 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
40312 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40313 Problem reported by Matthew Woehlke.
40315 2006-11-09 Bruno Haible <bruno@clisp.org>
40317 * lib/tempname.c (gen_tempname): Remove variant that invokes
40319 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40322 2006-11-08 Bruno Haible <bruno@clisp.org>
40324 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40325 to 'yes' instead of 'cross-compiling'.
40327 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
40329 * lib/quotearg.h (quotearg_free): New decl.
40330 * lib/quotearg.c (quotearg_free): New function.
40331 (slot0, nslots, slotvec0, slotvec):
40332 Now file-scope so that quotearg_free can get at them.
40334 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40336 Sync from Automake.
40337 * build-aux/gnupload: Add missing 'gnu' to example URL.
40338 Report by Karl Berry.
40340 2006-11-08 Bruno Haible <bruno@clisp.org>
40342 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40343 Suggested by Paul Eggert.
40345 2006-11-08 Jim Meyering <jim@meyering.net>
40347 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40348 It's already included if !_LIBC.
40349 (fts_safe_changedir): Add a comment.
40351 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40353 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40354 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40357 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40358 definitions up, to avoid colliding with change below.
40359 (static_inline) [HAVE_INLINE]: New macro.
40360 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40361 Provide extern decls when !HAVE_INLINE. Do not define unless
40362 static_inline is defined, either by us or by xmalloc.c. Use
40363 static_inline rather than static inline.
40364 (XCALLOC): Optimize sizeof(T) = 1 case.
40365 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40367 2006-11-07 Bruno Haible <bruno@clisp.org>
40369 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40370 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40372 * modules/xalloc (Files): Add m4/inline.m4.
40374 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40376 * README: Fix typo.
40377 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40378 (Miscellanous Notes): ...from this.
40380 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40382 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40383 Mention that offsetof should be used instead of sizeof.
40386 2006-11-07 Bruno Haible <bruno@clisp.org>
40388 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40390 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40392 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40393 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40394 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40395 (gl_tree_add_before, gl_tree_add_after):
40396 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40397 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40398 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40399 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40400 (gl_linked_add_after, gl_linked_add_at): Likewise.
40401 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40402 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40403 (gl_tree_add_before, gl_tree_add_after): Likewise.
40404 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40405 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40406 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40408 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40410 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40412 2006-11-06 Bruno Haible <bruno@clisp.org>
40414 * m4/inline.m4: New file.
40415 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40416 * modules/list (Files): Add m4/inline.m4.
40417 * modules/oset (Files): Likewise.
40419 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40421 * lib/idcache.c: Include <stddef.h>, for offsetof.
40422 (struct userid.name): Change from char * to a flexible array member.
40424 * modules/idcache (Depends-on): Add flexmember.
40426 * MODULES.html.sh (Core language properties): New module flexmember.
40427 * modules/flexmember, m4/flexmember.m4: New files.
40429 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40430 inline functions that are identical with the old xnmalloc_inline,
40431 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40432 that we can avoid some unnecessary integer multiplications and
40433 divisions in the common case where the element size is known at
40435 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40437 (xnboundedmalloc): Remove.
40438 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40439 arguments, for consistency with rest of this header.
40440 (xcharalloc): Rewrite using XNMALLOC.
40441 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40442 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40443 versions have been moved to lib/xalloc.h and renamed to be the
40444 non-*_inline versions.
40445 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40446 and xnrealloc functions, since those functions are now inline and
40448 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40449 renaming described above.
40450 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40451 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40452 captures the dependency in AC_C_INLINE.
40454 New module canonicalize-lgpl, proposed by Charles Wilson in
40455 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40456 with a few small changes afterwards.
40457 * MODULES.html.sh (File system functions): New module
40459 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40460 and canonicalize_file_name.
40461 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40462 * modules/canonicalize-lgpl: New files.
40464 2006-11-05 Bruno Haible <bruno@clisp.org>
40466 * gnulib-tool (func_import, func_create_testdir): Create directories
40467 also for files in subdirectories of lib/.
40469 2006-11-05 Bruno Haible <bruno@clisp.org>
40471 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40474 2006-11-03 Bruno Haible <bruno@clisp.org>
40476 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40477 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40478 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40479 (xnboundedmalloc): New inline function.
40480 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40481 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40483 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40485 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40486 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40487 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40489 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40490 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40492 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40493 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40494 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40496 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40497 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40498 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40499 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40500 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40501 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40502 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40504 2006-11-03 Bruno Haible <bruno@clisp.org>
40506 * lib/c-ctype.h [C++]: Define functions without name mangling.
40507 * lib/fwriteerror.h [C++]: Likewise.
40508 * lib/gcd.h [C++]: Likewise.
40509 * lib/linebreak.h [C++]: Likewise.
40511 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40513 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40514 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40515 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40516 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40517 Check for functions and headers just once.
40518 Check for declaration of canonicalize_file_name.
40519 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40521 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40523 * gnulib-tool (func_import): Fix typo in actioncmd.
40525 2006-11-02 Bruno Haible <bruno@clisp.org>
40527 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40528 newline sequence in the Makefile.am snippet as a space, like "make"
40530 Reported by Roger Persson <perrog@gmail.com>.
40532 2006-11-01 Bruno Haible <bruno@clisp.org>
40534 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40535 already declared in <string.h>.
40536 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40538 2006-11-01 Bruno Haible <bruno@clisp.org>
40540 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40541 * lib/strcase.h: Include <string.h>.
40542 (strcasecmp): Define to rpl_strcasecmp here.
40544 2006-11-01 Bruno Haible <bruno@clisp.org>
40546 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40548 2006-11-01 Eric Blake <ebb9@byu.net>
40550 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40552 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40554 2006-10-29 Bruno Haible <bruno@clisp.org>
40556 Make it compile in C++ mode.
40557 * lib/full-write.c (full_rw): Add a cast.
40559 2006-11-01 Bruno Haible <bruno@clisp.org>
40561 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40562 be POSIX compliant.
40563 Reported by Roger Persson <perrog@gmail.com>.
40565 2006-11-01 Eric Blake <ebb9@byu.net>
40567 * lib/getopt_.h: Fix comments.
40569 2006-10-31 Eric Blake <ebb9@byu.net>
40571 * modules/tmpdir (Depends-on): Add sys_stat.
40572 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40573 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40574 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40575 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40578 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40580 Avoid some C++ diagnostics reported by Bruno Haible.
40581 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40583 (quotearg_alloc): Use xcharalloc rather than xmalloc.
40584 (struct slotvec): Move to top level.
40585 (quotearg_n_options): Rewrite to avoid xmalloc.
40586 * lib/xalloc.h (xcharalloc): New function.
40587 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40588 [defined __cplusplus]: Add function template that provides result
40589 type propagation. This part of the change is from Bruno Haible.
40591 2006-10-29 Bruno Haible <bruno@clisp.org>
40593 Make it compile in C++ mode.
40594 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40595 * lib/strnlen1.c (strnlen1): Cast memchr result.
40596 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40597 * lib/clean-temp.c (string_equals, string_hash): Add casts.
40598 (create_temp_dir): Rename local variable 'template'.
40599 (compile_csharp_using_sscli): Add cast.
40600 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40601 * lib/findprog.c (find_in_path): Likewise.
40602 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40603 * lib/wait-process.c (register_slave_subprocess): Likewise.
40605 2006-10-22 Bruno Haible <bruno@clisp.org>
40607 * modules/tsearch: New file.
40608 * lib/tsearch.h: New file.
40609 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40610 * m4/tsearch.m4: New file.
40611 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40613 2006-10-29 Eric Blake <ebb9@byu.net>
40615 * lib/arcfour.c: Assume config.h.
40616 * lib/arctwo.c: Likewise.
40617 * lib/base64.c: Likewise.
40618 * lib/check-version.c: Likewise.
40619 * lib/crc.c: Likewise.
40620 * lib/des.c: Likewise.
40621 * lib/gc-gnulib.c: Likewise.
40622 * lib/gc-libgcrypt.c: Likewise.
40623 * lib/gc-pbkdf2-sha1.c: Likewise.
40624 * lib/getaddrinfo.c: Likewise.
40625 * lib/getdelim.c: Likewise.
40626 * lib/getline.c: Likewise.
40627 * lib/hmac-md5.c: Likewise.
40628 * lib/hmac-sha1.c: Likewise.
40629 * lib/iconvme.c: Likewise.
40630 * lib/md2.c: Likewise.
40631 * lib/md4.c: Likewise.
40632 * lib/memxor.c: Likewise.
40633 * lib/read-file.c: Likewise.
40634 * lib/readline.c: Likewise.
40635 * lib/rijndael-alg-fst.c: Likewise.
40636 * lib/rijndael-api-fst.c: Likewise.
40637 * lib/xgetdomainname.c: Likewise.
40639 2006-10-28 Eric Blake <ebb9@byu.net>
40641 * lib/xstrndup.c: Assume config.h.
40643 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
40645 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40646 stat-macros.h is now for our own macros, whereas stat_h is for
40647 macros in the <sys/stat.h> name space.
40648 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40649 (STAT_MACROS_H): Remove.
40650 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40651 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40652 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40653 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40654 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40655 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40656 Move these macros to ...
40657 * lib/stat_.h: here. Don't include stat-macros.h.
40658 * lib/canonicalize.c: Don't include stat-macros.h.
40659 * lib/chown.c: Likewise.
40660 * lib/euidaccess.c: Likewise.
40661 * lib/file-type.c: Likewise.
40662 * lib/filemode.c: Likewise.
40663 * lib/glob.c: Likewise.
40664 * lib/isapipe.c: Likewise.
40665 * lib/lchown.c: Likewise.
40666 * lib/lstat.c: Likewise.
40667 * lib/mkdir-p.c: Likewise.
40668 * lib/rmdir.c: Likewise.
40669 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40670 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40671 unless mkdir isn't declared, to speed up 'configure'.
40672 Always create sys/stat.h, since it's unlikely any real sys/stat.h
40673 would define all the S_* symbols.
40674 * modules/canonicalize (Depends-on):
40675 Depend on sys_stat, not stat-macros.
40676 * modules/chown: Likewise.
40677 * modules/euidaccess: Likewise.
40678 * modules/filemode: Likewise.
40679 * modules/file-type: Likewise.
40680 * modules/glob: Likewise.
40681 * modules/isapipe: Likewise.
40682 * modules/lchown: Likewise.
40683 * modules/lstat: Likewise.
40684 * modules/mkancesdirs: Likewise.
40685 * modules/rmdir: Likewise.
40686 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40687 * modules/modechange: Likewise.
40688 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40689 (configure.ac): Remove gl_STAT_MACROS.
40690 * modules/sys_stat (Depends-on): Remove stat-macros.
40692 2006-10-27 Bruno Haible <bruno@clisp.org>
40694 * m4/signed.m4: Remove file.
40695 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40697 * modules/vasnprintf (Files): Remove m4/signed.m4.
40699 2006-10-27 Bruno Haible <bruno@clisp.org>
40701 Update to GNU gettext 0.16.
40702 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40703 m4/inttypes-h.m4, m4/signed.m4.
40704 * m4/gettext.m4: Update to GNU gettext 0.16.
40705 * m4/intl.m4: New file, from GNU gettext.
40706 * m4/intldir.m4: New file, from GNU gettext.
40707 * config/srclist.txt: Update
40709 2006-10-27 Eric Blake <ebb9@byu.net>
40711 * MODULES.html.sh: Document tempname.
40712 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40714 (Files): Move lib/tempname.c...
40715 * modules/tempname: ...to this new module.
40716 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40717 (gl_PREREQ_TEMPNAME): Move...
40718 * m4/tempname.m4: ...to this new file.
40719 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40720 * modules/sys_stat (Depends-on): Add stat-macros.
40721 * lib/stat_.h (includes): Pick up stat macros.
40722 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40723 if stat macros are broken.
40724 * lib/tempname.c (includes): No need to include "stat-macros.h".
40725 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40726 (direxists, __path_search) [!_LIBC]: Don't compile these in
40727 gnulib; the tmpdir module covers that.
40728 * lib/tempname.h: New file.
40730 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
40732 * COPYING: Explain how gnulib-tool converts licence headers.
40733 Almost all wording by Eric Blake.
40735 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
40737 * lib/mbchar.h (is_basic_table): Make read-only.
40738 * lib/mbchar.c (is_basic_table): Likewise.
40739 Reported by John Darrington.
40741 2006-10-25 Bruno Haible <bruno@clisp.org>
40743 * lib/progname.h (set_program_name): Undefine before defining.
40745 2006-10-25 Bruno Haible <bruno@clisp.org>
40747 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40748 false for non-gcc C++ compilers.
40749 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40751 2006-10-24 Bruno Haible <bruno@clisp.org>
40753 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40754 iconv implementations like Irix iconv.
40756 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40758 * modules/vararrays: New file.
40759 * m4/vararrays.m4: New file, taken from diffutils.
40760 * MODULES.html.sh: New module vararrays.
40762 2006-10-24 Karl Berry <karl@gnu.org>
40764 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40765 Don't call GNU Unix.
40767 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40769 * users.txt: Add Libtool.
40773 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40775 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40776 to gnulib's policy of including config.h unconditionally.
40778 2006-10-24 Bruno Haible <bruno@clisp.org>
40780 * modules/wcwidth (Files): Add m4/wint_t.m4.
40781 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40782 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40784 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40786 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40787 to pacify GCC with some -W flags enabled. Problem reported by
40790 2006-10-24 Jim Meyering <jim@meyering.net>
40792 * MODULES.html.sh: Remove uinttostr. It's not a module.
40793 Reported by Karl Berry.
40795 2006-10-23 Bruno Haible <bruno@clisp.org>
40797 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40799 2006-10-24 Bruno Haible <bruno@clisp.org>
40801 * lib/gl_list.h: Use C comment style, not C++ comment style.
40803 2006-10-23 Eric Blake <ebb9@byu.net>
40805 * lib/getaddrinfo.c (includes): Add missing include.
40807 2006-10-23 Bruno Haible <bruno@clisp.org>
40808 Paul Eggert <eggert@cs.ucla.edu>
40810 Ability to rename obstack_free.
40811 * lib/obstack.h (__obstack_free): New macro. Declare instead of
40813 (obstack_free): Invoke the __obstack_free macro.
40814 * lib/obstack.c (obstack_free): Use __obstack_free macro.
40816 2006-10-23 Bruno Haible <bruno@clisp.org>
40817 Paul Eggert <eggert@cs.ucla.edu>
40819 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40820 __argc, __argv from the declaration. (They are defined as macros on
40823 2006-10-22 Bruno Haible <bruno@clisp.org>
40825 * doc/gnulib-intro.texi: New file.
40826 * doc/gnulib.texi: Include it.
40828 2006-10-21 Bruno Haible <bruno@clisp.org>
40830 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40831 "Introduction", "Miscellanous Notes", "Particular Modules".
40833 2006-10-21 Bruno Haible <bruno@clisp.org>
40835 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40836 Change mostlyclean-local rule to avoid sh syntax error from bash
40837 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40839 2006-10-23 Jim Meyering <jim@meyering.net>
40841 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40842 in place of snprintf.
40844 * modules/inttostr (Files): Add lib/uinttostr.c.
40845 * lib/uinttostr.c (inttostr): New file/function.
40846 * lib/inttostr.h (uinttostr): Declare.
40847 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40848 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40850 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
40852 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40854 * lib/canonicalize.c (ELOOP): Define if not already defined.
40855 Problem reported by Bruno Haible in
40856 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40858 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40860 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40861 Problem reported by Perry Smith and Ville Laurikari.
40863 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40866 2006-10-19 Bruno Haible <bruno@clisp.org>
40868 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40871 2006-10-19 Bruno Haible <bruno@clisp.org>
40873 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40876 2006-10-19 Bruno Haible <bruno@clisp.org>
40878 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40880 2006-10-19 Bruno Haible <bruno@clisp.org>
40882 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40885 2006-10-19 Bruno Haible <bruno@clisp.org>
40887 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40890 2006-10-19 Bruno Haible <bruno@clisp.org>
40892 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40893 mountlist by default.
40895 2006-10-16 Bruno Haible <bruno@clisp.org>
40897 * lib/c-strstr.c: Include c-strstr.h.
40899 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40901 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40904 2006-10-18 Bruno Haible <bruno@clisp.org>
40906 * lib/lock.h [C++]: Wrap definitions in extern "C".
40908 2006-10-18 Bruno Haible <bruno@clisp.org>
40910 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40913 2006-10-18 Bruno Haible <bruno@clisp.org>
40915 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40917 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40919 * lib/xstrtol.h: Include gettext.h.
40920 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40921 Problem reported by Eric Blake.
40922 * modules/xstrtol (Depends-on): Add gettext-h.
40924 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40926 * lib/strftime.c (advance): New macro.
40927 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40928 incomplete type, so you can't add 0 to it. Problem and patch
40929 reported by Eelco Dolstra for dietlibc.
40931 2006-10-18 Jim Meyering <jim@meyering.net>
40933 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40934 type for a local, and rename it: s/up/user_proc/.
40936 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40938 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40939 READ_UTMP_USER_PROCESS.
40940 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40942 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
40944 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40945 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40947 2006-10-17 Eric Blake <ebb9@byu.net>
40949 * lib/sigprocmask.c (sigprocmask): Fix typo.
40951 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40953 * modules/clean-temp (Makefile.am): Don't add to make output...
40954 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40957 2006-10-17 Bruno Haible <bruno@clisp.org>
40959 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40960 differently if DEFAULT_TEXT_DOMAIN is set.
40962 2006-10-16 Bruno Haible <bruno@clisp.org>
40964 * lib/clean-temp.c: Include fwriteerror.h.
40966 2006-10-16 Bruno Haible <bruno@clisp.org>
40968 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40970 2006-10-16 Bruno Haible <bruno@clisp.org>
40972 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40973 * lib/sigprocmask.h: Include <sys/types.h>.
40974 (sigset_t): Use the system's definition if present.
40976 2006-10-17 Eric Blake <ebb9@byu.net>
40978 * lib/xvasprintf.c (includes): Assume config.h.
40979 * lib/xasprintf.c (includes): Likewise.
40981 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
40983 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40984 at least as wide as intmax_t.
40986 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
40988 (Imported from Automake.)
40989 * build-aux/gnupload: Update to version 1.1 of directive file.
40991 2006-10-16 Eric Blake <ebb9@byu.net>
40993 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40994 match Automake 1.10a.
40996 2006-10-14 Bruno Haible <bruno@clisp.org>
40998 * modules/sigprocmask: New file.
40999 * lib/sigprocmask.h: New file.
41000 * lib/sigprocmask.c: New file.
41001 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41002 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41003 request sigprocmask.o.
41004 (gl_PREREQ_SIGPROCMASK): New macro.
41005 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41006 (Depends-on): Add sigprocmask.
41007 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41008 gt_SIGNALBLOCKING. Test for 'raise' only once.
41009 * lib/fatal-signal.c: Include sigprocmask.h.
41010 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41011 unblock_fatal_signals): Define always.
41012 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41015 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
41017 Sync from Automake.
41018 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41019 which incorrectly sets the mode of an existing destination
41020 directory. In some cases the unpatched install-sh could do the
41021 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41022 system. We hope this is rare in practice, but it's clearly worth
41023 fixing. Problem reported by Alex Unleashed in
41024 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41025 Also, don't bother to check for -m bugs unless we're using -m;
41026 suggested by Stepan Kasal.
41028 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41030 Sync from Automake.
41031 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41032 `-c' flag, so they appear at the same position as in %FASTDEP%
41033 mode in depend2.am. Fixes build failure for FreeBSD's c89,
41034 which ignores unknown options only after the first non-option.
41035 Bug report against M4 by Nelson H. F. Beebe.
41037 2006-10-13 Jim Meyering <jim@meyering.net>
41039 Fix a bug in yesterday's change.
41040 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41041 p->fts_statp->st_dev would be used uninitialized.
41042 Ensures that we always call fts_stat on the very first entry.
41043 Miklos Szeredi reported that find -xdev stopped working.
41045 2006-10-12 Bruno Haible <bruno@clisp.org>
41047 * gnulib-tool (func_get_automake_snippet): Append an automatically
41048 computed EXTRA_DIST augmentation.
41049 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41050 * modules/alloca-opt (Makefile.am): Likewise.
41051 * modules/allocsa (Makefile.am): Likewise.
41052 * modules/arcfour (Makefile.am): Likewise.
41053 * modules/arctwo (Makefile.am): Likewise.
41054 * modules/argmatch (Makefile.am): Likewise.
41055 * modules/argz (Makefile.am): Likewise.
41056 * modules/atexit (Makefile.am): Likewise.
41057 * modules/backupfile (Makefile.am): Likewise.
41058 * modules/byteswap (Makefile.am): Likewise.
41059 * modules/c-strtod (Makefile.am): Likewise.
41060 * modules/c-strtold (Makefile.am): Likewise.
41061 * modules/calloc (Makefile.am): Likewise.
41062 * modules/canon-host (Makefile.am): Likewise.
41063 * modules/canonicalize (Makefile.am): Likewise.
41064 * modules/chdir-long (Makefile.am): Likewise.
41065 * modules/chdir-safer (Makefile.am): Likewise.
41066 * modules/check-version (Makefile.am): Likewise.
41067 * modules/chown (Makefile.am): Likewise.
41068 * modules/cloexec (Makefile.am): Likewise.
41069 * modules/close-stream (Makefile.am): Likewise.
41070 * modules/closeout (Makefile.am): Likewise.
41071 * modules/crc (Makefile.am): Likewise.
41072 * modules/csharpexec (Makefile.am): Likewise.
41073 * modules/cycle-check (Makefile.am): Likewise.
41074 * modules/des (Makefile.am): Likewise.
41075 * modules/dev-ino (Makefile.am): Likewise.
41076 * modules/dirfd (Makefile.am): Likewise.
41077 * modules/dirname (Makefile.am): Likewise.
41078 * modules/dup2 (Makefile.am): Likewise.
41079 * modules/eealloc (Makefile.am): Likewise.
41080 * modules/error (Makefile.am): Likewise.
41081 * modules/euidaccess (Makefile.am): Likewise.
41082 * modules/exclude (Makefile.am): Likewise.
41083 * modules/exitfail (Makefile.am): Likewise.
41084 * modules/fcntl-safer (Makefile.am): Likewise.
41085 * modules/fcntl (Makefile.am): Likewise.
41086 * modules/file-type (Makefile.am): Likewise.
41087 * modules/fileblocks (Makefile.am): Likewise.
41088 * modules/filemode (Makefile.am): Likewise.
41089 * modules/filenamecat (Makefile.am): Likewise.
41090 * modules/fnmatch (Makefile.am): Likewise.
41091 * modules/fopen-safer (Makefile.am): Likewise.
41092 * modules/fpending (Makefile.am): Likewise.
41093 * modules/fprintftime (Makefile.am): Likewise.
41094 * modules/free (Makefile.am): Likewise.
41095 * modules/fsusage (Makefile.am): Likewise.
41096 * modules/ftruncate (Makefile.am): Likewise.
41097 * modules/fts (Makefile.am): Likewise.
41098 * modules/gc-arcfour (Makefile.am): Likewise.
41099 * modules/gc-des (Makefile.am): Likewise.
41100 * modules/gc-hmac-md5 (Makefile.am): Likewise.
41101 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41102 * modules/gc-md4 (Makefile.am): Likewise.
41103 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41104 * modules/gc-sha1 (Makefile.am): Likewise.
41105 * modules/gc (Makefile.am): Likewise.
41106 * modules/getaddrinfo (Makefile.am): Likewise.
41107 * modules/getcwd (Makefile.am): Likewise.
41108 * modules/getdelim (Makefile.am): Likewise.
41109 * modules/getdomainname (Makefile.am): Likewise.
41110 * modules/getgroups (Makefile.am): Likewise.
41111 * modules/gethostname (Makefile.am): Likewise.
41112 * modules/gethrxtime (Makefile.am): Likewise.
41113 * modules/getline (Makefile.am): Likewise.
41114 * modules/getloadavg (Makefile.am): Likewise.
41115 * modules/getlogin_r (Makefile.am): Likewise.
41116 * modules/getndelim2 (Makefile.am): Likewise.
41117 * modules/getopt (Makefile.am): Likewise.
41118 * modules/getpagesize (Makefile.am): Likewise.
41119 * modules/getpass-gnu (Makefile.am): Likewise.
41120 * modules/getpass (Makefile.am): Likewise.
41121 * modules/getsubopt (Makefile.am): Likewise.
41122 * modules/gettime (Makefile.am): Likewise.
41123 * modules/gettimeofday (Makefile.am): Likewise.
41124 * modules/getugroups (Makefile.am): Likewise.
41125 * modules/getusershell (Makefile.am): Likewise.
41126 * modules/glob (Makefile.am): Likewise.
41127 * modules/group-member (Makefile.am): Likewise.
41128 * modules/hard-locale (Makefile.am): Likewise.
41129 * modules/hash (Makefile.am): Likewise.
41130 * modules/hmac-md5 (Makefile.am): Likewise.
41131 * modules/hmac-sha1 (Makefile.am): Likewise.
41132 * modules/human (Makefile.am): Likewise.
41133 * modules/idcache (Makefile.am): Likewise.
41134 * modules/imaxabs (Makefile.am): Likewise.
41135 * modules/imaxdiv (Makefile.am): Likewise.
41136 * modules/inet_ntop (Makefile.am): Likewise.
41137 * modules/inet_pton (Makefile.am): Likewise.
41138 * modules/intprops (Makefile.am): Likewise.
41139 * modules/inttostr (Makefile.am): Likewise.
41140 * modules/inttypes (Makefile.am): Likewise.
41141 * modules/isapipe (Makefile.am): Likewise.
41142 * modules/javaversion (Makefile.am): Likewise.
41143 * modules/lchmod (Makefile.am): Likewise.
41144 * modules/lchown (Makefile.am): Likewise.
41145 * modules/localcharset (Makefile.am): Likewise.
41146 * modules/long-options (Makefile.am): Likewise.
41147 * modules/lstat (Makefile.am): Likewise.
41148 * modules/malloc (Makefile.am): Likewise.
41149 * modules/mathl (Makefile.am): Likewise.
41150 * modules/mbchar (Makefile.am): Likewise.
41151 * modules/md2 (Makefile.am): Likewise.
41152 * modules/md4 (Makefile.am): Likewise.
41153 * modules/md5 (Makefile.am): Likewise.
41154 * modules/memcasecmp (Makefile.am): Likewise.
41155 * modules/memchr (Makefile.am): Likewise.
41156 * modules/memcmp (Makefile.am): Likewise.
41157 * modules/memcoll (Makefile.am): Likewise.
41158 * modules/memcpy (Makefile.am): Likewise.
41159 * modules/memmem (Makefile.am): Likewise.
41160 * modules/memmove (Makefile.am): Likewise.
41161 * modules/mempcpy (Makefile.am): Likewise.
41162 * modules/memrchr (Makefile.am): Likewise.
41163 * modules/memset (Makefile.am): Likewise.
41164 * modules/memxor (Makefile.am): Likewise.
41165 * modules/mkancesdirs (Makefile.am): Likewise.
41166 * modules/mkdir-p (Makefile.am): Likewise.
41167 * modules/mkdir (Makefile.am): Likewise.
41168 * modules/mkdtemp (Makefile.am): Likewise.
41169 * modules/mkstemp (Makefile.am): Likewise.
41170 * modules/mktime (Makefile.am): Likewise.
41171 * modules/modechange (Makefile.am): Likewise.
41172 * modules/mountlist (Makefile.am): Likewise.
41173 * modules/nanosleep (Makefile.am): Likewise.
41174 * modules/obstack (Makefile.am): Likewise.
41175 * modules/openat (Makefile.am): Likewise.
41176 * modules/pagealign_alloc (Makefile.am): Likewise.
41177 * modules/pathmax (Makefile.am): Likewise.
41178 * modules/physmem (Makefile.am): Likewise.
41179 * modules/poll (Makefile.am): Likewise.
41180 * modules/posixtm (Makefile.am): Likewise.
41181 * modules/posixver (Makefile.am): Likewise.
41182 * modules/putenv (Makefile.am): Likewise.
41183 * modules/quote (Makefile.am): Likewise.
41184 * modules/quotearg (Makefile.am): Likewise.
41185 * modules/raise (Makefile.am): Likewise.
41186 * modules/read-file (Makefile.am): Likewise.
41187 * modules/readline (Makefile.am): Likewise.
41188 * modules/readlink (Makefile.am): Likewise.
41189 * modules/readtokens (Makefile.am): Likewise.
41190 * modules/readutmp (Makefile.am): Likewise.
41191 * modules/realloc (Makefile.am): Likewise.
41192 * modules/regex (Makefile.am): Likewise.
41193 * modules/rename-dest-slash (Makefile.am): Likewise.
41194 * modules/rename (Makefile.am): Likewise.
41195 * modules/rijndael (Makefile.am): Likewise.
41196 * modules/rmdir (Makefile.am): Likewise.
41197 * modules/rpmatch (Makefile.am): Likewise.
41198 * modules/safe-read (Makefile.am): Likewise.
41199 * modules/safe-write (Makefile.am): Likewise.
41200 * modules/same-inode (Makefile.am): Likewise.
41201 * modules/same (Makefile.am): Likewise.
41202 * modules/save-cwd (Makefile.am): Likewise.
41203 * modules/savedir (Makefile.am): Likewise.
41204 * modules/setenv (Makefile.am): Likewise.
41205 * modules/settime (Makefile.am): Likewise.
41206 * modules/sha1 (Makefile.am): Likewise.
41207 * modules/sig2str (Makefile.am): Likewise.
41208 * modules/snprintf (Makefile.am): Likewise.
41209 * modules/stat-macros (Makefile.am): Likewise.
41210 * modules/stat-time (Makefile.am): Likewise.
41211 * modules/stdbool (Makefile.am): Likewise.
41212 * modules/stdint (Makefile.am): Likewise.
41213 * modules/stdlib-safer (Makefile.am): Likewise.
41214 * modules/stpcpy (Makefile.am): Likewise.
41215 * modules/stpncpy (Makefile.am): Likewise.
41216 * modules/strcase (Makefile.am): Likewise.
41217 * modules/strcasestr (Makefile.am): Likewise.
41218 * modules/strchrnul (Makefile.am): Likewise.
41219 * modules/strcspn (Makefile.am): Likewise.
41220 * modules/strdup (Makefile.am): Likewise.
41221 * modules/strerror (Makefile.am): Likewise.
41222 * modules/strftime (Makefile.am): Likewise.
41223 * modules/strndup (Makefile.am): Likewise.
41224 * modules/strnlen (Makefile.am): Likewise.
41225 * modules/strpbrk (Makefile.am): Likewise.
41226 * modules/strsep (Makefile.am): Likewise.
41227 * modules/strstr (Makefile.am): Likewise.
41228 * modules/strtod (Makefile.am): Likewise.
41229 * modules/strtoimax (Makefile.am): Likewise.
41230 * modules/strtok_r (Makefile.am): Likewise.
41231 * modules/strtol (Makefile.am): Likewise.
41232 * modules/strtoll (Makefile.am): Likewise.
41233 * modules/strtoul (Makefile.am): Likewise.
41234 * modules/strtoull (Makefile.am): Likewise.
41235 * modules/strtoumax (Makefile.am): Likewise.
41236 * modules/strverscmp (Makefile.am): Likewise.
41237 * modules/sys_socket (Makefile.am): Likewise.
41238 * modules/sys_stat (Makefile.am): Likewise.
41239 * modules/sysexits (Makefile.am): Likewise.
41240 * modules/time_r (Makefile.am): Likewise.
41241 * modules/timegm (Makefile.am): Likewise.
41242 * modules/timespec (Makefile.am): Likewise.
41243 * modules/tmpfile-safer (Makefile.am): Likewise.
41244 * modules/trim (Makefile.am): Likewise.
41245 * modules/unistd-safer (Makefile.am): Likewise.
41246 * modules/unlinkdir (Makefile.am): Likewise.
41247 * modules/unlocked-io (Makefile.am): Likewise.
41248 * modules/userspec (Makefile.am): Likewise.
41249 * modules/utime (Makefile.am): Likewise.
41250 * modules/utimecmp (Makefile.am): Likewise.
41251 * modules/utimens (Makefile.am): Likewise.
41252 * modules/vasnprintf (Makefile.am): Likewise.
41253 * modules/vasprintf (Makefile.am): Likewise.
41254 * modules/vsnprintf (Makefile.am): Likewise.
41255 * modules/xalloc (Makefile.am): Likewise.
41256 * modules/xgetcwd (Makefile.am): Likewise.
41257 * modules/xnanosleep (Makefile.am): Likewise.
41258 * modules/xreadlink (Makefile.am): Likewise.
41259 * modules/xstrtod (Makefile.am): Likewise.
41260 * modules/xstrtol (Makefile.am): Likewise.
41261 * modules/xstrtold (Makefile.am): Likewise.
41262 * modules/yesno (Makefile.am): Likewise.
41263 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41265 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41267 * modules/error (Makefile.am): Distribute files through
41268 EXTRA_DIST, not lib_SOURCES.
41270 2006-10-12 Eric Blake <ebb9@byu.net>
41272 * modules/error (Makefile.am): Distribute files in /lib.
41273 * modules/obstack (Makefile.am): Likewise.
41275 2006-10-12 Bruno Haible <bruno@clisp.org>
41277 * modules/acl (Makefile.am): Distribute all files in lib/ through
41279 * modules/arcfour (Makefile.am): Likewise.
41280 * modules/arctwo (Makefile.am): Likewise.
41281 * modules/argmatch (Makefile.am): Likewise.
41282 * modules/argz (Makefile.am): Likewise.
41283 * modules/atexit (Makefile.am): Likewise.
41284 * modules/backupfile (Makefile.am): Likewise.
41285 * modules/c-strtod (Makefile.am): Likewise.
41286 * modules/c-strtold (Makefile.am): Likewise.
41287 * modules/calloc (Makefile.am): Likewise.
41288 * modules/canon-host (Makefile.am): Likewise.
41289 * modules/canonicalize (Makefile.am): Likewise.
41290 * modules/chdir-long (Makefile.am): Likewise.
41291 * modules/chdir-safer (Makefile.am): Likewise.
41292 * modules/check-version (Makefile.am): Likewise.
41293 * modules/chown (Makefile.am): Likewise.
41294 * modules/cloexec (Makefile.am): Likewise.
41295 * modules/close-stream (Makefile.am): Likewise.
41296 * modules/closeout (Makefile.am): Likewise.
41297 * modules/crc (Makefile.am): Likewise.
41298 * modules/cycle-check (Makefile.am): Likewise.
41299 * modules/des (Makefile.am): Likewise.
41300 * modules/dirfd (Makefile.am): Likewise.
41301 * modules/dirname (Makefile.am): Likewise.
41302 * modules/dup2 (Makefile.am): Likewise.
41303 * modules/euidaccess (Makefile.am): Likewise.
41304 * modules/exclude (Makefile.am): Likewise.
41305 * modules/exitfail (Makefile.am): Likewise.
41306 * modules/fcntl-safer (Makefile.am): Likewise.
41307 * modules/file-type (Makefile.am): Likewise.
41308 * modules/fileblocks (Makefile.am): Likewise.
41309 * modules/filemode (Makefile.am): Likewise.
41310 * modules/filenamecat (Makefile.am): Likewise.
41311 * modules/fnmatch (Makefile.am): Likewise.
41312 * modules/fopen-safer (Makefile.am): Likewise.
41313 * modules/fpending (Makefile.am): Likewise.
41314 * modules/fprintftime (Makefile.am): Likewise.
41315 * modules/free (Makefile.am): Likewise.
41316 * modules/fsusage (Makefile.am): Likewise.
41317 * modules/ftruncate (Makefile.am): Likewise.
41318 * modules/fts (Makefile.am): Likewise.
41319 * modules/gc (Makefile.am): Likewise.
41320 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41321 * modules/getaddrinfo (Makefile.am): Likewise.
41322 * modules/getcwd (Makefile.am): Likewise.
41323 * modules/getdelim (Makefile.am): Likewise.
41324 * modules/getdomainname (Makefile.am): Likewise.
41325 * modules/getgroups (Makefile.am): Likewise.
41326 * modules/gethostname (Makefile.am): Likewise.
41327 * modules/gethrxtime (Makefile.am): Likewise.
41328 * modules/getline (Makefile.am): Likewise.
41329 * modules/getloadavg (Makefile.am): Likewise.
41330 * modules/getlogin_r (Makefile.am): Likewise.
41331 * modules/getopt (Makefile.am): Likewise.
41332 * modules/getpass (Makefile.am): Likewise.
41333 * modules/getpass-gnu (Makefile.am): Likewise.
41334 * modules/getsubopt (Makefile.am): Likewise.
41335 * modules/gettime (Makefile.am): Likewise.
41336 * modules/gettimeofday (Makefile.am): Likewise.
41337 * modules/getugroups (Makefile.am): Likewise.
41338 * modules/getusershell (Makefile.am): Likewise.
41339 * modules/glob (Makefile.am): Likewise.
41340 * modules/group-member (Makefile.am): Likewise.
41341 * modules/hard-locale (Makefile.am): Likewise.
41342 * modules/hash (Makefile.am): Likewise.
41343 * modules/hmac-md5 (Makefile.am): Likewise.
41344 * modules/hmac-sha1 (Makefile.am): Likewise.
41345 * modules/human (Makefile.am): Likewise.
41346 * modules/idcache (Makefile.am): Likewise.
41347 * modules/imaxabs (Makefile.am): Likewise.
41348 * modules/imaxdiv (Makefile.am): Likewise.
41349 * modules/inet_ntop (Makefile.am): Likewise.
41350 * modules/inet_pton (Makefile.am): Likewise.
41351 * modules/inttostr (Makefile.am): Likewise.
41352 * modules/isapipe (Makefile.am): Likewise.
41353 * modules/lchown (Makefile.am): Likewise.
41354 * modules/long-options (Makefile.am): Likewise.
41355 * modules/lstat (Makefile.am): Likewise.
41356 * modules/malloc (Makefile.am): Likewise.
41357 * modules/mathl (Makefile.am): Likewise.
41358 * modules/mbchar (Makefile.am): Likewise.
41359 * modules/md2 (Makefile.am): Likewise.
41360 * modules/md4 (Makefile.am): Likewise.
41361 * modules/md5 (Makefile.am): Likewise.
41362 * modules/memcasecmp (Makefile.am): Likewise.
41363 * modules/memchr (Makefile.am): Likewise.
41364 * modules/memcmp (Makefile.am): Likewise.
41365 * modules/memcoll (Makefile.am): Likewise.
41366 * modules/memcpy (Makefile.am): Likewise.
41367 * modules/memmem (Makefile.am): Likewise.
41368 * modules/memmove (Makefile.am): Likewise.
41369 * modules/mempcpy (Makefile.am): Likewise.
41370 * modules/memrchr (Makefile.am): Likewise.
41371 * modules/memset (Makefile.am): Likewise.
41372 * modules/memxor (Makefile.am): Likewise.
41373 * modules/mkancesdirs (Makefile.am): Likewise.
41374 * modules/mkdir (Makefile.am): Likewise.
41375 * modules/mkdir-p (Makefile.am): Likewise.
41376 * modules/mkdtemp (Makefile.am): Likewise.
41377 * modules/mkstemp (Makefile.am): Likewise.
41378 * modules/mktime (Makefile.am): Likewise.
41379 * modules/modechange (Makefile.am): Likewise.
41380 * modules/mountlist (Makefile.am): Likewise.
41381 * modules/nanosleep (Makefile.am): Likewise.
41382 * modules/openat (Makefile.am): Likewise.
41383 * modules/pagealign_alloc (Makefile.am): Likewise.
41384 * modules/physmem (Makefile.am): Likewise.
41385 * modules/poll (Makefile.am): Likewise.
41386 * modules/posixtm (Makefile.am): Likewise.
41387 * modules/posixver (Makefile.am): Likewise.
41388 * modules/putenv (Makefile.am): Likewise.
41389 * modules/quote (Makefile.am): Likewise.
41390 * modules/quotearg (Makefile.am): Likewise.
41391 * modules/raise (Makefile.am): Likewise.
41392 * modules/read-file (Makefile.am): Likewise.
41393 * modules/readline (Makefile.am): Likewise.
41394 * modules/readlink (Makefile.am): Likewise.
41395 * modules/readtokens (Makefile.am): Likewise.
41396 * modules/readutmp (Makefile.am): Likewise.
41397 * modules/realloc (Makefile.am): Likewise.
41398 * modules/regex (Makefile.am): Likewise.
41399 * modules/rename (Makefile.am): Likewise.
41400 * modules/rename-dest-slash (Makefile.am): Likewise.
41401 * modules/rijndael (Makefile.am): Likewise.
41402 * modules/rmdir (Makefile.am): Likewise.
41403 * modules/rpmatch (Makefile.am): Likewise.
41404 * modules/safe-read (Makefile.am): Likewise.
41405 * modules/safe-write (Makefile.am): Likewise.
41406 * modules/same (Makefile.am): Likewise.
41407 * modules/save-cwd (Makefile.am): Likewise.
41408 * modules/savedir (Makefile.am): Likewise.
41409 * modules/setenv (Makefile.am): Likewise.
41410 * modules/settime (Makefile.am): Likewise.
41411 * modules/sha1 (Makefile.am): Likewise.
41412 * modules/sig2str (Makefile.am): Likewise.
41413 * modules/snprintf (Makefile.am): Likewise.
41414 * modules/stdlib-safer (Makefile.am): Likewise.
41415 * modules/stpcpy (Makefile.am): Likewise.
41416 * modules/stpncpy (Makefile.am): Likewise.
41417 * modules/strcase (Makefile.am): Likewise.
41418 * modules/strcasestr (Makefile.am): Likewise.
41419 * modules/strchrnul (Makefile.am): Likewise.
41420 * modules/strcspn (Makefile.am): Likewise.
41421 * modules/strdup (Makefile.am): Likewise.
41422 * modules/strerror (Makefile.am): Likewise.
41423 * modules/strftime (Makefile.am): Likewise.
41424 * modules/strndup (Makefile.am): Likewise.
41425 * modules/strnlen (Makefile.am): Likewise.
41426 * modules/strpbrk (Makefile.am): Likewise.
41427 * modules/strsep (Makefile.am): Likewise.
41428 * modules/strstr (Makefile.am): Likewise.
41429 * modules/strtod (Makefile.am): Likewise.
41430 * modules/strtoimax (Makefile.am): Likewise.
41431 * modules/strtok_r (Makefile.am): Likewise.
41432 * modules/strtol (Makefile.am): Likewise.
41433 * modules/strtoll (Makefile.am): Likewise.
41434 * modules/strtoul (Makefile.am): Likewise.
41435 * modules/strtoull (Makefile.am): Likewise.
41436 * modules/strtoumax (Makefile.am): Likewise.
41437 * modules/strverscmp (Makefile.am): Likewise.
41438 * modules/time_r (Makefile.am): Likewise.
41439 * modules/timegm (Makefile.am): Likewise.
41440 * modules/tmpfile-safer (Makefile.am): Likewise.
41441 * modules/unistd-safer (Makefile.am): Likewise.
41442 * modules/unlinkdir (Makefile.am): Likewise.
41443 * modules/userspec (Makefile.am): Likewise.
41444 * modules/utime (Makefile.am): Likewise.
41445 * modules/utimecmp (Makefile.am): Likewise.
41446 * modules/utimens (Makefile.am): Likewise.
41447 * modules/vasnprintf (Makefile.am): Likewise.
41448 * modules/vasprintf (Makefile.am): Likewise.
41449 * modules/vsnprintf (Makefile.am): Likewise.
41450 * modules/xalloc (Makefile.am): Likewise.
41451 * modules/xgetcwd (Makefile.am): Likewise.
41452 * modules/xnanosleep (Makefile.am): Likewise.
41453 * modules/xreadlink (Makefile.am): Likewise.
41454 * modules/xstrtod (Makefile.am): Likewise.
41455 * modules/xstrtol (Makefile.am): Likewise.
41456 * modules/xstrtold (Makefile.am): Likewise.
41457 * modules/yesno (Makefile.am): Likewise.
41459 2006-10-12 Jim Meyering <jim@meyering.net>
41461 * m4/getloadavg.m4: Revert the change below.
41463 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41464 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41465 fail with a symlink, which is what coreutils' ./bootstrap now
41466 creates by default.
41468 2006-10-12 Bruno Haible <bruno@clisp.org>
41470 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41472 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41473 MSVC and mingw explicitly.
41475 2006-10-11 Simon Josefsson <jas@extundo.com>
41476 Bruno Haible <bruno@clisp.org>
41478 Add support for multiple gnulib-tool invocations in the scope of a
41479 single configure.ac file.
41480 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41481 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41482 with the same contents as the _LIBADD variable.
41483 (func_emit_initmacro_start, func_emit_initmacro_end,
41484 func_emit_initmacro_done): New functions.
41485 (func_import, func_create_testdir): Invoke them. Allow the identifiers
41486 gl_LIBOBJS and gl_LTLIBOBJS.
41488 2006-10-11 Bruno Haible <bruno@clisp.org>
41490 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41491 (func_create_testdir): Don't create po/Makefile.am, don't invoke
41492 autoreconf. Instead, invoke autopoint explicitly but move back the
41493 *.m4 files from gnulib.
41495 2006-10-11 Bruno Haible <bruno@clisp.org>
41497 * gnulib-tool (func_usage): Make module names after --create-testdir
41499 (func_create_testdir): If no module was specified, use nearly all
41502 2006-10-12 Jim Meyering <jim@meyering.net>
41504 Big performance improvement for fts-based tools that use FTS_NOSTAT.
41505 Avoid spurious inode-mismatch problems on non-POSIX file systems.
41506 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41507 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41508 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41509 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41510 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41511 (fts_set_stat_required): New function.
41512 (fts_open): Defer the calls to fts_stat, if possible or requested.
41513 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41514 into fts_stat itself.
41515 (fts_read): Perform any required (deferred) fts_stat call.
41516 (fts_build): Likewise, for the directory we're about to open and read.
41517 In the readdir loop, carefully decide whether each entry will require
41518 an eventual call to fts_stat, using dirent.d_type info if available.
41519 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41520 a command line argument into this function. Update all callers.
41521 Map a return value of FTS_DOT to FTS_D for a command line argument.
41522 * modules/fts (Depends-on): Add d-type. Alphabetize.
41523 Thanks to Miklos Szeredi for his tenacity and for the initial
41524 bug report about "find" failing on a FUSE-based file system.
41526 * lib/fts.c (fts_open): Use consistent indentation.
41528 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41530 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41531 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41532 reported by Jim Meyering. All uses of cache variables renamed
41533 to match Autoconf's.
41534 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41537 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41538 Fix misspelling in diagnostic.
41540 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41542 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41543 defined. Problem reported by Matthew Woehlke.
41545 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41546 Add support for Tandem NonStop R series.
41547 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41550 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41551 (has_trailing_slash): Omit size arg; all callers changed.
41552 Omit 'inline', since it doesn't help performance and we'd
41553 need to configure it.
41554 Don't count //, ///, etc. as having a trailing slash.
41555 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41556 (rpl_rename_dest_slash): On failure, use rename's errno rather
41557 than (in some cases) an incorrect or junk errno.
41558 Simplify code by removing need to compute length; this does
41559 cause it to make two passes instead of one over the file name,
41562 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41563 change, since Autoconf's version may no longer be appropriate now
41564 that we are using CVS Autoconf's version. Add support for Tandem.
41566 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41567 Bruno Haible <bruno@clisp.org>
41569 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41570 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41571 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41572 gl_AC_TYPE_LONG_LONG.
41574 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41575 instead of HAVE_LONG_LONG.
41576 * lib/printf-args.c (printf_fetchargs): Likewise.
41577 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41578 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41579 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41580 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41581 gl_AC_TYPE_LONG_LONG.
41583 2006-10-11 Bruno Haible <bruno@clisp.org>
41585 * m4/longlong.m4: Add comments.
41586 * m4/ulonglong.m4: Likewise.
41588 2006-10-10 Bruno Haible <bruno@clisp.org>
41590 Make it possible to #define stpcpy, strdup to aliases.
41591 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41592 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41594 2006-10-10 Bruno Haible <bruno@clisp.org>
41596 Make it possible to #define gcd to an alias.
41597 * lib/gcd.c: Include config.h.
41599 2006-10-10 Bruno Haible <bruno@clisp.org>
41601 Make it possible to #define c_isascii to an alias.
41602 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41603 defined. Undefine the macros before defining them, to avoid gcc
41605 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41606 define NO_C_CTYPE_MACROS early.
41608 2006-10-10 Bruno Haible <bruno@clisp.org>
41610 Make it possible to #define set_program_name to an alias.
41611 * lib/progname.c: Don't undefine set_program_name; instead, undefine
41612 ENABLE_RELOCATABLE early.
41614 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
41616 Port to Tandem NSK OSS, which has 64-bit signed int but at most
41617 32-bit unsigned int. Problem reported by Matthew Woehlke in:
41618 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41619 More generally, don't assume that 64-bit signed int is available
41620 if unsigned int is, and vice versa.
41621 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41622 unsigned symbols, not on their signed counterparts.
41623 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41624 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41625 (UINT64_C, UINTMAX_C):
41627 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41628 unsigned counterparts.
41629 (Have_long_long, Unsigned): New macros.
41630 (Int): Renamed from INT.
41631 (strtoimax): Use the new macros.
41632 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41633 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41634 * modules/inttypes (inttypes.h): Substitute
41635 HAVE_UNSIGNED_LONG_LONG_INT.
41636 * modules/stdint (stdint.h): Likewise.
41637 (Files): Add m4/ulonglong.m4.
41639 2006-10-10 Bruno Haible <bruno@clisp.org>
41641 Fix a gcc -Wshadow warning.
41642 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41644 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41645 gl_linked_indexof_from_to): Likewise.
41646 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41648 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41650 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41651 Reported by Eric Blake.
41653 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
41655 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41656 for NetBSD. Problem reported by Bruno Haible.
41658 2006-10-09 Jim Meyering <jim@meyering.net>
41660 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41661 Patch from Bruno Haible.
41663 2006-10-09 Jim Meyering <jim@meyering.net>
41665 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41666 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41667 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41669 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
41671 Don't include <config.h> twice; this doesn't work in some cases,
41672 e.g., when config.h has "#define intmax_t long long int" and
41673 we include <config.h>, <inttypes.h>, <config.h> in that order.
41674 Problem reported by Matthew Woehlke in:
41675 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41676 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41677 * lib/fts-cycle.c: Don't include config.h.
41678 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41679 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41680 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
41681 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41683 * lib/xstrtoumax.c: Likewise.
41684 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41685 __strtol and the like, so that this module is more like its siblings.
41686 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41687 Remove; no longer needed now that we assume gnulib inttypes.h.
41689 2006-10-08 Bruno Haible <bruno@clisp.org>
41691 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41694 2006-10-07 Jim Meyering <jim@meyering.net>
41696 * modules/inttypes (inttypes.h): Revert what seems to have been
41697 an inadvertent part of today's change: use "|", not "/" in the
41698 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41700 2006-10-07 Bruno Haible <bruno@clisp.org>
41702 * modules/sublist: New file.
41704 2006-10-07 Bruno Haible <bruno@clisp.org>
41706 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41707 * modules/argz (argz.h): Likewise.
41708 * modules/arpa_inet (arpa/inet.h): Likewise.
41709 * modules/byteswap (byteswap.h): Likewise.
41710 * modules/configmake (configmake.h): Likewise.
41711 * modules/fcntl (fcntl.h): Likewise.
41712 * modules/fnmatch (fnmatch.h): Likewise.
41713 * modules/getopt (getopt.h): Likewise.
41714 * modules/glob (glob.h): Likewise.
41715 * modules/inttypes (inttypes.h): Likewise.
41716 * modules/netinet_in (netinet/in.h): Likewise.
41717 * modules/poll (poll.h): Likewise.
41718 * modules/stdbool (stdbool.h): Likewise.
41719 * modules/stdint (stdint.h): Likewise.
41720 * modules/sys_select (sys/select.h): Likewise.
41721 * modules/sys_socket (sys/socket.h): Likewise.
41722 * modules/sys_stat (sys/stat.h): Likewise.
41723 * modules/sysexits (sysexits.h): Likewise.
41724 * modules/unistd (unistd.h): Likewise.
41725 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41726 Add a "DO NOT EDIT" comment to the generated file.
41727 (func_import): Likewise for gnulib-comp.m4.
41729 2006-10-07 Bruno Haible <bruno@clisp.org>
41731 * lib/gl_sublist.h: New file.
41732 * lib/gl_sublist.c: New file.
41734 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
41736 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41737 name (relative to the original working directory) and the file
41738 name component (relative to the temporary working directory). All
41740 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41741 * lib/mkdir-p.c (make_dir_parents): Likewise.
41742 * lib/mkdir-p.h (make_dir_parents): Likewise.
41744 2006-10-06 Eric Blake <ebb9@byu.net>
41746 Define several macros for use by the clean-temp module.
41747 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41748 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41749 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41751 * lib/clean-temp.h (close_stream_temp): New declaration.
41752 * lib/clean-temp.c (includes): Pull in headers according to what
41753 other modules are in use.
41754 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41756 2006-10-06 Bruno Haible <bruno@clisp.org>
41758 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41759 instead of fopen, fwriteerror.
41761 2006-10-06 Bruno Haible <bruno@clisp.org>
41763 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41764 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41766 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41767 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41768 Return an error indicator.
41769 Suggested by Eric Blake.
41771 2006-10-06 Bruno Haible <bruno@clisp.org>
41773 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41774 Reported by Eric Blake.
41776 2006-10-06 Bruno Haible <bruno@clisp.org>
41778 * modules/closeout (Description): Mention stderr too.
41780 2006-10-06 Bruno Haible <bruno@clisp.org>
41781 and Paul Eggert <eggert@cs.ucla.edu>
41783 * lib/closeout.c (close_stdout): Also close stderr.
41784 * lib/closeout.h: Update comment.
41786 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
41788 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41789 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41790 * lib/dirchownmod.c: Include lchown.h.
41791 * lib/lchown.c: Don't include files that lchown.h now includes.
41792 Don't declare chown, since lchown.h now does that.
41793 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41794 (lchown): Define to rpl_chown if lchown is declared but
41795 does not exist. Declare using a prototype if lchown is not
41796 declared. Add a copyright notice.
41797 * lib/mkstemp.h: Include <unistd.h>.
41798 * lib/openat.c: Include lchown.h.
41800 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41801 we now test for that separately.
41802 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41803 rather than O_NOFOLLOW, when testing whether it's possible to
41804 avoid a race condition reliably.
41805 * lib/savewd.c (savewd_chdir): Likewise.
41807 Remove macros that are no longer needed now that stdint.h is
41809 * lib/fsusage.c (UINTMAX_MAX): Remove.
41810 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41811 * lib/utimecmp.c (SIZE_MAX): Remove.
41813 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41815 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41816 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
41819 2006-10-05 Bruno Haible <bruno@clisp.org>
41821 * lib/gl_list.h (gl_sortedlist_search_from_to,
41822 gl_sortedlist_indexof_from_to): New declarations.
41823 (gl_list_implementation): New fields sortedlist_search_from_to,
41824 sortedlist_indexof_from_to.
41825 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41827 * lib/gl_list.c (gl_sortedlist_search_from_to,
41828 gl_sortedlist_indexof_from_to): New functions.
41829 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41831 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41832 (gl_array_sortedlist_search_from_to): New function.
41833 (gl_array_list_implementation): Update.
41834 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41836 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41837 (gl_carray_sortedlist_search_from_to): New function.
41838 (gl_carray_list_implementation): Update.
41839 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41840 gl_linked_sortedlist_indexof_from_to): New functions.
41841 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41842 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41843 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41844 gl_tree_sortedlist_indexof_from_to): New functions.
41845 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41846 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41848 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41849 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41852 2006-10-05 Bruno Haible <bruno@clisp.org>
41854 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41855 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41856 (struct gl_list_implementation): Add fields search_from_to,
41857 indexof_from_to. Remove fields search, indexof.
41858 (gl_list_search): Use the search_from_to method.
41859 (gl_list_search_from, gl_list_search_from_to): New functions.
41860 (gl_list_indexof): Use the indexof_from_to method.
41861 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41862 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41863 (gl_list_search_from, gl_list_search_from_to): New functions.
41864 (gl_list_indexof): Use the indexof_from_to method.
41865 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41866 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41867 gl_array_indexof. Add start_index, end_index arguments.
41868 (gl_array_search_from_to): Renamed from gl_array_search. Add
41869 start_index, end_index arguments.
41870 (gl_array_remove, gl_array_list_implementation): Update.
41871 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41872 gl_carray_indexof. Add start_index, end_index arguments.
41873 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41874 start_index, end_index arguments.
41875 (gl_carray_remove, gl_carray_list_implementation): Update.
41876 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41877 gl_linked_search. Add start_index, end_index arguments.
41878 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41879 start_index, end_index arguments.
41880 (gl_linked_remove): Update.
41881 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41882 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41883 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41885 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41886 gl_tree_search. Add start_index, end_index arguments.
41887 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41888 start_index, end_index arguments.
41889 (gl_tree_remove): Update.
41890 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41891 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41892 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41894 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41895 gl_tree_search. Add start_index, end_index arguments.
41896 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41897 start_index, end_index arguments.
41898 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41900 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41902 2006-10-05 Bruno Haible <bruno@clisp.org>
41904 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41906 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41907 fwriteerror_temp): New declarations.
41908 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41909 (descriptors): New variable.
41910 (cleanup): First, close the descriptors.
41911 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41912 fclose_temp, fwriteerror_temp): New functions.
41914 2006-10-04 Jim Meyering <jim@meyering.net>
41916 * lib/fts.c (fts_open): Tiny comment change.
41918 2006-10-04 Bruno Haible <bruno@clisp.org>
41920 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41921 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41923 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41924 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41925 gl_LOCK_EARLY_BODY.
41926 (gl_LOCK): Require gl_LOCK_BODY.
41928 2006-10-04 Bruno Haible <bruno@clisp.org>
41930 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41931 (gl_oset_search_atleast): New declaration.
41932 (struct gl_oset_implementation): Add field 'search_atleast'.
41933 (gl_oset_search_atleast): New inline function.
41934 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41935 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41936 (gl_array_oset_implementation): Update.
41937 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41938 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41939 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41941 2006-10-04 Bruno Haible <bruno@clisp.org>
41943 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41945 2006-10-03 Bruno Haible <bruno@clisp.org>
41947 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41948 from gl_avltreehash_list_implementation.
41950 2006-10-03 Bruno Haible <bruno@clisp.org>
41952 * lib/gl_oset.c (gl_oset_add): Fix return type.
41954 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
41956 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41958 2006-10-02 Eric Blake <ebb9@byu.net>
41960 * modules/strnlen (Depends-on): Add extensions.
41962 2006-10-02 Eric Blake <ebb9@byu.net>
41964 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41965 definition in 2.60+.
41967 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
41969 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41972 2006-10-02 Bruno Haible <bruno@clisp.org>
41974 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41975 to the AUTOMAKE_OPTIONS.
41976 Reported by Jim Meyering.
41978 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
41980 Work around bug in Solaris 10 /proc file system:
41981 /proc/self/fd/NNN/.. isn't the parent directory of
41982 the directory whose file descriptor is NNN. This needs to
41983 be worked around at run time, not compile time, since a
41984 program might be built on Solaris 8, where things work, and
41986 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
41987 to use the following interface instead:
41988 (OPENAT_BUFFER_SIZE): New macro.
41989 (openat_proc_name): New function.
41990 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41991 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41993 * lib/openat-proc.c: New file.
41994 * modules/openat (Files): Add lib/openat-proc.c.
41995 (Depends-on): Add same-inode, stdbool.
41996 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41998 2006-09-29 Bruno Haible <bruno@clisp.org>
42000 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42001 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42002 argument. Set stdout_closed before testing for ferror, not after.
42003 (fwriteerror, fwriteerror_no_ebadf): New functions.
42005 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42007 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42009 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
42011 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42012 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42014 2006-09-28 Jim Meyering <jim@meyering.net>
42016 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42017 Include <unistd.h>.
42019 2006-09-28 Bruno Haible <bruno@clisp.org>
42021 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42022 * modules/linkedhash-list (Depends-on): Likewise.
42023 * modules/rbtreehash-list (Depends-on): Likewise.
42025 2006-09-28 Bruno Haible <bruno@clisp.org>
42027 * lib/strndup.h: Simplify the redefinition of strndup.
42028 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42029 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42031 2006-09-28 Bruno Haible <bruno@clisp.org>
42033 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42034 * lib/gl_linkedhash_list.c: Likewise.
42035 * lib/gl_rbtreehash_list.c: Likewise.
42037 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
42039 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42042 * lib/__fpending.h: Don't include <stdio_ext.h> unless
42043 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
42044 it causes <stdio_ext.h> to cause a compile-time error.
42045 Problem reported by Nelson H. F. Beebe.
42046 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42047 of HAVE_DECL___PENDING.
42049 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42050 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42053 2006-09-27 Jim Meyering <jim@meyering.net>
42055 This file could end up with a definition for a function
42056 named __strndup, rather than rpl_strndup on a system with
42057 incomplete weak_alias support.
42058 * lib/strndup.c (strndup): Rename from __strndup.
42059 Remove #defines that used to map __strndup to strndup.
42060 Don't use K&R prototypes.
42061 Remove LIBC-related code, since this file is not sync'd with glibc.
42062 * lib/strndup.h: Revamp, accordingly.
42063 * m4/strndup.m4: Modernize.
42065 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
42067 * modules/savewd (Depends-on): Add 'raise'.
42068 * lib/savewd.c: Include <signal.h>, for 'raise'.
42070 2006-09-26 Jim Meyering <jim@meyering.net>
42072 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42073 when we detect Darwin 8.7.0's acl_get_file bug.
42074 Rearrange to perform the new (below) run-test while $LIBS
42075 contains any acl-related library. Set USE_ACL at the end.
42076 (gl_ACL_GET_FILE): New function.
42078 2006-09-26 Eric Blake <ebb9@byu.net>
42080 * lib/verror.c: Include <config.h> unconditionally.
42082 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
42084 * modules/clock-time (Maintainer): Add self.
42085 * modules/getlogin_r (Depends-on): Add extensions.
42087 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42089 * modules/clock-time: New module.
42090 * modules/nanosleep (Depends-on): Add clock-time.
42091 * modules/gethrxtime (Depends-on): Likewise.
42092 * modules/gettime (Depends-on): Likewise.
42093 * modules/settime (Depends-on): Likewise.
42095 * modules/fts-lgpl: Depend on openat.
42096 * modules/mkancesdirs: Depend on savewd.
42097 * modules/mkdir-p: Likewise.
42099 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42101 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42103 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42104 `gl_have_arbitrary_file_name_length_limit' to
42105 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42106 actually works between configure runs.
42108 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42109 Bruno Haible <bruno@clisp.org>
42111 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42113 2006-09-25 Jim Meyering <jim@meyering.net>
42115 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42116 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42118 2006-09-25 Eric Blake <ebb9@byu.net>
42120 * gnulib-tool (func_import, func_create_testdir): Fix typos in
42121 exec's in 2006-09-18 patch when shuffling fds.
42123 2006-09-25 Bruno Haible <bruno@clisp.org>
42125 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42126 Reported by Jim Meyering.
42128 2006-09-24 Jim Meyering <jim@meyering.net>
42130 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42131 compare a pointer against a literal "0". That caused failures with
42132 at least HP-UX's hpcc.
42134 2006-09-22 Simon Josefsson <jas@extundo.com>
42138 * modules/gc-hmac-sha1:
42139 * modules/gc-hmac-md5:
42141 * modules/gc-arcfour: Distribute more files.
42143 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42145 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42146 (gl_linked_iterator_from_to): Initialize struct completely.
42147 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42148 (gl_tree_iterator_from_to): Likewise
42149 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42150 * lib/gl_array_list.c [lint] (gl_array_iterator)
42151 (gl_array_iterator_from_to): Likewise.
42152 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42153 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42154 (gl_carray_iterator_from_to): Likewise.
42156 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42157 * lib/md4.c (md4_process_block): Remove unused variable.
42158 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42159 parentheses for clarity.
42161 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42163 * modules/bison-i18n (Depends-on): Add gettext.
42165 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42167 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42168 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42169 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42170 also add missing comma that caused broken test.
42171 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42172 stdlib.h, for `abort'.
42173 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42175 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42176 include unistd.h if present, for `rmdir'.
42177 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42179 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42180 in the process include standard headers for prototypes.
42181 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42182 gets declared on GNU/Linux.
42183 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42184 unistd.h, for `rmdir'.
42185 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42187 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42189 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42191 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42193 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42195 * gnulib-tool (func_version): Create output all at once. This
42196 may help avoid triggering unnecessary SIGPIPEs, and at any
42197 rate it doesn't hurt.
42199 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42200 Bruno Haible <bruno@clisp.org>
42202 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42203 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42204 * m4/signed.m4 (bh_C_SIGNED): Likewise.
42206 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42207 (gl_FUNC_VASPRINTF): Invoke it.
42209 2006-09-22 Bruno Haible <bruno@clisp.org>
42211 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42212 getloadavg.c as first argument.
42214 2006-09-22 Bruno Haible <bruno@clisp.org>
42216 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42217 at the beginning of the gl_INIT macro.
42218 * modules/getloadavg (configure.ac): Pass $gl_source_base to
42221 2006-09-22 Bruno Haible <bruno@clisp.org>
42223 * gnulib-tool (func_create_megatestdir): Don't include the config-h
42225 Suggested by Ralf Wildenhues.
42227 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
42229 Import this patch from libc:
42231 2006-09-06 Jakub Jelinek <jakub@redhat.com>
42233 * lib/regex_internal.c (re_string_reconstruct): Handle
42234 offset < pstr->valid_raw_len && pstr->offsets_needed case.
42235 Ensure no bytes read before raw_mbs array. Pass a saved copy of
42236 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42237 re_string_context_at.
42239 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42241 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42242 gl_REGEX now does it for us.
42243 (gl_REGEX): Add test taken from
42244 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42246 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42247 Check that large offsets work. Modernize Autoconf usages.
42248 Prefer "yes" to mean a good thing rather than a bad.
42249 Don't put "#define mkstemp" in config.h, as this might interfere
42250 with standard system headers that "#define mkstemp mkstemp64".
42252 * modules/mkstemp (Depends-on): Add extensions, so that
42253 mkstemp is visible on some platforms.
42254 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42255 (Include): Change to "mkstemp.h" from <stdlib.h>.
42256 (Files): Add mkstemp.h.
42258 * lib/mkstemp.h: New file, since some standard headers
42260 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42261 Include "mkstemp.h".
42262 Make the _LIBC code resemble glibc original more,
42263 e.g., use K&R style.
42264 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42265 (mkstemp): Remove, since mkstemp.h does this for us.
42266 * lib/stdlib--.h: Include mkstemp.h.
42268 Import this patch from libc:
42270 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42272 * lib/tempname.c (__gen_tempname): Change attempts_min
42273 into a macro. Use preprocessor to decide how to initialize
42274 attempts [Coverity CID 67].
42276 2006-09-20 Bruno Haible <bruno@clisp.org>
42278 * lib/mkdtemp.c: Import from libc.
42279 2006-04-07 Ulrich Drepper <drepper@redhat.com>
42280 * sysdeps/posix/tempname.c (__gen_tempname): Change
42281 attempts_min into a macro. Use preprocessor to decide how to
42282 initialize attempts [Coverity CID 67].
42283 2001-11-27 Paul Eggert <eggert@twinsun.com>
42284 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42285 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42287 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42289 * gnulib-tool (func_exit): New function, to allow to pass the
42290 exit status portably through the trap. Use everywhere.
42291 (--help, --version): Signal a write error.
42292 (trap): catch SIGPIPE, for write errors.
42293 Exit at the end of the trap, with the correct exit status.
42295 2006-09-19 Karl Berry <karl@gnu.org>
42297 * doc/gnulib.texi: note about the license texinfo files.
42299 2006-09-19 Eric Blake <ebb9@byu.net>
42301 * gnulib-tool: Avoid space-tab.
42303 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42305 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42306 that prevented coreutils 6.1 from building. Problem reported
42307 by Petter Reinholdtsen.
42309 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
42311 * gnulib-tool (avoidlist): Fix typo that broke options like
42312 --avoid=lock that are used by coreutils bootstrap.
42314 2006-09-18 Mark D. Baushke <mdb@gnu.org>
42316 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42317 more systematically.
42319 2006-09-18 Jim Meyering <jim@meyering.net>
42321 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42323 2006-09-18 Bruno Haible <bruno@clisp.org>
42325 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42327 2006-09-18 Bruno Haible <bruno@clisp.org>
42329 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42330 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42331 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42332 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42333 * m4/gettext.m4: Require autoconf >= 2.52.
42334 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42335 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42336 of gl_cv_header_inttypes_h.
42338 2006-09-18 Bruno Haible <bruno@clisp.org>
42340 * lib/javaversion.c: Include configmake.h.
42342 2006-09-18 Bruno Haible <bruno@clisp.org>
42344 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42345 avoid that the while loops be executed in a subshell.
42347 2006-09-18 Bruno Haible <bruno@clisp.org>
42349 * MODULES.html.sh (func_module): Break long lines.
42350 Suggested by Bruce Korb <bkorb@gnu.org>.
42352 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42354 Speed up by a factor of 1.12.
42355 * gnulib-tool (nl): New variable.
42356 (func_import): Rewrite include directive extraction to only read each
42359 2006-09-17 Bruno Haible <bruno@clisp.org>
42361 * modules/javaversion (Makefile.am): Remove DEFS setting.
42362 (Depends-on): Add configmake, for PKGDATADIR definition.
42364 2006-09-17 Bruno Haible <bruno@clisp.org>
42366 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42368 2006-09-17 Bruno Haible <bruno@clisp.org>
42370 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42371 (func_modules_transitive_closure, func_modules_add_dummy,
42372 func_modules_to_filelist, func_import, func_create_testdir,
42373 func_create_megatestdir, ...): Use it wherever possible.
42374 Suggested by Ralf Wildenhues.
42376 2006-09-16 Karl Berry <karl@gnu.org>
42378 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42379 to avoid sectioning errors.
42380 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42381 [ifinfo]: blank line after @center-ed titles.
42382 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42383 Spell FSF address consistently with others.
42384 (These changes approved by rms.)
42386 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42388 Speed up by a factor of 1.61.
42389 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42390 already checked module names again.
42392 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42394 Speed up by a factor of 1.13.
42395 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42396 for new_files, and the input to func_add_or_update.
42398 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42400 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42401 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42403 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42405 * modules/mkancesdirs (Depends-on): Add fcntl.
42406 * modules/savewd: New file.
42407 * MODULES.html.sh (File system functions): Add savewd.
42409 * modules/configmake (Makefile.am): Add support for the
42410 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42412 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42414 * m4/savewd.m4: New file.
42416 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42418 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42419 (dirchownmod): New arg FD. All callers changed.
42420 Use FD rather than opening the directory ourself, as opening is
42421 now the caller's responsibility.
42422 * lib/dirchownmod.h: Likewise.
42423 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42424 hosts that require <sys/types.h> before <sys/stat.h>. Include
42425 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42426 (test_dir): Remove.
42427 (mkancesdirs): Return length of prefix of FILE that has already
42428 been made, or -2 if there is a child doing the work. Redo
42429 algorithm so that it is O(N) rather than O(N**2). Optimize away
42430 ".", and treat ".." specially since it might stray back into
42431 already-created areas. Use a subprocess if necessary. New arg
42432 WD; all users changed. MAKE_DIR function should now return 1
42433 if it creates a directory that is not readable. Return -2 if
42434 a child process is spun off.
42435 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42436 Adjust signature to match code.
42437 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42438 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42440 * lib/savewd.c, lib/savewd.h: New files.
42442 2006-09-15 Jim Meyering <jim@meyering.net>
42444 * modules/rename-dest-slash: New module.
42445 * MODULES.html.sh (posix_compat): Add it here.
42447 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42449 2006-09-15 Jim Meyering <jim@meyering.net>
42451 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42454 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42456 2006-09-15 Jim Meyering <jim@meyering.net>
42458 * lib/rename-dest-slash.c (has_trailing_slash): Use
42459 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42460 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42461 test before testing whether SRC is a directory.
42462 Suggestions from Bruno Haible.
42464 Avoid a warning about an unused variable.
42465 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42466 into the #ifdef block where it's used.
42468 * lib/rename-dest-slash.c: New file.
42470 2006-09-14 Bruno Haible <bruno@clisp.org>
42472 * lib/allocsa.c: Include <config.h> unconditionally.
42473 * lib/asnprintf.c: Likewise.
42474 * lib/asprintf.c: Likewise.
42475 * lib/c-strcasecmp.c: Likewise.
42476 * lib/c-strcasestr.c: Likewise.
42477 * lib/c-strncasecmp.c: Likewise.
42478 * lib/c-strstr.c: Likewise.
42479 * lib/classpath.c: Likewise.
42480 * lib/clean-temp.c: Likewise.
42481 * lib/concatpath.c: Likewise.
42482 * lib/copy-file.c: Likewise.
42483 * lib/csharpcomp.c: Likewise.
42484 * lib/csharpexec.c: Likewise.
42485 * lib/execute.c: Likewise.
42486 * lib/fatal-signal.c: Likewise.
42487 * lib/findprog.c: Likewise.
42488 * lib/fwriteerror.c: Likewise.
42489 * lib/gl_array_list.c: Likewise.
42490 * lib/gl_array_oset.c: Likewise.
42491 * lib/gl_avltree_list.c: Likewise.
42492 * lib/gl_avltree_oset.c: Likewise.
42493 * lib/gl_avltreehash_list.c: Likewise.
42494 * lib/gl_carray_list.c: Likewise.
42495 * lib/gl_linked_list.c: Likewise.
42496 * lib/gl_linkedhash_list.c: Likewise.
42497 * lib/gl_list.c: Likewise.
42498 * lib/gl_oset.c: Likewise.
42499 * lib/gl_rbtree_list.c: Likewise.
42500 * lib/gl_rbtree_oset.c: Likewise.
42501 * lib/gl_rbtreehash_list.c: Likewise.
42502 * lib/imaxabs.c: Likewise.
42503 * lib/imaxdiv.c: Likewise.
42504 * lib/javacomp.c: Likewise.
42505 * lib/javaexec.c: Likewise.
42506 * lib/javaversion.c: Likewise.
42507 * lib/linebreak.c: Likewise.
42508 * lib/localcharset.c: Likewise.
42509 * lib/lock.c: Likewise.
42510 * lib/mbchar.c: Likewise.
42511 * lib/mbswidth.c: Likewise.
42512 * lib/mkdtemp.c: Likewise.
42513 * lib/pipe.c: Likewise.
42514 * lib/printf-args.c: Likewise.
42515 * lib/printf-parse.c: Likewise.
42516 * lib/progname.c: Likewise.
42517 * lib/progreloc.c: Likewise.
42518 * lib/readlink.c: Likewise.
42519 * lib/sh-quote.c: Likewise.
42520 * lib/stpcpy.c: Likewise.
42521 * lib/stpncpy.c: Likewise.
42522 * lib/strcasecmp.c: Likewise.
42523 * lib/strcasestr.c: Likewise.
42524 * lib/strcspn.c: Likewise.
42525 * lib/striconv.c: Likewise.
42526 * lib/strncasecmp.c: Likewise.
42527 * lib/strnlen1.c: Likewise.
42528 * lib/strstr.c: Likewise.
42529 * lib/strtok_r.c: Likewise.
42530 * lib/tls.c: Likewise.
42531 * lib/tmpdir.c: Likewise.
42532 * lib/unicodeio.c: Likewise.
42533 * lib/unsetenv.c: Likewise.
42534 * lib/vasnprintf.c: Likewise.
42535 * lib/vasprintf.c: Likewise.
42536 * lib/wait-process.c: Likewise.
42537 * lib/xallocsa.c: Likewise.
42538 * lib/xsetenv.c: Likewise.
42539 * lib/xstriconv.c: Likewise.
42541 2006-09-13 Simon Josefsson <jas@extundo.com>
42543 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42544 that internally, suggested by Ralf Wildenhues
42545 <Ralf.Wildenhues@gmx.de>.
42547 2006-09-13 Simon Josefsson <jas@extundo.com>
42549 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42551 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42553 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42555 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42556 longer worry about uses that don't define HAVE_CONFIG_H.
42557 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42558 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42559 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42560 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42561 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42562 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42563 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42564 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42565 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42566 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42567 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42568 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42569 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42570 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42571 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42572 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42573 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42574 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42575 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42576 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42577 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42578 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42579 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42580 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42581 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42582 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42583 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42584 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42585 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42586 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42587 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42588 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42589 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42590 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42591 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42592 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42593 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42594 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42595 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42596 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42597 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42600 2006-09-13 Eric Blake <ebb9@byu.net>
42602 * lib/getopt.c: Fix typo in last commit.
42604 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
42606 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42609 2006-09-12 Jim Meyering <jim@meyering.net>
42611 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42612 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42613 Reported by Nelson H. F. Beebe.
42615 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
42617 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42618 program_invocation_name and program_invocation_short_name are
42620 * lib/argp-namefrob.h: Move declarations of program_invocation_name
42621 and program_invocation_short_name to argp.h, so they are visible
42623 * lib/argp.h: Likewise
42625 2006-09-10 Bruno Haible <bruno@clisp.org>
42627 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42628 m4/inttypes_h.m4, m4/uintmax_t.m4.
42630 2006-09-10 Bruno Haible <bruno@clisp.org>
42632 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42633 gl_AC_TYPE_UINTMAX_T.
42635 2006-09-10 Bruno Haible <bruno@clisp.org>
42637 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42639 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
42641 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42642 convention. Text proposed by Bruno Haible.
42643 (struct argp_option): Document the use of N_() wrappers.
42645 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42646 '\v', and translate the two parts separately, instead of feeding
42647 the whole string to gettext. This allows to exclude
42648 '\v' from the strings visible to the translator by writing doc
42649 strings as N_("..") "\v" N_("..").
42651 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
42653 * config/srclist.txt: Undo latest change; the bug was fixed.
42655 2006-09-09 Bruno Haible <bruno@clisp.org>
42657 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42658 assignments if building a library without libtool.
42659 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42660 in func_emit_lib_Makefile_am.
42661 (func_import): When building a static library libfoo.a, arrange to
42662 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42663 (func_create_testdir): Likewise.
42664 * modules/gc (configure.ac, Makefile.am): If building statically,
42665 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42666 * modules/iconvme (configure.ac, Makefile.am): Likewise.
42667 * modules/striconv (configure.ac, Makefile.am): Likewise.
42668 Based on a suggestion by Ralf Wildenhues.
42670 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42672 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42673 Check for unistd.h too, since Autoconf doesn't assume POSIX.
42676 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42677 Add year_2050_test to catch glibc bug 2821
42678 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42680 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42681 Prefer #ifdef to #if.
42683 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
42684 Return from 'main' instead of calling 'exit'.
42686 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42688 * lib/mktime.c (guess_time_tm): Fix bug where mktime
42689 returned the maximum time_t value rather than (time_t) -1.
42690 Problem originally reported by William Bardwell
42691 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42693 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42695 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42698 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42700 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42703 2006-09-08 Jim Meyering <jim@meyering.net>
42705 Don't make generated files read-only. That would bother too many
42706 people. However, do retain the ability to work when targets are
42707 read-only: remove the destination and temporary files before writing
42708 them (when generated via sed or echo), or by using the -f option for
42709 both cp and mv commands. Suggestion to use -f from Paul Eggert.
42710 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42711 * modules/byteswap, modules/configmake, modules/fcntl:
42712 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42713 * modules/localcharset, modules/netinet_in, modules/poll:
42714 * modules/stdbool, modules/stdint, modules/sys_select:
42715 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42717 2006-09-08 Jim Meyering <jim@meyering.net>
42719 Avoid new build failure on FreeBSD 6.0.
42720 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42721 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
42722 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42724 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42726 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42728 2006-09-07 Jim Meyering <jim@meyering.net>
42730 Fix global typo in last change: use chmod u-w, not chmod u-x.
42731 Spotted by Paul Eggert and Bruce Korb.
42732 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42733 * modules/byteswap, modules/configmake, modules/fcntl:
42734 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42735 * modules/localcharset, modules/netinet_in, modules/poll:
42736 * modules/stdbool, modules/stdint, modules/sys_select:
42737 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42739 2006-09-06 Jim Meyering <jim@meyering.net>
42741 Make generated files be read-only.
42742 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42743 Ensure that each generated file is now read-only.
42744 * modules/argz: Likewise.
42745 * modules/arpa_inet: Likewise.
42746 * modules/byteswap: Likewise.
42747 * modules/configmake: Likewise.
42748 * modules/fcntl: Likewise.
42749 * modules/fnmatch: Likewise.
42750 * modules/getopt: Likewise.
42751 * modules/glob: Likewise.
42752 * modules/inttypes: Likewise.
42753 * modules/netinet_in: Likewise.
42754 * modules/poll: Likewise.
42755 * modules/stdbool: Likewise.
42756 * modules/stdint: Likewise.
42757 * modules/sys_select: Likewise.
42758 * modules/sys_socket: Likewise.
42759 * modules/sys_stat: Likewise.
42760 * modules/sysexits: Likewise.
42761 * modules/localcharset: Same as above, but continue using temporary
42762 file named "t-$@" (why different?) rather than the "$@-t" used
42765 * modules/sysexits (Makefile.am): Replace literal occurrences
42766 of "sysexit.h" more readable, and more consistent, "$@".
42768 2006-09-06 Bruno Haible <bruno@clisp.org>
42770 * modules/striconv: New file.
42771 * modules/xstriconv: New file.
42772 * MODULES.html.sh (Internationalization functions): Add striconv,
42775 2006-09-06 Bruno Haible <bruno@clisp.org>
42777 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42778 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42779 not using libtool correctly.
42781 2006-09-06 Bruno Haible <bruno@clisp.org>
42783 * lib/striconv.h: New file.
42784 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42786 * lib/xstriconv.h: New file.
42787 * lib/xstriconv.c: New file.
42789 2006-09-06 Bruno Haible <bruno@clisp.org>
42791 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42794 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42796 * lib/argz_.h: Sync from Libtool.
42798 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
42799 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42801 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42803 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42805 * modules/trim: New file.
42807 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42809 * lib/trim.h: New file.
42810 * lib/trim.c: New file.
42812 2006-09-05 Bruno Haible <bruno@clisp.org>
42814 * MODULES.html.sh (String handling): Add trim.
42816 2006-09-04 Karl Berry <karl@gnu.org>
42818 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42819 until next release.
42821 2006-09-03 Bruno Haible <bruno@clisp.org>
42823 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42826 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42828 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42829 not gl_GETLOADAVG. Omit unneeded semicolons.
42830 Problems reported by Ralf Wildenhues in
42831 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42832 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
42833 at the end, which is the usual gnulib style.
42835 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42836 of doing all the work ourselves.
42837 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42838 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42840 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42842 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42843 Problem reported by Ralf Wildenhues in
42844 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42846 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42847 HAVE_STRUCT_STATFS_F_FSTYPENAME.
42849 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42851 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42852 yesterday's patch by changing test -n to test -z.
42854 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42856 * modules/getloadavg (Files): Add m4/getloadavg.m4.
42857 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42858 the former is now obsolescent.
42860 * modules/chdir-long (Depends-on): Add fcntl.
42862 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42864 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42865 obsolescent, and programs should use gnulib instead.
42866 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42867 but with prefixes changed.
42869 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42871 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42872 or stdbool.h, because they might not exist while configuring.
42874 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42875 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42877 (O_DIRECTORY): Remove.
42879 2006-08-31 Eric Blake <ebb9@byu.net>
42881 * gnulib-tool: Don't let emacs change spaces to TAB.
42883 2006-08-31 Bruno Haible <bruno@clisp.org>
42885 * gnulib-tool: When calling func_import more than once, do it in a
42887 Reported by Eric Blake <ebb9@byu.net>.
42889 2006-08-31 Bruno Haible <bruno@clisp.org>
42891 * gnulib-tool (nl): Remove variable.
42892 (sed_transform_lib_file): Use more robust test for config-h module.
42893 (func_import): Fix typo in 2006-08-25 patch.
42895 2006-08-31 Bruno Haible <bruno@clisp.org>
42897 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42898 specified, augment Makefile.am variables instead of assigning them.
42900 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42902 Work around a bug in both the Linux and SunOS 64-bit kernels:
42903 nanosleep mishandles sleeps for longer than 2**31 seconds.
42904 Problem reported by Frank v Waveren in
42905 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42906 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42907 Check for nanosleep bug.
42908 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42910 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42912 Work around a bug in both the Linux and SunOS 64-bit kernels:
42913 nanosleep mishandles sleeps for longer than 2**31 seconds.
42914 Problem reported by Frank v Waveren in
42915 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42916 * lib/nanosleep.c (BILLION): New constant.
42917 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42918 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42921 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42923 * modules/nanosleep (Depends-on): Add gettime.
42925 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42926 and Simon Josefsson <jas@extundo.com>
42927 and Oskar Liljeblad <oskar@osk.mine.nu>
42929 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42930 * gnulib-tool (func_import): New license type 'unmodifiable license
42932 * modules/fdl: Use it. Longer description.
42933 * module/gpl, module/lgpl: New files.
42935 2006-08-30 Jim Meyering <jim@meyering.net>
42937 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42938 shadowing the parameter.
42940 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42944 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42946 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42947 sharing with gnulib. Report by Eric Blake.
42949 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42951 * modules/isapipe: New file.
42952 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42954 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42956 * modules/configmake (Makefile.am): Add a comment, and omit
42957 the CONFIGMAKE_ prefix from generated macro names. Suggested
42960 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42962 * m4/isapipe.m4: New file.
42964 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42966 * lib/isapipe.c, lib/isapipe.h: New files.
42968 2006-08-29 Jim Meyering <jim@meyering.net>
42970 * modules/configmake (Makefile.am): Make configmake.h depend on
42971 Makefile. Otherwise, a stale configmake.h could hang around.
42973 2006-08-29 Eric Blake <ebb9@byu.net>
42975 * lib/error.c (error_at_line, print_errno_message): Match libc, after
42976 resolution of upstream bug 3044.
42978 2006-08-29 Bruno Haible <bruno@clisp.org>
42980 * modules/localcharset (Depends-on): Add configmake.
42981 (Makefile.am): Remove setting of LIBDIR through DEFS.
42983 2006-08-29 Bruno Haible <bruno@clisp.org>
42985 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42988 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42990 * modules/fcntl: New file.
42991 * modules/chdir-safer (Depends-on): Add fcntl.
42992 * modules/fts: Likewise.
42993 * modules/mkdir-p: Likewise.
42995 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42996 This undoes the most recent change, since we're now addressing the
42997 problem in a different way.
42999 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43000 into output, since the output might be called Makefile.am even
43001 if $makefile_name is something different.
43002 (func_import): Use $makefile_am rather than
43003 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43006 * modules/inttypes (Files): Add m4/inttypes-h.m4.
43008 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43010 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43011 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
43012 recent change to stdint.m4, since we're now addressing the problem in a
43015 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43017 * m4/fcntl_h.m4: New file.
43019 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43021 * lib/fcntl_.h: New file.
43022 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43024 * lib/dirchownmod.c: Likewise.
43025 * lib/fts.c: Likewise.
43027 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43028 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43029 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43030 just before including <inttypes.h>, to avoid circular inclusion.
43032 2006-08-28 Jim Meyering <jim@meyering.net>
43034 * doc/visibility.texi: Actually read and correct the grammar of the
43035 sentence affected by yesterday's change.
43037 2006-08-28 Eric Blake <ebb9@byu.net>
43039 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43042 2006-08-28 Eric Blake <ebb9@byu.net>
43044 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43046 2006-08-28 Eric Blake <ebb9@byu.net>
43048 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43050 2006-08-28 Bruno Haible <bruno@clisp.org>
43052 * modules/c-strstr: New file, from GNU gettext.
43053 * MODULES.html.sh (String handling): Add c-strstr.
43055 2006-08-28 Bruno Haible <bruno@clisp.org>
43057 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43059 Reported by Eric Blake.
43061 2006-08-28 Bruno Haible <bruno@clisp.org>
43063 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43064 (VASNPRINTF): Return a string of length > INT_MAX without failing.
43065 * lib/vasprintf.c: Include errno.h, limits.h.
43066 (EOVERFLOW): New fallback definition.
43067 (vasprintf): Test here whether the string length is > INT_MAX.
43068 * lib/vsnprintf.c: Include errno.h, limits.h.
43069 (EOVERFLOW): New fallback definition.
43070 (vsnprintf): Fix bug when generated string was too long for the buffer.
43071 Test here whether the string length is > INT_MAX.
43073 2006-08-28 Bruno Haible <bruno@clisp.org>
43075 * lib/inttypes_.h (SCNX*): Remove definitions.
43076 Reported by Eric Blake.
43078 2006-08-28 Bruno Haible <bruno@clisp.org>
43080 * lib/c-strstr.h: New file, from GNU gettext.
43081 * lib/c-strstr.c: New file, from GNU gettext.
43083 2006-08-28 Bruno Haible <bruno@clisp.org>
43085 * gnulib-tool: Reorder some statements.
43087 2006-08-28 Bruno Haible <bruno@clisp.org>
43089 * gnulib-tool: New option --makefile-name.
43090 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43092 (func_import): Write $makefile_name to the cache file, and read it from
43093 there unless explicitly specified. Use $makefile_name as file name
43094 instead of Makefile.am. Adjust the recommendations accordingly.
43096 2006-08-28 Bruno Haible <bruno@clisp.org>
43098 * gnulib-tool (func_verify_module): Check against misapplying patch.
43100 2006-08-28 Bruno Haible <bruno@clisp.org>
43102 * gnulib-tool (func_relativize, func_relconcat): New functions.
43103 Give an error if --local-dir is given with --update.
43104 Remove trailing slashes from $local_gnulib_dir.
43105 (func_import): Store the relativized $local_gnulib_dir in
43106 gnulib-cache.m4, and read it from there if not specified explicitly.
43108 2006-08-28 Bruno Haible <bruno@clisp.org>
43110 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43111 is the current directory. Respect also $local_gnulib_dir.
43113 2006-08-28 Bruno Haible <bruno@clisp.org>
43114 Simon Josefsson <jas@extundo.com>
43117 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43119 2006-08-27 Jim Meyering <jim@meyering.net>
43121 * doc/visibility.texi: Remove duplicate word: "pointer".
43123 2006-08-26 Bruno Haible <bruno@clisp.org>
43125 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43126 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43127 (Makefile.am): Create inttypes.h from inttypes_.h.
43128 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43130 * modules/imaxabs: New file.
43132 * modules/imaxdiv: New file.
43134 2006-08-26 Bruno Haible <bruno@clisp.org>
43136 * m4/inttypes.m4: New file.
43137 * m4/_inttypes_h.m4: Remove file.
43138 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43140 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43142 * m4/imaxabs.m4: New file.
43144 * m4/imaxdiv.m4: New file.
43146 2006-08-26 Bruno Haible <bruno@clisp.org>
43148 * lib/inttypes_.h: New file.
43149 * lib/inttypes.h: Remove file.
43150 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43152 * lib/imaxabs.c: New file.
43154 * lib/imaxdiv.c: New file.
43156 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43158 New config-h module, so that "make" output needn't be cluttered
43159 by -DHAVE_CONFIG_H.
43160 * MODULES.html.sh (Support for building libraries and executables):
43162 * modules/config-h: New file.
43163 * gnulib-tool (nl, sed_transform_lib_file): New vars.
43164 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43165 the config-h module is used.
43167 New configmake module, so that "make" output needn't be cluttered
43168 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43169 * MODULES.html.sh (Support for building libraries and executables):
43171 * modules/configmake: New file.
43173 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
43175 * m4/config-h.m4: New file.
43177 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43179 * config/srclist.txt: Add elisp-comp.
43181 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
43183 * MODULES.html.sh (Support for building libraries and executables):
43185 * build-aux/elisp-comp: New file.
43186 * modules/elisp-comp: New file.
43188 2006-08-24 Bruno Haible <bruno@clisp.org>
43190 * gnulib-tool (func_create_testdir): Use non-default values of
43191 sourcebase and m4base.
43193 2006-08-24 Bruno Haible <bruno@clisp.org>
43195 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43198 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
43200 * modules/openat (Depends-on): Add lchown.
43202 2006-08-23 Bruno Haible <bruno@clisp.org>
43204 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43205 of gl_LOCK_EARLY instead of gl_LOCK.
43207 2006-08-23 Bruno Haible <bruno@clisp.org>
43209 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43211 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43213 2006-08-23 Bruno Haible <bruno@clisp.org>
43215 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43218 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43219 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43220 (gl_LOCK): New macro.
43222 2006-08-22 Simon Josefsson <jas@extundo.com>
43224 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43227 2006-08-22 Simon Josefsson <jas@extundo.com>
43229 * MODULES.html.sh: Add "Support for maintaining and release
43232 * build-aux/gnupload: New file, from coreutils.
43234 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43236 Avoid the need for AC_LIBSOURCES in m4 macros.
43237 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43238 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43239 * modules/check-version (EXTRA_DIST): Add check-version.h.
43240 * modules/crc (EXTRA_DIST): Add crc.h.
43241 * modules/des (EXTRA_DIST): Add des.h.
43242 * modules/gc (EXTRA_DIST): Add gc.h.
43243 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43244 * modules/getline (EXTRA_DIST): Add getline.h.
43245 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43246 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43247 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43248 * modules/md2 (EXTRA_DIST): Add md2.h.
43249 * modules/md4 (EXTRA_DIST): Add md4.h.
43250 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43251 * modules/read-file (EXTRA_DIST): Add read-file.h.
43252 * modules/readline (EXTRA_DIST): Add readline.h.
43253 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43254 rijndael-api-fst.h.
43256 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43258 * m4/rijndael.m4 (gl_ARCFOUR):
43259 * m4/arctwo.m4 (gl_ARCTWO):
43260 * m4/check-version.m4 (gl_CHECK_VERSION):
43261 * m4/crc.m4 (gl_CRC):
43262 * m4/des.m4 (gl_DES):
43263 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43264 * m4/gc.m4 (gl_GC):
43265 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43266 * m4/getline.m4 (gl_FUNC_GETLINE):
43267 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43268 * m4/hmac-md5.m4 (gl_HMAC_MD5):
43269 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43270 * m4/md2.m4 (gl_MD2):
43271 * m4/md4.m4 (gl_MD4):
43272 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43273 * m4/read-file.m4 (gl_FUNC_READ_FILE):
43274 * m4/readline.m4 (gl_FUNC_READLINE):
43275 * m4/rijndael.m4 (gl_RIJNDAEL):
43276 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43277 to get the necessary .h files and whatnot.
43279 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
43281 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43282 gnulib rather than the other way around.
43283 * config/srclistvars.sh (COREUTILS): Remove.
43285 2006-08-22 Jim Meyering <jim@meyering.net>
43287 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43289 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43291 2006-08-22 Eric Blake <ebb9@byu.net>
43293 * modules/regexprops-generic: New file.
43294 * MODULES.html.sh (Support for building documentation): List it.
43296 2006-08-22 Eric Blake <ebb9@byu.net>
43298 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43299 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43300 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43301 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43303 2006-08-22 Bruno Haible <bruno@clisp.org>
43305 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43306 and lib_LTLIBRARIES like the other lib_* variables.
43308 2006-08-22 Bruno Haible <bruno@clisp.org>
43310 * build-aux/x-to-1.in: New file, from GNU gettext.
43312 2006-08-22 Bruno Haible <bruno@clisp.org>
43314 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43317 2006-08-22 Bruno Haible <bruno@clisp.org>
43319 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43322 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43325 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43327 Problem reported by Bruno Haible.
43329 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43331 Avoid the need for AC_LIBSOURCES in m4 macros.
43332 * modules/acl (EXTRA_DIST): Add acl.h.
43333 * modules/argmatch (Files): Add m4/argmatch.m4.
43334 (configure.ac): Add gl_ARGMATCH.
43335 (EXTRA_DIST): Renamed from lib_SOURCES, for
43336 consistency with the other modules. Remove argmatch.c.
43337 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43338 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43339 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43340 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43341 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43342 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43343 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43344 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43345 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43346 * modules/closeout (EXTRA_DIST): Add closeout.h.
43347 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43348 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43349 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43350 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
43351 dirname.h; remove basename.c and stripslash.c.
43352 * modules/exclude (EXTRA_DIST): Add exclude.h.
43353 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43354 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43355 * modules/file-type (EXTRA_DIST): Add file-type.h.
43356 * modules/filemode (EXTRA_DIST): Add filemode.h.
43357 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43358 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43359 * modules/fpending (EXTRA_DIST): Add __fpending.h.
43360 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43361 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43362 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43363 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43364 * modules/getdate (EXTRA_DIST): Add getdate.c.
43365 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43366 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43367 * modules/getpass (EXTRA_DIST): Add getpass.h.
43368 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43369 * modules/group-member (EXTRA_DIST): Add group-member.h.
43370 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43371 * modules/hash (EXTRA_DIST): Add hash.h.
43372 * modules/human (EXTRA_DIST): Add human.h.
43373 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43374 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43375 * modules/lchown (EXTRA_DIST): Add lchown.h.
43376 * modules/long-options (EXTRA_DIST): Add long-options.h.
43377 * modules/lstat (EXTRA_DIST): Add lstat.h.
43378 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43379 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43380 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43381 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43382 * modules/memxor (EXTRA_DIST): Add memxor.h.
43383 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43384 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43385 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43386 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43387 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43388 * modules/physmem (EXTRA_DIST): Add physmem.h.
43389 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43390 * modules/posixver (EXTRA_DIST): Add posixver.h.
43391 * modules/quote (EXTRA_DIST): Add quote.h.
43392 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43393 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43394 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43395 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43396 regex_internal.h regexec.c.
43397 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43398 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43399 * modules/same (EXTRA_DIST): Add same.h.
43400 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43401 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43402 * modules/savedir (EXTRA_DIST): Add savedir.h.
43403 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43404 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43405 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43406 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43407 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43408 * modules/strdup (EXTRA_DIST): Add strdup.h.
43409 * modules/strftime (EXTRA_DIST): Add strftime.h.
43410 * modules/strndup (EXTRA_DIST): Add strndup.h.
43411 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43412 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43413 * modules/time_r (EXTRA_DIST): Add time_r.h.
43414 * modules/timespec (EXTRA_DIST): Add timespec.h.
43415 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43416 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43417 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43418 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43419 * modules/userspec (EXTRA_DIST): Add userspec.h.
43420 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43421 * modules/utimens (EXTRA_DIST): Add utimens.h.
43422 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43423 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43424 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43425 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43426 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43427 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43428 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43429 * modules/yesno (EXTRA_DIST): Add yesno.h.
43431 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43433 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43435 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43436 * m4/dev-ino.m4, same-inode.m4: Remove.
43438 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43439 * m4/acl.m4 (AC_FUNC_ACL):
43440 * m4/backupfile.m4 (gl_BACKUPFILE):
43441 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43442 * m4/canon-host.m4 (gl_CANON_HOST):
43443 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43444 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43445 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43446 * m4/cloexec.m4 (gl_CLOEXEC):
43447 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43448 * m4/closeout.m4 (gl_CLOSEOUT):
43449 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43450 * m4/dirname.m4 (gl_DIRNAME):
43451 * m4/exclude.m4 (gl_EXCLUDE):
43452 * m4/exitfail.m4 (gl_EXITFAIL):
43453 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43454 * m4/file-type.m4 (gl_FILE_TYPE):
43455 * m4/filemode.m4 (gl_FILEMODE):
43456 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43457 * m4/fpending.m4 (gl_FUNC_FPENDING):
43458 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43459 * m4/fts.m4 (gl_FUNC_FTS):
43460 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43461 * m4/getdate.m4 (gl_GETDATE):
43462 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43463 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43464 * m4/getpass.m4 (gl_FUNC_GETPASS):
43465 * m4/gettime.m4 (gl_GETTIME):
43466 * m4/getugroups.m4 (gl_GETUGROUPS):
43467 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43468 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43469 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43470 * m4/hash.m4 (gl_HASH):
43471 * m4/idcache.m4 (gl_IDCACHE):
43472 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43473 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43474 * m4/long-options.m4 (gl_LONG_OPTIONS):
43475 * m4/lstat.m4 (gl_FUNC_LSTAT):
43476 * m4/md5.m4 (gl_MD5):
43477 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43478 * m4/memcoll.m4 (gl_MEMCOLL):
43479 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43480 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43481 * m4/memxor.m4 (gl_MEMXOR):
43482 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43483 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43484 * m4/modechange.m4 (gl_MODECHANGE):
43485 * m4/mountlist.m4 (gl_MOUNTLIST):
43486 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43487 * m4/openat.m4 (gl_FUNC_OPENAT):
43488 * m4/pathmax.m4 (gl_PATHMAX):
43489 * m4/physmem.m4 (gl_PHYSMEM):
43490 * m4/posixtm.m4 (gl_POSIXTM):
43491 * m4/posixver.m4 (gl_POSIXVER):
43492 * m4/quote.m4 (gl_QUOTE):
43493 * m4/quotearg.m4 (gl_QUOTEARG):
43494 * m4/readtokens.m4 (gl_READTOKENS):
43495 * m4/readutmp.m4 (gl_READUTMP):
43496 * m4/regex.m4 (gl_REGEX):
43497 * m4/safe-read.m4 (gl_SAFE_READ):
43498 * m4/safe-write.m4 (gl_SAFE_WRITE):
43499 * m4/same.m4 (gl_SAME):
43500 * m4/save-cwd.m4 (gl_SAVE_CWD):
43501 * m4/savedir.m4 (gl_SAVEDIR):
43502 * m4/settime.m4 (gl_SETTIME):
43503 * m4/sha1.m4 (gl_SHA1):
43504 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43505 * m4/stat-macros.m4 (gl_STAT_MACROS):
43506 * m4/stat-time.m4 (gl_STAT_TIME):
43507 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43508 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43509 * m4/strdup.m4 (gl_FUNC_STRDUP):
43510 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43511 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43512 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43513 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43514 * m4/time_r.m4 (gl_TIME_R):
43515 * m4/timespec.m4 (gl_TIMESPEC):
43516 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43517 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43518 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43519 * m4/userspec.m4 (gl_USERSPEC):
43520 * m4/utimecmp.m4 (gl_UTIMECMP):
43521 * m4/utimens.m4 (gl_UTIMENS):
43522 * m4/xalloc.m4 (gl_XALLOC):
43523 * m4/xgetcwd.m4 (gl_XGETCWD):
43524 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43525 * m4/xreadlink.m4 (gl_XREADLINK):
43526 * m4/xstrtod.m4 (gl_XSTRTOD):
43527 * m4/yesno.m4 (gl_YESNO):
43528 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43529 to get the necessary .h files and whatnot.
43531 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43532 Bruno Haible <bruno@clisp.org>
43534 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43535 /bin/sh understanding of '!' conditional negation.
43537 2006-08-21 Jim Meyering <jim@meyering.net>
43539 * modules/openat (Depends-on): Really alphabetize.
43541 * modules/acl (Depends-on): Add error and quote.
43543 * check-module (find_included_lib_files): Add at-func.c to the
43544 ok-to-include-more-than-once white list.
43546 * modules/openat (Depends-on): Add lstat. Alphabetize.
43548 2006-08-21 Bruno Haible <bruno@clisp.org>
43550 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43551 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43552 Reported by Martin Lambers <marlam@marlam.de>.
43554 2006-08-21 Bruno Haible <bruno@clisp.org>
43556 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43557 specify an installation location, don't emit a noinst_LIBRARIES or
43558 noinst_LTLIBRARIES assignment.
43560 2006-08-21 Bruno Haible <bruno@clisp.org>
43563 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43564 BeOS has mbrtowc() but no <wctype.h>.
43566 2006-08-21 Bruno Haible <bruno@clisp.org>
43569 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43572 2006-08-21 Bruno Haible <bruno@clisp.org>
43575 * lib/mbchar.h: Include <wctype.h> only if it exists.
43577 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43579 Remove files that are no longer needed by their respective modules.
43580 * m4/obstack.m4: Remove.
43581 * m4/strerror_r.m4: Remove.
43582 * m4/uint32_t.m4: Remove.
43583 * m4/uintptr_t.m4: Remove.
43584 * m4/ullong_max.m4: Remove.
43585 * m4/xstrtoimax.m4: Remove.
43586 * m4/xstrtoumax.m4: Remove.
43588 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43589 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43590 dependencies now capture this.
43592 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43593 Do not use AC_LIBSOURCES, since gnulib modules now do this.
43594 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43595 * m4/human.m4 (gl_HUMAN): Likewise.
43596 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43597 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43599 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43601 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43602 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43604 * m4/human.m4 (gl_HUMAN): Likewise.
43605 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43606 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43607 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43608 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43609 * m4/xstrtol (gl_XSTRTOL): Likewise.
43611 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43612 AC_TYPE_LONG_LONG_INT.
43613 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43614 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43615 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43616 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43618 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43621 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43622 (gl_PREREQ_XSTRTOUL): Remove.
43624 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43626 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43629 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43631 Add and change modules to make it easier for coreutils to use
43633 * modules/backupfile (Files): Remove m4/d-ino.m4.
43634 (Depends-on): Add d-ino.
43635 * modules/cycle-check (Depends-on): Add stdint.
43636 (lib_SOURCES): Add cycle-check.h.
43637 * modules/d-ino: New module.
43638 * modules/d-type: New module.
43639 * modules/error (Files): Remove m4/strerror_r.m4.
43640 * modules/filemode (Files): Add m4/st_dm_mode.m4.
43641 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43642 m4/inttypes_h.m4, m4/uintmax_t.m4.
43643 (Depends-on): Add stdint.
43644 (lib_SOURCES): Add fsusage.h.
43645 * modules/getcwd (Files): Remove d-ino.m4.
43646 (Depends-on): Add d-ino.
43647 * modules/getndelim2 (Depends-on): Add stdint.
43648 * modules/glob (Files): Remove m4/d-type.m4.
43649 (Depends-on): Add d-type.
43650 * modules/host-os: New module.
43651 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43652 m4/inttypes_h.m4, m4/uintmax_t.m4.
43653 * Depends-on: Add stdint.
43654 (lib_SOURCES): Add human.h.
43655 * modules/inttostr (Files): Remove m4/intmax_t.m4,
43656 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43657 m4/uintmax_t.m4, m4/ulonglong.m4.
43658 (Depends-on): Add stdint.
43659 (EXTRA_DIST): Add inttostr.h.
43660 * modules/lchmod: New module.
43661 * modules/link-follow: New module.
43662 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43663 (Depends-on): Add lchmod.
43664 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43665 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43666 (Depends-on): Add stdint.
43667 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43668 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43669 (Depends-on): Add stdint.
43670 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43671 * modules/perl: New module.
43672 * modules/regex (Depends-on): Add stdint.
43673 * modules/rmdir-errno: New module.
43674 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43676 (Depends-on): Add stdint.
43677 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43679 (Depends-on): Add stdint.
43680 * modules/unlink-busy: New module.
43681 * modules/utimecmp (Depends-on): Add stdint.
43682 * modules/uptime: New module.
43683 * modules/winsz-ioctl: New module.
43684 * modules/winsz-termios: New module.
43685 * modules/xnanosleep (Depends-on): Add nanosleep.
43686 * modules/ullong_max: Remove.
43687 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43688 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43689 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43690 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43691 (Depends-on): Add inttypes.
43692 (lib_SOURCES): Add xstrtol.h.
43693 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43694 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43695 * MODULES.html.sh: Move 'assert' into the assert section.
43696 Move 'dummy' into the linking section.
43698 Add section for compatibility checks for POSIX:2001 functions,
43699 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43700 winsz-ioctl, and winsz-termios into it.
43702 Add top-level Misc section and put host-os, perl, and uptime
43705 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43707 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43708 now assume the stdint module. Do not include inttypes.h.
43709 * lib/fsusage.h: Likewise.
43710 * lib/getndelim2.c: Likewise.
43711 * lib/human.h: Likewise.
43712 * lib/inttostr.h: Likewise.
43713 * lib/obstack.c: Likewise.
43714 * lib/regex_internal.h: Likewise.
43715 * lib/tempname.c: Likewise.
43716 * lib/utimecmp.c: Likewise.
43717 * lib/xstrtol.h: Likewise.
43719 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43721 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43722 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43723 * lib/xtime.h: Likewise.
43725 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43727 * modules/openat (Files): Add lib/fchmodat.c.
43728 Fixes problem reported by Jay Youngman.
43730 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43732 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
43733 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
43735 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
43736 Bruno Haible <bruno@clisp.org>
43738 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43739 and is a script that invokes bison. Tighten the code. Add comments.
43741 2006-08-18 Jim Meyering <jim@meyering.net>
43743 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43744 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43745 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
43746 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43748 2006-08-18 Bruno Haible <bruno@clisp.org>
43750 * modules/bison-i18n: New file.
43751 * MODULES.html.sh (Internationalization functions): Add it.
43753 2006-08-18 Bruno Haible <bruno@clisp.org>
43755 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43756 sys/statvfs.h. When getmntinfo was found, check its declaration and
43757 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43759 2006-08-18 Bruno Haible <bruno@clisp.org>
43761 * m4/bison-i18n.m4: New file, from bison.
43763 2006-08-18 Bruno Haible <bruno@clisp.org>
43765 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43766 (ME_DUMMY): Treat "kernfs" as a dummy.
43767 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43769 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43771 Update from coreutils.
43773 2006-08-15 Jim Meyering <jim@meyering.net>
43775 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43777 2006-01-17 Jim Meyering <jim@meyering.net>
43779 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43781 2006-01-11 Jim Meyering <jim@meyering.net>
43783 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43784 Check for the lchmod function.
43786 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43788 Update from coreutils.
43790 * lib/__fpending.h: Add copyright notice.
43791 * lib/fprintftime.h: Likewise.
43792 * lib/savedir.c: Use (C) in copyright notice.
43793 * lib/savedir.h: Likewise.
43795 2006-08-15 Jim Meyering <jim@meyering.net>
43797 * lib/at-func.c: New file, with the logic of all emulated at-functions.
43798 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43799 in support of the EXPECTED_ERRNO macro.
43800 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43801 definitions. Instead, define the appropriate symbols and include
43803 * lib/mkdirat.c (mkdirat): Likewise.
43804 * lib/fchmodat.c (fchmodat): Likewise.
43805 (ENOSYS): Remove definition.
43806 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43807 it. Don't include "unistd--.h" -- it wasn't ever used.
43809 2006-01-17 Jim Meyering <jim@meyering.net>
43811 Rewrite fts.c not to change the current working directory,
43812 by using openat, fstatat, fdopendir, etc..
43814 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43815 (HAVE_OPENAT_SUPPORT): Define.
43816 [_LIBC] (fchdir): Don't undef or define; no longer used.
43817 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43818 Now, this `function' always succeeds, and consumes its file descriptor
43819 parameter -- so callers must not close such FDs. Update callers.
43820 (diropen_fd, opendirat, cwd_advance_fd): New functions.
43821 (diropen): Add parameter, SP. Adjust all callers.
43822 Implement using diropen_fd, rather than open.
43823 (fts_open): Initialize new member, fts_cwd_fd.
43824 Remove fts_rft-setting code.
43825 (fts_close): Close fts_cwd_fd, if necessary.
43826 (__opendir2): Define in terms of opendir or opendirat,
43827 depending on whether the FST_NOCHDIR flag is set.
43828 (fts_build): Since fts_safe_changedir consumes its FD, and since
43829 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43830 and close the dup'd file descriptor upon failure.
43831 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43832 (fts_safe_changedir): Tweak semantics to reflect that this function
43833 now calls cwd_advance_fd and hence consumes its FD argument.
43834 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43835 [struct FTS] (fts_rft): Remove now-unused member.
43836 [struct FTS] (fts_cycle.state): Improve comment.
43838 * lib/openat.c (openat_needs_fchdir): New function.
43839 * lib/openat.h (openat_needs_fchdir): Declare it.
43841 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
43843 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43844 Problem and fix reported by Pádraig Brady in
43845 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43847 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43849 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43851 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43853 * lib/memcoll.c (memcoll): Optimize for the common case where the
43854 arguments are bytewise equal.
43856 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43858 * doc/regexprops-generic.texi: Add a copyright notice.
43860 2006-08-15 Bruno Haible <bruno@clisp.org>
43862 * modules/tmpdir (License): Change to LGPL.
43864 2006-08-15 Bruno Haible <bruno@clisp.org>
43866 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43869 2006-08-14 Simon Josefsson <jas@extundo.com>
43871 * config/srclist.txt: Add gnupload.
43873 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43875 Change copyright notice from LGPL 2 to GPL 2, since that's the
43876 standard form used in the gnulib repository.
43877 * tests/test-lock.c: Likewise.
43878 * tests/test-stdint.c: Likewise.
43879 * tests/test-tls.c: Likewise.
43881 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43882 prelude-manager. User shorter URLs for GNU projects, without '?'.
43883 Add copyright notice.
43885 * check-module: Add copyright notice. Output a copyright
43886 notice if "--version" is specified.
43887 * modules/COPYING: New file.
43888 * tests/test-getaddrinfo.c: Add copyright notice.
43889 * tests/test-verify.c: Likewise.
43891 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43893 Change copyright notice from LGPL 2 to GPL 2, since that's the
43894 standard form used in the gnulib repository.
43895 * lib/lock.c: LGPL -> GPL.
43896 * lib/lock.h: Likewise.
43897 * lib/strnlen1.c: Likewise.
43898 * lib/strnlen1.h: Likewise.
43899 * lib/tls.c: Likewise.
43900 * lib/tls.h: Likewise.
43901 * lib/tmpdir.c: Likewise.
43903 * lib/TODO: Remove; this belongs only in coreutils.
43905 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43907 Add copyright notices to long-enough files that lack them, since
43908 otherwise the files aren't clearly free. Use the same notice that
43909 getdate.texi already uses.
43910 * doc/alloca-opt.texi: Add copyright notice.
43911 * doc/alloca.texi: Likewise.
43912 * doc/ctime.texi: Likewise.
43913 * doc/functions.texi: Likewise.
43914 * doc/gcd.texi: Likewise.
43915 * doc/gnulib-tool.texi: Likewise.
43916 * doc/inet_ntoa.texi: Likewise.
43917 * doc/visibility.texi: Likewise.
43919 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43920 * doc/quote.texi: Add copyright notice.
43922 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43923 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43924 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43925 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43926 is now obsolete, and give a pointer to the Sun list.
43927 Add copyright notice.
43929 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43931 * config/srclistvars.sh: Add copyright notice.
43933 2006-08-14 Eric Blake <ebb9@byu.net>
43935 Import the following change from libc:
43937 2006-08-12 Ulrich Drepper <drepper@redhat.com>
43940 * lib/misc/error.c: Add space between program name and message if file
43943 2006-08-12 Karl Berry <karl@gnu.org>
43945 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43946 remove, these originate in gnulib now.
43948 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43950 * doc/Makefile (standards.info standards.html standards.dvi):
43951 Also depend on make-stds.texi.
43953 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
43955 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43956 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
43958 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43959 in wchar_t. Problem reported by Eric Blake.
43961 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43962 LEN is smaller than SIZE. Suggested by Bruno Haible.
43963 Also, help the compiler to keep LEN in a register.
43965 2006-08-11 Eric Blake <ebb9@byu.net>
43967 * users.txt: Sort. Add tar.
43969 2006-08-11 Bruno Haible <bruno@clisp.org>
43971 * users.txt: New file.
43973 2006-08-11 Bruno Haible <bruno@clisp.org>
43975 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43976 before <wchar.h>. Needed for OSF/1 and BSD/OS.
43978 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43980 * modules/snprintf (Depends-on): Remove minmax.
43981 (Maintainer): Add self and Bruno.
43983 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43985 * lib/.cppi-disable: Add snprintf.h, socket_.h.
43986 * lib/snprintf.c: Include <errno.h> and <limits.h>.
43987 (EOVERFLOW): Define if the system does not.
43988 Do not include "minmax.h"; it wasn't used.
43989 (snprintf): Don't assume size_t promotes to an unsigned type.
43990 Fix bug when generated string was too long for the buffer: the
43991 buffer's contents are supposed to be the initial prefix of the
43992 output. Don't assume vasnprintf returns EOVERFLOW if the size
43993 exceeds INT_MAX; do the check ourselves.
43995 Import the following changes from libc:
43997 2006-06-02 Jakub Jelinek <jakub@redhat.com>
43999 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44000 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
44001 set wc to the byte which couldn't be converted.
44002 (re_string_reconstruct): Don't clear valid_raw_len before calling
44003 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
44004 tip_context using re_string_context_at.
44006 2006-05-02 Ulrich Drepper <drepper@redhat.com>
44008 * lib/posix/regex.h: g++ still cannot handled [restrict].
44010 2006-04-21 Ulrich Drepper <drepper@redhat.com>
44012 * lib/posix/regex.h: Remove special handling for VMS.
44014 2006-08-10 Jim Meyering <jim@meyering.net>
44016 * modules/same-inode: New module.
44017 * modules/dev-ino: New module.
44018 * modules/cycle-check: Depend on these modules, rather than simply
44019 including their .h files.
44020 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44021 required via m4/cycle-check.m4.
44022 * modules/same: Depend on new same-inode module, rather than
44023 including same-inode.h.
44024 * modules/chdir-safer: New file.
44026 * modules/chown (Depends-on): Add stat-macros.
44028 2006-08-10 Jim Meyering <jim@meyering.net>
44030 * m4/cycle-check.m4: New file.
44031 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44032 * m4/dev-ino.m4, m4/same-inode.m4: New files.
44034 2006-08-10 Eric Blake <ebb9@byu.net>
44036 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44037 in from original proposal.
44039 2006-08-10 Eric Blake <ebb9@byu.net>
44040 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44042 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44045 2006-08-10 Bruno Haible <bruno@clisp.org>
44047 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44050 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44052 Sync from coreutils.
44054 2006-07-19 Mike Frysinger <vapier@gentoo.org>
44056 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44057 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44059 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44061 * modules/restrict: Remove; no longer needed now that we assume
44062 Autoconf 2.59 or later.
44063 * MODULES.html.sh: Remove 'restrict'.
44064 * modules/argp (Depends-on): Remove 'restrict'.
44065 * modules/base64 (Depends-on): Likewise.
44066 * modules/gc (Depends-on): Likewise.
44067 * modules/getaddrinfo (Depends-on): Likewise.
44068 * modules/glob (Depends-on): Likewise.
44069 * modules/inet_ntop (Depends-on): Likewise.
44070 * modules/inet_pton (Depends-on): Likewise.
44071 * modules/memxor (Depends-on): Likewise.
44072 * modules/regex (Depends-on): Likewise.
44073 * modules/strtok_r (Depends-on): Likewise.
44074 * modules/time_r (Depends-on): Likewise.
44076 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44078 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44079 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44080 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44081 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44082 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44083 * m4/memxor.m4 (gl_MEMXOR): Likewise.
44084 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
44085 gl_C_RESTRICT replaced by AC_C_RESTRICT.
44087 Merge from coreutils.
44088 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44089 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44090 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44091 * m4/time_r.m4 (gl_TIME_R): Likewise.
44093 2006-08-09 Karl Berry <karl@gnu.org>
44095 * config/srclist.txt: no more gettext-tools, per Bruno.
44097 2006-08-08 Eric Blake <ebb9@byu.net>
44099 * modules/verror: New module.
44100 * MODULES.html.sh: Document it.
44102 2006-08-08 Eric Blake <ebb9@byu.net>
44104 * lib/verror.h, lib/verror.c: New files.
44106 2006-08-08 Eric Blake <ebb9@byu.net>
44108 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44109 verror_at_line output complies with GNU Coding Standards even when
44112 2006-08-07 Bruno Haible <bruno@clisp.org>
44114 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44116 Reported by Ralf Wildenhues.
44118 2006-08-07 Bruno Haible <bruno@clisp.org>
44120 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44121 in an AC_DEFUN. Needed so that the autoconf snippets can use
44124 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44126 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44127 Initialize pkgdata_DATA.
44128 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44131 2006-08-06 Eric Blake <ebb9@byu.net>
44133 * lib/error.h: Fold in some upstream changes from glibc.
44134 * lib/error.c: Likewise.
44136 2006-08-04 Bruno Haible <bruno@clisp.org>
44138 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44139 Make the mostlyclean-local rule depend on mostlyclean-generic.
44140 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44142 2006-07-31 Bruno Haible <bruno@clisp.org>
44144 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44145 <stdlib.h>, <string.h>.
44147 2006-07-30 Bruno Haible <bruno@clisp.org>
44149 * modules/readlink (License): Change to LGPL.
44151 2006-07-30 Bruno Haible <bruno@clisp.org>
44153 * modules/javaversion (Makefile.am): Distribute javaversion.java and
44154 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44155 set PKGDATADIR to point to it.
44157 2006-07-30 Bruno Haible <bruno@clisp.org>
44159 * modules/csharpexec (configure.ac): Comment out macro invocation.
44160 * modules/javaexec (configure.ac): Likewise.
44161 * modules/javacomp-script (configure.ac): Likewise.
44163 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44165 2006-07-30 Bruno Haible <bruno@clisp.org>
44167 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44170 2006-07-30 Bruno Haible <bruno@clisp.org>
44172 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44174 2006-07-30 Bruno Haible <bruno@clisp.org>
44176 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44177 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44180 2006-07-29 Bruno Haible <bruno@clisp.org>
44182 Make it possible for gnulib-tool to work with locally modified or
44183 augmented gnulib repositories.
44184 * gnulib-tool (func_usage): Document --local-dir option.
44185 (local_gnulib_dir): New variable.
44186 Handle --local-dir option.
44187 (func_lookup_file): New function.
44188 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44189 (func_get_description, func_get_filelist, func_get_description,
44190 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44191 func_get_automake_snippet, func_get_include_directive,
44192 func_get_license, func_get_maintainer): Use func_lookup_file.
44193 (func_import, func_create_testdir): Use func_lookup_file.
44195 2006-07-29 Bruno Haible <bruno@clisp.org>
44197 * modules/setenv (Depends-on): Add unistd.
44199 2006-07-29 Bruno Haible <bruno@clisp.org>
44201 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44203 2006-07-29 Bruno Haible <bruno@clisp.org>
44205 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44207 2006-07-29 Bruno Haible <bruno@clisp.org>
44209 * gnulib-tool (import, update): If there is no Makefile.am, look at
44210 aclocal.m4, instead of bailing out.
44212 2006-07-29 Bruno Haible <bruno@clisp.org>
44214 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44215 Categorize the options by when they are useful.
44217 2006-07-29 Bruno Haible <bruno@clisp.org>
44219 * gnulib-tool (func_usage): Document option --no-libtool.
44220 Handle option --no-libtool.
44221 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44222 for changed semantics of $libtool variable.
44223 (func_import): Likewise. If libtool is not used, show this through
44224 an option --no-libtool.
44225 (func_create_testdir): Update.
44227 2006-07-29 Bruno Haible <bruno@clisp.org>
44229 * gnulib-tool (func_import): Extend error message about missing
44232 2006-07-29 Bruno Haible <bruno@clisp.org>
44234 * gnulib-tool (func_import): Don't create the $docbase directory if
44235 there is no file to store there.
44237 2006-07-29 Bruno Haible <bruno@clisp.org>
44239 * gnulib-tool (autoconf_minversion): If a --dir option is given and
44240 relevant, look for configure.ac there, not in the current directory.
44241 Also use a simple search for AC_PREREQ, not "autoconf --trace".
44243 2006-07-29 Bruno Haible <bruno@clisp.org>
44245 * gnulib-tool (SORT): New variable.
44246 (func_usage): Undocument --assume-autoconf option.
44247 Remove --assume-autoconf option handling.
44248 (autoconf_minversion): Determine from the contents of configure.ac.
44249 (func_import): Remove autoconf_minversion handling.
44250 Suggested by Eric Blake.
44252 2006-07-29 Bruno Haible <bruno@clisp.org>
44254 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44256 2006-07-29 Bruno Haible <bruno@clisp.org>
44258 * config/srclist.txt (*setenv.[ch]): Remove rules.
44260 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44262 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44264 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44266 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44269 2006-07-28 Simon Josefsson <jas@extundo.com>
44271 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44272 * modules/inet_pton (Depends-on): Likewise.
44274 2006-07-28 Simon Josefsson <jas@extundo.com>
44276 * m4/netinet_in_h.m4: New file.
44278 2006-07-28 Simon Josefsson <jas@extundo.com>
44280 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44283 2006-07-28 Simon Josefsson <jas@extundo.com>
44285 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44288 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
44290 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44291 setgid on directories only if they set these bits.
44292 * lib/modechange.h: Remove obsolete comment about masks.
44294 2006-07-28 Eric Blake <ebb9@byu.net>
44296 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44299 2006-07-28 Bruno Haible <bruno@clisp.org>
44301 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44303 2006-07-28 Bruno Haible <bruno@clisp.org>
44305 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44307 2006-07-28 Bruno Haible <bruno@clisp.org>
44309 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44310 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44312 Avoids link error on FreeBSD 4.x.
44313 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44315 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44317 * lib/mbswidth.c (iswcntrl): Likewise.
44319 2006-07-27 Bruno Haible <bruno@clisp.org>
44321 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44324 2006-07-27 Bruno Haible <bruno@clisp.org>
44326 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44327 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44330 2006-07-26 Eric Blake <ebb9@byu.net>
44332 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44334 2006-07-26 Eric Blake <ebb9@byu.net>
44336 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44337 like mingw that lack mkstemp.
44338 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44339 avoid compilation warning on mingw.
44341 2006-07-26 Bruno Haible <bruno@clisp.org>
44343 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44344 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44345 INT_FAST*_MIN, INTPTR_MIN.
44347 2006-07-25 Bruno Haible <bruno@clisp.org>
44349 * modules/version-etc (Depends-on): Add stdarg.
44351 2006-07-25 Bruno Haible <bruno@clisp.org>
44353 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44356 2006-07-25 Bruno Haible <bruno@clisp.org>
44358 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44359 defined in <stdarg.h> or config.h.
44361 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44363 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44364 (gl_STDIO_SAFER): Remove.
44366 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44368 * MODULES.html.sh (File stream based Input/Output):
44369 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44370 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44371 * modules/fopen-safer, modules/tmpfile-safer: New files.
44372 * modules/stdio-safer: Remove.
44374 2006-07-24 Bruno Haible <bruno@clisp.org>
44376 * modules/tmpdir: New file.
44377 * MODULES.html.sh (File system functions): Add it.
44379 2006-07-24 Bruno Haible <bruno@clisp.org>
44381 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44382 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44384 2006-07-24 Bruno Haible <bruno@clisp.org>
44386 * modules/clean-temp: New file.
44388 2006-07-24 Bruno Haible <bruno@clisp.org>
44390 * m4/tmpdir.m4: New file, from GNU gettext.
44392 2006-07-24 Bruno Haible <bruno@clisp.org>
44394 * lib/tmpdir.h: New file, from GNU gettext.
44395 * lib/tmpdir.c: New file, from GNU gettext.
44397 2006-07-24 Bruno Haible <bruno@clisp.org>
44399 * lib/clean-temp.h: New file, from GNU gettext.
44400 * lib/clean-temp.c: New file, from GNU gettext.
44402 2006-07-23 Eric Blake <ebb9@byu.net>
44404 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44405 (Depends-on): Add binary-io.
44407 2006-07-23 Eric Blake <ebb9@byu.net>
44409 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44411 2006-07-23 Eric Blake <ebb9@byu.net>
44413 * lib/tmpfile-safer.c: New file.
44414 * lib/stdio-safer.h (fopen_safer): Add prototype.
44415 * lib/stdio--.h (tmpfile): Make safer.
44417 2006-07-23 Bruno Haible <bruno@clisp.org>
44419 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44420 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44421 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44422 gl_linked_remove_at): Use it.
44424 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44425 and Simon Josefsson <jas@extundo.com>
44427 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44429 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44431 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44433 * modules/close-stream: New file.
44434 * modules/closeout (Description): Make it clear that it exits
44435 with a diagnostic on error.
44436 (Depends-on): Add close-stream. Remove fpending, stdbool.
44437 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44439 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44441 * m4/close-stream.m4: New file.
44443 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44445 * lib/close-stream.c, lib/close-stream.h: New files.
44447 2006-07-22 Bruno Haible <bruno@clisp.org>
44449 Merge from GNU gettext 0.15.
44451 2006-05-01 Bruno Haible <bruno@clisp.org>
44453 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44455 2006-07-22 Bruno Haible <bruno@clisp.org>
44457 * modules/javaversion: New file.
44458 * MODULES.html.sh (Java): Add javaversion.
44460 2006-03-12 Bruno Haible <bruno@clisp.org>
44462 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44464 2005-12-04 Bruno Haible <bruno@clisp.org>
44466 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44469 2006-06-21 Bruno Haible <bruno@clisp.org>
44471 Avoid warnings from recent versions of mcs.
44472 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44473 -o, -L, -r any more. Use options documented since mcs-1.0
44474 instead. Similarly for -g.
44476 2005-12-04 Bruno Haible <bruno@clisp.org>
44478 * build-aux/csharpcomp.sh.in: Suffix for resources is
44479 .resources, not .resource.
44481 2005-07-09 Bruno Haible <bruno@clisp.org>
44483 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44485 Reported by Mark Junker <mjscod@gmx.de>.
44487 2006-07-22 Bruno Haible <bruno@clisp.org>
44489 * modules/gettext: Upgrade to gettext-0.15.
44490 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44492 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44494 2006-07-22 Bruno Haible <bruno@clisp.org>
44496 Merge from GNU gettext 0.15.
44498 2006-03-25 Bruno Haible <bruno@clisp.org>
44500 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44502 2006-07-21 Bruno Haible <bruno@clisp.org>
44504 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44507 2006-05-09 Bruno Haible <bruno@clisp.org>
44509 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44510 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44511 for the conftestver execution.
44513 2006-05-01 Bruno Haible <bruno@clisp.org>
44515 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44516 optional target-version argument. Verify that the compiler
44517 groks source of the specified source-version, or add -source
44518 option as necessary. Verify that the compiler produces
44519 bytecode in the specified target-version, or add -target and
44520 -source options as necessary. Make the result of the test
44521 available as variable CONF_JAVAC. Also log error output in
44524 2006-03-11 Bruno Haible <bruno@clisp.org>
44526 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44528 2006-05-09 Bruno Haible <bruno@clisp.org>
44530 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44531 CLASSPATH_SEPARATOR to a semicolon.
44533 2006-03-12 Bruno Haible <bruno@clisp.org>
44535 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44536 available as variable CONF_JAVA, for subsequent autoconf
44537 tests. Also log error output in config.log.
44539 2006-07-19 Bruno Haible <bruno@clisp.org>
44541 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44542 that getline works on glibc2 systems. Needed to avoid trouble
44544 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44546 2005-12-04 Bruno Haible <bruno@clisp.org>
44548 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44549 launcher (untested).
44551 2005-12-04 Bruno Haible <bruno@clisp.org>
44553 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44555 2006-07-22 Bruno Haible <bruno@clisp.org>
44557 * gettext.m4: Update from GNU gettext-0.15.
44558 * nls.m4: Likewise.
44560 * inttypes-pri.m4: Likewise.
44561 * inttypes-h.m4: Renamed from inttypes.m4.
44562 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44564 2006-07-22 Bruno Haible <bruno@clisp.org>
44566 Merge from GNU gettext 0.15.
44568 2005-07-05 Bruno Haible <bruno@clisp.org>
44570 * printf-args.c (printf_fetchargs): Work around broken
44571 definition of wint_t on mingw.
44573 2005-02-12 Bruno Haible <bruno@clisp.org>
44575 * xallocsa.h: Add extern "C" for C++.
44577 2006-05-17 Bruno Haible <bruno@clisp.org>
44579 Cygwin portability.
44580 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44582 2006-04-30 Bruno Haible <bruno@clisp.org>
44584 * progreloc.c: Include <mach-o/dyld.h> if available.
44585 (find_executable): Use _NSGetExecutablePath when possible.
44587 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
44589 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44592 2005-12-29 Bruno Haible <bruno@clisp.org>
44594 * progreloc.c (set_program_name_and_installdir): Fix
44597 2005-12-04 Bruno Haible <bruno@clisp.org>
44599 Cygwin portability.
44600 * progreloc.c: Include <windows.h> also on Cygwin.
44601 (find_executable): Add support for Cygwin.
44602 (set_program_name_and_installdir): Handle also platforms with
44605 2006-07-11 Bruno Haible <bruno@clisp.org>
44607 * javacomp.c: Fix a comment.
44608 Reported by Jim Meyering.
44610 2006-04-30 Bruno Haible <bruno@clisp.org>
44612 * javacomp.h (compile_java_class): Add source_version,
44613 target_version arguments.
44614 * javacomp.c: Rewritten to choose only a compiler that
44615 respects the specified source_version and target_version.
44617 2006-06-27 Bruno Haible <bruno@clisp.org>
44619 Assume correct S_ISDIR macro.
44620 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44622 2006-07-22 Bruno Haible <bruno@clisp.org>
44624 * javaversion.h: New file, from GNU gettext.
44625 * javaversion.c: New file, from GNU gettext.
44626 * javaversion.java: New file, from GNU gettext.
44627 * javaversion.class: New file, from GNU gettext.
44629 2006-05-17 Bruno Haible <bruno@clisp.org>
44631 Cygwin portability.
44632 * javaexec.c (execute_java_class): Test for jview program
44635 2006-04-09 Bruno Haible <bruno@clisp.org>
44637 * fatal-signal.c: Don't include string.h.
44638 (at_fatal_signal): Use a copying loop instead of memcpy.
44640 2005-12-04 Bruno Haible <bruno@clisp.org>
44642 * csharpexec.c: Add support for 'clix' launcher (untested).
44643 (execute_csharp_using_sscli): New function.
44644 (execute_csharp_program): Call it.
44646 2006-06-21 Bruno Haible <bruno@clisp.org>
44648 Avoid warnings from recent versions of mcs.
44649 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44650 -o, -L, -r any more. Use options documented since mcs-1.0
44651 instead. Similarly for -g.
44653 2005-07-09 Bruno Haible <bruno@clisp.org>
44655 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44657 Reported by Mark Junker <mjscod@gmx.de>.
44659 2006-06-17 Bruno Haible <bruno@clisp.org>
44661 * config.charset: Update for NetBSD 3.0.
44663 2006-05-17 Bruno Haible <bruno@clisp.org>
44665 Cygwin portability.
44666 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44668 2006-05-16 Bruno Haible <bruno@clisp.org>
44670 * localcharset.c [CYGWIN]: Include <windows.h>.
44671 (get_charset_aliases): For Cygwin, return the same CPxxx
44672 aliases list as under WIN32.
44673 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44674 the environment variables. Fall back to GetACP().
44676 2006-04-05 Bruno Haible <bruno@clisp.org>
44678 * config.charset: Update Juan Manuel Guerrero's address.
44680 2005-02-12 Bruno Haible <bruno@clisp.org>
44682 * allocsa.h: Add extern "C" for C++.
44684 2005-02-10 Bruno Haible <bruno@clisp.org>
44686 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44687 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44689 2006-07-22 Bruno Haible <bruno@clisp.org>
44691 * gettext.h: Update to GNU gettext-0.15.
44693 2006-07-22 Bruno Haible <bruno@clisp.org>
44695 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44696 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44697 lib-prefix.m4, longdouble.m4, ssize_t.m4.
44699 2006-07-21 Eric Blake <ebb9@byu.net>
44701 * modules/stdlib-safer: New file.
44702 * MODULES.html.sh (File stream based Input/Output): Add
44705 2006-07-21 Eric Blake <ebb9@byu.net>
44707 * lib/stdlib-safer.h: New file from coreutils, required by
44710 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
44712 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44714 2006-07-20 Bruno Haible <bruno@clisp.org>
44716 * gnulib-tool: Recognize new option --assume-autoconf.
44717 (autoconf_minversion): New variable.
44718 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44720 2006-07-20 Bruno Haible <bruno@clisp.org>
44722 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44724 2006-07-19 Derek R. Price <derek@ximbiot.com>
44726 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44727 Reindent and repaginate.
44729 2006-07-19 Derek Price <derek@ximbiot.com>
44731 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
44734 2006-07-17 Bruno Haible <bruno@clisp.org>
44736 * modules/list: New file.
44737 * modules/array-list: New file.
44738 * modules/carray-list, modules/carray-list-tests: New files.
44739 * modules/linked-list, modules/linked-list-tests: New files.
44740 * modules/avltree-list, modules/avltree-list-tests: New files.
44741 * modules/rbtree-list, modules/rbtree-list-tests: New files.
44742 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44743 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44744 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44745 * modules/oset: New file.
44746 * modules/array-oset: New file.
44747 * modules/avltree-oset, modules/avltree-oset-tests: New files.
44748 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44749 * tests/test-carray_list.c: New file.
44750 * tests/test-linked_list.c: New file.
44751 * tests/test-avltree_list.c: New file.
44752 * tests/test-rbtree_list.c: New file.
44753 * tests/test-linkedhash_list.c: New file.
44754 * tests/test-avltreehash_list.c: New file.
44755 * tests/test-rbtreehash_list.c: New file.
44756 * tests/test-avltree_oset.c: New file.
44757 * tests/test-rbtree_oset.c: New file.
44758 * MODULES.html.sh (Container data structures): New section.
44760 2006-07-17 Bruno Haible <bruno@clisp.org>
44762 * m4/gl_list.m4: New file.
44764 2006-07-17 Bruno Haible <bruno@clisp.org>
44766 * lib/gl_list.h: New file.
44767 * lib/gl_list.c: New file.
44768 * lib/gl_array_list.h: New file.
44769 * lib/gl_array_list.c: New file.
44770 * lib/gl_carray_list.h: New file.
44771 * lib/gl_carray_list.c: New file.
44772 * lib/gl_linked_list.h: New file.
44773 * lib/gl_linked_list.c: New file.
44774 * lib/gl_anylinked_list1.h: New file.
44775 * lib/gl_anylinked_list2.h: New file.
44776 * lib/gl_avltree_list.h: New file.
44777 * lib/gl_avltree_list.c: New file.
44778 * lib/gl_anyavltree_list1.h: New file.
44779 * lib/gl_anyavltree_list2.h: New file.
44780 * lib/gl_rbtree_list.h: New file.
44781 * lib/gl_rbtree_list.c: New file.
44782 * lib/gl_anyrbtree_list1.h: New file.
44783 * lib/gl_anyrbtree_list2.h: New file.
44784 * lib/gl_anytree_list1.h: New file.
44785 * lib/gl_anytree_list2.h: New file.
44786 * lib/gl_linkedhash_list.h: New file.
44787 * lib/gl_linkedhash_list.c: New file.
44788 * lib/gl_anyhash_list1.h: New file.
44789 * lib/gl_anyhash_list2.h: New file.
44790 * lib/gl_avltreehash_list.h: New file.
44791 * lib/gl_avltreehash_list.c: New file.
44792 * lib/gl_rbtreehash_list.h: New file.
44793 * lib/gl_rbtreehash_list.c: New file.
44794 * lib/gl_anytreehash_list1.h: New file.
44795 * lib/gl_anytreehash_list2.h: New file.
44797 * lib/gl_oset.h: New file.
44798 * lib/gl_oset.c: New file.
44799 * lib/gl_array_oset.h: New file.
44800 * lib/gl_array_oset.c: New file.
44801 * lib/gl_avltree_oset.h: New file.
44802 * lib/gl_avltree_oset.c: New file.
44803 * lib/gl_rbtree_oset.h: New file.
44804 * lib/gl_rbtree_oset.c: New file.
44805 * lib/gl_anytree_oset.h: New file.
44807 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44809 * m4/mkancesdirs.m4: New file.
44810 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44811 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44812 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44815 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44817 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44818 * lib/mkancesdirs.h: New files.
44819 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44820 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44821 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
44822 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44823 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
44824 callers changed. Revamp internals significantly, by not
44825 attempting to create directories that are temporarily more
44826 permissive than the final results. Do not attempt to use
44827 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44828 This removes some race conditions, fixes some bugs, and simplifies
44829 things. Use new dirchownmod function to do owner and mode changes.
44830 * lib/mkdir-p.h: Likewise.
44831 * lib/modechange.c (octal_to_mode): New function.
44832 (struct mode_change): New member mentioned.
44833 (make_node_op_equals): New arg mentioned. All callers changed.
44834 (mode_compile): Keep track of which mode bits the user has explicitly
44836 (mode_adjust): New arg DIR, so that we implement the X op correctly.
44837 New arg PMODE_BITS, to keep track of which mode bits the user
44838 mentioned; it treats S_ISUID and S_ISGID speciall.
44839 All callers changed.
44840 * lib/modechange.h: Likewise.
44842 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44844 * MODULES.html.sh: Add mkancestors.
44845 * modules/mkancesdirs: New module.
44846 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44847 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44848 The chdir-safer and afs files are now orphans; I'll remove them
44849 unless someone speaks up.
44850 Add lib/dirchownmod.c, lib/dirchownmod.h.
44851 (Depends-on): Remove alloca, chown, save-cwd, dirname.
44852 Add lchown, mkancesdirs.
44853 (Maintainer): Add self.
44855 2006-07-15 Karl Berry <karl@gnu.org>
44857 * gnulib-tool: help message wording/arrangement.
44859 2006-07-14 Simon Josefsson <jas@extundo.com>
44861 * doc/gnulib.texi (Libtool and Windows): New section.
44863 2006-07-12 Simon Josefsson <jas@extundo.com>
44865 * modules/gendocs (License): Fix license, approved by Karl.
44867 2006-07-12 Eric Blake <ebb9@byu.net>
44869 * MODULES.html.sh: Add gendocs.
44871 2006-07-11 Eric Blake <ebb9@byu.net>
44873 * modules/fdl: New module, to install doc/fdl.texi.
44874 * MODULES.html.sh: Add new section for documentation modules.
44875 * gnulib-tool: Avoid space-tab.
44876 (--doc-base): New option, to manage files from doc.
44878 2006-07-11 Eric Blake <ebb9@byu.net>
44880 * m4/absolute-header.m4: Fix comments to match recent change.
44882 2006-07-11 Eric Blake <ebb9@byu.net>
44884 * gnulib-tool: List --doc-base before --tests-base.
44886 2006-07-11 Derek R. Price <derek@ximbiot.com>
44888 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44890 2006-07-11 Bruno Haible <bruno@clisp.org>
44892 * README: Mention where to put documentation.
44894 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44896 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44898 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44900 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44903 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44905 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44906 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44907 "no/such/file/stdint.h" when there is no such file, so that
44908 the resulting C code can be parsed by dodgy compilers.
44909 Problems reported by Bob Proulx.
44911 2006-07-10 Derek R. Price <derek@ximbiot.com>
44913 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44914 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44915 macros into the GNU _D_EXACT_NAMLEN.
44916 * lib/savedir.c: Likewise.
44917 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44919 2006-07-10 Derek R. Price <derek@ximbiot.com>
44920 and Paul Eggert <eggert@cs.ucla.edu>
44922 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44924 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44925 macros into the GNU _D_EXACT_NAMLEN.
44927 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44929 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44930 around the absolute name, to work around a problem with the HP-UX
44931 11.23 native C compiler, reported by Bob Proulx.
44933 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44935 * doc/maintain.texi, make-stds.texi: Sync from
44936 <http://savannah.gnu.org/projects/gnustandards>.
44938 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44940 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44942 2006-07-09 Jim Meyering <jim@meyering.net>
44944 * m4/glob.m4: Remove a doubled word in a comment.
44946 2006-07-09 Jim Meyering <jim@meyering.net>
44948 * lib/argp-pv.c: Remove a doubled word in a comment.
44949 * lib/check-version.c (check_version): Likewise.
44950 * lib/javacomp.c (compile_java_class): Likewise.
44952 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
44954 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44955 for the benefit of people using Autoconf 2.60. If you want to
44956 support older Autoconf versions you can copy m4/onceonly_2_57.m4
44957 (or m4/onceonly.m4, if pre-2.57) manually.
44959 2006-07-08 Jim Meyering <jim@meyering.net>
44961 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44963 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44964 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44967 2006-07-08 Jim Meyering <jim@meyering.net>
44969 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44971 2006-07-07 Simon Josefsson <jas@extundo.com>
44973 * tests/test-crc.c: Change expected crc value, the test vector
44974 were probably computed using the old broken crc.c?
44976 2006-07-06 Simon Josefsson <jas@extundo.com>
44978 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44979 now the canonical place for the M4 file).
44981 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44982 from the sys_socket dependency now.
44984 * modules/inet_pton (Files): Ditto.
44986 * modules/inet_ntop (Files): Ditto.
44988 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44990 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44991 not gl_PREREQ_GETUSERSHELL.
44993 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44995 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44996 with only one argument, for Autoconf 2.60.
44997 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44998 expand to nothing, so add a shell command to avoid syntax error.
44999 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45001 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45003 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45005 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45007 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45008 no longer needed. Check for isblank decl.
45009 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45010 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45013 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45015 * lib/getloadavg.c: Use __VMS, not VMS.
45016 * lib/getopt.c: Likewise.
45017 * lib/getpagesize.h: Likewise.
45018 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45019 and probably does not work.
45021 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45023 * lib/.cppi-disable: Add wcwidth.
45024 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
45025 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45026 (ISGRAPH): Remove. All uses changed to isgraph.
45027 (FOLD) [!defined _LIBC]: Remove special case.
45028 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45029 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45031 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45034 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45036 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45037 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45038 brackets. Other minor changes to suppress some compiler
45041 2006-07-06 Derek R. Price <derek@ximbiot.com>
45042 and Paul Eggert <eggert@cs.ucla.edu>
45044 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45045 of invoking obsolescent AC_HEADER_DIRENT macro.
45046 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45047 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45048 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45049 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45050 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45051 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45052 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45053 * m4/readdir.m4: Remove; no longer needed.
45055 2006-07-06 Derek R. Price <derek@ximbiot.com>
45056 and Paul Eggert <eggert@cs.ucla.edu>
45058 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45059 Don't worry about this obsolete case any more.
45060 (HAVE_DIR): Remove. All uses removed; we now assume you can read
45062 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45063 worry about this obsolete case any more.
45064 * lib/fts.c: Likewise.
45065 * lib/getcwd.c: Likewise.
45066 * lib/glob.h: Likewise.
45067 * lib/savedir.c: Likewise.
45069 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45071 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45072 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45073 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45076 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45077 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45078 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45080 * m4/getdate.m4 (gl_GETDATE): Likewise.
45081 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45082 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45083 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45084 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45085 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45086 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45087 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45090 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45092 * lib/memcasecmp.c: Include <limits.h>.
45093 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45094 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45095 Don't assume isdigit succeeds only on '0' through '9'.
45097 2006-07-05 Eric Blake <ebb9@byu.net>
45099 * modules/getaddrinfo (Depends-on): Add snprintf.
45101 2006-07-05 Eric Blake <ebb9@byu.net>
45103 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45104 to avoid 'header present but could not be compiled' on cygwin.
45106 2006-07-05 Eric Blake <ebb9@byu.net>
45108 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45109 missing from netdb.h.
45110 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45112 2006-07-05 Derek R. Price <derek@ximbiot.com>
45114 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45116 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45117 * m4/getdate.m4 (gl_GETDATE): Likewise.
45118 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45119 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45120 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45121 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45122 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45124 2006-07-05 Derek R. Price <derek@ximbiot.com>
45126 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45127 All uses of is_space replaced by isspace.
45128 * lib/exit.h: Don't talk about STDC_HEADERS.
45129 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
45130 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45131 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
45132 replaced by isprint etc.
45133 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45134 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45135 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45136 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45137 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45138 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45140 2006-07-05 Bruno Haible <bruno@clisp.org>
45142 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45143 the function exists, before testing against AIX.
45144 Reported by Martin Lambers <marlam@marlam.de>.
45146 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45148 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45149 From Mark D. Baushke.
45151 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
45153 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45154 to the absolute name, not just one, to bypass Sun C 5.8's
45155 "warning: #include of /usr/include/... may be non-portable".
45157 2006-07-04 Eric Blake <ebb9@byu.net>
45159 * modules/dirname-tests: New test module.
45160 * tests/test-dirname.c: New file, replacing dirname.c
45161 TEST_DIRNAME section that was recently deleted.
45163 2006-07-04 Bruno Haible <bruno@clisp.org>
45165 Assume ANSI C header files and <ctype.h> functions.
45166 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45167 (mbsnwidth): Use isprint, iscntrl instead.
45169 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45171 Merge from coreutils.
45172 * MODULES.html.sh: Add xstrtold.
45173 * modules/xstrtold: New file.
45174 * modules/cycle-check (Files): Add lib/same-inode.h.
45175 * modules/dirname (Files): Add m4/double-slash-root.m4.
45176 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45177 * modules/mkdir-p (Files): Add lib/same-inode.h.
45178 * modules/same (Files): Add lib/same-inode.h.
45180 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45182 * m4/absolute-header.m4: Renamed from full-header-path.m4.
45183 This is to keep the terminology clean; POSIX talks about
45184 "absolute pathnames", not "full pathnames", but the GNU
45185 Coding Standards say to use "path" for something else;
45186 so use "absolute" to keep both sides happy.
45187 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45188 Set gl_absolute_header, not gl_full_header_path.
45189 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45190 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45193 Merge from coreutils.
45195 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45197 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45198 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45199 want to require the building of c-strtod.o.
45200 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45201 needs -lm directly.
45202 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45204 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45206 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45207 --as-needed option if available. Problem reported by Albert Chin in
45208 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45209 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45210 cc merely issues a bunch of annoying warnings for --as-needed
45211 (this problem was reported by Bob Proulx). Also, try linking with
45212 -lm to detect a bug in binutils 2.16 (this problem was reported
45213 by Ralf Wildenhues).
45215 2006-06-18 Jim Meyering <jim@meyering.net>
45217 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45218 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45220 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45221 also check for glibc-2.4's abort-inducing bug.
45223 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45224 Low-probability clean-up should be to use rmdir to get rid of
45225 the just-created directory, not unlink.
45227 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45228 configure fail, and request a bug report to inform us about it.
45229 Add a comment that, barring reports to the contrary, in 2007 we'll
45230 assume ftruncate is universally available.
45232 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45234 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45236 2006-03-12 Jim Meyering <jim@meyering.net>
45238 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45239 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45240 * m4/same.m4 (gl_SAME): Likewise.
45241 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45243 2006-03-11 Eric Blake <ebb9@byu.net>
45245 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45246 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45247 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45248 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45250 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
45252 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45253 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
45254 reported by Mark D. Baushke, one in
45255 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45257 Merge from coreutils.
45259 * lib/.cppi-disable: Add stdint_.h.
45260 * lib/.cvsignore: Add stdint.h.
45262 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
45264 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45265 both double and long double versions.
45266 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
45267 * lib/xstrtold.c: New file.
45268 * lib/xstrtod.h (xstrtold): New decl.
45270 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
45272 * lib/filemode.c (setst): Remove.
45273 (strmode): Rewrite to avoid setst. This makes the code shorter,
45274 (arguably) clearer, and the generated code is a bit smaller on my
45275 Debian GNU/Linux stable x86 host.
45277 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
45279 * lib/filemode.c: Include "filemode.h" first, to test the interface.
45280 Assume that filemode.h includes sys/types.h and sys/stat.h.
45281 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45282 (ftypelet): Reorder to put common cases first, for efficiency.
45283 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
45285 (strmode): Renamed from mode_string, and now stores 12 bytes instead
45286 of 10, for compatibility with FreeBSD. All callers changed.
45287 (filemodestring): Now stores 12 bytes instead of 10, and sets file
45288 types that can't be deduced solely from st_mode. First arg is now a
45290 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45291 (strmode): Renamed from mode_string.
45292 (filemodestring): New decl.
45293 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45294 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45296 (S_ISPORT, S_ISWHT): New macros, if not already defined.
45298 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
45300 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45301 fsusage.h now does that. Include fsusage.h first, to test interface.
45302 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
45303 at most one method (the old code could have generated decls that
45304 didn't conform to C89, not that this was ever exercised).
45305 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45307 2006-03-19 Jim Meyering <jim@meyering.net>
45309 Work even in a chroot where d_ino values for entries in "/"
45310 don't match the stat.st_ino values for the same names.
45311 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45312 number, iterate through all entries again, using lstat instead.
45313 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45314 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45316 * lib/getcwd.c (__getcwd): Clarify a comment.
45317 Use memcpy in place of a call to strcpy.
45319 2006-03-12 Jim Meyering <jim@meyering.net>
45321 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45322 matches that of the current directory (which we're about to chdir ".."
45323 out of), then save the dev-ino of the parent, instead.
45325 * lib/same-inode.h (SAME_INODE): New file/macro.
45326 * lib/chdir-safer.c (SAME_INODE): Remove definition.
45327 Include "same-inode.h", instead.
45328 * lib/same.c: Likewise.
45329 * lib/cycle-check.h: Include "same-inode.h".
45330 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45331 * lib/cycle-check.c (SAME_INODE): Remove definition.
45332 * lib/root-dev-ino.h: Include "same-inode.h".
45334 2006-03-11 Eric Blake <ebb9@byu.net>
45336 * lib/same.c (same_name): s/base_name/last_component/
45337 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45338 * lib/filenamecat.c (file_name_concat): Likewise.
45340 2006-03-11 Eric Blake <ebb9@byu.net>,
45341 Paul Eggert <eggert@cs.ucla.edu>
45343 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45344 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45346 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45347 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45348 (last_component): New method.
45349 * lib/dirname.c (dir_len): Determine when drive letters need a
45350 subsequent slash. Preserve // when it is special.
45351 (dir_name): Don't append dot when drive letter is absolute.
45352 [TEST_DIRNAME]: Move into a full-blown gnulib test.
45353 * lib/basename.c (base_name): New semantics - malloc the result.
45354 Preserve // when it is special. Preserve relative files that look
45355 like drive letters.
45356 (base_len): Preserve // when it is special.
45357 (last_component): New method, similar to old base_name semantics.
45358 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45359 base_name. Strip redundant slashes from ///.
45361 2006-07-03 Jim Meyering <jim@meyering.net>
45363 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45364 macro is used before the first cycle_check call.
45366 2006-07-03 Eric Blake <ebb9@byu.net>
45368 * modules/dirname (Depends-on): Add xstrndup.
45370 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45372 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45373 test cases, so that config.log is a bit easier to follow.
45375 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45377 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45378 both are 64 bits, since this seems to be the tradition, and this
45379 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45380 we ever run into a host that prefers long long to long in this
45381 case, we'll need another configure-time test. Problem reported by
45384 2006-07-02 Eric Blake <ebb9@byu.net>
45386 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45388 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45390 * modules/inttypes (Depends-on): No longer depends on stdint.
45391 * modules/stdint (Description): Say more about assumptions.
45392 Say that the fast types might differ. Say macros are used.
45393 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45394 (Makefile.am): Revise list of substituted symbols to match
45396 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45397 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45398 * tests/test-stdint.c (verify_same_types)
45399 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45400 the code conforms to C99/C89.
45401 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45402 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45404 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45406 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45407 but fix a bug, by requiring at least 64 bits.
45408 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45409 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45410 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45411 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45413 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45414 changes. Make 2.59 a prerequisite. Check and substitute for
45415 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45416 inttypes.h. Do not use special include files; just use the
45417 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45418 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45419 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45420 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45421 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45422 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45423 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45424 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45425 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45426 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45427 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45428 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45429 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45430 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45431 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45432 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45433 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45434 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45435 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45436 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45437 WINT_MAX. Check for C99 conformance more strictly, by detecting
45438 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45439 not check for things that C99 does not require, e.g., int8_t. If
45440 a test isn't needed unless <stdint.h> isn't working, and is
45441 unlikely to be needed for any other reason, then don't do it
45442 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45443 size_t, since we assume C89 freestanding at least. Do not check
45444 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45445 the right thing even if the types are not defined. Instead use:
45446 (gl_STDINT_TYPE_PROPERTIES): New macro.
45447 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45448 testing whether <sys/types.h> clashes, as Autoconf does this for
45449 us now. All uses removed.
45450 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45451 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45452 (gl_CHECK_TYPE_SAME):
45453 Remove; no longer needed.
45454 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45455 exists, since we'll return 0 anyway in that case.
45456 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45458 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45460 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45461 possible collision with system files.
45462 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45463 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45464 WCHAR_MIN and WCHAR_MAX in this case.
45465 (<stddef.h>): Do not include; no longer needed.
45466 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45467 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45468 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45469 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45470 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45471 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45472 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45473 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45474 !defined(__c99))]: Include in this case too, since it's harmless
45476 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45477 dangerous to do so.
45478 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45479 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45480 (_STDINT_MIN, _STDINT_MAX): New macros.
45481 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45482 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45483 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45484 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45485 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45486 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45487 macros, not typedefs; this simplifies things quite a bit.
45488 Use long int for all types narrower than int64_t.
45489 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45490 Define in terms of long long int or int64_t or long int,
45491 not int64_t or int32_t. This saves some compile-time testing.
45492 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45493 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45494 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45495 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45496 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45497 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45498 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45499 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45500 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45501 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45502 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45503 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45504 undef any previous version and define our own version, for
45505 simplicity and consistency with the new macros for types.
45506 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45507 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45508 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45509 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45510 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45511 @WINT_T_SUFFIX@ to keep things simple here.
45512 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45513 Simplify by assuming typical 8/16/32/64 host, since we're
45514 already doing that elsewhere anyway.
45515 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45516 and assume long long int is 64 bits if available. This
45517 speeds up 'configure'.
45519 2006-07-01 Eric Blake <ebb9@byu.net>
45521 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45522 Reported by Andreas Buening.
45524 2006-07-01 Eric Blake <ebb9@byu.net>
45526 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45528 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45530 * lib/getaddrinfo.c: fixed typo
45532 2006-06-29 Jim Meyering <jim@meyering.net>
45534 * modules/strftime (Maintainer): Add my name, since with the
45535 FPRINTFTIME changes strftime.c has forked from glibc.
45537 2006-06-29 Eric Blake <ebb9@byu.net>
45539 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45541 2006-06-29 Eric Blake <ebb9@byu.net>
45543 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45545 2006-06-29 Eric Blake <ebb9@byu.net>
45547 * lib/stat_.h: New file.
45549 2006-06-29 Eric Blake <ebb9@byu.net>
45551 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45552 unused static function.
45554 2006-06-29 Eric Blake <ebb9@byu.net>
45556 * doc/functions.texi (Function Portability): Document missing lstat
45559 2006-06-29 Eric Blake <ebb9@byu.net>
45561 * MODULES.html.sh: Add sys_stat.
45562 * modules/sys_stat: New module.
45563 * modules/mkstemp (Depends-on): Add sys_stat.
45565 2006-06-29 Derek R. Price <derek@ximbiot.com>
45567 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45569 2006-06-29 Derek R. Price <derek@ximbiot.com>
45571 * m4/c-bs-a.m4: Removed.
45573 2006-06-29 Derek R. Price <derek@ximbiot.com>
45575 * lib/strftime.c: Assume strftime() exists.
45577 2006-06-29 Derek Price <derek@ximbiot.com>
45579 * modules/c-bs-a: Removed - \a is C89.
45580 * MODULES.html.sh: Remove c-bs-a.
45582 2006-06-29 Bruno Haible <bruno@clisp.org>
45584 * modules/wcwidth (License): Change to LGPL.
45586 2006-06-28 Simon Josefsson <jas@extundo.com>
45588 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
45591 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45594 2006-06-28 Simon Josefsson <jas@extundo.com>
45596 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45598 2006-06-28 Simon Josefsson <jas@extundo.com>
45600 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45601 functions there. It will succeed on Windows XP, but on Windows
45602 2000 and (presumably) earlier, it will fail, and use the internal
45604 (use_win32_p): New function.
45605 (getaddrinfo): Use strtoul on servname, to support numeric ports.
45606 Support AI_NUMERICSERV to disable getservbyname.
45607 (getnameinfo): New function, only supports
45608 NI_NUMERICHOST|NI_NUMERICSERV for now.
45610 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45611 only have some of them. Add AI_NUMERICSERV. Add prototype for
45614 2006-06-28 Eric Blake <ebb9@byu.net>
45616 * modules/wcwidth: New file.
45617 * modules/mbchar (Depends-on): Add wcwidth.
45618 * modules/mbswidth (Depends-on): Add wcwidth.
45619 * MODULES.html.sh: Add wcwidth.
45621 2006-06-28 Eric Blake <ebb9@byu.net>
45623 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45624 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45626 2006-06-28 Eric Blake <ebb9@byu.net>
45628 * lib/xvasprintf.h: Fix comments.
45630 2006-06-28 Eric Blake <ebb9@byu.net>
45632 * lib/mbchar.h (wcwidth): Include wcwidth.h.
45633 * lib/mbswidth.c (wcwidth): Move from here...
45634 * lib/wcwidth.h: ...to this new file.
45636 2006-06-28 Derek R. Price <derek@ximbiot.com>
45638 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45640 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45642 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45644 2006-06-28 Derek R. Price <derek@ximbiot.com>
45646 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
45647 Autoconf 2.60 says this stuff was obsolete.
45649 2006-06-28 Bruno Haible <bruno@clisp.org>
45651 * modules/wcwidth (Files): Add m4/wchar_t.m4.
45653 2006-06-28 Bruno Haible <bruno@clisp.org>
45655 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45658 2006-06-28 Bruno Haible <bruno@clisp.org>
45660 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45661 declaration for wcwidth.
45662 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45664 2006-06-28 Bruno Haible <bruno@clisp.org>
45666 * lib/mkdtemp.c [MINGW]: Include <io.h>.
45667 (mkdir): Define using _mkdir.
45669 2006-06-28 Bruno Haible <bruno@clisp.org>
45671 * lib/getaddrinfo.h: Fix POSIX URL.
45672 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45674 (use_win32_p): Make static.
45675 (getaddrinfo): Reject service name if it is empty or does not consist
45676 solely of decimal digits, or if its value is > 65535.
45677 (getnameinfo): Remove useless casts.
45679 2006-06-27 Simon Josefsson <jas@extundo.com>
45681 * modules/sys_select: New file, suggested by Bruno Haible, Paul
45682 Eggert and Martin Lambers.
45684 2006-06-27 Simon Josefsson <jas@extundo.com>
45686 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45687 Eggert and Martin Lambers.
45689 2006-06-27 Bruno Haible <bruno@clisp.org>
45691 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45692 result to 0, not to empty.
45693 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45695 2006-06-27 Bruno Haible <bruno@clisp.org>
45697 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45699 2006-06-26 Simon Josefsson <jas@extundo.com>
45701 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45704 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
45706 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45707 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
45708 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45710 2006-06-26 Mark D. Baushke <mdb@gnu.org>
45712 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45714 2006-06-26 Bruno Haible <bruno@clisp.org>
45716 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45718 2006-06-26 Bruno Haible <bruno@clisp.org>
45720 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45722 2006-06-26 Bruno Haible <bruno@clisp.org>
45724 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45725 SGI C compiler in pre-C99 mode.
45726 Suggested by Mark D. Baushke and Larry Jones.
45728 2006-06-26 Bruno Haible <bruno@clisp.org>
45730 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45732 Reported by Mark D. Baushke and Larry Jones.
45734 2006-06-26 Bruno Haible <bruno@clisp.org>
45736 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45738 Suggested by Mark D. Baushke and Larry Jones.
45740 2006-06-23 Simon Josefsson <jas@extundo.com>
45741 Bruno Haible <bruno@clisp.org>
45743 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45744 Emit mostlyclean-local rule.
45745 (func_emit_tests_Makefile_am): Likewise.
45746 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45748 2006-06-23 Mark D. Baushke <mdb@gnu.org>
45750 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45752 2006-06-23 Bruno Haible <bruno@clisp.org>
45754 * tests/test-stdint.c: Update to match ISO C 99 Technical
45757 2006-06-23 Bruno Haible <bruno@clisp.org>
45759 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45761 2006-06-23 Bruno Haible <bruno@clisp.org>
45763 * lib/stdint_.h: Treat IRIX like OpenBSD.
45765 2006-06-23 Bruno Haible <bruno@clisp.org>
45767 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45768 ISO C 99 Technical Corrigendum 1.
45770 2006-06-22 Simon Josefsson <jas@extundo.com>
45772 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45775 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
45777 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45778 needed. Some compiler complained about some of them. Problem reported
45780 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45782 2006-06-21 Simon Josefsson <jas@extundo.com>
45784 * tests/test-getaddrinfo.c: New file.
45786 * modules/getaddrinfo-tests: New file.
45788 * MODULES.html.sh: Add inet_pton.
45790 * modules/inet_pton: New file.
45792 2006-06-21 Simon Josefsson <jas@extundo.com>
45794 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
45795 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
45796 of using the (limited) gnulib implementation on Windows XP.
45798 * m4/inet_pton.m4: New file.
45800 2006-06-21 Simon Josefsson <jas@extundo.com>
45802 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45805 * lib/socket_.h: Don't define WINVER.
45807 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45808 slightly modified to work in gnulib.
45810 2006-06-21 Simon Josefsson <jas@extundo.com>
45812 * doc/gnulib.texi (Windows sockets): Add.
45814 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
45816 * lib/read-file.c (fread_file): Start with buffer allocation of
45817 0 bytes rather than 1 byte; this simplifies the code.
45818 Don't invoke feof; it's not needed. Refactor to avoid duplicate
45819 code to free buffer and save/restore errno.
45820 (internal_read_file): Remove unused local.
45822 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
45824 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45825 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45826 Problem reported by Denis Excoffier in
45827 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45829 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45831 * modules/sys_socket, modules/socklen: Include sys/types since
45832 FreeBSD 4.x's sys/socket.h needs it.
45834 2006-06-19 Simon Josefsson <jas@extundo.com>
45836 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45838 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45840 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45842 2006-06-19 Bruno Haible <bruno@clisp.org>
45844 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45845 and FULL_PATH_INTTYPES_H in angle brackets.
45846 Reported by Mark D. Baushke <mdb@gnu.org>.
45848 2006-06-17 Eric Blake <ebb9@byu.net>
45850 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45853 2006-06-17 Bruno Haible <bruno@clisp.org>
45855 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45858 2006-06-17 Bruno Haible <bruno@clisp.org>
45860 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45861 whether errno is declared. Assume <errno.h> declares errno.
45863 2006-06-17 Bruno Haible <bruno@clisp.org>
45865 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45867 2006-06-17 Bruno Haible <bruno@clisp.org>
45869 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45870 problem on Solaris 2.5.1.
45872 2006-06-16 Eric Blake <ebb9@byu.net>
45874 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45875 * lib/unicodeio.c [!defined errno]: Likewise.
45876 * lib/strtol.c [!defined errno]: Likewise.
45877 * lib/strtod.c [!defined errno]: Likewise.
45879 2006-06-15 Eric Blake <ebb9@byu.net>
45881 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45883 2006-06-15 Eric Blake <ebb9@byu.net>
45885 * config/srclist.txt (ssize_t.m4): Lose sync.
45887 2006-06-15 Bruno Haible <bruno@clisp.org>
45889 * modules/stdint (Files): Include m4/full-header-path.m4,
45890 m4/size_max.m4, m4/wchar_t.m4.
45891 (Makefile.am): Many more substitutions.
45892 * modules/stdint-tests: New file.
45893 * tests/test-stdint.c: New file.
45895 2006-06-15 Bruno Haible <bruno@clisp.org>
45897 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45898 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45899 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45900 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45901 gl_CHECK_TYPE_SAME): New macros.
45903 2006-06-15 Bruno Haible <bruno@clisp.org>
45905 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45907 2006-06-15 Bruno Haible <bruno@clisp.org>
45909 * lib/stdint_.h: Rewritten to be fully auto-configured.
45910 Fixes bug on HP-UX/IA64.
45912 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45914 * lib/getdate.y (__attribute__): Don't define if already defined.
45915 Problem reported by Larry Jones.
45916 * lib/utimens.c (__attribute__): Likewise.
45918 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45920 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45921 reported by Andreas Schwab.
45923 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45924 Bruno Haible <bruno@clisp.org>
45926 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45927 check for the declaration of strnlen and a run test that exposes the
45928 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45931 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45932 Bruno Haible <bruno@clisp.org>
45934 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45936 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45938 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45939 compile test, for Tru64 4.0D.
45941 2006-05-28 Karl Berry <karl@gnu.org>
45943 * config/srclist.txt (printf-args.c): lose sync.
45945 2006-05-26 Martin Lambers <marlam@marlam.de>
45947 * lib/getpass.c: Updates the test for the native W32 API, and adds
45948 missing includes, thus fixing compilation warnings.
45950 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
45952 * lib/exclude.c (exclude_fnmatch): New function.
45953 (excluded_file_name): Call exclude_fnmatch.
45954 * lib/exclude.h (excluded_file_name): New prototype
45956 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
45958 * lib/tempname.c (small_open, large_open): New macros.
45959 (__open, __open64) [!_LIBC]: Remove.
45960 (__gen_tempname): Use small_open and large_open instead of __open
45961 and __open64. This fixes a portability bug on HP-UX 11.11i
45962 reported by Simon Wing-Tang in
45963 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45965 2006-05-24 Bruno Haible <bruno@clisp.org>
45967 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45968 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45969 Reported by Thorsten Maerz <torte@netztorte.de> via
45970 Aaron Stone <aaron@serendipity.cx>.
45972 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45974 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45975 gl_ rather than jm_. Link, don't run, so that cross-compiles are
45976 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
45977 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45978 not really conditional on the cache.
45979 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45981 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45983 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45984 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45985 (my_usleep): Don't mishandle maximum value.
45987 2006-05-19 Jim Meyering <jim@meyering.net>
45989 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
45991 2006-05-17 Bruno Haible <bruno@clisp.org>
45993 Cygwin portability.
45994 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45996 2006-05-17 Bruno Haible <bruno@clisp.org>
45998 * lib/stdint_.h: Fix recognition of Cygwin.
46000 2006-05-15 Bruno Haible <bruno@clisp.org>
46002 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46003 on libtool patch by Ralf Wildenhues.
46005 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
46007 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46008 test for C99 conformance; (bool) 0.5 is an integer constant
46009 expression, but (bool) -0.5 is not. Problem reported by Fedor
46010 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46012 2006-05-11 Simon Josefsson <jas@extundo.com>
46014 * m4/xvasprintf.m4: Fix obvious typo.
46016 2006-05-11 Jim Meyering <jim@meyering.net>
46018 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
46021 2006-05-10 Simon Josefsson <jas@extundo.com>
46023 * lib/md4.c: Typo fix, update copyright years.
46024 (K1, K2): Don't use L because it turn computations into 64-bit on
46027 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
46029 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46030 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46031 unwanted sign propagation, e.g., on hosts with 64-bit int.
46032 There still are some problems with reeelly weird theoretical hosts
46033 (e.g., 33-bit int) but it's not worth worrying about now.
46034 * lib/sha1.c (rol): Likewise.
46035 (K1, K2, K3, K4): Remove unnecessary L suffix.
46037 2006-05-10 Bruno Haible <bruno@clisp.org>
46039 * lib/des.c: Cast to avoid warnings.
46041 2006-05-09 Bruno Haible <bruno@clisp.org>
46043 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46044 (Depends-on): Depend also on xsize, stdarg.
46045 (configure.ac): Add gl_XVASPRINTF.
46047 2006-05-09 Bruno Haible <bruno@clisp.org>
46049 * m4/xvasprintf.m4: New file.
46051 2006-05-09 Bruno Haible <bruno@clisp.org>
46053 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46054 (EOVERFLOW): Define fallback value.
46055 (xstrcat): New function.
46056 (xvasprintf): Recognize the special case of a string concatenation.
46058 2006-05-08 Eric Blake <ebb9@byu.net>
46060 * gnulib-tool (func_version): Base copyright year on CVS date.
46061 (func_emit_copyright_notice): New function.
46062 (func_emit_lib_Makefile_am): Use it.
46063 (func_emit_tests_Makefile_am): Likewise.
46064 (func_import): Likewise.
46066 2006-05-08 Bruno Haible <bruno@clisp.org>
46068 * modules/stdarg: New file.
46069 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46071 2006-05-08 Bruno Haible <bruno@clisp.org>
46073 * m4/stdarg.m4: New file, from GNU gettext.
46075 2006-05-08 Bruno Haible <bruno@clisp.org>
46077 * config/srclist.txt (build-aux/config.rpath): different from latest
46080 2006-05-08 Bruno Haible <bruno@clisp.org>
46082 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46084 2006-05-05 Jim Meyering <jim@meyering.net>
46086 * m4/warning.m4: New file, derived from bison's file by the same name.
46088 2006-05-03 Bruno Haible <bruno@clisp.org>
46090 * lib/stdint_.h: Shorter URL.
46091 * lib/inttypes.h: Likewise.
46093 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46095 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46097 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46099 * lib/verify.h: Document the internals better. Most of this change
46100 was written by Bruno Haible.
46102 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46104 * doc/verify.texi: New file, partly based on a proposal by
46107 2006-05-02 Bruno Haible <bruno@clisp.org>
46109 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46111 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46113 2006-04-29 Bruno Haible <bruno@clisp.org>
46115 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46116 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46118 2006-04-29 Bruno Haible <bruno@clisp.org>
46120 * gnulib-tool: Make --update option actually work.
46122 2006-04-29 Bruno Haible <bruno@clisp.org>
46124 * doc/gcd.texi: New file.
46125 * doc/gnulib.texi: Include it.
46127 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
46129 * lib/getdate.y (get_date): When adding relative date, start with the
46130 initial time, not with the result of the first mktime call.
46132 2006-04-25 Bruno Haible <bruno@clisp.org>
46134 * gnulib-tool (func_import): Output the include directives in three
46135 blocks, sorted separately.
46136 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46138 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46140 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46141 to define main with arguments, for C++. Reported by Eric Blake.
46142 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46143 Prefer 'int main ()' to 'int main (void)', for C++.
46144 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46145 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46146 for 'main', for C99 and C++.
46148 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46150 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46151 Don't assume that exit status -1 is valid.
46152 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46153 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46154 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46155 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46156 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46157 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46158 not AC_TRY_RUN. Use return, not exit. Don't assume that
46159 functions can be used without declaring them, or that you can
46160 exit with status -1.
46161 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46163 2006-04-24 Karl Berry <karl@gnu.org>
46165 * config/srclist.txt (longdouble.m4): sync lost.
46167 2006-04-24 Eric Blake <ebb9@byu.net>
46169 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46171 2006-04-24 Bruno Haible <bruno@clisp.org>
46173 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46174 poll() implementation in AIX.
46175 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46177 2006-04-24 Bruno Haible <bruno@clisp.org>
46179 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46180 assigned exactly once.
46182 2006-04-23 Claudio Fontana <claudio@gnu.org>
46183 Bruno Haible <bruno@clisp.org>
46185 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46186 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46189 2006-04-23 Bruno Haible <bruno@clisp.org>
46191 * modules/copy-file: Depend on unistd.
46192 * modules/execute: Likewise.
46193 * modules/fatal-signal: Likewise.
46194 * modules/findprog: Likewise.
46195 * modules/mkdtemp : Likewise.
46196 * modules/pipe: Likewise.
46197 * modules/wait-process: Likewise.
46199 2006-04-23 Bruno Haible <bruno@clisp.org>
46201 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46202 condition was already detected.
46203 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46205 2006-04-23 Bruno Haible <bruno@clisp.org>
46207 * lib/copy-file.c: Include <unistd.h> unconditionally.
46208 * lib/execute.c: Likewise.
46209 * lib/fatal-signal.c: Likewise.
46210 * lib/findprog.c: Likewise.
46211 * lib/mkdtemp.c: Likewise.
46212 * lib/pipe.h: Likewise.
46213 * lib/pipe.c: Likewise.
46214 * lib/wait-process.h: Likewise.
46216 2006-04-23 Bruno Haible <bruno@clisp.org>
46218 * gnulib-tool (func_usage): Fix --import description. Document
46220 (func_import): Create temporary file in a temporary directory, if
46221 --dry-run is specified. Silence errors from 'grep' when there are no
46222 m4 files in $m4dir.
46223 (func_create_testdir): Silence errors from 'grep' when there are no
46224 m4 files in $m4dir.
46225 Reported by Karl Berry <karl@freefriends.org>.
46227 2006-04-20 Bruno Haible <bruno@clisp.org>
46229 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46230 one argument, so that the code will be portable to Autoconf 2.60.
46231 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46232 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46233 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46235 2006-04-19 Derek Price <derek@ximbiot.com>
46236 Eric Blake <ebb9@byu.net>
46238 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46239 rather than "/full/path.h". Update comment to match. Shorten &
46240 generalize m4_translit call via AS_TR_CPP.
46242 2006-04-19 Derek Price <derek@ximbiot.com>
46243 Eric Blake <ebb9@byu.net>
46245 * lib/inttypes.h: Correct grammar in comment.
46247 2006-04-18 Derek Price <derek@ximbiot.com>
46248 Paul Eggert <eggert@cs.ucla.edu>
46250 * modules/inttypes: New file.
46251 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46253 2006-04-18 Derek Price <derek@ximbiot.com>
46254 Paul Eggert <eggert@cs.ucla.edu>
46256 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46259 2006-04-18 Derek Price <derek@ximbiot.com>
46260 Paul Eggert <eggert@cs.ucla.edu>
46262 * lib/inttypes.h: New file.
46263 * lib/strtoimax.c: Assume <inttypes.h>.
46265 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
46267 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46268 isn't mounted. Problem reported by Kir Kolyshkin.
46270 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
46272 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46273 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
46275 * lib/regex.h (RE_DUP_MAX): Update comment to match current
46278 2006-04-12 Eric Blake <ebb9@byu.net>
46280 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46281 is now done automatically by the corresponding Autoconf macro.
46283 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
46285 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46288 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46290 Merge regex changes from libc, removing some of our
46291 POSIX-conformance changes that were rejected and redoing them in a
46292 less-intrusive way.
46294 * lib/regcomp.c (re_compile_internal, init_dfa):
46295 Length arg is now size_t, not Idx. All uses changed.
46296 (peek_token): Forward decl now says internal_function.
46297 (__re_error_msgid, __re_error_msgid_idx):
46298 Now static rather than extern with attribute_hidden.
46299 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46300 For some reason libc prefers K&R style defns for external functions.
46301 (regerror) [!defined _LIBC]: Likewise.
46302 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46303 (seek_collating_symbol_entry, lookup_collation_sequence_value):
46304 (build_range_exp, build_collating_symbol):
46305 Use K&R-style defn.
46306 (re_compile_fastmap): Use '\0' to memset, not 0.
46307 (utf8_sb_map): Make the calculations more obvious.
46308 (init_dfa, parse_bracket_exp, build_charclass_op):
46309 Call calloc and cast result, as glibc does.
46310 (init_word_char, fetch_token, peek_token, peek_token_bracket):
46311 (build_range_exp, build_collating_symbol):
46312 Now internal functions.
46314 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46316 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
46317 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46318 Don't depend on VMS; depend on __VMS instead, for POSIX
46319 namespace cleanness.
46320 (regoff_t): Define to ssize_t, not long int.
46322 Remove the REG_ macros named below. Instead, make the old names
46323 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46325 (REG_BACKSLASH_ESCAPE_IN_LISTS):
46326 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46327 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46328 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46329 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46330 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46331 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46332 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46333 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46334 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46335 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46336 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46337 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46338 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46339 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46340 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46341 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46343 Remove. All uses replaced by the old RE_* names.
46344 (RE_BACKSLASH_ESCAPE_IN_LISTS):
46345 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46346 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46347 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46348 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46349 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46350 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46351 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46352 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46353 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46354 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46355 Don't bother having these macros be independent of each others'
46356 values, since they no longer exist in the POSIX name space.
46358 Rename the following member names back to their old names,
46359 unless !__USE_GNU_REGEX. All uses changed back.
46360 (buffer): Renamed from re_buffer.
46361 (allocated): Renamed from re_allocated.
46362 (used): Renamed from re_used.
46363 (syntax): Renamed from re_syntax.
46364 (fastmap): Renamed from re_fastmap.
46365 (translate): Renamed from re_translate.
46366 (can_be_null): Renamed from re_can_be_null.
46367 (regs_allocated): Renamed from re_regs_allocated.
46368 (fastmap_accurate): Renamed from re_fastmap_accurate.
46369 (no_sub): Renamed from re_no_sub.
46370 (not_bol): Renamed from re_not_bol.
46371 (not_eol): Renamed from re_not_eol.
46372 (newline_anchor): Renamed from re_newline_anchor.
46373 (num_regs): Renamed from rm_num_regs.
46374 (start): Renamed from rm_start.
46375 (end): Renamed from rm_end.
46377 (free_state): Move up a bit.
46379 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46380 #define to be empty.
46381 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46382 when that is what is intended.
46383 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46384 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46386 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46387 All uses changed back to re_malloc, etc. It's now the caller's
46388 responsibility to check for overflow; all callers changed.
46389 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46390 (re_x2nrealloc): Remove.
46391 (free_state): Remove decl.
46393 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46394 (re_set_registers, re_exec):
46395 Use K&R-style defn.
46397 2006-01-31 Roland McGrath <roland@redhat.com>
46399 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46400 Reported by Mike Frysinger <vapier@gentoo.org>.
46402 2006-01-15 Andreas Jaeger <aj@suse.de>
46405 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46406 build_wcs_upper_buffer change.
46407 (build_wcs_upper_buffer): Change return type.
46409 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46411 * lib/regex_internal.h: Include <stdint.h> if available.
46413 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46415 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46417 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46419 * lib/regcomp.c: Adjust for changed secondary hash function.
46421 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46423 * lib/regex.h: Pretty printing.
46424 Clean up namespace a bit.
46426 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46428 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46429 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46431 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46432 Ulrich Drepper <drepper@redhat.com>
46435 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46437 (bitset_word_t): Renamed from bitset_word. All uses changed.
46439 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46442 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46443 * lib/regcomp.c: Remove unnecessary uses of
46444 unsigned RE_TRANSLATE_TYPE.
46445 * lib/regex_internal.h: Likewise.
46446 * lib/regex_internal.c: Likewise.
46447 * lib/regexec.c: Likewise.
46448 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46450 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46452 * lib/regexec.c (find_recover_state): Remove unnecessary
46454 (transit_state_bkref): Make DFA a const pointer.
46455 (get_subexp): Likewise.
46456 (check_arrival): Likewise.
46457 (update_cur_sifted_state): Likewise.
46458 (re_search_internal): Likewise.
46459 (prune_impossible_nodes): Likewise.
46460 (acquire_init_state_context): Likewise.
46461 (proceed_next_node): Likewise.
46462 (set_regs): Likewise.
46463 (free_fail_stack_return): Likewise.
46464 (check_arrival_expand_ecl): Mark DFA parameter as const.
46465 (check_arrival_expand_ecl_sub): Likewise.
46466 (check_subexp_limits): Likewise.
46467 (sub_epsilon_src_nodes): Likewise.
46468 (add_epsilon_src_nodes): Likewise.
46469 (merge_state_array): Likewise.
46470 (update_regs): Likewise.
46471 (build_trtable): Likewise.
46472 (sift_states_backward): Mark MCTX parameter as const.
46473 (build_sifted_states): Likewise.
46474 (update_cur_sifted_state): Likewise.
46475 (sift_states_mkref): Likewise.
46476 (check_arrival_expand_ecl): Mark eclosure as const.
46477 (check_dst_limits_calc_pos_1): Likewise.
46478 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46481 2005-09-06 Ulrich Drepper <drepper@redhat.com>
46483 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46484 (transit_state_sb): Likewise.
46485 (transit_state_mb): Likewise.
46486 (sift_states_iter_mb): Likewise.
46487 (check_arrival_add_next_nodes): Likewise.
46488 (check_node_accept_bytes): Change first parameter to pointer-to-const.
46489 [_LIBC] (re_search_2_stub): Use mempcpy.
46491 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46492 mbrtowc for very simple UTF-8 case.
46494 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46495 a pointer-to-const.
46496 (re_acquire_state_context): Likewise.
46497 * lib/regex_internal.h: Adjust prototypes.
46499 * lib/regex.c: Prevent using C++ compilers.
46501 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46502 (re_acquire_state_context): Likewise.
46504 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46506 * modules/regex (Depends-on): Add ssize_t.
46508 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46510 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46513 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46515 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46517 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46518 Bruno Haible <bruno@clisp.org>
46520 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46521 <sys/types.h> and <inttypes.h>.
46523 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46525 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46526 `__error_t_defined', so argp.h will not typedef the former.
46528 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46530 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46531 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46532 glibc names. Even if glibc is changed to conform to POSIX, the
46533 traditional names will be available anyway, since regex depends on
46534 the extensions module. Also, fix a longstanding typo in the
46535 implementation of Spencer ERE test #75 from grep 2.3. Problems
46536 reported by Emanuele Giaquinta. Also, change sense of cached
46537 variable, so that the message makes sense.
46539 2006-03-24 Simon Josefsson <jas@extundo.com>
46541 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46542 including some doc fixes.
46543 (base64_encode_alloc): Fix +1 bug on allocation failures.
46545 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46547 * lib/base64.c (base64_encode): Do not read past end of array with
46548 unsanitized input on systems with CHAR_BIT > 8.
46550 2006-03-24 Eric Blake <ebb9@byu.net>
46552 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46554 2006-03-22 Karl Berry <karl@gnu.org>
46556 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46557 * config/srclistvars.sh (COREUTILS): new var.
46559 2006-03-17 Jim Meyering <jim@meyering.net>
46561 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46562 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46564 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46566 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46567 no longer needs it. Instead, check that regoff_t is as least
46568 as wide as ptrdiff_t.
46570 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46571 so that our regex.h stays compatible with the installed regex.
46572 This is helpful for installers who configure --without-included-regex.
46573 Problem reported by Emanuele Giaquinta.
46575 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46577 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46578 Typedef to long int, not to off_, as POSIX will likely change
46581 2006-03-15 Eric Blake <ebb9@byu.net>
46583 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46585 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
46587 * lib/argp-help.c (validate_uparams): Fix typo
46588 * lib/argp-parse.c (argp_default_options): Consistently begin help
46589 messages with a lowercase letter.
46591 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
46593 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
46594 overrun buffers and shouldn't be used (much as gets shouldn't be
46596 * lib/time_r.c (asctime_r, ctime_r): Likewise.
46598 2006-03-08 Simon Josefsson <jas@extundo.com>
46600 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46601 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46603 2006-03-08 Simon Josefsson <jas@extundo.com>
46605 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46606 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46608 2006-03-08 Simon Josefsson <jas@extundo.com>
46610 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46611 signal that configure disabled the device.
46613 2006-03-08 Simon Josefsson <jas@extundo.com>
46615 * build-aux/maint.mk: Fix refresh-po, to handle no translated
46618 2006-03-07 Simon Josefsson <jas@extundo.com>
46620 * modules/getopt (Depends-on): Add unistd.
46622 * modules/unistd: New file.
46624 2006-03-07 Simon Josefsson <jas@extundo.com>
46626 * modules/gc-random: New file.
46628 2006-03-07 Simon Josefsson <jas@extundo.com>
46630 * m4/unistd_h.m4: New file.
46632 2006-03-07 Simon Josefsson <jas@extundo.com>
46634 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46635 test to be side-effect free by storing the result in the cache
46636 variable gl_cv_lib_readline, and moving the assignment of
46637 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46638 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46640 2006-03-07 Simon Josefsson <jas@extundo.com>
46642 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
46643 error on missing devices (the functions will return an error).
46645 * m4/gc.m4: Move random stuff to gc-random.m4
46647 2006-03-07 Simon Josefsson <jas@extundo.com>
46649 * lib/unistd_.h: New file.
46651 2006-03-07 Simon Josefsson <jas@extundo.com>
46653 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46655 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46657 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46658 Problem reported by Juan Manuel Guerrero.
46660 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46662 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46664 * lib/getlogin_r.c: Likewise.
46665 * lib/getlogin_r.h: Likewise.
46666 * lib/glob.c: Likewise.
46667 * lib/pagealign_alloc.c: Likewise.
46668 * lib/unistd_.h: Remove; no longer needed.
46670 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46672 * MODULES.html.sh (Support for systems lacking POSIX:2001):
46674 * modules/c-stack (Depends-on): Add unistd.
46675 * modules/getlogin_r: Likewise.
46676 * modules/glob: Likewise.
46677 * modules/pagealign_alloc: Likewise.
46678 * modules/unistd (Files): Remove lib/unistd_.h.
46679 (EXTRA_DIST): Remove.
46680 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46682 (MOSTLYCLEANFILES): Remove unistd.h-t.
46684 2006-03-03 Simon Josefsson <jas@extundo.com>
46686 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46688 2006-03-03 Simon Josefsson <jas@extundo.com>
46690 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46693 2006-03-03 Simon Josefsson <jas@extundo.com>
46695 * build-aux/maint.mk: Add indent target.
46697 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46699 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46700 our replacement poll.h in any case, to avoid a differing
46701 declaration from a system header. Seen on AIX.
46703 2006-03-01 Simon Josefsson <jas@extundo.com>
46705 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46708 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46710 * modules/gettime (Depends-on): Add extensions module.
46711 * modules/nanosleep (Depends-on): Likewise.
46712 * modules/settime (Depends-on): Likewise.
46714 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46716 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46717 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46719 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46720 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46722 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46723 not "==". Reported by Ralf Wildenhues.
46725 2006-03-01 Karl Berry <karl@gnu.org>
46727 * doc/Copyright/request-*: new files, synced from gnuorg.
46729 2006-03-01 Karl Berry <karl@gnu.org>
46731 * config/srclist.txt (Copyright/*): new entries.
46733 2006-02-28 Simon Josefsson <jas@extundo.com>
46735 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46737 2006-02-27 Simon Josefsson <jas@extundo.com>
46739 * lib/base64.h: Indent #define's. From Jim Meyering
46740 <jim@meyering.net>.
46742 2006-02-27 Jim Meyering <jim@meyering.net>
46744 Revert the change of 2006-02-24, so these files can continue
46745 to be sync'd from gettext.
46746 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46749 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
46751 * modules/intprops: New file.
46752 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46754 * modules/getloadavg (Files): Remove lib/intprops.h.
46755 (Depends-on): Add intprops.
46756 * modules/human: Likewise.
46757 * modules/inttostr: Likewise.
46758 * modules/openat: Likewise.
46759 * modules/sig2str: Likewise.
46760 * modules/userspec: Likewise.
46761 * modules/utimecmp: Likewise.
46762 * modules/xnanosleep: Likewise.
46763 * modules/xstrtol: Likewise.
46765 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
46767 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46768 * modules/lock-tests (TESTS): Use $(EXEEXT).
46769 * modules/tls-tests: Likewise.
46770 * modules/argp-tests: Likewise.
46771 (check_PROGRAMS): New var, replacing...
46772 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46774 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46776 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46779 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
46781 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46783 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46785 Sync from coreutils.
46786 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46789 2006-02-22 Jim Meyering <jim@meyering.net>
46791 Sync from coreutils.
46792 * m4/chdir-safer.m4: New file.
46794 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
46796 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46797 AT_FDCWD exceeds INT_MAX.
46798 * lib/openat.h (AT_FDCWD): Likewise.
46800 2006-02-17 Eric Blake <address@hidden>
46802 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46804 2006-02-16 Simon Josefsson <jas@extundo.com>
46806 * modules/getaddrinfo (Depends-on): Add sys_socket.
46808 2006-02-15 Simon Josefsson <jas@extundo.com>
46810 * build-aux/maint.mk: Add dsyntax-check rule.
46812 2006-02-15 Eric Blake <ebb9@byu.net>
46814 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46815 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46816 'present but cannot compile' warnings on cygwin.
46817 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
46818 use ws2tcpip.h if sys/socket.h works.
46819 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46820 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46822 2006-02-14 Simon Josefsson <jas@extundo.com>
46824 * modules/maintainer-makefile (Files): Rename.
46826 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46827 and (the local) Makefile.cfg to maint-cfg.mk.
46829 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46832 * modules/maintainer-makefile: New module.
46834 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46835 severaly stripped to make it possible to build it up from scratch
46836 with reliable tests.
46838 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46839 fixes to permit overriding the default actions when configure and
46840 makefile are not available.
46842 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
46844 Sync from coreutils.
46845 * modules/lstat (Depends-on): Don't depend on xalloc.
46846 (License): Change from GPL to LGPL, since this is now simply a
46847 replacement for a libc function.
46849 2006-02-14 Jim Meyering <jim@meyering.net>
46851 Sync from coreutils.
46853 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46854 failure on deficient systems, and simplify gnulib lgpl dependencies.
46855 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46856 xmalloc/lstat combination. Based on a patch from Bruno Haible.
46858 * lib/xalloc-die.c: Remove unused definition of N_.
46860 2006-02-14 Jim Meyering <jim@meyering.net>
46862 Sync from coreutils.
46863 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46864 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46865 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46866 double-quote uses of that variable, to accommodate the rare case in
46867 which getmntent is available in none of the libraries checked. This
46868 happens at least on FreeBSD 5.0.
46870 2006-02-13 Simon Josefsson <jas@extundo.com>
46872 * gnulib-tool (Usage): Fix --import, from
46873 karl@freefriends.org (Karl Berry).
46875 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46877 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46879 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46881 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46882 "autoupdate" on 2005-12-12.
46884 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46886 * modules/closeout (Depends-on): Remove atexit.
46888 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46890 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46891 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46893 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46895 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46896 __EXTENSIONS__ if this causes compilation to fail. Problem
46897 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46898 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46900 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46902 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46903 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46904 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46907 2006-01-26 Simon Josefsson <jas@extundo.com>
46909 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46910 prototype is visible on mingw32.
46912 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46915 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46918 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46920 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46921 attempt to open for write; this always fails, at least on POSIX
46922 hosts. This reinstates the 2006-01-09 change, which was
46923 inadvertently removed.
46925 2006-01-26 Bruno Haible <bruno@clisp.org>
46927 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46928 Reported by Paul Eggert.
46930 2006-01-26 Bruno Haible <bruno@clisp.org>
46931 Paul Eggert <eggert@cs.ucla.edu>
46933 * lib/stdbool_.h (_Bool)
46934 [(! (defined __cplusplus || defined __BEOS__)
46935 && !defined __GNUC__
46936 && !(defined __HP_cc || defined __xlc__
46937 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46938 || defined __sgi))]:
46939 #define to signed char in these cases too; this simplifies
46940 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46941 etc., separately) and makes it more conservative.
46943 2006-01-25 Simon Josefsson <jas@extundo.com>
46945 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46946 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
46947 ws2tcpip.h with WINVER=0x0501. All for mingw32.
46949 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
46951 * lib/argp-namefrob.h: Bugfix. Remove stray #
46953 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
46955 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46956 so that we test the test.
46957 Check for yet another HP-UX cc bug involving *bool |= bool.
46959 2006-01-25 Karl Berry <karl@gnu.org>
46961 * config/srclist.txt (vasnprintf.c): sync lost.
46963 2006-01-25 Jim Meyering <jim@meyering.net>
46965 Sync from the stable (b5) branch of coreutils:
46967 * lib/fts.c (fts_children): Don't let close() clobber errno from
46970 * lib/fts.c (fts_stat): When following a symlink-to-directory,
46971 don't necessarily interpret stat-fails+lstat-succeeds as indicating
46972 a dangling symlink. That can also happen at least for ELOOP.
46973 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46974 FYI, this bug predates the inclusion of fts.c in coreutils.
46976 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46977 in their own block, so pre-c99 compilers don't object.
46979 Avoid the double-free (first in fts_read, second in fts_close) that
46980 would occur when an `active' directory is made inaccessible (e.g.,
46981 via chmod a-x) during a traversal.
46982 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46983 before returning. Reproduce this failure by
46984 mkdir -p a/b; cd a; chmod a-x . b
46985 Reported by Stavros Passas.
46987 2006-01-25 Jim Meyering <jim@meyering.net>
46989 * lib/fileblocks.c: Remove more useless parentheses.
46990 * lib/readutmp.h: Likewise.
46992 2006-01-25 Bruno Haible <bruno@clisp.org>
46994 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46996 Reported by Paul Eggert.
46998 2006-01-25 Bruno Haible <bruno@clisp.org>
47000 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47001 rid of a trap command. For Solaris sh.
47002 Reported by Mark D. Baushke <mdb@gnu.org>.
47004 2006-01-24 Simon Josefsson <jas@extundo.com>
47006 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47009 2006-01-24 Karl Berry <karl@gnu.org>
47011 * config/srclist.txt (argp-namefrob.h): sync lost.
47013 2006-01-24 Jim Meyering <jim@meyering.net>
47015 * modules/openat (Files): Add lib/intprops.h.
47016 From Mark D. Baushke.
47018 2006-01-24 Jim Meyering <jim@meyering.net>
47020 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47021 Reported by Mark D. Baushke.
47023 2006-01-24 Jim Meyering <jim@meyering.net>
47025 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47027 2006-01-24 Bruno Haible <bruno@clisp.org>
47029 * modules/strnlen (Maintainer): Change from glibc to all.
47031 2006-01-24 Bruno Haible <bruno@clisp.org>
47033 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47034 Patch by Paul Eggert.
47036 2006-01-24 Bruno Haible <bruno@clisp.org>
47038 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47040 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
47043 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47044 'signed char' to avoid problems with the built-in _Bool type.
47045 Reported by Paul Eggert on 2005-11-26.
47047 2006-01-24 Bruno Haible <bruno@clisp.org>
47049 * gnulib-tool (func_import): Avoid constructing complicated sed
47050 expressions inside backquote.
47051 Report and solution by Mark D. Baushke <mdb@gnu.org>.
47053 2006-01-23 Ulrich Drepper <drepper@redhat.com>
47055 These changes imported from libc.
47056 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47057 test and two separate function calls.
47058 * lib/strndup.c (__strndup): Add libc_hidden_def.
47060 2006-01-23 Simon Josefsson <jas@extundo.com>
47062 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47063 Remove the test_*_SOURCES variable: automake infers it by default.
47064 * modules/tls-tests: Likewise.
47066 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47068 Work around porting bugs reported by Dieter in
47069 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47070 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47071 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47072 Include "getopt.h" first, to check interface.
47073 (getenv): Declare only if defined HAVE_DECL_GETENV &&
47075 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47076 (__strndup): Revert to K&R-style function dfns, the glibc style.
47077 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47078 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47079 Include strnlen.h first, to get prototype properly.
47080 (strnlen): Renamed from __strnlen.
47083 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47085 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47087 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47089 * config/srclist.txt: Adjust to reflect glibc reorganization.
47090 This affects only comments.
47092 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47094 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47095 Reported by Bruce Korb <bkorb@gnu.org>.
47097 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
47099 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47100 to pacify gcc -Wswitch-default.
47102 2006-01-22 Bruno Haible <bruno@clisp.org>
47104 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47105 temporary buffer for sprintf, take into account the precision also
47106 for 'd', 'i', 'u', 'o', 'x', 'X'.
47108 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47110 * modules/argp-tests: New module
47111 * tests/test-argp.c: New file
47112 * tests/test-argp-2.sh: New file
47114 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47116 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47117 (__argp_base_name): Removed
47118 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47120 (__argp_base_name): Provide macro definition or extern declaration
47121 depending on the configuration
47123 2006-01-20 Simon Josefsson <jas@extundo.com>
47125 * modules/inet_ntop (Depends-on): Depend on sys_socket.
47127 2006-01-20 Simon Josefsson <jas@extundo.com>
47129 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47131 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
47133 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47134 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47135 Suggested by Bruno Haible.
47137 2006-01-20 Karl Berry <karl@gnu.org>
47139 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47140 until changes propagate, I guess.
47142 2006-01-19 Simon Josefsson <jas@extundo.com>
47144 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47146 2006-01-19 Simon Josefsson <jas@extundo.com>
47148 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47150 2006-01-19 Simon Josefsson <jas@extundo.com>
47152 * gnulib-tool: Set check_PROGRAMS.
47154 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47155 modules/des-tests, modules/gc-arcfour-tests,
47156 modules/gc-arctwo-tests, modules/gc-des-tests,
47157 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47158 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47159 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47160 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47161 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47162 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47163 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47166 2006-01-18 Simon Josefsson <jas@extundo.com>
47168 * modules/socklen (Depends-on): Depend on sys_socket.
47170 2006-01-18 Simon Josefsson <jas@extundo.com>
47172 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47173 modules/des-tests, modules/gc-arcfour-tests,
47174 modules/gc-arctwo-tests, modules/gc-des-tests,
47175 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47176 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47177 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47178 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47179 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47180 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47181 $(EXEEXT) to automake TESTS variable, for mingw32.
47183 2006-01-17 Simon Josefsson <jas@extundo.com>
47185 * modules/socklen (Include): Need sys/socket.h.
47187 2006-01-17 Bruno Haible <bruno@clisp.org>
47189 * modules/ssize_t (Include): Add <sys/types.h>.
47191 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
47193 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47194 it's not portable and it doesn't work with cross-compiles.
47195 Problem reported by Bruno Haible. Fix missing-$ typo in
47196 'test "gl_cv_ignore_unused_libraries" ...' that prevented
47197 -zignore from being used with Sun's C compiler.
47199 2006-01-12 Simon Josefsson <jas@extundo.com>
47201 * lib/base64.c: Fix warning, reported by Bruno Haible
47202 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47204 2006-01-12 Bruno Haible <bruno@clisp.org>
47206 * modules/ldd: New file.
47207 * build-aux/ldd.sh.in: New file.
47208 * MODULES.html.sh (Support for building libraries and executables): Add
47211 2006-01-12 Bruno Haible <bruno@clisp.org>
47213 * m4/ldd.m4: New file.
47215 2006-01-12 Bruno Haible <bruno@clisp.org>
47217 * gnulib-tool (func_import, func_create_testdir): Don't go into an
47218 endless loop while replacing $auxdir with build-aux.
47220 2006-01-11 Simon Josefsson <jas@extundo.com>
47222 * lib/stdint_.h (SIZE_MAX): Add missing (.
47224 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
47226 Sync from coreutils.
47227 * lib/md5.c: Fix commentary typos.
47228 (alignof, UNALIGNED_P): No need for a GCC-specific version.
47229 * lib/md5.h (__attribute__): Remove; unused.
47230 * lib/sha1.c: Fix commentary to match md5 better.
47231 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47232 so that we don't need to worry about alignment. All uses changed.
47233 This merges the 2005-10-28 md5 change into sha1.
47235 2006-01-11 Jim Meyering <jim@meyering.net>
47237 Sync from coreutils.
47238 * lib/md5.c (OP): Fix spacing.
47240 2006-01-11 Bruno Haible <bruno@clisp.org>
47242 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47243 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47244 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47246 2006-01-11 Bruno Haible <bruno@clisp.org>
47248 Ensure automatic ordering between gl_LOCK and gl_ARGP.
47249 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47250 the "early" section as well.
47252 2006-01-11 Bruno Haible <bruno@clisp.org>
47254 Avoid "ar: no archive members specified" error on MacOS X.
47255 * gnulib-tool (func_modules_add_dummy): New function.
47256 (func_import, func_create_testdir): Invoke it.
47258 2006-01-11 Bruno Haible <bruno@clisp.org>
47260 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47261 with $auxdir in AC_CONFIG_FILES statements.
47263 2006-01-11 Bruno Haible <bruno@clisp.org>
47265 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47266 Initialize also noinst_HEADERS to empty.
47268 2006-01-11 Bruno Haible <bruno@clisp.org>
47270 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47272 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47275 2006-01-11 Bruno Haible <bruno@clisp.org>
47277 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47278 overridable by the user.
47279 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47281 2006-01-10 Simon Josefsson <jas@extundo.com>
47283 * modules/sys_socket: New file.
47285 2006-01-10 Simon Josefsson <jas@extundo.com>
47287 * m4/sys_socket_h.m4: New file.
47289 2006-01-10 Simon Josefsson <jas@extundo.com>
47291 * lib/socket_.h: New file.
47293 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47295 * modules/readutmp (Maintainer): Add myself.
47297 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47299 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47300 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
47301 People who are still concerned with buggy memcmp implementations
47302 can invoke gl_FUNC_MEMCMP themselves.
47304 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
47306 * lib/regex_internal.h (BITSET_WORD_BITS):
47307 Work around a bug in 64-bit PGC (before version 6.1-2), where the
47308 preprocessor mishandles large unsigned values as if they were signed.
47309 Problem reported by Claudio Fontana in
47310 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47312 2006-01-10 Jim Meyering <jim@meyering.net>
47314 Avoid the double-free (first in fts_read, second in fts_close) that
47315 would occur when an `active' directory is made inaccessible (e.g.,
47316 via chmod a-x) during a traversal.
47317 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47318 before returning. Reproduce this failure by
47319 mkdir -p a/b; cd a; chmod a-x . b
47320 Reported by Stavros Passas.
47322 Sync from coreutils.
47323 * lib/sha1.c: Tweak grammar in a comment.
47325 2006-01-10 Jim Meyering <jim@meyering.net>
47327 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47328 Patch by Joerg Sonnenberger.
47330 2006-01-10 Bruno Haible <bruno@clisp.org>
47332 * modules/readutmp: Depend on module free.
47333 * modules/strtok_r: Depend on module restrict.
47335 2006-01-10 Bruno Haible <bruno@clisp.org>
47337 * modules/gettext (configure.ac): Add an invocation of
47338 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47340 2006-01-10 Bruno Haible <bruno@clisp.org>
47342 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47343 Reported by Werner Lemberg <wl@gnu.org>.
47345 2006-01-10 Bruno Haible <bruno@clisp.org>
47347 * lib/localcharset.c: Update from GNU gettext.
47349 2006-01-10 Bruno Haible <bruno@clisp.org>
47351 * lib/argp.h (__const): Remove macro. Use const instead.
47352 * lib/argp-fmtstream.h (__const): Likewise.
47353 * lib/glob_.h (__const): Remove macro.
47354 * lib/glob-libc.h: Use const instead of __const.
47356 2006-01-10 Bruno Haible <bruno@clisp.org>
47358 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47360 Needed to avoid an automake error regarding the 'gettext' module.
47362 2006-01-09 Simon Josefsson <jas@extundo.com>
47364 * modules/inet_ntop (Depends-on): Add restrict.
47366 2006-01-09 Simon Josefsson <jas@extundo.com>
47368 * modules/gc-rijndael-tests (License): Put under LGPL.
47370 * modules/gc-des-tests (License): Likewise.
47372 * modules/gc-arcfour-tests (License): Likewise.
47374 * modules/gc-arctwo-tests (License): Likewise.
47376 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47378 * modules/gc-hmac-sha1-tests (Files): Likewise.
47380 * modules/gc-hmac-md5-tests (License): Likewise.
47382 * modules/gc-sha1-tests (License): Likewise.
47384 * modules/gc-md5-tests (License): Likewise.
47386 * modules/gc-md4-tests (License): Likewise.
47388 * modules/gc-md2-tests (License): Likewise.
47390 * modules/gc-tests (License): Likewise.
47392 * modules/des-tests (License): Likewise.
47394 * modules/md4-tests (License): Likewise.
47396 * modules/md2-tests (License): Likewise.
47398 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47400 Sync from coreutils:
47402 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47403 * modules/lib-ignore: New file.
47404 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47405 chdir-safer.m4, lchmod.m4.
47406 * modules/openat: Add mkdirat.c, openat-priv.h.
47408 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47410 Sync from coreutils.
47411 * m4/lib-ignore.m4: New file.
47412 * m4/lchmod.m4: New file.
47414 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47416 Sync from coreutils.
47417 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47418 for write access: POSIX says that must fail.
47419 * lib/fts.c (diropen): Likewise.
47420 * lib/save-cwd.c (save_cwd): Likewise.
47421 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47422 well, for minor improvements on hosts that lack O_DIRECTORY.
47423 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47424 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47425 Fall back on chown if open failed with EACCES.
47427 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47428 Report an error at compile-time if only a 1-second nominal clock
47429 resolution is found.
47431 * lib/lchmod.h: New file.
47432 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47433 (make_dir_parents): Use lchown rather than chown, and
47434 lchmod rather than chmod.
47436 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47437 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47438 "proc" reported by n0dalus.
47440 * lib/mountlist.c: Include <limits.h>.
47441 (dev_from_mount_options)
47442 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47443 New function. It no longer assumes "dev=" has the System V meaning
47444 on Linux (since it doesn't). It also parses "dev=" more carefully.
47445 (read_file_system_list)
47446 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47447 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47450 * lib/posixtm.h (PDS_PRE_2000): New macro.
47451 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47452 allow_century. All usages changed. Reject dates outside the range
47453 1969-1999 if PDS_PRE_2000 is used.
47455 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47457 Sync from coreutils.
47458 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47459 (Time of day items): Mention the possibility of leap seconds.
47460 Problem reported by Dr. David Alan Gilbert.
47462 2006-01-09 Jim Meyering <jim@meyering.net>
47464 Sync from coreutils.
47466 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47468 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47470 * lib/modechange.c (mode_compile): Reject an invalid mode string
47471 that starts with an octal digit. From Andreas Gruenbacher.
47473 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47474 and dup to open_safer and dup_safer, respectively.
47475 (openat_permissive): Fix typo in comment.
47477 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47478 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47479 (_): Remove; no longer needed.
47480 (openat): Renamed from rpl_openat; no need for rpl_openat
47481 since openat.h renames openat for us.
47482 Replace most of the body with a call to openat_permissive,
47483 to avoid duplicate code.
47484 Port to (probably hypothetical) environments were mode_t is
47486 (openat_permissive): Require mode arg, so that we can check
47487 types better. Put it just after flags. Change cwd failure
47488 indicator from pointer-to-bool to pointer-to-errno-value.
47489 All callers changed.
47490 Invoke openat_save_fail and/or openat_restore_fail if
47491 cwd_errno is null, so that openat can call us.
47492 (openat_permissive, fdopendir, fstatat, unlinkat):
47493 Simplify errno handling to avoid some duplicate code,
47494 as it's OK to set errno on success.
47495 * lib/openat.h: Revamp code so that function macros depend on
47496 __OPENAT_PREFIX only, not also on AT_FDCWD.
47497 (openat_ro): Remove. Caller changed to use openat_permissive.
47498 (openat_permissive): Now a macro, if not a function.
47499 (openat_restore_fail, openat_save_fail): Now always functions,
47500 since mkdirat needs them even if __OPENAT_PREFIX is defined.
47502 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47504 * lib/mkdirat.c: Include openat-priv.h.
47505 Remove definitions of macros defined therein.
47506 * lib/openat.c: Likewise.
47508 * lib/mkdirat.c (mkdirat): New file and function.
47509 * lib/openat.h (mkdirat): Declare.
47511 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47513 * lib/openat.h (openat_permissive): Declare.
47514 (openat_ro): Define.
47516 * lib/openat.c (EXPECTED_ERRNO): New macro.
47517 (openat_permissive): New function -- used in remove.c rewrite.
47518 (all functions): Set errno just before returning, only if there
47519 was an actual failure.
47520 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47522 Emulate openat-family functions using Linux's procfs, if possible.
47523 Idea and some code based on Ulrich Drepper's glibc changes.
47525 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47526 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47527 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47528 before falling back on save_cwd and restore_cwd.
47529 (fdopendir, fstatat, unlinkat): Likewise.
47531 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47532 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47534 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47535 as second argument to va_arg. Otherwise, some versions of gcc
47536 warn that `if this code is reached, the program will abort'.
47538 2006-01-09 Jim Meyering <jim@meyering.net>
47540 Sync from coreutils.
47541 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47542 Require openat-priv.h.
47544 2006-01-09 Bruno Haible <bruno@clisp.org>
47546 * modules/strnlen (Include): Use strnlen.h.
47548 2006-01-09 Bruno Haible <bruno@clisp.org>
47550 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47552 2006-01-09 Bruno Haible <bruno@clisp.org>
47554 * lib/sysexit_.h (EX_OK): New macro.
47555 Suggested by Martin Lambers <marlam@marlam.de>.
47557 2006-01-09 Bruno Haible <bruno@clisp.org>
47559 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47560 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47562 2006-01-09 Bruno Haible <bruno@clisp.org>
47564 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47567 2006-01-09 Bruno Haible <bruno@clisp.org>
47569 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47570 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47571 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47572 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47574 2006-01-09 Bruno Haible <bruno@clisp.org>
47576 * build-aux/javacomp.sh.in: New file, moved from lib/.
47577 * modules/javacomp-script (Files): Update.
47578 (configure.ac): Add AC_CONFIG_FILES invocation.
47579 (EXTRA_DIST): Remove variable.
47581 * build-aux/javaexec.sh.in: New file, moved from lib/.
47582 * modules/javaexec (Files): Update.
47583 (configure.ac): Add AC_CONFIG_FILES invocation.
47584 (EXTRA_DIST): Remove javaexec.sh.in.
47586 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47587 * modules/csharpcomp-script (Files): Update.
47588 (configure.ac): Add AC_CONFIG_FILES invocation.
47589 (EXTRA_DIST): Remove variable.
47591 * build-aux/csharpexec.sh.in: New file, moved from lib/.
47592 * modules/csharpexec (Files): Update.
47593 (configure.ac): Add AC_CONFIG_FILES invocation.
47594 (EXTRA_DIST): Remove csharpexec.sh.in.
47596 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47598 Sync from coreutils.
47600 Add POSIX ACL support
47601 * lib/acl.h (copy_acl, set_acl): Add declarations.
47602 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47603 systems other than Linux.
47604 (chmod_or_fchmod): New function: use fchmod when possible,
47605 and chmod otherwise.
47606 (file_has_acl): Add a POSIX ACL implementation, with a
47607 Linux-specific subcase.
47608 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47609 S_ISVTX from one file to another. Fall back to fchmod/chmod when
47610 acls are unsupported.
47611 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47612 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
47615 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47617 Sync from coreutils.
47618 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47620 2006-01-07 Bruno Haible <bruno@clisp.org>
47622 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47625 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47627 * lib/strftime.c (tzname): Don't declare if it is already #defined.
47628 Problem reported for Mingw by Mark Junker.
47630 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47632 * README: Gnulib normally doesn't generate a tarball.
47634 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
47636 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47637 long int, not int, for nanosecond counts, so that people who are
47638 used to POSIX struct timespec won't be surprised. Reported by Jim
47641 2005-12-28 Bruno Haible <bruno@clisp.org>
47643 * build-aux/config.rpath: Update from GNU gettext.
47645 2005-12-16 Jim Meyering <jim@meyering.net>
47647 * modules/fprintftime: New module.
47648 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47650 2005-12-16 Jim Meyering <jim@meyering.net>
47652 * m4/fprintftime.m4: New file.
47654 2005-12-16 Jim Meyering <jim@meyering.net>
47656 * lib/fprintftime.c, lib/fprintftime.h: New files.
47658 2005-12-15 Simon Josefsson <jas@extundo.com>
47660 * modules/socklen (configure.ac): Fix M4 macro name, to align with
47663 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47665 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47666 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47668 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47670 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47671 * lib/argp-help.c (fill_in_uparams): Check if the constructed
47672 struct uparams is valid. Fall back to the default values if it is
47675 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47677 * modules/argp (Files): Add argp-pin.c
47678 (Depends-on): dirname
47679 (lib_SOURCES): Add argp-pin.c
47681 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47683 * m4/argp.m4: Check if program_invocation_name and
47684 program_invocation_short_name are declared and define appropriate
47685 macros if they are not.
47687 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47689 * lib/argp-help.c (__argp_base_name): New function
47690 (__argp_short_program_name): Rewrite using __argp_base_name
47691 * lib/argp-namefrob.h: Define program_invocation_name and
47692 program_invocation_short_name if requested
47693 (__argp_base_name): Add prototype
47694 * lib/argp-parse.c (argp_def): Use gettext wrappers
47695 (argp_default_parser): Use __argp_base_name
47696 * lib/argp-pin.c: New file. Defines program_invocation_name and
47697 program_invocation_short_name on systems that lack them.
47699 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47701 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47702 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47703 porting problem reported by Georg Schwarz in
47704 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47706 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47708 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47709 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47710 porting problem reported by Georg Schwarz in
47711 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47713 2005-12-05 Bruno Haible <bruno@clisp.org>
47715 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47716 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47717 Reported by Mark Junker <mjscod@gmx.de>.
47719 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
47721 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47722 Use implementation from Albert Chin, with some
47723 comments/corrections by Stepan Kasal and myself.
47725 2005-12-02 Bruno Haible <bruno@clisp.org>
47727 * gnulib-tool (func_import): Accept GPLed build tool modules when
47729 * modules/csharpcomp-script: New file.
47730 * modules/csharpcomp: Depend on it.
47731 * modules/javacomp-script: New file.
47732 * modules/javacomp: Depend on it.
47733 Suggested by Simon Josefsson.
47735 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
47737 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47738 statement, to work around an HP-UX 10.20 compiler bug reported by
47741 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47743 * modules/savedir (Depends-on): Add openat.
47745 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47747 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47748 (uintmax_t) [defined uintmax_t]: Do not declare.
47749 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47750 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47751 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
47752 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47753 sake of portability to weird hosts that C allows (though we don't
47754 know of any practical examples).
47756 * lib/savedir.h (fdsavedir): New decl.
47757 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47758 contains most of the former guts of savedir.
47759 (savedir): Use savedirstream.
47760 Include "openat.h".
47762 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
47764 * modules/obstack (Files): Add m4/ulonglong.m4.
47765 Problem reported by Davide Angelocola.
47767 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
47769 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47770 coreutils no longer futzes with rounding modes.
47772 2005-11-14 Jim Meyering <jim@meyering.net>
47774 * lib/mkstemp-safer.c: Include <config.h>, required for possible
47775 replacement of mkstemp.
47777 2005-11-10 Simon Josefsson <jas@extundo.com>
47779 * lib/readline.c: Remove EOL.
47781 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47783 * modules/gethrxtime (Depends-on): Add gettime.
47785 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47787 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47788 or gettimeofday; no longer needed.
47790 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47792 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47794 (gethrxtime) [! (HAVE_NANOUPTIME
47795 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47796 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47797 our own approximation.
47799 2005-11-08 Eric Blake <ebb9@byu.net>
47801 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47803 2005-11-08 Eric Blake <ebb9@byu.net>
47805 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47807 2005-11-04 Bruno Haible <bruno@clisp.org>
47809 * gnulib-tool: Implement --update mode.
47811 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47813 Fix porting problem reported by Theodoros V. Kalamatianos.
47814 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47815 Don't assume that futimes failing means we must fail.
47817 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47819 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47820 variables to suggest the intended function of the PATH_MAX check.
47822 2005-10-30 Kean Johnston <jkj@sco.com>
47824 Trivial changes to support SCO systems.
47825 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47827 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47828 where __ptr is null when no I/O is pending.
47830 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
47832 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47833 leave errno alone. Problem reported by Dmitry V. Levin.
47835 2005-10-28 Simon Josefsson <jas@extundo.com>
47837 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47840 * tests/test-gc-md2.c, tests/test-md2.c: New files.
47842 * modules/md2, modules/md2-tests: New files.
47844 2005-10-28 Simon Josefsson <jas@extundo.com>
47846 * m4/inet_ntop.m4: More tests.
47848 * m4/gc-md2.m4, md2.m4: New file.
47850 2005-10-28 Simon Josefsson <jas@extundo.com>
47852 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47853 "restrict" keywords, as per POSIX. Protect the function
47854 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47855 Don't use K&R prototypes. Check the sprintf return values.
47856 Re-define EAFNOSUPPORT if not present. Indent.
47858 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47859 suggested by Bruno Haible <bruno@clisp.org>.
47861 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47863 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47865 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47868 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47870 * lib/md2.h, lib/md2.c: New files.
47872 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47874 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47875 errno alone. Problem reported by Frederic Jolliton.
47877 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47879 * modules/verify (License): Change from GPL to LGPL. This is a
47880 tiny module and there are apparently near-equivalents that are
47881 under the BSD license.
47883 2005-10-24 Simon Josefsson <jas@extundo.com>
47885 * modules/sha1: Relicense to LGPL.
47887 2005-10-24 Simon Josefsson <jas@extundo.com>
47889 * lib/md4.h: Shrink buffer size, now that we changed the type.
47891 2005-10-23 Simon Josefsson <jas@extundo.com>
47893 * gnulib-tool (func_import): Fix --tests-base.
47895 2005-10-22 Simon Josefsson <jas@extundo.com>
47897 * modules/arcfour (Depends-on): Need stdint.
47899 2005-10-22 Simon Josefsson <jas@extundo.com>
47901 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47902 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47904 2005-10-22 Simon Josefsson <jas@extundo.com>
47906 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47907 suggested by Bruno Haible <bruno@clisp.org>.
47909 2005-10-22 Simon Josefsson <jas@extundo.com>
47911 * lib/crc.h: Include stddef.h, for size_t.
47913 2005-10-22 Simon Josefsson <jas@extundo.com>
47915 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47916 arcfour_context struct (simplify test vector testing in GNU
47919 2005-10-21 Simon Josefsson <jas@extundo.com>
47921 * modules/des, modules/des-tests: New files.
47923 * modules/gc-des, modules/gc-des-tests: New files.
47925 * tests/test-des.c, tests/test-gc-des.c: New file.
47927 2005-10-21 Simon Josefsson <jas@extundo.com>
47929 * modules/arctwo, modules/arctwo-tests: New files.
47931 * tests/test-arctwo.c: New file.
47933 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47935 * tests/test-gc-arctwo.c: New file.
47937 2005-10-21 Simon Josefsson <jas@extundo.com>
47939 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47940 Bruno Haible <bruno@clisp.org>.
47942 * m4/gc-des.m4: New file.
47944 2005-10-21 Simon Josefsson <jas@extundo.com>
47946 * m4/arctwo.m4: New file.
47948 * m4/gc-arctwo.m4: New file.
47950 2005-10-21 Simon Josefsson <jas@extundo.com>
47952 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47955 2005-10-21 Simon Josefsson <jas@extundo.com>
47957 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47960 * lib/hmac-sha1.c (hmac_sha1): Likewise.
47962 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47963 Bruno Haible <bruno@clisp.org>.
47965 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47968 2005-10-21 Simon Josefsson <jas@extundo.com>
47970 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47972 2005-10-21 Simon Josefsson <jas@extundo.com>
47974 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47976 2005-10-21 Simon Josefsson <jas@extundo.com>
47978 * lib/des.h, lib/des.c: New files.
47980 * lib/gc-gnulib.c: Support DES.c
47982 2005-10-21 Simon Josefsson <jas@extundo.com>
47984 * lib/arctwo.h, lib/arctwo.c: New files.
47986 * lib/gc-gnulib.c: Support ARCTWO.
47988 2005-10-21 Simon Josefsson <jas@extundo.com>
47990 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47991 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47993 2005-10-21 Simon Josefsson <jas@extundo.com>
47995 * gnulib-tool (func_import, func_create_testdir): Define automake
47996 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47997 Makefile.am snippet),
47998 suggested by Bruno Haible <bruno@clisp.org>.
48000 * modules/gc (Makefile.am): Use it.
48002 2005-10-21 Bruno Haible <bruno@clisp.org>
48004 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48007 2005-10-19 Simon Josefsson <jas@extundo.com>
48009 * tests/test-gc-rijndael.c: New file.
48011 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48013 2005-10-19 Simon Josefsson <jas@extundo.com>
48015 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48018 2005-10-19 Simon Josefsson <jas@extundo.com>
48020 * tests/test-gc-arcfour.c: New file.
48022 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48024 2005-10-19 Simon Josefsson <jas@extundo.com>
48026 * modules/gc-md4, modules/gc-md4-tests: New file.
48028 * tests/test-gc-md4.c: New file.
48030 2005-10-19 Simon Josefsson <jas@extundo.com>
48032 * m4/gc-md4.m4: New file.
48034 2005-10-19 Simon Josefsson <jas@extundo.com>
48036 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48037 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48040 2005-10-19 Simon Josefsson <jas@extundo.com>
48042 * m4/gc-arcfour.m4: New file.
48044 * m4/gc-rijndael.m4: New file.
48046 2005-10-19 Simon Josefsson <jas@extundo.com>
48048 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48050 2005-10-19 Simon Josefsson <jas@extundo.com>
48052 * lib/gc-gnulib.c: Support ARCFOUR.
48054 2005-10-19 Simon Josefsson <jas@extundo.com>
48056 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48059 * lib/gc.h: Add ECB enum type.
48061 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48063 2005-10-18 Simon Josefsson <jas@extundo.com>
48065 * tests/test-md5.c: New file.
48067 * modules/md5-tests: New file.
48069 2005-10-18 Simon Josefsson <jas@extundo.com>
48071 * tests/test-md4.c: New file.
48073 * modules/md4, modules/md4-tests: New files.
48075 2005-10-18 Simon Josefsson <jas@extundo.com>
48077 * m4/md4.m4: New file.
48079 2005-10-18 Simon Josefsson <jas@extundo.com>
48081 * lib/md4.h, lib/md4.c: New files, based on md5.?.
48083 2005-10-17 Stepan Kasal <kasal@ucw.cz>
48085 * gnulib-tool (func_create_testdir): Omit the second check whether
48086 BUILT_SOURCES in nonempty.
48088 2005-10-17 Simon Josefsson <jas@extundo.com>
48090 * tests/test-rijndael.c: New file.
48092 2005-10-17 Simon Josefsson <jas@extundo.com>
48094 * modules/sha1: Depend on stdint instead of md5.
48096 * modules/md5: Depend on stdint, remove uint32_t.
48098 2005-10-17 Simon Josefsson <jas@extundo.com>
48100 * modules/gc-sha1-tests: New file.
48102 * tests/test-gc-sha1.c: New file.
48104 2005-10-17 Simon Josefsson <jas@extundo.com>
48106 * m4/md5.m4: Remove call to uint32_t.m4.
48108 2005-10-17 Simon Josefsson <jas@extundo.com>
48110 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48112 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48115 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
48117 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
48119 2005-10-17 Simon Josefsson <jas@extundo.com>
48121 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48123 2005-10-17 Simon Josefsson <jas@extundo.com>
48125 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48127 2005-10-17 Simon Josefsson <jas@extundo.com>
48129 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48131 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48133 2005-10-17 Bruno Haible <bruno@clisp.org>
48135 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48136 that it can also be used in a test.
48138 2005-10-16 Bruno Haible <bruno@clisp.org>
48140 * gnulib-tool (func_emit_tests_Makefile_am): Also define
48141 TESTS_ENVIRONMENT, so that individual tests can augment it.
48143 * gnulib-tool (func_create_testdir): Use an intermediate target for
48144 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48145 macros, like $(ALLOCA_H), which cannot be passed through the command
48148 2005-10-15 Simon Josefsson <jas@extundo.com>
48150 * modules/rijndael-tests: New file.
48152 * modules/rijndael: New file.
48154 2005-10-15 Simon Josefsson <jas@extundo.com>
48156 * m4/rijndael.m4: New file.
48158 2005-10-15 Simon Josefsson <jas@extundo.com>
48160 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48162 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48164 2005-10-14 Simon Josefsson <jas@extundo.com>
48166 * tests/test-arcfour.c: New file.
48168 * modules/arcfour, modules/arcfour-tests: New files.
48170 2005-10-14 Simon Josefsson <jas@extundo.com>
48172 * m4/arcfour.m4: New file.
48174 2005-10-14 Simon Josefsson <jas@extundo.com>
48176 * lib/arcfour.h, lib/arcfour.c: New files.
48178 2005-10-14 Roland McGrath <roland@redhat.com>
48180 Import from libc. [BZ #1331]
48181 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48183 Reported by Matej Vela <vela@debian.org>.
48185 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48187 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48188 include <wchar.h>; no longer needed.
48190 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
48192 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48194 2005-10-14 Jakub Jelinek <jakub@redhat.com>
48195 and Ulrich Drepper <drepper@redhat.com>
48198 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48199 instead of inline stream orientation test and two separate
48200 function calls. Pay no attention to USE_IN_LIBIO.
48202 2005-10-13 Simon Josefsson <jas@extundo.com>
48204 * modules/gc-hmac-md5-tests: New file.
48206 * tests/test-gc-hmac-sha1.c: New file.
48208 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48210 * modules/gc-hmac-md5-tests: New file.
48212 * tests/test-gc-md5.c: New file.
48214 * modules/gc-md5-tests: New file.
48216 2005-10-13 Simon Josefsson <jas@extundo.com>
48218 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48219 Move memory allocation outside of loop.
48221 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
48223 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48224 intermediate directory is in a read-only file system. Problem
48225 reported by Eric Blake.
48227 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
48229 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48231 2005-10-12 Simon Josefsson <jas@extundo.com>
48233 * tests/test-hmac-sha1.c: New file.
48235 * modules/hmac-sha1-tests: New file.
48237 * modules/hmac-sha1: New file.
48239 2005-10-12 Simon Josefsson <jas@extundo.com>
48241 * modules/gc-sha1: New file.
48243 2005-10-12 Simon Josefsson <jas@extundo.com>
48245 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48247 * tests/test-gc-pbkdf2-sha1.c: New file.
48249 2005-10-12 Simon Josefsson <jas@extundo.com>
48251 * modules/gc-md5, modules/gc-hmac-md5: New files.
48253 * modules/gc (Files): Remove md5, memxor and hmac files.
48255 2005-10-12 Simon Josefsson <jas@extundo.com>
48257 * m4/gc-pbkdf2-sha1.m4: New file.
48259 * m4/gc-hmac-sha1.m4: New file.
48261 * m4/gc-sha1: New file.
48263 * m4/hmac-sha1.m4: New file.
48265 2005-10-12 Simon Josefsson <jas@extundo.com>
48267 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48269 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48271 2005-10-12 Simon Josefsson <jas@extundo.com>
48273 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48274 suggested by Bruno Haible <bruno@clisp.org>.
48276 2005-10-12 Simon Josefsson <jas@extundo.com>
48278 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48280 2005-10-12 Simon Josefsson <jas@extundo.com>
48282 * lib/gc-pbkdf2-sha1.c: New file.
48284 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48286 2005-10-12 Simon Josefsson <jas@extundo.com>
48288 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48290 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48292 2005-10-12 Simon Josefsson <jas@extundo.com>
48294 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48295 GC_USE_HMAC_MD5, respectively.
48297 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48298 (gc_md5): Fix typo.
48300 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48302 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48304 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48306 2005-10-12 Bruno Haible <bruno@clisp.org>
48308 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48309 Reported by Stepan Kasal <kasal@ucw.cz>.
48311 2005-10-11 Simon Josefsson <jas@extundo.com>
48313 * tests/test-crc.c: New file.
48315 * modules/crc, modules/crc-tests: New files.
48317 2005-10-11 Simon Josefsson <jas@extundo.com>
48319 * m4/crc.m4: New file.
48321 2005-10-11 Simon Josefsson <jas@extundo.com>
48323 * lib/gc.h: Add gc_hash and gc_hash_buffer.
48325 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
48327 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48329 2005-10-11 Simon Josefsson <jas@extundo.com>
48331 * lib/crc.h, lib/crc.c: New files.
48333 * lib/gc.h (gc_hash_buffer): Add doc.
48335 2005-10-11 Bruno Haible <bruno@clisp.org>
48337 * modules/c-strcasestr: New file.
48338 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48340 2005-10-11 Bruno Haible <bruno@clisp.org>
48342 * modules/c-strcase: New file.
48343 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48345 2005-10-11 Bruno Haible <bruno@clisp.org>
48347 * lib/strcasecmp.c: Include limits.h.
48348 (strcasecmp): Avoid integer overflow on exotic platforms.
48349 * lib/strncasecmp.c: Include limits.h.
48350 (strncasecmp): Avoid integer overflow on exotic platforms.
48351 Reported by Paul Eggert.
48353 2005-10-11 Bruno Haible <bruno@clisp.org>
48355 * lib/c-strcasestr.h: New file, from GNU gettext.
48356 * lib/c-strcasestr.c: New file, from GNU gettext.
48358 2005-10-11 Bruno Haible <bruno@clisp.org>
48360 * lib/c-strcase.h: New file, from GNU gettext.
48361 * lib/c-strcasecmp.c: New file, from GNU gettext.
48362 * lib/c-strncasecmp.c: New file, from GNU gettext.
48364 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48366 * modules/mempcpy (License): GPL -> LGPL.
48367 * modules/strchrnul (License): Likewise.
48368 * modules/sysexits (License): Likewise.
48370 2005-10-08 Simon Josefsson <jas@extundo.com>
48372 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48374 2005-10-07 Simon Josefsson <jas@extundo.com>
48376 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48378 2005-10-06 Simon Josefsson <jas@extundo.com>
48380 * tests/test-hmac-md5.c: New file.
48382 * modules/hmac-md5-tests: New file.
48384 * modules/hmac-md5: New file.
48386 2005-10-06 Simon Josefsson <jas@extundo.com>
48388 * m4/hmac-md5.m4: New file.
48390 * m4/memxor.m4: Require gl_C_RESTRICT.
48392 2005-10-06 Simon Josefsson <jas@extundo.com>
48394 * lib/memxor.c (memxor): Avoid casts and warnings.
48396 2005-10-06 Simon Josefsson <jas@extundo.com>
48398 * lib/hmac-md5.c: New file.
48400 * lib/hmac.h: New file.
48402 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48404 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48405 promotes to int, not unsigned int, to catch the AIX 5.3
48408 2005-10-05 Simon Josefsson <jas@extundo.com>
48410 * modules/memxor: New file.
48412 * modules/iconv (Files): Move config.rpath to havelib, it is used
48415 * modules/havelib (Files): Add config.rpath.
48417 2005-10-05 Simon Josefsson <jas@extundo.com>
48419 * m4/memxor.m4: New file.
48421 2005-10-05 Simon Josefsson <jas@extundo.com>
48423 * lib/memxor.c (memxor): Fix compiler error.
48425 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48426 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48428 * lib/memxor.h, lib/memxor.c: New files.
48430 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48431 we assume all systems have it, suggested by Jim Meyering
48432 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48433 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48434 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48437 2005-10-05 Simon Josefsson <jas@extundo.com>
48439 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48441 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48443 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48444 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48445 needed, since the source code now assumes these .h files.
48447 2005-10-05 Derek Price <derek@ximbiot.com>
48449 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48451 2005-10-05 Bruno Haible <bruno@clisp.org>
48453 * modules/stdint (License): Change to LGPL.
48455 2005-10-04 Simon Josefsson <jas@extundo.com>
48457 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48458 D. Baushke" <mdb@gnu.org>.
48460 2005-10-04 Bruno Haible <bruno@clisp.org>
48462 * lib/verify.h (verify_true): Provide alternative definition for C++.
48464 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48466 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48467 (SSIZE_MAX): New macro, if not already defined.
48468 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48471 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48473 Sync from coreutils.
48474 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48475 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48476 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48477 ULLONG_MAX doesn't work with 2.7.2.1.
48479 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48481 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48484 * modules/exclude (Depends-on): Depend on verify.
48485 * modules/strtoimax (Depends-on): Likewise.
48486 * modules/utimecmp (Depends-on): Likewise.
48488 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48490 * lib/exclude.c: Include verify.h.
48491 (verify): Remove. All callers changed to use verify.h's version.
48492 * lib/strtoimax.c: Likewise.
48493 * lib/utimecmp.c: Likewis.e
48495 Sync from coreutils.
48496 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48497 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48498 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48499 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
48500 bother returning ENOSYS if settimeofday or stime fails; just let
48501 them return whatever errno they want to return.
48502 * lib/utimens.c: Include unistd.h, for dup2.
48503 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48504 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48506 2005-10-02 Jim Meyering <jim@meyering.net>
48508 Sync from coreutils.
48509 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48510 from glibc-2.2.5 that fails for read-only files.
48512 2005-10-02 Jim Meyering <jim@meyering.net>
48514 Sync from coreutils.
48515 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48516 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48517 `#if HAVE_CONFIG_H'.
48518 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48519 Remove AT_FDCWD test.
48520 Do not consume the fd unless successful.
48521 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48522 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48523 block, so that we don't even try to compile it if settimeofday is
48524 available. This works around a compilation failure on OSF1 V5.1,
48525 due to stime requiring a `long int*' while tv_sec is `int'.
48527 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48529 Sync from coreutils.
48530 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48531 against `yes', rather than just testing for nonempty.
48533 2005-10-01 Simon Josefsson <jas@extundo.com>
48535 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48538 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48539 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48540 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48541 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48542 Check if struct addrinfo is declared.
48544 2005-10-01 Simon Josefsson <jas@extundo.com>
48546 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48547 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48548 AI_* and EAI_* definitions. Protect function declarations.
48550 2005-10-01 Jim Meyering <jim@meyering.net>
48552 Sync from coreutils.
48554 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48555 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48556 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48557 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48558 in the inet and nsl libraries. Required on Solaris 5.7.
48560 2005-10-01 Jim Meyering <jim@meyering.net>
48562 Sync from coreutils.
48563 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48564 in the inet and nsl libraries. Required on Solaris 5.7.
48566 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
48568 * lib/getdelim.c (getdelim): Remove unused variables.
48570 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48572 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48573 so that the code works even with ancient cpp. Portability problem
48574 with GCC 2.7.2.1 reported by Thomas M.Ott.
48576 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48578 * modules/regex (Depends-on): Add strcase.
48580 * modules/gethostname (Licence): Change from GPL to LGPL, since
48581 gethostname.c is a trivial implementation of a standard library
48583 * modules/poll (License): Change from GPL to LGPL, since it's
48584 derived from LGPL code.
48586 2005-09-27 Jim Meyering <jim@meyering.net>
48588 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48591 * lib/intprops.h (signed_type_or_expr__): Define.
48592 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48593 for unsigned types.
48595 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
48597 * lib/verify.h (verify_expr): Remove, replacing with:
48598 (verify_true): New macro that returns true instead of void.
48599 (verify_type__): Remove.
48600 (verify): Use verify_true rather than verify_type__.
48602 2005-09-26 Bruno Haible <bruno@clisp.org>
48604 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48606 (lib_SOURCES): Remove mbchar.c.
48607 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48608 (Files): Add m4/mbrtowc.m4.
48609 * modules/mbiter: Likewise.
48610 * modules/mbuiter: Likewise.
48612 2005-09-26 Bruno Haible <bruno@clisp.org>
48614 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48615 compile mbchar.c if they are not both present.
48616 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48617 * m4/mbiter.m4 (gl_MBITER): Likewise.
48618 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48619 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48620 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48622 2005-09-25 Jim Meyering <jim@meyering.net>
48624 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48625 also uses socklen_t.
48627 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
48629 * lib/utimens.c (ENOSYS): Define if not already defined.
48630 (futimens): Support having a null PATH if the file descriptor
48633 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48635 (__attribute): Define to empty unless GCC 3.1 or later.
48636 This works around a core dump on OpenBSD 3.4, which has GCC
48637 2.95.3, which dumps core when given __attribute__(()). It also
48638 simplifies other tests, since we really don't want to bother with
48639 worrying about which ancient version of GCC supported what.
48640 Original problem reported by Yoann Vandoorselaere, with part of
48641 the fix suggested by Derek Price.
48643 2005-09-24 Jim Meyering <jim@meyering.net>
48645 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48646 so we can once again use a positive bitfield width of 1 -- now we
48647 don't have to explain why we were using a bitfield width of 2.
48649 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48651 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48652 and similarly for the other external symbols. Problem reported
48655 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48656 bug reported by Jim Meyering.
48658 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48659 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48660 not needed, since socklen is a prerequisite module.
48662 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48664 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48665 Problem reported by Eric Blake.
48666 (getaddrinfo): Initialize se so that it's not garbage.
48667 Redo internal storage allocation so that it doesn't make unportable
48668 assumptions about alignment.
48671 * lib/utimens.c (futimens): Use futimesat if available.
48672 Prefer it to futimes since it doesn't have the futimes bug.
48674 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48675 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48676 Instead, declare a function that returns a pointer to an array,
48677 and use verify_type__ to declare the size of the array.
48678 Problem and germ of a solution reported by Bruno Haible.
48679 (verify_type__): Use 2, not 1, for bitfield size, to avoid
48680 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
48682 2005-09-23 Jim Meyering <jim@meyering.net>
48684 Sync from coreutils.
48685 Correct build failure (socklen_t not defined) on at least
48686 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48687 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48689 2005-09-23 Jim Meyering <jim@meyering.net>
48691 * modules/getaddrinfo (Depends-on): Add socklen.
48693 2005-09-23 Bruno Haible <bruno@clisp.org>
48695 * tests/test-verify.c: New file.
48697 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48699 Sync from coreutils.
48701 * modules/argmatch (Depends-on): Add verify.
48702 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48704 * modules/save-cwd (Depends-on): Likewise.
48706 * modules/openat (Files): Add lib/openat-die.c.
48707 (Depends-on): Remove error, exitfail.
48710 * modules/verify: New file.
48711 * MODULES.html.sh (Diagnostics <assert.h>): New section,
48712 with "verify" module.
48714 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48716 Sync from coreutils.
48718 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48719 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48720 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48721 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48722 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48723 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48724 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48725 Don't bother checking for string.h, stdlib.h, unistd.h.
48726 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48727 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48729 * m4/jm-macros.m4 (gl_MACROS): Likewise.
48730 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48732 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48733 (gl_GETDATE): Use it.
48735 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48737 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48739 Sync from coreutils.
48741 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48743 * lib/argmatch.h: Include verify.h
48744 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48745 (ARGMATCH_ASSERT): Remove; unused.
48746 * lib/canonicalize.c: Assume STDC_HEADERS.
48747 * lib/exclude.c: Include "strcase.h".
48748 * lib/regex_internal.h [!defined _LIBC]: Likewise.
48749 * lib/getusershell.c: Include stdio--.h rather than stdio.h
48751 (getusershell): Call fopen, not fopen_safer.
48752 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48753 Do not include unistd-safer.h.
48754 (save_cwd): Don't call fd_safer; no longer needed
48755 now that we include fcntl--.h.
48757 * lib/getdate.y (relative_time): New type.
48758 (RELATIVE_TIME_0): New constant.
48759 (parser_control): Use relative_time instead of doing it ourselves.
48760 (%union): Add new relative_time rel member.
48761 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48763 (relunit, relunit_snumber): Now of type rel.
48764 (zone, rel, relunit, get_date): Adjust to above changes.
48766 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48767 Do not include unistd-safer.h.
48768 (getloadavg): Don't call fd_safer; no longer needed
48769 now that we include fcntl--.h.
48771 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48772 (make_dir_parents): Treat ENOSYS like EEXIST.
48774 Improve quality of diagnostics on restore_cwd failure.
48775 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
48776 (make_dir_parents): Last arg is now int * (for errno), not bool *.
48777 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48778 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48779 each time through the loop. Do not diagnose restore_cwd failure;
48780 that is the caller's job (and perhaps the caller does not care).
48782 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48783 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48784 If the file already exists but is not a directory, don't bother
48785 to try to make its parents.
48786 Close potential file descriptor leak if we can't chdir("/") (!).
48787 Don't always return true if chdir($PWD) fails; return true only
48788 if the requested action was done successfully (except for the
48790 Don't log final directory unless we actually made it.
48791 Refactor to avoid duplicate code to fix up permissions.
48792 Don't attempt to fix up parent permissions if chdir($PWD) fails.
48794 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48795 to make it a bit faster and (I hope) clearer.
48796 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48797 Fix bug in formats like %2N.
48799 * lib/verify.h: New file.
48801 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48803 Sync from coreutils.
48804 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48806 2005-09-22 Jim Meyering <jim@meyering.net>
48808 Sync from coreutils.
48810 * m4/lstat.m4 (gl_FUNC_LSTAT):
48811 Use AC_LIBSOURCES to require lstat.c and lstat.h.
48812 Remove obsolete comment.
48813 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48814 * m4/xstrtod.m4: Likewise.
48816 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48818 2005-09-22 Jim Meyering <jim@meyering.net>
48820 Sync from coreutils.
48822 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48824 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48825 the .tm_year member, since otherwise gcc-4.0 would now warn about
48826 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48828 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48829 order to avoid an unsuppressible warning from gcc on 64-bit systems.
48831 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48832 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48833 when run in a time zone for which daylight savings time is in effect
48834 for the starting date.
48836 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48837 stop us from restricting permissions of just-created absolute-named
48839 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48840 to restore initial working directory.
48841 * lib/mkdir-p.c (make_dir_parents): New parameter:
48842 different_working_dir, to tell caller if/when we change the working
48843 directory and are unable to return to the initial one.
48844 * lib/mkdir-p.h (make_dir_parents): Update prototype.
48845 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48846 `return false'. This fixes a bug introduced on 2004-07-30.
48848 * lib/openat.c (fdopendir): Be sure to close the supplied
48849 file descriptor before returning. This makes our replacement
48850 implementation a little closer to Solaris's, where fdopendir
48851 ties the file descriptor to the returned DIR* pointer.
48852 * lib/openat.c (unlinkat): New function.
48853 * lib/openat.h (unlinkat): Add prototype.
48854 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48855 (openat_restore_fail): Rename from openat_restore_die.
48856 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48858 Provide an alternative to exiting immediately upon save_cwd or
48859 restore_cwd failure. Now, an application can arrange e.g.,
48860 to perform a longjump in that case.
48861 * lib/openat.c: Include dirname.h.
48862 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48863 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48864 and openat_restore_die rather than calling error directly.
48865 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48867 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48868 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48871 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48872 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48873 int utc, int nanoseconds);
48875 date should not have to allocate a megabyte of virtual memory to
48876 handle a format argument like +%1048575T. When implemented with
48877 strftime, it must allocate such a buffer, use strftime to fill it
48878 in, print it, then free it.
48879 With fprintftime, it simply prints everything and exits.
48880 With no need for memory allocation, that's one fewer way to fail.
48881 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48882 optional field width, not before, so we accept %9:z, not %:9z.
48883 (my_strftime): Be sure to use L_('x') for literals.
48885 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48886 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48887 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48888 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48889 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48890 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48891 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48892 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48893 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48894 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48895 * lib/xgethostname.c, lib/xreadlink.c:
48896 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48898 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48899 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48900 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48901 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48902 and don't include <sys/file.h>).
48904 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48906 Sync from coreutils.
48908 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48909 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48910 [!LDAV_DONE]: Avoid unused variable warning.
48912 2005-09-21 Bruno Haible <bruno@clisp.org>
48914 * lib/unicodeio.h (unicode_to_mb): New declaration.
48916 2005-09-20 Derek Price <derek@ximbiot.com>
48918 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48921 2005-09-20 Bruno Haible <bruno@clisp.org>
48923 * gnulib-tool: Remove trailing slashes from the values specified for
48924 --source-base, --m4-base, --tests-base, --aux-dir.
48925 Suggested by Simon Josefsson <jas@extundo.com>.
48927 2005-09-20 Bruno Haible <bruno@clisp.org>
48929 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48930 func_modules_to_filelist, func_import, func_create_testdir): Make all
48931 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48932 change when gnulib-tool is invoked in a different locale.
48934 2005-09-19 Simon Josefsson <jas@extundo.com>
48936 * m4/socklen.m4: Fix typo.
48938 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48940 Use a consistent style for including <config.h>.
48941 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48942 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48943 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48944 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48945 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48946 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48947 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48948 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48949 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48950 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48951 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48952 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48953 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48954 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48955 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48956 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48957 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48958 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48959 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48960 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48961 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48962 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48963 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48964 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48965 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48966 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48967 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48968 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48969 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48970 lib/xstrtoumax.c, lib/yesno.c:
48971 Standardize inclusion of config.h.
48972 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48973 lib/inttostr.h: Removed inclusion of config.h from header files.
48974 * lib/inttostr.c: Adjusted in-tree users.
48975 * lib/timespec.h: Remove superfluous warning to include config.h.
48976 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48977 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48978 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48979 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48980 config.h with HAVE_CONFIG_H.
48982 2005-09-19 Jim Meyering <jim@meyering.net>
48984 * modules/pathmax (License): Change to LGPL.
48986 2005-09-19 Derek Price <derek@ximbiot.com>
48988 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48990 2005-09-19 Bruno Haible <bruno@clisp.org>
48992 * gnulib-tool (import): Provide default for --tests-base.
48994 2005-09-19 Bruno Haible <bruno@clisp.org>
48996 * doc/quote.texi: New file, extracted from gnulib.texi.
48997 * doc/ctime.texi: New file, extracted from gnulib.texi.
48998 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48999 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49000 * doc/gnulib.texi: Include them.
49002 2005-09-18 Bruno Haible <bruno@clisp.org>
49005 * gnulib-tool (func_readlink): New function.
49006 (func_ln_if_changed): Use it.
49008 2005-09-18 Bruno Haible <bruno@clisp.org>
49010 * gnulib-tool: Support --with-tests also with --import.
49011 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49012 (func_import): Use variables $testsbase and $inctests. Emit a
49013 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49014 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49015 SUBDIRS += $testsdir.
49016 (func_create_testdir): Update.
49018 2005-09-18 Bruno Haible <bruno@clisp.org>
49020 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49021 instead of $dry_run.
49022 (func_cp_if_changed, func_mv_if_changed): Remove functions.
49023 (func_ln_if_changed): Don't handle dry-run here.
49024 (func_import): In dry-run mode, detect more precisely which actions
49025 would be performed, and don't use "...ing" verbs.
49027 2005-09-18 Bruno Haible <bruno@clisp.org>
49029 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49030 (func_import): Use join on two temporary files instead of three nested
49031 loops, in order to determine which files are new or old.
49033 2005-09-18 Bruno Haible <bruno@clisp.org>
49035 * gnulib-tool (func_import): Comment out code that spits out the
49036 new files with --dry-run.
49038 2005-09-18 Bruno Haible <bruno@clisp.org>
49040 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49042 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49044 * lib/stat-time.h: New file.
49045 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49046 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
49047 in a different way.
49048 (timespec_cmp): New function.
49049 * lib/utimecmp.c: Include stat-time.h.
49050 (SYSCALL_RESOLUTION): Depend on whether various struct stat
49051 members exist, not on the obsolescent ST_MTIM_NSEC.
49052 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49054 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49056 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49058 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49060 * MODULES.html.sh (File system functions): Add stat-time.
49061 * modules/stat-time: New file.
49062 * modules/timespec (Files): Remove m4/st_mtim.m4; this
49063 is now done in a different way, by the stat-time module.
49064 * modules/utimecmp (Depends-on): Add stat-time.
49066 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
49068 * m4/st_mtim.m4: Remove. Superseded by...
49069 * m4/stat-time.m4: New file.
49070 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49071 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49073 2005-09-15 Derek Price <derek@ximbiot.com>
49075 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49077 2005-09-15 Derek Price <derek@ximbiot.com>
49079 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49080 * lib/regex_internal.c: Ditto, using this...
49081 (__GNUC_PREREQ): ...new macro.
49082 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49084 (__GNUC_PREREQ): ...this new macro.
49086 * lib/strstr.h: Include string.h. Define strstr as a macro here.
49088 2005-09-15 Derek Price <derek@ximbiot.com>
49089 Paul Eggert <eggert@cs.ucla.edu>
49091 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49092 changes, consolidating in...
49093 * lib/regex_internal.h: ...this file.
49095 2005-09-13 Jim Meyering <jim@meyering.net>
49097 * lib/canon-host.c: Filter through gnu indent and reword comments
49099 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49101 2005-09-13 Derek Price <derek@ximbiot.com>
49103 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49105 Reported by Jim Meyering <jim@meyering.net>.
49107 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49109 * lib/base64.c: Typo.
49110 (base64_encode): Put b64str in initialized data section.
49112 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
49114 Merge glibc and coreutils changes into gnulib, plus a few
49116 * lib/md5.c: Use #error rather than a string.
49117 (CYCLIC): New macro, from glibc source. Use it instead of rol.
49118 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49119 (__attribute__): Define to empty for non recent-GCC.
49120 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49121 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49122 Renamed from their non-__ counterparts, with new macros replacing
49123 them if not _LIBC. Add __THROW attribute.
49125 (struct md5_ctx): Align buffer if using GCC.
49126 * lib/sha1.h (struct sha1_ctx): Likewise.
49127 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
49128 The old name was backwards.
49129 (NOTSWAP): Remove; not used.
49130 (rol): New macro, moved here from md5.h.
49131 (sha1_process_block): Remove a FIXME that doesn't make sense.
49133 2005-09-12 Derek Price <derek@ximbiot.com>
49135 Return usable errors from canon-host.
49136 * lib/canon-host.h: New file.
49137 * lib/canon-host.c (canon_host): Wrap...
49138 (canon_host_r): ...this new function, which now relies exclusively on
49140 (ch_strerror): New function.
49141 (last_cherror): New global.
49142 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49144 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
49146 (freeaddrinfo): Free ai->ai_canonname when set.
49148 2005-09-12 Derek Price <derek@ximbiot.com>
49150 Make canon-host require getaddrinfo.
49151 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49152 AC_LIBSOURCE canon-host.h. Call...
49153 (gl_PREREQ_CANON_HOST): ...this new function, which requires
49155 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49157 2005-09-12 Derek Price <derek@ximbiot.com>
49159 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
49161 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
49163 2005-09-12 Derek Price <derek@ximbiot.com>
49165 * lib/gai_strerror.c: Include config.h when available. Include
49166 getaddrinfo.h before other headers to test interface.
49167 Reported by Larry Jones <lawrence.jones@ugs.com>.
49169 2005-09-12 Derek Price <derek@ximbiot.com>
49170 Paul Eggert <eggert@cs.ucla.edu>
49172 * modules/glob (Files): Add glob-libc.h.
49174 2005-09-12 Derek Price <derek@ximbiot.com>
49175 Paul Eggert <eggert@cs.ucla.edu>
49177 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49178 glob_.h, glob-libc.h.
49179 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49181 2005-09-12 Derek Price <derek@ximbiot.com>
49182 Paul Eggert <eggert@cs.ucla.edu>
49184 * lib/glob-libc.h: Renamed from glob_.h. The new version is
49185 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49186 protecting things that should be done only in gnulib contexts.
49187 * lib/glob_.h: New file, containing only the glob things needed for
49189 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
49190 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49191 (glob, globfree, glob_pattern_p): Now defined simply in terms of
49192 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49193 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49194 and to respect the namespace rules better.
49196 2005-09-08 Simon Josefsson <jas@extundo.com>
49198 * modules/socklen: New file.
49200 2005-09-08 Simon Josefsson <jas@extundo.com>
49202 * m4/socklen.m4: New file.
49204 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49206 * modules/utimens (Files): Add m4/utimbuf.m4, since
49207 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49208 Reported by Sergey Poznyakoff.
49210 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49212 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49213 definitions, since that's the preferred style in glibc.
49214 Fix a minor spacing issue, and update copyright notice to match
49217 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
49219 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49221 2005-09-06 Simon Josefsson <jas@extundo.com>
49223 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49224 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
49226 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49228 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49231 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
49233 * config/srclist.txt: Add glibc bug 1302.
49235 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
49237 Change bitset word type from unsigned int to unsigned long int,
49238 as this has better performance on typical 64-bit hosts.
49239 Port bitset code to hosts with unusual word sizes.
49240 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49241 (build_collating_symbol):
49242 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49243 argument is a bitset. This is merely a style issue, but it makes
49244 it clearer that an entire array is expected.
49245 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49246 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49247 Port to the case where bitset_word is not the same as unsigned int.
49248 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49249 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49251 * lib/regexec.c (check_dst_limits_calc_pos_1,
49252 check_subexp_matching_top):
49253 (build_trtable, group_nodes_into_DFAstates):
49255 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49256 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49257 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49258 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49259 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49260 * lib/regcomp.c (optimize_subexps, lower_subexp):
49261 Work even if bitset_word has holes in its bitwise representation.
49262 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49263 * lib/regexec.c (check_dst_limits_calc_pos_1,
49264 check_subexp_matching_top):
49266 * lib/regex_internal.c (re_string_reconstruct):
49267 Don't assume UCHAR_MAX == 255.
49268 * lib/regex_internal.h (bitset_set_all): Likewise.
49269 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49271 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
49272 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49274 (BITSET_WORD_MAX): New macro.
49275 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49276 (bitset_set_all, bitset_copy): Now inline functions, not macros.
49277 (bitset_empty, bitset_copy):
49278 Prefer sizeof (bitset) to multiplying it out ourselves.
49279 (bitset_not_merge): Remove; unused.
49280 (bitset_contain): Return bool, not unsigned int with one bit on.
49281 All callers changed.
49282 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49283 alignment than re_node_set; do this by defining a new internal
49284 type struct dests_alloc and using it to allocate memory.
49286 2005-09-05 Bruno Haible <bruno@clisp.org>
49288 * gnulib-tool (func_import): Fix comparison in handling of symbolic
49291 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
49293 * modules/size_max (Makefile.am): Add size_max.h
49295 2005-09-04 Derek Price <derek@ximbiot.com>
49297 * gnulib-tool (func_import): Fix reversed $symbolic logic.
49299 2005-09-03 Simon Josefsson <jas@extundo.com>
49301 * gnulib-tool: Fix typo.
49303 2005-09-03 Simon Josefsson <jas@extundo.com>
49305 * config/srclist.txt: Add glibc bug 1293.
49307 2005-09-03 Derek Price <derek@ximbiot.com>
49309 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49310 From Larry Jones <lawrence.jones@ugs.com>.
49312 2005-09-02 Simon Josefsson <jas@extundo.com>
49314 * modules/socklen: New file.
49316 2005-09-02 Simon Josefsson <jas@extundo.com>
49318 * modules/havelib: New module.
49320 * modules/gettext, modules/iconv, modules/lock, modules/readline:
49323 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49325 Check for arithmetic overflow when calculating sizes, to prevent
49326 some buffer-overflow issues. These patches are conservative, in the
49327 sense that when I couldn't determine whether an overflow was possible,
49328 I inserted a run-time check.
49329 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49331 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49332 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49333 (re_xnrealloc, re_x2nrealloc): New inline functions.
49334 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49335 parse_bracket_exp):
49336 (build_equiv_class, build_charclass): Check for arithmetic overflow
49337 in size expression calculations.
49338 * lib/regex_internal.c (re_string_realloc_buffers):
49339 (build_wcs_upper_buffer, re_node_set_add_intersect):
49340 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49341 (re_dfa_add_node, register_state): Likewise.
49342 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49343 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49344 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49345 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49347 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49349 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49350 m4/ulonglong.m4. Problem reported by Martin Lambers.
49352 2005-09-02 Bruno Haible <bruno@clisp.org>
49354 Support for lib vs. lib64 distinction on biarch platforms.
49355 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49356 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49357 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49359 2005-09-02 Bruno Haible <bruno@clisp.org>
49361 * gnulib-tool (import): In the other first-use case, provide defaults
49364 2005-09-02 Bruno Haible <bruno@clisp.org>
49366 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49367 patches not yet found in the latest gettext release.
49369 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49371 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49372 to avoid a collision with bits/local_lim.h in glibc.
49373 All uses changed. Problem reported by Dmitry V. Levin in
49374 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49376 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49377 bugs in int versus size_t comparisons.
49378 (re_string_context_at): Fix bug where the code assumed that
49381 Use bool where appropriate.
49382 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49383 All callers changed.
49384 (calc_eclosure_iter): Likewise, for ROOT arg.
49385 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49386 (build_charclass_op): Likewise, for NON_MATCH arg.
49387 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49388 (re_string_construct_common): Likewise, for ICASE arg.
49389 * lib/regexec.c (re_search_2_stub, re_search_stub):
49390 Likewise, for RET_LEN arg.
49391 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49392 (set_regs): Likewise, for FL_BACKTRACK arg.
49393 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49394 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49395 (calc_eclosure_iter, parse_bracket_exp):
49396 Use bool for internal variables that are booleans.
49397 * lib/regexec.c (re_search_internal, check_matching,
49398 proceed_next_node):
49399 (set_regs, build_sifted_states, sift_states_bkref):
49400 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49401 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49402 (find_collation_sequence_value):
49404 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49405 (re_node_set_compare):
49406 Return bool, not int. All callers changed.
49407 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49408 (build_trtable, check_node_accept): Likewise.
49409 * lib/regex_internal.h: Include stdbool.h.
49411 Fix bugs uncovered when converting to bool.
49412 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49413 failure instead of charging ahead blindly.
49414 * lib/regex_internal.c (register_state): Likewise.
49415 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49416 for freeing internal storage.
49417 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49418 bitset pieces used as boolean, to avoid undefined behavior
49419 on hosts that do int overflow checking.
49421 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49423 * config/srclist.txt: Add glibc bugs 1285-1287.
49425 2005-09-01 Jim Meyering <jim@meyering.net>
49427 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49428 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49429 Require gl_STAT_MACROS, too.
49431 2005-09-01 Bruno Haible <bruno@clisp.org>
49433 * gnulib-tool (import): In the first-use case, provide defaults.
49435 2005-09-01 Bruno Haible <bruno@clisp.org>
49437 * gnulib-tool (func_import): Remove the .tmp files.
49439 2005-09-01 Bruno Haible <bruno@clisp.org>
49441 * gnulib-tool (func_import): Fix handling of symbolic links.
49443 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49445 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49446 old glibc regex code mishandles strings longer than 2**31 bytes.
49447 This patch fixes this when the regex code is used in gnulib
49448 (i.e., outside glibc).
49450 This patch should not affect the use of the regex code inside
49451 glibc. No doubt this problem also needs to be handled for glibc
49452 as well, but the result will be an incompatible change to the
49453 glibc ABI, and the old ABI will have to be supported too. That
49454 can be the the subject for another patch.
49456 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49457 governing whether the rest of this patch is active. By default,
49458 the macro is disabled and the patch has no effect.
49459 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49460 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49461 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49462 (re_match_2, re_set_registers): Use the new types.
49463 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49464 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49466 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49467 (re_string_context_at, bin_tree_t, re_dfastate_t):
49468 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49469 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49470 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49471 (re_string_char_size_at, re_string_wchar_at):
49472 (re_string_elem_size_at):
49473 Use the new types and macros to port to 64-bit hosts.
49474 Use unsigned types for internal values, so that the code
49475 mostly works even for arrays larger than SSIZE_MAX.
49476 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49477 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49478 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49479 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49480 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49481 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49482 (calc_inveclosure, parse_dup_op, build_range_exp):
49483 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49484 (fetch_number, create_token_tree, mark_opt_subexp):
49486 * lib/regex_internal.c (re_string_construct_common,
49487 create_ci_newstate):
49488 (create_cd_newstate, re_string_allocate, re_string_construct):
49489 (re_string_realloc_buffers, build_wcs_upper_buffer):
49490 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49491 (re_string_reconstruct, re_string_peek_byte_case):
49492 (re_string_fetch_byte_case, re_string_context_at):
49493 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49494 (re_node_set_init_copy, re_node_set_add_intersect):
49495 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49496 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49497 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49498 (re_acquire_state, re_acquire_state_context, register_state):
49500 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49501 search_cur_bkref_entry):
49502 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49503 (re_search_internal, re_search_2_stub, re_search_stub)
49504 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49505 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49506 (update_cur_sifted_state, check_dst_limits):
49507 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49508 (check_subexp_limits, sift_states_bkref, merge_state_array):
49509 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49510 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49511 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49512 (expand_bkref_cache, check_node_accept_bytes):
49513 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49514 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49515 (acquire_init_state_context, check_halt_node_context):
49516 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49517 (sift_states_backward, clean_state_log_if_needed):
49518 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49519 (find_recover_state, transit_state_sb, transit_state_mb):
49520 (transit_state_bkref, build_trtable, match_ctx_clean):
49522 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49523 to work around an assumption that REG_MISSING is negative.
49525 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49526 (seek_collating_symbol_entry) [defined _LIBC]:
49527 (lookup_collation_sequence_value) [defined _LIBC]:
49528 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49529 Use prototypes rather than old-style function definitions.
49530 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49531 (transit_state_sb) [0]:
49532 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49534 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49537 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49538 (optimize_subexps, lower_subexp):
49539 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49540 since the signed shift might overflow. Use 1u<<31 instead.
49541 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49543 * lib/regexec.c (check_dst_limits_calc_pos_1,
49544 check_subexp_matching_top): Likewise.
49546 * lib/regcomp.c (optimize_subexps, lower_subexp):
49547 Use CHAR_BIT rather than 8, for clarity.
49548 * lib/regexec.c (check_dst_limits_calc_pos_1):
49549 (check_subexp_matching_top): Likewise.
49550 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49551 have to worry about portability issues when shifting it left.
49552 Remove no-longer-needed test for table_size > 0.
49553 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49554 in a word, as the resulting behavior is undefined.
49555 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49556 in one case, a <= should have been an <, and in another case the
49557 whole test was missing.
49558 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49559 the standard name CHAR_BIT.
49560 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49561 this is not true on one's complement and signed-magnitude hosts.
49563 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49565 (struct re_dfa_t): Remove unused member states_alloc.
49566 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49568 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49570 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49571 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49572 and large-file glibc and in 32-bit large-file Solaris.
49574 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49576 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49577 lengths fit in regoff_t; this isn't true if regoff_t is the same
49579 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49580 (= START + RANGE) instead of RANGE. This avoids overflow
49581 problems when regoff_t is the same width as size_t.
49582 All callers changed.
49583 (re_search_2_stub): Check for overflow when adding the
49584 sizes of the two strings.
49585 (re_search_stub): Check for overflow when adding START
49586 to RANGE; if it occurs, substitute the extreme value.
49588 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49590 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49592 2005-08-31 Jim Meyering <jim@meyering.net>
49594 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49595 a pointer-to-const.
49596 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49597 (register_state): Likewise.
49598 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49599 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49600 (group_nodes_into_DFAstates): Likewise.
49602 2005-08-31 Jim Meyering <jim@meyering.net>
49604 * check-module: Add a FIXME comment.
49606 2005-08-31 Eric Blake <ebb9@byu.net>
49608 * modules/unistd-safer (Files): Add unistd--.h.
49609 * modules/stdio-safer (Files): Add stdio--.h.
49611 2005-08-31 Derek Price <derek@ximbiot.com>
49613 * lib/getdelim.c (getdelim): Return EOF on EOF.
49614 Reported by Larry Jones <lawrence.jones@ugs.com>.
49616 2005-08-31 Bruno Haible <bruno@clisp.org>
49618 Avoid unnecessary diffs in the generated lib/Makefile.am.
49619 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49620 the generated files.
49621 (func_import): Don't set cmd.
49623 2005-08-31 Bruno Haible <bruno@clisp.org>
49625 * lib/strstr.c: Include <stddef.h>, for NULL.
49626 * lib/strcasestr.c: Likewise.
49627 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49629 2005-08-31 Bruno Haible <bruno@clisp.org>
49631 * gnulib-tool: New option --macro-prefix.
49632 (func_import): Use macro_prefix.
49633 (import): Handle option --macro-prefix.
49635 2005-08-31 Bruno Haible <bruno@clisp.org>
49637 * gnulib-tool (import): Rename most ac_* variables to cached_*.
49638 Also use new variables cached_lgpl, cached_libtool.
49640 2005-08-31 Bruno Haible <bruno@clisp.org>
49642 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49643 always instantiating them.
49645 2005-08-31 Bruno Haible <bruno@clisp.org>
49647 * gnulib-tool (func_import): Read the previous cached settings
49648 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49649 earlier added by gnulib but are now dropped. Warn when a gnulib file
49650 overwrites a non-gnulib file.
49652 2005-08-31 Bruno Haible <bruno@clisp.org>
49654 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49655 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49656 projects that don't keep autogenerated files in CVS. Put into
49657 actioncmd only the specified modules, not the transitive closure.
49659 2005-08-31 Bruno Haible <bruno@clisp.org>
49661 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49662 Create directories that shall be filled.
49663 (import): Don't look for gl_* macros in configure.ac. Recurse across
49664 all directories containing a gnulib-cache.m4 files, if meaningful.
49666 2005-08-31 Bruno Haible <bruno@clisp.org>
49668 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49669 (import): Set seen_libtool when we see gl_LIBTOOL.
49671 2005-08-31 Bruno Haible <bruno@clisp.org>
49673 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49674 declaration macro definitions from generated gnulib.m4.
49676 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
49678 * lib/iconvme.h: Add prototype for iconv_alloc.
49680 2005-08-29 Simon Josefsson <jas@extundo.com>
49682 * lib/iconvme.c: Fix errno.
49684 2005-08-29 Bruno Haible <bruno@clisp.org>
49686 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49687 that it works when the directory contains spaces.
49689 2005-08-29 Bruno Haible <bruno@clisp.org>
49691 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49693 2005-08-29 Bruno Haible <bruno@clisp.org>
49695 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49698 2005-08-29 Bruno Haible <bruno@clisp.org>
49699 and Stepan Kasal <kasal@ucw.cz>
49701 * check-module: If more parameters are given, check each of them
49702 separately; add more exceptions, as noted by Jim Meyering.
49703 (check_module): New procedure.
49704 (%exempt_header): Now contains all exceptions.
49706 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
49708 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49710 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
49712 * lib/iconvme.c: Split iconv_string into iconv_alloc.
49714 2005-08-28 Bruno Haible <bruno@clisp.org>
49716 * m4/gnulib-tool.m4: New file.
49718 2005-08-27 Jim Meyering <jim@meyering.net>
49720 * modules/unistd-safer (Files): Add pipe-safer.c.
49721 * modules/fcntl-safer (Files): Add creat-safer.c.
49723 2005-08-27 Jim Meyering <jim@meyering.net>
49725 * m4/stdlib-safer.m4: New file. From coreutils.
49726 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49727 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49728 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49729 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49730 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49732 2005-08-27 Jim Meyering <jim@meyering.net>
49734 * lib/fopen-safer.c: Merge minor changes from coreutils.
49735 * lib/dup-safer.c: Likewise.
49736 * lib/fd-safer.c: Likewise.
49738 Merge from coreutils.
49739 * lib/stdio--.h: New file.
49740 * lib/stdlib--.h: New file.
49741 * lib/mkstemp-safer.c: New file.
49743 GNU tar needs these.
49744 * lib/pipe-safer.c: New file.
49745 * lib/creat-safer.c: New file.
49746 * lib/fcntl--.h (creat): Define to creat_safer.
49747 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49748 * lib/unistd--.h (pipe): Define to pipe_safer.
49749 * lib/unistd-safer.h: Declare pipe_safer.
49751 2005-08-26 Simon Josefsson <jas@extundo.com>
49753 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49754 Haible <bruno@clisp.org>.
49756 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
49758 * lib/regex_internal.h: Remove all references to
49759 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49761 (bitset_not, bitset_merge, bitset_not_merge):
49762 (bitset_mask, re_string_allocate, re_string_construct):
49763 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49764 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49765 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49766 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49767 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49768 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49769 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49770 (re_acquire_state_context):
49771 Remove unnecessary forward decls.
49772 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49773 Put __attribute at function definition,
49774 now that the function decl has been removed.
49775 * lib/regex_internal.c (re_string_peek_byte_case):
49776 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49779 2005-08-25 Stepan Kasal <kasal@ucw.cz>
49781 * m4/regex.m4: Add AC_PREREQ(2.50).
49782 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49784 2005-08-25 Simon Josefsson <jas@extundo.com>
49786 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49789 2005-08-25 Simon Josefsson <jas@extundo.com>
49791 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
49792 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
49793 GLIBC specific code.
49795 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49797 Make regex safe for g++. This fixes one real bug (an "err"
49798 that should have been "*err"). g++ problem reported by
49800 * lib/regex_internal.h (re_calloc): New macro, consistent with
49801 re_malloc etc. All callers of calloc changed to use re_calloc.
49802 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49803 not int. All callers changed.
49804 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49805 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49806 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49807 (find_recover_state): Change "err" to "*err"; this fixes what
49808 appears to be a real bug.
49809 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49812 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49814 * modules/regex (Depends-on): Add malloc, since the code
49815 assumes that !malloc(0) means failure.
49817 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49819 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49821 alloca modernization/simplification for regex.
49822 * lib/regex.c: Remove portability cruft for alloca. This no longer
49823 needs to be at the start of the file, and can be moved into
49824 regex_internal.h and simplified.
49825 * lib/regex_internal.h: Include <alloca.h>.
49826 (__libc_use_alloca) [!defined _LIBC]: New macro.
49827 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49828 now works outside glibc.
49830 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49832 * config/srclist.txt: Add glibc bugs 1241, 1245.
49834 2005-08-25 Jim Meyering <jim@meyering.net>
49836 * lib/open-safer.c: Include <config.h>.
49837 Otherwise, we'd lose LARGEFILE support in any file using
49840 2005-08-25 Bruno Haible <bruno@clisp.org>
49842 * m4/minmax.m4: Require autoconf 2.52.
49843 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49844 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49845 alternatives of translit over the alphabet.
49846 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49848 2005-08-24 Simon Josefsson <jas@extundo.com>
49850 * tests/test-getpass.c: New file.
49852 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49854 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49855 for GNU regex features.
49857 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49859 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49860 * lib/regex.h (regerror): Likewise.
49862 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49863 requires this. (The code never needed it.)
49865 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49866 All uses of recently-renamed identifiers changed to use the new,
49867 POSIX-compliant names. The code will build and run just fine
49868 without these changes, but it's better to eat our own dog food
49869 and use the standard-conforming names.
49871 * lib/regex.h: Fix a multitude of POSIX name space violations.
49872 These changes have an effect only for programs that define
49873 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49874 do not change anything for programs compiled in the normal way.
49875 Also, there is no effect on the ABI.
49877 (_REGEX_SOURCE): New macro.
49878 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49879 defined and _GNU_SOURCE is not; this fixes a name space violation.
49881 Rename the following macros to obey POSIX requirements.
49882 The old names are still visible as macros if _REGEX_SOURCE is defined.
49883 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49884 RE_BACKSLASH_ESCAPE_IN_LISTS.
49885 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49886 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49887 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49888 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49889 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49890 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49891 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49892 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49893 (REG_INTERVALS): renamed from RE_INTERVALS.
49894 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49895 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49896 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49897 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49898 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49899 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49900 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49901 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49902 RE_UNMATCHED_RIGHT_PAREN_ORD.
49903 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49904 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49905 (REG_DEBUG): renamed from RE_DEBUG.
49906 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49907 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49908 unusual, since we can't clash with the POSIX REG_ICASE.
49909 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49910 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49911 (REG_NO_SUB): renamed from RE_NO_SUB.
49912 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49913 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49914 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49915 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49916 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49917 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49918 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49919 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49920 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49921 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49922 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49923 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49924 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49925 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49926 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49927 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49928 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49929 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49930 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49931 (REG_FIXED): Renamed from REGS_FIXED.
49932 (REG_NREGS): Renamed from RE_NREGS.
49934 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49935 of other REG_* macros, since POSIX says the user is allowed to
49936 #undef these macros selectively.
49938 (reg_errcode_t): Update comment stating what other tables need
49941 Rename the following enum values to obey POSIX requirements.
49942 The old names are still visible as macros.
49943 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
49944 is not defined, since GNU is supposed to be a superset of POSIX as
49945 much as possible, and since we want reg_errcode_t to be a signed
49946 type for implementation consistency.
49947 (_REG_NOERROR): Renamed from REG_NOERROR.
49948 (_REG_NOMATCH): Renamed from REG_NOMATCH.
49949 (_REG_BADPAT): Renamed from REG_BADPAT.
49950 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49951 (_REG_ECTYPE): Renamed from REG_ECTYPE.
49952 (_REG_EESCAPE): Renamed from REG_EESCAPE.
49953 (_REG_ESUBREG): Renamed from REG_ESUBREG.
49954 (_REG_EBRACK): Renamed from REG_EBRACK.
49955 (_REG_EPAREN): Renamed from REG_EPAREN.
49956 (_REG_EBRACE): Renamed from REG_EBRACE.
49957 (_REG_BADBR): Renamed from REG_BADBR.
49958 (_REG_ERANGE): Renamed from REG_ERANGE.
49959 (_REG_ESPACE): Renamed from REG_ESPACE.
49960 (_REG_BADRPT): Renamed from REG_BADRPT.
49961 (_REG_EEND): Renamed from REG_EEND.
49962 (_REG_ESIZE): Renamed from REG_ESIZE.
49963 (_REG_ERPAREN): Renamed from REG_ERPAREN.
49964 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49965 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49966 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49967 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49969 (_REG_RE_NAME, _REG_RM_NAME): New macros.
49970 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
49971 changed. But support the old name if the new one is not defined
49972 and if _REGEX_SOURCE.
49974 Change the following member names in struct re_pattern_buffer.
49975 The old names are still supported if !_REGEX_SOURCE.
49976 The new names are always supported, regardless of _REGEX_SOURCE.
49977 (re_buffer): Renamed from buffer.
49978 (re_allocated): Renamed from allocated.
49979 (re_used): Renamed from used.
49980 (re_syntax): Renamed from syntax.
49981 (re_fastmap): Renamed from fastmap.
49982 (re_translate): Renamed from translate.
49983 (re_can_be_null): Renamed from can_be_null.
49984 (re_regs_allocated): Renamed from regs_allocated.
49985 (re_fastmap_accurate): Renamed from fastmap_accurate.
49986 (re_no_sub): Renamed from no_sub.
49987 (re_not_bol): Renamed from not_bol.
49988 (re_not_eol): Renamed from not_eol.
49989 (re_newline_anchor): Renamed from newline_anchor.
49991 Change the following member names in struct re_registers.
49992 The old names are still supported if !_REGEX_SOURCE.
49993 The new names are always supported, regardless of _REGEX_SOURCE.
49994 (rm_num_regs): Renamed from num_regs.
49995 (rm_start): Renamed from start.
49996 (rm_end): Renamed from end.
49998 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49999 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50000 Prepend __ to parameter names.
50002 Undo yesterday's changes.
50004 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50006 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50007 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
50010 2005-08-24 Jim Meyering <jim@meyering.net>
50012 Sync from coreutils.
50013 * m4/fcntl-safer.m4: New file.
50015 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50016 and object files for this module.
50018 2005-08-24 Jim Meyering <jim@meyering.net>
50020 Sync from coreutils.
50021 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50023 2005-08-24 Jim Meyering <jim@meyering.net>
50025 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50026 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50028 2005-08-24 Jim Meyering <jim@meyering.net>
50030 * modules/fcntl-safer: New module.
50031 * modules/fts (Depends-on): Add fcntl-safer.
50032 * MODULES.html.sh (File descriptor based Input/Output):
50035 2005-08-24 Bruno Haible <bruno@clisp.org>
50037 Support for unit test modules.
50038 * modules/README: Mention tests modules.
50039 * modules/TEMPLATE-TESTS: New file.
50040 * gnulib-tool: New options --extract-tests-module, --with-tests and
50041 --tests-base (unused for the moment).
50042 (testsbase, inctests): New variables.
50043 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50044 (func_verify_module): Exclude TEMPLATE-TESTS.
50045 (func_verify_nontests_module, func_verify_tests_module): New functions.
50046 (func_get_dependencies): Add implicit dependency for tests modules.
50047 (func_get_tests_module): New function.
50048 (func_modules_transitive_closure): When --with-tests was specified,
50049 include the unit tests as well, unless explicitly avoided.
50050 (func_emit_lib_Makefile_am): Ignore the tests modules here.
50051 (func_emit_tests_Makefile_am): New function.
50052 (func_create_testdir): When --with-tests was specified, emit a
50054 * MODULES.html.sh (Future developments): Update.
50056 2005-08-24 Bruno Haible <bruno@clisp.org>
50058 * modules/tls-tests: New file.
50059 * tests/test-tls.c: New file, from GNU gettext.
50061 2005-08-24 Bruno Haible <bruno@clisp.org>
50063 * modules/lock-tests: New file.
50064 * tests/test-lock.c: New file, from GNU gettext.
50066 2005-08-24 Bruno Haible <bruno@clisp.org>
50068 * lib/lock.h: Add multiple inclusion guard.
50069 * lib/tls.h: Add multiple inclusion guard.
50071 2005-08-24 Bruno Haible <bruno@clisp.org>
50073 * gnulib-tool: Add support for the --aux-dir option to
50074 --create-testdir, --create-megatestdir, --test, --megatest.
50075 (func_create_testdir, func_create_megatestdir): Optionally emit a
50076 AC_CONFIG_AUX_DIR directive.
50077 (create-testdir, create-megatestdir, test, megatest): Provide a
50078 default value for $auxdir.
50080 2005-08-24 Bruno Haible <bruno@clisp.org>
50082 * gnulib-tool (import): Use compound statement instead of subshell
50085 2005-08-24 Bruno Haible <bruno@clisp.org>
50087 * gnulib-tool (import): Change --aux-dir default to "build-aux".
50089 2005-08-24 Bruno Haible <bruno@clisp.org>
50091 * gnulib-tool (func_version): Update.
50093 2005-08-24 Bruno Haible <bruno@clisp.org>
50095 * gnulib-tool (func_import, func_create_testdir,
50096 func_create_megatestdir): Quote all autoconf macro arguments.
50098 2005-08-24 Bruno Haible <bruno@clisp.org>
50100 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50101 option --force, because --force causes the aclocal.m4 of each
50102 subdirectory to be newer than the corresponding config.h.in.
50104 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50106 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50107 All contents moved to gl_REGEX.
50108 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50109 assume that it does.
50111 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50113 * lib/regex.h (REG_NOSYS)
50114 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50115 Define, since POSIX requires it as of 2001.
50117 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50118 New private symbol, used to keep the enum signed in all cases.
50119 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50121 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50123 * lib/regex_internal.c (re_string_skip_chars, register_state):
50125 Remove forward decls; no longer needed now that we use prototypes.
50126 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50127 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50128 (clean_state_log_if_needed): Likewise.
50130 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50132 * config/srclist.txt: Add glibc bugs 1231-1233.
50134 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50136 Fix problems reported by Sam Steingold in
50137 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50138 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50139 assumed that reg_errcode_t is a signed type, which is not
50140 necessarily true if _XOPEN_SOURCE is not defined.
50141 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50142 since some compilers warn about it otherwise.
50144 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50146 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50147 (init_word_char, create_initial_state, duplicate_node_closure):
50148 (fetch_token, peek_token_bracket, build_range_exp):
50149 (build_collating_symbol): Remove forward decls; no longer needed
50150 now that we use prototypes.
50153 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50154 (re_compile_fastmap_iter, regcomp, regerror, regfree):
50155 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50156 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50157 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50158 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50159 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50160 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50161 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50162 (build_range_exp, build_collating_symbol, parse_bracket_exp):
50163 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50164 (build_charclass, build_charclass_op, fetch_number, create_tree):
50165 (create_token_tree, mark_opt_subexp, duplicate_tree):
50166 Use prototypes rather than old-style definitions.
50168 * lib/regex_internal.c:
50169 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50170 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50171 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50172 (re_string_reconstruct, re_string_peek_byte_case):
50173 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50174 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50175 (re_node_set_init_copy, re_node_set_add_intersect):
50176 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50177 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50178 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50179 (re_acquire_state, re_acquire_state_context, register_state):
50180 (create_ci_newstate, create_cd_newstate, free_state):
50182 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50184 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50185 (re_search_internal, prune_impossible_nodes):
50186 (acquire_init_state_context, check_matching, static):
50187 (check_halt_node_context, check_halt_state_context, proceed_next_node):
50188 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50189 (update_regs, sift_states_backward, build_sifted_states):
50190 (clean_state_log_if_needed, merge_state_array):
50191 (update_cur_sifted_state, add_epsilon_src_nodes):
50192 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50193 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50194 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50195 (find_recover_state, check_subexp_matching_top, transit_state_mb):
50196 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50197 (check_arrival, check_arrival_add_next_nodes):
50198 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50199 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50200 (check_node_accept_bytes, check_node_accept, extend_buffers):
50201 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50202 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50206 * lib/regex_internal.h:
50207 (re_string_allocate, re_string_construct, re_string_reconstruct):
50208 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50209 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50210 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50211 (re_string_context_at, re_string_peek_byte_case):
50212 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50213 is defined, since we now use prototypes always.
50215 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
50216 C89 or better. All uses removed.
50218 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50220 * config/srclist.txt: Add glibc bugs 1220-1227.
50222 2005-08-20 Jim Meyering <jim@meyering.net>
50224 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50225 of unused local, dfa.
50227 2005-08-20 Bruno Haible <bruno@clisp.org>
50229 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50231 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50233 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50234 (re_node_set_insert_last, re_dfa_add_node):
50235 Rename local variables to avoid GCC shadowing warnings.
50237 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50239 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50240 [defined lint]: Suppress bogus uninitialized-variable warnings.
50242 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50243 and let the caller return REG_ESPACE if out of space. This
50244 removes an uninitialied-variable warning with GCC 4.0.1, and also
50245 avoids taking the address of a local variable. All callers
50248 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
50250 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50251 $LIBCSRC/posix/regexec.c.
50252 Add glibc bug 1217 for regcomp.c.
50254 2005-08-19 Jim Meyering <jim@meyering.net>
50256 * lib/regexec.c (proceed_next_node): Redo local variables to
50257 avoid GCC shadowing warnings.
50259 2005-08-18 Bruno Haible <bruno@clisp.org>
50261 * lib/strstr.c (strstr): Fix return value in multibyte case.
50262 * lib/strcasestr.c (strcasestr): Likewise.
50264 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
50266 * lib/regex.h: Remove useless space-before-tab. From coreutils.
50268 2005-08-17 Jim Meyering <jim@meyering.net>
50270 Make the %s format (seconds since the epoch) work for a negative
50271 number and when used with a zero-padded field width, e.g. %015s.
50273 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50274 label so that it precedes the code to set `digits'. Otherwise,
50275 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
50276 print `00-22'. Now, it prints `-0022', as it should.
50278 2005-08-17 Bruno Haible <bruno@clisp.org>
50280 * modules/strstr (Files): Add m4/mbrtowc.m4.
50281 (Depends-on): Add mbuiter.
50283 2005-08-17 Bruno Haible <bruno@clisp.org>
50285 * modules/strcasestr: New file.
50286 * MODULES.html.sh (String handling, based on ANSI C 89): Add
50289 2005-08-17 Bruno Haible <bruno@clisp.org>
50291 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50293 2005-08-17 Bruno Haible <bruno@clisp.org>
50295 * modules/mbuiter: New file.
50296 * MODULES.html.sh (Extended multibyte and wide character utilities):
50299 2005-08-17 Bruno Haible <bruno@clisp.org>
50301 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50302 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50304 2005-08-17 Bruno Haible <bruno@clisp.org>
50306 * m4/strcasestr.m4: New file.
50308 2005-08-17 Bruno Haible <bruno@clisp.org>
50310 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50311 * lib/strstr.c: Completely rewritten, with multibyte locale support.
50313 2005-08-17 Bruno Haible <bruno@clisp.org>
50315 * lib/strcasestr.h: New file.
50316 * lib/strcasestr.c: New file.
50318 2005-08-17 Bruno Haible <bruno@clisp.org>
50320 * lib/strcasecmp.c: Use mbuiter.h.
50322 2005-08-17 Bruno Haible <bruno@clisp.org>
50324 * lib/mbuiter.h: New file.
50326 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
50328 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50329 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
50330 and gl_GETOPT are both invoked via different paths (as happens
50331 with GNU tar CVS because it uses both argp and getopt), the former
50334 2005-08-16 Bruno Haible <bruno@clisp.org>
50336 * modules/tls: New file.
50337 * MODULES.html.sh (Multithreading): Add tls.
50339 2005-08-16 Bruno Haible <bruno@clisp.org>
50341 * modules/strnlen1: New file.
50342 * MODULES.html.sh (String handling): Add strnlen1.
50344 2005-08-16 Bruno Haible <bruno@clisp.org>
50346 * modules/strcase (Files): Add m4/mbrtowc.m4.
50347 (Depends-on): Add strnlen1, mbchar.
50349 2005-08-16 Bruno Haible <bruno@clisp.org>
50351 * modules/mbiter: New file.
50352 * MODULES.html.sh (Extended multibyte and wide character utilities):
50355 2005-08-16 Bruno Haible <bruno@clisp.org>
50357 * modules/mbfile: New file.
50358 * MODULES.html.sh (Extended multibyte and wide character utilities):
50361 2005-08-16 Bruno Haible <bruno@clisp.org>
50363 * modules/mbchar: New file.
50364 * MODULES.html.sh (Extended multibyte and wide character utilities):
50367 2005-08-16 Bruno Haible <bruno@clisp.org>
50369 * m4/tls.m4: New file, from GNU gettext.
50371 2005-08-16 Bruno Haible <bruno@clisp.org>
50373 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50375 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50377 2005-08-16 Bruno Haible <bruno@clisp.org>
50379 * m4/mbiter.m4: New file.
50381 2005-08-16 Bruno Haible <bruno@clisp.org>
50383 * m4/mbfile.m4: New file.
50385 2005-08-16 Bruno Haible <bruno@clisp.org>
50387 * m4/mbchar.m4: New file.
50389 2005-08-16 Bruno Haible <bruno@clisp.org>
50391 * lib/tls.h: New file, from GNU gettext.
50392 * lib/tls.c: New file, from GNU gettext.
50394 2005-08-16 Bruno Haible <bruno@clisp.org>
50396 * lib/strnlen1.h: New file.
50397 * lib/strnlen1.c: New file.
50399 2005-08-16 Bruno Haible <bruno@clisp.org>
50401 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50402 (mbi_init): Update.
50403 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50404 NUL byte, not after it.
50406 2005-08-16 Bruno Haible <bruno@clisp.org>
50408 * lib/strcase.h (strcasecmp): Add note in comments.
50409 * lib/strncasecmp.c: Use code from strcasecmp.c.
50410 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50411 (strcasecmp): Work correctly in multibyte locales.
50413 2005-08-16 Bruno Haible <bruno@clisp.org>
50415 * lib/mbiter.h: New file.
50417 2005-08-16 Bruno Haible <bruno@clisp.org>
50419 * lib/mbfile.h: New file.
50421 2005-08-16 Bruno Haible <bruno@clisp.org>
50423 * lib/mbchar.h: New file.
50424 * lib/mbchar.c: New file.
50426 2005-08-16 Bruno Haible <bruno@clisp.org>
50428 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50429 the valid ones. Makes the comparison operations transitive:
50430 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50431 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50433 2005-08-15 Simon Josefsson <jas@extundo.com>
50435 * modules/ssize_t (License): Change to 'unlimited'.
50437 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50439 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50441 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50442 Add comments for each pending glibc patch.
50444 2005-08-15 Bruno Haible <bruno@clisp.org>
50446 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50447 __cplusplus is defined.
50449 2005-08-14 Jim Meyering <jim@meyering.net>
50451 Sync from coreutils.
50453 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50454 Use the hash-table-based cycle-detection code not just when
50455 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50456 Reported by James Youngman in
50457 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50458 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50459 FTS_TIGHT_CYCLE_CHECK.
50460 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50461 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50463 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50464 * lib/fts.c (fd_safer): Remove decl.
50465 Include fcntl--.h rather than unistd-safer.h
50466 (fts_safe_changedir): Don't call fd_safer; no longer needed
50467 now that we include fcntl--.h.
50469 2005-08-12 Simon Josefsson <jas@extundo.com>
50471 * modules/getndelim2: Use ssize_t module.
50472 * modules/getnline: Likewise.
50473 * modules/safe-read: Likewise.
50474 * modules/xreadlink: Likewise.
50476 * modules/ssize_t: New file.
50478 2005-08-12 Simon Josefsson <jas@extundo.com>
50480 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50482 2005-08-12 Simon Josefsson <jas@extundo.com>
50484 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50487 2005-08-12 Simon Josefsson <jas@extundo.com>
50489 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50490 readline, getdelim and check_version.
50491 (Support for systems lacking ISO C 99: Sizes of integer types):
50494 2005-08-12 Bruno Haible <bruno@clisp.org>
50496 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50498 2005-08-11 Simon Josefsson <jas@extundo.com>
50500 * modules/readline: New file.
50502 * modules/strnlen (Files): Add strnlen.h.
50504 2005-08-11 Simon Josefsson <jas@extundo.com>
50506 * m4/readline.m4: New file.
50508 2005-08-11 Simon Josefsson <jas@extundo.com>
50510 * lib/readline.h, readline.c: New file.
50512 2005-08-11 Simon Josefsson <jas@extundo.com>
50514 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50517 2005-08-11 Bruno Haible <bruno@clisp.org>
50519 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50521 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50523 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50525 2005-08-10 Simon Josefsson <jas@extundo.com>
50527 * tests/test-iconvme.c: New file.
50529 2005-08-10 Simon Josefsson <jas@extundo.com>
50531 * m4/strnlen.m4: New file.
50533 * m4/strndup.m4: Don't check for strnlen declaration, done in
50536 2005-08-10 Simon Josefsson <jas@extundo.com>
50538 * lib/strndup.c: Use strnlen.h.
50540 * lib/strnlen.h: New file.
50542 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50546 2005-08-02 Simon Josefsson <jas@extundo.com>
50548 * modules/readline: New file.
50550 2005-08-02 Simon Josefsson <jas@extundo.com>
50552 * modules/getdelim: New file.
50554 * modules/getline: Rewrite, don't use getndelim2.
50556 2005-08-02 Simon Josefsson <jas@extundo.com>
50558 * m4/getline.m4: Separate out getdelim stuff into separate module.
50560 * m4/getdelim.m4: New file.
50562 2005-08-02 Simon Josefsson <jas@extundo.com>
50564 * lib/getline.h, getline.c: Rewrite.
50566 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50568 2005-07-31 Bruno Haible <bruno@clisp.org>
50570 * lib/lock.h (gl_lock_initializer): New macro.
50571 (gl_lock_define_initialized): Use it.
50572 (gl_rwlock_initializer): New macro.
50573 (gl_rwlock_define_initialized): Use it.
50574 (gl_recursive_lock_initializer): New macro.
50575 (gl_recursive_lock_define_initialized): Use it.
50577 2005-07-30 Karl Berry <karl@gnu.org>
50579 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50580 Report from Ben Pfaff, regarding getopt.
50582 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
50584 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50586 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50587 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
50588 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50589 (gl_GETOPT): Use the new macros. Most of the implementation
50590 is moved to the new macros. This is for programs like Emacs
50591 that don't want all the functionality of gl_GETOPT.
50593 2005-07-26 Bruno Haible <bruno@clisp.org>
50595 * m4/lock.m4: Update from GNU gettext.
50597 2005-07-26 Bruno Haible <bruno@clisp.org>
50599 * lib/lock.h: Update from GNU gettext.
50600 * lib/lock.c: Update from GNU gettext.
50602 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
50604 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50605 obsolescent AC_TRY_RUN. Include the default includes files, for
50608 2005-07-24 Bruno Haible <bruno@clisp.org>
50610 * modules/visibility: New file.
50611 * MODULES.html.sh (Misc): Add visibility.
50613 2005-07-24 Bruno Haible <bruno@clisp.org>
50615 * m4/visibility.m4: New file.
50617 2005-07-24 Bruno Haible <bruno@clisp.org>
50619 * doc/visibility.texi: New file.
50621 2005-07-22 Bruno Haible <bruno@clisp.org>
50623 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50624 $(ALLOCA_H), redundant through BUILT_SOURCES.
50625 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50626 redundant through BUILT_SOURCES.
50627 * modules/byteswap (Makefile.am): Remove explicit dependency on
50628 $(BYTESWAP_H), redundant through BUILT_SOURCES.
50629 * modules/fnmatch (Makefile.am): Remove explicit dependency on
50630 $(FNMATCH_H), redundant through BUILT_SOURCES.
50631 * modules/getopt (Makefile.am): Remove explicit dependency on
50632 $(GETOPT_H), redundant through BUILT_SOURCES.
50633 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50634 redundant through BUILT_SOURCES.
50635 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50636 redundant through BUILT_SOURCES.
50637 * modules/stdbool (Makefile.am): Remove explicit dependency on
50638 $(STDBOOL_H), redundant through BUILT_SOURCES.
50639 * modules/stdint (Makefile.am): Remove explicit dependency on
50640 $(STDINT_H), redundant through BUILT_SOURCES.
50641 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50642 Remove explicit dependency on $(SYSEXITS_H).
50643 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50645 2005-07-18 Simon Josefsson <jas@extundo.com>
50647 * lib/check-version.c (check_version): Accept identical versions too.
50649 2005-07-18 Bruno Haible <bruno@clisp.org>
50651 * modules/lock: New file.
50652 * MODULES.html.sh (Multithreading): New section.
50654 2005-07-18 Bruno Haible <bruno@clisp.org>
50656 * m4/lock.m4: New file, from GNU gettext.
50658 2005-07-18 Bruno Haible <bruno@clisp.org>
50660 * lib/lock.h: New file, from GNU gettext.
50661 * lib/lock.c: New file, from GNU gettext.
50663 2005-07-18 Bruno Haible <bruno@clisp.org>
50665 * lib/lock.h (gl_once_t): New type.
50666 (gl_once_define, gl_once): New macros.
50667 * lib/lock.c (fresh_once): New variable.
50668 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50671 2005-07-16 Simon Josefsson <jas@extundo.com>
50673 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50674 workaround, suggested by Bruno.
50676 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50678 * modules/xalloc (Depends-on): Add xalloc-die.
50679 * modules/xvasprintf (Depends-on): Add xalloc-die.
50681 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50683 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50684 with a minor change.
50686 2005-07-15 Bruno Haible <bruno@clisp.org>
50688 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50689 When using lib/poll.c, define poll as rpl_poll.
50691 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
50693 * modules/argp (Depends-on): Remove unlocked-io.
50695 2005-07-14 Derek Price <derek@ximbiot.com>
50697 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
50698 for glob symlink bug.
50700 2005-07-14 Bruno Haible <bruno@clisp.org>
50702 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50703 Instead, test for *_unlocked function declarations directly.
50705 2005-07-11 Simon Josefsson <jas@extundo.com>
50707 * modules/size_max: New file.
50709 * modules/xsize: Depend on size_max module for size_max.m4.
50711 2005-07-11 Simon Josefsson <jas@extundo.com>
50713 * lib/size_max.h: New file.
50715 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
50717 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50718 copyright symbol and the year.
50719 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50720 (version_etc_va): Use parameterized copyright notice.
50721 Reword to conform to the current GNU coding standards.
50723 2005-07-11 Karl Berry <karl@gnu.org>
50725 * doc/gnulib.texi (Quoting): new node.
50726 (Initial import): more info, from Patrice.
50728 2005-07-11 Bruno Haible <bruno@clisp.org>
50730 * gnulib-tool (func_usage): Document option --avoid.
50731 (Command line options): Handle --avoid.
50732 (func_acceptable): New function.
50733 (func_modules_transitive_closure): Use it.
50735 2005-07-11 Bruno Haible <bruno@clisp.org>
50737 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50738 Reported by Jim Meyering.
50740 2005-07-10 Bruno Haible <bruno@clisp.org>
50742 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50743 Needed when size_t is smaller than 'unsigned int'.
50744 Reported by Paul Eggert.
50746 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50748 * modules/argp (Depends-on): Add unlocked-io
50750 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50752 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50755 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
50757 * config/srclist.txt: Comment out regcomp.c, since we have a porting
50760 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
50761 and Paul Eggert <eggert@cs.ucla.edu>
50763 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50764 in wint_t, not wchar_t. Remove now-unnecessary cast.
50766 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50768 * modules/regex (Files): Add lib/regex_internal.c,
50769 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50770 (Depends-on): Add extensions.
50771 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50773 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50775 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50777 * m4/same.m4 (gl_SAME): Likewise.
50778 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50780 * m4/regex.m4: Adjust to new libc regex implementation.
50781 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50782 all the .c and .h parts of (the new) regex.
50783 Quote the m4 stuff better.
50784 Check for RE_ICASE bug of old gnulib.
50785 Check for REG_STARTEND of recent libc.
50786 Rename local variables from jm_* to gl_*.
50787 Quote operand of "test -f".
50788 Say "recent enough" version of libc, not "version 2".
50789 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50790 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
50791 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50792 Remove check for btowc, isascii.
50793 Require AM_LANGINFO_CODESET.
50795 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50797 * lib/regex.c, regex.h: Sync from libc.
50798 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50800 New files, synced from libc, except that regex_internal.h
50801 currently has a small porting fix.
50803 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50805 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50806 regex_internal.c, regexec.c.
50807 Add regex_internal.h too, but as a comment, since the libc version
50808 is currently broken in gnulib mode.
50810 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
50812 Support programs like Emacs that use gnulib but not gettext.
50813 * MODULES.html.sh (Internationalization functions): Add gettext-h.
50814 * modules/gettext-h: New file.
50815 * modules/gettext (Files): Remove lib/gettext.h.
50816 (Depends-on): Add gettext-h.
50817 (Makefile.am): Remove lib_SOURCES.
50818 * modules/argmatch, modules/c-stack, modules/closeout:
50819 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50820 * modules/execute, modules/file-type, modules/getaddrinfo:
50821 * modules/getopt, modules/human, modules/javacomp:
50822 * modules/javaexec, modules/mkdir-p, modules/obstack:
50823 * modules/openat, modules/pagealign_alloc, modules/pipe:
50824 * modules/quotearg, modules/regex, modules/rpmatch:
50825 * modules/unicodeio, modules/userspec, modules/version-etc:
50826 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50828 Depend on gettext-h, not gettext.
50830 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
50832 * gnulib-tool (func_import): Add support for 'public domain' license.
50833 * modules/alloca, modules/atexit, modules/memmove:
50834 Now public domain, not GPL.
50835 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50836 * modules/realloc, modules/strerror, modules/strtod:
50839 2005-07-05 Bruno Haible <bruno@clisp.org>
50841 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50842 autoconf CVS. Needed for mingw.
50844 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50846 Remove the dependency of the strftime module on the tzset module.
50847 * modules/strftime (Depends-on): Remove dependency on tzset.
50849 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50851 Remove the dependency of the strftime module on the tzset module.
50852 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50853 gl_FUNC_TZSET_CLOBBER.
50855 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50857 Remove the dependency of the strftime module on the tzset module.
50858 * lib/strftime.c (my_strftime)
50859 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50860 Copy the input structure, to work around some of the bug with
50861 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
50862 Solaris releases, you should also use the tzset module, but we won't
50863 require it as a dependency any more since we don't want LGPLed code
50864 to depend on GPLed code.
50866 2005-07-02 Jim Meyering <jim@meyering.net>
50868 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50869 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50870 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50871 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50873 2005-07-02 Jim Meyering <jim@meyering.net>
50875 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50877 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50879 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50880 declares only 'struct timespec;' (!).
50882 2005-07-01 Jim Meyering <jim@meyering.net>
50884 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50885 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50886 * lib/save-cwd.c, tempname.c:
50887 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50888 and don't include <sys/file.h>).
50890 2005-06-29 Jim Meyering <jim@meyering.net>
50892 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50893 type name. Use the variable name instead.
50894 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50897 2005-06-28 Simon Josefsson <jas@extundo.com>
50899 * modules/check-version (Files): Add check-version.m4.
50901 2005-06-28 Simon Josefsson <jas@extundo.com>
50903 * m4/check-version.m4: New file, suggested by Jim Meyering
50904 <jim@meyering.net>.
50906 2005-06-28 Simon Josefsson <jas@extundo.com>
50908 * lib/check-version.h, lib/check-version.c: New files.
50910 2005-06-28 Simon Josefsson <jas@extundo.com>
50912 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50913 collision with global variable. Better indentation. Don't
50914 increment buffer pointer beyond buffer end. Based on comments
50915 from Paul Eggert <eggert@cs.ucla.edu>.
50917 * lib/base64.h: Indent.
50919 2005-06-28 Simon Josefsson <jas@extundo.com>
50921 * doc/gnulib.texi (Library version handling): New section.
50923 2005-06-28 Jim Meyering <jim@meyering.net>
50925 * check-module (find_included_lib_files): Hard-code another
50926 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50927 but modules/fts-lgpl (correctly) does not list those files.
50929 * modules/canonicalize (Files): Add lib/pathmax.h.
50931 2005-06-25 Simon Josefsson <jas@extundo.com>
50933 * modules/check-version: New file.
50935 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50937 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50938 initializer of struct addrinfo, as an indication that we don't
50939 care how many members the structure has.
50941 2005-06-24 Derek Price <derek@ximbiot.com>
50942 and Bruno Haible <bruno@clisp.org>
50944 Remove stat module & update lstat.
50945 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50946 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50947 * m4/stat.m4: Remove this file.
50949 2005-06-24 Derek Price <derek@ximbiot.com>
50950 and Bruno Haible <bruno@clisp.org>
50952 Remove stat module & update lstat.
50953 * lib/stat.c: Remove this file...
50954 (slash_aware_lstat): ...moving this content and its support...
50955 * lib/lstat.c (rpl_lstat): ...into here.
50956 * lib/lstat.h: New file.
50958 2005-06-24 Derek Price <derek@ximbiot.com>
50959 and Bruno Haible <bruno@clisp.org>
50961 Remove stat module & update lstat.
50962 * config/srclist.txt (libc sources): Remove stat.
50964 2005-06-24 Derek Price <derek@ximbiot.com>
50965 and Bruno Haible <bruno@clisp.org>
50967 Remove stat module & update lstat.
50968 * MODULES.html.sh (stat): Remove.
50969 * MODULES.html: Regenerated.
50970 * modules/lstat (Description): Correct function name.
50971 (Files): Add "lstat.h".
50972 (Depends-on): Remove stat, add xalloc, stat-macros.
50973 * modules/stat: Remove this file.
50974 (Include): Add "lstat.h", remove <sys/stat.h>.
50976 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
50978 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
50979 (ranged_convert): Don't save conversion in a temporary struct.
50980 This causes a warning with GCC 4.0.0, and anyway in the typical
50981 case it's not worth the extra 100 bytes or so of code.
50982 (ranged_convert, __mktime_internal): When calling a function via a
50983 pointer P, use P () rather than (*P) (), as we now assume C89 or
50986 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
50988 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50989 "who -r" failed to give output. Problem reported by Tim Waugh.
50991 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50992 (xcalloc): Use it to avoid needless tests.
50993 Problem reported by Jim Meyering.
50995 2005-06-20 Derek Price <derek@ximbiot.com>
50997 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50998 unnecessary for Autoconfs > 2.59c.
51000 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51002 * lib/argp.h (__option_is_short): Check upper limit of
51003 __key. Isprint() requires its argument to have the value
51004 of an unsigned char or EOF.
51006 2005-06-16 Jim Meyering <jim@meyering.net>
51008 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51009 when either N or S is zero.
51011 2005-06-16 Derek Price <derek@ximbiot.com>
51013 * m4/bison.m4: Declare YACC & YFLAGS precious.
51015 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
51017 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51018 multibyte string or pattern, fall back on unibyte matching.
51019 Problem reported by James Youngman.
51021 2005-06-08 Bruno Haible <bruno@clisp.org>
51023 * modules/csharpcomp: New file.
51024 * MODULES.html.sh (C#): Add csharpcomp.
51026 2005-06-08 Bruno Haible <bruno@clisp.org>
51028 * m4/csharpcomp.m4: New file, from GNU gettext.
51030 2005-06-08 Bruno Haible <bruno@clisp.org>
51032 * lib/csharpcomp.h: New file, from GNU gettext.
51033 * lib/csharpcomp.c: New file, from GNU gettext.
51034 * lib/csharpcomp.sh.in: New file, from GNU gettext.
51036 2005-06-08 Bruno Haible <bruno@clisp.org>
51038 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51041 2005-06-07 Derek Price <derek@ximbiot.com>
51044 * lib/glob_.h: Indent nested #ifdef.
51046 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51048 Sync from coreutils.
51049 Use "file name" when talking about file names, instead of "filename"
51050 or "path", as per the GNU coding standards.
51051 * lib/mkdir-p.c: Renamed from makepath.c.
51052 (make_dir_parents): Renamed from make_path. All callers changed.
51053 * lib/mkdir-p.h: Likewise. All includers changed.
51054 * lib/filenamecat.c: Renamed from path-concat.c.
51055 (file_name_concat): Renamed from path_concat. All callers changed.
51056 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51057 * lib/filenamecat.h: Likewise. All includers changed.
51058 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51059 in comments or local variable names.
51060 * lib/basename.c: Likewise.
51061 * lib/canonicalize.c, canonicalize.h: Likewise.
51062 * lib/dirname.c, dirname.h: Likewise.
51063 * lib/euidaccess.c: Likewise.
51064 * lib/exclude.c: Likewise
51065 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51066 * lib/fsusage.c, fsuage.h: Likewise.
51067 * lib/fts.c, fts_.h: Likewise.
51068 * lib/getcwd.c: Likewise.
51069 * lib/getloadavg.c: Likewise.
51070 * lib/mkstemp.c: Likewise.
51071 * lib/mountlist.c, mountlist.h: Likewise.
51072 * lib/openat.c, openat.h: Likewise.
51073 * lib/readlink-stub.c: Likewise.
51074 * lib/readutmp.c, readutmp.h: Likewise.
51075 * lib/rename.c: Likewise.
51076 * lib/rmdir.c: Likewise.
51077 * lib/same.c: Likewise.
51078 * lib/savedir.c: Likewise.
51079 * lib/stripslash.c: Likewise.
51080 * lib/tempname.c: Likewise.
51081 * lib/xreadlink.c: Likewise.
51082 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51084 * lib/exclude.h: Likewise.
51086 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51087 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51088 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51089 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51090 * lib/pathmax.h: Include <limits.h> unconditionally, since other
51091 files have been getting away with it for years (MORE/BSD 4.3
51093 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51094 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51096 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51097 Define to 256, not 255, as per modern POSIX.
51099 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51101 Sync from coreutils.
51102 Use "file name" when talking about file names, instead of "filename"
51103 or "path", as per the GNU coding standards.
51104 * MODULES.html.sh: mkdir-p renamed from makepath.
51105 filenamecat renamed from path-concat.
51106 * modules/filenamecat: Renamed from modules/path-concat.
51107 (Files): filenamecat.h and filenamecat.c renamed from
51108 path-concat.h and path-concat.c.
51109 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51110 (Include): filenamecat.h, not path-concat.h.
51111 * modules/mkdir-p: Renamed from modules/makepath.
51112 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51114 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51115 (Include): mkdir-p.h, not makepath.h.
51117 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51119 Sync from coreutils.
51120 * m4/mkdir-p.m4: Renamed from makepath.m4.
51121 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
51122 Rename files from makepath.c to mkdir-p.c, and from
51123 makepath.h to mkdir-p.h.
51124 * m4/filenamecat.m4: Renamed from path-concat.m4.
51125 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
51126 Rename files from path-concat.c to filenamecat.c,
51127 and from path-concat.h to filenamecat.h.
51128 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51129 "file name" in local variables or comments.
51130 * m4/rename.m4: Likewise.
51132 2005-06-01 Bruno Haible <bruno@clisp.org>
51134 * modules/csharpexec: New file.
51135 * MODULES.html.sh (C#): New section.
51137 2005-06-01 Bruno Haible <bruno@clisp.org>
51139 * m4/csharp.m4: New file, from GNU gettext.
51140 * m4/csharpexec.m4: New file, from GNU gettext.
51142 2005-06-01 Bruno Haible <bruno@clisp.org>
51144 * lib/csharpexec.h: New file, from GNU gettext.
51145 * lib/csharpexec.c: New file, from GNU gettext.
51146 * lib/csharpexec.sh.in: New file, from GNU gettext.
51148 2005-05-31 Derek Price <derek@ximbiot.com>
51149 Paul Eggert <eggert@cs.ucla.edu>
51152 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51154 2005-05-31 Derek Price <derek@ximbiot.com>
51155 Paul Eggert <eggert@cs.ucla.edu>
51158 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51160 2005-05-29 Derek Price <derek@ximbiot.com>
51162 * config/srclist.txt (glob_.h, glob.c): Add these files.
51164 2005-05-29 Derek Price <derek@ximbiot.com>
51166 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51167 * modules/glob: New file.
51168 * modules/getlogin_r: Add link to POSIX spec in description.
51170 2005-05-29 Derek Price <derek@ximbiot.com>
51171 Paul Eggert <eggert@cs.ucla.edu>
51173 * m4/glob.m4: New file.
51175 2005-05-29 Derek Price <derek@ximbiot.com>
51176 Paul Eggert <eggert@cs.ucla.edu>
51178 * lib/glob_.h, lib/glob.c: New files.
51180 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51182 * modules/fts (Files): Remove m4/inttypes-pri.m4.
51183 * modules/fts-lgpl (Depends-on): Remove gettext.
51185 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51187 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51188 and don't require gt_INTTYPES_PRI.
51190 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
51192 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51194 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51195 the configuration hassle isn't worth it.
51196 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51197 (LONGEST_MODIFIER, PRIuMAX): Remove.
51199 2005-05-27 Bruno Haible <bruno@clisp.org>
51201 * lib/getlogin_r.h: Remove second include of <stddef.h>.
51203 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
51205 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51206 _POSIX_PTHREAD_SEMANTICS for Solaris.
51208 2005-05-25 Derek Price <derek@ximbiot.com>
51210 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51212 2005-05-25 Derek Price <derek@ximbiot.com>
51213 Paul Eggert <eggert@cs.ucla.edu>
51215 * modules/getlogin_r, m4/getlogin_r.m4: New files.
51216 * lib/getlogin_r.c, getlogin_r.h: New files.
51218 2005-05-25 Bruno Haible <bruno@clisp.org>
51219 Derek Price <derek@ximbiot.com>
51221 * lib/getlogin_r.h: Simplify API documentation.
51223 2005-05-23 Derek Price <derek@ximbiot.com>
51225 * modules/minmax (Files): Add m4/minmax.m4.
51226 (configure.ac): Add gl_MINMAX.
51228 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
51230 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51231 so that unistd-safer.h (GPL'ed code) need not be included.
51233 2005-05-22 Bruno Haible <bruno@clisp.org>
51235 * m4/minmax.m4: New file.
51236 Based on a patch by Derek Price <derek@ximbiot.com>.
51238 2005-05-22 Bruno Haible <bruno@clisp.org>
51240 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51241 (INT64_MIN): Fix definition.
51242 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51244 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51245 NEED_SIGNED_INT_TYPES.
51247 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51248 HAVE_SYSTEM_INTTYPES.
51250 2005-05-22 Bruno Haible <bruno@clisp.org>
51252 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51253 Also include <sys/param.h> if it defines MIN, MAX.
51254 Based on a patch by Derek Price <derek@ximbiot.com>.
51256 2005-05-21 Jim Meyering <jim@meyering.net>
51258 * modules/fts (Files): Add m4/inttypes-pri.m4.
51259 (Depends-on): Add lstat and remove gettext. Alphabetize.
51261 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51264 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51265 (setup_dir, free_dir): New functions.
51266 (enter_dir, leave_dir): Define trivial
51267 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
51268 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
51269 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51270 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51271 Move to fts-cycle.c.
51272 (fts_open): Use setup_dir.
51273 (fts_close): Use free_dir.
51274 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51275 This adds a label and some gotos, but the alternatives were messier.
51276 Check for memory allocation failure when entering a dir.
51277 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51278 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51279 (FTS): New member fts_cycle, that is a union that contains the
51280 old active_dir_ht and cycle_state. All uses changed to mention
51281 fts_cycle.ht and fts_cycle.state.
51282 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51283 fts.c, with the following changes:
51284 (setup_dir, free_dir): New functions.
51285 (enter_dir): Now returns bool. Return true if successful, false
51286 if memory exhausted. All callers changed.
51287 Do not bother partly cleaning up on
51288 memory allocation failure; that is free_dir's job.
51289 However, free ad if hash_insert fails, to avoid memory leak.
51290 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51291 fts->fts_options to see which union member to use.
51293 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51295 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51296 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51298 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
51300 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51302 2005-05-20 Jim Meyering <jim@meyering.net>
51304 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51305 Now a macro, to pacify GCC.
51307 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51309 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51312 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
51314 * lib/chown.c (rpl_chown): Return -1 on failure.
51316 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51318 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51319 Don't check for stddef.h.
51320 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51321 don't use its results.
51322 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51323 since we include them unconditionally. Don't require
51324 AM_STDBOOL_H, since stdbool is a prerequisite.
51325 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51326 since we assume C89 or better.
51327 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51328 as we don't use their results.
51329 Don't check for fchdir, memmove, memset, strrchr, as we use
51330 them unconditionally.
51331 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51332 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51334 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
51336 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51337 Include <stddef.h> unconditionally, since we assume C89 now.
51338 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51339 * lib/fts.c: Include fts_.h first, to check interface.
51340 Do not include intprops.h; no longer needed.
51341 Include cycle-check.h and hash.h, since fts_.h no longer does.
51342 Remove unnecessary casts of closedir to void.
51343 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51344 decide whether to decrement nlinks.
51345 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51346 (FTS): Use struct hash_table * instead of Hash_table, so that
51347 we no longer need to include hash.h here.
51349 2005-05-18 Jim Meyering <jim@meyering.net>
51351 * modules/dirfd (License): Change to LGPL. Most of the code
51352 is already in the public domain.
51354 2005-05-18 Jim Meyering <jim@meyering.net>
51356 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51357 Reported by Yoann Vandoorselaere.
51359 2005-05-17 Jim Meyering <jim@meyering.net>
51361 * m4/fts.m4: New file, from coreutils.
51363 2005-05-17 Jim Meyering <jim@meyering.net>
51365 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51367 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51369 Sync from coreutils.
51370 * m4/unlinkdir.m4: New file.
51372 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51374 Sync from coreutils.
51375 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51376 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51377 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51378 White space changes only.
51379 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51381 * lib/yesno.c: Include getline.h, not ctype.h.
51382 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51383 Use getline to remove arbitrary restriction on response length.
51385 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51387 * config/srclist-update: Spell out "Street" in FSF postal
51388 mail address; this is the style the FSF seems to prefer.
51390 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51391 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51392 this updates FSF postal mail address.
51394 Sync from coreutils.
51395 * modules/unlinkdir: New file.
51396 * modules/yesno (Depends-on): Add getline.
51397 * MODULES.html.sh (File system functions): Add unlinkdir.
51399 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51401 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51403 Change the initial comment to refer to GPL, not LGPL.
51404 gnulib-tool will change it to LGPL as needed.
51406 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51407 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51408 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51409 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51410 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51411 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51412 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51413 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51414 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51415 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51416 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51417 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51418 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51419 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51420 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51421 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51422 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51423 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51424 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51425 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51426 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51427 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51428 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51429 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51430 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51431 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51432 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51433 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51434 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51435 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51436 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51437 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51438 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51439 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51440 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51441 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51442 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51443 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51444 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51445 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51446 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51447 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51448 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51449 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51450 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51451 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51452 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51453 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51454 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51455 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51456 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51457 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51458 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51459 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51460 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51461 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51462 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51463 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51464 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51465 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51466 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51467 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51468 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51469 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51470 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51471 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51472 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51473 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51474 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51475 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51476 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51477 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51478 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51479 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51480 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51481 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51482 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51483 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51484 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51485 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51486 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51487 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51488 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51489 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51490 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51491 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51492 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51493 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51494 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51495 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51496 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51497 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51498 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51499 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51500 lib/yesno.c, lib/yesno.h:
51501 Update FSF postal mail address.
51503 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51505 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51506 tests/test-memmem.c, tests/test-stpncpy.c:
51507 Update FSF postal mail address.
51509 2005-05-13 Bruno Haible <bruno@clisp.org>
51511 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51512 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51513 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51514 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51515 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51516 Add support for 64-bit integers in the MSVC compiler.
51518 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51520 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51522 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51524 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51526 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51528 * doc/getdate.texi (General date syntax): Don't say that date
51529 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51530 Problem reported by Nic Ferrier.
51532 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51534 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51535 specified in ai_socktype. Fix invalid ai_protocol
51536 check. ai_protocol is usually set to 0 or depending on
51537 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51538 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51539 ai_socktype / ai_protocol in the returned addrinfo structure.
51541 2005-05-10 Simon Josefsson <jas@extundo.com>
51543 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51544 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51546 2005-05-10 Karl Berry <karl@gnu.org>
51548 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51549 (from http://www.gnu.org/licenses).
51550 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51551 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51554 2005-05-10 Karl Berry <karl@gnu.org>
51556 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51557 (COPYING.DOC): remove.
51559 * config/srclist-update: new FSF address.
51561 2005-05-10 Derek Price <derek@ximbiot.com>
51563 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51566 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51567 Bruno Haible <bruno@clisp.org>
51569 * modules/inet_ntop: New file.
51570 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51573 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51574 Bruno Haible <bruno@clisp.org>
51576 * m4/inet_ntop.m4: New file.
51578 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51579 Bruno Haible <bruno@clisp.org>
51581 * lib/inet_ntop.h: New file.
51582 * lib/inet_ntop.c: New file, from glibc with modifications.
51584 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
51586 * modules/time_r (License): Change to LGPL.
51587 * modules/extensions (License): Change to LGPL. Actually,
51588 the license is more permissive than that, but currently gnulib-tool
51589 doesn't know how to handle more-permissive licenses.
51591 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51592 Problem reported by Dave Love.
51594 2005-05-08 Jim Meyering <jim@meyering.net>
51596 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51599 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
51601 * modules/argmatch (Depends-on): Add stdbool.
51602 * modules/backupfile (Depends-on): Likewise.
51603 * modules/chdir-long (Depends-on): Likewise.
51604 * modules/closeout (Depends-on): Likewise.
51605 * modules/cycle-check (Depends-on): Likewise.
51606 * modules/dirname (Depends-on): Likewise.
51607 * modules/fnmatch (Depends-on): Likewise.
51608 * modules/fsusage (Depends-on): Likewise.
51609 * modules/fwriteerror (Depends-on): Likewise.
51610 * modules/getcwd (Depends-on): Likewise.
51611 * modules/getloadavg (Depends-on): Likewise.
51612 * modules/hard-locale (Depends-on): Likewise.
51613 * modules/makepath (Depends-on): Likewise.
51614 * modules/mountlist (Depends-on): Likewise.
51615 * modules/nanosleep (Depends-on): Likewise.
51616 * modules/posixtm (Depends-on): Likewise.
51617 * modules/quotearg (Depends-on): Likewise.
51618 * modules/readtokens (Depends-on): Likewise.
51619 * modules/readtokens0 (Depends-on): Likewise.
51620 * modules/readutmp (Depends-on): Likewise.
51621 * modules/save-cwd (Depends-on): Likewise.
51622 * modules/strftime (Depends-on): Likewise.
51623 * modules/userspec (Depends-on): Likewise.
51624 * modules/utimecmp (Depends-on): Likewise.
51625 * modules/xgetcwd (Depends-on): Likewise.
51626 * modules/xnanosleep (Depends-on): Likewise.
51627 * modules/xstrtod (Depends-on): Likewise.
51628 * modules/yesno (Depends-on): Likewise.
51630 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
51632 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51635 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51637 Merge from coreutils. Among other things,
51638 add bulletproofing for cases where stdin, stdout, or stderr are closed.
51639 * lib/fd-safer.c: New file.
51640 * lib/fcntl-safer.h, open-safer.c: Remove.
51641 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51642 * lib/dup-safer.c: Include unistd-safer.h first.
51643 Don't include errno.h.
51644 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51645 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51646 * lib/file-type.c: Rely on file-type.h change.
51647 * lib/getloadavg.c: Include unistd-safer.h.
51648 (getloadavg): Use safer open.
51649 * lib/getusershell.c: Include "stdio-safer.h".
51650 (getusershell): Use safer fopen.
51651 * lib/long-options.c (long_options): Use NULL rather than 0.
51652 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51654 * lib/modechange.c: Likewise.
51655 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51656 (MODE_DONE): New constant.
51657 (struct mode_change): Remove 'next' member.
51658 (make_node_op_equals): New function; like the old one of the
51659 same name, except it allocates an array.
51660 (mode_compile, mode_create_from_ref): Use it.
51661 (mode_compile): Allocate result as an array, not a linked list.
51662 Parse octal string ourself, so that we catch mistakes like "+0".
51663 (mode_adjust): Arg is an array, not a linked list.
51664 * lib/modechange.c: Include stat-macros.h, xalloc.h.
51665 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51666 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51667 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51668 Remove. This is now stat-macros.h's job.
51669 (talloc): Remove. All callers replaced by xalloc, so that
51670 our invokers don't have to worry about reporting memory failures.
51671 (make_node_op_equals): Remove.
51672 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51674 (struct mode_change): Moved here from modechange.h.
51675 (mode_append_entry): Remove.
51676 (mode_compile): Remove MASKED_OPS arg, since it encouraged
51677 apps to have incorrect behavior. Use simpler algorithm for head
51678 and tail. Don't futz with umask; that's now the job of mode_adjust.
51679 Detect more invalid usages rather than having somewhat-random behavior.
51680 Don't insert an "a=" action, as that leads to incorrect behavior.
51681 (mode_compile, mode_create_from_ref): Return NULL on error instead
51682 of an enum, since now there's only one way to have an error. All
51684 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51685 at the correct time. Simplify calculation of "+u" and its ilk.
51686 Don't mishandle "+X".
51687 (mode_free): Remove "register" and localize decls.
51688 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51689 (struct mode_change): Move to modechange.c; callers don't
51690 need to see this stuff.
51691 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51692 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51693 (mode_change, mode_adjust): Reflect the new signatures noted above.
51694 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51695 that might redefine system include files.
51696 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51697 (my_usleep): Use NULL rather than (void *) 0.
51698 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51699 Use siginterrupt to specify that system calls should be interrupted.
51700 (rpl_nanosleep): Move initialization of suspended closer to call of
51702 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
51703 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
51704 (desirable_utmp_entry): New function.
51705 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51706 using x2nrealloc, to simplify logic.
51707 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51708 size calculation. Do not assume utmp file is a regular file.
51709 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51710 (READ_UTMP_CHECK_PIDS): New constant.
51711 * lib/save-cwd.c: Include unistd-safer.h.
51712 (save_cwd): Use fd_safer.
51713 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51714 [!_LIBC] Include "stat-macros.h" instead.
51715 * lib/unistd-safer.h (fd_safer): New decl.
51717 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51719 * modules/getloadavg (Depends-on): Add unistd-safer.
51720 * modules/getusershell (Depends-on): Add stdio-safer.
51721 * modules/lstat (Depends-on): Remove xalloc.
51722 * modules/mkstemp (Depends-on): Add stat-macros.
51723 * modules/modechange (Depends-on): Remove xstrtol.
51724 Add stat-macros, xalloc.
51725 * modules/save-cwd (Depends-on): Add unistd-safer.
51726 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51727 * modules/unistd-safer (Files): Add lib/fd-safer.c
51728 (Makefile.am): Remove lib_SOURCES.
51730 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51731 Remove fcntl-safer; unistd-safer supersedes it.
51733 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51735 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51737 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51738 (gl_PREREQ_CHOWN): Remove.
51739 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51740 it. Don't require AC_HEADER_STAT.
51741 (gl_PREREQ_LSTAT): Remove.
51742 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51743 Don't require AC_HEADER_STAT.
51744 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51745 (gl_PREREQ_RMDIR): Remove.
51746 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51747 mention stat-macros.h or AC_HEADER_STAT, since we'll make
51748 the stat-macros module a prerequisite.
51749 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51750 * m4/filemode.m4 (gl_FILEMODE): Likewise.
51751 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51752 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51753 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51755 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51756 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
51758 * m4/fcntl-safer.m4: Remove.
51759 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51760 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51761 Invoke gl_PREREQ_FD_SAFER.
51762 (gl_PREREQ_FD_SAFER): New macro.
51763 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51764 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51765 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51766 Remove duplicate call to AC_LIBOBJ(readutmp).
51767 (gl_PREREQ_READUTMP): Remove. All uses inlined.
51769 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51770 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
51772 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51774 * MODULES.html.sh (Misc): Add byteswap.
51776 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51778 * modules/getcwd (Depends-on): Add extensions.
51779 * modules/openat (Depends-on): Likewise.
51781 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51783 * modules/byteswap: New file.
51785 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51787 * m4/byteswap.m4: New file.
51789 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51791 * lib/byteswap_.h: New file.
51793 2005-04-25 Karl Berry <karl@gnu.org>
51795 * m4/gettext.m4: Update from GNU gettext 0.14.4.
51797 2005-04-25 Albert Chin <china@thewrittenword.com>
51799 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51802 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
51804 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51805 (func_ln_if_changed) Remove forcibly for no error message
51806 in case file does not exist.
51808 2005-04-19 Simon Josefsson <jas@extundo.com>
51810 * gnulib-tool (Options): Make --symlink mean --symbolic.
51812 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
51814 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
51816 2005-04-16 Simon Josefsson <jas@extundo.com>
51818 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51820 2005-04-15 Simon Josefsson <jas@extundo.com>
51822 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51824 2005-04-15 Simon Josefsson <jas@extundo.com>
51826 * gnulib-tool: Rename --symlink to --symbolic.
51828 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
51830 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51831 symbolic links to files instead of copying/moving. Add --aux-dir,
51832 specifying directory relative --dir where auxiliary build tools
51835 2005-04-14 Bruno Haible <bruno@clisp.org>
51837 * modules/allocsa (License): Change to LGPL.
51838 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51840 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
51842 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51843 that "UTC +1 second" continues to work. Problem reported
51844 by Dmitry V. Levin.
51845 (relunit_snumber): New rule.
51848 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
51850 * lib/getdate.y (universal_time_zone_table): New constant.
51851 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51852 universal_time_zone_table.
51853 (lookup_zone): Prefer universal_time_zone_table to
51854 local_time_zone_table, so that "GMT" time stamps are allowed in
51855 London during the summer. Problem reported by Ian Abbott.
51857 2005-04-12 Jim Meyering <jim@meyering.net>
51859 * lib/human.c (humblock): Set *options even when returning due to
51860 xstrtoumax conversion failure. Thanks to a used-uninitialized
51861 warning from gcc-4.
51863 2005-04-09 Jim Meyering <jim@meyering.net>
51865 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51866 -Wuninitialized: initialize tm0.tm_year.
51868 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51870 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51871 count, since there's no maximum. All uses changed.
51872 Add member dsts_seen.
51873 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51875 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51876 Use pc_rels_seen to decide whther a date is absolute.
51878 * lib/getdate.y (number): Don't overwrite year.
51879 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51882 2005-04-02 Simon Josefsson <jas@extundo.com>
51884 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51885 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51887 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51889 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51890 where no absolute path name can be longer than PATH_MAX.
51892 2005-03-27 Jim Meyering <jim@meyering.net>
51894 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51896 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51898 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51899 "one's complement" -> "ones' complement" in comment, as per Knuth.
51900 "value of type" -> "type or expression" in comment.
51901 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51903 2005-03-26 Jim Meyering <jim@meyering.net>
51906 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51907 Correct typos: s/or/of/.
51909 2005-03-26 Jim Meyering <jim@meyering.net>
51911 * modules/check-include-files: Move to ../ and rename to...
51912 * check-module: ...this.
51914 2005-03-25 Jim Meyering <jim@meyering.net>
51916 * modules/xvasprintf (Files): Add xalloc.h.
51918 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51920 * modules/gettext (Files): config/config.rpath ->
51921 build-aux/config.rpath
51922 * modules/iconv (Files): Likewise.
51923 Problem reported by Oskar Liljeblad.
51925 2005-03-23 Jim Meyering <jim@meyering.net>
51927 * modules/check-include-files: New script to check for
51928 missing dependencies, multiple includes, etc.
51930 * modules/c-strtold (Depends-on): Add xalloc.
51931 * modules/c-strtod (Depends-on): Add xalloc.
51932 * modules/hash (Depends-on): Add xalloc.
51933 (Files): Remove lib/xalloc.h.
51935 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51936 * modules/userspec (Files): Add lib/inttostr.h.
51938 2005-03-23 Jim Meyering <jim@meyering.net>
51940 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51942 2005-03-22 Jim Meyering <jim@meyering.net>
51944 * modules/stat-macros: New module.
51945 * modules/canonicalize, modules/euidaccess, modules/file-type,
51946 * modules/filemode, modules/lchown, modules/makepath,
51947 * modules/rmdir, modules/stat: Depend on new stat-macros module
51948 rather than listing lib/stat-macros.h manually.
51949 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51951 2005-03-22 Jim Meyering <jim@meyering.net>
51953 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51955 2005-03-22 Bruno Haible <bruno@clisp.org>
51957 * config/srclist.txt: Replace target directory 'config' with
51959 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51960 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51963 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
51965 * modules/chdir-long (Depends-on): Add mempcpy.
51967 * modules/acl, modules/backupfile, modules/c-strtod,
51968 modules/c-strtold, modules/canon-host, modules/canonicalize,
51969 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51970 modules/exclude, modules/exitfail, modules/file-type,
51971 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51972 modules/getdate, modules/getline, modules/getpagesize,
51973 modules/getpass, modules/getugroups, modules/group-member,
51974 modules/hard-locale, modules/hash, modules/human, modules/idcache,
51975 modules/inttostr, modules/long-options, modules/makepath,
51976 modules/md5, modules/memcasecmp, modules/memcoll,
51977 modules/modechange, modules/mountlist, modules/path-concat,
51978 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51979 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51980 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51981 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51982 modules/strftime, modules/strndup, modules/strverscmp,
51983 modules/timespec, modules/unlocked-io, modules/userspec,
51984 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51986 Remove lib_SOURCES line from Makefile.am section, as this is now
51987 done automatically by the corresponding Autoconf macro.
51989 2005-03-21 Jim Meyering <jim@meyering.net>
51991 Changes imported from coreutils.
51993 * lib/cycle-check.c: Don't include xalloc.h.
51995 * lib/path-concat.c: Don't include assert.h.
51996 (path_concat): Remove assertion that would have triggered
51997 for ABASE starting with more than one slash.
51998 Reported by Andreas Schwab.
52000 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52001 properly when ABASE is an absolute file name.
52002 Correct the description of this function.
52003 Include <assert.h>.
52004 Add an assertion and a test driver.
52005 This fixes a bug introduced on 2004-07-02.
52006 Andreas Schwab reported the resulting failure of cp --parents:
52007 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52009 2005-03-21 Jim Meyering <jim@meyering.net>
52011 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52012 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52014 2005-03-21 Jim Meyering <jim@meyering.net>
52015 and Paul Eggert <eggert@cs.ucla.edu>
52017 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52018 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52019 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52020 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52021 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52022 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52023 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52024 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52025 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52026 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52027 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52028 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52029 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52030 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52031 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52032 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52033 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52036 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
52038 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52039 (which shouldn't happen), generate nothing instead of returning 0
52040 immediately, so that nstrftime (NULL, ...) doesn't return 0.
52042 2005-03-16 Bruno Haible <bruno@clisp.org>
52044 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52045 HAVE_LONGLONG_64BIT.
52047 2005-03-16 Bruno Haible <bruno@clisp.org>
52049 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52050 HAVE_LONGLONG_64BIT.
52052 2005-03-16 Bruno Haible <bruno@clisp.org>
52054 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52055 HAVE_LONGLONG_64BIT.
52057 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52059 * lib/strftime.c (my_strftime): Prepend space to format so that we can
52060 reliably distinguish strftime failure from empty output on POSIX
52063 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52065 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52066 (iconv_string): Don't guess a size-zero buffer, as that might cause
52067 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
52068 result would be 'too large', where 'too large' is (heuristically)
52069 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52070 overflow concerns. This will prevent some unwanted malloc failures
52071 when the inputs are very large.
52073 2005-03-15 Karl Berry <karl@gnu.org>
52075 * config/srclist.txt (config.rpath): from gettext.
52076 * config/config.rpath: update.
52078 2005-03-15 Bruno Haible <bruno@clisp.org>
52080 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52083 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52086 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52089 2005-03-14 Simon Josefsson <jas@extundo.com>
52091 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52094 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
52096 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52097 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52099 * lib/strtol.c: Likewise.
52101 2005-03-14 Jim Meyering <jim@meyering.net>
52103 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52104 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52105 to be nonzero so that we (and caller) can detect the difference
52106 between a valid zero-length expansion and an error return, even
52107 when the underlying strftime fails before writing anything into
52110 2005-03-14 Bruno Haible <bruno@clisp.org>
52112 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52113 Update from GNU gettext 0.14.3.
52115 2005-03-10 Jim Meyering <jim@meyering.net>
52117 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52119 2005-03-10 Jim Meyering <jim@meyering.net>
52121 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52122 so that this module works on systems without fchdir.
52124 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
52126 Factor int-properties macros into a single file, except for
52127 glibc-related files.
52128 * lib/intprops.h: New file.
52129 * lib/getloadavg.c: Include it instead of limits.h.
52130 (INT_STRLEN_BOUND): Remove.
52131 * lib/human.c: Include intprops.h.
52132 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52133 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52135 * lib/inttostr.h: Include intprops.h instead of limits.h.
52136 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52137 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52138 for consistency with intprops.h.
52139 (time_t_is_integer, twos_complement_arithmetic): Use them.
52140 * lib/sig2str.h: Include <signal.h>, intprops.h.
52141 (INT_STRLEN_BOUND): Remove.
52142 * lib/strftime.c (TYPE_SIGNED): Remove.
52143 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52144 * lib/strtol.c: Adjust comments to match intprops.h.
52145 * lib/userspec.c: Include intprops.h.
52146 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52147 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52148 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52149 instead of rolling our own expressions.
52150 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52152 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
52154 (my_strftime): Do not mishandle years close to INT_MAX, by doing
52155 the right thing even if adding 1900 would overflow. Similarly
52156 for tm_mon + 1 and tm_yday + 1.
52157 Make %Y always equivalent to %C%y, and similarly for %G and %g.
52158 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52159 (DO_SIGNED_NUMBER): New macro.
52160 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52162 2005-03-07 Bruno Haible <bruno@clisp.org>
52164 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52166 2005-03-07 Bruno Haible <bruno@clisp.org>
52168 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52170 2005-03-04 Derek R. Price <derek@ximbiot.com>
52172 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52173 (func_import): Only replace files via --import when they have actually
52176 2005-03-03 Derek R. Price <derek@ximbiot.com>
52178 * m4/mmap-anon.m4: New file.
52179 * m4/pagealign_alloc.m4: New file.
52181 2005-03-03 Derek R. Price <derek@ximbiot.com>
52182 Bruno Haible <bruno@clisp.org>
52184 * modules/pagealign_alloc: New file.
52185 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52187 2005-03-03 Derek R. Price <derek@ximbiot.com>
52188 Bruno Haible <bruno@clisp.org>
52190 * lib/pagealign_alloc.h: New file.
52191 * lib/pagealign_alloc.c: New file.
52193 2005-03-03 Bruno Haible <bruno@clisp.org>
52195 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52196 Use an all-permissive copyright notice, recommended by RMS.
52198 2005-03-02 Bruno Haible <bruno@clisp.org>
52200 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52201 of AIX, the replacement has to be done only after <string.h> is
52202 included, therefore not in config.h. stpncpy.h does the replacement,
52203 and stpncpy.c uses it.
52205 2005-03-02 Bruno Haible <bruno@clisp.org>
52207 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52210 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52212 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52213 The workaround isn't strictly needed for POSIX conformance, and
52214 it's too much of a pain to configure and maintain. We'll ask
52215 people to fix their kernels instead.
52216 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52217 (NANOSLEEP_BUG_WORKAROUND): Remove.
52218 (xnanosleep): Remove the workaround.
52220 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52222 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52223 Reported by Derek Price.
52224 (Include): Add "timespec.h".
52226 * modules/xnanosleep (Depends-on): Remove gethrxtime.
52228 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
52230 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52231 to detect nanosleep bug.
52233 2005-03-01 Bruno Haible <bruno@clisp.org>
52235 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52237 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
52239 * modules/gethrxtime: New file.
52240 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52241 (Depends-on): Add gethrxtime.
52242 (configure.ac): Add gl_XNANOSLEEP.
52243 (Makefile.am): Remove lib_SOURCES line.
52245 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52247 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52248 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52250 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
52252 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52253 * lib/timespec.h (gettime): Return void, since it always
52254 succeeds now. All uses changed.
52255 * lib/gettime.c (gettime) Likewise.
52256 [HAVE_NANOTIME]: Prefer nanotime.
52257 Assume gettimeofday succeeds, as POSIX requires.
52258 Assime time () succeeds, since other code already does.
52259 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52260 (timespec_subtract): Remove.
52261 (NANOSLEEP_BUG_WORKAROUND): New constant.
52262 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52263 things considerably. Use it only on GNU/Linux hosts, since the
52264 workaround shouldn't be needed elsewhere.
52266 2005-02-24 Bruno Haible <bruno@clisp.org>
52268 * modules/gettext (Files): Add m4/glibc2.m4.
52270 2005-02-24 Bruno Haible <bruno@clisp.org>
52272 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52273 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52275 Update from GNU gettext 0.14.2.
52276 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52278 2005-02-24 Bruno Haible <bruno@clisp.org>
52280 * lib/localcharset.c: Update from GNU gettext 0.14.2.
52281 * lib/config.charset: Update from GNU gettext 0.14.2.
52283 2005-02-24 Bruno Haible <bruno@clisp.org>
52285 * lib/gettext.h: Update from GNU gettext 0.14.2.
52287 2005-02-23 Simon Josefsson <jas@extundo.com>
52289 * m4/iconvme.m4: New file.
52291 2005-02-23 Jim Meyering <jim@meyering.net>
52293 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52295 Thanks to Bruno Haible for catching it.
52297 2005-02-22 Simon Josefsson <jas@extundo.com>
52299 * modules/iconvme: New file.
52301 * MODULES.html.sh: Add iconvme.
52303 2005-02-22 Simon Josefsson <jas@extundo.com>
52305 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52307 2005-02-22 Simon Josefsson <jas@extundo.com>
52309 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52311 2005-02-22 Jim Meyering <jim@meyering.net>
52313 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52316 2005-02-20 Neil Conway <neilc@samurai.com>
52318 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52319 returned by OSX/Darwin if the specified buffer is not large
52320 enough for the hostname.
52322 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52324 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52325 pass it to _help, otherwise the latter coredumps trying to
52326 dereference state.root_argp.
52328 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52330 * modules/chdir-long (Depends-on): Add memrchr.
52331 * modules/memrchr (Files): Add lib/memrchr.h.
52332 (Include): "memrchr.h".
52334 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52336 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52338 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52340 * lib/memrchr.h: New file.
52341 * lib/chdir-long.c: Include it.
52342 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52343 Don't bother including stddef.h.
52345 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
52347 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52349 Include <sys/types.h>, for dev_t.
52350 (ME_DUMMY, ME_REMOTE): Move from here....
52351 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52352 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
52354 Include mountlist.h first, to test the interface.
52356 2005-01-29 Bruno Haible <bruno@clisp.org>
52358 * lib/progname.c (program_name): Initialize.
52359 Needed when linking statically on MacOS X.
52361 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52363 Sync from coreutils.
52364 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52365 (Depends-on): Add c-strtod.
52366 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52368 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52370 Sync from coreutils.
52371 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52373 Remove files that are specific to coreutils.
52374 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52376 2005-01-28 Bruno Haible <bruno@clisp.org>
52378 * modules/javacomp: New file.
52379 * MODULES.html.sh (Java): Add javacomp.
52381 2005-01-28 Bruno Haible <bruno@clisp.org>
52383 * m4/javacomp.m4: New file, from GNU gettext.
52385 2005-01-28 Bruno Haible <bruno@clisp.org>
52387 * lib/javacomp.sh.in: New file, from GNU gettext.
52388 * lib/javacomp.h: New file, from GNU gettext.
52389 * lib/javacomp.c: New file, from GNU gettext.
52391 2005-01-26 Simon Josefsson <jas@extundo.com>
52393 * lib/gai_strerror.c: Use GPL in header.
52395 2005-01-26 Bruno Haible <bruno@clisp.org>
52397 * modules/javaexec: New file.
52398 * MODULES.html.sh (Java): Add javaexec.
52400 2005-01-26 Bruno Haible <bruno@clisp.org>
52402 * m4/javaexec.m4: New file, from GNU gettext.
52404 2005-01-26 Bruno Haible <bruno@clisp.org>
52406 * lib/javaexec.sh.in: New file, from GNU gettext.
52407 * lib/javaexec.h: New file, from GNU gettext.
52408 * lib/javaexec.c: New file, from GNU gettext.
52410 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52412 * modules/lchown (Depends-on): Remove lchown.h
52414 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52416 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52417 must be defined if the header file was not found, in order
52418 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52420 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52422 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52423 initializers for struct pentry_state.
52424 (__argp_error): Check return value of __asprintf
52425 (__argp_failure): Translate error message
52427 * lib/argp-parse.c: Removed braces around the expansion of N_()
52429 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52431 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52432 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52433 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52434 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52435 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52436 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52437 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52438 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52439 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52440 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52441 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52442 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52443 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52444 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52445 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52446 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52447 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52448 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52449 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52450 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52451 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52452 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52453 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52454 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52455 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52456 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52457 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52458 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52459 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52460 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52461 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52462 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52463 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52464 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52465 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52466 Use an all-permissive copyright notice, recommended by RMS.
52468 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52470 * modules/chdir-long (Depends-on): Remove mempcpy.
52472 2005-01-21 Jim Meyering <jim@meyering.net>
52474 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52475 same value as for Solaris 9.
52477 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52478 component length. This included changing the parameter to be
52479 of type `char *' rather than `char const *'.
52480 * lib/chdir-long.h (chdir_long): Update prototype.
52482 * lib/openat.c (fdopendir, fstatat): New functions.
52483 * lib/openat.h: Include headers required for use of DIR and struct
52485 [AT_SYMLINK_NOFOLLOW]: Define.
52486 (fdopendir, fstatat): Add prototypes.
52488 2005-01-21 Bruno Haible <bruno@clisp.org>
52490 * modules/classpath: New file.
52491 * MODULES.html.sh (Java): Add classpath.
52493 2005-01-21 Bruno Haible <bruno@clisp.org>
52495 * lib/classpath.h: New file, from GNU gettext.
52496 * lib/classpath.c: New file, from GNU gettext.
52498 2005-01-20 Simon Josefsson <jas@extundo.com>
52500 * modules/version-etc-fsf: New file.
52502 2005-01-20 Simon Josefsson <jas@extundo.com>
52504 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52505 * lib/version-etc.c: Remove version_etc_copyright.
52506 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52507 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52509 2005-01-20 Simon Josefsson <jas@extundo.com>
52511 * lib/base64.h (isbase64): Add.
52513 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52514 using a unsigned prototype, don't inline.
52515 (base64_decode): Use it.
52517 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52519 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52522 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52524 * lib/save-cwd.c (save_cwd): Remove code to support the case
52525 where fchdir is missing or flaky.
52527 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52529 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52531 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52533 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52534 AC_LIBSOURCES now does this.
52535 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52536 with new ullong_max module.
52538 2005-01-19 Bruno Haible <bruno@clisp.org>
52540 * modules/sh-quote: New file.
52541 * MODULES.html.sh (Executing programs): Add sh-quote.
52543 2005-01-19 Bruno Haible <bruno@clisp.org>
52545 * lib/sh-quote.h: New file, from GNU gettext.
52546 * lib/sh-quote.c: New file, from GNU gettext.
52548 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52550 Merge from coreutils.
52551 * m4/ullong_max.m4: New file.
52552 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52553 (gl_MACROS): Assume localeconv exists.
52555 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52557 Merge changes from coreutils, as described below in several
52558 changelogs dated today.
52560 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52561 (O_DIRECTORY): Remove; not needed here, since "." must be
52562 a directory. All uses removed.
52563 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52564 universal on Suns, and we also need to test for IRIX.
52565 Revamp code to use 'if' rather than '#if'.
52566 Avoid unnecessary comparison of cwd->desc to 0.
52568 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52569 for known valid error numbers rather than observed invalid ones.
52571 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52573 * modules/ullong_max: New file.
52575 * modules/chdir-long, modules/openat: New files.
52576 * modules/save-cwd (Depends-on): Depend on chdir-long.
52577 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52579 2005-01-18 Jim Meyering <jim@meyering.net>
52581 Merge from coreutils.
52582 * m4/chdir-long.m4, m4/openat.m4: New files.
52583 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52584 save-cwd.h. Add AC_LIBOBJ for save-cwd.
52585 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52586 is sane and DOES follow symlinks. Besides, testing 20 different
52587 systems found no broken chown implementations.
52588 Prompted by a change in rsync's copy of this macro.
52589 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52591 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52593 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52594 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52595 NULL-means-set-to-current-time semantics.
52596 Remove temporary file immediately, rather than waiting
52597 for configure's at-exit trap code to do it.
52599 2005-01-18 Jim Meyering <jim@meyering.net>
52601 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52603 * lib/utimens.c (futimens): Account for the fact that futimes
52604 can also fail with errno == ENOSYS or errno == ENOENT.
52605 Patch from Dmitry V. Levin.
52607 Change the name of the robust chdir function from chdir to chdir_long.
52608 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52609 (restore_cwd): Use chdir_long, not chdir.
52610 * lib/chdir-long.c: Renamed from chdir.c.
52611 * lib/chdir-long.h: Renamed from chdir.h.
52612 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52615 2005-01-18 Bruno Haible <bruno@clisp.org>
52617 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52618 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52619 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52620 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52621 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52622 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52623 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52624 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52625 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52626 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52627 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52628 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52629 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52630 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52631 Use an all-permissive copyright notice, recommended by RMS.
52633 2005-01-18 Bob Proulx <bob@proulx.com>
52635 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52636 simplify offsetof() macro construct to avoid compile failure with
52637 native HP-UX 11.0 ANSI C compiler.
52639 2005-01-17 Bruno Haible <bruno@clisp.org>
52641 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52642 redundant because stpncpy.m4 takes care of it.
52644 2005-01-17 Bruno Haible <bruno@clisp.org>
52646 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52648 2005-01-17 Bruno Haible <bruno@clisp.org>
52650 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52653 2005-01-17 Bruno Haible <bruno@clisp.org>
52655 * lib/fwriteerror.h (fwriteerror): Change specification to include
52657 * lib/fwriteerror.c: Include <stdbool.h>.
52658 (fwriteerror): At the end, close the file stream. Record whether
52659 stdout was already closed.
52661 2005-01-17 Bruno Haible <bruno@clisp.org>
52663 * lib/execute.c (environ): Declare if needed.
52664 * lib/pipe.c (environ): Likewise.
52665 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52667 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52669 * modules/argp: Depend on vsnprintf
52671 2005-01-10 Jim Meyering <jim@meyering.net>
52673 * modules/closeout (Depends-on): Add atexit.
52675 2005-01-06 Bruno Haible <bruno@clisp.org>
52677 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52679 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
52681 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52682 definitions to be after all include files, to avoid collisions.
52683 Problem reported by Bob Proulx.
52685 2005-01-04 Jim Meyering <jim@meyering.net>
52687 Changes imported from coreutils.
52688 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52689 as the mkstemp template, use a temporary directory and an
52690 8.3-friendly template to avoid trouble on systems like DJGPP.
52691 Reported by Juan M. Guerrero via Stepan Kasal.
52692 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52693 close. Remove the temporary directory right away, rather than waiting
52694 for configure's at-exit trap code to do it.
52695 Suggestion from Stepan Kasal.
52697 2005-01-01 Simon Josefsson <jas@extundo.com>
52699 * gnulib-tool: Print #include directives when --import'ing.
52701 2004-12-28 Simon Josefsson <jas@extundo.com>
52703 * tests/test-base64.c: Include required header files. Remove
52706 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52708 * modules/error (Depends-on): Remove gettext.
52710 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52712 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52713 not needed. This removes a dependency on the gettext module.
52714 [defined _LIBC]: Do not include <libintl.h>; not needed.
52716 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52718 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52719 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52721 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52723 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52726 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52728 * modules/getdate (Depends-on): Remove alloca-opt.
52730 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52732 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52734 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52736 * lib/argp-parse.c: Include <stddef.h>.
52737 (alignof, alignto): New macros.
52738 (parser_init): Don't assume that void * is aligned sufficiently
52741 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52742 need to extend the stack.
52743 (YYINITDEPTH): New macro, so that the initial stack isn't overly
52746 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52748 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52750 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52752 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52753 (2004-10-24) change. Apparently this was a false alarm.
52755 * modules/getdate: Depend on alloca-opt, not alloca.
52757 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52759 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52760 Remove now-obsolete comment about AIX.
52761 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52762 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52763 (YYMAXDEPTH): New macro.
52765 2004-12-18 Simon Josefsson <jas@extundo.com>
52767 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52769 2004-12-18 Bruno Haible <bruno@clisp.org>
52771 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52773 2004-12-18 Bruno Haible <bruno@clisp.org>
52775 * lib/fatal-signal.c (fatal_signals): Make non-const.
52776 (init_fatal_signals): New function.
52777 (uninstall_handlers, install_handlers): Ignore signals that were set to
52779 (at_fatal_signal): Call init_fatal_signals.
52780 (init_fatal_signal_set): Likewise. Ignore signals that were set to
52782 Reported by Paul Eggert.
52784 2004-12-18 Bruno Haible <bruno@clisp.org>
52786 * doc/alloca.texi: New file.
52787 * doc/alloca-opt.texi: New file.
52789 2004-12-17 Jim Meyering <jim@meyering.net>
52791 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52792 Otherwise, install-sh could exit with improper exit status when
52793 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
52795 2004-12-16 Simon Josefsson <jas@extundo.com>
52797 * tests/test-base64.c: Add license.
52799 2004-12-15 Stepan Kasal <address@hidden>
52801 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52803 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
52805 * modules/getcwd (Files): Add m4/d-ino.m4.
52806 Suggested by Mark D. Baushke.
52808 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52810 * lib/getdate.y (textint): New member "negative".
52811 (time_zone_hhmm): New function.
52812 Expect 14 shift-reduce conflicts, not 13.
52813 (o_colon_minutes): New rule.
52814 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52815 (yylex): Set the "negative" member of signed numbers.
52817 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52819 * doc/getdate.texi (Time of day items, Time zone items):
52820 Describe new formats +00:00, UTC+00:00.
52822 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
52824 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52825 spurious "-l"s. Problem reported by Stepan Kasal.
52827 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
52829 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52830 in Autoconf 2.59. Problem reported by Mark D. Baushke.
52832 2004-12-04 Simon Josefsson <jas@extundo.com>
52834 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52835 Vandoorselaere <yoann@prelude-ids.org>.
52837 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52839 Changes imported from coreutils.
52840 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52842 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52844 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52846 Changes imported from coreutils.
52847 * lib/hard-locale.c: Assume <locale.h> exists.
52848 Include "strdup.h".
52849 (GLIBC_VERSION): New macro.
52850 (hard_locale): Assume setlocale exists.
52851 Rewrite to avoid #ifdef.
52852 Use strdup rather than malloc + strcpy.
52853 * lib/human.c: Assume <locale.h> exists.
52854 (human_readable): Assume localeconv exists.
52856 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52858 * modules/hard-locale (Depends-on): Add strdup.
52860 2004-12-01 Jakub Jelinek <jakub@redhat.com>
52862 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52863 convert T2, not T. (Imported from libc.)
52865 2004-11-30 Simon Josefsson <jas@extundo.com>
52867 * modules/restrict (License): Change to LGPL.
52869 2004-11-30 Simon Josefsson <jas@extundo.com>
52871 * m4/restrict.m4: Add copyright and copying conditions.
52873 2004-11-30 Simon Josefsson <jas@extundo.com>
52875 * m4/base64.m4: New file.
52877 2004-11-30 Simon Josefsson <jas@extundo.com>
52879 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52882 * tests/test-base64.c: New file.
52884 * modules/base64: New file.
52886 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52888 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52889 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52891 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52893 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52895 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52896 (__getcwd.c): Don't restore errno; glibc doesn't.
52897 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52898 first, falling back to our code only if its results look suspicious.
52899 Ensure that the resulting buffer is only as large as necessary.
52901 * lib/readutmp.c: Include readutmp.h first.
52902 Include <errno.h>, since readutmp.h no longer does that.
52903 * lib/readutmp.h: Don't include <errno.h>,
52904 <sys/param.h>, <time.h>; not needed to establish interface.
52905 (errno): Remove decl.
52906 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52907 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52908 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52910 2004-11-28 Simon Josefsson <jas@extundo.com>
52912 * lib/base64.h, base64.c: New file.
52914 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52916 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52918 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52920 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52921 (Depends-on): Remove pathmax, same. Add mempcpy.
52922 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52923 (Makefile.am): Append getcwd.h to lib_SOURCES.
52924 (Include): Add getcwd.h.
52925 (Maintainer): Change from Jim Meyering to "all, glibc",
52926 since getdate now uses intended-for-glibc code.
52927 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52928 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52930 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52932 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52933 HP's ANSI C compiler.
52934 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52935 Declaring int functions causes warnings on some modern systems and
52936 shouldn't be needed to compile on ancient ones.
52937 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52940 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52941 with the following changes.
52942 (__set_errno): Parenthesize properly.
52943 Include <stdbool.h>.
52944 (MIN, MAX, MATCHING_INO): New macros.
52945 (__getcwd): Define with prototype, not K&R form.
52946 Use heuristics to allocate default buffer on stack if possible.
52947 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52948 behavior, and to avoid the PATH_MAX limit when computing
52950 Use MATCHING_INO to compare inode number to file.
52951 Check for arithmetic overflow in size calculations.
52952 Fix bug in reallocation of dot array that caused getcwd to fail
52953 on directories nested deeper than 75.
52954 Be more careful about saving errno on error.
52955 Do not use realloc; use only free+malloc, as this is a bit
52956 more flexible and avoids a needless copy operation.
52957 Do not inspect st_dev and st_ino for symbolic links; POSIX
52958 doesn't specify the latter.
52959 Check for closedir errors.
52960 Avoid needless casts.
52961 Use "#ifdef weak_alias" around weak_alias, to be like other
52963 The following changes to getcwd.c have effect only when used in
52964 gnulib; they have no effect inside glibc proper.
52965 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52966 as alloca isn't used.
52967 (alloca, __alloca): Likewise.
52968 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52969 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52970 unconditionally, as gnulib assumes C89 or better.
52971 Do not include <sys/param.h>.
52972 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52973 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52975 (NULL) [!defined NULL]: Remove; we assume C89 or better.
52976 Include <dirent.h> in a way that is compatible with modern Autoconf.
52977 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52978 New macros, if not already defined.
52979 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52980 Use "_LIBC", not "defined _LIBC", for consistency.
52981 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52983 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52984 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
52985 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52986 credit only to Jim Meyering and adjust the copyright dates.
52987 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52988 <stdlib.h>, <unistd.h>, "pathmax.h".
52989 Instead, include "xgetcwd.h" (first) and "getcwd.h".
52990 (INITIAL_BUFFER_SIZE): Remove.
52991 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52993 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52995 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52996 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
52997 Use the _ONCE methods, for efficiency.
52998 Check for fcntl.h. In test program, include <errno.h>
52999 and <fcntl.h> if available. Remove old K&R cruft from
53000 test program. Check for common errors in GNU/Linux,
53001 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
53002 don't do AC_LIBOBJ, as that's getcwd.m4's job.
53003 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53004 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
53006 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
53007 accommodate new getcwd.c.
53008 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53009 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53010 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53011 that's all we need now.
53013 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53015 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53016 argp-parse.c depends on getopt internals, that means we should
53017 always use our getopt, to be on the safe side.
53018 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53019 order not to spoil the result of an eventual previous invocation
53020 of gl_GETOPT_SUBSTITUTE.
53022 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53024 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53025 redefinition warnings. To avoid them, include the defines
53026 in `#if !defined __need_getopt ... #endif'. The only place
53027 where __getopt_argv_const is used is in definitions
53028 of getopt_long and getopt_long_only below, which are as well
53029 protected by `#ifndef __need_getopt'.
53030 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53031 __need_getopt after including <stdio.h> and <unistd.h> These
53032 headers might have defined it.
53034 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53036 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53038 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53040 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53041 (futimens): New function, which uses futimes if available.
53042 (futimens, utimens): Support timespec==NULL, with same semantics
53043 as utime and utimens.
53044 * lib/utimens.h (futimens): New decl.
53046 2004-11-23 Jim Meyering <jim@meyering.net>
53048 * lib/getopt_.h: Remove trailing blanks.
53050 2004-11-23 Jim Meyering <jim@meyering.net>
53052 * lib/__fpending.c: Add comment.
53054 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
53056 * modules/canonicalize (Depends-on): Add xreadlink.
53057 Problem reported by James Youngman.
53059 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
53061 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53063 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53064 optopt): Use them instead of invoking ## directly; otherwise, the
53065 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53067 2004-11-19 Bruno Haible <bruno@clisp.org>
53069 * lib/strtok_r.c: Move comments from here...
53070 * lib/strtok_r.h: ... to here.
53072 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53074 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53075 implementations that mishandle size_t overflow.
53077 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53079 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53080 might fail. Problem reported by Yoann Vandoorselaere.
53081 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53082 implementations that mishandle size_t overflow.
53084 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53086 * modules/canon-host (Depends-on): Add strdup.
53088 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53090 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53092 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53094 * lib/canon-host.c: Include "strdup.h".
53095 (canon_host): Use getaddrinfo if available, so that IPv6 works.
53096 Use strdup instead of malloc/strcpy to duplicate strings.
53098 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53099 (human_space_before_unit): New constant.
53100 * lib/human.c (human_readable): Support it.
53102 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53103 (xgetcwd): Set errno correctly when failing.
53104 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53105 the failure is actually due to a PATH_MAX problem.
53107 Further getopt changes to make it more likely that glibc will
53108 buy the changes back.
53109 * lib/getopt.c (POSIXLY_CORRECT): New constant.
53110 (getopt): Use it, so to preserve glibc semantic
53111 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53112 when compiling for libc.
53113 * lib/getopt_.h (__getopt_argv_const): Bring it back.
53114 (getopt_long, getopt_long_only): Use it.
53116 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53117 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
53118 (getopt): Argv is now char * const *, as per standard.
53119 (_getopt_internal_r, _getopt_internal): Argv is now char **,
53120 not char *__getopt_argv_const *.
53121 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53122 _getopt_long_only_r): Likewise.
53123 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53124 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53125 _getopt_long_r, _getopt_long_only_r): Likewise.
53126 * lib/getopt_.h (__getopt_argv_const): Remove.
53127 (getopt): Argv is now char * const *, as per standard.
53129 * lib/getdate.y (tORDINAL): New token.
53130 (day, relunit): Allow it for relative times.
53131 (relative_time_table): Use tORDINAL for ordinals.
53133 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53135 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53136 Document that "second" isn't allowed as an ordinal number.
53138 2004-11-16 Jim Meyering <jim@meyering.net>
53140 * modules/closeout (Depends-on): Add fpending.
53142 2004-11-15 Jim Meyering <jim@meyering.net>
53144 * lib/closeout.c: Include "__fpending.h" once again.
53145 Include <stdbool.h>.
53146 (close_stdout): Don't fail just because stdout was closed initially,
53147 since some programs don't write to stdout in the normal course of
53148 operation (other than --version and --help), and we don't want this
53149 function to make e.g. `touch file >&-' fail.
53150 But do fail if it was closed and someone has tried to write to it.
53151 E.g., `printf foo >&-' must fail.
53153 2004-11-13 Jim Meyering <jim@meyering.net>
53155 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53157 2004-11-12 Simon Josefsson <jas@extundo.com>
53159 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53160 small doc fix is still pending.
53162 2004-11-11 Simon Josefsson <jas@extundo.com>
53164 * modules/strtok_r: New file.
53166 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53169 2004-11-11 Simon Josefsson <jas@extundo.com>
53171 * m4/strtok_r.m4: New file.
53173 * m4/getopt.m4: Replace opterr.
53175 2004-11-11 Simon Josefsson <jas@extundo.com>
53177 * lib/strtok_r.h, strtok_r.c: New file.
53179 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53181 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53182 of replacing opterr, getopt, etc. This should handle the
53183 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53185 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
53187 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53188 we can stop lying to compilers about the constness of argv when we
53189 are compiled outside glibc.
53190 (getopt, getopt_long, getopt_long_only): Use it.
53191 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53192 _getopt_internal, getopt): Likewise.
53193 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53194 _getopt_long_only_r): Likewise.
53195 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53196 _getopt_long_r, _getopt_long_only_r): Likewise.
53198 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53199 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53200 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53201 the other external symbols.
53202 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53203 declaration, since the above renaming now works around collisions.
53205 2004-11-11 Jim Meyering <jim@meyering.net>
53207 * lib/linebreak.c: Remove trailing blanks.
53208 * lib/alloca_.h: Likewise.
53209 * lib/acosl.c: Likewise.
53210 * lib/euidaccess.c: Likewise.
53211 * lib/allocsa.h: Likewise.
53213 2004-11-10 Simon Josefsson <jas@extundo.com>
53215 * m4/getaddrinfo.m4: New file.
53217 2004-11-10 Simon Josefsson <jas@extundo.com>
53219 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53221 2004-11-10 Simon Josefsson <jas@extundo.com>
53223 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53226 * modules/getaddrinfo: New file.
53228 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53230 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53232 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
53234 * lib/mktime.c (SHR): New macro, which is a portable
53235 substitute for >> that should work even on Crays.
53236 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53237 Problem reported by Mark D. Baushke in
53238 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53239 * lib/getdate.y (SHR): Likewise.
53241 * lib/strftime.c (SHR): Likewise.
53243 * lib/quotearg.c (struct quoting_options): Use unsigned int for
53244 quote_these_too, so that right shifts are well defined. All uses
53247 2004-11-10 Jim Meyering <jim@meyering.net>
53249 Ensure that no close failure goes unreported.
53250 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
53251 return early when it seems there's nothing to flush.
53252 Don't include __fpending.h.
53254 2004-11-10 Jim Meyering <jim@meyering.net>
53256 * modules/closeout (Depends-on): Remove fpending.
53258 2004-11-10 Jim Meyering <jim@meyering.net>
53260 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53262 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53264 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
53266 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53267 and AC_REQUIRE when possible, to avoid duplicate checks.
53268 Check for <wchar.h>.
53270 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
53272 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53274 2004-11-09 Bruno Haible <bruno@clisp.org>
53276 * m4/sockpfaf.m4: New file.
53278 2004-11-05 Bruno Haible <bruno@clisp.org>
53280 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53281 Reported by Mark D. Baushke <mdb@cvshome.org>.
53283 2004-11-04 Bruno Haible <bruno@clisp.org>
53285 2004-09-11 Bruno Haible <bruno@clisp.org>
53286 * allocsa.valgrind: New file.
53287 2004-02-06 Bruno Haible <bruno@clisp.org>
53288 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53289 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53290 Reported by Christopher Seip <chris.seip@hp.com>.
53292 2004-11-04 Bruno Haible <bruno@clisp.org>
53294 * modules/allocsa (Files): Add lib/allocsa.valgrind.
53295 (Makefile.am): Distribute it.
53297 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
53299 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53300 with errno == ERANGE if the buffer is too small.
53301 Problem reported by Mark D. Baushke.
53303 2004-11-03 Albert Chin <china@thewrittenword.com>
53304 Paul Eggert <eggert@cs.ucla.edu>
53306 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53307 equivalent, substitute $ac_type for equivalent type rather than
53308 blindly using uint32_t *always* which won't work if uint32_t is not
53309 available. Define _UINT32_T to work around typedef of uint32_t if
53310 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53313 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53315 * m4/jm-macros.m4: Sync from coreutils.
53316 (gl_MACROS): Check for mbrlen, for pathchk.
53317 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53319 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53321 * lib/xreadlink.c (MAXSIZE): New macro.
53322 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
53323 size does not exceed MAXSIZE. Avoid cast.
53324 As suggested by Mark D. Baushke in
53325 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53326 if readlink fails with buffer size just under MAXSIZE, try again
53329 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
53331 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53333 2004-11-02 Derek R. Price <derek@ximbiot.com>
53334 and Paul Eggert <eggert@cs.ucla.edu>
53336 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53337 (get_date): Overparenthesize to avoid GCC warning.
53339 2004-11-02 Bruno Haible <bruno@clisp.org>
53341 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53344 2004-11-02 Bruno Haible <bruno@clisp.org>
53346 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53347 function returns void.
53349 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53351 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53352 fflush_unlocked, flockfile, funlockfile, funlockfile,
53353 fputs_unlocked, putc_unlocked.
53355 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53357 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53358 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53361 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53363 * modules/getdate (Files): Add doc/getdate.texi.
53364 (Depends-on): Add setenv, xalloc.
53366 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53368 * lib/getdate.y: Add support for TZ="foo" within a date string.
53369 Fix some bugs near time_t boundaries. Reject dates with
53370 out-of-range components, e.g., "Sept 31".
53371 Include <stdlib.h>, "setenv.h", "xalloc.h".
53372 (ISDIGIT_LOCALE): Remove; unused.
53373 Note that the TZ and time functions used here are not reentrant.
53374 (mktime_ok, get_tz): New functions.
53375 (TZBUFSIZE): New constant.
53376 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53377 This requires that we sometimes generate our own TZ="XXX..." setting.
53379 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53381 * doc/getdate.texi: New file, from coreutils with modifications for
53382 the new TZ parsing.
53384 2004-10-27 Derek R. Price <derek@ximbiot.com>
53386 * lib/mktime.c (not_equal_tm): Remove redundant check.
53388 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53390 * modules/regex (lib_SOURCES): Add regex.c.
53391 Reported by James Youngman in
53392 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53394 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53396 * lib/getdate.y: Use Bison 1.875 features, and some minor
53397 code cleanups. This change does not affect semantics.
53398 Don't include <stdlib.h>; no longer needed.
53399 Don't include unlocked-io.h; only the "#if TEST" code uses
53400 stdio, and performance isn't crucial there.
53401 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53402 Bison 1.875 features as described below.
53403 All uses of "PC." replaced by "pc->".
53404 (YYSTYPE): Add a forward declaration.
53405 (yylex, yyerror): Use full prototypes in forward decls.
53406 Use "%pure-parser" rather than obsolescent "%pure_parser".
53407 Use %parse-param and %lex-param instead of obsolescent
53408 YYPARSE_PARAM and YYLEX_PARAM.
53409 (meridian_table, month_and_day_table, time_units_table,
53410 relative_time_table, time_zone_table, military_table,
53411 lookup_zone, lookup_word, get_date):
53412 Use NULL instead of 0 where appropriate.
53413 (to_hour): Avoid abort (), to avoid a dependency on
53415 (yyerror, yylex): Now accepts parser_control * arg.
53416 (main) [TEST]: Use '\0' rather than 0 for char.
53418 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53420 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53422 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53424 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53425 It's now the caller's responsibility to handle the case where
53426 !HAVE_GETPAGESIZE && !defined getpagesize.
53428 * lib/mktime.c (leapyear): Arg is long int, not int.
53430 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53432 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53434 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53436 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53437 missing. Problem reported by James Youngman.
53439 2004-10-16 Simon Josefsson <jas@extundo.com>
53441 * gnulib-tool: Fix comments. Fix parse problem.
53442 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53444 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53446 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53447 implementation of getopt_long. Problem reported by Alexander Taler in:
53448 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53450 2004-10-15 Bruno Haible <bruno@clisp.org>
53452 * gnulib-tool: Untabify. Initialize supplied_libname.
53453 (func_usage): More homogenous output.
53454 (func_modules_transitive_closure, func_modules_to_filelist,
53455 func_emit_lib_Makefile_am): New functions.
53456 (func_import): New function, extracted from big case statement. Use
53457 func_get_license, func_modules_transitive_closure,
53458 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53459 opt_lgpl. Don't use test -a, as it's not portable.
53460 (func_create_testdir): Use func_modules_transitive_closure,
53461 func_modules_to_filelist, func_emit_lib_Makefile_am.
53463 2004-10-15 Bruno Haible <bruno@clisp.org>
53465 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53467 2004-10-15 Bruno Haible <bruno@clisp.org>
53469 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53470 the portions belonging to each module.
53471 Suggested by Derek Robert Price <derek@ximbiot.com>.
53473 2004-10-12 Simon Josefsson <jas@extundo.com>
53475 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53476 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53479 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53481 * modules/vsnprintf: New file.
53483 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53485 * m4/vsnprintf.m4: New file.
53487 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53489 * lib/vsnprintf.h: New file.
53490 * lib/vsnprintf.c: New file.
53492 2004-10-11 Bruno Haible <bruno@clisp.org>
53494 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53497 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
53499 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53501 2004-10-07 Bruno Haible <bruno@clisp.org>
53503 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53504 fits into the provided buffer.
53506 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
53508 * lib/diacrit.c, diacrit.h: Add GPL notice.
53510 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53512 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53513 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53514 This avoids a potential constant-folding bug.
53516 2004-10-05 Bruno Haible <bruno@clisp.org>
53518 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53519 for the declaration of strsep.
53521 2004-10-05 Bruno Haible <bruno@clisp.org>
53523 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53525 2004-10-04 Simon Josefsson <jas@extundo.com>
53527 * modules/memmem: New file.
53528 * tests/test-memmem.c: New file.
53529 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53531 2004-10-04 Simon Josefsson <jas@extundo.com>
53533 * m4/memmem.m4: New file.
53535 2004-10-04 Simon Josefsson <jas@extundo.com>
53537 * lib/memmem.h: New file.
53538 * lib/memmem.c: New file, taken from glibc.
53540 2004-10-04 Simon Josefsson <jas@extundo.com>
53542 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53543 '#ifdef USE_UNLOCKED_IO'.
53545 2004-10-04 Simon Josefsson <jas@extundo.com>
53547 * config/srclist.txt: Add memmem from glibc.
53549 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53551 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53553 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53554 modules/exclude, modules/getdate, modules/getline,
53555 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53556 modules/getusershell, modules/linebuffer, modules/md5,
53557 modules/mountlist, modules/posixtm, modules/readtokens,
53558 modules/readutmp, modules/regex, modules/sha1,
53559 modules/version-etc, modules/yesno:
53560 Remove dependency on unlocked-io.
53562 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53564 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53566 * m4/unlocked-io.m4: Add copyright notice.
53567 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53569 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53571 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53572 * lib/xmalloc.c (xmemdup): Likewise.
53573 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53574 XFREE): Remove these long-obsolescent macros.
53575 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53576 * lib/xstrdup.c: Remove.
53578 * lib/regex.c (re_comp): Cast gettext return value to char *,
53579 Problem reported by Martin Neitzel via Mark D. Baushke.
53581 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53583 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53584 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53585 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53586 regex.c, sha1.c, version-etc.c, yesno.c:
53587 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53588 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53589 the includer's responsibility.
53591 Sync from coreutils.
53593 * lib/modechange.c (mode_compile): Don't decrement a pointer that
53594 points to the start of a string, as the C Standard says the
53595 resulting behavior is undefined.
53597 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53598 simple -> simple_backups, numbered_existing ->
53599 numbered_existing_backups, numbered -> numbered_backups
53600 to avoid shadowing problems. All uses changed.
53601 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53602 * lib/backupfile.c (check_extension, numbered_backup):
53603 Rename locals to avoid shadowing 'basename'.
53604 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53607 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53608 * lib/.cvsignore: Add getopt.h.
53610 2004-10-04 Bruno Haible <bruno@clisp.org>
53612 * modules/README: New file.
53613 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53616 2004-10-02 Jim Meyering <jim@meyering.net>
53618 * lib/dirfd.h, getpagesize.h: Add copyright notice.
53620 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53622 * modules/strsep: New file.
53624 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53626 * m4/strsep.m4: New file.
53628 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53630 * lib/strsep.h: New file.
53631 * lib/strsep.c: New file.
53633 2004-10-01 Simon Josefsson <jas@extundo.com>
53635 * lib/snprintf.c (snprintf): Handle size==0.
53637 2004-10-01 Simon Josefsson <jas@extundo.com>
53638 Bruno Haible <bruno@clisp.org>
53640 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53641 (snprintf): Declare 'args'.
53643 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
53645 * lib/snprintf.c: Remove comments as to why each header is needed.
53647 2004-10-01 Bruno Haible <bruno@clisp.org>
53649 * MODULES.html.sh: Add strsep.
53651 2004-09-30 Simon Josefsson <jas@extundo.com>
53653 * modules/snprintf: New file.
53655 2004-09-30 Simon Josefsson <jas@extundo.com>
53657 * m4/snprintf.m4: New file.
53659 2004-09-30 Simon Josefsson <jas@extundo.com>
53661 * lib/snprintf.h, lib/snprintf.c: New files.
53663 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53665 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53666 (hol_entry_help): Never translate an empty string.
53667 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53668 * lib/argp.h (OPTION_NO_TRANS): New option.
53670 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53672 * modules/argp (Maintainer): Replace Simon Josefsson
53673 by Sergey Poznyakoff.
53675 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53677 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53678 changes merged back into glibc.
53680 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53682 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53684 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
53686 * lib/xvasprintf.c: Include xalloc.h.
53687 (xvasprintf): Use xalloc_die, not xmalloc_die.
53689 2004-09-29 Bruno Haible <bruno@clisp.org>
53691 * modules/alloca-opt: New file, derived from modules/alloca.
53692 * modules/allocsa: Depend on alloca-opt instead of alloca.
53693 * modules/setenv: Likewise.
53694 * modules/vasnprintf: Likewise.
53695 * MODULES.html.sh: Add alloca-opt.
53697 2004-09-28 Simon Josefsson <jas@extundo.com>
53699 * gnulib-tool: New parameter --lgpl, to asseert that modules are
53700 LGPL, and to replace license template from GPL to LGPL.
53702 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53704 * modules/dummy: Change license to LGPL.
53706 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53708 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53710 2004-09-24 Simon Josefsson <jas@extundo.com>
53712 * modules/minmax (License): Change from GPL to LGPL.
53714 2004-09-23 Simon Josefsson <jas@extundo.com>
53716 * gnulib-tool (--import): Typo.
53718 2004-09-23 Simon Josefsson <jas@extundo.com>
53720 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53722 2004-09-22 Bruno Haible <bruno@clisp.org>
53724 * modules/*: Add 'License' field.
53725 * gnulib-tool: Accept --extract-license option.
53726 (func_get_license): New function.
53728 2004-09-21 Bruno Haible <bruno@clisp.org>
53730 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53731 Reported by Simon Josefsson.
53733 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53735 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53736 gl_AC_TYPE_LONG_LONG.
53738 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53740 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53742 2004-09-18 Simon Josefsson <jas@extundo.com>
53743 and Paul Eggert <eggert@cs.ucla.edu>
53745 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53746 calls with autoreconf. Define GL_LIB.
53748 2004-09-14 Karl Berry <karl@gnu.org>
53750 * config/srclist.txt: unsync setenv.c, sigh.
53752 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53754 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53755 Problem reported by Bruno Haible in:
53756 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53758 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53760 * config/srclist.txt: Comment out argp-pvh.c.
53762 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
53764 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53765 in case some system header has #define'd it. Problem reported by
53766 Soeren D. Schulze in
53767 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53769 2004-09-09 Karl Berry <karl@gnu.org>
53771 * regex.[ch]: delete from the root. These were supposed to be
53772 synced with emacs cvs, but this has not happened for about
53773 a year, and anyway nothing else uses emacs regex.[ch].
53774 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53775 lib/regex[.ch] is untouched.
53777 2004-09-09 Bruno Haible <bruno@clisp.org>
53779 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53781 2004-09-09 Bruno Haible <bruno@clisp.org>
53783 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53785 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53787 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53789 * modules/xvasprintf: New file.
53790 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53792 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53794 * lib/xvasprintf.h: New file.
53795 * lib/xvasprintf.c: New file.
53796 * lib/xasprintf.c: New file.
53798 2004-09-08 Bruno Haible <bruno@clisp.org>
53800 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53802 2004-09-08 Bruno Haible <bruno@clisp.org>
53804 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53805 length is > INT_MAX.
53806 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53809 2004-09-08 Bruno Haible <bruno@clisp.org>
53811 * lib/stdint_.h: New file, taken from GNU clisp.
53813 2004-09-08 Bruno Haible <bruno@clisp.org>
53814 Oskar Liljeblad <oskar@osk.mine.nu>
53816 * modules/stdint: New file.
53817 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53819 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53821 Import from coreutils.
53822 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53823 strings on unbounded length. alloca's performance benefits aren't
53824 that important here.
53825 (V_STRDUP): Remove.
53826 (parse_with_separator): New function, with most of the internals
53827 of the old parse_user_spec. Allow user to omit both user and group,
53828 for compatibility with FreeBSD.
53829 Clone only the user name, not the entire spec.
53830 Do not set *uid, *gid unless entirely successful.
53831 Avoid memory leak in some failing cases.
53832 Fix regression for USER.GROUP reported by Dmitry V. Levin in
53833 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53834 (parse_user_spec): Rewrite to use parse_with_separator.
53836 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53838 * modules/userspec: Don't depend on alloca.
53840 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53842 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53844 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
53846 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53847 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53848 utimecmp, utimens, xnanosleep. Rename sha to sha1.
53850 2004-08-16 Simon Josefsson <jas@extundo.com>
53852 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53853 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53854 Add --dry-run for --import.
53855 Let user provided command line parameters override configure.ac
53858 2004-08-12 Simon Josefsson <jas@extundo.com>
53860 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53861 as discussed with Paul Eggert in threads rooted at
53862 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53864 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53865 Before, the test was empty, and relied on ELIDE_CODE in source
53867 (gl_PREREQ_GETOPT): New macro.
53868 (gl_GETOPT): Use them.
53870 2004-08-12 Simon Josefsson <jas@extundo.com>
53872 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53873 * lib/getopt_.h: Renamed from getopt.h.
53875 2004-08-12 Simon Josefsson <jas@extundo.com>
53877 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53878 Change default library name from libfoo to libgnu.
53879 Now, if you have a configure.ac that says:
53882 gl_MODULES(error getopt etcetera)
53884 you can import all you need by running:
53885 ../gnulib/gnulib-tool --import
53887 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53888 (Makefile.am): Rewrite, use logic from argz.
53889 (Include): Use <getopt.h> instead of "getopt.h".
53891 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53893 * modules/argp (Files): Add m4/unlocked-io.m4.
53894 (Depends-on): Add extensions.
53896 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53898 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53899 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53900 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53901 Check for program_invocation_name, program_invocation_short_name,
53902 flockfile, funlockfile, features.h, _getopt_long_only_r.
53904 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53906 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53907 its complicated substitute.
53908 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53909 and program_invocation_name.
53910 (__argp_basename) [!_LIBC]: Remove; the only use was
53911 replaced by its body.
53912 (__argp_short_program_name): Change condition from
53913 !defined __argp_short_program_name to
53914 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53915 to match argp-namefrob.h.
53916 (__argp_failure): Don't assume strerror_r returns char *.
53917 * lib/argp-parse.c (N_): Define unconditionally.
53918 (argp_default_options): Fill out initializers with 0 to avoid
53921 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53923 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53926 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53928 Merge from coreutils.
53930 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53932 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53933 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53935 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53937 Merge from coreutils.
53939 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53940 wmemchr or wmemcpy. Problem reported by Robert Dahlem
53941 for Reliant Unix 5.43.
53943 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53944 (union fooround): Use uintmax_t, not long int.
53945 The rest is a merge from libc:
53946 [defined _LIBC]: Include <shlib-compat.h>.
53947 (_obstack) [defined _LIBC]: Remove after 2.3.4.
53949 * lib/settime.c (settime): Recode to avoid warning with
53952 * lib/strverscmp.c: Convert to UTF-8.
53954 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53956 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53959 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53961 * modules/xalloc-die: New file.
53962 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53964 * modules/md5 (Files): Add m4/uint32_t.m4.
53965 * modules/sha1: Renamed from modules/sha.
53967 Rename lib/sha.h to lib/sha1.h.
53968 Rename lib/sha.c to lib/sha1.c.
53969 Rename m4/sha.m4 to m4/sha1.m4.
53970 (lib_SOURCES): Likewise.
53971 (configure.ac): Rename gl_SHA to gl_SHA1.
53972 (Include): sha.h -> sha1.h.
53974 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53976 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53977 * m4/sha1.m4: Renamed from sha.m4.
53978 (gl_SHA1): Renamed from gl_SHA. All uses changed.
53980 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53982 * lib/obstack.h (obstack_empty_p):
53983 Don't assume that chunk->contents is suitably aligned.
53984 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53985 Likewise. Problem reported by Benno in
53986 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53988 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53989 readable. This could be improved further but it'd take some work.
53991 2004-08-08 Simon Josefsson <jas@extundo.com>
53993 * modules/xgethostname (Depends-on): Remove exit and error (not
53996 * modules/getpass-gnu: Add getpass.h.
53997 (Depends-on): Add stdbool.
53998 * modules/getpass: Add getpass.h.
54000 2004-08-08 Simon Josefsson <jas@extundo.com>
54002 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54003 Check getpass declaration.
54005 2004-08-08 Simon Josefsson <jas@extundo.com>
54007 * lib/xgethostname.c: Don't include error.h (not used).
54009 * lib/getpass.h: Add.
54010 * lib/getpass.c: Include getpass.h first.
54012 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
54014 * lib/xalloc-die.c: New file.
54015 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54017 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54018 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54020 (_, N_, xalloc_die): Move to xalloc-die.c.
54021 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54022 so that we needn't mess with xalloc_msg_memory_exhausted.
54024 * lib/sha1.h: Renamed from sha.h.
54025 (SHA1_H): Renamed from _SHA_H.
54026 (sha1_ctx): Renamed from sha_ctx.
54027 (sha1_init_ctx): Renamed from sha_init_ctx.
54028 (sha1_process_block): Renamed from sha_process_block.
54029 (sha1_process_bytes): Renamed from sha_process_bytes.
54030 (sha1_finish_ctx): Renamed from sha_finish_ctx.
54031 (sha1_read_ctx): Renamed from sha_read_ctx.
54032 (sha1_stream): Renamed from sha_stream.
54033 (sha1_buffer): Renamed from sha_buffer.
54034 * lib/sha1.c: Likewise; renamed from sha.c.
54035 Do not include <sys/types.h>.
54036 Include <stddef.h> rather than <stdlib.h>.
54038 2004-08-08 Bruno Haible <bruno@clisp.org>
54040 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54041 FILESYSTEM_PREFIX_LEN.
54042 * lib/progreloc.c: Likewise.
54043 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54045 2004-08-06 Simon Josefsson <jas@extundo.com>
54047 * modules/progname (Depends-on): Don't depend on stdbool.
54049 2004-08-06 Simon Josefsson <jas@extundo.com>
54051 * modules/getsubopt: New file.
54052 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54055 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54057 More merge from coreutils.
54059 * m4/utimens.m4, m4/utimecmp.m4: New files.
54060 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54061 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54062 prereq.m4, sha.m4: Import changes from coreutils.
54064 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54066 More merge from coreutils.
54067 * modules/raise, modules/readtokens0, modules/utimens:
54068 * modules/utimecmp, module/xnanosleep: New files.
54069 * modules/strftime: Add lib/strftime.h.
54070 Change include from <time.h> to "strftime.h".
54071 * modules/yesno: Add lib/yesno.h.
54072 * modules/backupfile: Remove lib/addext.c.
54073 * modules/euidaccess: Add stat-macros.h.
54074 * modules/canonicalize, modules/euidaccess,
54075 modules/filemode, modules/lchown, modules/makepath,
54076 modules/rmdir, modules/stat: Likewise.
54078 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54081 * lib/argp-help.c (make_hol, hol_append): Don't assume that
54082 SIZE_MAX is a valid preprocessor constant.
54083 (__argp_basename): Change from "#ifndef _LIBC"
54084 to "#ifndef __argp_short_program_name", so that
54085 we don't compile these functions for tar.
54087 More merges from coreutils.
54088 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54089 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54090 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54091 * lib/addext.c: Remove; no longer needed.
54092 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54093 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54094 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54095 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54096 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54097 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54098 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54099 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54100 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54101 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54102 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54103 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54104 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54105 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54106 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54107 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54108 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54109 Import changes from coreutils.
54111 2004-08-05 Simon Josefsson <jas@extundo.com>
54113 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54115 2004-08-05 Simon Josefsson <jas@extundo.com>
54117 * m4/getsubopt.m4: New file.
54119 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54121 Merge from coreutils.
54123 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54124 * m4/getcwd-path-max.m4: New files.
54126 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54127 FILESYSTEM_PREFIX_LEN ->
54128 FILE_SYSTEM_PREFIX_LEN.
54129 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54130 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54131 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54132 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54134 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54135 prerequisite modules now handle the DOS stuff.
54136 Don't check for unistd.h.
54138 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54140 Merge from coreutils.
54142 * lib/.gdb-history: Remove; this doesn't belong here.
54144 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54145 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54146 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54147 * lib/getcwd.c: New files.
54149 * lib/dirname.h: Include <stdbool.h>.
54150 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54151 for consistency with POSIX terminology. All uses changed.
54152 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54153 (strip_trailing_slashes): Use bool for booleans.
54154 * lib/stripslash.c (strip_trailing_slashes): Likewise.
54156 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54157 sometimes returns a positive errno value even when it succeeds.
54158 (print_errno_message) [!LIBC]: Fall back on strerror if
54159 __strerror_r fails.
54161 * lib/path-concat.c (mempcpy): Don't define if a system header defines
54162 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54163 (longest_relative_suffix): New function.
54164 (path_concat): Use it. Assume first argument is not NULL.
54165 Port to DOS. Omit redundant separators.
54166 Report an error instead of returning NULL.
54167 Use mempcpy instead of memcpy.
54168 (xpath_concat): Remove: not declared or used.
54170 * lib/same.h: Include <stdbool.h>
54171 (same_name): Return bool, not int.
54172 * lib/same.c (same_name): Likewise.
54173 (errno): Don't declare; we assume C89 or better now.
54175 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54176 if not already defined.
54178 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54179 * lib/dup-safer.c (errno): Likewise.
54181 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54183 Merge from coreutils.
54184 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54185 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54186 * modules/path-concat: Don't depend on strdup.
54188 2004-08-03 Simon Josefsson <jas@extundo.com>
54190 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54191 * lib/progname.h: Don't include stdbool.h.
54193 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54195 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54196 * MODULES.html.sh (func_all_modules): Remove fatal.
54198 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54200 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54202 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
54204 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54207 2004-08-02 Simon Josefsson <jas@extundo.com>
54209 * lib/getsubopt.h: New file, with comments from Bruno Haible.
54210 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54211 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54213 2004-08-01 Simon Josefsson <jas@extundo.com>
54215 * lib/xgetdomainname.c: Include stdlib.h, for free().
54217 2004-07-19 Bruno Haible <bruno@clisp.org>
54219 * MODULES.html.sh (func_all_modules): Add dummy.
54221 2004-07-16 Simon Josefsson <jas@extundo.com>
54223 * modules/dummy: New file.
54225 2004-07-16 Simon Josefsson <jas@extundo.com>
54227 * lib/dummy.c: New file.
54229 2004-07-16 Bruno Haible <bruno@clisp.org>
54231 * lib/backupfile.h: Add extern "C" for C++.
54232 * lib/closeout.h: Likewise.
54233 * lib/copy-file.h: Likewise.
54234 * lib/findprog.h: Likewise.
54235 * lib/full-write.h: Likewise.
54236 * lib/pathname.h: Likewise.
54237 * lib/progname.h: Likewise.
54238 * lib/stpcpy.h: Likewise.
54239 * lib/stpncpy.h: Likewise.
54240 * lib/strcase.h: Likewise.
54241 * lib/strstr.h: Likewise.
54242 * lib/xalloc.h: Likewise.
54244 * lib/mbswidth.h: Add extern "C" for C++.
54245 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54247 2004-07-13 Robert Millan <robertmh@gnu.org>
54249 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54251 2004-07-09 Simon Josefsson <jas@extundo.com>
54253 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
54254 failed without this.)
54256 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54258 * modules/chown (Files): Add lib/fchown-stub.c, since
54259 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54261 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
54263 * lib/fchown-stub.c: New file.
54265 2004-06-24 Jim Meyering <jim@meyering.net>
54267 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54269 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54271 * modules/argz: Omit "#include".
54273 * MODULES.html.sh (func_all_modules): Add calloc, to match
54274 2004-06-01 addition of calloc module.
54276 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54278 * m4/argz.m4: New file, which is autoupdated from libtool.
54280 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54282 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54285 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
54287 * config/srclist-update: Don't insist on "USA." before the
54288 close-comment, as libtool omits the period and puts the */ on a
54290 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54291 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54293 2004-06-22 Gary V. Vaughan <gary@gnu.org>
54295 * modules/argz: New file.
54296 * MODULES.html.sh (func_all_modules): Add argz.
54298 2004-06-12 Jim Meyering <jim@meyering.net>
54299 and Paul Eggert <eggert@cs.ucla.edu>
54301 * modules/hash (Files): Add lib/xalloc.h.
54302 * modules/pipe (Depends-on): Add wait-process.
54303 * modules/stat (Depends-on): Add xalloc.
54304 * modules/userspec (Files): Add lib/userspec.h.
54307 Upgrade from gettext-0.13.
54308 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54309 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54310 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54312 2004-06-10 Jim Meyering <jim@meyering.net>
54314 * lib/calloc.c: New file.
54316 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
54318 * lib/getdate.y (yylex): Allow space between sign and number.
54319 Problem reported by Dan Jacobson.
54321 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54323 Merge from coreutils CVS.
54325 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54326 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54327 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54328 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54329 xstrtol.m4: Fix copyright date and/or serial number.
54331 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54332 See if we need an fchown replacement.
54333 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54334 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54335 and use the replacement function if we detect either defect.
54337 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54340 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54341 and Jim Meyering <jim@meyering.net>
54343 Merge from coreutils CVS.
54345 * lib/stat-macros.h: New file, with contents from file-type.h
54346 and coreutils' system.h.
54347 * lib/file-type.c: Include "stat-macros.h".
54348 * lib/file-type.h (file_type): Move all macro definitions to new file,
54351 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54352 Wrap old code with this conditional.
54353 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54354 function that does not dereference symlinks.
54355 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54357 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54358 dependency problems.
54359 (xreadlink): Accept new arg SIZE, for efficiency.
54360 All decls and uses changed.
54361 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54363 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54364 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54366 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54369 2004-06-01 Jim Meyering <jim@meyering.net>
54371 * m4/calloc.m4: New file.
54373 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54375 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54376 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54377 Also, fix a typo in a diagnostic.
54379 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54381 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54382 or AC_FUNC_REALLOC.
54384 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54386 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54387 macros to be defined.
54388 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54389 the allocator returns NULL because the requested size is zero.
54391 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54393 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54394 var. Add comment explaining why libc still defines it. This
54395 merges the following patch from glibc:
54396 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54398 2004-05-20 Andreas Schwab <schwab@suse.de>
54400 * m4/free.m4: Replace free if it not known to work, not the other
54403 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54405 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54406 present in glibc since revision 1.1 of this file.
54407 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54408 obstack_alignment_mask, obstack_alloc, obstack_base,
54409 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54410 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54411 obstack_grow0, obstack_init, obstack_int_grow,
54412 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54413 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54414 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54415 nonexistent functions.
54417 2004-05-18 Karl Berry <karl@gnu.org>
54419 * config/srclist.txt: break link for vasnprintf.c.
54421 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54423 Port obstack to the AS/400, where pointers are 16 bytes wide and
54424 you cannot cast an integer to a valid pointer. This patch is
54425 currently waiting to be integrated into glibc; see
54426 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54428 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54429 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54430 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54431 (struct obstack): temp member is now a union of a pointer and
54432 an integer, instead of an integer. All integer uses changed.
54433 This does not affect the physical layout of struct obstack,
54434 except on hosts (like the AS/400) where the size or alignment of
54435 void * is greater than that of ptrdiff_t.
54436 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54437 __STDC__)]: Store temporary in pointer member of union, not
54439 * lib/obstack.c: Include <stddef.h>, for offsetof.
54440 (struct fooalign): Remove; it doesn't need a name.
54441 (union fooround): Change double to long double, and add void *.
54442 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54443 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54444 not a macro. Hence the values are always int; so remove all
54445 casts-to-int in uses.
54447 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54449 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54450 we can get this patch merged into glibc.
54452 2004-05-17 Derek R. Price <derek@ximbiot.com>
54453 Paul Eggert <eggert@cs.ucla.edu>
54455 * m4/argp: Depend on alloca.
54457 2004-05-17 Derek R. Price <derek@ximbiot.com>
54458 Paul Eggert <eggert@cs.ucla.edu>
54460 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54463 2004-05-17 Bruno Haible <bruno@clisp.org>
54465 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54466 precision that consists of a '.' followed by an empty digit string.
54467 Patch by Tor Lillqvist <tml@iki.fi>.
54469 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54471 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54472 for backward compatibility with older code. We need our own
54473 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54474 it under some other name, and our alloca.h will define it.
54476 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54477 Derek Price <derek@ximbiot.com>
54479 * lib/alloca.c: Include <alloca.h>, to get our interface.
54480 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54481 include <alloca.h> first. Use C89 prototype for alloca; this
54482 requires including <stddef.h> for size_t. Use extern "C" if C++.
54483 Use #elif for simplicity, since we can assume C89 now.
54484 Don't try to source the system alloca.h since it will not be found
54485 and to prevent recursively including its replacement.
54486 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54487 * lib/regex.c: Likewise.
54489 2004-05-16 Derek Price <derek@ximbiot.com>
54490 Paul Eggert <eggert@cs.ucla.edu>
54492 getline cleanup. This changes the getndelim2 API: both order of
54493 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54496 * lib/getline.c: Don't include stddef.h or stdio.h, since our
54497 interface does that.
54498 (getline): Always use getdelim, so that we don't have two
54499 copies of this code.
54500 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54502 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54503 (GETNDELIM2_MAXIMUM): New macro.
54504 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
54505 instead of the old practice of delim2==0. All callers changed.
54506 Return -1 on overflow, instead of returning junk.
54507 Do not set *linesize unless allocation succeeds.
54508 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54509 that we include sys/types.h.
54510 * lib/getnline.h: Likewise.
54511 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54512 (getndelim2): Reorder arguments.
54513 * lib/getnline.c (getnline, getndelim):
54514 Don't discard the NMAX argument.
54515 (getnline): Invoke getndelim, to avoid code duplication.
54516 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54517 of (size_t) -1 by callers of the getnline family.
54519 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54521 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54522 Check for gettimeofday.
54523 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54524 Check for settimeofday, stime.
54526 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54528 * lib/nanosleep.c (suspended): Change its type from int to
54529 sig_atomic_t volatile.
54530 (first_call): Make it private to rpl_nanosleep, and have it
54531 be zero initially as that's a bit faster.
54532 (my_usleep): Round up fractional times instead of truncating them,
54533 as this is the usual meaning for 'sleep'.
54535 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54537 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54538 (ENOSYS): Define if not defined.
54539 (settime): Fall back on stime if it exists and settimeofday fails.
54540 But don't bother with fallbacks if a method fails with errno == EPERM.
54542 2004-05-11 Jim Meyering <jim@meyering.net>
54544 Prior to this change, the save_cwd caller required read access to the
54545 current directory on most systems (ones with the fchdir function).
54547 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54548 fails, try write-only, and finally, resort to using xgetcwd.
54550 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54552 * lib/obstack.c, obstack.h: Import changes from libc.
54554 2004-04-28 Bruno Haible <bruno@clisp.org>
54556 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54557 also implicitly appends .exe to executables.
54558 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54559 accepts Windows pathnames.
54560 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54561 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54562 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54563 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54564 Reported by Derek Robert Price <derek@ximbiot.com>.
54566 2004-04-21 Karl Berry <karl@gnu.org>
54568 * config/srclist.txt (localcharset.c): break sync.
54570 2004-04-20 Paul Eggert <eggert@twinsun.com>
54572 * m4/host-os.m4: Add a copyright notice.
54574 2004-04-20 Jim Meyering <jim@meyering.net>
54576 Change UTILS_ to gl_ in AC_DEFINE'd names.
54577 Change utils_- and jm_-prefixed variables, too.
54578 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54579 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54580 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54582 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54583 Don't emit trailing blanks.
54584 Also rename jm_-prefixed variables to have gl_ prefix.
54586 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54587 Also rename jm_-prefixed variables to have gl_ prefix.
54589 * m4/jm-macros.m4: Reflect the renamings.
54590 * m4/prereq.m4: Likewise.
54592 2004-04-20 Jim Meyering <jim@meyering.net>
54594 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54597 2004-04-20 Jim Meyering <jim@meyering.net>
54598 Bruno Haible <bruno@clisp.org>
54600 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54601 memory when realloc fails.
54603 2004-04-19 Jim Meyering <jim@meyering.net>
54605 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54606 now that readutmp.c may call `free (0)'.
54608 2004-04-19 Bruno Haible <bruno@clisp.org>
54610 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54611 * m4/inttypes_h.m4: Likewise.
54612 * m4/stdint_h.m4: Likewise.
54613 * m4/intmax_t.m4: Likewise.
54614 * m4/uintmax_t.m4: Likewise.
54616 2004-04-18 Jim Meyering <jim@meyering.net>
54618 * m4/prereq.m4: Don't forbid jm_ prefix.
54620 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54621 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54622 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54623 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54624 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54625 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54626 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54627 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54628 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54629 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54630 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54631 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54632 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54633 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54634 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54635 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54636 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54637 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54638 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54640 2004-04-18 Jim Meyering <jim@meyering.net>
54642 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54643 failure, don't leak memory and do call END_UTMP_ENT.
54645 2004-04-16 Jim Meyering <jim@meyering.net>
54647 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
54648 coreutils' stat program.
54649 (gl_PREREQ): Don't require jm_PREREQ_STAT.
54651 2004-04-11 Paul Eggert <eggert@twinsun.com>
54653 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54655 (CHAR_BIT): Remove, since we assume C89.
54656 Include <stdint.h> if available, as per current Autoconf CVS advice.
54658 2004-03-31 Jim Meyering <jim@meyering.net>
54660 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54661 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54662 * m4/xalloc.m4: Likewise.
54664 2004-03-30 Paul Eggert <eggert@twinsun.com>
54666 Merge from coreutils.
54668 * m4/inttostr.m4: New file.
54669 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54670 Require AM_STDBOOL_H and gl_TIMESPEC instead.
54671 Require gl_CLOCK_TIME.
54672 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54674 2004-03-30 Paul Eggert <eggert@twinsun.com>
54676 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54677 not bool, to be more consistent with Unix conventions.
54678 Suggested by Bruno Haible.
54680 Merge from coreutils.
54682 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54683 * lib/umaxtostr.c: New files.
54685 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54686 the usual <time.h> dance.
54687 (get_date): Change signature to support fractional time stamps.
54688 All callers changed.
54689 * lib/getdate.y: Include "getdate.h" first, as we can now
54690 assume C89 and don't need to worry about 'const'.
54691 Similarly, include "unlocked-io.h" near start, not in middle.
54692 Include <limits.h>.
54693 (textint.value): Use long int rather than int.
54694 (textint.digits): Use size_t rather than int.
54695 (BILLION, LOG10_BILLION): New constants.
54696 (parser_control): New member rel_ns. Members day_ordinal,
54697 time_zone, month, day, hour, minutes, rel_year, rel_month,
54698 rel_day, rel_hour, rel_minutes, rel_seconds
54699 are now long int, not int. Member seconds is now struct timespec,
54700 not int. New member timespec_seen. Members dates_seen, days_seen,
54701 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54703 (%union.intval): Now long int, not int.
54704 New member timespec.
54705 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54706 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54707 (spec): Now is a timespec or an item list.
54708 (timespec, items): New nonterminals.
54709 (time, rel, relunit, number, get_date):
54710 Add support for fractional seconds.
54711 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54712 (gmtime, localtime, mktime): Remove decls; not needed with C89.
54713 (to_hour): First arg is now long int, not int.
54714 (to_year): Returns long int, not int.
54715 Don't treat year -70 like 70.
54716 (tm_diff): Returns long int, not int.
54717 (lookup_word): Use bool instead of int when appropriate.
54718 (yylex): Use size_t for count, not int.
54719 Detect overflow when parsing large integer constants.
54720 Add support for fractions.
54721 (get_date): Make pointers 'const' if possible.
54722 Use more-portable code to detect integer overflow.
54723 (main) [TEST]: Adjust to above changes. Test for localtime failure.
54724 Don't use ctime; it's not reliable if the year has >4 digits.
54726 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54727 This is for compatibility with BSD.
54729 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54730 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54731 From coreutils' system.h.
54733 * lib/userspec.c: Don't include "posixver.h".
54734 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54735 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54736 compatible extension. Simplify code by removing a boolean int
54737 that was always nonzero if a string was nonnull.
54739 2004-03-30 Jim Meyering <jim@meyering.net>
54741 Merge from coreutils.
54743 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54744 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54745 on some systems one must include <grp.h> before it.
54746 Reported by Christian Krackowizer.
54748 2004-03-30 Jim Meyering <jim@meyering.net>
54750 Merge from coreutils.
54752 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54754 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54755 an empty input stream.
54757 * lib/readtokens.c: Include <stdbool.h>.
54758 (readtoken): Use `size_t' rather than int/long.
54759 All callers adjusted.
54760 Use `bool' rather than `int' where appropriate.
54761 Use memset rather than an explicit loop.
54762 Use x2nrealloc rather than xrealloc.
54763 Allow the use of `\0' as a delimiter.
54764 (readtokens): Likewise.
54765 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54767 2004-03-30 Jim Meyering <jim@meyering.net>
54769 * m4/realloc.m4: Remove file, since now it does no more than
54770 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54771 the `configure.ac' section of module/realloc.
54772 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54774 2004-03-30 Bruno Haible <bruno@clisp.org>
54776 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54779 2004-03-29 Paul Eggert <eggert@twinsun.com>
54781 Merge changes to getloadavg.c from coreutils and Emacs.
54783 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54784 Define to an expression, not to the empty string.
54785 Include cloexec.h and xalloc.h.
54786 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54787 Use set_cloexec_flag rather than rolling our own.
54788 * lib/cloexec.c, lib/cloexec.h: New files.
54790 2004-03-29 Paul Eggert <eggert@twinsun.com>
54792 * m4/cloexec.m4: New file.
54794 2004-03-18 Paul Eggert <eggert@twinsun.com>
54796 * lib/getopt.h: Sync with libc CVS.
54798 2004-03-18 Paul Eggert <eggert@twinsun.com>
54799 Bruno Haible <bruno@clisp.org>
54801 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54804 2004-03-18 Paul Eggert <eggert@twinsun.com>
54805 Bruno Haible <bruno@clisp.org>
54807 * lib/mbswidth.h: Include <wchar.h> only if
54808 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54810 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54812 2004-03-09 Paul Eggert <eggert@twinsun.com>
54814 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54815 Sync with libc CVS.
54816 * lib/getopt_int.h: New file, also synced from libc.
54818 2004-03-09 Paul Eggert <eggert@twinsun.com>
54820 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54821 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
54822 Bring back getopt.c, getopt.h, getopt1.c.
54824 2004-03-07 Paul Eggert <eggert@twinsun.com>
54826 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54827 All uses changed. Check for sa_sigaction member; this fixes
54828 a bug first reported by Jason Andrade in
54829 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54831 2004-03-07 Paul Eggert <eggert@twinsun.com>
54833 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
54834 '#if' expressions. Unlike the code it replaces, it does not
54835 depend on (defined _SC_PAGESIZE). However, it does depend on
54836 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54837 first reported by Jason Andrade in
54838 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54840 2004-02-25 Simon Josefsson <jas@extundo.com>
54842 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54844 2004-02-25 Simon Josefsson <jas@extundo.com>
54846 * lib/strdup.h: New file.
54847 * lib/strdup.c: Include it.
54848 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54849 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54851 2004-02-23 Karl Berry <karl@gnu.org>
54853 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54854 (from fencepost.gnu.org:/gd/gnuorg).
54856 2004-02-23 Karl Berry <karl@gnu.org>
54858 * config/srclistvars.sh (GNUORG) [karl]: redefine.
54859 * config/srclist.txt: add maintain/standards documents.
54861 2004-02-18 Bruno Haible <bruno@clisp.org>
54863 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54864 Reported by Derek Robert Price <derek@ximbiot.com>.
54866 2004-02-16 Karl Berry <karl@gnu.org>
54868 * config/mkinstalldirs, install-sh: update from automake.
54870 2004-02-06 Karl Berry <karl@gnu.org>
54872 * m4/po.m4: update from gettext 0.14.1.
54874 2004-02-06 Karl Berry <karl@gnu.org>
54876 * lib/config.charset: update from gettext 0.14.1.
54878 2004-02-05 Paul Eggert <eggert@twinsun.com>
54880 Add comments and code, prompted by suggestions from Bruno Haible
54882 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54883 describing the enum quoting_style values.
54884 * lib/quotearg.c (quotearg_alloc): New function.
54885 (quotearg_buffer_restyled): Treat lone { and } as special.
54886 Treat = as special. Work around bug with older shells
54887 that "see" a '\' that is really the 2nd byte of a multibyte char.
54888 Quote empty string with shell_quoting_style.
54890 2004-02-03 Bruno Haible <bruno@clisp.org>
54892 * m4/pipe.m4: New file, from GNU gettext.
54894 2004-02-03 Bruno Haible <bruno@clisp.org>
54896 * lib/pipe.h: New file, from GNU gettext.
54897 * lib/pipe.c: New file, from GNU gettext.
54899 2004-01-27 Bruno Haible <bruno@clisp.org>
54901 * m4/execute.m4: New file, from GNU gettext.
54903 2004-01-27 Bruno Haible <bruno@clisp.org>
54905 * lib/execute.h: New file, from GNU gettext.
54906 * lib/execute.c: New file, from GNU gettext.
54907 * lib/w32spawn.h: New file, from GNU gettext.
54909 2004-01-24 Paul Eggert <eggert@twinsun.com>
54911 Merge from diffutils.
54913 * lib/file-type.c (file_type): Add typed memory objects.
54914 * lib/file-type.h (S_TYPEISTMO): New macro.
54916 * lib/c-stack.h (c_stack_action): Remove argv argument.
54917 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54918 (die): Don't calculate message unless segv_action returns.
54919 (get_stack_location, min_address_from_argv, max_address_from_argv,
54920 volatile stack_base, volatile_stack_size): Remove.
54921 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54922 that every segmentation violation is a stack overflow. (Ouch!)
54923 See Debian bug 136249 (still outstanding) for more info about why
54924 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54926 2004-01-24 Paul Eggert <eggert@twinsun.com>
54928 Exit-status fix from coreutils.
54930 Use exit_failure consistently in place of EXIT_FAILURE,
54931 so that program exit statuses are consistent on failure.
54933 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54934 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54935 * lib/argmatch.h: Comment fix to match the above.
54936 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54937 Now a macro referring to exit_failure, instead of a separate
54938 variable. Include "exitfail.h" to get it.
54939 * lib/xstrtol.h: Include "exitfail.h".
54940 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54942 * lib/long-options.c (parse_long_options): Use prototype
54943 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
54946 2004-01-21 Jim Meyering <jim@meyering.net>
54948 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54949 so as not to conflict with a different-sized __mktime_internal
54950 function in GNU libc.
54951 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54952 Problem building statically-linked `ls' reported by Michael Brunnbauer.
54954 2004-01-20 Karl Berry <karl@gnu.org>
54956 * config/config.guess: update from config.
54958 * config/srclistvars.sh: GNUWWWLICENSES for karl.
54960 2004-01-20 Bruno Haible <bruno@clisp.org>
54962 Safer stack allocation.
54963 * lib/setenv.c: Include allocsa.h.
54964 (alloca): Remove fallback definition.
54965 (freea): Remove macro.
54966 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54969 2004-01-20 Bruno Haible <bruno@clisp.org>
54971 * m4/eealloc.m4: New file, from GNU gettext.
54973 2004-01-20 Bruno Haible <bruno@clisp.org>
54975 * m4/allocsa.m4: New file, from GNU gettext.
54977 2004-01-20 Bruno Haible <bruno@clisp.org>
54979 * lib/xallocsa.h: New file, from GNU gettext.
54980 * lib/xallocsa.c: New file, from GNU gettext.
54982 2004-01-20 Bruno Haible <bruno@clisp.org>
54984 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54986 2004-01-20 Bruno Haible <bruno@clisp.org>
54988 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54989 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54992 2004-01-20 Bruno Haible <bruno@clisp.org>
54994 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54997 2004-01-20 Bruno Haible <bruno@clisp.org>
54999 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55001 2004-01-20 Bruno Haible <bruno@clisp.org>
55003 * lib/eealloc.h: New file.
55005 2004-01-20 Bruno Haible <bruno@clisp.org>
55007 * lib/binary-io.h: Avoid warnings on Cygwin.
55009 2004-01-20 Bruno Haible <bruno@clisp.org>
55011 * lib/allocsa.h: New file, from GNU gettext.
55012 * lib/allocsa.c: New file, from GNU gettext.
55014 2004-01-18 Karl Berry <karl@gnu.org>
55016 * doc/gpl.texi, doc/lgpl.texi: new files.
55018 2004-01-18 Karl Berry <karl@gnu.org>
55020 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55021 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55023 2004-01-15 Paul Eggert <eggert@twinsun.com>
55025 Merge from coreutils.
55027 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55028 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55029 (gl_DEFAULT_POSIX2_VERSION): Move
55030 the documentation from 'configure' into 'config.hin',
55031 so that 'configure --help' isn't burdened by it and
55032 we don't have to worry about its formatting there.
55033 Reword the documentation so that it's more succinct
55034 and can be run together into a single paragraph.
55035 * m4/same.m4 (gl_SAME): Check for pathconf.
55037 2004-01-15 Paul Eggert <eggert@twinsun.com>
55039 Merge from coreutils.
55041 * lib/posixver.c: Include posixver.h.
55043 * lib/same.c: Include <stdbool.h>, <limits.h>.
55044 (_POSIX_NAME_MAX): Define if not defined.
55046 (same_name): If file names are silently truncated, report
55047 that the file names are the same if they are the same after
55048 the silent truncation.
55050 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55051 conversion function.
55052 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
55053 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
55056 2004-01-15 Jim Meyering <jim@meyering.net>
55058 Merge from coreutils.
55060 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55061 if no library is required.
55062 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55063 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55064 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55065 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55066 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55067 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55068 value, $ac_cv_search_crypt, if it's "none required".
55069 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55070 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55071 not gl_FUNC_GETLOADAVG.
55072 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55073 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55075 2004-01-15 Jim Meyering <jim@meyering.net>
55077 Merge from coreutils.
55079 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
55080 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
55081 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55083 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55084 optional configure-time default.
55086 * lib/version-etc.c (version_etc_copyright): Update copyright date.
55088 * lib/xreadlink.c (xreadlink): Correct outdated comment.
55090 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
55092 Merge from coreutils.
55094 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55095 value, $ac_cv_search_nanosleep, if it's "none required".
55097 2004-01-14 Paul Eggert <eggert@twinsun.com>
55099 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55100 with like-named macro in fnmatch.c.
55101 (EXT): Use an internal constant instead.
55103 Merge fnmatch patches from glibc.
55104 * lib/fnmatch.c (mbsinit): Remove define.
55105 Add libc_hidden_ver (__fnmatch, fnmatch).
55106 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55107 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55109 2004-01-14 Karl Berry <karl@gnu.org>
55111 * config/install-sh: update from automake.
55113 2004-01-13 Karl Berry <karl@gnu.org>
55115 * config/install-sh: update from automake.
55117 2004-01-09 Karl Berry <karl@gnu.org>
55119 * config/install-sh: update from automake.
55121 2004-01-05 Karl Berry <karl@gnu.org>
55123 * config/config.{sub,guess}: update from config.
55125 2003-12-31 Karl Berry <karl@gnu.org>
55127 * config/depcomp: update from automake.
55129 2003-12-14 Karl Berry <karl@gnu.org>
55131 * lib/config.charset: update from gettext-runtime.
55133 2003-12-03 Paul Eggert <eggert@twinsun.com>
55135 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55136 Bug reported by Alfred M. Szmidt.
55138 2003-12-03 Bruno Haible <bruno@clisp.org>
55140 * m4/gettext.m4: Upgrade from gettext-0.13.
55141 * m4/po.m4: Upgrade from gettext-0.13.
55142 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55143 * m4/intmax.m4: New file, from gettext-0.13.
55144 * m4/printf-posix.m4: New file, from gettext-0.13.
55146 2003-11-29 Karl Berry <karl@gnu.org>
55148 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55150 2003-11-25 Paul Eggert <eggert@twinsun.com>
55151 Bruno Haible <bruno@clisp.org>
55153 * lib/printf-parse.h: Don't include sys/types.h.
55154 (ARG_NONE): New macro.
55155 (char_directive): Change type of *arg_index fields to size_t.
55156 * lib/printf-parse.c: Don't include sys/types.h.
55157 (SSIZE_MAX): Remove macro.
55158 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55159 Remove unnecessary overflow check.
55160 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55163 2003-11-25 Bruno Haible <bruno@clisp.org>
55165 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55167 2003-11-25 Bruno Haible <bruno@clisp.org>
55169 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55172 2003-11-24 Paul Eggert <eggert@twinsun.com>
55174 * modules/alloca: Remove dependency on xalloc.
55176 2003-11-24 Paul Eggert <eggert@twinsun.com>
55178 * lib/alloca.c: Remove dependency on xalloc module.
55179 (xalloc_die): Remove.
55180 (memory_full) [!defined emacs]: New macro.
55181 [!defined emacs]: Don't include xalloc.h.
55182 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55183 address arithmetic overflows. Change datatypes a bit to avoid
55186 2003-11-22 Jim Meyering <jim@meyering.net>
55188 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55191 2003-11-21 Karl Berry <karl@gnu.org>
55193 * config/config.{sub,guess}: update from config.
55195 2003-11-18 Karl Berry <karl@gnu.org>
55197 * config/config.{sub,guess}: update from config.
55199 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55201 2003-11-17 Paul Eggert <eggert@twinsun.com>
55203 * README: Mention that S+T cannot overflow if S is the size of
55204 an existing object and T is sufficiently small.
55206 2003-11-17 Jim Meyering <jim@meyering.net>
55208 On systems without utime and without a utimes function capable of
55209 dealing with a NULL struct utimbuf* argument, this utime replacement
55210 could -- in unusual circumstances -- leak a file descriptor.
55211 * lib/utime.c: Include <unistd.h> and <errno.h>.
55212 (utime_null): Be sure to close `fd' and to preserve errno.
55213 Reported by Geoff Collyer via Arnold Robbins.
55215 2003-11-17 Bruno Haible <bruno@clisp.org>
55217 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55218 (Depends-on): Add xsize.
55220 2003-11-17 Bruno Haible <bruno@clisp.org>
55222 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55224 2003-11-17 Bruno Haible <bruno@clisp.org>
55226 * lib/vasnprintf.c (alloca): Remove fallback definition.
55227 (freea): Remove definition.
55228 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55229 Reported by Paul Eggert.
55231 2003-11-16 Paul Eggert <eggert@twinsun.com>
55232 Bruno Haible <bruno@clisp.org>
55234 Protect against address arithmetic overflow.
55235 * lib/printf-args.h: Include stddef.h.
55236 (arguments): Change type of field 'count' to size_t.
55237 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55238 'unsigned int' where appropriate.
55239 * lib/printf-parse.h: Include sys/types.h.
55240 (char_directive): Change type of *arg_index fields to ssize_t.
55241 (char_directives): Change type of fields 'count', max_*_length to
55243 * lib/printf-parse.c: Include sys/types.h and xsize.h.
55244 (SSIZE_MAX): Define fallback value.
55245 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55246 instead of 'int' where appropriate. Check a_allocated, d_allocated
55247 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55248 * lib/vasnprintf.c: Include xsize.h.
55249 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55250 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55251 overflow. Avoid wraparound when converting a width or precision from
55254 2003-11-16 Bruno Haible <bruno@clisp.org>
55256 Update from GNU gettext.
55257 * lib/printf-parse.c: Generalize to it can be compiled for wide
55259 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55260 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55261 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55262 SNPRINTF): New macros.
55263 Don't include <alloca.h> if the file is used inside libintl.
55264 (local_wcslen): New function, for Solaris 2.5.1.
55265 (VASNPRINTF): Use it instead of wcslen.
55267 2003-11-16 Bruno Haible <bruno@clisp.org>
55269 * lib/xsize.h (xmax): New function.
55270 (xsum, xsum3, xsum4): Declare as "pure" functions.
55272 2003-11-12 Paul Eggert <eggert@twinsun.com>
55274 * modules/xalloc (Files): Undo latest change, since xalloc.h
55275 no longer needs SIZE_MAX or PTRDIFF_MAX.
55277 2003-11-12 Paul Eggert <eggert@twinsun.com>
55279 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55282 2003-11-12 Paul Eggert <eggert@twinsun.com>
55284 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55285 "return", to pacify some unknown compiler. Problem reported
55286 by Joerg Schilling.
55288 2003-11-12 Paul Eggert <eggert@twinsun.com>
55290 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55291 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55292 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
55293 heuristic is just as accurate as far as we know, and it removes a
55294 dependency on size_max.m4 and ptrdiff_max.m4.
55296 2003-11-11 Bruno Haible <bruno@clisp.org>
55298 * modules/xsize (Files): Add m4/size_max.m4.
55299 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55301 2003-11-11 Bruno Haible <bruno@clisp.org>
55303 * m4/size_max.m4: New file.
55304 * m4/ptrdiff_max.m4: New file.
55305 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55306 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55307 (gl_XALLOC): Invoke it.
55309 2003-11-11 Bruno Haible <bruno@clisp.org>
55311 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55312 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55315 2003-11-10 Paul Eggert <eggert@twinsun.com>
55317 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55318 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55319 rejected some allocations of exactly SIZE_MAX - 2 bytes.
55321 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55322 not (size_t) -1, since it's defined here.
55324 2003-11-09 Karl Berry <karl@gnu.org>
55326 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55328 2003-11-06 Paul Eggert <eggert@twinsun.com>
55330 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55331 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55332 Reject sizes of exactly SIZE_MAX bytes.
55333 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55334 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55336 2003-11-05 Bruno Haible <bruno@clisp.org>
55338 * lib/xsize.h: Include limits.h, to avoid a possible collision with
55339 SIZE_MAX defined in <limits.h> on Solaris.
55341 2003-11-04 Jim Meyering <jim@meyering.net>
55343 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55344 variable names, rather than @VAR@.
55345 * modules/poll: Likewise.
55347 2003-11-04 Bruno Haible <bruno@clisp.org>
55349 * modules/xsize: New file.
55350 * modules/linebreak: Depend on xsize.
55351 * MODULES.html.sh (func_all_modules): Add xsize.
55353 2003-11-04 Bruno Haible <bruno@clisp.org>
55355 * m4/xsize.m4: New file.
55357 2003-11-04 Bruno Haible <bruno@clisp.org>
55359 * lib/xsize.h: New file.
55360 * lib/linebreak.c: Include xsize.h.
55361 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55362 argument for overflow.
55363 Suggested by Paul Eggert.
55365 2003-11-03 Karl Berry <karl@gnu.org>
55367 * config/config.{guess,sub}: update from config.
55369 2003-11-03 Jim Meyering <jim@meyering.net>
55371 * modules/userspec (lib_SOURCES): Add userspec.h.
55372 (Include): Add "userspec.h".
55373 Improve description.
55375 2003-11-03 Jim Meyering <jim@meyering.net>
55377 * lib/userspec.c: Include "userspec.h".
55378 * lib/userspec.h: New file.
55380 2003-11-03 Bruno Haible <bruno@clisp.org>
55382 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55384 2003-11-03 Bruno Haible <bruno@clisp.org>
55386 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55387 available, to avoid (extremely rare) race condition.
55388 Suggested by Paul Eggert.
55390 2003-11-02 Karl Berry <karl@gnu.org>
55392 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55394 2003-10-31 Paul Eggert <eggert@twinsun.com>
55396 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55397 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55398 (read_filesystem_list): Set and use me_type_malloced.
55399 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55400 whatever the type happens to be), for brevity and consistency.
55401 Check for size calculation overflow on Alphas running OSF/1.
55403 2003-10-31 Jim Meyering <jim@meyering.net>
55405 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55407 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55409 2003-10-30 Paul Eggert <eggert@twinsun.com>
55410 Bruno Haible <bruno@clisp.org>
55412 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55413 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55415 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55417 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55418 netbsd*-gnu*. Suggested by Robert Millan.
55420 2003-10-29 Paul Eggert <eggert@twinsun.com>
55422 * modules/group-member: Depend on stdbool.
55424 2003-10-29 Paul Eggert <eggert@twinsun.com>
55426 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55428 2003-10-29 Paul Eggert <eggert@twinsun.com>
55430 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55431 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55432 after the 'gnu' in these cases. This fixes some bugs in the
55433 previous change, and is based on suggestions by Robert Millan.
55435 2003-10-29 Paul Eggert <eggert@twinsun.com>
55437 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55438 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55440 * lib/quotearg.c (quotearg_n_options): Use it.
55441 * lib/group-member.c: Include <stdbool.h>.
55442 (free_group_info): Arg is now const *; don't free arg.
55443 (get_group_info): Now returns bool and accepts struct group_info *,
55444 rather than returning a malloc'ed struct group_info *.
55445 All uses changed. Check for overflow in internal size calculation.
55447 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55448 rather than xmalloc/xrealloc.
55449 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55450 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55451 conformance bug: the old code used a pointer after freeing the
55452 storage that it addressed.
55453 * lib/hash.c (hash_initialize): Simplify the code by using
55454 xalloc_oversized rather than doing it by hand.
55455 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55456 the buffer preserved. Use free and xmalloc instead.
55457 * lib/quotearg.c (quotearg_n_options): Likewise.
55458 Use a simpler test for size overflow. Don't use xalloc_oversized
55459 because unsigned int might be wider than size_t (!); this suggests
55460 that we should switch from unsigned int to size_t for slot numbers.
55462 2003-10-28 Paul Eggert <eggert@twinsun.com>
55464 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55465 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55466 NetBSD kernels. Requested by Richard Stallman.
55468 2003-10-27 Paul Eggert <eggert@twinsun.com>
55470 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55471 to allocate the returned structure. Do not allocate a subarray,
55472 as x2nrealloc will do that.
55473 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55474 instead of xnrealloc.
55475 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55477 2003-10-27 Bruno Haible <bruno@clisp.org>
55479 * lib/stdbool_.h: Better support for BeOS.
55481 2003-10-26 Paul Eggert <eggert@twinsun.com>
55483 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55486 2003-10-26 Paul Eggert <eggert@twinsun.com>
55488 * lib/xalloc.h (xalloc_oversized): New static inline function, for
55489 callers that want to do their own size-overflow checking. Include
55490 <stdbool.h>, since xalloc_oversized returns bool.
55491 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
55492 to use xalloc_oversized.
55494 Add two functions x2realloc, x2nrealloc, for programs that grow
55495 arrays dynamically by doubling their sizes.
55496 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55497 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55500 Port to C99 semantics for 'inline' of external functions.
55501 Bug reported by Bruno Haible.
55502 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55503 with the old contents of xnmalloc.
55504 (xnmalloc, xmalloc): Use it.
55505 (xnrealloc_inline): New static inline function,
55506 with the old contents of xnrealloc.
55507 (xnrealloc, xrealloc): Use it.
55509 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55512 2003-10-26 Karl Berry <karl@gnu.org>
55514 * config/srclist.txt (COPYING.DOC): no longer available from
55515 /gd/gnuorg; don't know where the ultimate source is.
55517 2003-10-25 Paul Eggert <eggert@twinsun.com>
55519 Fix several address-calculation bugs in the hash modules,
55520 plus some minor code cleanup.
55522 * lib/hash.h: Include <stdbool.h>, for bool.
55523 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55524 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55525 hash_get_n_entries, hash_get_max_bucket_length,
55526 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55527 hash_rehash): Use size_t rather than unsigned.
55528 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55529 hash_get_n_buckets_used, hash_get_n_entries,
55530 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55531 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55532 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55534 (SIZE_MAX): Define if not defined.
55535 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55536 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55538 Use const * when possible.
55539 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55540 (check_tuning): Fix bug: if tuning parameters were very close to
55541 0 or 1, rounding errors could have caused subscript violations.
55542 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55543 (hash_initialize): Add 'fail:' label
55544 to free table and return NULL, and use it to simplify code.
55545 Use calloc rather than clearing the storage ourself.
55546 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55547 buffer size calculations.
55548 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55549 Include <stddef.h>, for size_t.
55550 * lib/hash-pjw.c (hash_pjw): Likewise.
55551 Switch to method described by Bruno Haible.
55552 Include <limits.h>, for CHAR_BIT.
55553 (SIZE_BITS): New macro.
55555 2003-10-23 Paul Eggert <eggert@twinsun.com>
55557 * m4/getline.m4 (AM_FUNC_GETLINE):
55558 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55559 hosts. Problem reported by Derek Robert Price in
55560 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55561 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55562 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55564 2003-10-21 Paul Eggert <eggert@twinsun.com>
55566 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55567 ceiling the allocation at NMAX bytes rather than silently
55568 discarding input bytes before NMAX is reached. This makes
55569 a difference only if NMAX exceeds SIZE_MAX / 2.
55571 * lib/obstack.c: Merge from glibc.
55572 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55573 Add libc_hidden_def (_obstack_newchunk).
55574 (_obstack_free) [! defined _LIBC]: Remove.
55575 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55576 a clone of the function body.
55577 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55578 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55580 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55582 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55585 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55586 (obstack_ptr_grow_fast, obstack_int_grow_fast):
55587 Don't use lvalue casts, as GCC plans to remove support for them
55588 in GCC 3.5. Reported by Joseph S. Myers. This bug
55589 was also present in the non-GCC version, indicating that this
55590 code had always been buggy and had never been widely used.
55591 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55592 Use the fast variant of each macro, rather than copying the
55593 definiens of the fast variant; that way, we'll be more likely to
55594 catch future bugs in the fast variants.
55596 2003-10-20 Bruno Haible <bruno@clisp.org>
55598 * modules/wait-process: New file.
55599 * MODULES.html.sh (func_all_modules): Add wait-process.
55601 2003-10-20 Bruno Haible <bruno@clisp.org>
55603 * m4/wait-process.m4: New file.
55605 2003-10-20 Bruno Haible <bruno@clisp.org>
55607 * lib/wait-process.h: New file, from GNU gettext.
55608 * lib/wait-process.c: New file, from GNU gettext.
55610 2003-10-19 Jim Meyering <jim@meyering.net>
55612 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55615 2003-10-18 Karl Berry <karl@gnu.org>
55617 * config/config.guess: update from config.
55619 2003-10-16 Paul Eggert <eggert@twinsun.com>
55621 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55622 (getgroups): First arg is int, not size_t.
55623 Don't let 'free' mangle errno.
55625 2003-10-16 Paul Eggert <eggert@twinsun.com>
55627 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55629 2003-10-16 Karl Berry <karl@gnu.org>
55631 * config/config.{guess,sub}: update from config.
55633 2003-10-16 Jim Meyering <jim@meyering.net>
55635 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55638 2003-10-15 Paul Eggert <eggert@twinsun.com>
55640 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55641 (SIZE_MAX): Remove.
55642 (new_exclude, add_exclude_file): Initial size no longer needs to
55644 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55645 our own address arithmetic overflow checking.
55647 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55648 (fnmatch): Do not alloca more than 2000 wide characters;
55649 instead, use malloc for large buffers.
55650 Check for address arithmetic overflow, and return -1
55651 with errno set to ENOMEM in that case.
55652 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55653 (NEW_PATTERN): Do not alloca more than 8000 bytes;
55654 instead, return -1. Check for address arithmetic overflow.
55656 2003-10-14 Paul Eggert <eggert@twinsun.com>
55658 Handle invalid suffixes and overflow independently, so that
55659 callers can treat them independently as needed. Fix some bugs in
55660 suffix handling, e.g., "100k@" was not diagnosed as an invalid
55661 suffix for a human-readable blocksize. The major caller-visible
55662 change is the addition of a new
55663 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55664 that both overflow and suffix chars were found.
55666 * lib/human.c (humblock): Don't check separately for invalid suffix
55667 char; that is xstrtoumax's job (now that its bug is fixed).
55668 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55669 INTMAX_MAX]: New macros.
55670 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55671 TYPE_MAXIMUM): New macros.
55672 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55673 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55674 if overflow occurs, as it's what __strtol does and it's more useful
55676 (__xstrtol): If __strtol reports some error other than ERANGE,
55677 reflect it to the caller as LONGINT_INVALID. If it reports
55678 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55679 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55680 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55682 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
55683 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55684 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55685 [defined UINTMAX_MAX]: New macros.
55687 2003-10-14 Bruno Haible <bruno@clisp.org>
55689 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55691 2003-10-14 Bruno Haible <bruno@clisp.org>
55693 * m4/sig_atomic_t: New file, from GNU gettext.
55694 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55696 2003-10-14 Bruno Haible <bruno@clisp.org>
55698 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55699 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55700 Also use volatile where needed.
55702 2003-10-12 Paul Eggert <eggert@twinsun.com>
55704 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
55705 Change maintainer from Bruno Haible to 'all'.
55707 2003-10-12 Paul Eggert <eggert@twinsun.com>
55709 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55711 2003-10-12 Paul Eggert <eggert@twinsun.com>
55713 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55714 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55715 and define in terms of the other primitives.
55716 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55717 (SIZE_MAX): Define if not already defined.
55718 (array_size_overflow): New function.
55719 (xalloc_die): Abort instead of exiting if 'error' returns.
55720 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55721 (xmalloc, xrealloc): Use them.
55722 (xcalloc): Check for address arithmetic overflow.
55723 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55724 a bit faster than strcpy.
55726 2003-10-10 Simon Josefsson <jas@extundo.com>
55728 * modules/argp (Depends-on): Add restrict and strcase.
55730 2003-10-10 Simon Josefsson <jas@extundo.com>
55732 * m4/argp.m4: Add AC_C_INLINE.
55734 2003-10-08 Paul Eggert <eggert@twinsun.com>
55736 Merge getpass from libc, plus a few fixes.
55738 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55739 Include <stdbool.h>.
55740 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55741 __fsetlocking to empty.
55742 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55743 do include <bits/libc-lock.h>.
55744 Do not include <fcntl.h>; not needed.
55745 [_LIBC]: Include <wchar.h>.
55746 (NOTCANCEL_MODE): New macro.
55747 (flockfile, funlockfile) [_LIBC]: New macros.
55748 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55749 [!_LIBC]: New macros.
55750 (call_fclose): New function.
55751 (getpass): Use it. Save tty stream separately; this simplifies the
55752 code and makes it more reliable if stdin happens to equal stdout.
55753 Invoke __fsetlocking on tty.
55754 Handle thread cancellation if needed.
55755 Namespace cleanup (use __tcgetattr, __getline).
55756 Use bool for Booleans.
55757 [USE_IN_LIBIO]: Handle wide streams.
55758 [!_LIBC]: Unconditionally do the fseek, since we don't know what
55759 stream might go where.
55761 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55762 doesn't have to include <stdio.h> before us.
55763 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55764 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55765 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55766 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55767 if not declared, so that we can use getpass.c code from libc without
55769 (flockfile, ftrylockfile, funlockfile): New macros.
55771 2003-10-08 Paul Eggert <eggert@twinsun.com>
55773 * modules/getpass: Depend on stdbool.
55775 2003-10-08 Paul Eggert <eggert@twinsun.com>
55777 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55779 2003-10-07 Karl Berry <karl@gnu.org>
55781 * config/config.{guess,sub}: update from config.
55783 2003-10-06 Jim Meyering <jim@meyering.net>
55784 Bruno Haible <bruno@clisp.org>
55786 This lets translators provide better translations for the
55787 "Written by ..." part of --version output.
55788 * lib/version-etc.h: Include stdarg.h.
55789 (version_etc_copyright): Declare as readonly.
55790 (version_etc): Make this function variadic with a NULL-terminated list
55791 of author name strings.
55792 (version_etc_va): New declaration.
55793 * lib/version-etc.c: Include stdarg.h, stdlib.h.
55794 (version_etc_copyright): Declare as readonly.
55795 (version_etc_va): New function. Provide a different translatable string
55796 for each possible number of authors < 10. Abbreviate when there are 10
55798 (version_etc): Make this function variadic. Call version_etc_va.
55799 Suggestion from Gary V. Vaughan.
55801 * lib/long-options.h (parse_long_options): Change prototype: the
55802 authors string is moved to the end and becomes variadic.
55803 * lib/long-options.c: Include stdarg.h.
55804 (parse_long_options): Make this function variadic, too.
55805 Call version_etc_va, not version_etc.
55807 2003-10-06 Bruno Haible <bruno@clisp.org>
55809 * modules/version-etc-2: Remove file.
55810 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55812 2003-10-06 Bruno Haible <bruno@clisp.org>
55814 * modules/fatal-signal: New file.
55815 * MODULES.html.sh (func_all_modules): Add fatal-signal.
55817 2003-10-06 Bruno Haible <bruno@clisp.org>
55819 * m4/fatal-signal.m4: New file.
55820 * m4/signalblocking.m4: New file, from GNU gettext.
55822 2003-10-06 Bruno Haible <bruno@clisp.org>
55824 * lib/version-etc-2.h: Remove file.
55825 * lib/version-etc-2.c: Remove file.
55827 2003-10-06 Bruno Haible <bruno@clisp.org>
55829 * lib/fatal-signal.h: New file, from GNU gettext.
55830 * lib/fatal-signal.c: New file, from GNU gettext.
55832 2003-10-05 Paul Eggert <eggert@twinsun.com>
55834 * README: Rework advice for preventing empty .o files.
55835 Don't recommend ELIDE constructs. Recommend <stddef.h>,
55838 2003-10-04 Karl Berry <karl@gnu.org>
55840 * lib/argp*: update from libc.
55842 2003-10-04 Karl Berry <karl@gnu.org>
55844 * config/config.{guess,sub}: update from config.
55846 2003-10-02 Bruno Haible <bruno@clisp.org>
55848 * modules/lchown (Include): Add lchown.h.
55849 * modules/time_r (Include): Use "..." syntax.
55850 * modules/xgetdomainname (Include): Add xgetdomainname.h.
55852 2003-10-01 Simon Josefsson <jas@extundo.com>
55854 * MODULES.html.sh (func_all_modules): Move gethostname from section
55855 'based on' to section 'lacking' POSIX:2001.
55857 2003-10-01 Larry Jones <lawrence.jones@eds.com>
55859 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55860 to output mode on the same stream.
55862 2003-09-29 Paul Eggert <eggert@twinsun.com>
55864 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55865 Fix arg typo in previous patch.
55867 2003-09-28 Jim Meyering <jim@meyering.net>
55869 * lib/error.c: Correct cpp indentation.
55871 2003-09-27 Paul Eggert <eggert@twinsun.com>
55873 * modules/free: New file.
55875 2003-09-27 Paul Eggert <eggert@twinsun.com>
55877 * m4/free.m4: New file.
55879 2003-09-27 Paul Eggert <eggert@twinsun.com>
55881 * lib/minmax.h (MIN, MAX)
55882 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55883 Omit the special code that used __typeof__, since we worry that
55884 it could be more trouble than it's worth. See:
55885 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55886 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55888 * lib/free.c: New file.
55890 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55892 Trivial fixes to Makefile.am parts of module listings.
55893 * modules/strstr: Append strstr.h to lib_SOURCES.
55894 * modules/strcase: Likewise, for strcase.h.
55896 2003-09-27 Karl Berry <karl@gnu.org>
55898 * config/mkinstalldirs: update from automake.
55900 2003-09-26 Paul Eggert <eggert@twinsun.com>
55902 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55903 (error_tail): Do not loop, reallocating temporary buffer, since
55904 the output cannot contain more wide characters than the input
55905 contains bytes, the size must be big enough already. This avoids
55906 one potential size overflow calculation. Check for size overflow
55907 when calculating temporary buffer size. Free temporary buffer
55908 when done, if it was allocated with malloc; this plugs a memory
55909 leak. Remove casts from void * to pointers, that are no longer
55910 needed now that we're assuming C89 or better.
55912 Merge error changes from glibc.
55914 * lib/error.c, error.h: Update copyright notice header to match glibc.
55915 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55916 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55917 Disable cancellation while printing error.
55918 * lib/error.h: Prepend __ to parameter names.
55920 2003-09-26 Jim Meyering <jim@meyering.net>
55922 * lib/error.c (error_tail): Move some declarations
55923 into inner scope where the local variables are used.
55925 2003-09-26 Bruno Haible <bruno@clisp.org>
55927 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55929 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55931 2003-09-26 Bruno Haible <bruno@clisp.org>
55933 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55934 (stpncpy): Define as alias for gnu_stpncpy.
55935 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55937 2003-09-25 Simon Josefsson <jas@extundo.com>
55939 * lib/xgetdomainname.h: New file.
55940 * lib/xgetdomainname.c: New file.
55942 2003-09-25 Simon Josefsson <jas@extundo.com>
55943 Bruno Haible <bruno@clisp.org>
55945 * modules/getdomainname: New file.
55946 * modules/xgetdomainname: New file.
55947 * MODULES.html.sh (func_all_modules): Add getdomainname,
55950 2003-09-25 Simon Josefsson <jas@extundo.com>
55951 Bruno Haible <bruno@clisp.org>
55953 * m4/getdomainname.m4: New file.
55955 2003-09-25 Simon Josefsson <jas@extundo.com>
55956 Bruno Haible <bruno@clisp.org>
55958 * lib/getdomainname.h: New file.
55959 * lib/getdomainname.c: New file.
55961 2003-09-25 Karl Berry <karl@gnu.org>
55963 * lib/argp-fmtstream.c, argp-help.c: update from libc.
55965 2003-09-25 Karl Berry <karl@gnu.org>
55967 * config/install-sh: update from automake.
55969 2003-09-25 Bruno Haible <bruno@clisp.org>
55971 * modules/version-etc-2: New file, from modules/version-etc with
55973 * MODULES.html.sh (func_all_modules): Add version-etc-2.
55975 2003-09-25 Bruno Haible <bruno@clisp.org>
55977 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55978 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55980 2003-09-24 Simon Josefsson <jas@extundo.com>
55982 * modules/xgethostname: Add xgethostname.h.
55984 2003-09-24 Paul Eggert <eggert@twinsun.com>
55986 * lib/linebuffer.c (freebuffer): Don't free the argument, just
55987 the buffer associated with the argument. Bug reported by
55990 2003-09-24 Paul Eggert <eggert@twinsun.com>
55992 * README: Document assumptions that 'int' is at least 32 bits
55993 wide, that integer arithmetic is 2's complement without overflow,
55994 that there are no holes in integer values, that adding sizes of
55995 two nonoverlapping objects can't overflow, and that all-bits-zero
55996 yields scalar zero. Fix spelling and capitalization typos.
55998 2003-09-19 Karl Berry <karl@gnu.org>
56000 * lib/argp.h: update from libc.
56002 2003-09-17 Paul Eggert <eggert@twinsun.com>
56004 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56005 to avoid spurious warnings like "AC_RUN_IFELSE was called before
56006 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56008 2003-09-17 Paul Eggert <eggert@twinsun.com>
56010 * gnulib-tool: Use "test -h", not "test -L", for portability
56011 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
56012 (tags_regexp): Remove, since \| doesn't conform to POSIX.
56013 (sed_extract_prog): Issue s commands one-by-one, rather than
56014 using \| in one s command.
56016 2003-09-16 Paul Eggert <eggert@twinsun.com>
56018 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56019 input error, instead of returning NULL the next time we are called
56020 (and therefore losing track of errno).
56022 2003-09-16 Bruno Haible <bruno@clisp.org>
56024 * gnulib-tool (func_create_testdir): Warn about duplicated
56027 2003-09-15 Paul Eggert <eggert@twinsun.com>
56029 * modules/argmatch, modules/fatal, modules/obstack,
56030 modules/xalloc, modules/xgethostname: Sort dependencies by
56031 importance, not alphabetically.
56033 2003-09-15 Paul Eggert <eggert@twinsun.com>
56035 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56036 fails, so that the caller gets the proper errno.
56038 * lib/readutmp.c (read_utmp): Likewise.
56039 Check for fstat error. Close stream and free storage
56042 2003-09-14 Karl Berry <karl@gnu.org>
56044 * config/srclist.txt (strdup.c): disable for c89 changes.
56046 2003-09-14 Jim Meyering <jim@meyering.net>
56048 * lib/getloadavg.c: Correct cpp indentation.
56049 * lib/strdup.c: Likewise.
56050 * lib/vasnprintf.c: Likewise.
56052 2003-09-14 Bruno Haible <bruno@clisp.org>
56054 * modules/fwriteerror: New file.
56055 * MODULES.html.sh (func_all_modules): Add fwriteerror.
56057 2003-09-14 Bruno Haible <bruno@clisp.org>
56059 * lib/fwriteerror.h: New file.
56060 * lib/fwriteerror.c: New file.
56062 2003-09-12 Paul Eggert <eggert@twinsun.com>
56064 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56065 modules/xgethostname, modules/xalloc: Depend on exit.
56067 2003-09-12 Paul Eggert <eggert@twinsun.com>
56069 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56071 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56072 and AC_MINIX, too, so that their extensions are available.
56074 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
56075 This macro has been superseded by gl_BACKUPFILE.
56077 More patches to assume C89 or better.
56079 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56081 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56083 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56084 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56085 Include <string.h>, <stdlib.h> unconditionally.
56086 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56087 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56088 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56089 headers or for string.h.
56090 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56093 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56095 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56096 * m4/userspec.m4 (gl_USERSPEC): Likewise.
56097 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56098 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56099 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56100 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56102 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56103 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56104 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56106 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56107 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56108 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56111 2003-09-12 Paul Eggert <eggert@twinsun.com>
56113 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56114 * lib/obstack.c [!defined _LIBC]: Likewise.
56115 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56116 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56117 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56119 More changes to assume C89 or better.
56121 * lib/error.c (error_tail): Assume vprintf.
56123 * lib/argmatch.c (getenv): Remove decl.
56124 * lib/progreloc.c (get_full_program_name): Define via prototype.
56125 * lib/setenv.c (clearenv): Likewise.
56126 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56128 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56129 (malloc, memcpy): Remove decls.
56130 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56131 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56132 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56133 (memcpy): Remove macro.
56134 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56135 (__P): Remove. All uses removed.
56136 (PTR): Remove. All uses changed to void *.
56137 (CHAR_BIT, NULL): Remove.
56138 (spaces, zeros, memset_space, memset_zero)
56139 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56141 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56142 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56143 Define with prototype.
56144 Remove now-unnecessary prototype decl.
56145 (extra_args_spec): Assume ANSI C. All uses changed.
56146 (extra_args_spec_iso): Remove.
56147 (my_strftime, emacs_strftimeu): Define via prototype.
56148 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56150 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56151 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56152 (strtoul, strtol): Remove decls.
56153 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56155 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56156 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
56157 (LOCALE_PARAM_PROTO): New macro.
56158 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56159 (INTERNAL (strtol), strtol): Define with a prototype.
56160 (PARAMS): Remove. All uses removed.
56161 * lib/tempname.c: Include <string.h> unconditionally.
56162 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56163 * lib/xgethostname.c (main): Define with a prototype.
56164 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56165 Include <stdlib.h> unconditionally.
56166 (calloc, malloc, realloc, free): Remove decls.
56167 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56168 Include <stdlib.h> unconditionally. Sort include file names.
56170 (xstrtod): Define with a prototype.
56171 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56172 (strtol, strtoul): Remove decls.
56174 2003-09-11 Paul Eggert <eggert@twinsun.com>
56176 More patches to assume C89 or better.
56177 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56178 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56179 string.h, memchr, STDC_HEADERS.
56181 2003-09-11 Paul Eggert <eggert@twinsun.com>
56183 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56184 Include <stdlib.h>, <string.h> unconditionally.
56185 Remove now-unnecessary cast to char *.
56186 * lib/strnlen.c: Include <string.h> unconditionally.
56187 * lib/yesno.c (yesno): Define with a prototype.
56189 2003-09-11 Bruno Haible <bruno@clisp.org>
56191 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56193 2003-09-10 Jim Meyering <jim@meyering.net>
56195 * lib/error.c: Correct indentation of cpp directives.
56197 2003-09-10 Bruno Haible <bruno@clisp.org>
56199 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56200 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56201 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56202 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56203 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56204 <stdlib.h> and <string.h> checks.
56205 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56206 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56208 2003-09-10 Bruno Haible <bruno@clisp.org>
56210 * lib/strcspn.c: Include <string.h> unconditionally.
56211 * lib/strpbrk.c: Include <string.h> unconditionally.
56212 * lib/strstr.c: Include <string.h> unconditionally.
56213 * lib/unicodeio.c: Include <string.h> unconditionally.
56214 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56215 * lib/unsetenv.c: Likewise.
56216 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56217 * lib/yesno.c: Include <stdlib.h> unconditionally.
56218 (rpmatch): Add prototype.
56220 2003-09-09 Paul Eggert <eggert@twinsun.com>
56222 More patches to assume C89 or better.
56223 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56224 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56225 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56227 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56229 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56231 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56233 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56234 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56235 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56237 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56238 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56240 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56242 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56243 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56244 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56245 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56246 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56247 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56249 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56250 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56251 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56252 C headers, or for string.h.
56253 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56254 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56255 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56256 headers, memory.h, stdlib.h, string.h, strings.h.
56257 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56258 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56259 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56261 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56262 headers, memory.h, string.h.
56263 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56264 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56266 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56268 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56269 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56270 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56271 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56272 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56274 2003-09-09 Paul Eggert <eggert@twinsun.com>
56278 * lib/acosl.c (main): Use a prototype.
56279 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56282 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56284 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56285 (getopt, etopt_long, getopt_long_only, _getopt_internal)
56286 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56288 * lib/getopt.c (const): Remove macro.
56289 Include <string.h> unconditionally.
56290 (my_index): Remove; all uses changed to strchr.
56291 (strlen): Remove decl.
56292 (exchange): Remove forward decl; no longer needed.
56293 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56294 Define with prototype.
56295 * lib/getopt1.c (const): Remove macro.
56296 (getopt_long, getopt_long_only, main): Define with prototype.
56298 * lib/getugroups.c: Include <string.h> unconditionally.
56300 * lib/getusershell.c: Include <stdlib.h> unconditionally.
56301 (getusershell, setusershell, endusershell, readname, main):
56302 Define with prototypes.
56304 * lib/group-member.c: Include group-member.h first.
56305 Include <stdlib.h> unconditionally.
56307 * lib/hard-locale.c: Include hard-locale.h first.
56308 Include <stdlib.h>, <string.h> unconditionally.
56310 * lib/hash.c (free, malloc): Remove decls.
56311 Include <stdlib.h> unconditionally.
56313 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56314 (getenv): Do not declare.
56316 * lib/idcache.c: Include <string.h> unconditionally.
56318 * lib/long-options.c: Include long-options.h first, to test interface.
56319 Include <stdlib.h> unconditionally.
56321 * lib/makepath.c: Include makepath.h first, to test interface.
56322 Include <stdlib.h> and <string.h> unconditionally.
56324 * lib/linebuffer.c: Include <stdlib.h>.
56325 (free): Remove decl.
56327 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56328 stddef.h. rpl_malloc returns void *, not char *.
56329 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
56332 * lib/md5.h: Include <limits.h> unconditionally.
56333 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56334 (__P): Remove; all uses removed.
56335 * lib/md5.c: Include "md5.h" first.
56336 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56337 md5_buffer, md5_process_bytes, md5_process_block):
56338 Define with prototypes.
56339 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
56340 * lib/sha.c: Include "sha.h" first.
56341 Include <stdlib.h>, <string.h> unconditionally.
56343 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56344 * lib/memcmp.c (__ptr_t): Likewise.
56345 * lib/memrchr.c (__ptr_t): Likewise.
56346 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56347 Include <string.h> unconditionally.
56348 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56349 * lib/memchr.c: Include <stdlib.h> unconditionally.
56350 * lib/memchr.c (LONG_MAX): Remove.
56351 * lib/memrchr.c (LONG_MAX): Likewise.
56352 * lib/memchr.c (__memchr): Define via a prototype.
56353 * lib/memrchr.c (__memrchr): Likewise.
56354 * lib/memcmp.c (__P): Remove, and remove all uses.
56355 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56356 Remove forward decls; no longer needed.
56357 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56358 Use types required by C89 in prototype.
56360 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56361 * lib/savedir.c: Likewise.
56362 * lib/mkdir.c (free): Remove decl.
56363 * lib/rmdir.c (rmdir): Define with a prototype.
56364 * lib/savedir.c: Include savedir.h first, to test interface.
56366 * lib/mktime.c (STDC_HEADERS): Remove.
56367 Include <stdlib.h>, <string.h> unconditionally.
56369 * lib/modechange.c: Include <stdlib.h> unconditionally.
56370 (malloc): Remove decl.
56372 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56373 (free): Remove decl.
56375 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56376 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56377 (This type really should be intptr_t, but that's a C99ism.)
56378 (_obstack_memcpy): Remove: all uses changed to memcpy.
56379 Include <string.h> unconditionally.
56380 (struct obstack): Assume __STDC__ for types of members
56381 chunkfun, freefun, extra_arg.
56382 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56383 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56384 obstack_begin, obstack_specify_allocation,
56385 obstack_specify_allocation_with_arg, obstack_chunkfun,
56386 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56387 Remove unprototyped decls and the macros that use them.
56388 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56389 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56390 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56391 (defined __STDC__ && __STDC__)]:
56392 Remove nonprototyped code.
56393 Include <stdlib.h> unconditionally.
56394 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56395 _obstack_allocated_p, _obstack_free, obstack_free,
56396 _obstack_memory_used, print_and_abort):
56397 Define using prototypes.
56398 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56399 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56400 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56401 obstack_next_free, obstack_object_size, obstack_room) [0]:
56402 Remove unused, unprototyped code.
56404 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56406 * lib/physmem.c (physmem_total, physmem_available, main): Define
56409 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56410 (main): Define with a prototype.
56412 * lib/posixver.c (getenv): Remove decl.
56414 * lib/putenv.c (malloc): Returns void *, not char *.
56415 Include <string.h> unconditionally.
56416 (strchr, memcpy, NULL): Do not define.
56418 * lib/readtokens.c: Include readtokens.h first, to test interface.
56419 Include <stdlib.h>, <string.h> unconditionally.
56420 (init_tokenbuffer): Define with a prototype.
56422 * lib/regex.c (PARAMS): Remove. All uses removed.
56423 All uses of _RE_ARGS removed, too.
56424 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56426 (bzero): Assume memset exists.
56427 (memcmp, memcpy, NULL): Remove.
56428 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56429 char, or assignments to local vars of type signed char.
56430 (init_syntax_once, PREFIX(extract_number_and_incr),
56431 PREFIX(print_partial_compiled_pattern),
56432 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56433 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56434 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56435 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56436 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56437 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56438 wcs_compile_range, byte_compile_range, truncate_wchar,
56439 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56440 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56441 count_mbs_length, wcs_re_match_2_internal,
56442 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56443 PREFIX(alt_match_null_string_p),
56444 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56445 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56446 regfree, PREFIX(extract_number)): Define with prototype. Remove
56447 now-unnecessary declaration, if any.
56448 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56450 Remove now-unnecessary casts among pointer types.
56451 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56453 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56454 (free): Remove decl.
56456 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56458 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56459 (free): Remove decl.
56461 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56462 * lib/xgetcwd.c: Likewise.
56464 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56465 (free): Remove decl.
56467 * lib/strchrnul.c (strchrnul): Define with a prototype.
56468 Fix bug: c_in was not converted to char before searching.
56470 The following changes are not K&R related:
56472 * lib/group-member.h: Include <sys/types.h>, so that this file is
56474 * lib/makepath.h: Likewise.
56476 * lib/getusershell.c (readname, default_index, line_size, readname):
56477 Use size_t, not int, for sizes.
56478 (readname): If the size overflows, report an error instead of
56481 2003-09-09 Paul Eggert <eggert@twinsun.com>
56483 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56486 2003-09-09 Paul Eggert <eggert@twinsun.com>
56488 * README: New section: portability guidelines.
56490 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56492 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56495 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56497 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56499 2003-09-08 Paul Eggert <eggert@twinsun.com>
56501 Assume C89 or better; remove K&R cruft.
56502 A few of these changes were first proposed by Derek Robert Price
56503 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56505 * lib/addext.c: Include <string.h> unconditionally.
56506 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56507 Don't declare getenv or malloc.
56509 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56510 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56512 (find_stack_direction, alloca): Use prototypes.
56514 * lib/atexit.c (atexit): Define using a prototype.
56516 * lib/basename.c, dirname.c, stripslash.c:
56517 Include <string.h> unconditionally.
56519 * lib/bcopy.c: Include <stddef.h>.
56520 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56522 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56524 * lib/error.h (error, error_at_line, error_print_progname)
56525 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56526 * lib/error.c: Include error.h first, to check interface.
56527 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56528 (VA_START): Remove; all uses changeed to va_start.
56529 (exit, strerror): Remove decls.
56530 (error_print_progname): Prototype uncondionally.
56531 Don't include <errno.h>; no longer needed.
56532 (private_strerror): Remove.
56533 (error_tail): Always define.
56534 (error, error_at_line): Assume C89 or better; always use prototypes.
56535 * lib/fatal.c: Include "fatal.h" first, to test interface.
56536 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56537 (VA_START): Remove; all uses changed to va_start.
56538 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56540 (exit): Remove decl.
56541 (fatal): Prototype unconditionally. Assume va_start works.
56542 Abort at end, to pacify gcc.
56544 * lib/euidaccess.c (main): Define with a prototype.
56546 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56548 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56550 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56552 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56553 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56554 (getenv): Remove decl.
56555 (fnmatch): Define using a prototype.
56556 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56557 (FCT): Define using a prototype.
56559 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56561 * lib/gethostname.c: Include <stddef.h>.
56562 (gethostname): Define with prototype. Length is size_t, not int.
56564 2003-09-08 Paul Eggert <eggert@twinsun.com>
56566 Assume C89 or better; remove K&R cruft.
56567 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56568 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56569 string.h, getenv, malloc.
56570 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56572 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56573 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56574 do not check for strerror.
56575 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56576 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56577 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56578 do not check for doprnt or vprintf.
56579 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56580 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56582 2003-09-08 Paul Eggert <eggert@twinsun.com>
56584 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56585 getversion.c should have been removed then, but was accidentally
56588 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56589 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56591 2003-09-08 Karl Berry <karl@gnu.org>
56593 * config/config.sub, config.guess, srclistvars.sh: update from savannah
56594 config, forget about prep.
56596 * config/depcomp, missing: update from automake.
56598 2003-09-07 Paul Eggert <eggert@twinsun.com>
56600 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
56601 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56603 2003-09-07 Paul Eggert <eggert@twinsun.com>
56605 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56606 copy_tm_result. Bug reported by Simon Josefsson in
56607 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56609 2003-09-06 Paul Eggert <eggert@twinsun.com>
56611 * m4/time_r.m4: New file.
56612 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56613 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56614 is. Check for timegm declaration.
56615 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56616 Do not check for gmtime_r.
56617 Replace mktime if __mktime_internal does not exist and if mktime
56618 hasn't been replaced already.
56620 2003-09-06 Paul Eggert <eggert@twinsun.com>
56622 * lib/time_r.c, lib/time_r.h: New files.
56624 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56626 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
56627 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56629 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56631 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56632 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56633 Include <time_r.h>.
56635 * lib/timegm.c: Switch to glibc implementation, with the following
56637 [defined HAVE_CONFIG_H]: Include <config.h>.
56638 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56639 (__mktime_internal) [!defined _LIBC]: New decl.
56640 (__gmtime_r) [!defined _LIBC]: New macro and function.
56641 (timegm): Use a prototype, since gnulib assumes C89.
56642 Do not bother declaring tmp to be const, as it's not really usefu.
56643 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56644 (timegm): Declare only if HAVE_DECL_TIMEGM.
56646 2003-09-06 Paul Eggert <eggert@twinsun.com>
56648 * MODULES.html.sh (func_all_modules): Add time_r.
56649 * modules/time_r: New file.
56650 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56651 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
56653 2003-09-03 Paul Eggert <eggert@twinsun.com>
56655 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56656 Bug reported by Lute Kamstra in
56657 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56659 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56660 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
56661 course with correspondingly smaller numbers for tomorrow and
56662 yesterday. From Tadayoshi Funaba. Originally installed into
56663 sh-utils on 1999-08-07, but the patch got lost (I guess during the
56666 2003-08-31 Simon Josefsson <jas@extundo.com>
56668 * modules/timegm: New file.
56669 * MODULES.html.sh (func_all_modules): Add timegm.
56671 2003-08-31 Simon Josefsson <jas@extundo.com>
56673 * m4/timegm.m4: New file.
56675 2003-08-31 Simon Josefsson <jas@extundo.com>
56677 * lib/timegm.h: New file.
56678 * lib/timegm.c: New file. Based on
56679 wget-1.8.2/src/http.c:mktime_from_utc.
56681 2003-08-31 Karl Berry <karl@gnu.org>
56683 * lib/argp.h: update from libc.
56685 2003-08-28 Bruno Haible <bruno@clisp.org>
56687 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56688 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56689 followed by '#define fnmatch fnmatch_posix' gives an error.
56691 2003-08-28 Bruno Haible <bruno@clisp.org>
56693 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56694 warning on QNX, which defines O_BINARY to 000000.
56696 2003-08-27 Jim Meyering <jim@meyering.net>
56698 * m4/mkstemp.m4: Require that the system mkstemp be able to create
56699 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
56700 would fail after 32. Reported by Danny Levinson. Details here:
56701 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56703 2003-08-24 Bruno Haible <bruno@clisp.org>
56705 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56706 MSVC7 <stdio.h> is included later.
56708 2003-08-22 Simon Josefsson <jas@extundo.com>
56710 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56712 2003-08-20 Karl Berry <karl@gnu.org>
56714 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56716 2003-08-20 Bruno Haible <bruno@clisp.org>
56718 * modules/progname: New file.
56719 * MODULES.html.sh (func_all_modules): Add progname.
56721 2003-08-20 Bruno Haible <bruno@clisp.org>
56723 * lib/progname.h: New file, from GNU gettext.
56724 * lib/progname.c: New file, from GNU gettext.
56725 * lib/progreloc.c: New file, from GNU gettext.
56727 2003-08-19 Jim Meyering <jim@meyering.net>
56729 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56730 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56732 2003-08-19 Bruno Haible <bruno@clisp.org>
56734 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56737 2003-08-19 Bruno Haible <bruno@clisp.org>
56739 * lib/xstrdup.c: Assume <string.h> exists.
56741 2003-08-18 Paul Eggert <eggert@twinsun.com>
56743 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
56746 2003-08-18 Jim Meyering <jim@meyering.net>
56748 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56749 * m4/lib-ld.m4: Likewise.
56751 2003-08-18 Jim Meyering <jim@meyering.net>
56753 * lib/setenv.h: Indent nested cpp directive.
56754 * lib/vasnprintf.c: Remove trailing blanks.
56756 2003-08-17 Simon Josefsson <jas@extundo.com>
56758 * modules/xstrndup: New file.
56759 * MODULES.html.sh (func_all_modules): Add xstrndup.
56761 2003-08-17 Simon Josefsson <jas@extundo.com>
56763 * modules/argp: Fix autoconf macro name. Add more dependencies.
56765 2003-08-17 Simon Josefsson <jas@extundo.com>
56767 * m4/xstrndup.m4: New file.
56769 2003-08-17 Simon Josefsson <jas@extundo.com>
56771 * m4/argp.m4: New file.
56773 2003-08-17 Simon Josefsson <jas@extundo.com>
56774 Bruno Haible <bruno@clisp.org>
56776 * lib/xstrndup.h: New file.
56777 * lib/xstrndup.c: New file.
56779 2003-08-17 Bruno Haible <bruno@clisp.org>
56781 * modules/strndup (Files, Include): Add lib/strndup.h.
56783 2003-08-17 Bruno Haible <bruno@clisp.org>
56785 * modules/euidaccess (Files): Add lib/euidaccess.h.
56787 2003-08-17 Bruno Haible <bruno@clisp.org>
56789 * lib/strndup.h: New file.
56791 2003-08-17 Bruno Haible <bruno@clisp.org>
56793 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56794 like AC_GNU_SOURCE.
56795 * modules/extensions (configure.ac): Comment out the invocation of
56796 gl_USE_SYSTEM_EXTENSIONS.
56798 2003-08-16 Paul Eggert <eggert@twinsun.com>
56800 Merges from coreutils, etc.
56801 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56802 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
56803 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56805 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56806 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56808 2003-08-16 Paul Eggert <eggert@twinsun.com>
56810 Document merge from coreutils.
56811 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56812 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56813 * modules/utime: Add m4/utimes-null.m4.
56815 2003-08-16 Paul Eggert <eggert@twinsun.com>
56817 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56818 space, undoing this 2003-08-12 change:
56819 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56821 2003-08-16 Paul Eggert <eggert@twinsun.com>
56823 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56824 strtoul.c from libc, undoing this 2003-08-12 change:
56825 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56827 2003-08-16 Jim Meyering <jim@meyering.net>
56829 Merges from coreutils.
56830 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56831 prefix. Adjust cache variables similarly. Create 500 rather than
56832 just 300 files, to exercise bug on Darwin6.5, too.
56833 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56835 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56836 AM_SYS_POSIX_TERMIOS.
56837 Reported by mkc@mathdogs.com.
56838 Also change use of $am_cv_sys_posix_termios
56839 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
56840 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56841 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56842 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56843 in /proc/mounts until it finds one with matching device number. This
56844 is unnecessary when the FILE argument *is* a mount point. No stat call
56845 is necessary in that case. So, disable the statvfs-testing code on
56846 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
56847 as RedHat bug# 84846.
56848 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56849 to 1MB, so as not to render systems with no stack size limit (e.g.,
56850 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56851 Include <unistd.h>. On some systems,
56852 it is required for the definition of _SC_PAGESIZE.
56854 2003-08-16 Jim Meyering <jim@meyering.net>
56856 Merge from coreutils.
56857 * lib/xstrtoimax.c: #else #if -> #elif.
56858 * lib/xstrtoumax.c: Likewise.
56860 2003-08-16 Jim Meyering <jim@meyering.net>
56862 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56863 * m4/utimes.m4: Removed.
56864 * m4/utimes-null.m4: Renamed from utimes.m4.
56866 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56867 to 1MB, so as not to render systems with no stack size limit (e.g.,
56868 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56869 Include <unistd.h>. On some systems,
56870 it is required for the definition of _SC_PAGESIZE.
56872 2003-08-16 Jim Meyering <jim@meyering.net>
56873 and Paul Eggert <eggert@cs.ucla.edu>
56875 Merges from coreutils, etc.
56877 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56878 using the latest version from cvs. This avoids problems with #line
56879 directives using a vendor (Sun) compiler.
56880 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56881 Don't set GETGROUPS_LIB here; now it's
56882 done via getgroups.m4's wrapper function.
56883 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56884 rather than just in sh-util/configure.in, so that the
56885 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56887 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56888 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56889 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56890 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56891 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56892 Remove code that is now done by the newly-required macros.
56893 Append $(EXEEXT) to DF_PROG.
56894 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56895 Do not invoke or require the following here,
56896 since prereq.m4 or some gnulib .m4 now does this for us:
56897 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56898 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56899 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56900 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56901 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56902 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56903 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56905 Do not replace the following functions, as this is now the job
56906 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56907 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56908 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56909 atexit getpass, strdup, getpagesize.
56911 Do not check for the following functions, as this is now the job
56912 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56913 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56915 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56916 Check for sys/sysctl.h.
56917 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56918 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56919 of checking for ssize_t ourselves.
56921 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56922 Require every macro that gnulib/modules/* suggests for us.
56923 (jm_PREREQ_ADDEXT): New macro.
56924 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56925 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56927 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56928 (gl_PHYSMEM): Use it.
56929 Also check for `table' function.
56930 Check for new headers and functions.
56931 Add check for sys/sysmp.h.
56932 With suggestions from Kaveh Ghazi.
56933 Ignore headers that are present but cannot be compiled. This
56934 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56937 2003-08-15 Paul Eggert <eggert@twinsun.com>
56939 Document merge from coreutils.
56940 * modules/userspec: Depend on posixver.
56941 * modules/strftime: Depend on tzset.
56943 2003-08-15 Paul Eggert <eggert@twinsun.com>
56945 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56946 rather than tab, after '#' in shell-script copyright notices.
56947 Suggested by Bruno Haible.
56949 2003-08-15 Paul Eggert <eggert@twinsun.com>
56951 * config/srclist-update: Use three spaces, rather than tab, after '#'
56952 in shell-script copyright notices. Suggested by Bruno Haible.
56953 Remove unnecessary parenthesization in regular expression.
56955 2003-08-15 Jim Meyering <jim@meyering.net>
56957 Merge from coreutils.
56958 * lib/xgethostname.c: Include <stdlib.h>.
56959 (xghostname): Don't exit for anything other than memory-related
56960 failure; just return NULL.
56961 * lib/userspec.c: Include "posixver.h".
56962 (parse_user_spec): Accept `.' as a separator only
56963 in pre-POSIX-200112 mode.
56964 * lib/strtoimax.c: Use #elif rather than #else #if.
56965 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56966 Remove function, now that we can rely on a working tzset function.
56967 [!_LIBC]: Ensure that the required autoconf test has been run.
56968 [!defined _NL_CURRENT && HAVE_STRFTIME]:
56969 Use underlying_strftime for %r.
56970 * lib/sha.c: Merge in some clean-up and optimization changes from
56972 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56973 Ensure that it is a multiple of 64.
56974 Rearrange loop exit tests so as to avoid performing an
56975 additional fread after encountering an error or EOF.
56976 * lib/realloc.c: Update copyright date.
56978 2003-08-15 Jim Meyering <jim@meyering.net>
56979 and Paul Eggert <eggert@twinsun.com>
56981 Merge from coreutils.
56982 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56983 member but strut utmpx does not. Needed for AIX 4.3.3.
56984 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56986 2003-08-15 Jim Meyering <jim@meyering.net>
56987 and Paul Eggert <eggert@cs.ucla.edu>
56989 Merges from coreutils, etc.
56990 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56991 Require gl_FUNC_TZSET_CLOBBER.
56992 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56993 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56996 2003-08-14 Paul Eggert <eggert@twinsun.com>
56998 Help the merge from coreutils.
56999 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57000 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57001 * m4/tzset.m4: Use it too.
57003 2003-08-14 Paul Eggert <eggert@twinsun.com>
57005 * modules/tzset: New file.
57007 2003-08-14 Jim Meyering <jim@meyering.net>
57009 Merges from coreutils.
57010 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57011 variable names, rather than @FNMATCH_H@.
57012 * modules/alloca: Likewise for $(ALLOCA_H).
57014 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57015 the three copies of the literal target, `fnmatch.h'.
57016 * modules/alloca (alloca.h): Likewise.
57018 2003-08-14 Jim Meyering <jim@meyering.net>
57020 Merge from coreutils.
57021 * m4/tzset.m4: New file.
57022 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57023 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57024 otherwise, AIX 5.1 systems would end up using the latter.
57025 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57026 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
57027 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57028 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
57030 2003-08-14 Jim Meyering <jim@meyering.net>
57032 Merge from coreutils.
57033 * lib/obstack.h: Whitespace changes.
57034 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57035 and xcalloc return values.
57036 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57037 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
57038 hang on OSF/1 5.1 for DIR on both local and remote file systems.
57039 Reported by (and fix confirmed by) Nelson H. F. Beebe.
57040 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57042 Use mntctl's return value to drive the entry-processing loop, since
57043 we can't rely on the value of the vmt_length member in the last
57044 entry. On some systems doing so could result in exhausting
57045 virtual memory. Based in part on a patch from Mike Jetzer.
57047 2003-08-14 Jim Meyering <jim@meyering.net>
57048 and Paul Eggert <eggert@twinsun.com>
57050 Merges from coreutils, plus other fixes.
57051 * lib/physmem.c: Merge in portability changes from gcc/libiberty
57052 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
57053 for credits and details. Thanks to Kaveh Ghazi for helping
57054 to keep these files in sync.
57055 (ARRAY_SIZE): Define it.
57056 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57057 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57058 (memcasecmp): Don't assume size_t fits in unsigned int.
57059 Remove casts and duplicate code.
57060 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57061 (memcpy): Remove definition.
57062 Merge in some clean-up and optimization changes from glibc.
57063 [BLOCKSIZE]: Move definition to top of file.
57064 Ensure that it is a multiple of 64.
57065 Rearrange loop exit tests so as to avoid performing an
57066 additional fread after encountering an error or EOF.
57067 * lib/md5.h (md5_uintptr): Define.
57068 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57069 return to the initial working directory. Preserve errno
57071 * lib/idcache.c: Include "xalloc.h".
57072 (xmalloc, xrealloc): Remove decls.
57073 (getuser): Remove casts no longer required in C89.
57074 * lib/human.c: Include stdio.h, for sprintf.
57075 * lib/group-member.c: Include "xalloc.h".
57076 (xmalloc, xrealloc): Remove decls.
57077 (get_group_info): Remove casts no longer required in C89.
57078 * lib/getusershell.c (readname): Remove casts no longer required in
57080 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57081 * lib/getline.c: Whitespace fix, from coreutils.
57083 2003-08-13 Paul Eggert <eggert@twinsun.com>
57085 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57088 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57089 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57090 Undo previous (whitespace-only) change.
57092 2003-08-13 Paul Eggert <eggert@twinsun.com>
57094 * lib/exclude.c: Include <ctype.h>
57095 (IN_CTYPE_DOMAIN): New macro.
57096 (is_space): New fn.
57097 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57100 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57101 Undo previous (whitespace-only) change.
57103 2003-08-13 Paul Eggert <eggert@twinsun.com>
57105 * config/srclist-update: Change update back to the old behavior,
57106 leaving whitespace alone. Use one 'sed' command rather than a
57108 (fixlicense): Now a variable, not a function.
57109 (remove_trailing_blanks): Remove.
57110 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57111 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57112 Undo previous (whitespace-only) change.
57114 2003-08-12 Paul Eggert <eggert@twinsun.com>
57116 Merge from coreutils.
57117 * modules/euidaccess: Add lib_SOURCES, include for new
57120 2003-08-12 Paul Eggert <eggert@twinsun.com>
57122 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57123 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57124 Normalize leading white space and remove trailing white space.
57126 Merge from coreutils
57127 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57129 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57130 0.12.1. These files are now being upgraded automatically by
57131 ../config/srclist-update.
57133 2003-08-12 Paul Eggert <eggert@twinsun.com>
57135 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57136 Normalize leading white space and remove trailing white space.
57137 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57138 notice, as per ../config/srclist-update.
57140 Merge from coreutils.
57141 * lib/euidaccess.h: New file.
57142 * lib/euidaccess.c: Include it.
57143 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57144 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
57145 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57147 2003-08-12 Paul Eggert <eggert@twinsun.com>
57149 * config/srclist-update: Add copyright notice.
57150 (remove_id_lines, remove_trailing_blanks): New constants.
57151 (fixfile): Use them to normalize spacing a bit in copied files.
57152 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57153 Normalize leading white space and remove trailing white space.
57155 * config/texinfo.tex: Sync with texinfo.
57157 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57158 strtoul.c from libc, to merge coreutils whitespace changes.
57160 * config/srclist.txt: Get the following m4 files from gettext:
57161 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57162 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57163 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57166 2003-08-12 Karl Berry <karl@gnu.org>
57168 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57171 2003-08-11 Paul Eggert <eggert@twinsun.com>
57173 * modules/gnu-source, m4/gnu-source.m4:
57174 Remove; we're assuming Autoconf 2.54 or later now.
57175 Suggested by Bruno Haible.
57176 * MODULES.html.sh (func_all_modules): Remove gnu-source.
57178 2003-08-11 Bruno Haible <bruno@clisp.org>
57180 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57182 2003-08-11 Bruno Haible <bruno@clisp.org>
57184 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57185 (vasnprintf): Use it instead of wcslen.
57187 2003-08-11 Bruno Haible <bruno@clisp.org>
57189 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57190 value to ensure that _Bool promotes to int. Use #define for _Bool when
57191 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57193 2003-08-10 Karl Berry <karl@gnu.org>
57195 * lib/regex.h: update from libc (whitespace fix).
57197 2003-08-09 Paul Eggert <eggert@twinsun.com>
57199 Merge some files from coreutils. These changes were
57200 originally made by Jim Meyering.
57201 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57202 many older Unixes require this.
57203 * lib/alloca.c (alloca): Remove cast to argument of free;
57204 no longer needed in C89.
57205 * lib/alloca_.h, regex.h: Fix white space to match
57206 what GNU indent does.
57208 2003-08-09 Paul Eggert <eggert@twinsun.com>
57210 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57211 apparently Emacs's Unicode mode got confused before my 2003-08-05
57214 2003-08-08 Paul Eggert <eggert@twinsun.com>
57216 * m4/extensions.m4: New file.
57217 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57218 Require gl_USE_SYSTEM_EXTENSIONS.
57219 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57220 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57222 2003-08-08 Paul Eggert <eggert@twinsun.com>
57224 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57225 * modules/extensions, modules/gnu-source: New files.
57226 * modules/timespec, modules/unlocked-io: Depend on extensions.
57228 2003-08-07 Paul Eggert <eggert@twinsun.com>
57230 * modules/restrict: New file.
57231 * MODULES.html.sh (func_all_modules): Add restrict.
57232 * modules/regex: Depend on restrict.
57234 2003-08-07 Paul Eggert <eggert@twinsun.com>
57236 * m4/restrict.m4: New file.
57237 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57239 2003-08-07 Bruno Haible <bruno@clisp.org>
57241 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57242 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57244 2003-08-07 Bruno Haible <bruno@clisp.org>
57246 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57247 makes the module 'getndelim2' compatible with the module 'getline'.
57249 2003-08-05 Paul Eggert <eggert@twinsun.com>
57251 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57252 byte with "\201" to avoid glitches when editing that source file
57253 with multi-gnome-terminal.
57255 2003-08-05 Paul Eggert <eggert@twinsun.com>
57257 * lib/bumpalloc.h: Remove.
57259 2003-08-05 Paul Eggert <eggert@twinsun.com>
57261 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57262 * modules/bumpalloc: Remove.
57264 2003-08-04 Paul Eggert <eggert@twinsun.com>
57266 * lib/getloadavg.c: Change copyright notice and spacing to conform to
57269 Merge from coreutils.
57270 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57272 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57273 from Karl Berry, implemented by Jim Meyering.
57274 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57275 from Dmitry V. Levin.
57276 Remove anachronistic cast of xrealloc.
57277 * lib/fnmatch_.h (__const): Remove. Use 'const'.
57278 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57279 type. Otherwise, it wouldn't compile with at least /bin/cc on
57280 ymp-cray-unicos9.0.2.X.
57281 Combine two mostly-identical uses of alloca into one.
57282 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57284 2003-08-04 Dave Love <d.love@dl.ac.uk>
57288 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
57289 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
57290 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57291 obsolete NLIST_NAME_UNION.
57292 [__GNU__]: Undef BSD and FSCALE.
57293 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57295 2003-08-03 Paul Eggert <eggert@twinsun.com>
57297 * lib/stdbool_.h (_Bool): Make it signed char, instead of
57298 an enum type, so that it's guaranteed to promote to int. See:
57299 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57301 2003-08-03 Karl Berry <karl@gnu.org>
57303 * config/depcomp: update from automake.
57305 2003-07-31 Paul Eggert <eggert@twinsun.com>
57307 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
57308 (strerror): Don't assume that a printable int fits in 14 bytes.
57310 2003-07-31 Bruno Haible <bruno@clisp.org>
57312 * modules/getpass-gnu: New file.
57313 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57315 2003-07-31 Bruno Haible <bruno@clisp.org>
57317 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57319 2003-07-24 Karl Berry <karl@gnu.org>
57321 * config/missing: update from automake.
57323 2003-07-24 Derek Robert Price <derek@ximbiot.com>
57324 Bruno Haible <bruno@clisp.org>
57326 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57327 * lib/getline.c (getline, getdelim): Likewise.
57328 Remove _GNU_SOURCE define; now it's defined in config.h through
57331 2003-07-23 Karl Berry <karl@gnu.org>
57333 * config/config.sub: update from prep.
57335 2003-07-22 Paul Eggert <eggert@twinsun.com>
57337 * modules/xalloc (Depends-on): Add exitfail.
57338 * modules/xmemcoll: Likewise.
57340 2003-07-22 Paul Eggert <eggert@twinsun.com>
57342 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57343 over-parenthesization in macros.
57345 Sync with coreutils.
57347 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57350 Use `exit_failure' for xalloc and xmemcoll instead of their own
57351 private exit-failure variables.
57352 * lib/xalloc.h (xalloc_exit_failure): Remove.
57353 * lib/xmalloc.c: Likewise. Include exitfail.h.
57354 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57355 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57356 * lib/xmemcoll.c: Likewise. Include exitfail.h.
57357 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57359 2003-07-20 Jim Meyering <jim@meyering.net>
57361 * modules/closeout (Depends-on): Add exitfail.
57362 Suggestion from Bruno Haible.
57364 2003-07-19 Karl Berry <karl@gnu.org>
57366 * config/config.sub: update from prep.
57368 2003-07-18 Paul Eggert <eggert@twinsun.com>
57370 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57372 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57373 to test that it can stand by itself. Include "exitfail.h".
57374 Clients should set exit_failure instead.
57375 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57377 2003-07-18 Bruno Haible <bruno@clisp.org>
57379 * modules/getndelim2: New file.
57380 * modules/getline: Share files with module getndelim2.
57381 * modules/getnline: Depend on getndelim2 instead of sharing files with
57382 it. Add getnline.c to lib_SOURCES.
57383 * MODULES.html.sh (func_all_modules): Add getndelim2.
57385 2003-07-18 Bruno Haible <bruno@clisp.org>
57387 * m4/getndelim2.m4: New file.
57388 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57389 invoke gl_PREREQ_GETNDELIM2.
57390 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57391 gl_PREREQ_GETNDELIM2.
57392 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57395 2003-07-18 Bruno Haible <bruno@clisp.org>
57397 * lib/getndelim2.h: New file.
57398 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57400 (getndelim2): Make non-static. Change return type to ssize_t.
57401 * lib/getline.h: Change argument names.
57402 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57403 * lib/getnline.c: Include getndelim2.h.
57405 2003-07-18 Andreas Schwab <schwab@suse.de>
57407 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57409 2003-07-17 Karl Berry <karl@gnu.org>
57411 * config/config.sub: update from prep.
57413 2003-07-17 Bruno Haible <bruno@clisp.org>
57415 * modules/getnline: New file.
57416 * modules/getline: Add lib/getndelim2.c to source file list.
57417 * MODULES.html.sh (func_all_modules): Add getnline.
57419 2003-07-17 Bruno Haible <bruno@clisp.org>
57421 * m4/getnline.m4: New file.
57423 2003-07-17 Bruno Haible <bruno@clisp.org>
57425 * m4/Makefile.am.in: Remove file.
57426 * m4/Makefile.am: Remove file.
57427 * m4/Makefile.in: Remove file.
57429 2003-07-17 Bruno Haible <bruno@clisp.org>
57431 * lib/getnline.h: New file.
57432 * lib/getnline.c: New file.
57433 * lib/getndelim2.c: New file, extracted from getline.c.
57434 (getndelim2): Renamed from getdelim2, with added nmax argument.
57435 * lib/getline.c: Include getndelim2.c.
57436 (getdelim2): Moved out to getndelim2.c.
57437 (getline, getdelim): Update.
57439 2003-07-17 Bruno Haible <bruno@clisp.org>
57441 * lib/Makefile.am: Remove file.
57442 * lib/Makefile.in: Remove file.
57444 2003-07-17 Bruno Haible <bruno@clisp.org>
57446 * configure.in: Remove file.
57447 * Makefile.in: Remove file.
57449 2003-07-17 Bruno Haible <bruno@clisp.org>
57451 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57453 2003-07-16 Karl Berry <karl@gnu.org>
57455 * config/srclist-update: was running fixlicense twice, which caused
57456 texinfo.tex to be nullified for some reason. Simplify,
57457 $gplsrc is no longer needed as far as I can see?
57459 2003-07-16 Jim Meyering <jim@meyering.net>
57461 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57463 2003-07-15 Paul Eggert <eggert@twinsun.com>
57465 * config/srclist.txt: Get the following files from gettext-runtime/intl
57466 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57467 ref-del.sin. From Bruno Haible.
57468 * config/srclist-update (fixfile): Change grep pattern again, since the
57469 previous fix didn't work (there was another trailing $). Use
57470 '[$]' to escape the $s.
57472 2003-07-15 Karl Berry <karl@gnu.org>
57474 * lib/vasnprintf.c: update from gettext.
57476 2003-07-15 Karl Berry <karl@gnu.org>
57478 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57479 gets expanded when surrounded by '$'.
57481 2003-07-15 Jim Meyering <jim@meyering.net>
57483 * modules/save-cwd: Don't depend on error. From Derek Price.
57485 2003-07-15 Jim Meyering <jim@meyering.net>
57487 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57489 2003-07-14 Simon Josefsson <jas@extundo.com>
57491 * modules/mempcpy: New file.
57492 * MODULES.html.sh (func_all_modules): Add mempcpy.
57494 2003-07-14 Simon Josefsson <jas@extundo.com>
57496 * m4/mempcpy.m4: New file.
57498 2003-07-14 Simon Josefsson <jas@extundo.com>
57500 * lib/mempcpy.h: New file.
57501 * lib/mempcpy.c: New file.
57503 2003-07-14 Paul Eggert <eggert@twinsun.com>
57505 * modules/getdate, modules/posixtm: Depend on mktime.
57507 2003-07-14 Paul Eggert <eggert@twinsun.com>
57509 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57510 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57511 unicodeio.c, unicodeio.h, unlocked-io.h:
57512 Switch from LGPL to GPL.
57514 2003-07-14 Paul Eggert <eggert@twinsun.com>
57516 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57517 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57518 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57519 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57520 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57521 updated automatically by ../config/srclist-update. This changes
57522 their license from LPGL to GPL.
57524 2003-07-14 Paul Eggert <eggert@twinsun.com>
57526 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57527 assumed to refer to the root of the most recent stable gettext version.
57528 * config/srclistvars.sh: Add defaults for eggert.
57529 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57530 Match "This program" as well as "The program". This is needed
57533 2003-07-14 Jim Meyering <jim@meyering.net>
57535 Don't emit diagnostics. Let callers do that.
57536 * lib/save-cwd.c: Don't include "error.h".
57537 (save_cwd): Don't call error. Ensure that errno is valid
57538 when returning nonzero.
57540 * lib/save-cwd.h (restore_cwd): Update prototype.
57541 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57542 Simplify. Don't call error upon failure. Let callers do that.
57543 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57544 when auditing is enabled. But don't bother updating the #if.
57546 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57548 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57549 it breaks C++ compilation.
57550 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57552 2003-07-10 Simon Josefsson <jas@extundo.com>
57554 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57556 2003-07-10 Jim Meyering <jim@meyering.net>
57558 * m4/clock_time.m4: Remove trailing blank.
57559 * m4/intmax_t.m4: Likewise.
57561 2003-07-10 Jim Meyering <jim@meyering.net>
57563 * lib/vasnprintf.c: Remove trailing blanks.
57564 Make cpp indentation consistent.
57566 2003-07-09 Paul Eggert <eggert@twinsun.com>
57568 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57569 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57570 Switch from LGPL to GPL.
57572 2003-07-09 Paul Eggert <eggert@twinsun.com>
57574 * config/srclist.txt: Sort sublists. Add
57575 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57576 that differ from gnulib for one reason or another; we'd like this list
57577 to be smaller but for now let's document what we have.
57579 2003-07-08 Paul Eggert <eggert@twinsun.com>
57581 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57582 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
57583 and sweeter "eval x=$x".
57584 * config/srclist.txt: Get lib/argp* from glibc.
57586 2003-07-07 Paul Eggert <eggert@twinsun.com>
57588 * lib/mktime.c: Fix some boundary cases and remove need for floating
57591 Issue a compile-time diagnostic if time_t is floating point, or if
57592 two's complement arithmetic is not in effect, or if arithmetic
57593 right shift does not propagate the sign. These assumptions were
57594 all in the original code but they weren't checked.
57596 (TIME_T_MIDPOINT, verify): New macros.
57597 (__isleap): Remove; it has integer overflow problems.
57598 (leapyear): New function, without those problems.
57599 (ydhms_tm_diff): Remove; splitting into two parts.
57600 (ydhms_diff): New function, containing the arithmetic part of
57601 the old ydhms_tm_diff function. Issue a compile-time
57602 diagnostic if we are not using C99 integer division.
57603 Avoid casts when possible.
57604 (guess_time_tm): New function, containing the checking part of
57605 the old ydhms_tm_diff function. Return the new value, rather than
57606 the difference between it and the old. Accept a new argument T
57607 so that *T specifies the old value. Check for overflow in the result.
57609 (__mktime_internal): Use a time_t offset, not a long int offset.
57610 This undoes the 2003-06-04 change, which is no longer needed now
57611 that we have better overflow checking.
57612 (localtime_offset): Likewise.
57614 (__mktime_internal): Avoid harmful overflow on hosts where time_t
57615 and long are 64-bit but int is only 32-bit.
57616 (ydhms_diff): Use long int to store year1 and yday1.
57617 Issue a compile-time diagnostic if long int is not wide enough.
57619 (__mktime_internal): Use long int to store adjusted year and yday.
57620 Use plain C rather than preprocessor commands, if that doesn't
57622 Check for overflow (and try to repair) after each probe
57623 rather than checking only at the very end. This avoids some bugs
57624 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57625 does not equal GMT offset at maximum time).
57626 Use integer to check for overflow rather than floating point; this
57627 is more portable to non-IEEE hosts, and is a tad faster.
57628 When we detect that we are oscillating between two values,
57629 don't check whether tm_isdst has the requested value, since
57630 we already know the answer. When tm_isdst has the wrong value,
57631 use a different heuristic to find the right one, based on the
57632 extreme values actually observed in practice in tz2003a,
57633 rather than the (overly optimistic) "previous 3 calendar quarters".
57635 (not_equal_tm, print_tm, check_result): Use "const T" rather than
57636 "T const" to accommodate glibc style.
57637 (check_result): Use less-confusing report format. "long" -> "long int.
57639 Don't loop if the iteration overflows time_t.
57640 Allow a negative step in the iteration.
57642 2003-07-06 Karl Berry <karl@gnu.org>
57644 * config/depcomp: update from automake.
57645 * config/config.sub: update from prep.
57647 2003-07-03 Karl Berry <karl@gnu.org>
57649 * config/config.guess: update from prep.
57651 2003-07-01 Paul Eggert <eggert@twinsun.com>
57653 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57654 xreadlink.c now includes it unconditionally.
57656 2003-07-01 Paul Eggert <eggert@twinsun.com>
57658 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57659 having it depend on HAVE_SYS_TYPES_H.
57661 2003-07-01 Bruno Haible <bruno@clisp.org>
57663 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57664 <sys/types.h> should be sufficient.
57665 Reported by Paul Eggert.
57667 2003-06-26 Karl Berry <karl@gnu.org>
57669 * config/depcomp: update from automake.
57671 2003-06-26 Bruno Haible <bruno@clisp.org>
57673 * modules/human: Depend on module stdbool.
57675 2003-06-25 Bruno Haible <bruno@clisp.org>
57677 * modules/readlink: New file.
57678 * modules/xreadlink: Depend on it.
57679 * MODULES.html.sh (func_all_modules): Add readlink.
57681 2003-06-25 Bruno Haible <bruno@clisp.org>
57683 * m4/readlink.m4: New file.
57685 2003-06-25 Bruno Haible <bruno@clisp.org>
57687 * lib/readlink.c: New file.
57689 2003-06-22 Karl Berry <karl@gnu.org>
57691 * config/srclist.txt: update mkinstalldirs from automake.
57692 * config/mkinstalldirs: update.
57694 2003-06-22 Bruno Haible <bruno@clisp.org>
57696 Portability to mingw32.
57697 * m4/ssize_t.m4: New file, from GNU gettext.
57698 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57699 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57701 2003-06-22 Bruno Haible <bruno@clisp.org>
57703 * modules/safe-read: Add m4/ssize_t.m4.
57704 * modules/xreadlink: Add m4/ssize_t.m4.
57706 2003-06-20 Bruno Haible <bruno@clisp.org>
57708 Assume C89, so PARAMS isn't needed.
57709 * lib/unicodeio.h (PARAMS): Remove.
57710 * lib/unicodeio.c: Don't use PARAMS.
57712 2003-06-18 Karl Berry <karl@gnu.org>
57714 * config/config.{guess,sub}: update from prep.
57716 2003-06-18 Jim Meyering <jim@meyering.net>
57718 Merge changes from coreutils.
57719 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57720 Remove explicit declarations of xmalloc and realloc.
57722 (read_utmp): Remove anachronistic cast of xmalloc.
57724 2003-06-17 Paul Eggert <eggert@twinsun.com>
57726 Assume C89, so PARAMS isn't needed.
57727 * lib/backupfile.h (PARAMS): Remove. All uses removed.
57728 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57729 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57730 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57731 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57732 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57733 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57734 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57735 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57736 lib/xstrtod.h, lib/xstrtol.h: Likewise.
57737 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57738 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57739 no longer needed. Anyway, config.h should always be included before any
57742 2003-06-11 Simon Josefsson <jas@extundo.com>
57744 * modules/sysexits: New file.
57745 * MODULES.html.sh (func_all_modules): Add sysexits.
57747 2003-06-11 Simon Josefsson <jas@extundo.com>
57749 * lib/sysexit_.h: New file.
57751 2003-06-11 Derek Price <derek@ximbiot.com>
57753 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57756 2003-06-11 Bruno Haible <bruno@clisp.org>
57758 * m4/sysexits.m4: New file.
57760 2003-06-10 Simon Josefsson <jas@extundo.com>
57762 * lib/argp.h: New file, from glibc.
57763 * lib/argp-ba.c: New file, from glibc.
57764 * lib/argp-eexst.c: New file, from glibc.
57765 * lib/argp-fmtstream.c: New file, from glibc.
57766 * lib/argp-fmtstream.h: New file, from glibc.
57767 * lib/argp-fs-xinl.c: New file, from glibc.
57768 * lib/argp-help.c: New file, from glibc.
57769 * lib/argp-namefrob.h: New file, from glibc.
57770 * lib/argp-parse.c: New file, from glibc.
57771 * lib/argp-pv.c: New file, from glibc.
57772 * lib/argp-pvh.c: New file, from glibc.
57773 * lib/argp-xinl.c: New file, from glibc.
57775 2003-06-10 Simon Josefsson <jas@extundo.com>
57777 * modules/strchrnul: New file.
57779 2003-06-10 Simon Josefsson <jas@extundo.com>
57781 * modules/argp: New file.
57783 2003-06-10 Simon Josefsson <jas@extundo.com>
57785 * m4/strchrnul.m4: New file.
57787 2003-06-10 Simon Josefsson <jas@extundo.com>
57789 * lib/strchrnul.h: New file.
57790 * lib/strchrnul.c: New file.
57792 2003-06-10 Bruno Haible <bruno@clisp.org>
57794 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57796 2003-06-07 Karl Berry <karl@gnu.org>
57798 * config/config.{guess,sub}: update from prep.
57800 2003-06-07 Jim Meyering <jim@meyering.net>
57802 * modules/strtod: Use $(...) notation, not @...@ for
57803 AC_REPLACE'd variables.
57804 * modules/localcharset: Likewise.
57806 2003-06-07 Jim Meyering <jim@meyering.net>
57808 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57809 in place of my name in the copyright comment.
57810 Remove definition and uses of __P.
57813 * lib/stat.c: Don't declare xmalloc explicitly.
57814 Instead, include "xalloc.h".
57815 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57816 xrealloc, and xcalloc return values.
57817 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57819 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57821 2003-06-07 Bruno Haible <bruno@clisp.org>
57823 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57824 avoid AC_CONFIG_LINKS.
57825 * modules/fnmatch (Makefile.am): Use explicit creation rule for
57826 fnmatch.h, to avoid AC_CONFIG_LINKS.
57827 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57829 2003-06-07 Bruno Haible <bruno@clisp.org>
57831 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57832 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57833 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57835 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57836 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57839 2003-06-06 Jim Meyering <jim@meyering.net>
57841 Merge from coreutils.
57842 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57843 Consolidate declarations and initializations of *_base* locals.
57845 Merge from coreutils.
57846 This avoids a core dump on systems without GNU putenv,
57847 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57848 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57849 (unsetenv): New static function, from GNU libc.
57850 (rpl_putenv): Use it.
57852 * lib/modechange.c: Remove trailing blanks.
57854 Merge from coreutils.
57855 * lib/fsusage.c: Remove declaration of statfs.
57856 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57858 * lib/posixtm.c: Include <stdbool.h> unconditionally.
57860 2003-06-06 Jim Meyering <jim@meyering.net>
57862 * lib/stdbool_.h: Renamed from stdbool.h.in.
57864 2003-06-06 Jim Meyering <jim@meyering.net>
57865 Bruno Haible <bruno@clisp.org>
57867 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57868 Adjust Makefile.am snippet not to redirect directly to target.
57869 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57871 2003-06-05 Paul Eggert <eggert@twinsun.com>
57873 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57874 mismatch, look in future quarters as well as past. This fixes a
57875 bug when processing fall-backwards gaps immediately after a long
57876 period of daylight-saving time.
57878 * lib/mktime.c: Assume freestanding C89 or better.
57879 (HAVE_LIMITS_H): Remove. Assume it's 1.
57880 (__P): Remove; not used.
57881 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57882 (mktime, not_equal_tm, print_tm, check_result,
57883 main): Use prototypes. Use const * where appropriate.
57884 (main): Fix typo in testing code that uncovered by above changes.
57885 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57887 2003-06-04 Paul Eggert <eggert@twinsun.com>
57889 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57890 locale.h, localeconv. This merges changes from coreutils.
57892 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57893 It can be removed after the next Autoconf is released.
57894 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57897 2003-06-04 Paul Eggert <eggert@twinsun.com>
57899 * lib/mktime.c: Fix Debian bug 177940
57900 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57901 (localtime_offset): Now long int, not time_t, because we want it
57902 to be guaranteed to be signed. All uses changed.
57903 (__mktime_internal): If overflow would occur when adding offset,
57906 Merge 'human' changes from coreutils. Rewrite to support
57907 locale-specific notations like thousands separators.
57908 * lib/human.c: Simplify authorship notice.
57909 Include human.h immediately after config.h.
57910 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57911 <limits.h>: Do not include, since human.h does.
57912 (SIZE_MAX, UINTMAX_MAX): New macros.
57913 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57914 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57915 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57916 (power_letter): Renamed from suffixes.
57917 (generate_suffix_backwards): Remove.
57918 (adjust_value): Now takes int style (because of human.h changes)
57919 and long double value (for greater precision on some platforms).
57920 (group_number): New function.
57921 (human_readable): Use it. Use integer options, not enum.
57922 Put the options before the sizes in the arg list.
57923 Support all the new options.
57924 The old human_readable function has been removed;
57925 use inttostr.h instead.
57926 (human_readable, default_block_size, humblock):
57927 Use uintmax_t, not int, for block sizes.
57928 (human_readable_inexact, block_size_types): Remove.
57929 (block_size_opts): New constant.
57930 (human_options): Renamed from human_block_size, with new signature
57931 that allows block sizes up to UINTMAX_MAX. All callers changed.
57932 * lib/human.h: Add copyright and authorship notice.
57933 Include <limits.h> and <stdbool.h> unconditionally.
57934 (PARAMS): Remove. All uses removed.
57935 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57936 (enum human_inexact_style): Remove tag; now a nameless enum.
57937 (human_floor, human_ceiling, human_round_to_even): Now have
57938 values 2, 0, 1 rather than -1, 1, 0.
57939 (human_group_digits, human_suppress_point_zero, human_autoscale,
57940 human_base_1024, human_SI, human_B): New constants.
57941 (human_readable_inexact, human_block_size): Remove.
57942 (human_readable): Size args are now uintmax_t, not int.
57943 (human_options): New decl.
57945 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57946 unnecessary now that we assume C89 or better. This change
57947 imported from coreutils.
57949 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57950 arbitrarily. This is the same patch as 2003-05-28, but it got lost
57951 in the 2003-05-30 sync from glibc.
57953 .h files should stand alone, but we shouldn't include <sys/types.h>
57954 if we can get away with just <stddef.h>.
57956 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57957 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57958 rather than <sys/types.h>, as we merely need size_t.
57959 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57961 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57962 Include <stdio.h>, to get FILE.
57963 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57964 memcasecmp.h has included <stddef.h> and all we need is size_t.
57965 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57966 our interface, instead of including <sys/types.h>
57968 2003-06-04 Paul Eggert <eggert@twinsun.com>
57970 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57971 now, as glibc mktime is buggy on non-glibc systems.
57973 2003-06-03 Karl Berry <karl@gnu.org>
57975 * config/config.sub: update from prep.
57977 2003-06-02 Paul Eggert <eggert@twinsun.com>
57980 Fix some minor time-related bugs with POSIX time arguments.
57981 Some valid time stamps were being rejected (notably -1, and
57982 time stamps before 1900 on 64-bit hosts). And some invalid
57983 time stamps were being accepted, e.g. September 31.
57985 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57986 that we can return (time_t) -1 successfully.
57987 * lib/posixtm.c: Likewise.
57988 [HAVE_STDBOOL_H]: Include <stdbool.h>.
57989 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57990 (t): Remove static var.
57991 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57992 of static var. All uses changed.
57993 (year): Do not reject years before 1900; they can occur with
57995 (posix_time_parse): Do not check for out-of-range components;
57996 that is now the caller's responsibility, since our checks were
57997 only approximations.
57998 (posixtime): Use mktime to check for out-of-range components,
57999 since it knows them exactly.
58000 If mktime returns (time_t) -1, check whether an error actually occurred
58001 by invoking localtime on -1.
58002 (main) [TEST_POSIXTIME]: Check for input data errors, and report
58003 posixtime failures better.
58004 Improve the test data (in comments only).
58006 2003-06-02 Karl Berry <karl@gnu.org>
58008 * config/mkinstalldirs (version): new variable.
58009 (--version): new option.
58010 (usage): improve message.
58012 2003-05-30 Karl Berry <karl@gnu.org>
58014 * lib/mktime.c: update from libc.
58016 2003-05-30 Bruno Haible <bruno@clisp.org>
58018 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58019 * config/config.rpath: Upgrade to gettext-0.12.1.
58021 2003-05-30 Bruno Haible <bruno@clisp.org>
58023 * m4/gettext.m4: Upgrade to gettext-0.12.1.
58024 * m4/nls.m4: New file, from gettext-0.12.1.
58025 * m4/po.m4: New file, from gettext-0.12.1.
58026 * m4/progtest.m4: Upgrade to gettext-0.12.1.
58028 2003-05-30 Bruno Haible <bruno@clisp.org>
58030 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58031 * lib/localcharset.h: Likewise.
58032 * lib/localcharset.c: Likewise.
58034 2003-05-29 Karl Berry <karl@gnu.org>
58036 * config/config.rpath: update from gettext.
58038 2003-05-28 Paul Eggert <eggert@twinsun.com>
58040 Assume the headers required for C89 freestanding compilers.
58041 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58042 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58043 * m4/human.m4 (gl_HUMAN): Likewise.
58044 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58045 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58046 * m4/userspec.m4 (gl_USERSPEC): Likewise.
58047 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58048 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58049 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58051 2003-05-28 Paul Eggert <eggert@twinsun.com>
58053 Assume the headers required for C89 freestanding compilers.
58054 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58055 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58056 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58057 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58058 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58059 define, since <limits.h> is guaranteed to do that.
58060 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58061 * lib/exclude.c: Include <stdbool.h> unconditionally.
58062 * lib/tempname.c: Include <stddef.h> unconditionally.
58063 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58064 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58065 <stddef.h> does that.
58066 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58067 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58068 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58070 * lib/xstrtol.c: Likewise.
58071 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58072 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58074 * lib/addext.c (addext): Use assignment rather than cast, to avoid
58075 warnings on some platforms.
58077 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58080 2003-05-26 Jim Meyering <jim@meyering.net>
58082 Merge in a change from coreutils:
58083 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58084 that is guaranteed to be `no'. Use `no_such_member' to indicate
58085 that condition, rather than `-1' which is slightly misleading.
58086 Change the name of the cache variable to have the gl_ prefix.
58087 Prompted by a patch from Richard Dawe for DJGPP.
58089 2003-05-24 Karl Berry <karl@gnu.org>
58091 * config/config.guess: update from prep.
58093 2003-05-22 Karl Berry <karl@gnu.org>
58095 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58097 2003-05-20 Karl Berry <karl@gnu.org>
58099 * config/config.guess: update from prep.
58101 2003-05-18 Karl Berry <karl@gnu.org>
58103 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58104 might actually be set by the user.
58106 * config/depcomp, install-sh, mdate-sh: update from automake.
58108 2003-05-17 Bruno Haible <bruno@clisp.org>
58110 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58111 invalid expansion for AC_EGREP_CPP.
58112 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58113 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58114 Suggested by Akim Demaille <akim@epita.fr> in
58115 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58117 2003-05-12 Jim Meyering <jim@meyering.net>
58119 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58120 the space-padded-by-default conversion specifiers, %e, %k, %l.
58122 2003-05-12 Bruno Haible <bruno@clisp.org>
58124 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58125 the string is longer than 4 KB.
58127 2003-05-11 Karl Berry <karl@gnu.org>
58129 * config/config.{guess,sub}: update from prep.
58131 2003-05-09 Bruno Haible <bruno@clisp.org>
58133 * modules/error: Add m4/strerror_r.m4 to file list.
58135 2003-05-03 Bruno Haible <bruno@clisp.org>
58137 Upgrade to Unicode-4.0.
58138 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58139 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58140 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58141 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58142 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58143 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58144 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58145 Change width of U+E0100..U+E01EF from 1 to 0.
58147 2003-04-25 Jim Meyering <jim@meyering.net>
58149 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58150 of type size_t, not int.
58152 2003-04-25 Bruno Haible <bruno@clisp.org>
58154 * lib/copy-file.c: Include <stddef.h>, for size_t.
58156 2003-04-21 Paul Eggert <eggert@twinsun.com>
58158 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58159 code which expansion is under static control. Patch imported from
58160 Akim Demaille's patch to Bison; see
58161 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58163 2003-04-14 Bruno Haible <bruno@clisp.org>
58165 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58167 2003-04-11 Jim Meyering <jim@meyering.net>
58169 Merge changes from Coreutils.
58171 2003-03-22 Jim Meyering <jim@meyering.net>
58173 * lib/strftime.c (widen): Cast alloca return value to proper type.
58175 2003-01-19 Ulrich Drepper <drepper@redhat.com>
58178 * lib/strftime.c (my_strftime): Handle very large width
58179 specifications for numeric values correctly. Improve checks for
58182 2003-01-19 Jim Meyering <jim@meyering.net>
58184 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58186 (nl_get_alt_digit) [! defined my_strftime]: Define.
58187 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58188 _nl_get_alt_digit and _nl_get_walt_digit.
58190 * lib/strftime.c (my_strftime): Merge in locale-related changes from
58191 libc. These changes have no effect outside of _LIBC.
58193 2003-04-10 Bruno Haible <bruno@clisp.org>
58195 * modules/findprog: New file.
58196 * MODULES.html.sh (func_all_modules): Add it.
58198 2003-04-10 Bruno Haible <bruno@clisp.org>
58200 * m4/findprog.m4: New file.
58201 * m4/eaccess.m4: New file.
58203 2003-04-10 Bruno Haible <bruno@clisp.org>
58205 * lib/findprog.h: New file, from GNU gettext.
58206 * lib/findprog.c: New file, from GNU gettext.
58208 2003-04-05 Jim Meyering <jim@meyering.net>
58210 Merge changes from Coreutils.
58212 * lib/exclude.h (PARAMS): Remove definition and uses.
58213 * lib/exclude.c: Remove uses of `PARAMS'.
58215 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58216 Add test-cases for DOS filenames. Declare program_name.
58217 (main): Set up program_name. Patch by Rich Dawe.
58219 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58221 Use mntctl's return value to drive the entry-processing loop, since
58222 we can't rely on the value of the vmt_length member in the last
58223 entry. On some systems doing so could result in exhausting
58224 virtual memory. Based in part on a patch from Mike Jetzer.
58226 2003-04-04 Bruno Haible <bruno@clisp.org>
58228 * modules/linebreak: New file.
58229 * MODULES.html.sh (func_all_modules): Add it.
58231 2003-04-04 Bruno Haible <bruno@clisp.org>
58233 * m4/linebreak.m4: New file.
58235 2003-04-04 Bruno Haible <bruno@clisp.org>
58237 * lib/linebreak.h: New file, from GNU gettext.
58238 * lib/linebreak.c: New file, from GNU gettext with slight
58240 * lib/lbrkprop.h: New file, from GNU gettext.
58242 2003-04-03 Bruno Haible <bruno@clisp.org>
58244 * modules/utf8-ucs4: New file.
58245 * modules/utf16-ucs4: New file.
58246 * modules/ucs4-utf8: New file.
58247 * modules/ucs4-utf16: New file.
58248 * MODULES.html.sh (func_all_modules): Add them.
58250 2003-04-03 Bruno Haible <bruno@clisp.org>
58252 * m4/utf-ucs4.m4: New file.
58253 * m4/ucs4-utf.m4: New file.
58255 2003-04-03 Bruno Haible <bruno@clisp.org>
58257 * lib/utf8-ucs4.h: New file, from GNU gettext.
58258 * lib/utf16-ucs4.h: New file, from GNU gettext.
58259 * lib/ucs4-utf8.h: New file, from GNU gettext.
58260 * lib/ucs4-utf16.h: New file, from GNU gettext.
58262 2003-04-02 Bruno Haible <bruno@clisp.org>
58264 * modules/binary-io: New file.
58265 * MODULES.html.sh (func_all_modules): Add it.
58267 2003-04-02 Bruno Haible <bruno@clisp.org>
58269 * lib/binary-io.h: New file, from GNU gettext.
58271 2003-04-01 Bruno Haible <bruno@clisp.org>
58273 * modules/pathname: New file.
58274 * MODULES.html.sh (func_all_modules): Add it.
58276 2003-04-01 Bruno Haible <bruno@clisp.org>
58278 * lib/pathname.h: New file, from GNU gettext.
58279 * lib/concatpath.c: New file, from GNU gettext.
58281 2003-03-30 Bruno Haible <bruno@clisp.org>
58283 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58285 2003-03-30 Bruno Haible <bruno@clisp.org>
58287 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58288 function chown() doesn't exist.
58290 2003-03-28 Bruno Haible <bruno@clisp.org>
58292 * modules/copy-file: New file.
58293 * MODULES.html.sh (func_all_modules): Add it.
58295 2003-03-28 Bruno Haible <bruno@clisp.org>
58297 * m4/copy-file.m4: New file.
58299 2003-03-28 Bruno Haible <bruno@clisp.org>
58301 * lib/copy-file.h: New file, from GNU gettext.
58302 * lib/copy-file.c: New file, from GNU gettext.
58304 2003-03-18 Jim Meyering <jim@meyering.net>
58306 * lib/quote.c (quote_n): Fix typo in comment.
58308 2003-03-18 Bruno Haible <bruno@clisp.org>
58310 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58312 * m4/onceonly_2_57.m4: Likewise.
58314 2003-03-17 Bruno Haible <bruno@clisp.org>
58316 * m4/onceonly.m4: Require autoconf 2.54 or newer.
58317 (m4_quote): Remove macro.
58318 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58320 2003-03-14 Jim Meyering <jim@meyering.net>
58322 Merge changes from Coreutils.
58323 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58324 to be const, in order to avoid warnings.
58325 (obstack_room): Likewise.
58326 (obstack_empty_p): Likewise.
58328 2003-03-14 Bruno Haible <bruno@clisp.org>
58330 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58331 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58333 2003-03-13 Paul Eggert <eggert@twinsun.com>
58335 Merge changes from Bison.
58336 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58337 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58338 when compiling Bison 1.875's `bitset bset = obstack_alloc
58339 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
58340 * lib/hash.c: Include <stdbool.h> unconditionally.
58342 2003-03-13 Paul Eggert <eggert@twinsun.com>
58344 * m4/onceonly.m4 (m4_quote): New macro.
58345 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58346 Quote AC_FOREACH variable-expansions properly.
58348 2003-03-13 Paul Eggert <eggert@twinsun.com>
58350 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58352 2003-03-09 Paul Eggert <eggert@twinsun.com>
58354 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58355 Reported by Bruce Becker; see:
58356 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58358 2003-03-03 Paul Eggert <eggert@twinsun.com>
58359 Bruno Haible <bruno@clisp.org>
58361 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58362 Reported by John Hughes, see
58363 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58365 2003-02-20 Bruno Haible <bruno@clisp.org>
58367 * MODULES.html.sh (func_all_modules): Add poll.
58369 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58371 * modules/poll: New file.
58373 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58375 * lib/poll_.h: New file.
58376 * lib/poll.c: New file.
58378 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58380 * m4/poll.m4: New file.
58382 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58384 * modules/mathl: New file.
58386 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58388 * lib/mathl.h: New file.
58389 * lib/acosl.c: New file.
58390 * lib/asinl.c: New file.
58391 * lib/atanl.c: New file.
58392 * lib/ceill.c: New file.
58393 * lib/cosl.c: New file.
58394 * lib/expl.c: New file.
58395 * lib/floorl.c: New file.
58396 * lib/frexpl.c: New file.
58397 * lib/ldexpl.c: New file.
58398 * lib/logl.c: New file.
58399 * lib/sincosl.c: New file.
58400 * lib/sinl.c: New file.
58401 * lib/sqrtl.c: New file.
58402 * lib/tanl.c: New file.
58403 * lib/trigl.c: New file.
58404 * lib/trigl.h: New file.
58406 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58408 * m4/mathl.m4: New file.
58410 2003-02-18 Bruno Haible <bruno@clisp.org>
58412 * MODULES.html.sh (func_all_modules): Add mathl.
58414 2003-02-17 Bruno Haible <bruno@clisp.org>
58416 * modules/mkdtemp: New module.
58417 * MODULES.html.sh (func_all_modules): Add it.
58419 2003-02-17 Bruno Haible <bruno@clisp.org>
58421 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58423 2003-02-17 Bruno Haible <bruno@clisp.org>
58425 * lib/mkdtemp.h: New file, from GNU gettext.
58426 * lib/mkdtemp.c: New file, from GNU gettext.
58428 2003-02-02 Jim Meyering <jim@meyering.net>
58430 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58433 2003-01-31 Bruno Haible <bruno@clisp.org>
58435 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58437 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58439 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58441 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58444 2003-01-31 Bruno Haible <bruno@clisp.org>
58446 * lib/rename.c: #undef rename before defining rpl_rename.
58447 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58449 2003-01-30 Bruno Haible <bruno@clisp.org>
58451 * modules/vasnprintf, modules/vasprintf: New modules.
58452 * MODULES.html.sh (func_all_modules): Add them.
58454 2003-01-30 Bruno Haible <bruno@clisp.org>
58456 * m4/signed.m4: New file, from GNU gettext.
58457 * m4/longdouble.m4: New file, from GNU gettext.
58458 * m4/wchar_t.m4: New file, from GNU gettext.
58459 * m4/wint_t.m4: New file, from GNU gettext.
58460 * m4/vasnprintf.m4: New file.
58461 * m4/vasprintf.m4: New file.
58463 2003-01-30 Bruno Haible <bruno@clisp.org>
58465 * lib/printf-args.h: New file, from GNU gettext.
58466 * lib/printf-args.c: New file, from GNU gettext.
58467 * lib/printf-parse.h: New file, from GNU gettext.
58468 * lib/printf-parse.c: New file, from GNU gettext.
58469 * lib/vasnprintf.h: New file, from GNU gettext.
58470 * lib/vasnprintf.c: New file, from GNU gettext.
58471 * lib/asnprintf.c: New file, from GNU gettext.
58472 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58473 * lib/vasprintf.c: New file, from GNU gettext.
58474 * lib/asprintf.c: New file, from GNU gettext.
58476 2003-01-29 Bruno Haible <bruno@clisp.org>
58478 * modules/stpncpy: New module.
58479 * MODULES.html.sh (func_all_modules): Add it.
58481 2003-01-29 Bruno Haible <bruno@clisp.org>
58483 * m4/stpncpy.m4: New file.
58485 2003-01-29 Bruno Haible <bruno@clisp.org>
58487 * lib/stpncpy.h: New file, from GNU gettext with modifications.
58488 * lib/stpncpy.c: New file, from GNU gettext with modifications.
58490 2003-01-28 Bruno Haible <bruno@clisp.org>
58492 * modules/c-ctype: New module.
58493 * MODULES.html.sh (func_all_modules): Add it.
58495 2003-01-28 Bruno Haible <bruno@clisp.org>
58497 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58499 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58502 2003-01-27 Bruno Haible <bruno@clisp.org>
58504 * modules/xsetenv: New module.
58505 * MODULES.html.sh (func_all_modules): Add it.
58507 2003-01-27 Bruno Haible <bruno@clisp.org>
58509 * lib/xsetenv.h: New file, from GNU gettext.
58510 * lib/xsetenv.c: New file, from GNU gettext.
58512 2003-01-23 Jim Meyering <jim@meyering.net>
58514 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58515 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58517 2003-01-23 Bruno Haible <bruno@clisp.org>
58519 * modules/minmax: New module.
58520 * MODULES.html.sh (func_all_modules): Add it.
58522 2003-01-23 Bruno Haible <bruno@clisp.org>
58524 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58527 2003-01-22 Bruno Haible <bruno@clisp.org>
58529 * modules/exit: New module.
58530 * MODULES.html.sh (func_all_modules): Add it.
58532 2003-01-22 Bruno Haible <bruno@clisp.org>
58534 * lib/exit.h: New file, from GNU gettext.
58536 2003-01-19 Bruno Haible <bruno@clisp.org>
58538 * gnulib-tool: Recognize option --extract-maintainer.
58539 (func_get_maintainer): New function.
58540 * modules/*: Add Maintainer entry.
58542 2003-01-16 Jim Meyering <jim@meyering.net>
58544 * m4/regex.m4: The `regex' struct is both input and output.
58545 Initialize it before each use. Patch by Tim Waugh.
58547 2003-01-16 Bruno Haible <bruno@clisp.org>
58549 * MODULES.html.sh: Add a table of contents. Add the module name as
58550 leftmost column. Add hyperlinks.
58552 2003-01-15 Bruno Haible <bruno@clisp.org>
58554 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58556 2003-01-15 Bruno Haible <bruno@clisp.org>
58558 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58559 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58562 2003-01-15 Bruno Haible <bruno@clisp.org>
58564 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58566 2003-01-15 Bruno Haible <bruno@clisp.org>
58568 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58569 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58571 2003-01-14 Jim Meyering <jim@meyering.net>
58573 * lib/same.c (same_name): Tweak a comment.
58575 2003-01-14 Bruno Haible <bruno@clisp.org>
58577 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58578 when a string comparison is sufficient.
58580 2003-01-14 Bruno Haible <bruno@clisp.org>
58582 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58585 2003-01-14 Bruno Haible <bruno@clisp.org>
58587 * lib/hash-pjw.c: Add comment about low quality of this function.
58589 2003-01-13 Bruno Haible <bruno@clisp.org>
58591 * modules/stpcpy: Distribute lib/stpcpy.h.
58592 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58594 2003-01-13 Bruno Haible <bruno@clisp.org>
58596 * modules/*: Add a description.
58597 * modules/strpbrk: Fix Makefile.am snippet.
58598 * modules/strtoimax: Fix dependencies.
58599 * modules/strtoumax: Likewise.
58601 2003-01-13 Bruno Haible <bruno@clisp.org>
58603 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58604 * modules/alloca (Makefile.am): All object files depend on alloca.h.
58605 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58607 2003-01-13 Bruno Haible <bruno@clisp.org>
58609 * gnulib-tool (func_create_testdir): Store config/* files in the main
58611 * config.rpath: Move to ...
58612 * config/config.rpath: ... here.
58613 * modules/gettext: Contains config/config.rpath, not config.rpath.
58614 * modules/iconv: Likewise.
58616 2003-01-12 Paul Eggert <eggert@twinsun.com>
58618 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58619 to avoid collisions with libcurses and libreadline.
58621 * m4/getstr.m4: Remove.
58622 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58624 2003-01-12 Paul Eggert <eggert@twinsun.com>
58626 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58627 to avoid collisions with libcurses and libreadline.
58629 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58630 * lib/getstr.h, getstr.c: Remove.
58631 * lib/getline.c: Include "getline.h", to check interface.
58632 Move body of old getstr.c here: this defines MIN_CHUNK and
58633 declares getdelim2, which is renamed from getstr.
58634 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58636 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58638 * lib/linebuffer.h: Likewise.
58639 (readline): Remove backward-compatibility macro.
58641 2003-01-12 Paul Eggert <eggert@twinsun.com>
58643 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58644 to avoid collisions with libcurses and libreadline.
58646 * MODULES.html.sh: Remove getstr.
58647 * modules/getline: Depend on unlocked-io, not getstr.
58649 2003-01-12 Jim Meyering <jim@meyering.net>
58651 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
58653 2003-01-10 Bruno Haible <bruno@clisp.org>
58655 * modules/alloca: Change Makefile.am requirements. Simplify Include
58656 requirements. Add lib/alloca_.h to file list.
58658 2003-01-10 Bruno Haible <bruno@clisp.org>
58660 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58662 2003-01-10 Bruno Haible <bruno@clisp.org>
58664 * lib/alloca_.h: New file.
58665 * lib/getdate.y: Unconditionally include alloca.h.
58666 * lib/makepath.c: Likewise.
58667 * lib/setenv.c: Likewise.
58668 * lib/userspec.c: Likewise.
58670 2003-01-09 Karl Berry <karl@gnu.org>
58672 * MODULES.html.sh: include `dirname $0` in PATH, to find
58675 2003-01-09 Bruno Haible <bruno@clisp.org>
58677 * modules/stdbool: Change configure.ac, Makefile.am requirements.
58678 Simplify Include requirements. Add lib/stdbool.h.in to file list.
58680 2003-01-09 Bruno Haible <bruno@clisp.org>
58682 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58684 2003-01-09 Bruno Haible <bruno@clisp.org>
58686 * lib/stdbool.h.in: New file.
58688 2003-01-09 Bruno Haible <bruno@clisp.org>
58690 * gnulib-tool (func_all_modules): Ignore files ending in ~.
58691 * MODULES.html.sh: Likewise.
58693 2003-01-08 Jim Meyering <jim@meyering.net>
58695 * lib/full-write.c: Undefine and define-away `const' after inclusion
58696 of errno.h, not before. Suggestion from Bruno Haible.
58698 2003-01-08 Bruno Haible <bruno@clisp.org>
58700 * modules/full-read: Depend on full-write.
58702 2003-01-08 Bruno Haible <bruno@clisp.org>
58704 * lib/safe-read.c: Include specification header first, to ensure its
58706 * lib/full-write.c: Likewise.
58708 2003-01-07 Jim Meyering <jim@meyering.net>
58710 * lib/full-write.c: Rework so that it may serve to define full_read,
58712 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58714 2003-01-07 Bruno Haible <bruno@clisp.org>
58716 * lib/strtoimax.c: Include <stdint.h> as an alternative to
58718 * lib/xstrtol.h: Likewise.
58719 * lib/xstrtoimax.c: Likewise.
58720 * lib/xstrtoumax.c: Likewise.
58721 * lib/human.h: Likewise.
58723 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58724 on systems that have <inttypes.h> but not <stdint.h>.
58726 2003-01-07 Bruno Haible <bruno@clisp.org>
58728 * MODULES.html.sh: Add copyright notice.
58729 (missed_files): Omit CVS directory entries.
58730 (func_module): Make it work with sed-3.02.
58731 * MODULES.txt: Remove file.
58733 2003-01-06 Jim Meyering <jim@meyering.net>
58735 * lib/version-etc.c: Update year in translatable copyright string.
58737 2003-01-03 Karl Berry <karl@gnu.org>
58739 * config/config.{guess,sub}: update from prep.
58741 2003-01-02 Karl Berry <karl@gnu.org>
58743 * doc/COPYING.DOC: belatedly updated to 1.2.
58745 2003-01-01 Karl Berry <karl@gnu.org>
58747 * gnulib-tool (func_verify_module): report module name $module in
58748 error message, not $1.
58749 * gnulib-tool (create-testdir): don't complain if destdir couldn't
58750 be created, only if it doesn't exist.
58751 * gnulib-tool (last_checkin_date): don't expand the $Date here.
58753 2002-12-31 Paul Eggert <eggert@twinsun.com>
58755 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58757 2002-12-31 Paul Eggert <eggert@twinsun.com>
58759 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58760 memcmp if strcoll doesn't work.
58762 2002-12-31 Bruno Haible <bruno@clisp.org>
58764 * lib/utime.c (utime_null): No need to call ftruncate if the file was
58767 2002-12-31 Bruno Haible <bruno@clisp.org>
58769 * lib/memcoll.c (STRCOLL): New macro.
58772 2002-12-31 Bruno Haible <bruno@clisp.org>
58774 * lib/localcharset.h: New file.
58775 * lib/localcharset.c: Include it.
58776 * lib/unicodeio.c: Likewise.
58778 2002-12-31 Bruno Haible <bruno@clisp.org>
58780 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58781 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58783 2002-12-31 Bruno Haible <bruno@clisp.org>
58785 * lib/getline.h: Include <stddef.h>, for size_t.
58787 * lib/unicodeio.h: Include <stddef.h>, for size_t.
58788 * lib/unicodeio.c: Don't include <stddef.h>.
58790 2002-12-31 Bruno Haible <bruno@clisp.org>
58792 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58795 2002-12-24 Karl Berry <karl@gnu.org>
58797 * config/config.guess: update from prep.
58799 2002-12-24 Bruno Haible <bruno@clisp.org>
58801 General infrasructure.
58802 * m4/README: Rewritten.
58803 * m4/onceonly.m4: New file.
58804 * m4/onceonly_2_57.m4: New file.
58807 * m4/atexit.m4: New file.
58810 * m4/strtod.m4: New file.
58813 * m4/strtol.m4: New file.
58816 * m4/strtoul.m4: New file.
58819 * m4/memchr.m4: New file.
58822 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58823 (jm_FUNC_MEMCMP): Invoke it.
58826 * m4/memcpy.m4: New file.
58829 * m4/memmove.m4: New file.
58832 * m4/memset.m4: New file.
58835 * m4/strcspn.m4: New file.
58838 * m4/strpbrk.m4: New file.
58841 * m4/strstr.m4: New file.
58844 * m4/strerror.m4: New file.
58847 * m4/mktime.m4: Renamed from jm-mktime.m4.
58848 (gl_PREREQ_MKTIME): New macro.
58849 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58852 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58853 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58854 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58857 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58858 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58859 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58862 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58863 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58864 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58866 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58869 * m4/xalloc.m4: New file.
58872 * m4/alloca.m4: New file.
58875 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58876 (jm_FUNC_PUTENV): Invoke it.
58879 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58880 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58881 when invoked twice.
58882 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58886 * m4/memrchr.m4: New file.
58889 * m4/stpcpy.m4: New file.
58892 * m4/strcase.m4: New file.
58895 * m4/strdup.m4: New file.
58898 * m4/strnlen.m4: New file.
58901 * m4/strndup.m4: New file.
58904 * m4/xstrtod.m4: New file.
58907 * m4/xstrtol.m4: New file.
58910 * m4/getdate.m4: New file.
58912 Module unlocked-io.
58913 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58914 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58915 * m4/jm-glibc-io.m4n: Remove file.
58917 Module long-options.
58918 * m4/long-options.m4: New file.
58921 * m4/md5.m4: New file.
58924 * m4/sha.m4: New file.
58927 * m4/getstr.m4: New file.
58930 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58931 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58932 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58933 simply getline. Infoke gl_PREREQ_GETLINE.
58936 * m4/obstack.m4: New file.
58939 * m4/hash.m4: New file.
58942 * m4/readtokens.m4: New file.
58945 * m4/strverscmp.m4: New file.
58948 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58952 * m4/strtoll.m4: New file.
58955 * m4/strtoull.m4: New file.
58958 * m4/strtoimax.m4: New file.
58961 * m4/strtoumax.m4: New file.
58964 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58965 jm_AC_PREREQ_XSTRTOIMAX.
58966 Moved the strtol prerequisites to strtol.m4.
58967 Moved the strtoll prerequisites to strtoll.m4.
58968 Moved the strtoimax prerequisites to strtoimax.m4.
58971 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58972 jm_AC_PREREQ_XSTRTOUMAX.
58973 Moved the strtoul prerequisites to strtoul.m4.
58974 Moved the strtoull prerequisites to strtoull.m4.
58975 Moved the strtoumax prerequisites to strtoumax.m4.
58978 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58979 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58982 * m4/dup2.m4: New file.
58985 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58986 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58989 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58990 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58992 Module gettimeofday.
58993 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58994 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58995 gl_PREREQ_GETTIMEOFDAY.
58998 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58999 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59002 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59003 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59004 jm_AC_TYPE_UINTMAX_T.
59005 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59008 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59009 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59012 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59013 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59016 * m4/timespec.m4 (gl_TIMESPEC): New macro.
59017 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59018 * m4/st_mtim.m4: Indentation.
59021 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59022 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59023 gl_PREREQ_NANOSLEEP.
59026 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59027 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59028 (gl_REGEX): New macro.
59031 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59032 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59035 * m4/rmdir.m4: New file.
59038 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59039 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59040 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59043 * m4/dirname.m4: New file.
59046 * m4/getopt.m4: New file.
59048 Module unistd-safer.
59049 * m4/unistd-safer.m4: New file.
59052 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59054 (gl_PREREQ_FNMATCH_EXTRA): New macro.
59055 (gl_FUNC_FNMATCH_POSIX): New macro.
59056 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59057 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59061 * m4/exclude.m4: New file.
59064 * m4/human.m4: New file.
59070 * m4/backupfile.m4: New file.
59071 * m4/d-ino.m4: Indentation.
59074 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59075 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59076 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59079 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59083 * m4/euidaccess.m4: New file.
59086 * m4/file-type.m4: New file.
59089 * m4/fileblocks.m4: New file.
59092 * m4/filemode.m4: New file.
59095 * m4/isdir.m4: New file.
59098 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59099 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59102 * m4/makepath.m4: New file.
59105 * m4/modechange.m4: New file.
59108 * m4/mountlist.m4: New file.
59109 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59112 Module path-concat.
59113 * m4/path-concat.m4: New file.
59116 * m4/pathmax.m4: New file.
59119 * m4/same.m4: New file.
59122 * m4/save-cwd.m4: New file.
59125 * m4/savedir.m4: New file.
59128 * m4/xgetcwd.m4: New file.
59129 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59132 * m4/xreadlink.m4: New file.
59135 * m4/safe-read.m4: New file.
59138 * m4/safe-write.m4: New file.
59141 * m4/closeout.m4: New file.
59143 Module stdio-safer.
59144 * m4/stdio-safer.m4: New file.
59147 * m4/getpass.m4: New file.
59150 * m4/getugroups.m4: New file.
59152 Module group-member.
59153 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59154 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59157 * m4/idcache.m4: New file.
59160 * m4/userspec.m4: New file.
59163 * m4/clock_time.m4: New file.
59164 * m4/gettime.m4: New file.
59167 * m4/settime.m4: New file.
59170 * m4/posixtm.m4: New file.
59172 Module gethostname.
59173 * m4/gethostname.m4: New file.
59176 * m4/canon-host.m4: New file.
59179 * m4/codeset.m4: New file, from gettext-0.11.5.
59180 * m4/gettext.m4: New file, from gettext-0.11.5.
59181 * m4/glibc21.m4: New file, from gettext-0.11.5.
59182 * m4/iconv.m4: New file, from gettext-0.11.5.
59183 * m4/intdiv0.m4: New file, from gettext-0.11.5.
59184 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59185 * m4/inttypes.m4: New file, from gettext-0.11.5.
59186 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59187 * m4/isc-posix.m4: New file, from gettext-0.11.5.
59188 * m4/lcmessage.m4: New file, from gettext-0.11.5.
59189 * m4/lib-ld.m4: New file, from gettext-0.11.5.
59190 * m4/lib-link.m4: New file, from gettext-0.11.5.
59191 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59192 * m4/progtest.m4: New file, from gettext-0.11.5.
59193 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59194 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59195 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59197 Module localcharset.
59198 * m4/localcharset.m4: New file.
59200 Module hard-locale.
59201 * m4/hard-locale.m4: New file.
59204 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59206 * m4/mbrtowc.m4: Add comment.
59209 * m4/memcasecmp.m4: New file.
59212 * m4/memcoll.m4: New file.
59215 * m4/unicodeio.m4: New file.
59218 * m4/rpmatch.m4: New file.
59221 * m4/yesno.m4: New file.
59224 * m4/exitfail.m4: New file.
59227 * m4/c-stack.m4 (gl_C_STACK): New macro.
59228 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59231 * m4/error.m4 (gl_ERROR): New macro.
59232 (jm_PREREQ_ERROR): Use onceonly macros.
59235 * m4/fatal.m4: New file.
59238 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59239 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59241 Module getpagesize.
59242 * m4/getpagesize.m4: New file.
59244 Module getusershell.
59245 * m4/getusershell.m4: New file.
59248 * m4/physmem.m4: New file.
59251 * m4/posixver.m4: New file.
59254 * m4/quotearg.m4: New file.
59257 * m4/quote.m4: New file.
59260 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59263 * m4/sig2str.m4: New file.
59266 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59268 * m4/intmax_t.m4: New file.
59269 * m4/d-type.m4: Indentation.
59270 * m4/jm-macros.m4: Update.
59271 * m4/prereq.m4 (jm_PREREQ): Update.
59272 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59273 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59274 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59275 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59276 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59277 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59278 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59279 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59280 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59281 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59282 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59283 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59284 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59285 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59286 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59287 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59288 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59289 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59290 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59292 2002-12-24 Bruno Haible <bruno@clisp.org>
59294 * MODULES.txt: Update according to m4/ changes.
59297 * config.rpath: New file, from gettext-0.11.5.
59299 * modules/*: New module descriptions.
59300 * gnulib-tool: New file.
59301 * MODULES.html.sh: New file.
59303 2002-12-21 Karl Berry <karl@gnu.org>
59305 * doc/fdl.texi: update to version 1.2.
59307 2002-12-19 Karl Berry <karl@gnu.org>
59309 * config/config.guess: update from prep.
59311 2002-12-18 Bruno Haible <bruno@clisp.org>
59313 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59314 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59316 2002-12-17 Bruno Haible <bruno@clisp.org>
59318 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59319 stdlib.h, string.h.
59321 2002-12-17 Bruno Haible <bruno@clisp.org>
59323 * lib/canon-host.c (strdup): Remove unused declaration.
59325 * lib/fsusage.c: Include full_read.h.
59326 (get_fs_usage): Use full_read instead of safe_read.
59328 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59330 2002-12-12 Karl Berry <karl@gnu.org>
59332 * config/config.guess: update from prep.
59334 2002-12-11 Bruno Haible <bruno@clisp.org>
59336 * m4/setenv.m4: New file, from gettext-0.11.5.
59338 2002-12-11 Bruno Haible <bruno@clisp.org>
59340 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59342 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59345 2002-12-11 Bruno Haible <bruno@clisp.org>
59347 * setenv.c (alloca): Fall back to malloc.
59348 (freea): New macro.
59349 (setenv): Use freea() to free memory allocated with alloca().
59351 2002-11-13 Bruno Haible <bruno@clisp.org>
59353 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59354 function declarations.
59355 * unsetenv.c (unsetenv): Likewise.
59357 2002-03-04 Bruno Haible <bruno@clisp.org>
59359 Portability to AIX 4.3.3.
59360 * unsetenv.c: New file, extracted from setenv.c.
59361 * setenv.c: Move the unsetenv() function to unsetenv.c.
59363 2001-12-20 Bruno Haible <bruno@clisp.org>
59365 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59366 use malloc instead. For SunOS 4.
59368 2001-12-11 Bruno Haible <bruno@clisp.org>
59370 * setenv.c: Declare alloca.
59371 (compar_fn_t): New typedef.
59372 (KNOWN_VALUE, STORE_VALUE): Use it.
59374 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59377 2002-12-10 Paul Eggert <eggert@twinsun.com>
59379 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59380 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59381 Choose values that are less likely to collide with system fnmatch
59383 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59384 defined (e.g., a pure POSIX system).
59385 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59386 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59388 2002-12-06 Paul Eggert <eggert@twinsun.com>
59390 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59391 a pain in practice to deal with generated m4 files. This change
59392 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59394 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59395 and jm-glibc-io.m4, as they are no longer a special case.
59396 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59397 kludge and the auto-generation stuff. Check only whether the
59398 functions are declared, not whether they exist, since older hosts
59399 that don't declare the functions can't use the optimization anyway.
59401 2002-12-06 Jim Meyering <jim@meyering.net>
59403 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59405 Merge in changes from libc's misc/error.c, in preparation
59406 for the merge of gnulib's changes back into libc.
59408 * lib/error.c (_): Define only if not already defined.
59409 Move definition to follow all #include directives.
59410 Include unlocked-io.h only if !_LIBC.
59411 [_LIBC]: Include <libio/libioP.h>.
59412 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59413 (fflush): Tweak definition to use INTUSE.
59416 2002-12-05 Paul Eggert <eggert@twinsun.com>
59418 * lib/alloca.c [defined emacs]: Include "lisp.h".
59419 (xalloc_die) [defined emacs]: New macro.
59420 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59421 [! defined emacs]: Include <xalloc.h>.
59422 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59423 (pointer): Typedef to POINTER_TYPE *.
59424 (malloc): Remove decl; we now always use xmalloc.
59425 (alloca): Use old-style definition, since Emacs needs this.
59426 Check for arithmetic overflow when computing combined size.
59428 2002-12-04 Paul Eggert <eggert@twinsun.com>
59430 Do not generate unlocked-io.h automatically, since it's easier to
59431 maintain it by hand.
59433 * lib/unlocked-io.h: New file, from GNU diffutils,
59434 but with proper copyright notice and attribution.
59435 * lib/gen-uio: Remove.
59436 * lib/Makefile.am: Add copyright notice.
59437 (libfetish_a_SOURCES): Add unlocked-io.h.
59438 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59439 (DISTCLEANFILES, io_functions): Remove macros.
59440 (EXTRA_DIST): Remove gen_uio.
59441 (unlocked-io.h): Remove rule.
59443 2002-12-04 Jim Meyering <jim@meyering.net>
59445 Reflect the fact that stat.c and lstat.c are no longer generated.
59446 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59447 (DISTCLEANFILES): Likewise.
59448 (EXTRA_DIST): Likewise.
59449 (all_local): Don't depend on stat.c or lstat.c.
59450 (stat.c, lstat.c): Remove rules.
59451 (EXTRA_DIST): Remove xstat.in.
59453 * lib/xstat.in: Remove file. Contents moved into stat.c.
59454 * lib/stat.c: New file. Contents mostly from xstat.in.
59455 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59456 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59458 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59460 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59462 2002-12-03 Jim Meyering <jim@meyering.net>
59464 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59465 but not semantics, to minimize the differences between these two files.
59466 (safe_read): Change comment to mention SAFE_READ_ERROR.
59468 * lib/safe-read.c (IS_EINTR): Define.
59469 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59471 2002-12-02 Jim Meyering <jim@meyering.net>
59473 * lib/safe-read.c (EINTR): Define.
59474 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59475 (INT_MAX): Provide fallback.
59476 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59478 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59480 2002-12-02 Bruno Haible <bruno@clisp.org>
59482 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59483 Define, taken from safe-read.c.
59484 (INT_MAX): Provide fallback.
59485 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59486 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59488 * lib/safe-read.c (EINTR): Remove definition.
59489 (safe_read): Don't use EINTR if it is absent.
59491 2002-12-01 Jim Meyering <jim@meyering.net>
59493 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59495 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59497 2002-11-27 Paul Eggert <eggert@twinsun.com>
59499 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59500 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59501 with `if (! (value < limit)) abort ();', for readability.
59503 2002-11-26 Karl Berry <karl@gnu.org>
59505 * lib/strdup.c: copy from libc again, with jim's ok.
59506 * lib/.cppi-disable: re-add strdup.c
59508 2002-11-25 Karl Berry <karl@gnu.org>
59510 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59511 instead of "strtol.c".
59513 2002-11-25 Karl Berry <karl@gnu.org>
59515 * config/install-sh: update from automake for variable quoting, $0 in
59518 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59519 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59522 2002-11-25 Jim Meyering <jim@meyering.net>
59524 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59526 2002-11-24 Karl Berry <karl@gnu.org>
59528 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59529 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59531 2002-11-24 Jim Meyering <jim@meyering.net>
59533 Update from coreutils:
59535 * lib/mktime.c: Merge in changes from libc.
59537 Avoid a link-time failure on some Linux systems.
59538 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59540 (__mon_yday): Declare with the STATIC attribute.
59541 (__mktime_internal): Likewise.
59542 Based on a report from Greg Schafer.
59544 2002-11-23 Jim Meyering <jim@meyering.net>
59546 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59547 Use `unsigned', not `int', as type of index.
59549 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59551 * lib/fsusage.c: Remove unneeded parentheses around operands of
59554 2002-11-22 Paul Eggert <eggert@twinsun.com>
59556 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59557 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59558 so that we can be included first.
59559 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59560 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59561 No need to include stddef.h or sys/types.h any more.
59562 Surround local include files with "", not "<>".
59563 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59564 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59565 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59566 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59567 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59568 (ISPRINT): Remove; no longer needed now that we assume C89.
59570 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59573 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59574 quotearg_char): Use SIZE_MAX rather than
59575 (size_t) -1 when we are talking about "infinity".
59577 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59579 2002-11-22 Paul Eggert <eggert@twinsun.com>
59581 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59582 hint that one should use `if (! x) abort ();' rather than `assert
59583 (x);', and anyway it's one less thing to worry about configuring.
59584 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59585 hash_rehash, hash_insert): Use abort rather than assert.
59587 2002-11-22 Bruno Haible <bruno@clisp.org>
59589 * lib/safe-read.h: Assume C89. Add comments.
59590 (safe_read): Change return type to size_t.
59591 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59592 byte counts > SSIZE_MAX correctly.
59593 * lib/safe-write.h: New file.
59594 * lib/safe-write.c: New file.
59595 * lib/full-read.h: New file.
59596 * lib/full-read.c: New file.
59597 * lib/full-write.h: Assume C89. Add comments.
59598 * lib/full-write.c: Include safe-write.h.
59599 (full_write): Rewritten to use safe_write.
59600 Suggested by Jim Meyering and Paul Eggert.
59602 2002-11-21 Jim Meyering <jim@meyering.net>
59604 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59606 Merge in changes from the coreutils.
59608 2002-09-25 Paul Eggert <eggert@twinsun.com>
59609 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59611 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59612 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59613 int. Work more efficiently if X is the same width as uintmax_t.
59614 Do not compare X to -1, to avoid bogus compiler warning.
59615 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59616 Don't assume that f_frsize and f_bsize are the same type.
59618 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59619 warning on FreeBSD.
59621 * lib/makepath.c (make_path): Restore umask *before* creating the final
59623 (make_path): Minor reformatting.
59625 * lib/xmalloc.c: Adjust to work with new autoconf macros,
59626 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59627 HAVE_MALLOC/HAVE_REALLOC.
59629 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59630 dummy ones. At least on GNU/Linux systems, `auto' means something
59632 From Michael Stone.
59634 2002-11-21 Bruno Haible <bruno@clisp.org>
59636 Remove case insensitive option matching.
59637 * lib/argmatch.h (argcasematch): Remove declaration.
59638 (ARGCASEMATCH): Remove macro.
59639 (__xargmatch_internal): Remove case_sensitive argument.
59640 (XARGMATCH): Update.
59641 (XARGCASEMATCH): Remove macro.
59642 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59643 case_sensitive argument.
59644 (argcasematch): Remove function.
59645 (__xargmatch_internal): Remove case_sensitive argument.
59646 (main): Use XARGMATCH instead of XARGCASEMATCH.
59648 * lib/xmalloc.c: Change compile-time error message. Add comment about
59649 required autoconf version.
59651 2002-11-20 Paul Eggert <eggert@twinsun.com>
59653 Merge argmatch cleanups from Bison. Assume C89.
59655 * lib/argmatch.c: Include config.h here, not in argmatch.h.
59656 Include stdlib.h, for EXIT_FAILURE.
59657 Always include <string.h>, since we assume C89.
59658 (EXIT_FAILURE): Remove pre-C89 bug workaround.
59659 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59660 Include <stddef.h> instead, since it's all we need for size_t.
59661 (PARAMS): Remove. All uses removed.
59662 (ARRAY_CARDINALITY): Do not bother to #undef.
59663 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59664 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59665 Remove unnecessary parentheses.
59666 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59667 Insert necessary parentheses.
59668 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59669 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59671 2002-11-19 Bruno Haible <bruno@clisp.org>
59673 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59674 * lib/mbswidth.h: Include <stddef.h>, for size_t.
59676 * lib/mbswidth.h (PARAMS): Remove macro.
59677 (mbswidth, mbsnwidth): Use ANSI C function declarations.
59678 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59680 * lib/gcd.h (PARAMS): Remove macro.
59681 (gcd): Use ANSI C function declarations.
59682 * lib/gcd.c (gcd): Likewise.
59684 2002-11-15 Bruno Haible <bruno@clisp.org>
59686 * lib/strcspn.c: Include <stddef.h>.
59687 (strcspn): Use ANSI C function declaration. Change return type to
59689 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59690 (strpbrk): Use NULL.
59691 * lib/strpbrk.h (PARAMS): Remove macro.
59692 (strpbrk): Use ANSI C function declaration.
59693 * lib/strstr.c: Don't include <sys/types.h>.
59694 * lib/strstr.h (PARAMS): Remove macro.
59695 (strstr): Use ANSI C function declarations.
59697 2002-11-14 Karl Berry <karl@gnu.org>
59699 * config/mkinstalldirs: `do' on separate line, instead of
59702 2002-11-06 Bruno Haible <bruno@clisp.org>
59704 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59705 * lib/gcd.c (gcd): Likewise.
59707 2002-11-05 Bruno Haible <bruno@clisp.org>
59709 * lib/gcd.h: New file, from gettext-0.11.5.
59710 * lib/gcd.c: New file, from gettext-0.11.5.
59712 2002-11-05 Bruno Haible <bruno@clisp.org>
59714 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59715 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59716 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59717 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59719 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59721 * lib/makepath.c: Include gettext.h instead of <locale.h> and
59724 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59725 * lib/human.c: Include gettext.h instead of <libintl.h>.
59726 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59727 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59728 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59729 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59730 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59731 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59732 (textdomain): Remove definition.
59733 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59735 * lib/long-options.c: Remove include of <libintl.h> and definition of
59737 * lib/same.c: Remove include of <libintl.h> and definition of _.
59739 2002-11-04 Owen Taylor <otaylor@redhat.com>
59741 * lib/config.charset: A few additions for Solaris.
59743 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59745 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59746 * lib/localcharset.c (locale_charset): Declare as extern "C".
59748 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59750 * lib/config.charset: msdos in uk_UA uses CP1125.
59752 2002-11-04 Bruno Haible <bruno@clisp.org>
59754 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59755 * lib/strcase.h: New file, from GNU gettext-0.11.5.
59756 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59757 * lib/strstr.h: New file, from GNU gettext-0.11.5.
59758 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59760 2002-11-04 Bruno Haible <bruno@clisp.org>
59762 * lib/localcharset.c (locale_charset): Don't return an empty string.
59764 2002-11-04 Bruno Haible <bruno@clisp.org>
59766 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59769 2002-11-04 Bruno Haible <bruno@clisp.org>
59771 * lib/config.charset: Update for newest glibc. Add canonical names
59772 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59774 2002-11-04 Bruno Haible <bruno@clisp.org>
59776 * lib/config.charset: Add support for NetBSD.
59778 2002-11-04 Bruno Haible <bruno@clisp.org>
59780 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59782 2002-11-01 Bruno Haible <bruno@clisp.org>
59784 * configure.in: Add AC_CONFIG_AUX_DIR call.
59785 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59787 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59789 2002-09-28 Karl Berry <karl@gnu.org>
59791 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59792 installed automake until the next release, since changes have been
59795 2002-09-25 Karl Berry <karl@gnu.org>
59797 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59798 * lib/getopt*: copy from libc/posix.
59799 * lib/gettext.h: copy from gettext.
59800 * lib/.cppi-disable: add strdup.c, gettext.h.
59802 2002-09-25 Karl Berry <karl@gnu.org>
59804 * config/srclist.txt: enable gettext.h check.
59805 * config/config.{guess,sub}: update from prep.
59806 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59807 from automake 1.6.3.
59810 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
59812 * regex.c (PATFETCH): Remove the translating fetch.
59813 (PATFETCH_RAW): Rename to PATFETCH.
59814 (set_image_of_range): New fun.
59815 (SET_RANGE_TABLE_WORK_AREA): Use it.
59816 (regex_compile): Don't translate the pattern chars so eagerly.
59817 Only do it when inserting an `exactn' bytecode or when handling
59819 (mutually_exclusive_p): Avoid empty statement.
59821 2002-07-06 Jim Meyering <meyering@lucent.com>
59823 * m4/README: Don't mention Makefile.am.in.
59824 Outline how I've tested changes to .m4 files. Yep, it's a pain.
59826 2002-07-01 Jim Meyering <meyering@lucent.com>
59828 * lib/c-stack.c: Include sys/time.h.
59829 From Volker Borchert.
59831 2002-06-26 Paul Eggert <eggert@twinsun.com>
59833 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59835 2002-06-26 Paul Eggert <eggert@twinsun.com>
59837 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59838 New macro. Use it uniformly instead of
59839 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59840 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59841 reported by Vin Shelton.
59843 2002-06-22 Paul Eggert <eggert@twinsun.com>
59845 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59846 Do not assume SA_SIGINFO behavior.
59847 Bug reported by Jim Meyering on NetBSD 1.5.2.
59849 2002-06-22 Jim Meyering <meyering@lucent.com>
59851 * m4/c-stack.m4: New file, from diffutils-2.8.2.
59852 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59854 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59855 now that configure.ac uses AC_GNU_SOURCE.
59856 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59857 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59859 Update to latest tools. Suggestions from Paul Eggert.
59860 * m4/stdbool.m4: New file, from diffutils-2.8.2.
59861 * m4/gnu-source.m4: Update from diffutils-2.8.2.
59862 * m4/fnmatch.m4: Likewise.
59863 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59864 to AC_HEADER_STDBOOL
59866 2002-06-22 Jim Meyering <meyering@lucent.com>
59868 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59869 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59871 2002-06-22 Jim Meyering <meyering@lucent.com>
59873 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59875 * lib/exitfail.c, exitfail.h: Likewise.
59876 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59878 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59880 (EXTRA_DIST): Add fnmatch_loop.c.
59881 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59883 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59884 * lib/fnmatch.c: Update from diffutils-2.8.2.
59885 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59886 * lib/fnmatch.h: Remove file.
59888 2002-06-21 Jim Meyering <meyering@lucent.com>
59890 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59891 * m4/mbrtowc.m4: Likewise.
59893 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59894 * m4/mbswidth.m4: Reflect name change:
59895 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59896 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59898 * m4/lib-link.m4: Update from gettext-0.11.2.
59899 * m4/gettext.m4: Likewise.
59901 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59902 From Alfred M. Szmidt.
59904 2002-06-18 Paul Eggert <eggert@twinsun.com>
59906 * lib/file-type.h: Report an error if neither S_ISREG nor
59907 S_IFREG is defined, instead of using a test specific to glibc
59908 2.2. This should be safe, since POSIX requires S_ISREG and
59909 Unix Version 7 had S_IFREG. We don't need to check for
59910 <sys/types.h> since we don't use any symbols that it defines.
59912 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59914 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59915 $@-t, so that each temporary file name is unique and valid in the first
59916 8 characters, for operation under DOS.
59918 2002-06-15 Paul Eggert <eggert@twinsun.com>
59920 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59922 2002-06-15 Jim Meyering <meyering@lucent.com>
59924 Work even with DJGPP 2.03, which lacks support for symlinks.
59926 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59928 * lib/lchown.c (S_ISLNK): Likewise.
59930 2002-06-15 Jim Meyering <meyering@lucent.com>
59932 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59933 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59934 have been included before this file.
59936 2002-06-14 Jim Meyering <meyering@lucent.com>
59938 * lib/file-type.h: Use the version from diffutils-2.8.2.
59939 * lib/file-type.c: Likewise.
59941 2002-06-07 Jim Meyering <meyering@lucent.com>
59943 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59944 They're needed at least for NetBSD 1.5.2.
59945 ($statxfs_includes): Include those same headers.
59946 ($statxfs_includes): Include sys/vfs.h if available.
59947 ($statxfs_includes): Likewise for sys/statvfs.h.
59948 Check for the following members in both structs statfs and statvfs:
59949 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59951 2002-06-01 Jim Meyering <meyering@lucent.com>
59953 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59954 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59956 2002-05-28 Jim Meyering <meyering@lucent.com>
59958 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59959 Reported by Volker Borchert.
59961 2002-05-27 Jim Meyering <meyering@lucent.com>
59963 Fix a problem seen only on nonconforming systems whereby ls.c's
59964 use of localtime, and then of gettimeofday would cause trouble:
59965 the localtime call used to initialize rpl_gettimeofday's save
59966 mechanism would clobber ls's current local time information so
59967 that in any long listing the first file would always be listed
59968 with date 1970-01-01. Analysis by Volker Borchert.
59970 * lib/gettimeofday.c (localtime): Undefine.
59971 (rpl_localtime): New function.
59973 2002-05-27 Jim Meyering <meyering@lucent.com>
59975 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59978 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59979 use the replacement function; it wouldn't resolve at link time.
59980 Reported by Volker Borchert.
59982 2002-05-22 Jim Meyering <meyering@lucent.com>
59984 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59986 * lib/file-type.h: New file.
59987 * lib/file-type.c (file_type): New file/function. Extracted from
59990 2002-04-30 Jim Meyering <meyering@lucent.com>
59992 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59994 2002-04-29 Paul Eggert <eggert@twinsun.com>
59996 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59998 2002-04-29 Paul Eggert <eggert@twinsun.com>
60000 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60001 Do not check for alloca.h (no longer used) or stdbool.h (was never
60002 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
60004 2002-04-29 Paul Eggert <eggert@twinsun.com>
60006 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60008 2002-04-29 Jim Meyering <meyering@lucent.com>
60010 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60011 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60012 Use AC_FUNC_STRNLEN here instead.
60014 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60015 With autoconf-2.53a, it's part of AC_PROG_CC.
60017 2002-04-28 Paul Eggert <eggert@twinsun.com>
60019 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60020 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60022 2002-04-28 Paul Eggert <eggert@twinsun.com>
60024 * lib/sig2str.h, lib/sig2str.c: New files.
60025 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60027 2002-04-28 Paul Eggert <eggert@twinsun.com>
60029 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60030 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
60031 of 127, since 64 is the largest conceivable number for ancient
60033 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60035 2002-04-28 Jim Meyering <meyering@lucent.com>
60037 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60039 2002-04-24 Jim Meyering <meyering@lucent.com>
60041 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60042 (jm_PREREQ): Use it.
60044 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60045 mach/mach.h fcntl.h.
60046 Check for this function: setlocale.
60048 2002-04-24 Jim Meyering <meyering@lucent.com>
60050 * lib/gettext.h: New file, from Gettext.
60051 * lib/Makefile.am (INCLUDES): Remove -I../intl.
60052 (libfetish_a_SOURCES): Add gettext.h.
60054 2002-04-16 Jim Meyering <meyering@lucent.com>
60056 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60057 ut_pid, ut_id, ut_exit.
60059 2002-04-16 Jim Meyering <meyering@lucent.com>
60061 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60062 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60063 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60065 2002-04-12 Jim Meyering <meyering@lucent.com>
60067 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60068 now-bogus check for f_type in sys/mount.h. Instead, just test for the
60069 existence of the getmntinfo function. Needed for Darwin 5.3.
60071 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60072 This is necessary at least on Darwin 5.3.
60074 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60075 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
60076 strnlen.o in the library, and that makes some versions of ranlib
60079 2002-04-12 Jim Meyering <meyering@lucent.com>
60081 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60083 2002-04-09 Jim Meyering <meyering@lucent.com>
60085 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60086 to be more precise. Rather than saying we're checking whether the
60087 function `works', say what we're testing.
60088 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60089 Reported by Bruno Haible.
60091 2002-03-10 Jim Meyering <meyering@lucent.com>
60093 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60094 Suggestion from Santiago Vila.
60096 2002-03-08 Jim Meyering <meyering@lucent.com>
60098 * lib/rename.c: Mention that this wrapper is needed also on
60099 mips-dec-ultrix4.4 systems.
60101 2002-03-02 Jim Meyering <meyering@lucent.com>
60103 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60104 not HAVE_CLOCK_SETTIME.
60106 2002-02-27 Paul Eggert <eggert@twinsun.com>
60108 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60109 Check for clock_settime.
60111 2002-02-27 Paul Eggert <eggert@twinsun.com>
60113 * lib/nanosleep.h: Rename to....
60114 * lib/timespec.h: New name for nanosleep.h. All uses changed.
60116 * lib/gettime.c: New file.
60117 * lib/settime.c: New file.
60118 * lib/stime.c: Remove.
60120 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60121 timespec.h. Remove nanosleep.h.
60123 2002-02-25 Paul Eggert <eggert@twinsun.com>
60125 * m4/acl.m4: New file.
60126 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60127 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60129 2002-02-25 Paul Eggert <eggert@twinsun.com>
60131 * lib/acl.c, lib/acl.h: New files.
60132 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60134 2002-02-24 Jim Meyering <meyering@lucent.com>
60136 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60137 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60138 cause trouble. Reported by Nelson Beebe.
60140 2002-02-23 Paul Eggert <eggert@twinsun.com>
60142 * lib/path-concat.c (xpath_concat): Reorder code to pacify
60143 compilers that don't know that xalloc_die never returns.
60145 2002-02-20 Jim Meyering <meyering@lucent.com>
60147 * lib/getdate.c: Regenerate using bison-1.33.
60149 2002-02-17 Jim Meyering <meyering@lucent.com>
60151 * config/config.guess (main): Don't use `head -1'; it's no longer
60152 portable. Use `sed 1q' instead.
60154 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
60156 * m4/codeset.m4: Upgrade to gettext-0.11.
60157 * m4/gettext.m4: Upgrade to gettext-0.11.
60158 * m4/glibc21.m4: Upgrade to gettext-0.11.
60159 * m4/iconv.m4: Upgrade to gettext-0.11.
60160 * m4/isc-posix.m4: Upgrade to gettext-0.11.
60161 * m4/lcmessage.m4: Upgrade to gettext-0.11.
60162 * m4/lib-ld.m4: New file, from gettext-0.11.
60163 * m4/lib-link.m4: New file, from gettext-0.11.
60164 * m4/lib-prefix.m4: New file, from gettext-0.11.
60165 * m4/progtest.m4: Upgrade to gettext-0.11.
60167 2002-02-15 Paul Eggert <eggert@twinsun.com>
60169 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60170 (jm_PREREQ): Use it.
60172 2002-02-15 Paul Eggert <eggert@twinsun.com>
60174 * lib/posixver.c, lib/posixver.h: New files.
60175 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60177 2002-02-02 Paul Eggert <eggert@twinsun.com>
60178 Bruno Haible <bruno@clisp.org>
60180 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60181 (fwrite_success_callback): New declaration.
60182 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60183 print_unicode_char. Call failure callback instead of error.
60184 (fwrite_success_callback): New function.
60185 (exit_failure_callback): New function.
60186 (fallback_failure_callback): New function.
60187 (print_unicode_char): Call unicode_to_mb.
60189 2002-01-26 Jim Meyering <meyering@lucent.com>
60191 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60192 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60194 2002-01-26 Jim Meyering <meyering@lucent.com>
60196 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60198 2002-01-22 Paul Eggert <eggert@twinsun.com>
60200 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60202 2002-01-22 Jim Meyering <meyering@lucent.com>
60204 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60205 Otherwise, some versions of automake would omit the rule that makes
60206 Makefile from Makefile.in.
60208 2002-01-21 Paul Eggert <eggert@twinsun.com>
60210 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60211 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60212 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60213 (memcoll): Set errno to zero if there is no error.
60215 * lib/quotearg.c (quotearg_buffer_restyled):
60216 Fix bug with quoting buffers containing NUL when backslashing escapes.
60217 This bug was exposed by the other changes in this patch.
60218 (quotearg_n_options): New arg ARGSIZE.
60219 All callers changed.
60220 (quoting_options_from_style): New function.
60221 (quotearg_n_style): Use it.
60222 (quotearg_n_style_mem): New function.
60224 * lib/quotearg.h (quotearg_n_style_mem): New function.
60226 2002-01-19 Jim Meyering <meyering@lucent.com>
60228 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60229 Remove useless quotes: DF_PROG="df".
60230 * m4/strnlen.m4: New file.
60232 2002-01-16 Paul Eggert <eggert@twinsun.com>
60234 * lib/backupfile.c (ISDIGIT): Comment fix.
60235 * lib/getdate.y (ISDIGIT): Likewise.
60236 * lib/posixtm.c (ISDIGIT, year): Likewise.
60237 * lib/strverscmp.c (ISDIGIT): Likewise.
60238 * lib/userspec.c (ISDIGIT): Likewise.
60240 2002-01-16 Jim Meyering <meyering@lucent.com>
60242 * lib/getdate.y: Add three semicolons, each just before a closing
60243 brace. Bison (as of version 1.31) no longer papers over that mistake.
60245 2002-01-05 Jim Meyering <meyering@lucent.com>
60247 * lib/version-etc.c (version_etc_copyright): Update copyright year.
60249 2001-12-19 Paul Eggert <eggert@twinsun.com>
60251 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60252 not silently exit merely because the output buffer happens to
60253 have nothing pending.
60255 2001-12-18 Paul Eggert <eggert@twinsun.com>
60257 See the big note in ../ChangeLog.
60258 * lib/human.c (suffixes): Prefer K to k for 1024.
60259 (generate_suffix_backwards): New function.
60260 (human_readable_inexact): Use it.
60261 * lib/xstrtol.c (__xstrtol): If there is no number but there
60262 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
60263 Accept 'K' as well as 'k'.
60265 2001-12-15 Jim Meyering <meyering@lucent.com>
60267 * lib/regex.h (__restrict_arr): Update from libc.
60269 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60270 as `remote' if the name starts with `//'. Suggested by Michael Stone.
60273 2001-12-14 Jim Meyering <meyering@lucent.com>
60275 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60276 Suggestion from Bruno Haible.
60278 2001-12-10 Jim Meyering <meyering@lucent.com>
60280 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60281 xrealloc, Instead, include "xalloc.h".
60282 (initbuffer): Don't cast xmalloc return value to char*.
60283 (readline): Reword comment.
60284 Don't cast xrealloc return value to char*
60285 Return NULL, not 0.
60287 2001-12-09 Jim Meyering <meyering@lucent.com>
60289 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60290 about `signed and unsigned type in conditional expression'.
60291 * lib/posixtm.c (posix_time_parse): Likewise.
60293 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60295 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60296 to avoid a pedantic warning.
60298 * lib/getstr.c: Don't include assert.h.
60299 (getstr): Remove warning-evoking assertions.
60300 Return -1 if offset parameter is out of bounds.
60301 Change the type of a local from int to size_t.
60303 * lib/strftime.c (my_strftime_localtime_r): Include this function
60304 definition in the `#if ! HAVE_TM_GMTOFF' block.
60306 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60307 Include xalloc.h instead.
60309 2001-12-02 Jim Meyering <meyering@lucent.com>
60311 * lib/tempname.c: Don't declare getenv, thus reverting the change of
60312 2001-11-18. It's no longer necessary, now that stdlib.h is always
60315 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60316 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
60318 2001-11-30 Akim Demaille <akim@epita.fr>
60320 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60321 before being defined.
60323 2001-11-27 Paul Eggert <eggert@twinsun.com>
60325 * lib/quotearg.h (quotearg_n, quotearg_n_style):
60326 First arg is int, not unsigned.
60327 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60328 (SIZE_MAX, UINT_MAX): New macros.
60329 (quotearg_n_options): Abort if N is negative.
60330 Avoid overflow check on hosts where size_t is 64 bits and int
60331 is 32 bits, as overflow is impossible there.
60332 Fix off-by-one typo that caused unnecessary reallocation.
60334 2001-11-27 Jim Meyering <meyering@lucent.com>
60336 * lib/tempname.c: Merge with version from libc.
60337 * lib/regex.c: Likewise.
60339 * lib/tempname.c: Include stdlib.h unconditionally. On some old
60340 systems for which STDC_HEADERS is 0, it was not included, resulting in
60341 a warning about an integer-to-pointer conversion problem with getenv.
60342 Reported by Volker Borchert.
60344 2001-11-26 Jim Meyering <meyering@lucent.com>
60346 * lib/gtod.h: Remove file.
60347 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60348 * lib/gettimeofday.c: Don't include gtod.h.
60349 (GTOD_init): Remove function.
60350 (rpl_gettimeofday): Do its job here instead, rather than aborting.
60351 Suggestion from Volker Borchert.
60353 2001-11-23 Jim Meyering <meyering@lucent.com>
60355 * lib/hash.h (struct hash_table): Don't define here. Merely declare
60357 * lib/hash.c (struct hash_table): Define it here instead.
60359 2001-11-22 Jim Meyering <meyering@lucent.com>
60361 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60363 2001-11-20 Jim Meyering <meyering@lucent.com>
60365 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60366 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60368 2001-11-19 Jim Meyering <meyering@lucent.com>
60370 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60371 directory. Use "conftestXXXXXX" as the template.
60372 Suggestion from Paul Eggert.
60374 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60375 immediately, so the test doesn't mistakenly hit the max-open-files
60378 2001-11-18 Paul Eggert <eggert@twinsun.com>
60380 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60381 (TEMPORARIES): New macro.
60382 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60383 removes an artificial limitation (e.g. HP-UX 10.20, where
60386 2001-11-18 Jim Meyering <meyering@lucent.com>
60388 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60390 2001-11-18 Jim Meyering <meyering@lucent.com>
60392 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60395 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60396 files will be created before anything else.
60398 2001-11-17 Paul Eggert <eggert@twinsun.com>
60400 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60401 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60403 2001-11-17 Jim Meyering <meyering@lucent.com>
60405 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60406 Prompted by a report from Bob Proulx.
60408 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60409 Instead, require UTILS_FUNC_MKSTEMP.
60411 2001-11-17 Jim Meyering <meyering@lucent.com>
60413 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60414 Now, that's done as part of AC_FUNC_STRTOD.
60416 2001-11-17 Jim Meyering <meyering@lucent.com>
60418 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60419 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60420 rather than group writable. Patch by Juan F. Codagnone.
60422 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60423 xrealloc, Instead, include "xalloc.h".
60425 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60426 Remove explicit declarations of xmalloc, xrealloc,
60427 and xstrdup. Instead, include "xalloc.h".
60429 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60431 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60433 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60435 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60436 Reported by Padraig Brady.
60438 * lib/mkstemp.c: #undef mkstemp.
60440 (rpl_mkstemp): Rename from mkstemp.
60443 2001-11-16 Jim Meyering <meyering@lucent.com>
60445 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60446 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60447 determine the amount of total physical memory, use pstat_getstatic.
60448 HPUX-11 doesn't define _SC_PHYS_PAGES.
60449 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60450 If sysconf couldn't be used to determine the amount of available
60451 physical memory, use both pstat_getstatic and pstat_getdynamic.
60452 Based on a patch from Bob Proulx.
60454 2001-11-10 Jim Meyering <meyering@lucent.com>
60456 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60457 (jm_PREREQ): Use it.
60459 2001-11-09 Jim Meyering <meyering@lucent.com>
60461 * m4/jm-macros.m4: Require autoconf-2.52f.
60462 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60463 Use these AC_-prefixed names, not the AM_-prefixed ones.
60465 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60467 2001-11-05 Jim Meyering <meyering@lucent.com>
60469 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60471 2001-11-04 Jim Meyering <meyering@lucent.com>
60473 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60476 2001-11-03 Jim Meyering <meyering@lucent.com>
60478 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60481 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60482 know the name of the variable in the macro definition.
60484 2001-11-03 Jim Meyering <meyering@lucent.com>
60486 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60487 in argmatch_to_argument call.
60489 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60492 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60493 e.g., a fault due to an attempt to free a NULL pointer.
60495 2001-11-01 Jim Meyering <meyering@lucent.com>
60497 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60498 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60500 2001-11-01 Jim Meyering <meyering@lucent.com>
60502 * lib/dirfd.c, lib/dirfd.h: New files.
60503 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60505 * lib/hash.c (hash_print) [TESTING]: Clean up.
60507 2001-10-22 Paul Eggert <eggert@twinsun.com>
60509 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60510 to avoid a warning if -Wall.
60512 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60515 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60516 (per RMS's instructions, this is now the canonical source)
60517 * lgpl/, gpl/: New directories.
60519 2001-10-21 Paul Eggert <eggert@twinsun.com>
60521 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60523 2001-10-21 Jim Meyering <meyering@lucent.com>
60525 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60526 this code would end up calling gettext even in packages built
60527 with --disable-nls.
60528 * lib/getopt.c (_): Likewise.
60529 * lib/regex.c (_): Likewise.
60531 2001-10-20 Paul Eggert <eggert@twinsun.com>
60533 * m4/error.m4 (jm_PREREQ_ERROR):
60534 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60535 AC_FUNC_STRERROR_R does that.
60536 Check for strerror declaration.
60538 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60539 are supposed to have them these days.
60540 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60541 Merge changes from latest Autoconf CVS.
60542 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60543 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60544 POSIX decided to standardize on the int flavor of strerror_r.
60546 2001-10-20 Paul Eggert <eggert@twinsun.com>
60548 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60549 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60550 Use strerror_r that is only a macro, even if it is not a function.
60551 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60552 (private_strerror): Use prototypes, not old-style function definition.
60553 (print_errno_message): New function.
60554 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60555 char*-flavored one.
60556 (error_tail, error, error_at_line): Use it.
60558 2001-10-11 Jim Meyering <meyering@lucent.com>
60560 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60561 and quote_n (1, ... to avoid clobbering a buffer.
60563 2001-10-05 Jim Meyering <meyering@lucent.com>
60565 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60567 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60568 * lib/hash-pjw.h: New file.
60570 2001-09-30 Jim Meyering <meyering@lucent.com>
60572 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60573 `struct fsstat' has the `f_fstypename' member.
60574 Use that to define FS_TYPE, which is now used to make
60575 the getfsstat link test tighter.
60577 2001-09-30 Jim Meyering <meyering@lucent.com>
60579 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60580 Include <sys/ucred.h>, for Apple Darwin.
60581 Include sys/mount.h and sys/fs_types.h only if available.
60583 (read_filesystem_list): Use FS_TYPE.
60585 2001-09-29 Paul Eggert <eggert@twinsun.com>
60587 * lib/exclude.c (excluded_filename): 0 -> false, since it's
60590 2001-09-29 Jim Meyering <meyering@lucent.com>
60592 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60593 [one-argument getmntent function]): Include stdio.h before mntent.h.
60594 SunOS 4.1.x needs it for the declaration of `FILE'.
60595 Patch by Volker Borchert.
60597 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60598 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60599 sys/fs_types.h, and make the link-test for getfsstat guard #include
60600 directives with appropriate #if HAVE_*_H tests so that we can
60601 detect getfsstat on Apple Darwin1.3.7 systems.
60602 Reported by Nelson Beebe.
60603 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60605 2001-09-28 Paul Eggert <eggert@twinsun.com>
60607 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60608 #defines strtoimax. Also treat the other strto* functions
60611 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60612 Check for strtoul and strtoumax,
60613 as those declarations are made even in the signed case.
60614 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60615 Likewise, for strtol and strtoimax.
60617 2001-09-28 Paul Eggert <eggert@twinsun.com>
60619 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60620 #defines strtoimax. Also treat the other strto* functions
60623 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60624 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60625 (strtoimax, strtoumax): Do not declare if already defined as a macro.
60627 2001-09-26 Jim Meyering <meyering@lucent.com>
60629 Most macros in unlocked-io.h had the wrong number of arguments.
60630 * lib/gen-uio: New script.
60631 (USE_UNLOCKED_IO): Define to 1 if not already defined.
60632 * lib/unlocked-io.hin: Remove file.
60633 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60634 rather than trying to embed it here.
60635 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
60636 Reported by Padraig Brady.
60638 2001-09-25 Volker Borchert <bt@teknon.de>
60640 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60643 2001-09-24 Jim Meyering <meyering@lucent.com>
60645 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60647 2001-09-23 Jim Meyering <meyering@lucent.com>
60649 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60650 instead of the mere test for existence of mntent.h. The latter
60651 would get a false-positive on AIX 3.4 systems.
60652 In the outer getmntent if-block, don't die if neither of the getmntent
60653 tests succeeds. Instead, just fall through and continue with the
60656 2001-09-23 Jim Meyering <meyering@lucent.com>
60658 * lib/mountlist.c: Remove useless parentheses in #if directives.
60659 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60660 the deprecated MOUNTED symbol is no longer defined in mntent.h.
60662 2001-09-22 Jim Meyering <meyering@lucent.com>
60664 * m4/gettext.m4: New file. From gettext.
60665 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60666 * m4/progtest.m4: Likewise
60667 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60668 * m4/glibc21.m4: Likewise.
60670 * m4/libintl.m4: Remove. No longer used.
60672 2001-09-22 Jim Meyering <meyering@lucent.com>
60674 * lib/localcharset.c: Update from latest gettext.
60675 * lib/config.charset: Likewise.
60677 2001-09-20 Jim Meyering <meyering@lucent.com>
60679 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60681 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60684 2001-09-20 Jim Meyering <meyering@lucent.com>
60686 * lib/xstrtol.c (strtoimax): Guard declaration with
60687 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60688 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60689 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60690 (strtoumax): Likewise, for completeness (it wasn't necessary).
60692 2001-09-17 Paul Eggert <eggert@twinsun.com>
60694 * lib/strtoimax.c (HAVE_LONG_LONG):
60695 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60696 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60697 to work around bug in IBM C compiler.
60699 2001-09-17 Jim Meyering <meyering@lucent.com>
60701 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60702 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60703 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60704 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60705 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60706 whenever the right hand side need not be expanded by the shell.
60708 2001-09-16 Paul Eggert <eggert@twinsun.com>
60710 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60711 library. It's not correct, as some older glibcs are buggy.
60712 fnmatch wasn't fixed until glibc 2.2.
60714 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60715 special shell magic here.
60717 2001-09-16 Jim Meyering <meyering@lucent.com>
60719 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60720 * m4/jm-macros.m4: Require it.
60722 2001-09-16 Jim Meyering <meyering@lucent.com>
60724 * lib/mkdir.c: New file.
60726 2001-09-15 Jim Meyering <meyering@lucent.com>
60728 * m4/jm-macros.m4: Check for help2man.
60730 2001-09-11 Jim Meyering <meyering@lucent.com>
60732 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60733 The body, by Paul Eggert, was moved here from configure.in.
60734 * m4/jm-macros.m4: Require UTILS_HOST_OS.
60736 2001-09-04 Paul Eggert <eggert@twinsun.com>
60738 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60739 (jm_PREREQ): Use it.
60741 2001-09-04 Paul Eggert <eggert@twinsun.com>
60743 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
60744 Use ssize_t, not int, to store result of readlink.
60745 Check for ssize_t overflow as well as size_t overflow,
60746 as POSIX says the result of readlink is implementation-defined
60747 when ssize_t overflows.
60748 Remove unnecessary cast to char*.
60749 Use free+malloc instead of realloc, as the storage doesn't need
60750 to be preserved and it's clearer and can be more efficient that way.
60751 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60752 * lib/xreadlink.h (xreadlink): Update prototype.
60754 2001-09-04 Paul Eggert <eggert@twinsun.com>
60756 * lib/xgetcwd.c: Revert some of the previous change; intead,
60757 fix the HAVE_GETCWD_NULL code to behave more like the
60758 !HAVE_GETCWD_NULL code used to.
60760 Include "xalloc.h".
60761 (xgetcwd): Do not return NULL when memory is exhausted; instead,
60764 2001-09-03 Paul Eggert <eggert@twinsun.com>
60766 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60767 sys/param.h, as pathmax.h includes them.
60769 2001-09-03 Paul Eggert <eggert@twinsun.com>
60771 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60772 (jm_PREREQ_XGETCWD): New macro.
60774 * m4/getcwd.m4: New file.
60776 2001-09-03 Paul Eggert <eggert@twinsun.com>
60778 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60779 like the HAVE_GETCWD_NULL code.
60780 Include pathmax.h if not HAVE_GETCWD.
60781 Do not include xalloc.h.
60782 (INITIAL_BUFFER_SIZE): New symbol.
60783 Do not use xmalloc / xrealloc, since the caller is responsible for
60784 handling errors. Preserve errno around `free' during failure.
60785 Do not overrun buffer when using getwd.
60787 2001-09-03 Paul Eggert <eggert@twinsun.com>
60789 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60790 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60793 2001-09-03 Paul Eggert <eggert@twinsun.com>
60795 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60796 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
60797 spotted by Jim Meyering.
60799 2001-09-03 Jim Meyering <meyering@lucent.com>
60801 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60804 2001-09-02 Jim Meyering <meyering@lucent.com>
60806 * lib/error.c: Update from GNU libc.
60808 2001-09-01 Jim Meyering <meyering@lucent.com>
60810 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60813 2001-09-01 Jim Meyering <meyering@lucent.com>
60815 * lib/xreadlink.c: New file.
60816 * lib/xreadlink.h: New file.
60817 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60820 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60821 doesn't conflict with sparc Solaris 7's definition in
60822 /usr/include/sys/int_types.h.
60824 * lib/exclude.c: Use `""', not `<>' to #include non-system header
60826 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60827 and strncasecmp as r-values. Unixware didn't have declarations.
60829 2001-08-31 Paul Eggert <eggert@twinsun.com>
60831 * lib/xstrtol.h: Add copyright notice.
60832 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60833 LONGINT_INVALID_SUFFIX_CHAR.
60835 2001-08-31 Paul Eggert <eggert@twinsun.com>
60837 * lib/xstrtol.c (strtoimax): New decl.
60839 2001-08-31 Paul Eggert <eggert@twinsun.com>
60841 * lib/xgetcwd.c: Don't include pathmax.h.
60842 Include stdlib.h and unistd.h if available.
60844 (xmalloc, xstrdup, free): Remove decls.
60845 (xgetcwd): Don't assume sizes fit in unsigned.
60846 Check for overflow when computing sizes.
60847 Simplify reallocation code.
60849 2001-08-31 Paul Eggert <eggert@twinsun.com>
60851 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60852 a directory's st_size can have an arbitrary value, so the old
60853 usage could waste an arbitrary amount of memory. All uses
60855 * lib/savedir.h: Update prototype.
60857 2001-08-31 Paul Eggert <eggert@twinsun.com>
60859 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60861 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60864 Also, make the following further changes to make this file's
60865 configuration more similar to that of strtol.c:
60866 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60867 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60868 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60869 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60870 changed to signed values.
60872 And make the following changes as well:
60873 Fix copyright notice, as 1999 was missing.
60874 (verify): New macro.
60875 (strtoimax): Check sizes at compile-time, not run-time.
60876 Prefer strtol to strtoll if both work.
60877 (main): Remove; it was not that useful and was a pain to maintain.
60879 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60881 2001-08-31 Jim Meyering <meyering@lucent.com>
60883 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60884 Use an initial, malloc'd, buffer of length 128 rather than
60885 a statically allocated one of length 1024.
60887 2001-08-30 Paul Eggert <eggert@twinsun.com>
60889 Simplify code, partly by assuming autoconf 2.52 semantics.
60891 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60893 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60894 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60896 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60897 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60898 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60899 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60900 jm_AC_HEADER_INTTYPES_H.
60901 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60903 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60905 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60906 Quote first arg of AC_DEFUN.
60907 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60908 since they are needed to parse the include file even if we need
60909 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60910 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60911 but with opposite signedness.
60913 2001-08-30 Paul Eggert <eggert@twinsun.com>
60915 Merge 'exclude' changes from tar 1.13.22.
60916 This fixes one or two unlikely storage allocation overflow bugs,
60917 but doesn't change user-visible behavior otherwise.
60919 2001-08-30 Paul Eggert <eggert@twinsun.com>
60921 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60922 (jm_PREREQ_EXCLUDE): New macro.
60924 2001-08-30 Paul Eggert <eggert@twinsun.com>
60926 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60929 2001-08-30 Paul Eggert <eggert@twinsun.com>
60931 * lib/hash.c: Remove '2001' from copyright notice.
60933 2001-08-30 Paul Eggert <eggert@twinsun.com>
60935 * lib/full-write.h: New file.
60936 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60937 * lib/full-write.c: Correct credits, as cccp.c no longer
60938 exists and anyway it was so heavily changed from the old cccp
60939 code as to be unrecognizable. Include full-write.h.
60940 (full_write) Return size_t, with short writes meaning failure.
60941 All callers changed. This fixes a bug with large buffers
60943 * lib/utime.c: Include full-write.h.
60945 2001-08-30 Paul Eggert <eggert@twinsun.com>
60947 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60948 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60949 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60950 Include if available.
60951 (<xalloc.h>): Include
60952 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60953 (verify): New macro. Use it to verify that EXCLUDE macros do not
60954 collide with FNM macros.
60955 (struct patopts): New struct.
60956 (struct exclude): Use it, as exclude patterns now come with options.
60957 (new_exclude): Support above changes.
60958 (new_exclude, add_exclude_file):
60959 Initial size must now be a power of two to simplify overflow checking.
60960 (free_exclude, fnmatch_no_wildcards): New function.
60961 (excluded_filename): No longer requires options arg, as the options
60962 are determined by add_exclude. Now returns bool, not int.
60963 (excluded_filename, add_exclude):
60964 Add support for the fancy new exclusion options.
60965 (add_exclude, add_exclude_file): Now takes int options arg.
60966 Check for arithmetic overflow when computing sizes.
60967 (add_exclude_file): xrealloc might modify errno, so don't
60968 realloc until after errno might be used.
60970 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60972 (free_exclude): New decl.
60973 (add_exclude, add_exclude_file): Now takes int options arg.
60974 (excluded_filename): No longer requires options arg, as the options
60975 are determined by add_exclude. Now returns bool, not int.
60977 2001-08-30 Paul Eggert <eggert@twinsun.com>
60979 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60981 2001-08-27 Jim Meyering <meyering@lucent.com>
60983 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60985 * lib/version-etc.c (N_): Remove definition.
60986 Revert most of last change.
60987 Instead, simply don't mark the `Copyright...' string for translation.
60988 Based on advice from Paul Eggert.
60990 * lib/strtoxmax.c: Tweak comment.
60992 2001-08-26 Jim Meyering <meyering@lucent.com>
60994 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60996 * m4/xstrtoimax.m4: New file.
60997 * m4/xstrtoumax.m4: Add comments explaining why we
60998 AC_REPLACE_FUNCS(strtol).
61000 2001-08-26 Jim Meyering <meyering@lucent.com>
61002 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61003 of copyright with `%s' so translators don't get an untranslated
61005 (COPYRIGHT_YEAR): Define.
61006 (version_etc): Use fprintf rather than fputs.
61007 Suggestion from Ulrich Drepper.
61009 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61011 * lib/strtoll.c: New file, from GNU libc.
61012 * lib/xstrtoimax.c: New file.
61014 * lib/xstrtol.h: Add xstrtoimax.
61015 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
61016 * lib/strtoimax.c: New file. Likewise, but first define
61019 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61021 * lib/strtoxmax.c: ... then renamed to this.
61023 2001-08-18 Paul Eggert <eggert@twinsun.com>
61025 * m4/inttypes.m4: Add AC_PREREQ(2.13).
61026 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61027 (jm_AC_TYPE_INTMAX_T): New macro.
61028 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61030 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61032 * m4/longlong.m4: Renamed from ulonglong.m4.
61033 * m4/inttypes.m4: Renamed from inttypes_h.m4.
61034 * m4/uintmax_t.m4: Removed.
61036 2001-08-13 Paul Eggert <eggert@twinsun.com>
61038 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61039 Port to Solaris 8, where 'sed' requires a space after the 'r'
61040 command, and where sh dislikes "$/". Clean up the spacing a bit.
61041 Redirect output to $tmp just once.
61043 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
61045 * lib/addext.c (<errno.h>): Include.
61046 (errno): Declare if not defined.
61047 (addext): Work correctly when pathconf returns -1 and leaves
61048 errno alone because there is no limit. Also, work even if
61049 pathconf returns a value greater than SIZE_MAX.
61051 2001-08-12 Jim Meyering <meyering@lucent.com>
61053 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61054 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61055 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61056 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61057 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61058 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61059 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61060 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61061 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61062 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61063 utime.m4, utimes.m4, xstrtoumax.m4:
61064 Quote the first argument in each use of AC_DEFUN.
61066 2001-08-12 Jim Meyering <meyering@lucent.com>
61068 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61069 Simply `return getcwd (NULL, 0);'.
61070 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61071 Use 1300 as initial value for length, not PATH_MAX.
61073 * lib/pathmax.h: Clean up cpp syntax.
61075 2001-08-12 Jim Meyering <meyering@lucent.com>
61077 * lib/gettimeofday.c: New file.
61078 * lib/gtod.h: New file.
61079 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61081 2001-08-05 Jim Meyering <meyering@lucent.com>
61083 * m4/jm-macros.m4: Require autoconf-2.52.
61085 2001-08-04 Jim Meyering <meyering@lucent.com>
61087 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61088 stmt, to get in sync with glibc.
61090 2001-08-03 Paul Eggert <eggert@twinsun.com>
61092 The following changes are from gettext 0.10.39 as maintained by
61095 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61096 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61097 with inverted sense. All uses changed.
61099 * lib/mbswidth.c: Don't include <limits.h>.
61100 Include <stdlib.h> and <string.h> unconditionally.
61101 (iswcntrl, mbsinit, ISCNTRL): New macros.
61102 (mbsnwidth): Use K&R style function declarations.
61103 Don't bother checking for MB_LEN_MAX == 1, since the compiler
61104 can optimize it when MB_CUR_MAX == 1.
61105 The width of control characters is zero, not 1.
61107 2001-08-03 Paul Eggert <eggert@twinsun.com>
61109 The following changes are from gettext 0.10.39 as maintained by
61110 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61112 * m4/codeset.m4: Upgrade to serial AM1.
61113 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61114 all uses changed. Quote first arg of AC_DEFUN.
61115 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61117 * m4/iconv.m4: Upgrade to serial AM2.
61118 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61119 Add --with-libconv-prefix.
61120 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
61121 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61122 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61123 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61124 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61126 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61127 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61128 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61129 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61130 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61131 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61132 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61133 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61134 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61136 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61139 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61140 not the default value.
61142 2001-06-25 Bruno Haible <haible@clisp.cons.org>
61143 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61144 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
61145 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61146 Also check for iswcntrl, used for wcwidth fallback.
61147 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61150 2001-08-03 Jim Meyering <meyering@lucent.com>
61152 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61153 as it was in the original. Reported by Paul Eggert.
61155 2001-07-16 Jim Meyering <meyering@lucent.com>
61157 * m4/gettimeofday.m4: New file.
61158 Prompted by a report from Bernhard Baehr.
61160 2001-07-15 Jim Meyering <meyering@lucent.com>
61162 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61163 stuff. Now it's in ../Makefile.cfg.
61165 2001-07-15 Jim Meyering <meyering@lucent.com>
61167 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61168 (BUILT_SOURCES): Add unlocked-io.h.
61169 (io_functions): Define.
61170 (unlocked-io.h): New rule.
61171 (DISTCLEANFILES): Add unlocked-io.h.
61172 (all-local): Depend on unlocked-io.h, to ensure it is created.
61174 * lib/unlocked-io.hin: New file
61176 * lib/regex.c: Update from glibc.
61178 2001-07-05 Jim Meyering <meyering@lucent.com>
61180 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61182 (libfetish_a_SOURCES): Put all .h files here instead.
61183 Remove a thus-exposed (better checks in automake) duplicate and
61184 two unnecessary .h files.
61186 2001-07-04 Jim Meyering <meyering@lucent.com>
61188 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
61189 that generates jm-glibc-io.m4 so that it doesn't trigger any make
61192 2001-07-02 Jim Meyering <meyering@lucent.com>
61194 The following changes were prompted by suggestions from Bruno Haible.
61196 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61198 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61199 definition of EXTRA_DIST.
61200 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61201 ensure that the generated file is created/updated whenever the list
61202 of $(unlocked_functions) is changed.
61203 (jm-glibc-io.m4): New rule.
61204 (unlocked-io.h): New rule -- currently unused.
61206 2001-06-24 Jim Meyering <meyering@lucent.com>
61208 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61209 unmatched right bracket, rather than kludging it with an extra,
61210 falsely-matching quote in a comment. Patch by Akim Demaille.
61212 2001-06-11 Jim Meyering <meyering@lucent.com>
61214 * lib/regex.c: Update from GNU libc.
61216 2001-05-27 Jim Meyering <meyering@lucent.com>
61218 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61219 Check for ut_type in struct utmp.
61221 2001-05-27 Jim Meyering <meyering@lucent.com>
61223 * lib/readutmp.h (UT_TYPE): Define.
61225 2001-05-24 Jim Meyering <meyering@lucent.com>
61227 * lib/argmatch.c: Include "quote.h".
61228 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
61229 quote function. Reported by Göran Uddeborg.
61231 2001-05-22 Jim Meyering <meyering@lucent.com>
61233 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61234 now that we use the package-supplied version unconditionally.
61235 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61237 2001-05-21 Jim Meyering <meyering@lucent.com>
61239 * m4/regex.m4: Change a couple backticks to single quotes to avoid
61240 shell syntax errors.
61242 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61244 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61246 2001-05-20 Paul Eggert <eggert@twinsun.com>
61248 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61249 Don't bother to check library strftime, since
61250 we'll be using our own my_strftime function anyway.
61251 Define my_strftime instead of strftime.
61253 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
61255 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61256 which is not yet declared.
61258 2001-05-15 Jim Meyering <meyering@lucent.com>
61260 * m4/regex.m4: Use proper quoting so brackets appear in the test
61262 Reported by, and with help from, Bruno Haible.
61264 2001-05-13 Jim Meyering <meyering@lucent.com>
61266 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61269 2001-05-11 Paul Eggert <eggert@twinsun.com>
61271 dirname code cleanup. base_name now behaves more compatibly
61272 with POSIX basename when given file names that have trailing
61273 slashes, and similarly for dir_name. Add new primitives
61274 base_len and dir_len. Put the directory-name-related decls
61277 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61278 * lib/backupfile.c (base_name): Likewise.
61279 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61280 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61281 * lib/makepath.c (strip_trailing_slashes): Likewise.
61282 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61283 ISSLASH): Likewise.
61284 * lib/rename.c (strip_trailing_slashes): Likewise.
61285 * lib/same.c (base_name): Likewise.
61286 * lib/stripslash.c (ISSLASH): Likewise.
61288 * lib/addext.c: Include <dirname.h> after size_t is defined.
61289 * lib/backupfile.c: Likewise.
61291 * lib/addext.c (addext): Use base_len to trim redundant
61292 trailing slashes instead of doing it ourselves.
61293 But do not trim the last slash if it is not redundant.
61295 * lib/backupfile.c (find_backup_file_name,
61296 max_backup_version): Use base_len instead of rolling it ourselves.
61297 Handle the case of "" and (on DOS) "C:" correctly.
61299 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61300 needed. Include <string.h>, <dirname.h>.
61301 (base_name): Allow file names ending in slashes, other than names
61302 that are all slashes. In this case, return the basename followed
61303 by the slashes. This is more general, and can be used in places
61304 where the original base_name purposely had an assertion failure.
61305 (base_len): New function.
61307 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61308 Do not include <assert.h>; no longer needed.
61310 (memrchr): Remove decl.
61311 (dir_name_r): Remove.
61312 (dir_len): Renamed from dirlen. All callers changed.
61313 Rewrite in terms of base_name, for simplicity and consistency.
61314 (dir_name): Never return NULL. All callers changed.
61315 Do not include <stdlib.h> in test program; no longer needed.
61316 return 0; is fine for test program.
61318 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61320 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61322 * lib/path-concat.c (path_concat): Use base_len to compute
61323 base length, not strlen; this means we cannot rely on memcpy
61326 * lib/same.c (STREQ): Remove.
61327 (same_name): Handle the case where the basename ends in trailing '/'.
61329 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61330 a slash was stripped. Do not strip the last slash after a
61331 file system prefix.
61333 2001-05-11 Paul Eggert <eggert@twinsun.com>
61335 * lib/Makefile.am (libfetish_a_SOURCES):
61336 Add strftime.c, since we now compile it on all hosts.
61338 * lib/strftime.c (my_strftime):
61339 Define to nstrftime if emacs, but only if my_strftime is not defined.
61340 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61341 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61342 Add one more extra argument: a nanoseconds value.
61345 (my_strftime function): Add %N format.
61346 (emacs_strftimeu): Renamed from emacs_strftime,
61347 with extra ut argument.
61349 2001-05-09 Paul Eggert <eggert@twinsun.com>
61351 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61353 2001-04-21 Jim Meyering <meyering@lucent.com>
61355 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61358 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61360 * m4/ftruncate.m4: Check for chsize.
61361 Link with ftruncate.o unconditionally if ftruncate is missing.
61362 This was required when cross-compiling to i586-mingw32msvc.
61364 2001-04-08 Jim Meyering <meyering@lucent.com>
61366 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61367 recomputed; that's necessary when the offset spans a DST transition.
61368 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61370 2001-04-02 Jim Meyering <meyering@lucent.com>
61372 * lib/regex.h, regex.c: Update from GNU libc.
61374 2001-03-24 Jim Meyering <meyering@lucent.com>
61376 * m4/jm-macros.m4: Require autoconf-2.49d.
61378 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61380 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61382 2001-03-19 Paul Eggert <eggert@twinsun.com>
61384 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61386 2001-03-17 Jim Meyering <meyering@lucent.com>
61388 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61389 now that the version in autoconf is equivalent.
61390 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61392 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61393 Suggestion from Akim Demaille.
61395 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61396 (jm_PREREQ_TEMPNAME): New function.
61398 2001-03-16 Paul Eggert <eggert@twinsun.com>
61400 * lib/tempname.c (uint64_t): Define to uintmax_t if
61401 not defined, and if UINT64_MAX is not defined.
61402 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61403 Reported by John David Anglin.
61405 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61407 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61408 resolve alias if codeset is empty.
61409 * lib/config.charset (BeOS): Use wildcard syntax.
61411 2001-03-13 Jim Meyering <meyering@lucent.com>
61413 * lib/path-concat.c (path_concat)
61414 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61415 concatenating e.g., `C:' and `foo'.
61418 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61420 * lib/localcharset.c (locale_charset): Don't use
61421 setlocale(LC_CTYPE,NULL). Don't return NULL.
61422 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61424 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61426 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61427 support for DOS/DJGPP.
61429 2001-03-01 Paul Eggert <eggert@twinsun.com>
61431 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61432 lacks mkstemp. Compile our own tempname.c if we compile our own
61433 mkstemp.c, as mkstemp relies on tempname.
61435 2001-03-01 Jim Meyering <meyering@lucent.com>
61437 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61438 AH_VERBATIM really does output its argument verbatim.
61440 2001-02-28 Paul Eggert <eggert@twinsun.com>
61442 * lib/Makefile.am (libfetish_a_SOURCES):
61443 Add dup-safer.c, fopen-safer.c.
61444 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61446 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61447 * lib/unistd-safer.h: New files.
61449 2001-02-25 Paul Eggert <eggert@twinsun.com>
61451 The mkstemp replacement is taken from glibc 2.2.2, with some
61452 portability fixes for use outside glibc, as follows:
61454 * lib/tempname.c (struct_stat64): New macro.
61455 (direxists, __gen_tempname): Use it.
61456 This avoids a portability problem with Solaris 8.
61458 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61459 (<stddef.h>, <stdint.h>, <string.h>):
61460 Include only if STDC_HEADERS || _LIBC.
61461 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61462 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61463 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61464 (__set_errno): Define this macro if <errno.h> doesn't.
61465 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61466 Define these macros if <stdio.h> doesn't.
61467 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61468 Define these macros if <sys/stat.h>
61469 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61470 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61471 __xstat64): Define if not _LIBC.
61472 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61473 (__gen_tempname): Invoke gettimeofday only if
61474 HAVE_GETTIMEOFDAY || _LIBC;
61475 otherwise, fall back on plain "time".
61476 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61478 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61480 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61482 2001-02-18 Paul Eggert <eggert@twinsun.com>
61484 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61486 2001-02-17 Paul Eggert <eggert@twinsun.com>
61488 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61489 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61490 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61491 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61493 2001-02-17 Paul Eggert <eggert@twinsun.com>
61495 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61496 Remove workaround macros for hosts that have mbrtowc but not
61497 mbstate_t, as we now insist on proper declarations for both
61498 before using mbrtowc.
61500 2001-02-17 Jim Meyering <meyering@lucent.com>
61502 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61503 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61504 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61507 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61508 rather than AC_CACHE_VAL.
61510 2001-02-17 Jim Meyering <meyering@lucent.com>
61512 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61513 around included file name.
61515 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61517 * lib/strftime.c: Update from GNU libc (the only changes were to
61520 2001-02-17 Jim Meyering <meyering@lucent.com>
61522 * lib/regex.c: Update from libc.
61524 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61526 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61529 2001-02-16 Paul Eggert <eggert@twinsun.com>
61531 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61532 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61533 Reported by Mark Hounschell via Paul Eggert.
61535 2001-02-07 Jim Meyering <meyering@lucent.com>
61537 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61539 2001-02-05 Jim Meyering <meyering@lucent.com>
61541 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61542 it includes the patch required for `large file' support with at least
61543 HP-UX's 10.20 /bin/cc.
61545 2001-02-03 Jim Meyering <meyering@lucent.com>
61547 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61548 AS_IF, now that it works once again (mysteriously).
61549 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61551 2001-01-30 Jim Meyering <meyering@lucent.com>
61553 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61554 * m4/chown.m4: Rename conftestchown to conftest.chown.
61555 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61556 s/conftestdir2/conftest.d2/.
61557 * m4/utimes.m4: s/conftestdata/conftest.data/
61558 Inspired by Pavel Roskin's change in autoconf.
61560 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61562 * lib/config.charset: Update for FreeBSD 4.2.
61564 2001-01-27 Jim Meyering <meyering@lucent.com>
61566 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61568 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61570 2001-01-26 Jim Meyering <meyering@lucent.com>
61572 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61573 quotearg.c includes it.
61575 2001-01-26 Jim Meyering <meyering@lucent.com>
61577 * lib/quotearg.c: Include stddef.h.
61578 * lib/quote.c: Include stddef.h.
61579 Reported by Axel Kittenberger.
61581 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61582 line in double quotes so that it evokes a better diagnostic.
61583 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61584 Reported by Axel Kittenberger.
61586 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
61588 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61589 as if it was a `charset'.
61591 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61593 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61596 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61598 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61599 to avoid a warning. Add back 'const' to inptr.
61601 2001-01-20 Jim Meyering <meyering@lucent.com>
61603 Be sure that headers are checked before used in code compiled
61604 for the type checks.
61605 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61606 In place of that, invoke jm_CHECK_ALL_TYPES.
61607 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61608 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61609 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61610 The check for ssize_t was mistakenly run before the test for unistd.h.
61612 The configure-time check for stdbool.h was missing.
61613 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61614 (jm_PREREQ_HASH): New function.
61616 2001-01-17 Jim Meyering <meyering@lucent.com>
61618 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61619 for autoconf-2.49c.
61620 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61622 2001-01-16 Jim Meyering <meyering@lucent.com>
61624 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61627 2001-01-14 Jim Meyering <meyering@lucent.com>
61629 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61630 foo and bar. Create conftestdir/ in the script, not in the C code.
61631 Remove directories in the script, not in the C code.
61632 Remove conftestdir{,2} before trying to create the directory.
61633 Make the entire configure script fail if the mkdir fails.
61635 2001-01-14 Jim Meyering <meyering@lucent.com>
61637 * lib/rename.c: New file. From Volker Borchert.
61638 Include stdlib.h, string.h or strings.h, and xalloc.h.
61639 Use strip_trailing_slashes rather than open-coding it.
61641 2001-01-03 Paul Eggert <eggert@twinsun.com>
61643 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61645 2001-01-03 Jim Meyering <meyering@lucent.com>
61647 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61648 of local `inptr' to avoid warning with some system declarations of
61651 2001-01-02 Volker Borchert <bt@teknon.de>
61653 * m4/rename.m4: New file.
61654 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61656 2001-01-01 Jim Meyering <meyering@lucent.com>
61658 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61659 even on systems with utmpx.h. It's necessary for the declaration of
61660 utmp's ut_user member. Reported by Andreas Jaeger.
61662 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61663 available. They are required for the declarations of getgrgid and
61665 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61666 Reported by Andreas Jaeger.
61668 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
61670 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61671 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61672 so `make install' also works in VPATH builds.
61674 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
61676 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61677 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61678 can be used in subdirectories.
61680 2000-12-29 Paul Eggert <eggert@twinsun.com>
61682 * lib/modechange.c: Do not assume that mode_t uses the
61683 traditional octal encoding. E.g. "chmod 1 FOO" should set
61684 the other-execute bit of FOO even if S_IXOTH != 1.
61686 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61687 WOTH, XOTH, ALLM): New macros.
61688 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61689 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61691 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61692 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61694 No need to use uintmax_t; unsigned long is long enough.
61695 Don't bother to get suffix since we don't use it.
61697 2000-12-26 Jim Meyering <meyering@lucent.com>
61699 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61700 better with autoheader.
61702 2000-12-24 Jim Meyering <meyering@lucent.com>
61704 * lib/hash.c (is_prime): Return explicit boolean values.
61705 (hash_get_first): Return NULL to appease Irix5.6's 89.
61706 Reported by Nelson Beebe.
61708 2000-12-19 Bruno Haible <haible@clisp.cons.org>
61710 * lib/localcharset.c (locale_charset): Add support for Win32.
61712 2000-12-18 Paul Eggert <eggert@twinsun.com>
61714 * lib/physmem.h, lib/physmem.c: New files.
61716 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61717 (noinst_HEADERS): Add physmem.h.
61719 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61720 't' for compatibility with Solaris 8 sort.
61722 2000-12-18 Bruno Haible <haible@clisp.cons.org>
61724 * lib/config.charset: Add support for BeOS.
61726 2000-12-17 Jim Meyering <meyering@lucent.com>
61728 * m4/dos.m4 (jm_AC_DOS): New file and macro.
61729 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61731 2000-12-16 Jim Meyering <meyering@lucent.com>
61733 This bug had a serious impact on chown: `chown N:M FILE' (for integer
61734 N and M) would have treated it like `chown N:N FILE'.
61736 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61738 2000-12-16 Jim Meyering <meyering@lucent.com>
61740 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61741 SHELLS_FILE to a file name that's useful on djgpp systems.
61743 (ADDITIONAL_DEFAULT_SHELLS): Define.
61744 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61745 Based mostly on a patch from Prashant TR.
61747 2000-12-16 Bruno Haible <haible@clisp.cons.org>
61749 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61750 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61751 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61753 2000-12-08 Andreas Schwab <schwab@suse.de>
61755 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61756 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61758 2000-12-07 Jim Meyering <meyering@lucent.com>
61760 * lib/stripslash.c (ISSLASH): Define.
61761 (strip_trailing_slashes): Use ISSLASH rather than comparing against
61765 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61766 (dir_name_r): Declare this function as static.
61767 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61768 manifest itself on a name containing a mix of slashes and
61770 Make this function work with names starting with a DOS-style
61771 drive letter and colon prefix.
61772 (dir_name): Append `.' if necessary.
61773 Based mostly on patches from Prashant TR and Eli Zaretskii.
61775 * lib/dirname.h (dir_name_r): Remove prototype.
61777 2000-12-06 Paul Eggert <eggert@twinsun.com>
61779 * m4/off_t-format.m4: Remove this file.
61780 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61782 2000-12-06 Jim Meyering <meyering@lucent.com>
61784 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61785 replacement strtoull, we may well need the replacement strtoul, too.
61786 Check for declarations of strtoul and strtoull.
61787 Check for strtol. Mainly as a cue to cause automake to include
61788 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61789 Check for limits.h -- strtol.c needs it.
61791 2000-12-05 Jim Meyering <meyering@lucent.com>
61793 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61795 2000-12-04 Jim Meyering <meyering@lucent.com>
61797 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61798 Also include memory.h, stdlib.h, unistd.h if appropriate.
61799 Reported by Andreas Jaeger (conflicting declaration of malloc).
61801 2000-12-02 Jim Meyering <meyering@lucent.com>
61803 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61804 * m4/jm-macros.m4 (jm_MACROS): require it.
61806 2000-12-02 Jim Meyering <meyering@lucent.com>
61808 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61810 2000-12-01 Paul Eggert <eggert@twinsun.com>
61812 * lib/memrchr.c: Include <config.h> before any system include file.
61814 2000-11-30 Jim Meyering <meyering@lucent.com>
61816 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61818 2000-11-30 Jim Meyering <meyering@lucent.com>
61820 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61822 2000-11-29 Paul Eggert <eggert@twinsun.com>
61824 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61826 2000-11-26 Jim Meyering <meyering@lucent.com>
61828 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
61830 2000-11-22 Paul Eggert <eggert@twinsun.com>
61832 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61833 size of (size_t) -1; it's not portable.
61835 2000-11-17 Jim Meyering <meyering@lucent.com>
61837 * lib/strstr.c: Update from GNU libc.
61839 2000-11-17 Akim Demaille <akim@epita.fr>
61841 * lib/obstack.h: Formatting changes.
61842 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61843 prevent type checking.
61844 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61845 cast the value to (void *): assigning a `foo *' to a `void *'
61847 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61849 2000-11-16 Jim Meyering <meyering@lucent.com>
61851 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61853 2000-11-11 Jim Meyering <meyering@lucent.com>
61855 * lib/error.c: Add a couple #includes, merging from GNU libc version.
61857 2000-11-10 Jim Meyering <meyering@lucent.com>
61859 * lib/obstack.h: Update from GNU libc.
61860 * lib/obstack.c: Likewise.
61862 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61864 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61866 2000-11-06 Paul Eggert <eggert@twinsun.com>
61868 * lib/getusershell.c (setusershell): Use rewind rather than
61869 fseek/fseeko, to avoid configuration hassles with fseeko.
61870 Don't bother opening SHELLS_FILE if shellstream is NULL;
61871 it's not necessary.
61873 2000-11-05 Jim Meyering <meyering@lucent.com>
61875 * lib/makepath.h (make_dir): Declare.
61876 * lib/makepath.c (make_dir): Remove `static' attribute.
61879 2000-11-04 Jim Meyering <meyering@lucent.com>
61881 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61883 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61885 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61886 last one in a bucket, advance to the next bucket.
61888 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61890 * lib/fnmatch.c: Do not comment out all the code if we are using
61891 the GNU C library, because in some cases we are replacing buggy
61892 code in the GNU C library itself.
61894 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61896 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61897 (regex_compile): Catch bogus \(\1\).
61899 2000-10-30 Paul Eggert <eggert@twinsun.com>
61901 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61902 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61903 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61905 2000-10-30 Paul Eggert <eggert@twinsun.com>
61907 * lib/error.h, getline.h, modechange.h:
61908 Remove "2000" from Copyright line, as the file hasn't been
61909 changed this year other than in the copyright notice.
61911 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61912 was changed this year.
61914 2000-10-29 Jim Meyering <meyering@lucent.com>
61916 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61918 * m4/ls-mntd-fs.m4: Likewise
61920 2000-10-29 Jim Meyering <meyering@lucent.com>
61922 * lib/xstat.in: Fix grammar in comment.
61924 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61926 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61927 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61928 doesn't define __restrict_arr.
61930 2000-10-28 Jim Meyering <meyering@lucent.com>
61932 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61933 (jm_PREREQ_MEMCHR): New function.
61935 2000-10-28 Jim Meyering <meyering@lucent.com>
61937 * lib/memchr.c: Update from libc.
61938 Adjust for portability:
61939 [HAVE_STDLIB_H]: Include stdlib.h.
61940 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61941 Undef __memchr, too.
61942 [!weak_alias]: Define __memchr to memchr.
61944 * lib/regex.c: Update from libc.
61945 * lib/regex.h: Likewise.
61946 * lib/getopt1.c: Likewise.
61947 * lib/memcmp.c: Likewise.
61949 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61950 Avoid using fseek, when possible -- it's broken by design.
61951 Patch by Ulrich Drepper.
61953 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
61955 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61956 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61957 Giving in to popular pressure to shut up the compiler with casts.
61959 2000-10-26 Jim Meyering <meyering@lucent.com>
61961 * lib/strftime.c: Update from libc.
61963 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
61965 * regex.c: More `unsigned char' -> `re_char' changes.
61966 Also change several `int' into `re_wchar_t'.
61967 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61968 (PUSH_FAILURE_POINTER): Don't cast any more.
61969 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61970 We want GCC to complain, since this piece of code makes
61971 re_match non-reentrant, which *should* be fixed.
61972 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61973 (EXTEND_BUFFER): Use RETALLOC.
61974 (SET_LIST_BIT): Don't cast.
61975 (re_wchar_t): New type.
61976 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61977 that those two functions will always properly return.
61978 (IMMEDIATE_QUIT_CHECK): Cast to void.
61979 (analyse_first): Use recursion rather than an explicit stack.
61980 (re_compile_fastmap): Can't fail anymore.
61981 (re_search_2): Don't check re_compile_fastmap for failure.
61982 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61983 Now also sets the new value (passed in a new argument).
61984 (re_match_2_internal): Use it.
61985 Also, use a new var `reg' of type size_t when looping through regs
61986 rather than reuse the inappropriate `mcnt'.
61988 2000-10-25 Jim Meyering <meyering@lucent.com>
61990 * lib/obstack.c: Update from libc.
61992 2000-10-24 Kenichi Handa <handa@etl.go.jp>
61994 * regex.c (regex_compile): Change the way of handling a range from
61995 a char less than 256 to a char not less than 256.
61997 2000-10-24 Andrew Innes <andrewi@gnu.org>
61999 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62001 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62002 so that re_search functions only quit when callers expect them to.
62004 2000-10-23 Jim Meyering <meyering@lucent.com>
62006 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62007 wrong. That set_locale call must not have any side effects.
62010 2000-10-22 Jim Meyering <meyering@lucent.com>
62012 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62013 [CYCLIC]: Remove now-unused definition.
62015 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62016 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62017 Suggestion from Ulrich Drepper.
62019 2000-10-21 Jim Meyering <meyering@lucent.com>
62021 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62022 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62023 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62025 2000-10-21 Jim Meyering <meyering@lucent.com>
62027 * lib/dirname.c (memrchr): Declare if necessary.
62028 (dir_name): Remove the restriction that there be no
62029 trailing slashes. Now, this code skips past them, effectively
62031 [TEST_DIRNAME] (main): New unit tests.
62033 * lib/memrchr.c: New file from GNU libc.
62034 Undef __memrchr, too.
62035 [!weak_alias]: Define __memrchr to memrchr.
62036 Guard weak_alias use with `#ifdef weak_alias'.
62038 2000-10-21 Jim Meyering <meyering@lucent.com>
62040 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62041 (dir_name): Use dir_name_r.
62042 * lib/dirname.h (dir_name_r): Declare it.
62044 2000-10-17 Jim Meyering <meyering@lucent.com>
62046 * lib/quote.h (PARAMS): Define and use.
62047 Reported by Akim Demaille.
62049 * lib/getopt.c: Update from libc.
62051 2000-10-16 Jim Meyering <meyering@lucent.com>
62053 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62057 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
62059 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62061 2000-09-25 Jim Meyering <meyering@lucent.com>
62063 * lib/md5.h (rol): Define (from GnuPG).
62065 * lib/sha.c: Give credit (GnuPG) where due.
62066 (M): Use rol rather than open-coding it.
62067 Add a FIXME comment.
62069 2000-09-21 Jim Meyering <meyering@lucent.com>
62071 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62072 Reported by Michael Stone.
62074 2000-09-20 Jim Meyering <meyering@lucent.com>
62076 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62077 (noinst_HEADERS): Add sha.h.
62078 Based on code from Scott G. Miller and from GnuPG.
62080 2000-09-18 Jim Meyering <meyering@lucent.com>
62082 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62083 LIBS. Otherwise, everyone ends up linking with -lelf for some
62085 Reported by Mike Stone.
62087 2000-09-15 Jim Meyering <meyering@lucent.com>
62089 * lib/regex.c: Update from libc.
62091 2000-09-10 Jim Meyering <meyering@lucent.com>
62093 * lib/getopt.c (_getopt_internal): Update from glibc.
62095 2000-09-09 Jim Meyering <meyering@lucent.com>
62097 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62098 think it should be used as a general replacement for isascii.
62099 * lib/fnmatch.c: Likewise.
62100 * lib/mbswidth.c: Likewise
62101 * lib/regex.c: Likewise.
62104 * lib/userspec.c: Include sys/param.h and limits.h.
62106 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62107 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62108 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62109 UID, GID. Check range.
62111 2000-09-06 Jim Meyering <meyering@lucent.com>
62113 * lib/getopt.c (_getopt_internal): Update from glibc.
62115 2000-08-30 Jim Meyering <meyering@lucent.com>
62117 * lib/strftime.c: Merge in changes from GNU libc.
62119 2000-08-26 Jim Meyering <meyering@lucent.com>
62121 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62122 * m4/fpending.m4: New file.
62124 2000-08-26 Jim Meyering <meyering@lucent.com>
62126 * lib/closeout.c: Include "__fpending.h".
62127 (close_stdout_status): Return right away if there's nothing to flush.
62129 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62130 * lib/__fpending.c: New file.
62131 * lib/__fpending.h: New file.
62133 2000-08-20 Jim Meyering <meyering@lucent.com>
62135 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62136 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
62137 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
62139 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
62141 Improve fileutils installation on systems where running
62142 programs (like install) can't be unlinked.
62143 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62144 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62146 2000-08-07 Paul Eggert <eggert@twinsun.com>
62148 Standardize on "memory exhausted" instead of "Memory exhausted"
62149 or "virtual memory exhausted".
62150 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62151 "virtual memory exhausted".
62152 * lib/same.c (same_name): Invoke xalloc_die instead of printing
62154 * lib/userspec.c (parse_user_spec): Likewise.
62155 * lib/bumpalloc.h: comment fix
62156 * lib/same.c, userspec.c: Include xalloc.h.
62158 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62159 not char *const and pointing to a constant array.
62160 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62161 (xrealloc): Comment fix.
62163 * lib/userspec.c (parse_user_spec):
62164 Don't translate a message until just before returning,
62165 to avoid unnecessary translation.
62167 2000-08-07 Jim Meyering <meyering@lucent.com>
62169 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62170 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62171 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62172 getgroups.c, gethostname.c, getopt.h, group-member.c,
62173 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62174 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62175 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62176 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62177 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62178 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62179 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62180 yesno.c: Back out Copyright date changes for each file with no change
62181 this year. This eases coordination with other programs using the same
62182 source code modules. From Paul Eggert.
62184 2000-08-06 Paul Eggert <eggert@twinsun.com>
62186 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62187 not char, for compatibility with glibc 2.1.3 strftime.c.
62189 2000-08-03 Greg McGary <greg@mcgary.org>
62191 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62192 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62193 (EXTEND_BUFFER): Use them.
62195 2000-08-01 Jim Meyering <meyering@lucent.com>
62197 * lib/dirname.c (ISSLASH): Define.
62198 (BACKSLASH_IS_PATH_SEPARATOR): Define.
62199 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62200 both `\' and `/' may be use as path separators.
62201 Based on a patch from Prashant TR.
62203 2000-07-31 Paul Eggert <eggert@twinsun.com>
62205 * lib/quotearg.c (quotearg_n_options): Don't make the initial
62206 slot vector a constant, since it might get modified.
62208 2000-07-31 Jim Meyering <meyering@lucent.com>
62210 * lib/xmalloc.c: Use `virtual memory exhausted', not
62211 `Memory exhausted'.
62212 * lib/obstack.c (print_and_abort): Likewise.
62214 2000-07-30 Paul Eggert <eggert@twinsun.com>
62216 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62217 buffer, so that the caller can always quote one small
62218 component of a "memory exhausted" message in slot 0.
62219 From a suggestion by Jim Meyering.
62221 2000-07-30 Jim Meyering <meyering@lucent.com>
62223 * lib/makepath.c (make_path): Quote the other instance, too.
62225 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62226 (STATIC_BUF_SIZE): Define.
62227 (quotearg_n_options): Use only statically allocated storage when
62228 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62229 than STATIC_BUF_SIZE.
62231 2000-07-29 Jim Meyering <meyering@lucent.com>
62233 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62234 * lib/dirname.c (dir_name): Likewise.
62236 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62239 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62240 (dir_name): Assert that there are no trailing slashes.
62242 2000-07-29 Bruno Haible <haible@clisp.cons.org>
62244 * lib/mbswidth.h (mbswidth): Add a flags argument.
62245 (mbswidth): New declaration.
62246 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62247 * lib/mbswidth.c (mbswidth): Add a flags argument.
62248 (mbsnwidth): New function.
62250 2000-07-24 Jim Meyering <meyering@lucent.com>
62252 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
62254 2000-07-23 Paul Eggert <eggert@twinsun.com>
62256 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62258 2000-07-23 Paul Eggert <eggert@twinsun.com>
62260 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62261 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62262 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62263 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62264 invoke multibyte primitives.
62266 2000-07-23 Paul Eggert <eggert@twinsun.com>
62269 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62270 so that mbstate_t is always defined.
62272 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62273 be 1 in at least one GCC installation, and this configuration
62274 error is likely to be common. Ignoring MB_LEN_MAX hurts
62275 performance on hosts that have mbrtowc but have only unibyte
62276 locales, but I assume these hosts are rare.
62278 2000-07-23 Paul Eggert <eggert@twinsun.com>
62280 * lib/mbswidth.c (_XOPEN_SOURCE):
62281 Don't define; this causes problems on Solaris 7.
62282 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62284 2000-07-23 Jim Meyering <meyering@lucent.com>
62286 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62287 too: getgrgid, getpwuid, getuid.
62289 2000-07-23 Jim Meyering <meyering@lucent.com>
62291 * lib/basename.c (base_name): Add an assertion.
62293 2000-07-23 Bruno Haible <haible@clisp.cons.org>
62295 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62296 shadow its mbsinit function.
62298 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62300 * lib/mbswidth.h: New file.
62301 * lib/mbswidth.c: New file.
62302 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62303 (noinst_HEADERS): Add mbswidth.h.
62305 2000-07-17 Bruno Haible <haible@clisp.cons.org>
62307 * lib/config.charset: Add support for FreeBSD. Improve support for
62310 2000-07-16 Bruno Haible <haible@clisp.cons.org>
62312 * m4/mbswidth.m4: New file.
62313 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62315 2000-07-15 Jim Meyering <meyering@lucent.com>
62317 * lib/makepath.c: Include quote.h.
62318 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62319 corresponding argument in a `quote (...)' call.
62320 Give better diagnostics.
62322 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62323 (noinst_HEADERS): Add quote.h.
62325 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
62326 from tar's src/misc.c.
62327 * lib/quote.h: New file. Prototypes for same.
62329 2000-07-14 Paul Eggert <eggert@twinsun.com>
62331 From a suggestion by Bruno Haible.
62332 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62333 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62334 to decide whether to define the BeOS workaround macro;
62335 this adjusts to the change to AC_MBSTATE_T.
62337 2000-07-14 Jim Meyering <meyering@lucent.com>
62339 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62340 jm_AC_TYPE_UINTMAX_T.
62342 2000-07-13 Paul Eggert <eggert@twinsun.com>
62344 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62346 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62347 quotearg_buffer_restyled): Add support for
62348 clocale_quoting_style. Undo previous change to
62349 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62350 and "{RIGHT QUOTATION MARK}" msgids.
62352 2000-07-10 Paul Eggert <eggert@twinsun.com>
62354 From a suggestion by Bruno Haible.
62355 * m4/mbstate_t.m4 (AC_MBSTATE_T):
62356 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
62357 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62358 and mbstate_t, to a single-part test that simply defines mbstate_t.
62359 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62360 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62362 2000-07-10 Jim Meyering <meyering@lucent.com>
62364 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62366 * m4/gnu-source.m4: Output to confdefs.h directly.
62367 Suggestion from Akim Demaille.
62369 2000-07-09 Paul Eggert <eggert@twinsun.com>
62371 The old behavior of quoting `like this' doesn't look good with
62372 newer, ISO-style fonts. See:
62373 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62375 Instead, quote "like this" by default. Let the translator
62376 tailor the locale-specific quoting behavior by providing
62377 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62379 * lib/quotearg.c (N_): New macro.
62380 (gettext_default): New function.
62381 (quotearg_buffer_restyled): Use
62382 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62383 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62385 2000-07-09 Jim Meyering <meyering@lucent.com>
62387 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62388 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62390 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62391 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62393 2000-07-09 Jim Meyering <meyering@lucent.com>
62395 * lib/Most files: Update copyright dates to include 2000.
62397 2000-07-08 Jim Meyering <meyering@lucent.com>
62399 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62401 (xgethostname): Remove now-unnecessary #ifdef.
62402 Move declaration of `err' into loop where it's used.
62404 2000-07-05 Paul Eggert <eggert@twinsun.com>
62405 and Bruno Haible <haible@clisp.cons.org>
62407 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62408 only if the test for an object-type mbstate_t fails. This
62409 prevents us from mistakenly reporting that mbstate_t is a
62410 system object type after we "#define mbstate_t int" to work
62413 2000-07-05 Paul Eggert <eggert@twinsun.com>
62414 and Bruno Haible <haible@clisp.cons.org>
62416 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62418 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62420 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62422 Include <ctype.h> for use of isalpha.
62424 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62426 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62427 by allocating a larger buffer. Test the gethostname return value for
62428 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62429 returns an error and ENAMETOOLONG isn't defined.
62431 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62433 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62436 2000-07-04 Jim Meyering <meyering@lucent.com>
62438 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62439 of the deprecated AC_CHECKING.
62441 2000-07-04 Jim Meyering <meyering@lucent.com>
62443 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62444 Reported by Bruno Haible.
62446 2000-07-04 Jim Meyering <meyering@lucent.com>
62448 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62449 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62452 2000-07-03 Paul Eggert <eggert@twinsun.com>
62454 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62455 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62457 2000-07-03 Paul Eggert <eggert@twinsun.com>
62458 and Bruno Haible <haible@clisp.cons.org>
62460 * lib/quotearg.c (mbrtowc):
62461 Assign to *pwc, and return 1 only if result is nonzero.
62462 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62464 2000-07-03 Jim Meyering <meyering@lucent.com>
62466 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62468 2000-07-03 Jim Meyering <meyering@lucent.com>
62470 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62471 This is necessary to get a definition of e.g., UTMP_FILE on
62475 2000-07-02 Jim Meyering <meyering@lucent.com>
62477 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62479 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62480 AC_LIBOBJ(function_name).
62481 * m4/chown.m4: Likewise.
62482 * m4/fnmatch.m4: Likewise.
62483 * m4/ftruncate.m4: Likewise.
62484 * m4/getgroups.m4: Likewise.
62485 * m4/getline.m4: Likewise.
62486 * m4/group-member.m4: Likewise.
62487 * m4/jm-macros.m4: Likewise.
62488 * m4/lstat.m4: Likewise.
62489 * m4/malloc.m4: Likewise.
62490 * m4/memcmp.m4: Likewise.
62491 * m4/nanosleep.m4: Likewise.
62492 * m4/putenv.m4: Likewise.
62493 * m4/realloc.m4: Likewise.
62494 * m4/regex.m4: Likewise.
62495 * m4/stat.m4: Likewise.
62496 * m4/strftime.m4: Likewise.
62498 2000-07-02 Jim Meyering <meyering@lucent.com>
62500 * lib/quotearg.c (mbstate_t): Don't define here.
62502 2000-07-02 Jim Meyering <meyering@lucent.com>
62504 * lib/nanosleep.c (SIGCONT): Define if not already defined.
62506 2000-07-01 Jim Meyering <meyering@lucent.com>
62508 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62510 2000-07-01 Jim Meyering <meyering@lucent.com>
62512 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62515 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62517 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62518 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62520 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62522 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62523 per change in ../m4/ls-mntd-fs.m4.
62524 (read_filesystem_list): Ignore symbolic links.
62526 2000-06-29 Jim Meyering <meyering@lucent.com>
62528 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62529 for declaration of strcmp.
62531 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62533 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62534 Avoid warning by casting result to `char *' to remove `const'.
62536 2000-06-28 Jim Meyering <meyering@lucent.com>
62538 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62539 included by quotearg.c, for which we perform this test. From
62542 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62544 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62545 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62546 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62548 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62550 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62552 2000-06-26 Paul Eggert <eggert@twinsun.com>
62554 savedir now sets errno on failure and invokes xmalloc to get memory.
62555 Fix a couple of other minor bugs while we're at it.
62557 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62558 (NAMLEN): Remove macro.
62559 (malloc, realloc): Remove decls.
62560 (stpcpy): Likewise.
62561 ("xalloc.h"): Include.
62562 (NAME_SIZE_DEFAULT): New macro.
62563 (savedir): Use xmalloc / xrealloc to allocate memory.
62564 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62565 Skip "" directory entries.
62566 Use strlen to calculate directory entry length, since the old method
62567 is rarely used these days and isn't worth supporting.
62568 Don't use a pointer after freeing it.
62569 Check for integer overflow when calculating allocation size.
62570 Use memcpy to copy entries, instead of stpcpy.
62571 Set errno properly when returning NULL.
62572 Check for readdir error.
62574 2000-06-26 Jim Meyering <meyering@lucent.com>
62576 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62578 2000-06-25 Jim Meyering <meyering@lucent.com>
62580 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62581 Linux header bug when _XOPEN_SOURCE is defined to 500.
62583 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62585 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62588 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62590 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62592 Don't include <stdlib.h>. Don't declare malloc, realloc.
62594 2000-06-24 Jim Meyering <meyering@lucent.com>
62596 * m4/strerror_r.m4: Revive this file -- to try out an experimental
62597 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62598 for which strerror does return char*, but which lacks a conveniently
62599 accessible declaration of the function. If the compile-test says
62600 strerror_r doesn't work, then resort to a `run'-test that works on
62601 BeOS and segfaults on DEC Unix.
62603 2000-06-24 Jim Meyering <meyering@lucent.com>
62605 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62607 2000-06-23 Paul Eggert <eggert@twinsun.com>
62609 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62610 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
62612 2000-06-23 Paul Eggert <eggert@twinsun.com>
62614 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62615 (mbrtowc, mbstate_t): Define substitutes if
62616 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62617 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62618 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62620 2000-06-23 Jim Meyering <meyering@lucent.com>
62622 * m4/afs.m4: Add missing AC_MSG_RESULT.
62623 Reported by Bruno Haible.
62625 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62626 Suggestion from Bruno Haible.
62628 2000-06-23 Jim Meyering <meyering@lucent.com>
62630 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
62632 2000-06-21 Jim Meyering <meyering@lucent.com>
62634 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62636 2000-06-21 Jim Meyering <meyering@lucent.com>
62638 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62639 (noinst_HEADERS): Add getstr.h.
62641 * lib/getline.c (getstr): Move into a separate file.
62642 * lib/getstr.c (getstr): New file, extracted from getline.c, with
62643 the following changes: new parameter, delim2; both delim[12]
62644 parameters have type `int', not `char'. The latter would lose
62645 with 8-bit delimiters.
62646 * lib/getstr.h: New file.
62648 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62650 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62651 than 1024, return a memory chunk of least possible size, instead
62652 of size PATH_MAX + 2. In the loop, increment the size proportionally.
62653 Use free/xmalloc instead of xrealloc to avoid copying for very long
62656 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62658 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62661 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62663 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62664 address, not strdup. Include <stdlib.h> and don't declare free().
62666 2000-06-19 Jim Meyering <meyering@lucent.com>
62668 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62670 2000-06-18 Jim Meyering <meyering@lucent.com>
62672 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62674 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62675 `checking whether...' message to be consistent with that of the
62678 2000-06-18 Jim Meyering <meyering@lucent.com>
62680 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62681 Besides, these days every porting target provides a mkdir function.
62683 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62684 needed. (this snippet comes from src/system.h).
62686 2000-06-16 Bruno Haible <haible@clisp.cons.org>
62688 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62690 2000-06-15 Paul Eggert <eggert@twinsun.com>
62692 * lib/human.c (adjust_value): New function.
62693 (human_readable_inexact): Apply rounding style even when
62694 printing approximate values.
62696 2000-06-14 Paul Eggert <eggert@twinsun.com>
62698 * lib/human.c (human_readable_inexact): Allow an input block
62699 size that is not a multiple of the output block size, and vice versa.
62700 Reported by Piergiorgio Sartor.
62702 2000-06-14 Paul Eggert <eggert@twinsun.com>
62704 * lib/getdate.y (get_date): Apply relative times after time
62705 zone indicator, not before. Reported by Todd A. Jacobs.
62707 2000-06-13 Jim Meyering <meyering@lucent.com>
62709 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62711 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62713 2000-06-12 Paul Eggert <eggert@twinsun.com>
62715 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62717 2000-06-12 Jim Meyering <meyering@lucent.com>
62719 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62720 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62722 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62723 the optional argument, `lib'.
62725 2000-06-08 Jim Meyering <meyering@lucent.com>
62727 * m4/largefile.m4: Remove file (now that it's part of autoconf).
62729 2000-06-04 Paul Eggert <eggert@twinsun.com>
62731 Rewrite largefile configuration so that we don't need to run
62732 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
62733 AC_CANONICAL_HOST in configure.in -- jmm]
62735 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62736 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62737 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62738 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62739 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62741 Instead of inspecting the output of getconf, try to compile the
62742 test program without and with the macro definition.
62743 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62744 for getconf. Instead, check for the needed flags by compiling
62747 2000-06-04 Paul Eggert <eggert@twinsun.com>
62749 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62751 2000-06-04 Jim Meyering <meyering@lucent.com>
62753 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62754 SunOS 4.1.4 for which gid_t is an unsigned type.
62756 2000-06-03 Jim Meyering <meyering@lucent.com>
62758 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62759 now that autoconf requires that.
62761 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62762 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62763 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62765 2000-06-03 Jim Meyering <meyering@lucent.com>
62767 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62769 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62771 * m4/glibc21.m4: New file.
62772 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62774 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62776 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62777 newer, don't install charset.alias.
62778 * lib/config.charset: Change the Linux/glibc rules so they become empty
62779 on glibc-2.1 or newer.
62781 2000-06-02 Jim Meyering <meyering@lucent.com>
62783 * lib/mountlist.c: Back out last change. Instead, do this...
62784 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62785 me_dummy member using the same `ignore'-testing code.
62786 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62790 2000-05-29 Jim Meyering <meyering@lucent.com>
62792 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62793 mounts with the `ignore' attribute. Based on a patch from
62796 2000-05-28 Jim Meyering <meyering@lucent.com>
62798 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62799 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62800 * m4/stat.m4: Likewise.
62801 * m4/lstat.m4: Likewise.
62802 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62804 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62805 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62807 2000-05-26 Jim Meyering <meyering@lucent.com>
62809 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62811 2000-05-24 Jim Meyering <meyering@lucent.com>
62813 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62814 autoconf requires that.
62815 * m4/lib-check.m4: Likewise.
62816 * m4/jm-macros.m4: Likewise.
62817 * m4/strftime.m4: Likewise.
62819 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62820 AC_CHECK_DECLS, now that autoconf requires that.
62822 2000-05-22 Jim Meyering <meyering@lucent.com>
62824 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62825 * m4/lstat.m4: Likewise.
62827 2000-05-22 Jim Meyering <meyering@lucent.com>
62829 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62831 2000-05-20 Jim Meyering <meyering@lucent.com>
62833 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62834 (jm_PREREQ): Use it.
62836 2000-05-18 Jim Meyering <meyering@lucent.com>
62838 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62839 back, too, since it may have been modified by allocate_entry.
62840 (hash_delete): Rewrite to use neither the assignment operator
62841 nor the comma operator in an if-expression.
62843 2000-05-15 Paul Eggert <eggert@twinsun.com>
62846 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62847 Remove; no longer needed.
62848 "quotearg.h": Add include.
62849 (file_name): Do not bother to explicitly initialize to NULL; it's less
62850 efficient on some hosts.
62851 (close_stdout_status): Remove test as to whether stdout was already
62852 closed; it breaks for the case "echo x | sort >&-".
62853 Quote file name colons.
62854 Do not assume that _("write error") lacks format strings.
62856 2000-05-15 Jim Meyering <meyering@lucent.com>
62858 * lib/version-etc.c (version_etc_copyright): Update the copyright
62859 string used in all --version output.
62861 2000-05-14 Jim Meyering <meyering@lucent.com>
62863 * lib/closeout.c (close_stdout_set_file_name): New function.
62864 (close_stdout_status): Use new file-scoped global.
62865 Return right away if fstat says the stdout file descriptor is invalid.
62866 * lib/closeout.h (close_stdout_set_file_name): Declare.
62868 2000-05-10 Jim Meyering <meyering@lucent.com>
62870 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62871 (close_stdout_set_status): New function.
62872 * lib/closeout.h (close_stdout_set_status): Declare.
62874 2000-05-09 Jim Meyering <meyering@lucent.com>
62876 * m4/gettext.m4: Rename this...
62877 * m4/libintl.m4: ...to this.
62879 2000-05-08 Jim Meyering <meyering@lucent.com>
62881 * lib/long-options.c: Don't include closeout.h.
62882 (parse_long_options): Don't call close_stdout for --version.
62884 2000-05-06 Paul Eggert <eggert@twinsun.com>
62886 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62887 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62888 2.1.3 bug. This avoids a clash when files like regex.c define
62891 2000-05-06 Jim Meyering <meyering@lucent.com>
62893 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62894 (AC_REPLACE_FUNCS): Add strnlen.
62896 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62897 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62899 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62900 AC_SEARCH_LIBS call for nanosleep.
62901 (LIB_NANOSLEEP): Set and AC_SUBST.
62903 2000-05-06 Jim Meyering <meyering@lucent.com>
62905 * lib/strnlen.c: Undefine __strnlen and strnlen.
62906 [!weak_alias]: Define __strnlen to strnlen.
62908 * lib/atexit.c: New file, from libiberty.
62910 2000-05-06 Jim Meyering <meyering@lucent.com>
62912 * lib/closeout.c (close_stdout_status): Also check for errors on the
62915 2000-05-05 Jim Meyering <meyering@lucent.com>
62917 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62918 AC_SEARCH_LIBS call for clock_gettime.
62919 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62921 * m4/search-libs.m4: Update from autoconf.
62923 su doesn't work on Solaris 2.6.
62924 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62925 <shadow.h>. Reported by Dragos Harabor.
62927 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62929 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62930 memcpy instead of xmalloc, xrealloc, path_concat.
62931 (locale_charset): Treat empty environment variables as absent.
62932 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62934 2000-05-04 Jim Meyering <meyering@lucent.com>
62936 * lib/getopt.c: Update from glibc.
62937 * lib/obstack.c: Likewise.
62938 * lib/obstack.h: Likewise.
62939 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
62942 * lib/regex.h: Likewise.
62943 * lib/strndup.c: Likewise.
62944 * lib/strnlen.c: New file, from glibc.
62946 2000-05-03 Jim Meyering <meyering@lucent.com>
62948 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62950 2000-05-02 Paul Eggert <eggert@twinsun.com>
62952 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62953 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
62954 compile-time test, rather than inspecting host and OS, to
62955 decide whether to define _LARGEFILE_SOURCE.
62957 2000-05-01 Jim Meyering <meyering@lucent.com>
62959 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62961 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62962 Based on a patch from Bruno Haible.
62964 2000-05-01 Jim Meyering <meyering@lucent.com>
62966 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62968 2000-04-29 Jim Meyering <meyering@lucent.com>
62970 * lib/path-concat.c: Declare strdup only if it's not defined.
62971 * lib/canon-host.c: Likewise.
62973 2000-04-28 Jim Meyering <meyering@lucent.com>
62975 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62976 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
62977 is included first, then limits.h is included by locale.h by libintl.h.
62978 From John David Anglin.
62980 2000-04-25 Jim Meyering <meyering@lucent.com>
62982 * lib/makepath.c (S_IRWXUGO): Define.
62983 (make_path): Always perform explicit chmod if MODE specifies any
62984 of the `special' permission bits. Prompted by a bug report against
62985 install from Mate Wierdl and Joost van Baal.
62987 2000-04-18 Jim Meyering <meyering@lucent.com>
62989 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62990 (jm_PREREQ): Use it.
62992 2000-04-18 Jim Meyering <meyering@lucent.com>
62994 * lib/README: New file.
62996 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62997 getpagesize. For BeOS. Based on a patch from Bruno Haible.
62999 2000-04-17 Jim Meyering <meyering@lucent.com>
63002 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63003 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
63004 Suggestion from Akim Demaille.
63006 2000-04-17 Jim Meyering <meyering@lucent.com>
63008 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63009 the definition of it to rpl_strftime also defined-away the system's
63012 2000-04-15 Jim Meyering <meyering@lucent.com>
63014 Use `C' to denote so-called `contiguous' files, the same way
63016 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63017 (ftypelet): Use S_ISCTG.
63018 From Michael Deutschmann.
63020 2000-04-14 Jim Meyering <meyering@lucent.com>
63022 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63023 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
63026 2000-04-14 Jim Meyering <meyering@lucent.com>
63028 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63030 2000-04-13 Jim Meyering <meyering@lucent.com>
63032 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63033 AH_VERBATIM to insert required #ifndef into config.h.in.
63034 Suggestion from Akim Demaille.
63036 2000-04-12 Jim Meyering <meyering@lucent.com>
63038 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63039 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
63040 Christian Krackowizer.
63042 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63043 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63044 (AC_SYS_LARGEFILE): Require.
63045 (AM_C_PROTOTYPES): Require.
63047 2000-04-08 Jim Meyering <meyering@lucent.com>
63049 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63050 names don't conflict. Reported by Eli Zaretskii.
63052 2000-04-07 Jim Meyering <meyering@lucent.com>
63054 * lib/putenv.c: Move inclusion of errno.h so it follows that of
63055 sys/types.h, to work around system header problems on AIX 3.2.5.
63058 2000-04-07 Bruno Haible <haible@clisp.cons.org>
63060 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63061 bug. Deal with the different error behavior of Irix iconv.
63063 2000-04-05 Paul Eggert <eggert@twinsun.com>
63065 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63066 IRIX if the installer said otherwise.
63068 2000-04-05 Jim Meyering <meyering@lucent.com>
63070 Portability tweaks required for ultrix4.3.
63071 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63072 (jm_CHECK_DECLS): Add getutent to the list of functions.
63073 (_jm_DECL_HEADERS): Add utmpx.h.
63074 From John David Anglin.
63076 * m4/strftime.m4: Back out the 2000-04-02 change.
63077 Instead of that change, simply undefine putenv in the test program.
63079 2000-04-05 Jim Meyering <meyering@lucent.com>
63081 Portability tweaks required for ultrix4.3.
63082 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63084 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63085 * lib/canon-host.c: Declare strdup.
63086 * lib/path-concat.c: Likewise.
63087 From John David Anglin.
63089 2000-04-04 Jim Meyering <meyering@lucent.com>
63091 Be more DOS 8.3-friendly.
63092 * lib/ref-add.sin: Renamed from ref-add.sed.in.
63093 * lib/ref-del.sin: Renamed from ref-del.sed.in.
63094 * lib/Makefile.am: Reflect renaming.
63095 Reported by Eli Zaretskii.
63097 Use a temporary file name that won't clash with `charset.alias'
63098 in the DOS 8.3 name space.
63099 * lib/Makefile.am (charset_tmp): Define.
63100 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63101 (uninstall-local): Likewise.
63102 Reported by Eli Zaretskii.
63104 2000-04-03 Jim Meyering <meyering@lucent.com>
63106 * m4/gettext.m4: Fix typo in comment.
63108 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63109 textutils/configure.in). Suggestion from Paul Eggert.
63110 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
63112 2000-04-02 Paul Eggert <eggert@twinsun.com>
63114 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63115 variable in the shell rather than using putenv, which isn't
63116 portable. This avoids the configure-time inter-test dependency
63117 on the potentially-renamed putenv function.
63119 2000-03-30 Paul Eggert <eggert@twinsun.com>
63121 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63122 before checking struct stat.st_blksize, so that
63123 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63125 2000-03-29 Paul Eggert <eggert@twinsun.com>
63127 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63128 since strftime.c uses HAVE_STRFTIME to decide whether to use
63129 the underlying strftime.
63131 2000-03-29 Paul Eggert <eggert@twinsun.com>
63133 * lib/time/strftime.c (my_strftime): Make sure we call the system
63134 strftime, not ourselves, when invoking the underlying strftime.
63136 2000-03-24 Jim Meyering <meyering@lucent.com>
63138 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63139 (charset_alias): Define.
63140 (install-exec-local): Factor out common code.
63141 (uninstall-local): Split lines longer than 80.
63142 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63143 (SUFFIXES): Define.
63144 (.sed.in.sed): New rule. Don't redirect directly to $@.
63145 (CLEANFILES): Add ref-add.sed and ref-del.sed.
63147 2000-03-19 Bruno Haible <haible@clisp.cons.org>
63149 * lib/config.charset: Output a line containing "Packages using this
63151 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63152 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63153 ref-del.sed): New rules.
63155 2000-03-17 Jim Meyering <meyering@lucent.com>
63157 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63158 Otherwise, include <strings.h>
63160 2000-03-17 Bruno Haible <haible@clisp.cons.org>
63162 * lib/unicodeio.c (utf8_wctomb): New function.
63163 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63164 format instead of in UCS-4 with platform dependent endianness.
63166 2000-03-10 Jim Meyering <meyering@lucent.com>
63168 * m4/lib-check.m4: Look for getspnam in -lgen, too.
63169 From Marco Franzen.
63171 2000-03-07 Paul Eggert <eggert@twinsun.com>
63173 * lib/savedir.c (savedir): Work even if directory size is
63174 negative; this can happen with some screwy NFS configurations.
63176 2000-03-06 Jim Meyering <meyering@lucent.com>
63178 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63179 if it's NULL (because we ran out of memory). From Bruno Haible.
63181 2000-03-05 Jim Meyering <meyering@lucent.com>
63183 * lib/localcharset.c ("path-concat.h"): Include.
63184 (get_charset_aliases): Use path_concat instead of ANSI string
63187 * lib/unicodeio.h (PARAMS): Define.
63188 Use it to guard prototype.
63190 2000-03-04 Jim Meyering <meyering@lucent.com>
63192 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63193 for lib/localcharset.c.
63195 2000-03-04 Jim Meyering <meyering@lucent.com>
63197 * lib/Makefile.am (install-exec-local): Create $(libdir) before
63198 installing into it.
63199 (uninstall-local): Uncomment this rule so `make distcheck' works
63202 * lib/unicodeio.c (<errno.h>): Include it.
63203 (errno): Declare if not defined.
63205 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63207 * lib/config.charset: New version, incorporating remarks from a linux
63208 i18n mailing list. From Bruno Haible.
63210 2000-03-04 Bruno Haible <haible@clisp.cons.org>
63212 * m4/codeset.m4: New file.
63213 * m4/iconv.m4: New file.
63214 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63216 2000-03-03 Jim Meyering <meyering@lucent.com>
63218 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63220 2000-03-02 Jim Meyering <meyering@lucent.com>
63222 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63223 the messages come out on separate lines.
63225 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63226 rather than jm_CHECK_DECLARATIONS.
63227 * m4/decl.m4: Remove now-unused file.
63229 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63232 2000-03-02 Jim Meyering <meyering@lucent.com>
63234 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63236 2000-03-01 Jim Meyering <meyering@lucent.com>
63238 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63239 * lib/unicodeio.c: Likewise.
63241 2000-03-01 Bruno Haible <haible@clisp.cons.org>
63243 * lib/config.charset: New file.
63244 * lib/localcharset.c: New file.
63245 * lib/unicodeio.h, lib/unicodeio.c: New files.
63246 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63247 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63248 (noinst_HEADERS): Add unicodeio.h.
63249 (all-local, install-exec-local, charset.alias): New targets.
63251 2000-02-28 Paul Eggert <eggert@twinsun.com>
63253 * lib/quotearg.c (ALERT_CHAR): New macro.
63254 (quotearg_buffer_restyled): Use it.
63256 2000-02-27 Jim Meyering <meyering@lucent.com>
63258 * m4/check-decl.m4: Add getenv to the list.
63260 2000-02-27 Jim Meyering <meyering@lucent.com>
63262 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63263 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63265 * lib/backupfile.c: Guard inclusion of stdlib.h with
63266 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63267 Declare malloc if needed.
63269 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63270 `#ifndef HAVE_DECL..'
63271 now that autoconf always defines the HAVE_DECL_ symbols.
63272 * lib/human.c: Likewise.
63273 * lib/same.c: Likewise.
63274 * lib/strtoumax.c: Likewise.
63276 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63277 declaration check was not run.
63278 * lib/hash.c: Likewise.
63279 * lib/human.c: Likewise.
63280 * lib/same.c: Likewise.
63281 * lib/strtoumax.c: Likewise.
63283 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63284 `.', then first look up the entire `.'-containing string as a login
63287 2000-02-23 Jim Meyering <meyering@lucent.com>
63289 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63290 in place of my hack.
63292 2000-02-18 Paul Eggert <eggert@twinsun.com>
63294 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63295 (textint): New typedef.
63296 (parser_control): Member year changed from int to textint.
63298 (YYSTYPE): Removed; replaced by %union with int and textint members.
63299 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63300 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63301 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63302 (tSNUMBER, tUNUMBER): Now of type <textintval>.
63303 (date, number, to_year): Use width of number in digits, not its value,
63304 to determine whether it's a 2-digit year, or a 2-digit time.
63305 (yylex): Store number of digits of numeric tokens.
63306 Reported by John Kendall.
63308 (parser_control): Changed from struct parser_control to typedef (for
63309 consistency). All uses changed.
63311 (tID): Removed; not used.
63312 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63314 2000-02-14 Paul Eggert <eggert@twinsun.com>
63316 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63317 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63319 2000-02-12 Jim Meyering <meyering@lucent.com>
63321 * lib/userspec.c (ISDIGIT): Define it.
63322 (isdigit): Remove definition.
63323 (is_number): Use ISDIGIT, not isdigit.
63324 <libintl.h>: Include.
63325 (_ and N_): Define.
63326 (parse_user_spec): Mark translatable strings.
63328 2000-02-10 Jim Meyering <meyering@lucent.com>
63330 With these changes, nanosleep.[ch] are finally enough like the other
63331 lib/* replacement files to compile on a few more losing systems.
63333 * lib/nanosleep.h: Don't include config.h.
63334 Remove prototype from declaration of nanosleep.
63335 (PARAMS): Remove now-unneeded definition.
63336 * lib/nanosleep.c: #undef nanosleep.
63337 (rpl_nanosleep): Rename from nanosleep.
63339 2000-02-10 Jim Meyering <meyering@lucent.com>
63341 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63342 gnu_nanosleep to rpl_nanosleep.
63344 2000-02-09 Jim Meyering <meyering@lucent.com>
63346 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63347 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
63349 2000-02-08 Akim Demaille <akim@epita.fr>
63351 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63352 `[' and `]' and remove uses of `changequote'.
63353 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63354 (AC_SYS_LARGEFILE): Likewise.
63355 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63356 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63358 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63359 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63360 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63361 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63363 2000-02-05 Jim Meyering <meyering@lucent.com>
63365 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63366 Remove explicit use of AC_HEADER_TIME. It is required by
63367 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63368 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63369 in autoconf whereby the expansion of the latter ended up preceding
63370 the expansion of its prerequisite, AC_HEADER_TIME.
63371 Reported by Volker Borchert.
63373 2000-02-03 Jim Meyering <meyering@lucent.com>
63375 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63377 2000-02-03 Jim Meyering <meyering@lucent.com>
63379 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63380 rather than with `#if HAVE_UTMPNAME'.
63382 2000-02-02 Jim Meyering <meyering@lucent.com>
63384 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63385 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63386 Reported by Eli Zaretskii.
63388 2000-02-01 Jim Meyering <meyering@lucent.com>
63390 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63392 2000-01-31 Jim Meyering <meyering@lucent.com>
63394 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63395 functions. Add the time.h and sys/time.h headers along with the
63396 AC_REQUIRE'ment of AC_HEADER_TIME.
63398 2000-01-31 Jim Meyering <meyering@lucent.com>
63400 * lib/nanosleep.h (nanosleep): Guard declaration with
63401 `#if ! HAVE_DECL_NANOSLEEP'.
63402 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63403 the declaration in that vendor's sys/timers.h.
63404 Reported by Christian Krackowizer.
63406 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63407 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63408 (ISPRINT): Likewise.
63409 Reported by Tom Tromey.
63411 2000-01-30 Jim Meyering <meyering@lucent.com>
63413 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63415 * m4/prereq.m4 (utmp_includes): Define.
63416 Check for ut_user and ut_name members in both struct utmpx
63419 2000-01-30 Jim Meyering <meyering@lucent.com>
63421 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63422 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63423 header files where only utmpx.ut_user is declared.
63425 * lib/readutmp.h (UT_USER): Define.
63427 2000-01-29 Jim Meyering <meyering@lucent.com>
63429 * m4/lib-check.m4: New file containing library-related checks from
63430 fileutils and sh-utils (textutils had none).
63432 2000-01-28 Jim Meyering <meyering@lucent.com>
63434 * m4/perl.m4: Change format of warning message to look more like that
63435 from the missing script. Suggestion from François Pinard.
63437 2000-01-25 Jim Meyering <meyering@lucent.com>
63439 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63440 well as time.h in the compile check.
63441 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63442 Fix typo in cross-compiling case: s/yes/no/.
63444 2000-01-23 Jim Meyering <meyering@lucent.com>
63446 * m4/jm-macros.m4: Move df-related tests here from
63447 fileutils/configure.in
63449 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63450 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63452 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63453 s/space/ac_fsusage_space/.
63454 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63456 * m4/ftruncate.m4: New file (derived from part of
63457 fileutils/configure.in).
63458 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63459 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63461 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63462 AC_SUBST these here, rather than just in sh-util/configure.in, so
63463 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63465 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63466 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63467 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63468 (AC_SUBST(POW_LIBM)): Likewise.
63469 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63471 2000-01-23 Jim Meyering <meyering@lucent.com>
63473 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63476 2000-01-22 Jim Meyering <meyering@lucent.com>
63478 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63480 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63482 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63484 (AC_CHECK_HEADERS): Likewise for sh-utils.
63485 (AC_CHECK_HEADERS): Likewise for textutils.
63486 Merge the three lists of headers.
63488 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
63489 from fileutils' configure.in.
63491 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63492 code. Moved tests into their own function (_jm_DECL_HEADERS) in
63495 * m4/check-decl.m4: Use #if rather than #ifdef.
63496 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63497 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63498 (_jm_DECL_HEADERS): Define new function.
63499 (jm_CHECK_DECLARATIONS): Require it.
63501 2000-01-22 Jim Meyering <meyering@lucent.com>
63503 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63504 [! HAVE_DECL_STRTOULL]: Declare strtoull.
63505 Required for some AIX systems. Reported by Christian Krackowizer.
63506 [TESTING] (main): New function.
63508 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
63509 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63512 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63515 * lib/strverscmp.c (ISDIGIT): Define.
63516 (strverscmp): Use ISDIGIT, not isdigit.
63518 2000-01-19 Jim Meyering <meyering@lucent.com>
63520 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63521 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63522 defines `struct timespec' in <sys/time.h>
63524 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63525 Thanks to Akim for explaining.
63527 2000-01-17 Paul Eggert <eggert@twinsun.com>
63529 * lib/nanosleep.c (nanosleep):
63530 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63531 POSIX.1 doesn't require SA_INTERRUPT and some systems
63532 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63533 it's been part of POSIX.1 since day 1 (in 1988).
63535 2000-01-17 Jim Meyering <meyering@lucent.com>
63537 * lib/interlock: Remove unused file. Reported by François Pinard.
63539 2000-01-16 Paul Eggert <eggert@twinsun.com>
63541 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63542 alert, backslash, formfeed, and vertical tab unnecessarily in
63543 shell quoting style.
63545 2000-01-16 Jim Meyering <meyering@lucent.com>
63547 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63548 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63549 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63550 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63552 2000-01-16 Jim Meyering <meyering@lucent.com>
63554 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63555 because the latter didn't work.
63557 2000-01-15 Jim Meyering <meyering@lucent.com>
63559 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63560 (AC_REPLACE_FUNCS): Add memcpy and memset.
63561 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63563 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63565 2000-01-12 Jim Meyering <meyering@lucent.com>
63567 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63568 (jm_PREREQ): Use it.
63569 (jm_PREREQ_READUTMP): New macro.
63570 (jm_PREREQ): Use it.
63572 2000-01-11 Paul Eggert <eggert@twinsun.com>
63574 Quote multibyte characters correctly.
63575 * m4/c-bs-a.m4: New file.
63576 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63577 (jm_PREREQ): Use it.
63579 2000-01-11 Paul Eggert <eggert@twinsun.com>
63581 * m4/uintmax_t.m4: Port to autoconf 2.13.
63583 2000-01-08 Jim Meyering <meyering@ascend.com>
63585 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63586 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63588 2000-01-04 Jim Meyering <meyering@ascend.com>
63590 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63591 jm_STRUCT_DIRENT_D_TYPE.
63592 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63593 jm_STRUCT_DIRENT_D_INO.
63594 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63596 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63598 * m4/utime.m4: Likewise.
63600 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63601 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63603 2000-01-03 Paul Eggert <eggert@twinsun.com>
63605 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63606 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63608 2000-01-02 Jim Meyering <meyering@ascend.com>
63610 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
63611 remember if this is necessary.
63613 1999-12-26 Jim Meyering <meyering@ascend.com>
63615 * m4/jm-macros.m4: Use it here.
63616 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63618 1999-12-23 Jim Meyering <meyering@ascend.com>
63620 * m4/jm-macros.m4: Check for clock_gettime (moved from
63621 fileutils/configure.in)
63622 Check for gettimeofday.
63624 1999-12-20 Jim Meyering <meyering@ascend.com>
63626 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63627 autoconf-2.14a-1999-12-20.
63629 1999-12-19 Jim Meyering <meyering@ascend.com>
63631 * m4/lstat-slash.m4: New file.
63632 * m4/jm-macros.m4: Use the new macro:
63633 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63635 1999-12-07 Jim Meyering <meyering@ascend.com>
63637 * m4/perl.m4: Require that File::Compare be available, too.
63638 Too many systems seem to lack it.
63640 * m4/strftime.m4: Add checks for most of the cpp macros tested in
63641 GNU's strftime.c. Prompted by a patch from Paul Eggert.
63643 1999-11-18 Paul Eggert <eggert@twinsun.com>
63645 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63646 problem with the QNX 4.25 shell, which doesn't propagate exit
63647 status of failed commands inside shell assignments.
63649 1999-11-17 Jim Meyering <meyering@ascend.com>
63651 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63653 1999-11-07 Jim Meyering <meyering@ascend.com>
63655 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63657 1999-11-06 Jim Meyering <meyering@ascend.com>
63659 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63660 * m4/jm-macros.m4 (jm_MACROS): Use it here.
63662 1999-11-05 Jim Meyering <meyering@ascend.com>
63664 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63665 configure.in of textutils, fileutils, and sh-utils into this one
63666 (shared between those packages) file.
63667 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63668 AC_STRUCT_ST_BLKSIZE.
63670 1999-11-03 Jim Meyering <meyering@ascend.com>
63672 * m4/ssize_t.m4: Remove file. No longer needed since the new version
63673 of AC_CHECK_TYPE checks includes unistd.h.
63674 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63675 Suggestion from Akim Demaille.
63677 1999-10-30 Jim Meyering <meyering@ascend.com>
63679 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
63681 * m4/ls-mntd-fs.m4: Likewise.
63682 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
63683 * m4/jm-winsz1.m4: Likewise.
63685 * m4/const.m4: Remove file, since the fix made it into the experimental
63686 version of autoconf.
63687 * m4/mktime.m4: Likewise.
63689 * m4/check-type.m4: Remove file, now that the latest version of
63690 AC_CHECK_TYPE takes a third arg to specify additional #includes.
63692 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63693 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63696 1999-10-04 Jim Meyering <meyering@ascend.com>
63698 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63700 1999-09-22 Paul Eggert <eggert@twinsun.com>
63702 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63703 2.95.1 bug with HP-UX 10.20.
63705 1999-09-17 Jim Meyering <meyering@ascend.com>
63707 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63708 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63709 due to missing strdup (against sh-utils-2.0).
63711 1999-08-29 Jim Meyering <meyering@ascend.com>
63713 * m4/jm-macros.m4: Require jm_BISON.
63714 * m4/bison.m4: New file.
63716 1999-08-17 Paul Eggert <eggert@twinsun.com>
63718 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63719 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63721 1999-08-05 Jim Meyering <meyering@ascend.com>
63723 * m4/getline.m4: Rename test file from conftestdata to conftest.data
63724 to avoid conflicts with `conftest' on 8+3 filesystems.
63725 Suggestion from Eli Zaretskii.
63727 1999-08-04 Jim Meyering <meyering@ascend.com>
63729 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63730 fileutils and sh-utils (textutils's getline test was inadequate).
63731 (AM_FUNC_GETLINE): Run this test.
63732 (AC_CHECK_FUNCS): Check for getdelim.
63733 Reported by Bob Proulx.
63735 1999-08-02 Jim Meyering <meyering@ascend.com>
63737 * m4/jm-macros.m4: Add a comment.
63739 1999-08-01 Paul Eggert <eggert@twinsun.com>
63741 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63742 <inttypes.h> defines strtoumax as a macro (and not as a
63745 1999-08-01 Paul Eggert <eggert@twinsun.com>
63747 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63748 that we can shift, multiply and divide unsigned long long
63749 values; Ultrix cc can't do it.
63751 1999-08-01 Paul Eggert <eggert@twinsun.com>
63753 * m4/mktime.m4: New file, which is a preview of what should appear
63754 in the next public autoconf release.
63756 1999-08-01 Paul Eggert <eggert@twinsun.com>
63758 * m4/lfs.m4: Remove this file.
63759 * m4/largefile.m4: New file. It contains the old contents of
63760 lfs.m4, except that all names with prefix AC_LFS have been
63761 changed to use the prefix AC_SYS_LARGEFILE instead, to be
63762 compatible with future autoconf versions. Also, some minor m4
63763 quoting problems have been fixed.
63765 1999-08-01 Paul Eggert <eggert@twinsun.com>
63767 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63768 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63769 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63770 and simplify the shell code.
63772 1999-08-01 Jim Meyering <meyering@ascend.com>
63774 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63777 1999-07-20 Jim Meyering <meyering@ascend.com>
63779 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63781 1999-07-15 Jim Meyering <meyering@ascend.com>
63783 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63785 1999-05-22 Jim Meyering <meyering@ascend.com>
63787 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63789 1999-05-20 Jim Meyering <meyering@ascend.com>
63791 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63792 Add a colon after each `then' in case $4 is empty.
63794 1999-05-16 Jim Meyering <meyering@ascend.com>
63796 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63798 1999-05-10 Jim Meyering <meyering@ascend.com>
63800 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63802 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63805 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
63807 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63809 1999-05-04 Paul Eggert <eggert@twinsun.com>
63811 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63812 not CPPFLAGS, so that linking works correctly in IRIX.
63814 1999-04-30 Paul Eggert <eggert@twinsun.com>
63816 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63818 1999-04-20 Paul Eggert <eggert@twinsun.com>
63820 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63821 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63822 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63823 jm_AC_TYPE_UNSIGNED_LONG_LONG.
63824 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63826 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
63828 1999-04-20 Jim Meyering <meyering@ascend.com>
63830 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63831 AC_REPLACE xstroull if necessary. From Paul Eggert.
63832 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63834 1999-04-18 Jim Meyering <meyering@ascend.com>
63836 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63837 * m4/jm-macros.m4: Use it.
63839 1999-04-06 Jim Meyering <meyering@ascend.com>
63841 * m4/strftime.m4: Remove test for %f.
63843 1999-03-29 Jim Meyering <meyering@ascend.com>
63845 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63846 superset of the AC_TYPE_* checks in the textutils, fileutils,
63847 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
63850 1999-03-28 Jim Meyering <meyering@ascend.com>
63852 * m4/jm-macros.m4: Define GNU_PACKAGE here.
63853 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63854 replaced e.g., in the *.sh files of the sh-utils.
63856 1999-03-20 Jim Meyering <meyering@ascend.com>
63858 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63859 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63860 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
63862 1999-03-19 Jim Meyering <meyering@ascend.com>
63864 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63866 1999-03-12 Jim Meyering <meyering@ascend.com>
63868 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63870 1999-03-07 Jim Meyering <meyering@ascend.com>
63872 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63875 1999-02-17 Jim Meyering <meyering@ascend.com>
63877 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63878 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63880 1999-02-07 Jim Meyering <meyering@ascend.com>
63882 * m4/group-member.m4: New file -- extracted from sh-utils'
63885 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63886 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63888 1999-02-06 Jim Meyering <meyering@ascend.com>
63890 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63891 * m4/fnmatch.m4: Likewise.
63892 * m4/getgroups.m4: Likewise.
63893 * m4/lstat.m4: Likewise.
63894 * m4/malloc.m4: Likewise.
63895 * m4/putenv.m4: Likewise.
63896 * m4/realloc.m4: Likewise.
63897 * m4/regex.m4: Likewise.
63898 * m4/stat.m4: Likewise.
63899 * m4/strftime.m4: Likewise.
63900 Suggestion from Alain Magloire.
63902 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63903 * m4/fnmatch.m4: Likewise.
63904 * m4/getgroups.m4: Likewise.
63905 * m4/getline.m4: Likewise.
63906 * m4/lstat.m4: Likewise.
63907 * m4/malloc.m4: Likewise.
63908 * m4/memcmp.m4: Likewise.
63909 * m4/putenv.m4: Likewise.
63910 * m4/realloc.m4: Likewise.
63911 * m4/regex.m4: Likewise.
63912 * m4/stat.m4: Likewise.
63913 * m4/strftime.m4: Likewise.
63914 Suggestion from Alain Magloire.
63916 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63919 * m4/regex.m4: Add a run-time Test for proper operation of
63920 re_compile_pattern.
63922 1999-01-31 Jim Meyering <meyering@ascend.com>
63924 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63926 1999-01-30 Jim Meyering <meyering@ascend.com>
63928 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63930 * m4/jm-mktime.m4: Make this a wrapper around the official
63931 AM_FUNC_MKTIME rather than my private copy, now that the official one
63933 * m4/mktime.m4: Remove file.
63935 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63936 * m4/uptime.m4: Likewise.
63937 * m4/uintmax_t.m4: Likewise.
63939 1999-01-28 Jim Meyering <meyering@ascend.com>
63941 * m4/jm-macros.m4: Use jm_AFS.
63942 * m4/afs.m4: New file (from fileutils' configure.in).
63944 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63945 * m4/chown.m4: Likewise.
63946 * m4/d-ino.m4: Likewise.
63947 * m4/d-type.m4: Likewise.
63948 * m4/fnmatch.m4: Likewise.
63949 * m4/getgroups.m4: Likewise.
63950 * m4/gettext.m4: Likewise.
63951 * m4/jm-mktime.m4: Likewise.
63952 * m4/jm-winsz2.m4: Likewise.
63953 * m4/lcmessage.m4: Likewise.
63954 * m4/ls-mntd-fs.m4: Likewise.
63955 * m4/malloc.m4: Likewise.
63956 * m4/memcmp.m4: Likewise.
63957 * m4/putenv.m4: Likewise.
63958 * m4/realloc.m4: Likewise.
63959 * m4/st_mtim.m4: Likewise.
63960 * m4/strftime.m4: Likewise.
63962 1999-01-16 Jim Meyering <meyering@ascend.com>
63964 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63965 (ARGMATCH_DIE_DECL): Define.
63967 1999-01-12 Jim Meyering <meyering@ascend.com>
63969 * m4/Makefile.am.in: Rewrite to avoid using fmt.
63970 Reported by Lars Hecking.
63972 1999-01-10 Jim Meyering <meyering@ascend.com>
63974 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63976 * m4/inttypes_h.m4: Likewise.
63977 * m4/lstat.m4: Likewise.
63978 * m4/malloc.m4: Likewise.
63979 * m4/readdir.m4: Likewise.
63980 * m4/realloc.m4: Likewise.
63981 * m4/st_dm_mode.m4: Likewise.
63982 * m4/stat.m4: Likewise.
63983 * m4/utimbuf.m4: Likewise.
63984 * m4/utimes.m4: Likewise.
63986 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63987 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
63988 comments in config.h.in are meaningful.
63990 * m4/jm-macros.m4: Require autoconf-2.13 here.
63992 * m4/regex.m4: By default, don't use the included regex.c on systems
63993 with glibc 2. Suggestion from Uli Drepper.
63995 1999-01-02 Jim Meyering <meyering@ascend.com>
63997 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63999 1998-12-18 Jim Meyering <meyering@ascend.com>
64001 * m4/Makefile.am.in (Makefile.am): Simplify rule.
64002 Based on a suggestion from Lars Hecking.
64004 1998-11-16 Paul Eggert <eggert@twinsun.com>
64006 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64008 1998-11-16 Jim Meyering <meyering@ascend.com>
64010 * m4/lfs.m4: Double-quote the `uname...` expression.
64012 1998-11-14 Jim Meyering <meyering@ascend.com>
64014 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
64015 * m4/stat.m4: Likewise.
64017 1998-11-03 Jim Meyering <meyering@ascend.com>
64019 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64020 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64022 1998-10-18 Jim Meyering <meyering@ascend.com>
64024 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64026 1998-10-17 Jim Meyering <meyering@ascend.com>
64028 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64029 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64030 calls for those previously hard-coded headers. Instead, take a new
64032 (jm_CHECK_DECLARATIONS): Reflect interface change.
64033 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64034 (jm_CHECK_DECL_LOCALTIME_R): New macro.
64036 * m4/mktime.m4: Test for spring-forward gap before long-running test.
64038 1998-10-14 Jim Meyering <meyering@ascend.com>
64040 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64041 instead of "TZ=America/Vancouver". From Paul Eggert.
64043 1998-10-11 Jim Meyering <meyering@ascend.com>
64045 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64046 This adds a test for a recently added compatibility fix for mktime.c.
64047 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64049 1998-09-27 Jim Meyering <meyering@ascend.com>
64051 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64053 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
64054 ../configure.in, including a change from Gordon Matzigkeit to allow
64055 cross-compiling for the Hurd.
64057 * m4/glibc.m4: New file/macro to test for the GNU C Library
64058 versions 1 and 2. From Gordon Matzigkeit.
64061 1998-09-21 Jim Meyering <meyering@ascend.com>
64063 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
64065 1998-08-18 Paul Eggert <eggert@twinsun.com>
64067 Port nanosecond-resolution times to UnixWare 2.1.2 and
64068 pedantic Solaris 2.6.
64070 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64072 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64073 Generate name of ns member, instead of just 1 or undef.
64074 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64076 1998-08-15 Jim Meyering <meyering@ascend.com>
64078 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64079 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
64080 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64081 instead of jm_TYPE_SSIZE_T.
64083 1998-08-12 Jim Meyering <meyering@ascend.com>
64085 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
64087 1998-08-02 Jim Meyering <meyering@ascend.com>
64089 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64090 in acconfig.h manually.
64092 1998-07-31 Paul Eggert <eggert@twinsun.com>
64094 * m4/st_mtim.m4: New file.
64096 1998-07-28 Jim Meyering <meyering@ascend.com>
64098 * m4/utimes.m4: Undef stat.
64100 1998-07-25 Jim Meyering <meyering@ascend.com>
64102 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64103 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64105 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
64107 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64108 uid and gid actually remain unchanged.
64110 1998-07-07 Jim Meyering <meyering@ascend.com>
64112 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64114 1998-07-04 Jim Meyering <meyering@ascend.com>
64116 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
64117 to prove that this macro can be used in packages without regex.c.
64119 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
64121 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64124 1998-07-03 Jim Meyering <meyering@ascend.com>
64126 * m4/gettext.m4: Add -lintl if it's found to be necessary.
64128 * m4/gettext.m4: New file -- from gettext-0.10.35.
64129 * m4/lcmessage.m4: Likewise.
64130 * m4/progtest.m4: Likewise.
64132 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64133 * m4/jm-macros.m4: Require the new macro.
64135 1998-06-29 Jim Meyering <meyering@ascend.com>
64137 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
64138 for the definition of NGROUPS (used in a system header included
64141 1998-06-28 Jim Meyering <meyering@ascend.com>
64143 * m4/ls-mntd-fs.m4: New file.
64144 * m4/fstypename.m4: New file.
64146 * m4/jm-macros.m4: Require the new macro.
64147 * m4/jm-glibc-io.m4: New file.
64149 1998-05-19 Jim Meyering <meyering@ascend.com>
64151 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64152 * m4/lchown.m4: New file.
64154 * m4/Makefile.am.in: New file.
64155 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64157 1998-05-14 Jim Meyering <meyering@ascend.com>
64159 * m4/Makefile.am (EXTRA_DIST): Add them.
64160 * m4/jm-macros.m4: New file.
64161 * m4/utimbuf.m4: New file.
64163 1998-05-12 Jim Meyering <meyering@ascend.com>
64165 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64167 1998-05-11 Jim Meyering <meyering@ascend.com>
64169 * m4/isc-posix.m4: New file.
64171 1998-05-10 Jim Meyering <meyering@ascend.com>
64173 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64175 1998-05-09 Jim Meyering <meyering@ascend.com>
64177 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64178 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64181 * m4/ssize_t.m4: New file.
64182 * m4/mktime.m4: Remove file -- the new automake has this now.
64184 1998-04-26 Jim Meyering <meyering@ascend.com>
64186 * m4/assert.m4: New file.
64187 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64189 1998-04-05 Jim Meyering <meyering@ascend.com>
64191 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64192 (jm_PREREQ): Use it here.
64194 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
64196 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64199 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
64201 * m4/prereq.m4: New file.
64202 * m4/error.m4: New file.
64203 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64205 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
64207 * m4/getline.m4: Don't set am_cv_func_working_getline before the
64208 cache-check for the same variable -- that defeated the purpose of
64209 the test; the test program was never run. This was a problem only
64210 on systems with losing getline functions -- HP-UX 10.20 is one.
64211 Reported by Bjorn Helgaas.
64213 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
64215 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64217 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
64219 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64221 * m4/const.m4: New file. Use an initializer in this declaration
64222 typedef int charset[2]; const charset x;
64223 Reported by Bob Glickstein.
64225 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
64227 * m4/chown.m4: Fix reversed types on -1 args to chown.
64230 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
64232 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64233 Add lseek and memchr.
64235 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64236 T.E.Dickey <dickey@clark.net> said that some older preprocessors
64237 have a 20-character limit on names.
64239 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
64241 * m4/inttypes_h.m4: New file.
64242 * m4/uintmax_t.m4: New file.
64243 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64252 Copyright (C) 1997-2010 Free Software Foundation, Inc.
64254 Copying and distribution of this file, with or without
64255 modification, are permitted provided the copyright notice
64256 and this notice are preserved.